]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Revert docbook updates to Customization manual.
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 587
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \author -712698321 "Jürgen Spitzmüller"
137 \author -495245474 "Jean-Marc Lasgouttes"
138 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Customizing \SpecialChar LyX
145 : Features for the Advanced User
146 \end_layout
147
148 \begin_layout Author
149 by the \SpecialChar LyX
150  Team
151 \begin_inset Foot
152 status collapsed
153
154 \begin_layout Plain Layout
155 \noindent
156 If you have comments or error corrections, please send them to the \SpecialChar LyX
157  Documentatio
158 n mailing list, 
159 \begin_inset CommandInset href
160 LatexCommand href
161 target "lyx-docs@lists.lyx.org"
162 type "mailto:"
163 literal "false"
164
165 \end_inset
166
167 .
168  Include 
169 \begin_inset Quotes eld
170 \end_inset
171
172 [Customization]
173 \begin_inset Quotes erd
174 \end_inset
175
176  in the subject header, and please cc the current maintainer of this file,
177  Richard Heck <rgheck@comcast.net>.
178 \end_layout
179
180 \end_inset
181
182
183 \begin_inset Newline newline
184 \end_inset
185
186
187 \begin_inset Newline newline
188 \end_inset
189
190 Version 2.3.x 
191 \end_layout
192
193 \begin_layout Standard
194 \begin_inset CommandInset toc
195 LatexCommand tableofcontents
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Standard
203 \begin_inset Note Note
204 status open
205
206 \begin_layout Plain Layout
207 Please use change tracking when modifying this document.
208  This makes it easier for our translators to recognize things that have
209  been changed, and it helps the maintainer keep up-to-date with what's been
210  done.
211 \end_layout
212
213 \end_inset
214
215
216 \end_layout
217
218 \begin_layout Chapter
219 Introduction
220 \end_layout
221
222 \begin_layout Standard
223 This manual covers the customization features present in \SpecialChar LyX
224 .
225  In it, we discuss issues like keyboard shortcuts, screen previewing options,
226  printer options, sending commands to \SpecialChar LyX
227  via the \SpecialChar LyX
228  Server, internationalization,
229  installing new \SpecialChar LaTeX
230  classes and \SpecialChar LyX
231  layouts, etc.
232  We can't possibly hope to touch on everything you can change—our developers
233  add new features faster than we can document them—but we will explain the
234  most common customizations and hopefully point you in the right direction
235  for some of the more obscure ones.
236 \end_layout
237
238 \begin_layout Standard
239 \begin_inset Branch OutDated
240 inverted 0
241 status collapsed
242
243 \begin_layout Standard
244 Information from previous versions of this document that now seems to be
245  outdated is contained in the OutDated branch of this document.
246  By default, this information will not appear in the \SpecialChar LaTeX
247  output.
248 \end_layout
249
250 \end_inset
251
252
253 \end_layout
254
255 \begin_layout Chapter
256 \SpecialChar LyX
257  configuration files
258 \end_layout
259
260 \begin_layout Standard
261 This chapter aims to help you to find your way through the \SpecialChar LyX
262  configuration
263  files.
264  Before continuing to read this chapter, you should find out where your
265  \SpecialChar LyX
266  library and user directories are by using 
267 \begin_inset Flex Noun
268 status collapsed
269
270 \begin_layout Plain Layout
271 Help\SpecialChar menuseparator
272 About
273 \begin_inset space ~
274 \end_inset
275
276 LyX
277 \end_layout
278
279 \end_inset
280
281 .
282  The library directory is the place where \SpecialChar LyX
283  places its system-wide configuration
284  files; the user directory is where you can place your modified versions.
285  We will call the former 
286 \begin_inset Flex Code
287 status collapsed
288
289 \begin_layout Plain Layout
290 LyXDir
291 \end_layout
292
293 \end_inset
294
295  and the latter 
296 \begin_inset Flex Noun
297 status collapsed
298
299 \begin_layout Plain Layout
300 UserDir
301 \end_layout
302
303 \end_inset
304
305  in the remainder of this document.
306  
307 \end_layout
308
309 \begin_layout Section
310 What's in 
311 \begin_inset Flex Code
312 status collapsed
313
314 \begin_layout Plain Layout
315 LyXDir
316 \end_layout
317
318 \end_inset
319
320 ?
321 \end_layout
322
323 \begin_layout Standard
324 \begin_inset Flex Code
325 status collapsed
326
327 \begin_layout Plain Layout
328 LyXDir
329 \end_layout
330
331 \end_inset
332
333  and its sub-directories contain a number of files and that can be used
334  to customize \SpecialChar LyX
335 's behavior.
336  You can change many of these files from within \SpecialChar LyX
337  itself through the 
338 \begin_inset Flex Noun
339 status collapsed
340
341 \begin_layout Plain Layout
342 Tools\SpecialChar menuseparator
343 Preferences
344 \end_layout
345
346 \end_inset
347
348  dialog.
349  Most customization that you will want to do in \SpecialChar LyX
350  is possible through this
351  dialog.
352  However, many other inner aspects of \SpecialChar LyX
353  can be customized by modifying the
354  files in 
355 \begin_inset Flex Code
356 status collapsed
357
358 \begin_layout Plain Layout
359 LyXDir
360 \end_layout
361
362 \end_inset
363
364 .
365  These files fall in different categories, described in the following subsection
366 s.
367 \end_layout
368
369 \begin_layout Subsection
370 Automatically generated files
371 \end_layout
372
373 \begin_layout Standard
374 The files, which are to be found in 
375 \begin_inset Flex Noun
376 status collapsed
377
378 \begin_layout Plain Layout
379 UserDir
380 \end_layout
381
382 \end_inset
383
384 , are generated when you configure \SpecialChar LyX
385 .
386  They contain various default values that are guessed by inspection.
387  In general, it is not a good idea to modify them, since they might be overwritt
388 en at any time.
389 \end_layout
390
391 \begin_layout Labeling
392 \labelwidthstring 00.00.0000
393 \begin_inset Flex Code
394 status collapsed
395
396 \begin_layout Plain Layout
397 lyxrc.defaults
398 \end_layout
399
400 \end_inset
401
402  contains defaults for various commands.
403 \end_layout
404
405 \begin_layout Labeling
406 \labelwidthstring 00.00.0000
407 \begin_inset Flex Code
408 status collapsed
409
410 \begin_layout Plain Layout
411 packages.lst
412 \end_layout
413
414 \end_inset
415
416  contains the list of packages that have been recognized by \SpecialChar LyX
417 .
418  It is currently unused by the \SpecialChar LyX
419  program itself, but the information extracted,
420  and more, is made available with 
421 \begin_inset Flex Noun
422 status collapsed
423
424 \begin_layout Plain Layout
425 Help\SpecialChar menuseparator
426 \SpecialChar LaTeX
427
428 \begin_inset space ~
429 \end_inset
430
431 Configuration
432 \end_layout
433
434 \end_inset
435
436 .
437 \end_layout
438
439 \begin_layout Labeling
440 \labelwidthstring 00.00.0000
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 textclass.lst
446 \end_layout
447
448 \end_inset
449
450  the list of text classes that have been found in your 
451 \begin_inset Flex Code
452 status collapsed
453
454 \begin_layout Plain Layout
455 layout/
456 \end_layout
457
458 \end_inset
459
460  directories, along with the associated \SpecialChar LaTeX
461  document class and their description.
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 lyxmodules.lst
471 \end_layout
472
473 \end_inset
474
475  the list of layout modules found in your 
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 layout/
481 \end_layout
482
483 \end_inset
484
485  directories
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 *files.lst
495 \end_layout
496
497 \end_inset
498
499  lists of various sorts of \SpecialChar LaTeX
500 -related files found on your system
501 \end_layout
502
503 \begin_layout Labeling
504 \labelwidthstring 00.00.0000
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 doc/\SpecialChar LaTeX
510 Config.lyx
511 \end_layout
512
513 \end_inset
514
515  is automatically generated during configuration from the file 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 \SpecialChar LaTeX
521 Config.lyx.in
522 \end_layout
523
524 \end_inset
525
526 .
527  It contains information on your \SpecialChar LaTeX
528  configuration.
529 \end_layout
530
531 \begin_layout Subsection
532 Directories
533 \end_layout
534
535 \begin_layout Standard
536 These directories are duplicated between 
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541 LyXDir
542 \end_layout
543
544 \end_inset
545
546  and 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 UserDir
552 \end_layout
553
554 \end_inset
555
556 .
557  If a particular files exists in both places, the one in 
558 \begin_inset Flex Code
559 status collapsed
560
561 \begin_layout Plain Layout
562 UserDir
563 \end_layout
564
565 \end_inset
566
567  will be used.
568 \end_layout
569
570 \begin_layout Labeling
571 \labelwidthstring 00.00.0000
572 \begin_inset Flex Code
573 status collapsed
574
575 \begin_layout Plain Layout
576 bind/
577 \end_layout
578
579 \end_inset
580
581  this directory contains files with the extension 
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 .bind
587 \end_layout
588
589 \end_inset
590
591  that define the keybindings used in \SpecialChar LyX
592 .
593  If there exists an internationalized version of the bind file named 
594 \begin_inset Flex Code
595 status collapsed
596
597 \begin_layout Plain Layout
598 $LANG_xxx.bind
599 \end_layout
600
601 \end_inset
602
603 , that will be used first.
604 \end_layout
605
606 \begin_layout Labeling
607 \labelwidthstring 00.00.0000
608 \begin_inset Flex Code
609 status collapsed
610
611 \begin_layout Plain Layout
612 citeengines/
613 \end_layout
614
615 \end_inset
616
617  contains files with the extension 
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .citeengine
623 \end_layout
624
625 \end_inset
626
627  which define the diverse citation possibilities (natbib, biblatex etc.).
628  See 
629 \begin_inset CommandInset ref
630 LatexCommand ref
631 reference "subsec:Cite-Engine-Files"
632 plural "false"
633 caps "false"
634 noprefix "false"
635
636 \end_inset
637
638  for details.
639 \end_layout
640
641 \begin_layout Labeling
642 \labelwidthstring 00.00.0000
643 \begin_inset Flex Code
644 status collapsed
645
646 \begin_layout Plain Layout
647 clipart/
648 \end_layout
649
650 \end_inset
651
652  contains graphics files that can be included in documents.
653  
654 \end_layout
655
656 \begin_layout Labeling
657 \labelwidthstring 00.00.0000
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 doc/
663 \end_layout
664
665 \end_inset
666
667  contains \SpecialChar LyX
668  documentation files (including the one you are currently reading).
669  The file 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 \SpecialChar LaTeX
675 Config.lyx
676 \end_layout
677
678 \end_inset
679
680  deserves special attention, as noted above.
681  The internationalized help docs are in subdirectories 
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 doc/xx
687 \end_layout
688
689 \end_inset
690
691  where 
692 \begin_inset Quotes eld
693 \end_inset
694
695 xx
696 \begin_inset Quotes erd
697 \end_inset
698
699  is the ISO language code.
700  See 
701 \begin_inset CommandInset ref
702 LatexCommand ref
703 reference "cha:Internationalizing-LyX"
704
705 \end_inset
706
707  for details.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 examples/
717 \end_layout
718
719 \end_inset
720
721  contains example files that explain how to use some features.
722  In the file browser, press the 
723 \begin_inset Flex Noun
724 status collapsed
725
726 \begin_layout Plain Layout
727 Examples
728 \end_layout
729
730 \end_inset
731
732  button to get there.
733 \end_layout
734
735 \begin_layout Labeling
736 \labelwidthstring 00.00.0000
737 \begin_inset Flex Code
738 status collapsed
739
740 \begin_layout Plain Layout
741 images/
742 \end_layout
743
744 \end_inset
745
746  contains image files that are used by the 
747 \begin_inset Flex Noun
748 status collapsed
749
750 \begin_layout Plain Layout
751 Document
752 \end_layout
753
754 \end_inset
755
756  dialog.
757  In addition, it also contains the individual icons used in the toolbar
758  and the banners that can be shown when \SpecialChar LyX
759  is launched.
760 \end_layout
761
762 \begin_layout Labeling
763 \labelwidthstring 00.00.0000
764 \begin_inset Flex Code
765 status collapsed
766
767 \begin_layout Plain Layout
768 kbd/
769 \end_layout
770
771 \end_inset
772
773  contains keyboard keymapping files.
774  See 
775 \begin_inset CommandInset ref
776 LatexCommand ref
777 reference "sec:International-Keymap-Stuff"
778
779 \end_inset
780
781  for details.
782 \end_layout
783
784 \begin_layout Labeling
785 \labelwidthstring 00.00.0000
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 layouts/
791 \end_layout
792
793 \end_inset
794
795  contains the text class and module files described in 
796 \begin_inset CommandInset ref
797 LatexCommand ref
798 reference "cha:Installing-New-Document"
799
800 \end_inset
801
802 .
803 \end_layout
804
805 \begin_layout Labeling
806 \labelwidthstring 00.00.0000
807 \begin_inset Flex Code
808 status collapsed
809
810 \begin_layout Plain Layout
811 lyx2lyx
812 \end_layout
813
814 \end_inset
815
816  contains the 
817 \begin_inset Flex Code
818 status collapsed
819
820 \begin_layout Plain Layout
821 lyx2lyx
822 \end_layout
823
824 \end_inset
825
826  Python scripts used to convert between \SpecialChar LyX
827  versions.
828  These can be run from the command line if, say, you want to batch-convert
829  files.
830 \end_layout
831
832 \begin_layout Labeling
833 \labelwidthstring 00.00.0000
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 scripts/
839 \end_layout
840
841 \end_inset
842
843  contains some files that demonstrate the capabilities of the 
844 \begin_inset Flex Noun
845 status collapsed
846
847 \begin_layout Plain Layout
848 External
849 \begin_inset space ~
850 \end_inset
851
852 Template
853 \end_layout
854
855 \end_inset
856
857  feature.
858  Also contains some scripts used by \SpecialChar LyX
859  itself.
860 \end_layout
861
862 \begin_layout Labeling
863 \labelwidthstring 00.00.0000
864 \begin_inset Flex Code
865 status collapsed
866
867 \begin_layout Plain Layout
868 templates/
869 \end_layout
870
871 \end_inset
872
873  contains the standard \SpecialChar LyX
874  template files described in 
875 \begin_inset CommandInset ref
876 LatexCommand ref
877 reference "subsec:Creating-Templates"
878
879 \end_inset
880
881 .
882 \end_layout
883
884 \begin_layout Labeling
885 \labelwidthstring 00.00.0000
886 \begin_inset Flex Code
887 status collapsed
888
889 \begin_layout Plain Layout
890 ui/
891 \end_layout
892
893 \end_inset
894
895  contains files with the extension 
896 \begin_inset Flex Code
897 status collapsed
898
899 \begin_layout Plain Layout
900 .ui
901 \end_layout
902
903 \end_inset
904
905  that define the user interface to \SpecialChar LyX
906 .
907  That is, the files define which items appear in which menus and the items
908  appearing on the toolbar.
909 \end_layout
910
911 \begin_layout Labeling
912 \labelwidthstring 00.00.0000
913 \begin_inset Flex Code
914 status collapsed
915
916 \begin_layout Plain Layout
917 xtemplates/
918 \end_layout
919
920 \end_inset
921
922  contains files with the extension 
923 \begin_inset Flex Code
924 status collapsed
925
926 \begin_layout Plain Layout
927 .xtemplate
928 \end_layout
929
930 \end_inset
931
932  which define the templates for the insertion of external material to a
933  \SpecialChar LyX
934  document; see 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "chap:Including-External-Material"
938
939 \end_inset
940
941 .
942 \end_layout
943
944 \begin_layout Subsection
945 Files you don't want to modify
946 \end_layout
947
948 \begin_layout Standard
949 These files are used internally by \SpecialChar LyX
950  and you generally do not need to modify
951  them unless you are a developer.
952 \end_layout
953
954 \begin_layout Labeling
955 \labelwidthstring 00.00.0000
956 \begin_inset Flex Code
957 status collapsed
958
959 \begin_layout Plain Layout
960 CREDITS
961 \end_layout
962
963 \end_inset
964
965  this file contains the list of \SpecialChar LyX
966  developers.
967  The contents are displayed with the menu entry 
968 \begin_inset Flex Noun
969 status collapsed
970
971 \begin_layout Plain Layout
972 Help\SpecialChar menuseparator
973 About
974 \begin_inset space ~
975 \end_inset
976
977 LyX
978 \end_layout
979
980 \end_inset
981
982 .
983 \end_layout
984
985 \begin_layout Labeling
986 \labelwidthstring 00.00.0000
987 \begin_inset Flex Code
988 status collapsed
989
990 \begin_layout Plain Layout
991 chkconfig.ltx
992 \end_layout
993
994 \end_inset
995
996  this is a \SpecialChar LaTeX
997  script used during the configuration process.
998  Do not run directly.
999 \end_layout
1000
1001 \begin_layout Labeling
1002 \labelwidthstring 00.00.0000
1003 \begin_inset Flex Code
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007 configure.py
1008 \end_layout
1009
1010 \end_inset
1011
1012  this is a Python script that is used to re-configure \SpecialChar LyX
1013 .
1014  It creates configuration files in the directory it was run from.
1015 \end_layout
1016
1017 \begin_layout Subsection
1018 Other files needing a line or two
1019 \end_layout
1020
1021 \begin_layout Labeling
1022 \labelwidthstring 00.00.0000
1023 \begin_inset Flex Code
1024 status collapsed
1025
1026 \begin_layout Plain Layout
1027 encodings
1028 \end_layout
1029
1030 \end_inset
1031
1032  this contains tables describing how different character encodings can be
1033  mapped to Unicode
1034 \end_layout
1035
1036 \begin_layout Labeling
1037 \labelwidthstring 00.00.0000
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 languages
1043 \end_layout
1044
1045 \end_inset
1046
1047  this file contains a list of all the languages currently supported by \SpecialChar LyX
1048 .
1049 \end_layout
1050
1051 \begin_layout Labeling
1052 \labelwidthstring 00.00.0000
1053 \begin_inset Flex Code
1054 status collapsed
1055
1056 \begin_layout Plain Layout
1057 latexfonts
1058 \end_layout
1059
1060 \end_inset
1061
1062  contains information about the supported fonts.
1063 \end_layout
1064
1065 \begin_layout Labeling
1066 \labelwidthstring 00.00.0000
1067 \begin_inset Flex Code
1068 status collapsed
1069
1070 \begin_layout Plain Layout
1071 layouttranslations
1072 \end_layout
1073
1074 \end_inset
1075
1076  this file contains translations for internationalized paragraph styles
1077  (see 
1078 \begin_inset CommandInset ref
1079 LatexCommand ref
1080 reference "subsec:I18n"
1081
1082 \end_inset
1083
1084 ).
1085 \end_layout
1086
1087 \begin_layout Labeling
1088 \labelwidthstring 00.00.0000
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 unicodesymbols
1094 \end_layout
1095
1096 \end_inset
1097
1098  this file contains information about Unicode-encoded glyphs and the way
1099  they are supported by \SpecialChar LyX
1100  via \SpecialChar LaTeX
1101 .
1102 \end_layout
1103
1104 \begin_layout Section
1105 Your local configuration directory
1106 \end_layout
1107
1108 \begin_layout Standard
1109 Even if you are using \SpecialChar LyX
1110  as an unprivileged user, you might want to change
1111  \SpecialChar LyX
1112  configuration for your own use.
1113  The 
1114 \begin_inset Flex Code
1115 status collapsed
1116
1117 \begin_layout Plain Layout
1118 UserDir
1119 \end_layout
1120
1121 \end_inset
1122
1123  directory contains all your personal configuration files.
1124  This is the directory described as 
1125 \begin_inset Quotes eld
1126 \end_inset
1127
1128 user directory
1129 \begin_inset Quotes erd
1130 \end_inset
1131
1132  in 
1133 \begin_inset Flex Noun
1134 status collapsed
1135
1136 \begin_layout Plain Layout
1137 Help\SpecialChar menuseparator
1138 About
1139 \begin_inset space ~
1140 \end_inset
1141
1142 LyX
1143 \end_layout
1144
1145 \end_inset
1146
1147 .
1148  This directory is used as a mirror of 
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153 LyXDir
1154 \end_layout
1155
1156 \end_inset
1157
1158 , which means that every file in 
1159 \begin_inset Flex Code
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163 UserDir
1164 \end_layout
1165
1166 \end_inset
1167
1168  is a replacement for the corresponding file in 
1169 \begin_inset Flex Code
1170 status collapsed
1171
1172 \begin_layout Plain Layout
1173 LyXDir
1174 \end_layout
1175
1176 \end_inset
1177
1178 .
1179  Any configuration file described in the above sections can be placed either
1180  in the system-wide directory, in which case it will affect all users, or
1181  in your local directory for your own use.
1182 \end_layout
1183
1184 \begin_layout Standard
1185 To make things clearer, let's provide a few examples:
1186 \end_layout
1187
1188 \begin_layout Itemize
1189 The preferences set in the 
1190 \begin_inset Flex Noun
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 Tools\SpecialChar menuseparator
1195 Preferences
1196 \end_layout
1197
1198 \end_inset
1199
1200  dialog are saved to a file 
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205 preferences
1206 \end_layout
1207
1208 \end_inset
1209
1210  in 
1211 \begin_inset Flex Code
1212 status collapsed
1213
1214 \begin_layout Plain Layout
1215 UserDir
1216 \end_layout
1217
1218 \end_inset
1219
1220 .
1221 \end_layout
1222
1223 \begin_layout Itemize
1224 When you reconfigure using 
1225 \begin_inset Flex Noun
1226 status collapsed
1227
1228 \begin_layout Plain Layout
1229 Tools\SpecialChar menuseparator
1230 Reconfigure
1231 \end_layout
1232
1233 \end_inset
1234
1235 , \SpecialChar LyX
1236  runs the 
1237 \begin_inset Flex Code
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241 configure.py
1242 \end_layout
1243
1244 \end_inset
1245
1246  script, and the resulting files are written in your local configuration
1247  directory.
1248  This means that any additional text class file that you might have added
1249  in 
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 UserDir/layouts
1255 \end_layout
1256
1257 \end_inset
1258
1259  will be added to the list of classes in the 
1260 \begin_inset Flex Noun
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 Document\SpecialChar menuseparator
1265 Settings
1266 \end_layout
1267
1268 \end_inset
1269
1270  dialog.
1271 \end_layout
1272
1273 \begin_layout Itemize
1274 If you get some updated documentation from \SpecialChar LyX
1275  ftp site and cannot install
1276  it because you do not have sysadmin rights on your system, you can just
1277  copy the files in 
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 UserDir/doc/
1283 \end_layout
1284
1285 \end_inset
1286
1287  and the items in the 
1288 \begin_inset Flex Noun
1289 status collapsed
1290
1291 \begin_layout Plain Layout
1292 Help
1293 \end_layout
1294
1295 \end_inset
1296
1297  menu will open them!
1298 \end_layout
1299
1300 \begin_layout Section
1301 Running \SpecialChar LyX
1302  with multiple configurations
1303 \end_layout
1304
1305 \begin_layout Standard
1306 The configuration freedom of the local configuration directory may not suffice
1307  if you want to have more than one configuration at your disposal.
1308  For example, you may want to be use different key bindings or printer settings
1309  at different times.
1310  You can achieve this by having several such directories.
1311  You then specify which directory to use at run-time.
1312 \end_layout
1313
1314 \begin_layout Standard
1315 Invoking \SpecialChar LyX
1316  with the command line switch 
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321 -userdir
1322 \end_layout
1323
1324 \end_inset
1325
1326  
1327 \emph on
1328 <some directory>
1329 \emph default
1330  instructs the program to read the configuration from that directory, and
1331  not from the default directory.
1332  (You can determine the default directory by running \SpecialChar LyX
1333  without the 
1334 \begin_inset Flex Code
1335 status collapsed
1336
1337 \begin_layout Plain Layout
1338 -userdir
1339 \end_layout
1340
1341 \end_inset
1342
1343  switch.) If the specified directory does not exist, \SpecialChar LyX
1344  offers to create it
1345  for you, just like it does for the default directory on the first time
1346  you run the program.
1347  You can modify the configuration options in this additional user directory
1348  exactly as you would for the default directory.
1349  These directories are completely independent (but read on).
1350  Note that setting the environment variable 
1351 \begin_inset Flex Code
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355 LYX_USERDIR_VER
1356 \end_layout
1357
1358 \end_inset
1359
1360  to some value has exactly the same effect.
1361 \end_layout
1362
1363 \begin_layout Standard
1364 Having several configurations also requires more maintenance: if you want
1365  to add a new layout to 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370 NewUserDir/layouts
1371 \end_layout
1372
1373 \end_inset
1374
1375  which you want available from all your configurations, you must add it
1376  to each directory separately.
1377  You can avoid this with the following trick: after \SpecialChar LyX
1378  creates the additional
1379  directory, most of the subdirectories (see above) are empty.
1380  If you want the new configuration to mirror an existing one, replace the
1381  empty subdirectory with a symbolic link to the matching subdirectory in
1382  the existing configuration.
1383  Take care with the 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388 doc/
1389 \end_layout
1390
1391 \end_inset
1392
1393  subdirectory, however, since it contains a file written by the configuration
1394  script (also accessible through 
1395 \begin_inset Flex Noun
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399 Tools\SpecialChar menuseparator
1400 Reconfigure
1401 \end_layout
1402
1403 \end_inset
1404
1405 ) which is configuration-specific.
1406 \end_layout
1407
1408 \begin_layout Chapter
1409 The Preferences dialog
1410 \end_layout
1411
1412 \begin_layout Standard
1413 All options of the preferences dialog are described in the Appendix 
1414 \emph on
1415 The Preferences Dialog
1416 \emph default
1417  in the 
1418 \emph on
1419 User's Guide
1420 \emph default
1421 .
1422  For some options you might find here more details.
1423 \end_layout
1424
1425 \begin_layout Section
1426 Formats
1427 \begin_inset CommandInset label
1428 LatexCommand label
1429 name "sec:Formats"
1430
1431 \end_inset
1432
1433
1434 \end_layout
1435
1436 \begin_layout Standard
1437 The first step is to define your file formats if they are not already defined.
1438  To do so, open the 
1439 \begin_inset Flex Noun
1440 status collapsed
1441
1442 \begin_layout Plain Layout
1443 Tools\SpecialChar menuseparator
1444 Preferences
1445 \end_layout
1446
1447 \end_inset
1448
1449  dialog.
1450  Under 
1451 \begin_inset Flex Noun
1452 status collapsed
1453
1454 \begin_layout Plain Layout
1455 File Handling\SpecialChar menuseparator
1456 File formats
1457 \end_layout
1458
1459 \end_inset
1460
1461  press the 
1462 \begin_inset Flex Noun
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 New
1467 \end_layout
1468
1469 \end_inset
1470
1471  button to define your new format.
1472  The 
1473 \begin_inset Flex Noun
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 Format
1478 \end_layout
1479
1480 \end_inset
1481
1482  field contains the name used to identify the format in the GUI.
1483  The 
1484 \begin_inset Flex Noun
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 Short Name
1489 \end_layout
1490
1491 \end_inset
1492
1493  is used to identify the format internally.
1494  You will also need to enter a file extension.
1495  These are all required.
1496  The optional 
1497 \begin_inset Flex Noun
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 Shortcut
1502 \end_layout
1503
1504 \end_inset
1505
1506  field is used to provide a keyboard shortcut on the menus.
1507  (For example, pressing 
1508 \begin_inset Flex Noun
1509 status collapsed
1510
1511 \begin_layout Plain Layout
1512 Ctrl+D
1513 \end_layout
1514
1515 \end_inset
1516
1517  will 
1518 \begin_inset Flex Noun
1519 status collapsed
1520
1521 \begin_layout Plain Layout
1522 Document\SpecialChar menuseparator
1523 View (Other Formats)\SpecialChar menuseparator
1524 DVI
1525 \end_layout
1526
1527 \end_inset
1528
1529 .) 
1530 \end_layout
1531
1532 \begin_layout Standard
1533 A Format can have a 
1534 \begin_inset Flex Noun
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 Viewer
1539 \end_layout
1540
1541 \end_inset
1542
1543  and an 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Editor
1549 \end_layout
1550
1551 \end_inset
1552
1553  associated with it.
1554  For example, you might want to use 
1555 \begin_inset Flex Noun
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559 Ghostview
1560 \end_layout
1561
1562 \end_inset
1563
1564  to view PostScript files.
1565  You can enter the command needed to start the program in the corresponding
1566  fields.
1567  In defining this command, you can use the four variables listed in the
1568  next section.
1569  The viewer is launched when you view an image in \SpecialChar LyX
1570  or use the 
1571 \begin_inset Flex Noun
1572 status collapsed
1573
1574 \begin_layout Plain Layout
1575 Document\SpecialChar menuseparator
1576 View
1577 \end_layout
1578
1579 \end_inset
1580
1581  menu.
1582  The editor is for example launched when you right-click on an image and
1583  choose 
1584 \begin_inset Flex Noun
1585 status collapsed
1586
1587 \begin_layout Plain Layout
1588 Edit externally
1589 \end_layout
1590
1591 \end_inset
1592
1593  in the appearing context menu.
1594 \end_layout
1595
1596 \begin_layout Standard
1597 The 
1598 \begin_inset Flex Noun
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602 MIME
1603 \end_layout
1604
1605 \end_inset
1606
1607  type of a format is optional, but if it is specified, it must be unique
1608  across all formats.
1609  It is used to detect files of this format from the file contents.
1610  For some important file formats there is no MIME type officially registered
1611  with the 
1612 \begin_inset CommandInset href
1613 LatexCommand href
1614 name "IANA"
1615 target "http://www.iana.org/assignments/media-types/"
1616 literal "false"
1617
1618 \end_inset
1619
1620 .
1621  Therefore \SpecialChar LyX
1622  uses the extended list of MIME types as specified by 
1623 \begin_inset CommandInset href
1624 LatexCommand href
1625 name "freedesktop.org"
1626 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1627 literal "false"
1628
1629 \end_inset
1630
1631 .
1632 \end_layout
1633
1634 \begin_layout Standard
1635 The 
1636 \begin_inset Flex Noun
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 Document format
1641 \end_layout
1642
1643 \end_inset
1644
1645  option tells \SpecialChar LyX
1646  that a format is suitable for document export.
1647  If this is set and if a suitable conversion route exists (see 
1648 \begin_inset CommandInset ref
1649 LatexCommand ref
1650 reference "sec:Converters"
1651
1652 \end_inset
1653
1654 ), the format will appear in the 
1655 \begin_inset Flex Noun
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 File\SpecialChar menuseparator
1660 Export
1661 \end_layout
1662
1663 \end_inset
1664
1665  menu.
1666  The format will also appear in the 
1667 \begin_inset Flex Noun
1668 status collapsed
1669
1670 \begin_layout Plain Layout
1671 Document\SpecialChar menuseparator
1672 View
1673 \end_layout
1674
1675 \end_inset
1676
1677  menu if a viewer is specified for the format.
1678  Pure image formats, such as 
1679 \begin_inset Flex Code
1680 status collapsed
1681
1682 \begin_layout Plain Layout
1683 png
1684 \end_layout
1685
1686 \end_inset
1687
1688 , should not use this option.
1689  Formats that can both represent vector graphics and documents like 
1690 \begin_inset Flex Code
1691 status collapsed
1692
1693 \begin_layout Plain Layout
1694 pdf
1695 \end_layout
1696
1697 \end_inset
1698
1699  should use it.
1700 \end_layout
1701
1702 \begin_layout Standard
1703 The option 
1704 \begin_inset Flex Noun
1705 status collapsed
1706
1707 \begin_layout Plain Layout
1708 Vector graphics format
1709 \end_layout
1710
1711 \end_inset
1712
1713  tells \SpecialChar LyX
1714  that a format can contain vector graphics.
1715  This information is used to determine the target format of included graphics
1716  for 
1717 \begin_inset Flex Noun
1718 status collapsed
1719
1720 \begin_layout Plain Layout
1721 pdflatex
1722 \end_layout
1723
1724 \end_inset
1725
1726  export.
1727  Included graphics may need to be converted to either 
1728 \begin_inset Flex Noun
1729 status collapsed
1730
1731 \begin_layout Plain Layout
1732 pdf
1733 \end_layout
1734
1735 \end_inset
1736
1737
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 png
1743 \end_layout
1744
1745 \end_inset
1746
1747 , or 
1748 \begin_inset Flex Noun
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 jpg
1753 \end_layout
1754
1755 \end_inset
1756
1757 , since 
1758 \begin_inset Flex Noun
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 pdflatex
1763 \end_layout
1764
1765 \end_inset
1766
1767  cannot handle other image formats.
1768  If an included graphic is not already in 
1769 \begin_inset Flex Noun
1770 status collapsed
1771
1772 \begin_layout Plain Layout
1773 pdf
1774 \end_layout
1775
1776 \end_inset
1777
1778
1779 \begin_inset Flex Noun
1780 status collapsed
1781
1782 \begin_layout Plain Layout
1783 png
1784 \end_layout
1785
1786 \end_inset
1787
1788 , or 
1789 \begin_inset Flex Noun
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 jpg
1794 \end_layout
1795
1796 \end_inset
1797
1798  format, it is converted to 
1799 \begin_inset Flex Noun
1800 status collapsed
1801
1802 \begin_layout Plain Layout
1803 pdf
1804 \end_layout
1805
1806 \end_inset
1807
1808  if the vector format option is set, and otherwise to 
1809 \begin_inset Flex Noun
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 png
1814 \end_layout
1815
1816 \end_inset
1817
1818 .
1819 \end_layout
1820
1821 \begin_layout Section
1822 Copiers
1823 \end_layout
1824
1825 \begin_layout Standard
1826 Since all conversions from one format to another take place in \SpecialChar LyX
1827 's temporary
1828  directory, it is sometimes necessary to modify a file before copying it
1829  to the temporary directory in order that the conversion may be performed.
1830 \begin_inset Foot
1831 status collapsed
1832
1833 \begin_layout Plain Layout
1834 For example, the file may refer to other files—images, for example—using
1835  relative file names, and these may become invalid when the file is copied
1836  to the temporary directory.
1837 \end_layout
1838
1839 \end_inset
1840
1841  This is done by a Copier: It copies a file to (or from) the temporary directory
1842  and may modify it in the process.
1843 \end_layout
1844
1845 \begin_layout Standard
1846 The definitions of the copiers may use eight variables:
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$s
1856 \end_layout
1857
1858 \end_inset
1859
1860  The \SpecialChar LyX
1861  system directory (e.
1862 \begin_inset space \thinspace{}
1863 \end_inset
1864
1865 g.
1866 \begin_inset space \space{}
1867 \end_inset
1868
1869
1870 \begin_inset Flex Noun
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874 /usr/share/lyx
1875 \end_layout
1876
1877 \end_inset
1878
1879 ).
1880 \end_layout
1881
1882 \begin_layout Labeling
1883 \labelwidthstring 00.00.0000
1884 \begin_inset Flex Code
1885 status collapsed
1886
1887 \begin_layout Plain Layout
1888 $$i
1889 \end_layout
1890
1891 \end_inset
1892
1893  The input file
1894 \end_layout
1895
1896 \begin_layout Labeling
1897 \labelwidthstring 00.00.0000
1898 \begin_inset Flex Code
1899 status collapsed
1900
1901 \begin_layout Plain Layout
1902 $$o
1903 \end_layout
1904
1905 \end_inset
1906
1907  The output file
1908 \end_layout
1909
1910 \begin_layout Labeling
1911 \labelwidthstring 00.00.0000
1912 \begin_inset Flex Code
1913 status collapsed
1914
1915 \begin_layout Plain Layout
1916 $$b
1917 \end_layout
1918
1919 \end_inset
1920
1921  The base name (without filename extension) in the \SpecialChar LyX
1922  temporary directory
1923 \end_layout
1924
1925 \begin_layout Labeling
1926 \labelwidthstring 00.00.0000
1927 \begin_inset Flex Code
1928 status collapsed
1929
1930 \begin_layout Plain Layout
1931 $$p
1932 \end_layout
1933
1934 \end_inset
1935
1936  The full directory path of the \SpecialChar LyX
1937  temporary directory
1938 \end_layout
1939
1940 \begin_layout Labeling
1941 \labelwidthstring 00.00.0000
1942 \begin_inset Flex Code
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 $$r
1947 \end_layout
1948
1949 \end_inset
1950
1951  The full pathname to the original \SpecialChar LyX
1952  file being processed
1953 \end_layout
1954
1955 \begin_layout Labeling
1956 \labelwidthstring 00.00.0000
1957 \begin_inset Flex Code
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961 $$f
1962 \end_layout
1963
1964 \end_inset
1965
1966  The filename (without any directory path) of the \SpecialChar LyX
1967  file.
1968 \end_layout
1969
1970 \begin_layout Labeling
1971 \labelwidthstring 00.00.0000
1972 \begin_inset Flex Code
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 $$l
1977 \end_layout
1978
1979 \end_inset
1980
1981  The `\SpecialChar LaTeX
1982  name'
1983 \end_layout
1984
1985 \begin_layout Standard
1986 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1987 's 
1988 \series bold
1989
1990 \backslash
1991 include
1992 \series default
1993  command.
1994  It is relevant only when exporting files suitable for such inclusion.
1995 \end_layout
1996
1997 \begin_layout Standard
1998 Copiers can be used to do almost anything with output files.
1999  For example, suppose you want generated pdf files to be copied to a special
2000  directory, 
2001 \begin_inset Flex Code
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 /home/you/pdf/
2006 \end_layout
2007
2008 \end_inset
2009
2010 .
2011  Then you could write a shell script such as this one:
2012 \end_layout
2013
2014 \begin_layout Standard
2015 \begin_inset listings
2016 inline false
2017 status open
2018
2019 \begin_layout Plain Layout
2020
2021 #!/bin/bash
2022 \end_layout
2023
2024 \begin_layout Plain Layout
2025
2026 FROMFILE=$1
2027 \end_layout
2028
2029 \begin_layout Plain Layout
2030
2031 TOFILE=`basename $2`
2032 \end_layout
2033
2034 \begin_layout Plain Layout
2035
2036 cp $FROMFILE /home/you/pdf/$TOFILE
2037 \end_layout
2038
2039 \end_inset
2040
2041 Save it in your local \SpecialChar LyX
2042  directory—say, 
2043 \begin_inset Flex Code
2044 status collapsed
2045
2046 \begin_layout Plain Layout
2047 /home/you/.lyx/scripts/pdfcopier.sh
2048 \end_layout
2049
2050 \end_inset
2051
2052 —and make it executable, if you need to do so on your platform.
2053  Then, in the 
2054 \begin_inset Flex Noun
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 Tools\SpecialChar menuseparator
2059 Preferences
2060 \end_layout
2061
2062 \end_inset
2063
2064  dialog, select under 
2065 \begin_inset Flex Noun
2066 status collapsed
2067
2068 \begin_layout Plain Layout
2069 File Handling\SpecialChar menuseparator
2070 File formats
2071 \end_layout
2072
2073 \end_inset
2074
2075  the 
2076 \begin_inset Flex Noun
2077 status collapsed
2078
2079 \begin_layout Plain Layout
2080 PDF(pdflatex)
2081 \end_layout
2082
2083 \end_inset
2084
2085  format—or one of the other pdf formats—and enter 
2086 \begin_inset Flex Code
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090 pdfcopier.sh $$i $$o
2091 \end_layout
2092
2093 \end_inset
2094
2095  into the 
2096 \begin_inset Flex Noun
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100 Copier
2101 \end_layout
2102
2103 \end_inset
2104
2105  field.
2106  
2107 \end_layout
2108
2109 \begin_layout Standard
2110 Copiers are used by \SpecialChar LyX
2111  in various of its own conversions.
2112  For example, if appropriate programs are found, \SpecialChar LyX
2113  will automatically install
2114  copiers for the 
2115 \begin_inset Flex Noun
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 HTML
2120 \end_layout
2121
2122 \end_inset
2123
2124  and 
2125 \begin_inset Flex Noun
2126 status collapsed
2127
2128 \begin_layout Plain Layout
2129 HTML
2130 \begin_inset space ~
2131 \end_inset
2132
2133 (MS Word)
2134 \end_layout
2135
2136 \end_inset
2137
2138  formats.
2139  When these formats are exported, the copier sees that not just the main
2140  HTML file but various associated files (style files, images, etc.) are also
2141  copied.
2142  All these files are written to a subdirectory of the directory in which
2143  the original \SpecialChar LyX
2144  file was found.
2145 \begin_inset Foot
2146 status collapsed
2147
2148 \begin_layout Plain Layout
2149 This copier can be customized.
2150  The optional 
2151 \begin_inset Quotes eld
2152 \end_inset
2153
2154 -e
2155 \begin_inset Quotes erd
2156 \end_inset
2157
2158  argument takes a comma-separated list of extensions to be copied; if it
2159  is omitted, all files will be copied.
2160  The 
2161 \begin_inset Quotes eld
2162 \end_inset
2163
2164 -t
2165 \begin_inset Quotes erd
2166 \end_inset
2167
2168  argument determines the extension added to the generated directory.
2169  By default, it is 
2170 \begin_inset Quotes eld
2171 \end_inset
2172
2173
2174 \begin_inset Flex Noun
2175 status collapsed
2176
2177 \begin_layout Plain Layout
2178 LyXconv
2179 \end_layout
2180
2181 \end_inset
2182
2183
2184 \begin_inset Quotes erd
2185 \end_inset
2186
2187 , so HTML generated from 
2188 \begin_inset Flex Noun
2189 status collapsed
2190
2191 \begin_layout Plain Layout
2192 /path/to/filename.lyx
2193 \end_layout
2194
2195 \end_inset
2196
2197  will end up in 
2198 \begin_inset Flex Noun
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 /path/to/filename.html.LyXconv
2203 \end_layout
2204
2205 \end_inset
2206
2207 .
2208  
2209 \end_layout
2210
2211 \end_inset
2212
2213
2214 \end_layout
2215
2216 \begin_layout Section
2217 Converters
2218 \begin_inset CommandInset label
2219 LatexCommand label
2220 name "sec:Converters"
2221
2222 \end_inset
2223
2224
2225 \end_layout
2226
2227 \begin_layout Standard
2228 You can define your own Converters to convert files between different formats.
2229  This is done in the 
2230 \begin_inset Flex Noun
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 Tools\SpecialChar menuseparator
2235 Preferences\SpecialChar menuseparator
2236 File Handling\SpecialChar menuseparator
2237 Converters
2238 \end_layout
2239
2240 \end_inset
2241
2242  dialog.
2243 \end_layout
2244
2245 \begin_layout Standard
2246 To define a new converter, select the 
2247 \begin_inset Flex Noun
2248 status collapsed
2249
2250 \begin_layout Plain Layout
2251 From
2252 \begin_inset space ~
2253 \end_inset
2254
2255 format
2256 \end_layout
2257
2258 \end_inset
2259
2260  and 
2261 \begin_inset Flex Noun
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265 To
2266 \begin_inset space ~
2267 \end_inset
2268
2269 format
2270 \end_layout
2271
2272 \end_inset
2273
2274  from the drop-down lists, enter the command needed for the conversion,
2275  and then press the 
2276 \begin_inset Flex Noun
2277 status collapsed
2278
2279 \begin_layout Plain Layout
2280 Add
2281 \end_layout
2282
2283 \end_inset
2284
2285  button.
2286  Several variables can be used in the definition of converters:
2287 \end_layout
2288
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295 $$s
2296 \end_layout
2297
2298 \end_inset
2299
2300  The \SpecialChar LyX
2301  system directory
2302 \end_layout
2303
2304 \begin_layout Labeling
2305 \labelwidthstring 00.00.0000
2306 \begin_inset Flex Code
2307 status collapsed
2308
2309 \begin_layout Plain Layout
2310 $$i
2311 \end_layout
2312
2313 \end_inset
2314
2315  The input file
2316 \end_layout
2317
2318 \begin_layout Labeling
2319 \labelwidthstring 00.00.0000
2320 \begin_inset Flex Code
2321 status collapsed
2322
2323 \begin_layout Plain Layout
2324 $$o
2325 \end_layout
2326
2327 \end_inset
2328
2329  The output file
2330 \end_layout
2331
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Flex Code
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 $$b
2339 \end_layout
2340
2341 \end_inset
2342
2343  The base filename of the input file (i.
2344 \begin_inset space \thinspace{}
2345 \end_inset
2346
2347 g., without the extension)
2348 \end_layout
2349
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Flex Code
2353 status collapsed
2354
2355 \begin_layout Plain Layout
2356 $$p
2357 \end_layout
2358
2359 \end_inset
2360
2361  The path to the input file
2362 \end_layout
2363
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Flex Code
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 $$r
2371 \end_layout
2372
2373 \end_inset
2374
2375  The path to the original input file (this is different from $$p when a
2376  chain of converters is called)
2377 \end_layout
2378
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Flex Code
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 $$e
2386 \end_layout
2387
2388 \end_inset
2389
2390  The iconv name for the encoding of the document.
2391 \end_layout
2392
2393 \begin_layout Standard
2394 In the 
2395 \begin_inset Flex Noun
2396 status collapsed
2397
2398 \begin_layout Plain Layout
2399 Extra
2400 \begin_inset space ~
2401 \end_inset
2402
2403 Flag
2404 \end_layout
2405
2406 \end_inset
2407
2408  field you can enter the following flags, separated by commas:
2409 \end_layout
2410
2411 \begin_layout Labeling
2412 \labelwidthstring 00.00.0000
2413 \begin_inset Flex Code
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 latex
2418 \change_inserted -712698321 1524656940
2419 =flavor
2420 \change_unchanged
2421
2422 \end_layout
2423
2424 \end_inset
2425
2426  This converter runs some form of \SpecialChar LaTeX
2427 .
2428  This will make \SpecialChar LyX
2429 's \SpecialChar LaTeX
2430  error logs available.
2431
2432 \change_inserted -712698321 1524657018
2433  The optional 
2434 \begin_inset Flex Code
2435 status open
2436
2437 \begin_layout Plain Layout
2438
2439 \change_inserted -712698321 1524657012
2440 flavor
2441 \change_unchanged
2442
2443 \end_layout
2444
2445 \end_inset
2446
2447  value specifies the form of \SpecialChar LaTeX
2448  that is run (
2449 \begin_inset Flex Code
2450 status open
2451
2452 \begin_layout Plain Layout
2453
2454 \change_inserted -712698321 1524657005
2455 latex, pdflatex, platex, xetex, luatex
2456 \change_unchanged
2457
2458 \end_layout
2459
2460 \end_inset
2461
2462 ).
2463  If no value is specified, 
2464 \begin_inset Flex Code
2465 status open
2466
2467 \begin_layout Plain Layout
2468
2469 \change_inserted -712698321 1524657018
2470 latex
2471 \change_unchanged
2472
2473 \end_layout
2474
2475 \end_inset
2476
2477  is used.
2478 \change_unchanged
2479
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 needaux
2489 \change_inserted -712698321 1524656935
2490 =flavor
2491 \change_unchanged
2492
2493 \end_layout
2494
2495 \end_inset
2496
2497  Needs the \SpecialChar LaTeX
2498  
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 .aux
2504 \end_layout
2505
2506 \end_inset
2507
2508  file for the conversion.
2509
2510 \change_inserted -712698321 1524657047
2511  The optional 
2512 \begin_inset Flex Code
2513 status open
2514
2515 \begin_layout Plain Layout
2516
2517 \change_inserted -712698321 1524657030
2518 flavor
2519 \end_layout
2520
2521 \end_inset
2522
2523  value specifies the form of \SpecialChar LaTeX
2524  that is run in order to generate the 
2525 \begin_inset Flex Noun
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529
2530 \change_inserted -712698321 1524657047
2531 .aux
2532 \end_layout
2533
2534 \end_inset
2535
2536  file (
2537 \begin_inset Flex Code
2538 status open
2539
2540 \begin_layout Plain Layout
2541
2542 \change_inserted -712698321 1524657030
2543 latex, pdflatex, platex, xetex, luatex
2544 \end_layout
2545
2546 \end_inset
2547
2548 ).
2549  If no value is specified, 
2550 \begin_inset Flex Code
2551 status open
2552
2553 \begin_layout Plain Layout
2554
2555 \change_inserted -712698321 1524657030
2556 latex
2557 \end_layout
2558
2559 \end_inset
2560
2561  is used.
2562 \change_unchanged
2563
2564 \end_layout
2565
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2568 \begin_inset Flex Code
2569 status collapsed
2570
2571 \begin_layout Plain Layout
2572 nice
2573 \end_layout
2574
2575 \end_inset
2576
2577  Needs a 
2578 \begin_inset Quotes eld
2579 \end_inset
2580
2581 nice
2582 \begin_inset Quotes erd
2583 \end_inset
2584
2585  file from the backend, which in practice means a \SpecialChar LaTeX
2586  file like the one we
2587  would export, without 
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 input@path
2593 \end_layout
2594
2595 \end_inset
2596
2597 .
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 xml
2607 \end_layout
2608
2609 \end_inset
2610
2611  Output is XML.
2612 \end_layout
2613
2614 \begin_layout Standard
2615 The following three flags are not really flags at all because they take
2616  an argument in the 
2617 \begin_inset Flex Noun
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 key
2622 \begin_inset space ~
2623 \end_inset
2624
2625 =
2626 \begin_inset space ~
2627 \end_inset
2628
2629 value
2630 \end_layout
2631
2632 \end_inset
2633
2634  format:
2635 \end_layout
2636
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2639
2640 \change_inserted -712698321 1523206314
2641 \begin_inset Flex Code
2642 status collapsed
2643
2644 \begin_layout Plain Layout
2645
2646 \change_inserted -712698321 1523206193
2647 hyperref-driver
2648 \end_layout
2649
2650 \end_inset
2651
2652  The name of the driver that needs to be loaded with the 
2653 \family sans
2654 hyperref
2655 \family default
2656  package for this converter.
2657  The loading of the correct driver is necessary to get some PDF-specific
2658  features.
2659  See the 
2660 \family sans
2661 hyperref
2662 \family default
2663  manual for details.
2664 \end_layout
2665
2666 \begin_layout Labeling
2667 \labelwidthstring 00.00.0000
2668 \begin_inset Flex Code
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672 parselog
2673 \end_layout
2674
2675 \end_inset
2676
2677  If set, the converter's standard error will be redirected to a file 
2678 \begin_inset Flex Code
2679 status collapsed
2680
2681 \begin_layout Plain Layout
2682 infile.out
2683 \end_layout
2684
2685 \end_inset
2686
2687 , and the script given as argument will be run as: 
2688 \begin_inset Flex Code
2689 status collapsed
2690
2691 \begin_layout Plain Layout
2692 script < infile.out > infile.log
2693 \end_layout
2694
2695 \end_inset
2696
2697 .
2698  The argument may contain 
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 $$s
2704 \end_layout
2705
2706 \end_inset
2707
2708 .
2709 \end_layout
2710
2711 \begin_layout Labeling
2712 \labelwidthstring 00.00.0000
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 resultdir
2718 \end_layout
2719
2720 \end_inset
2721
2722  The name of the directory in which the converter will dump the generated
2723  files.
2724  \SpecialChar LyX
2725  will not create this directory, and it does not copy anything into it,
2726  though it will copy this directory to the destination.
2727  The argument may contain 
2728 \begin_inset Flex Code
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 $$b
2733 \end_layout
2734
2735 \end_inset
2736
2737 , which will be replaced by the base name of the input and output files,
2738  respectively, when the directory is copied.
2739 \begin_inset Newline newline
2740 \end_inset
2741
2742 Note that resultdir and usetempdir make no sense together.
2743  The latter will be ignored if the former is given.
2744 \end_layout
2745
2746 \begin_layout Labeling
2747 \labelwidthstring 00.00.0000
2748 \begin_inset Flex Code
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 resultfile
2753 \end_layout
2754
2755 \end_inset
2756
2757  Determines the output file name and may, contain 
2758 \begin_inset Flex Code
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 $$b
2763 \end_layout
2764
2765 \end_inset
2766
2767 .
2768  Sensible only with resultdir and optional even then; if not given, it defaults
2769  to `index'.
2770 \end_layout
2771
2772 \begin_layout Standard
2773
2774 \change_inserted -712698321 1523206384
2775 A suitable hyperref-driver is set for some converters that are installed
2776  with \SpecialChar LyX
2777 .
2778  
2779 \change_deleted -712698321 1523206388
2780 None of these
2781 \change_inserted -712698321 1523206389
2782 The
2783 \change_unchanged
2784  last three
2785 \change_inserted -712698321 1523206400
2786  flags, however,
2787 \change_unchanged
2788  are presently 
2789 \change_inserted -712698321 1523206407
2790 not 
2791 \change_unchanged
2792 used in any of the 
2793 \change_inserted -712698321 1523206437
2794 pre-installed 
2795 \change_unchanged
2796 converters
2797 \change_deleted -712698321 1523206442
2798  that are installed with \SpecialChar LyX
2799
2800 \change_unchanged
2801 .
2802  
2803 \end_layout
2804
2805 \begin_layout Standard
2806 You do not have to define converters for all formats between which you want
2807  to convert.
2808  For example, you will note that there is no `\SpecialChar LyX
2809  to PostScript' converter,
2810  but \SpecialChar LyX
2811  will export PostScript.
2812  It does so by first creating a \SpecialChar LaTeX
2813  file (no converter needs to be defined
2814  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2815  to DVI' converter,
2816  and finally converting the resulting DVI file to PostScript.
2817  \SpecialChar LyX
2818  finds such `chains' of converters automatically, and it will always choose
2819  the shortest possible chain.
2820  You can, though, still define multiple conversion methods between file
2821  formats.
2822  For example, the standard \SpecialChar LyX
2823  configuration provides five ways to convert
2824  \SpecialChar LaTeX
2825  to PDF:
2826 \end_layout
2827
2828 \begin_layout Enumerate
2829 Directly, using 
2830 \begin_inset Flex Noun
2831 status collapsed
2832
2833 \begin_layout Plain Layout
2834 pdflatex
2835 \end_layout
2836
2837 \end_inset
2838
2839
2840 \end_layout
2841
2842 \begin_layout Enumerate
2843 via (DVI and) PostScript, using 
2844 \begin_inset Flex Noun
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 ps2pdf
2849 \end_layout
2850
2851 \end_inset
2852
2853
2854 \end_layout
2855
2856 \begin_layout Enumerate
2857 via DVI, using 
2858 \begin_inset Flex Noun
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 dvipdfm
2863 \end_layout
2864
2865 \end_inset
2866
2867
2868 \end_layout
2869
2870 \begin_layout Enumerate
2871 directly using 
2872 \begin_inset Flex Noun
2873 status collapsed
2874
2875 \begin_layout Plain Layout
2876 Xe\SpecialChar TeX
2877
2878 \end_layout
2879
2880 \end_inset
2881
2882
2883 \end_layout
2884
2885 \begin_layout Enumerate
2886 directly using 
2887 \begin_inset Flex Noun
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891 Lua\SpecialChar TeX
2892
2893 \end_layout
2894
2895 \end_inset
2896
2897
2898 \end_layout
2899
2900 \begin_layout Standard
2901 To define such alternate chains, you must define multiple target `file formats',
2902  as described in 
2903 \begin_inset CommandInset ref
2904 LatexCommand ref
2905 reference "sec:Formats"
2906
2907 \end_inset
2908
2909 .
2910  For example, in the standard configuration, the formats named 
2911 \begin_inset Flex Noun
2912 status collapsed
2913
2914 \begin_layout Plain Layout
2915 pdf
2916 \end_layout
2917
2918 \end_inset
2919
2920  (for 
2921 \begin_inset Flex Noun
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925 ps2pdf
2926 \end_layout
2927
2928 \end_inset
2929
2930 ), 
2931 \begin_inset Flex Noun
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935 pdf2
2936 \end_layout
2937
2938 \end_inset
2939
2940  (for 
2941 \begin_inset Flex Noun
2942 status collapsed
2943
2944 \begin_layout Plain Layout
2945 pdflatex
2946 \end_layout
2947
2948 \end_inset
2949
2950 ), 
2951 \begin_inset Flex Noun
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 pdf3
2956 \end_layout
2957
2958 \end_inset
2959
2960  (for 
2961 \begin_inset Flex Noun
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965 dvipdfm
2966 \end_layout
2967
2968 \end_inset
2969
2970 ), 
2971 \begin_inset Flex Noun
2972 status collapsed
2973
2974 \begin_layout Plain Layout
2975 pdf4
2976 \end_layout
2977
2978 \end_inset
2979
2980  (for 
2981 \begin_inset Flex Noun
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 Xe\SpecialChar TeX
2986
2987 \end_layout
2988
2989 \end_inset
2990
2991 ), and 
2992 \begin_inset Flex Noun
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 pdf5
2997 \end_layout
2998
2999 \end_inset
3000
3001  (for 
3002 \begin_inset Flex Noun
3003 status collapsed
3004
3005 \begin_layout Plain Layout
3006 Lua\SpecialChar TeX
3007
3008 \end_layout
3009
3010 \end_inset
3011
3012 ) are defined, all of which share the extension 
3013 \begin_inset Flex Noun
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 .pdf
3018 \end_layout
3019
3020 \end_inset
3021
3022 , and which correspond to the conversion methods just mentioned.
3023 \end_layout
3024
3025 \begin_layout Chapter
3026 Internationalizing \SpecialChar LyX
3027
3028 \begin_inset CommandInset label
3029 LatexCommand label
3030 name "cha:Internationalizing-LyX"
3031
3032 \end_inset
3033
3034
3035 \end_layout
3036
3037 \begin_layout Standard
3038 \SpecialChar LyX
3039  supports using a translated interface.
3040  Last time we checked, \SpecialChar LyX
3041  provided text in thirty languages.
3042  The language of choice is called your 
3043 \emph on
3044 locale
3045 \emph default
3046 .
3047  (For further reading on locale settings, see also the documentation for
3048  locale that comes with your operating system.
3049  For Linux, the manual page for 
3050 \begin_inset Flex Code
3051 status collapsed
3052
3053 \begin_layout Plain Layout
3054 locale(5)
3055 \end_layout
3056
3057 \end_inset
3058
3059  could be a good place to start).
3060 \end_layout
3061
3062 \begin_layout Standard
3063 Notice that these translations will work, but do contain a few flaws.
3064  In particular, all dialogs have been designed with the English text in
3065  mind, which means that some of the translated text will be too large to
3066  fit within the space allocated.
3067  This is only a display problem and will not cause any harm.
3068  Also, you will find that some of the translations do not define shortcut
3069  keys for everything.
3070  Sometimes, there are simply not enough free letters to do it.
3071  Other times, the translator just hasn't got around to doing it yet.
3072  Our localization team, which you may wish to join,
3073 \begin_inset Foot
3074 status collapsed
3075
3076 \begin_layout Plain Layout
3077 If you are a fluent speaker of a language other than English, joining these
3078  teams is a great way to give back to the \SpecialChar LyX
3079  community!
3080 \end_layout
3081
3082 \end_inset
3083
3084  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3085 .
3086 \end_layout
3087
3088 \begin_layout Section
3089 Translating \SpecialChar LyX
3090
3091 \end_layout
3092
3093 \begin_layout Subsection
3094 Translating the graphical user interface (text messages).
3095 \end_layout
3096
3097 \begin_layout Standard
3098 \SpecialChar LyX
3099  uses the GNU 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 gettext
3105 \end_layout
3106
3107 \end_inset
3108
3109  library to handle the internationalization of the interface.
3110  To have \SpecialChar LyX
3111  speak your favorite language in all menus and dialogs, you need
3112  a 
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 po
3118 \end_layout
3119
3120 \end_inset
3121
3122 -file for that language.
3123  When this is available, you'll have to generate a 
3124 \begin_inset Flex Code
3125 status collapsed
3126
3127 \begin_layout Plain Layout
3128 mo
3129 \end_layout
3130
3131 \end_inset
3132
3133 -file from it and install the 
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138 mo
3139 \end_layout
3140
3141 \end_inset
3142
3143 -file.
3144  The process of doing all of this is explained in the documentation for
3145  GNU 
3146 \begin_inset Flex Code
3147 status collapsed
3148
3149 \begin_layout Plain Layout
3150 gettext
3151 \end_layout
3152
3153 \end_inset
3154
3155 .
3156  It is possible to do this just for yourself, but if you're going to do
3157  it, you might as well share the results of your labors with the rest of
3158  the \SpecialChar LyX
3159  community.
3160  Send a message to the \SpecialChar LyX
3161  developers' list for more information about how
3162  to proceed.
3163 \end_layout
3164
3165 \begin_layout Standard
3166 In short, this is what you should do (xx denotes the language code):
3167 \end_layout
3168
3169 \begin_layout Itemize
3170 Check out the \SpecialChar LyX
3171  source code.
3172  (See the 
3173 \begin_inset CommandInset href
3174 LatexCommand href
3175 name "information on the web"
3176 target "https://www.lyx.org/HowToUseGIT"
3177 literal "false"
3178
3179 \end_inset
3180
3181 .)
3182 \end_layout
3183
3184 \begin_layout Itemize
3185 Copy the file 
3186 \begin_inset Flex Code
3187 status collapsed
3188
3189 \begin_layout Plain Layout
3190 lyx.pot
3191 \end_layout
3192
3193 \end_inset
3194
3195  to the folder of the 
3196 \begin_inset Flex Code
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 **.po
3201 \end_layout
3202
3203 \end_inset
3204
3205  files.
3206  Then rename it to 
3207 \begin_inset Flex Code
3208 status collapsed
3209
3210 \begin_layout Plain Layout
3211 xx.po
3212 \end_layout
3213
3214 \end_inset
3215
3216 .
3217  (If 
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 lyx.pot
3223 \end_layout
3224
3225 \end_inset
3226
3227  doesn't exist anywhere, it can be remade with the console command 
3228 \begin_inset Flex Code
3229 status collapsed
3230
3231 \begin_layout Plain Layout
3232 make lyx.pot
3233 \end_layout
3234
3235 \end_inset
3236
3237  in that directory, or you can use an existing po-file for some other language
3238  as a template).
3239 \end_layout
3240
3241 \begin_layout Itemize
3242 Edit 
3243 \begin_inset Flex Code
3244 status collapsed
3245
3246 \begin_layout Plain Layout
3247 xx.po
3248 \end_layout
3249
3250 \end_inset
3251
3252 .
3253 \begin_inset Foot
3254 status collapsed
3255
3256 \begin_layout Plain Layout
3257 This is just a text file, so it can be edited in any text editor.
3258  But there are also specialized programs that support such editing, such
3259  as 
3260 \family typewriter
3261 Poedit
3262 \family default
3263  (for all platforms) or 
3264 \family typewriter
3265 KBabel
3266 \family default
3267  (for KDE).
3268  
3269 \family typewriter
3270 Emacs
3271 \family default
3272  contains a `mode' for editing 
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 po
3278 \end_layout
3279
3280 \end_inset
3281
3282  files, as well, see 
3283 \begin_inset Flex URL
3284 status open
3285
3286 \begin_layout Plain Layout
3287
3288 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3289 \end_layout
3290
3291 \end_inset
3292
3293 .
3294 \end_layout
3295
3296 \end_inset
3297
3298  For some menu- and widget-labels, there are also shortcut keys that should
3299  be translated.
3300  Those keys are marked after a `|', and should be translated according to
3301  the words and phrases of the language.
3302  You should also fill also out the information at the beginning of the new
3303  
3304 \begin_inset Flex Code
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308 po
3309 \end_layout
3310
3311 \end_inset
3312
3313 -file with your email-address, etc., so people know where to reach you with
3314  suggestions and entertaining flames.
3315 \end_layout
3316
3317 \begin_layout Standard
3318 If you are just doing this on your own, then:
3319 \end_layout
3320
3321 \begin_layout Itemize
3322 Generate 
3323 \begin_inset Flex Code
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327 xx.mo
3328 \end_layout
3329
3330 \end_inset
3331
3332 .
3333  This can be done with 
3334 \begin_inset Flex Code
3335 status collapsed
3336
3337 \begin_layout Plain Layout
3338 msgfmt -o xx.mo < xx.po
3339 \end_layout
3340
3341 \end_inset
3342
3343 .
3344 \end_layout
3345
3346 \begin_layout Itemize
3347 Copy the 
3348 \begin_inset Flex Code
3349 status collapsed
3350
3351 \begin_layout Plain Layout
3352 mo
3353 \end_layout
3354
3355 \end_inset
3356
3357 -file to your locale-tree, at the correct directory for application messages
3358  for the language
3359 \series bold
3360  
3361 \series default
3362 xx, and under the name 
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 lyx.mo
3368 \end_layout
3369
3370 \end_inset
3371
3372  (e.
3373 \begin_inset space \thinspace{}
3374 \end_inset
3375
3376 g.
3377 \begin_inset space \space{}
3378 \end_inset
3379
3380
3381 \begin_inset Flex Code
3382 status collapsed
3383
3384 \begin_layout Plain Layout
3385 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3386 \end_layout
3387
3388 \end_inset
3389
3390
3391 \series bold
3392 .
3393 \end_layout
3394
3395 \begin_layout Standard
3396 As said, however, it would be best if the new 
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 po
3402 \end_layout
3403
3404 \end_inset
3405
3406  file could be added to the \SpecialChar LyX
3407  distribution, so others can use it.
3408  Adding it involves making additional changes to \SpecialChar LyX
3409 .
3410  So send an email to the developers' mailing list if you're interested in
3411  doing that.
3412 \end_layout
3413
3414 \begin_layout Subsubsection
3415 Ambiguous messages
3416 \end_layout
3417
3418 \begin_layout Standard
3419 Sometimes it turns out that one English message needs to be translated into
3420  different messages in the target language.
3421  One example is the message 
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 To
3427 \end_layout
3428
3429 \end_inset
3430
3431  which has the German translation 
3432 \lang german
3433 Nach
3434 \lang english
3435  or 
3436 \lang german
3437 Bis
3438 \lang english
3439 , depending upon exactly what the English 
3440 \begin_inset Quotes eld
3441 \end_inset
3442
3443 to
3444 \begin_inset Quotes erd
3445 \end_inset
3446
3447  means.
3448  GNU 
3449 \begin_inset Flex Code
3450 status collapsed
3451
3452 \begin_layout Plain Layout
3453 gettext
3454 \end_layout
3455
3456 \end_inset
3457
3458  does not handle such ambiguous translations.
3459  Therefore you have to add some context information to the message: Instead
3460  of 
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465 To
3466 \end_layout
3467
3468 \end_inset
3469
3470  it becomes 
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 To[[as in 'From format x to format y']]
3476 \end_layout
3477
3478 \end_inset
3479
3480  and 
3481 \begin_inset Flex Code
3482 status collapsed
3483
3484 \begin_layout Plain Layout
3485 To[[as in 'From page x to page y']].
3486 \end_layout
3487
3488 \end_inset
3489
3490  Now the two occurrences of 
3491 \begin_inset Flex Code
3492 status collapsed
3493
3494 \begin_layout Plain Layout
3495 To
3496 \end_layout
3497
3498 \end_inset
3499
3500  are different for 
3501 \begin_inset Flex Code
3502 status collapsed
3503
3504 \begin_layout Plain Layout
3505 gettext
3506 \end_layout
3507
3508 \end_inset
3509
3510  and can be translated correctly to 
3511 \lang german
3512 Nach
3513 \lang english
3514  and 
3515 \lang german
3516 Bis
3517 \lang english
3518 , respectively.
3519 \end_layout
3520
3521 \begin_layout Standard
3522 Of course the context information needs to be stripped off the original
3523  message when no translation is used.
3524  Therefore you have to put it in double square brackets at the end of the
3525  message (see the example above).
3526  The translation mechanism of \SpecialChar LyX
3527  ensures that everything in double square
3528  brackets at the end of messages is removed before displaying the message.
3529 \end_layout
3530
3531 \begin_layout Subsection
3532 Translating the documentation.
3533 \end_layout
3534
3535 \begin_layout Standard
3536 The online documentation (in the 
3537 \begin_inset Flex Noun
3538 status collapsed
3539
3540 \begin_layout Plain Layout
3541 Help
3542 \end_layout
3543
3544 \end_inset
3545
3546 -menu) can (and should!) be translated.
3547  If there are translated versions of the documentation available
3548 \begin_inset Foot
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 As of March 2008, at least some of the documents have been translated into
3553  fourteen languages, with the Tutorial available in a few more.
3554 \end_layout
3555
3556 \end_inset
3557
3558  and the locale is set accordingly, these will be used automagically by
3559  \SpecialChar LyX
3560 .
3561  \SpecialChar LyX
3562  looks for translated versions as 
3563 \begin_inset Flex Code
3564 status collapsed
3565
3566 \begin_layout Plain Layout
3567 LyXDir/doc/xx/DocName.lyx
3568 \end_layout
3569
3570 \end_inset
3571
3572 , where 
3573 \begin_inset Flex Code
3574 status collapsed
3575
3576 \begin_layout Plain Layout
3577 xx
3578 \end_layout
3579
3580 \end_inset
3581
3582  is the code for the language currently in use.
3583  If there are no translated documents, the default English versions will
3584  be displayed.
3585  Note that the translated versions must have the same filenames (
3586 \begin_inset Flex Code
3587 status collapsed
3588
3589 \begin_layout Plain Layout
3590 DocName
3591 \end_layout
3592
3593 \end_inset
3594
3595  above) as the original.
3596  If you feel up to translating the documentation (an excellent way to proof-read
3597  the original documentation by the way!), there are a few things you should
3598  do right away:
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 Check out the documentation translation web page at 
3603 \begin_inset CommandInset href
3604 LatexCommand href
3605 name "https://www.lyx.org/Translation"
3606 target "https://www.lyx.org/Translation"
3607 literal "false"
3608
3609 \end_inset
3610
3611 .
3612  That way, you can find out which (if any) documents have already been translate
3613 d into your language.
3614  You can also find out who (if anyone) is organizing the effort to translate
3615  the documentation into your language.
3616  If no one is organizing the effort, please let us know that you're interested.
3617 \end_layout
3618
3619 \begin_layout Standard
3620 Once you get to actually translating, here's a few hints for you that may
3621  save you trouble:
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Join the documentation team! There is information on how to do that in 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 Intro.lyx
3631 \end_layout
3632
3633 \end_inset
3634
3635  (
3636 \begin_inset Flex Noun
3637 status collapsed
3638
3639 \begin_layout Plain Layout
3640 Help\SpecialChar menuseparator
3641 Introduction
3642 \end_layout
3643
3644 \end_inset
3645
3646 ), which by the way is the first document you should translate.
3647 \end_layout
3648
3649 \begin_layout Itemize
3650 Learn the typographic conventions for the language you are translating to.
3651  Typography is an ancient art and over the centuries, a great variety of
3652  conventions have developed throughout different parts of the world.
3653  Also study the professional terminology amongst typographers in your country.
3654  Inventing your own terminology will only confuse the users.
3655  
3656 \emph on
3657 (Warning! Typography is addictive!)
3658 \end_layout
3659
3660 \begin_layout Itemize
3661 Make a copy of the document.
3662  This will be your working copy.
3663  You can use this as your personal translated help-file by placing it in
3664  your 
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 UserDir/doc/xx/
3670 \end_layout
3671
3672 \end_inset
3673
3674  directory.
3675 \begin_inset Note Greyedout
3676 status open
3677
3678 \begin_layout Plain Layout
3679
3680 \series bold
3681 Note:
3682 \series default
3683  For a complex document with external material (images, etc.), if you make
3684  a copy e.
3685 \begin_inset space \thinspace{}
3686 \end_inset
3687
3688 g.
3689 \begin_inset space \space{}
3690 \end_inset
3691
3692 in a temp dir, beware that the links to external material may be broken
3693  when the document is moved to a different place.
3694  The best way is to retrieve the \SpecialChar LyX
3695  tree from git (see 
3696 \begin_inset Flex URL
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700
3701 https://www.lyx.org/HowToUseGIT
3702 \end_layout
3703
3704 \end_inset
3705
3706 ) and to edit the doc file in place.
3707 \end_layout
3708
3709 \end_inset
3710
3711
3712 \end_layout
3713
3714 \begin_layout Itemize
3715 Sometimes the original document (from the \SpecialChar LyX
3716  team) will be updated.
3717  Use the source viewer at 
3718 \begin_inset CommandInset href
3719 LatexCommand href
3720 name "https://www.lyx.org/trac/timeline"
3721 target "https://www.lyx.org/trac/timeline"
3722 literal "false"
3723
3724 \end_inset
3725
3726  to see what has been changed.
3727  That way you can easily see which parts of the translated document need
3728  to be updated.
3729 \end_layout
3730
3731 \begin_layout Standard
3732 If you ever find an error in the original document, fix it and notify the
3733  rest of the documentation team of the changes! (You didn't forget to join
3734  the documentation team, did you?)
3735 \end_layout
3736
3737 \begin_layout Standard
3738 \begin_inset Branch OutDated
3739 inverted 0
3740 status collapsed
3741
3742 \begin_layout Section
3743 International Keyboard Support
3744 \end_layout
3745
3746 \begin_layout Standard
3747
3748 \emph on
3749 [Editor's Note: The following section is by
3750 \emph default
3751  
3752 \shape smallcaps
3753 \emph on
3754 Ivan Schreter
3755 \shape default
3756 .
3757  It needs to be fixed to conform to the new Documentation Style sheet and
3758  to make use of the new v1.0 features.
3759  The whole thing also needs to be merged with the section following it.-jw
3760  It may also be badly out of date.-rh (2008)]
3761 \end_layout
3762
3763 \begin_layout Subsection
3764 Defining Own Keymaps: Keymap File Format
3765 \end_layout
3766
3767 \begin_layout Standard
3768 Let's look at a keyboard definition file a little closer.
3769  It is a plain text file defining
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 key-to-key or key-to-string translations
3774 \end_layout
3775
3776 \begin_layout Itemize
3777 dead keys
3778 \end_layout
3779
3780 \begin_layout Itemize
3781 dead keys exceptions
3782 \end_layout
3783
3784 \begin_layout Standard
3785 To define key-to-key or key-to-string translation, use this command:
3786 \end_layout
3787
3788 \begin_layout Quotation
3789 \begin_inset Flex Code
3790 status collapsed
3791
3792 \begin_layout Plain Layout
3793
3794 \backslash
3795 kmap
3796 \end_layout
3797
3798 \end_inset
3799
3800  
3801 \begin_inset Flex Code
3802 status collapsed
3803
3804 \begin_layout Plain Layout
3805 key
3806 \end_layout
3807
3808 \end_inset
3809
3810  outstring 
3811 \end_layout
3812
3813 \begin_layout Standard
3814 where 
3815 \begin_inset Flex Code
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 key
3820 \end_layout
3821
3822 \end_inset
3823
3824  is the key to be translated and 
3825 \begin_inset Flex Code
3826 status collapsed
3827
3828 \begin_layout Plain Layout
3829 outstring
3830 \end_layout
3831
3832 \end_inset
3833
3834  is the string to be inserted into the document.
3835  To define dead keys, use:
3836 \end_layout
3837
3838 \begin_layout Quotation
3839 \begin_inset Flex Code
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843
3844 \backslash
3845 kmod
3846 \end_layout
3847
3848 \end_inset
3849
3850  
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 key
3856 \end_layout
3857
3858 \end_inset
3859
3860  deadkey
3861 \end_layout
3862
3863 \begin_layout Standard
3864 where 
3865 \begin_inset Flex Code
3866 status collapsed
3867
3868 \begin_layout Plain Layout
3869 key
3870 \end_layout
3871
3872 \end_inset
3873
3874  is a keyboard key and 
3875 \begin_inset Flex Code
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879 deadkey
3880 \end_layout
3881
3882 \end_inset
3883
3884  is dead key name.
3885  The following dead keys are supported (shortcut name is in parentheses):
3886 \end_layout
3887
3888 \begin_layout Quotation
3889
3890 \emph on
3891 Name
3892 \begin_inset space \hfill{}
3893 \end_inset
3894
3895 Example
3896 \end_layout
3897
3898 \begin_layout Quotation
3899 acute (acu)
3900 \begin_inset space \hfill{}
3901 \end_inset
3902
3903 áéíóú
3904 \end_layout
3905
3906 \begin_layout Quotation
3907 grave (gra)
3908 \begin_inset space \hfill{}
3909 \end_inset
3910
3911 àèìòù
3912 \end_layout
3913
3914 \begin_layout Quotation
3915 macron (mac)
3916 \begin_inset space \hfill{}
3917 \end_inset
3918
3919  ō
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 tilde (til)
3924 \begin_inset space \hfill{}
3925 \end_inset
3926
3927 ñÑ
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 underbar (underb)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935
3936 \begin_inset ERT
3937 status open
3938
3939 \begin_layout Plain Layout
3940
3941
3942 \backslash
3943 b o
3944 \end_layout
3945
3946 \end_inset
3947
3948
3949 \end_layout
3950
3951 \begin_layout Quotation
3952 cedilla (ced)
3953 \begin_inset space \hfill{}
3954 \end_inset
3955
3956 çÇ
3957 \end_layout
3958
3959 \begin_layout Quotation
3960 underdot (underd)
3961 \begin_inset space \hfill{}
3962 \end_inset
3963
3964
3965 \begin_inset ERT
3966 status open
3967
3968 \begin_layout Plain Layout
3969
3970
3971 \backslash
3972 d o
3973 \end_layout
3974
3975 \end_inset
3976
3977
3978 \end_layout
3979
3980 \begin_layout Quotation
3981 circumflex (circu)
3982 \begin_inset space \hfill{}
3983 \end_inset
3984
3985 âêîôû
3986 \end_layout
3987
3988 \begin_layout Quotation
3989 circle (circl)
3990 \begin_inset space \hfill{}
3991 \end_inset
3992
3993 ÅůŮ
3994 \end_layout
3995
3996 \begin_layout Quotation
3997 tie (tie)
3998 \begin_inset space \hfill{}
3999 \end_inset
4000
4001
4002 \begin_inset ERT
4003 status open
4004
4005 \begin_layout Plain Layout
4006
4007
4008 \backslash
4009 t o
4010 \end_layout
4011
4012 \end_inset
4013
4014
4015 \end_layout
4016
4017 \begin_layout Quotation
4018 breve (bre)
4019 \begin_inset space \hfill{}
4020 \end_inset
4021
4022 ă
4023 \begin_inset ERT
4024 status open
4025
4026 \begin_layout Plain Layout
4027
4028
4029 \backslash
4030 u o
4031 \end_layout
4032
4033 \end_inset
4034
4035
4036 \end_layout
4037
4038 \begin_layout Quotation
4039 caron (car)
4040 \begin_inset space \hfill{}
4041 \end_inset
4042
4043 čšž
4044 \end_layout
4045
4046 \begin_layout Quotation
4047 hungarian umlaut (hug)
4048 \begin_inset space \hfill{}
4049 \end_inset
4050
4051 őű
4052 \end_layout
4053
4054 \begin_layout Quotation
4055 umlaut (uml)
4056 \begin_inset space \hfill{}
4057 \end_inset
4058
4059 äöü
4060 \end_layout
4061
4062 \begin_layout Quotation
4063 dot (dot)
4064 \begin_inset space \hfill{}
4065 \end_inset
4066
4067 ż
4068 \begin_inset ERT
4069 status open
4070
4071 \begin_layout Plain Layout
4072
4073
4074 \backslash
4075 .s
4076 \end_layout
4077
4078 \end_inset
4079
4080
4081 \end_layout
4082
4083 \begin_layout Standard
4084 Since in many international keyboards there are exceptions to what some
4085  dead keys should do, you can define them using
4086 \end_layout
4087
4088 \begin_layout Quotation
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093
4094 \backslash
4095 kxmod
4096 \end_layout
4097
4098 \end_inset
4099
4100  deadkey key outstring
4101 \end_layout
4102
4103 \begin_layout Standard
4104 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4105 , so you put in
4106 \end_layout
4107
4108 \begin_layout Quotation
4109 \begin_inset Flex Code
4110 status collapsed
4111
4112 \begin_layout Plain Layout
4113
4114 \backslash
4115 kxmod
4116 \end_layout
4117
4118 \end_inset
4119
4120  caron o "
4121 \backslash
4122 ^o"
4123 \end_layout
4124
4125 \begin_layout Standard
4126 to make it work correctly.
4127  Also, you have to define as exceptions dead keys over i and j, to remove
4128  the dot from them before inserting an accent mark.
4129  I will change this when the time comes, but so far I haven't had time.
4130 \end_layout
4131
4132 \begin_layout Standard
4133 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4134  double backslash.
4135  Also, quotes and 
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 #
4141 \end_layout
4142
4143 \end_inset
4144
4145  have different meaning.
4146  
4147 \begin_inset Flex Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151 #
4152 \end_layout
4153
4154 \end_inset
4155
4156  marks comments, quotes start and end \SpecialChar LaTeX
4157 -style commands.
4158  To enter quote, you'll need to use 
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163
4164 \backslash
4165 "
4166 \end_layout
4167
4168 \end_inset
4169
4170 , to enter 
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175 #
4176 \end_layout
4177
4178 \end_inset
4179
4180 , use 
4181 \begin_inset Flex Code
4182 status collapsed
4183
4184 \begin_layout Plain Layout
4185
4186 \backslash
4187 #
4188 \end_layout
4189
4190 \end_inset
4191
4192 .
4193 \end_layout
4194
4195 \begin_layout Standard
4196 If you make a keyboard description file that works for your language, please
4197  mail it to me, so I can include it in the next keymap distribution.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 More keywords will be supported in keymap configuration file in future,
4202  like
4203 \end_layout
4204
4205 \begin_layout Itemize
4206 \begin_inset Flex Code
4207 status collapsed
4208
4209 \begin_layout Plain Layout
4210
4211 \backslash
4212 kinclude filename
4213 \end_layout
4214
4215 \end_inset
4216
4217
4218 \emph on
4219
4220 \begin_inset space \hfill{}
4221 \end_inset
4222
4223
4224 \begin_inset Flex Code
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 include
4229 \end_layout
4230
4231 \end_inset
4232
4233  another file
4234 \end_layout
4235
4236 \begin_layout Itemize
4237 \begin_inset Flex Code
4238 status collapsed
4239
4240 \begin_layout Plain Layout
4241
4242 \backslash
4243 kprog program
4244 \end_layout
4245
4246 \end_inset
4247
4248
4249 \emph on
4250
4251 \begin_inset space \hfill{}
4252 \end_inset
4253
4254
4255 \begin_inset Flex Code
4256 status collapsed
4257
4258 \begin_layout Plain Layout
4259 define
4260 \end_layout
4261
4262 \end_inset
4263
4264  an external keymap translation program 
4265 \end_layout
4266
4267 \begin_layout Standard
4268 Also, it should look into 
4269 \begin_inset Flex Code
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273 lyxrc
4274 \end_layout
4275
4276 \end_inset
4277
4278  file for defaults, too (for example, a 
4279 \begin_inset Flex Code
4280 status collapsed
4281
4282 \begin_layout Plain Layout
4283
4284 \backslash
4285 kinclude
4286 \end_layout
4287
4288 \end_inset
4289
4290  option to include default keyboard).
4291 \end_layout
4292
4293 \end_inset
4294
4295
4296 \end_layout
4297
4298 \begin_layout Section
4299 International Keymap Stuff
4300 \begin_inset CommandInset label
4301 LatexCommand label
4302 name "sec:International-Keymap-Stuff"
4303
4304 \end_inset
4305
4306
4307 \end_layout
4308
4309 \begin_layout Standard
4310 \begin_inset Note Note
4311 status open
4312
4313 \begin_layout Plain Layout
4314 In doing the revisions on this document in March 2008, I did not look over
4315  this stuff, as I do not understand it.
4316  It would be good if someone else could do so.
4317  (RH)
4318 \end_layout
4319
4320 \end_inset
4321
4322
4323 \end_layout
4324
4325 \begin_layout Standard
4326 The next two sections describe the 
4327 \begin_inset Flex Code
4328 status collapsed
4329
4330 \begin_layout Plain Layout
4331
4332 \shape up
4333 .kmap
4334 \end_layout
4335
4336 \end_inset
4337
4338  and 
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343
4344 \shape up
4345 .cdef
4346 \end_layout
4347
4348 \end_inset
4349
4350  file syntax in detail.
4351  These sections should help you design your own key map if the ones provided
4352  do not meet your needs.
4353 \end_layout
4354
4355 \begin_layout Subsection
4356 The .kmap File
4357 \end_layout
4358
4359 \begin_layout Standard
4360
4361 \shape up
4362 .
4363 \begin_inset Flex Code
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367 kmap
4368 \end_layout
4369
4370 \end_inset
4371
4372  file maps keystrokes to characters or strings.
4373  As the name suggests, it sets a keyboard mapping.
4374  The 
4375 \begin_inset Flex Code
4376 status collapsed
4377
4378 \begin_layout Plain Layout
4379 .kmap
4380 \end_layout
4381
4382 \end_inset
4383
4384
4385 \shape default
4386  file keywords 
4387 \shape up
4388
4389 \begin_inset Flex Code
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \shape up
4395 kmap
4396 \end_layout
4397
4398 \end_inset
4399
4400
4401 \shape default
4402 ,
4403 \shape up
4404  
4405 \shape default
4406
4407 \begin_inset Flex Code
4408 status collapsed
4409
4410 \begin_layout Plain Layout
4411
4412 \shape up
4413 kmod
4414 \end_layout
4415
4416 \end_inset
4417
4418 ,
4419 \shape up
4420  
4421 \shape default
4422
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \shape up
4429 kxmod
4430 \end_layout
4431
4432 \end_inset
4433
4434 , and 
4435 \begin_inset Flex Code
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439
4440 \shape up
4441 kcomb
4442 \end_layout
4443
4444 \end_inset
4445
4446  are described in this section.
4447 \end_layout
4448
4449 \begin_layout Labeling
4450 \labelwidthstring 00.00.0000
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455
4456 \shape up
4457 kmap
4458 \end_layout
4459
4460 \end_inset
4461
4462  Map a character to a string
4463 \end_layout
4464
4465 \begin_layout LyX-Code
4466
4467 \backslash
4468 kmap 
4469 \family roman
4470 \emph on
4471 char
4472 \family default
4473 \emph default
4474  
4475 \family roman
4476 \emph on
4477 string
4478 \end_layout
4479
4480 \begin_layout Standard
4481 This will ma
4482 \family roman
4483 p
4484 \family default
4485  
4486 \family roman
4487 \emph on
4488 char
4489 \family default
4490 \emph default
4491  
4492 \family roman
4493 to
4494 \family default
4495  
4496 \family roman
4497 \emph on
4498 string
4499 \emph default
4500 .
4501  Note that in
4502 \family default
4503  
4504 \family roman
4505 \emph on
4506 string
4507 \emph default
4508 ,
4509 \family default
4510  
4511 \family roman
4512 \shape up
4513 the double-quote (")
4514 \family default
4515 \shape default
4516  
4517 \family roman
4518 and
4519 \family default
4520  
4521 \family roman
4522 \shape up
4523 the backslash (
4524 \backslash
4525 )
4526 \family default
4527 \shape default
4528  
4529 \family roman
4530 must be escaped with a preceding backslash (
4531 \shape up
4532
4533 \backslash
4534
4535 \shape default
4536 )
4537 \family default
4538 .
4539 \end_layout
4540
4541 \begin_layout Standard
4542 An example of a 
4543 \begin_inset Flex Noun
4544 status collapsed
4545
4546 \begin_layout Plain Layout
4547
4548 \shape up
4549 kmap
4550 \end_layout
4551
4552 \end_inset
4553
4554  statement to cause the symbol 
4555 \begin_inset Flex Noun
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559
4560 \shape up
4561 /
4562 \end_layout
4563
4564 \end_inset
4565
4566  to be output for the keystroke 
4567 \begin_inset Flex Noun
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571
4572 \shape up
4573 &
4574 \end_layout
4575
4576 \end_inset
4577
4578  is:
4579 \end_layout
4580
4581 \begin_layout LyX-Code
4582
4583 \backslash
4584 kmap & /
4585 \end_layout
4586
4587 \begin_layout Labeling
4588 \labelwidthstring 00.00.0000
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593
4594 \shape up
4595 kmod
4596 \end_layout
4597
4598 \end_inset
4599
4600  Specify an accent character
4601 \end_layout
4602
4603 \begin_layout LyX-Code
4604
4605 \backslash
4606 kmod 
4607 \family roman
4608 \emph on
4609 char accent allowed
4610 \end_layout
4611
4612 \begin_layout Standard
4613 This will make the cha
4614 \family roman
4615 racter
4616 \family default
4617  
4618 \family roman
4619 \emph on
4620 char
4621 \family default
4622 \emph default
4623  
4624 \family roman
4625 \shape up
4626 \emph on
4627 be an accent
4628 \family default
4629 \shape default
4630 \emph default
4631  
4632 \family roman
4633 \shape up
4634 on the
4635 \family default
4636 \shape default
4637  
4638 \family roman
4639 \shape up
4640 \emph on
4641 allowed
4642 \family default
4643 \shape default
4644 \emph default
4645  
4646 \family roman
4647 \shape up
4648 cha
4649 \family default
4650 racter(s).
4651  This is the dead key
4652 \begin_inset Foot
4653 status collapsed
4654
4655 \begin_layout Plain Layout
4656 The term 
4657 \family roman
4658 \emph on
4659 dead key
4660 \family default
4661 \emph default
4662  refers to a key that does not produce a character by itself, but when followed
4663  with another key, produces the desired accent character.
4664  For example, a German characte
4665 \family roman
4666 r with an umlaut like
4667 \family default
4668  
4669 \family roman
4670 \emph on
4671 ä
4672 \family default
4673 \emph default
4674  
4675 \family roman
4676 can be produced in this manner.
4677 \end_layout
4678
4679 \end_inset
4680
4681  mechanism.
4682  
4683 \end_layout
4684
4685 \begin_layout Standard
4686 If you 
4687 \family roman
4688 hit
4689 \family default
4690  
4691 \family roman
4692 \emph on
4693 char
4694 \family default
4695 \emph default
4696  
4697 \family roman
4698 and then another key not in
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 allowed
4704 \emph default
4705 , you will get a
4706 \family default
4707  
4708 \family roman
4709 \emph on
4710 char
4711 \family default
4712 \emph default
4713  
4714 \family roman
4715 followed by the other, not allowed key, as output.
4716
4717 \family default
4718  Note that a 
4719 \begin_inset Flex Noun
4720 status collapsed
4721
4722 \begin_layout Plain Layout
4723
4724 \shape up
4725 Backspace
4726 \end_layout
4727
4728 \end_inset
4729
4730  cancels a dead key, so if 
4731 \family roman
4732 you hit
4733 \family default
4734  
4735 \family roman
4736 \emph on
4737 char
4738 \family default
4739 \emph default
4740  
4741 \begin_inset Flex Noun
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745
4746 \shape up
4747 \emph on
4748 Backspace
4749 \end_layout
4750
4751 \end_inset
4752
4753 , the cursor will not go one position backwards but will instead cancel
4754  the effect t
4755 \family roman
4756 hat
4757 \family default
4758  
4759 \family roman
4760 \shape up
4761 \emph on
4762 char
4763 \family default
4764 \shape default
4765 \emph default
4766  
4767 \family roman
4768 \shape up
4769 might have had on the next keystroke.
4770  
4771 \end_layout
4772
4773 \begin_layout Standard
4774 The following example specifies that the character ' is to be an acute accent,
4775  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4776 \end_layout
4777
4778 \begin_layout LyX-Code
4779
4780 \backslash
4781 kmod ' acute aeiouAEIOU
4782 \end_layout
4783
4784 \begin_layout Labeling
4785 \labelwidthstring 00.00.0000
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 kxmod
4791 \end_layout
4792
4793 \end_inset
4794
4795  Specify an exception to the accent character
4796 \end_layout
4797
4798 \begin_layout LyX-Code
4799
4800 \backslash
4801 kxmod  
4802 \family roman
4803 \emph on
4804 accent char result
4805 \end_layout
4806
4807 \begin_layout Standard
4808 This defines an exce
4809 \family roman
4810 ption for
4811 \family default
4812  
4813 \family roman
4814 \emph on
4815 accent
4816 \family default
4817 \emph default
4818  
4819 \family roman
4820 on
4821 \family default
4822  
4823 \family roman
4824 \emph on
4825 char
4826 \emph default
4827 .
4828  T
4829 \shape up
4830 he
4831 \family default
4832 \shape default
4833  
4834 \family roman
4835 \shape up
4836 \emph on
4837 accent
4838 \family default
4839 \shape default
4840 \emph default
4841  
4842 \family roman
4843 \shape up
4844 must
4845 \family default
4846 \shape default
4847  
4848 \shape up
4849 have been assigned a keystroke with a previous
4850 \shape default
4851  
4852 \begin_inset Flex Code
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856
4857 \shape up
4858
4859 \backslash
4860 kmo
4861 \shape default
4862 d
4863 \end_layout
4864
4865 \end_inset
4866
4867  declar
4868 \family roman
4869 ation and
4870 \family default
4871  
4872 \family roman
4873 \emph on
4874 char
4875 \family default
4876 \emph default
4877  
4878 \family roman
4879 must not belong in the
4880 \family default
4881  
4882 \family roman
4883 \emph on
4884 allowed
4885 \family default
4886 \emph default
4887  
4888 \family roman
4889 set of
4890 \family default
4891  
4892 \family roman
4893 \emph on
4894 accent
4895 \emph default
4896 .
4897  When
4898 \family default
4899  
4900 \family roman
4901 \shape up
4902 you enter the
4903 \family default
4904 \shape default
4905  
4906 \family roman
4907 \shape up
4908 \emph on
4909 accent char
4910 \family default
4911 \shape default
4912 \emph default
4913  
4914 \family roman
4915 \shape up
4916 sequence,
4917 \family default
4918 \shape default
4919  
4920 \family roman
4921 \shape up
4922 \emph on
4923 result
4924 \emph default
4925  is produced.
4926  If such a declaration does not exist in
4927 \family default
4928 \shape default
4929  
4930 \shape up
4931 the
4932 \shape default
4933  
4934 \begin_inset Flex Code
4935 status collapsed
4936
4937 \begin_layout Plain Layout
4938
4939 \shape up
4940 .kmap
4941 \end_layout
4942
4943 \end_inset
4944
4945  file and yo
4946 \family roman
4947 u enter
4948 \family default
4949  
4950 \family roman
4951 \emph on
4952 accent char
4953 \emph default
4954 , you get
4955 \family default
4956  
4957 \family roman
4958 \emph on
4959 accent_key char
4960 \emph default
4961  where
4962 \family default
4963  
4964 \family roman
4965 \emph on
4966 accent_key
4967 \emph default
4968  is the first arg
4969 \family default
4970 ument of the 
4971 \begin_inset Flex Code
4972 status collapsed
4973
4974 \begin_layout Plain Layout
4975
4976 \shape up
4977
4978 \backslash
4979 kmod
4980 \end_layout
4981
4982 \end_inset
4983
4984  declaration.
4985  
4986 \end_layout
4987
4988 \begin_layout Standard
4989 The following command produces causes äi to be produced when you enter acute-i
4990  ('i):
4991 \end_layout
4992
4993 \begin_layout LyX-Code
4994
4995 \backslash
4996 kxmod acute i "
4997 \backslash
4998
4999 \backslash
5000 '{
5001 \backslash
5002
5003 \backslash
5004 i}"
5005 \end_layout
5006
5007 \begin_layout Labeling
5008 \labelwidthstring 00.00.0000
5009 \begin_inset Flex Code
5010 status collapsed
5011
5012 \begin_layout Plain Layout
5013 kcomb
5014 \end_layout
5015
5016 \end_inset
5017
5018  Combine two accent characters
5019 \end_layout
5020
5021 \begin_layout LyX-Code
5022
5023 \backslash
5024 kcomb 
5025 \family roman
5026 \emph on
5027 accent1 accent2 allowed
5028 \end_layout
5029
5030 \begin_layout Standard
5031 This one is getting pretty esoteric.
5032  It allows you to combine the effect 
5033 \family roman
5034 of
5035 \family default
5036  
5037 \family roman
5038 \emph on
5039 accent1
5040 \family default
5041 \emph default
5042  
5043 \family roman
5044 and
5045 \family default
5046  
5047 \family roman
5048 \emph on
5049 accent2
5050 \family default
5051 \emph default
5052  
5053 \family roman
5054 (in that order!) on
5055 \family default
5056  
5057 \family roman
5058 \emph on
5059 allowed
5060 \family default
5061 \emph default
5062  
5063 \family roman
5064 chars.
5065  The keystrokes for
5066 \family default
5067  
5068 \family roman
5069 \emph on
5070 accent1
5071 \family default
5072 \emph default
5073  
5074 \family roman
5075 and
5076 \family default
5077  
5078 \family roman
5079 \emph on
5080 accent2
5081 \family default
5082 \emph default
5083  
5084 \family roman
5085 must have be
5086 \family default
5087 en set with a 
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092
5093 \shape up
5094
5095 \backslash
5096 kmod
5097 \end_layout
5098
5099 \end_inset
5100
5101  command at 
5102 \family roman
5103 a
5104 \family default
5105  
5106 \family roman
5107 \emph on
5108 previous
5109 \family default
5110 \emph default
5111  
5112 \family roman
5113 point in the
5114 \family default
5115  file.
5116  
5117 \end_layout
5118
5119 \begin_layout Standard
5120 Consider this example from the 
5121 \begin_inset Flex Code
5122 status collapsed
5123
5124 \begin_layout Plain Layout
5125
5126 \shape up
5127 greek.kmap
5128 \end_layout
5129
5130 \end_inset
5131
5132  file:
5133 \end_layout
5134
5135 \begin_layout LyX-Code
5136
5137 \backslash
5138 kmod ; acute aeioyvhAEIOYVH 
5139 \backslash
5140 kmod : umlaut iyIY 
5141 \backslash
5142 kcomb acute umlaut iyIY
5143 \end_layout
5144
5145 \begin_layout Standard
5146 This allows you to press 
5147 \begin_inset Flex Noun
5148 status collapsed
5149
5150 \begin_layout Plain Layout
5151
5152 \shape up
5153 ;:i
5154 \end_layout
5155
5156 \end_inset
5157
5158  and get the effect of 
5159 \begin_inset Flex Code
5160 status collapsed
5161
5162 \begin_layout Plain Layout
5163
5164 \shape up
5165
5166 \backslash
5167 '{
5168 \backslash
5169 "{i}}
5170 \end_layout
5171
5172 \end_inset
5173
5174 .
5175  
5176 \family roman
5177 \shape up
5178 A backspace
5179 \family default
5180 \shape default
5181  in this case cancels the last dead key, so if you press 
5182 \begin_inset Flex Noun
5183 status collapsed
5184
5185 \begin_layout Plain Layout
5186
5187 \shape up
5188 ;: Backspace i
5189 \end_layout
5190
5191 \end_inset
5192
5193  you get 
5194 \begin_inset Flex Code
5195 status collapsed
5196
5197 \begin_layout Plain Layout
5198
5199 \shape up
5200
5201 \backslash
5202 '{i}
5203 \end_layout
5204
5205 \end_inset
5206
5207 .
5208 \end_layout
5209
5210 \begin_layout Subsection
5211 The .cdef File
5212 \end_layout
5213
5214 \begin_layout Standard
5215 After the 
5216 \begin_inset Flex Code
5217 status collapsed
5218
5219 \begin_layout Plain Layout
5220
5221 \shape up
5222 .kmap
5223 \end_layout
5224
5225 \end_inset
5226
5227  mapping is performed, a 
5228 \begin_inset Flex Code
5229 status collapsed
5230
5231 \begin_layout Plain Layout
5232
5233 \shape up
5234 .cde
5235 \shape default
5236 f
5237 \end_layout
5238
5239 \end_inset
5240
5241  file maps the strings that the symbols generate to characters in the current
5242  font.
5243  The \SpecialChar LyX
5244  distribution currently includes at least the 
5245 \begin_inset Flex Code
5246 status collapsed
5247
5248 \begin_layout Plain Layout
5249
5250 \shape up
5251 iso8859-1.cdef
5252 \end_layout
5253
5254 \end_inset
5255
5256  and 
5257 \begin_inset Flex Code
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261
5262 \shape up
5263 iso8859-2.cdef
5264 \end_layout
5265
5266 \end_inset
5267
5268  files.
5269 \end_layout
5270
5271 \begin_layout Standard
5272 In general the 
5273 \begin_inset Flex Code
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277
5278 \shape up
5279 .cdef
5280 \end_layout
5281
5282 \end_inset
5283
5284  file is a sequence of declarations of the form
5285 \end_layout
5286
5287 \begin_layout LyX-Code
5288
5289 \family roman
5290 \emph on
5291 char_index_in_set
5292 \family default
5293 \emph default
5294  
5295 \family roman
5296 \emph on
5297  string
5298 \end_layout
5299
5300 \begin_layout Standard
5301 For example, in order to map 
5302 \begin_inset Flex Noun
5303 status collapsed
5304
5305 \begin_layout Plain Layout
5306
5307 \shape up
5308
5309 \backslash
5310 '{e}
5311 \end_layout
5312
5313 \end_inset
5314
5315  to the corresponding character in the iso-8859-1 set (233), the following
5316  declaration is used
5317 \end_layout
5318
5319 \begin_layout LyX-Code
5320 233 "
5321 \backslash
5322
5323 \backslash
5324 '{e}"
5325 \end_layout
5326
5327 \begin_layout Standard
5328 with 
5329 \begin_inset Flex Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333
5334 \backslash
5335
5336 \end_layout
5337
5338 \end_inset
5339
5340  and 
5341 \begin_inset Flex Code
5342 status collapsed
5343
5344 \begin_layout Plain Layout
5345 "
5346 \end_layout
5347
5348 \end_inset
5349
5350  being escap
5351 \family roman
5352 ed in
5353 \family default
5354  
5355 \family roman
5356 \emph on
5357 string
5358 \emph default
5359 .
5360  Note that
5361 \family default
5362  the same character can apply to more than one string.
5363  In the 
5364 \begin_inset Flex Code
5365 status collapsed
5366
5367 \begin_layout Plain Layout
5368 i
5369 \shape up
5370 so-8859-7.cdef
5371 \end_layout
5372
5373 \end_inset
5374
5375  file you have
5376 \end_layout
5377
5378 \begin_layout LyX-Code
5379 192 "
5380 \backslash
5381
5382 \backslash
5383 '{
5384 \backslash
5385
5386 \backslash
5387
5388 \backslash
5389 "{i}}"
5390 \begin_inset Newline newline
5391 \end_inset
5392
5393 192 "
5394 \backslash
5395
5396 \backslash
5397
5398 \backslash
5399 "{
5400 \backslash
5401
5402 \backslash
5403 '{i}}"
5404 \end_layout
5405
5406 \begin_layout Standard
5407 If \SpecialChar LyX
5408  cannot find a mapping for the string produced by the keystroke or a
5409  deadkey sequence, it will check if it looks like an accented char and try
5410  to draw an accent over the character on screen.
5411 \end_layout
5412
5413 \begin_layout Subsection
5414 Dead Keys
5415 \end_layout
5416
5417 \begin_layout Standard
5418 There is a second way to add support for international characters through
5419  so-called dead-keys.
5420  A dead-key works in combination with a letter to produce an accented character.
5421  Here, we'll explain how to create a really simple dead-key to illustrate
5422  how they work.
5423 \end_layout
5424
5425 \begin_layout Standard
5426 Suppose you happen to need the circumflex character, 
5427 \begin_inset Quotes eld
5428 \end_inset
5429
5430  ̂
5431 \begin_inset Quotes erd
5432 \end_inset
5433
5434 .
5435  You could bind the 
5436 \begin_inset Flex Noun
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440 ^
5441 \end_layout
5442
5443 \end_inset
5444
5445 -key [a.k.a.
5446 \begin_inset space ~
5447 \end_inset
5448
5449
5450 \begin_inset Flex Noun
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 Shift-6
5455 \end_layout
5456
5457 \end_inset
5458
5459 ] to the \SpecialChar LyX
5460  command 
5461 \begin_inset Flex Code
5462 status collapsed
5463
5464 \begin_layout Plain Layout
5465 accent-circumflex
5466 \end_layout
5467
5468 \end_inset
5469
5470  in your 
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 lyxrc
5476 \end_layout
5477
5478 \end_inset
5479
5480  file.
5481  Now, whenever you type the 
5482 \begin_inset Flex Noun
5483 status collapsed
5484
5485 \begin_layout Plain Layout
5486 ^
5487 \end_layout
5488
5489 \end_inset
5490
5491 -key followed by a letter, that letter will have a circumflex accent on
5492  it.
5493  For example, the sequence 
5494 \begin_inset Quotes eld
5495 \end_inset
5496
5497
5498 \begin_inset Flex Noun
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 ^e
5503 \end_layout
5504
5505 \end_inset
5506
5507
5508 \begin_inset Quotes erd
5509 \end_inset
5510
5511  produces the letter: 
5512 \begin_inset Quotes eld
5513 \end_inset
5514
5515 ê
5516 \begin_inset Quotes erd
5517 \end_inset
5518
5519 .
5520  If you tried to type 
5521 \begin_inset Quotes eld
5522 \end_inset
5523
5524
5525 \begin_inset Flex Noun
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 ^t
5530 \end_layout
5531
5532 \end_inset
5533
5534
5535 \begin_inset Quotes erd
5536 \end_inset
5537
5538 , however, \SpecialChar LyX
5539  will complain with a beep, since a 
5540 \begin_inset Quotes eld
5541 \end_inset
5542
5543
5544 \begin_inset Flex Noun
5545 status collapsed
5546
5547 \begin_layout Plain Layout
5548 t
5549 \end_layout
5550
5551 \end_inset
5552
5553
5554 \begin_inset Quotes erd
5555 \end_inset
5556
5557  never takes a circumflex accent.
5558  Hitting 
5559 \begin_inset Flex Noun
5560 status collapsed
5561
5562 \begin_layout Plain Layout
5563 Space
5564 \end_layout
5565
5566 \end_inset
5567
5568  after a dead-key produces the bare-accent.
5569  Please note this last point! If you bind a key to a dead-key, you'll need
5570  to rebind the character on that key to yet another key.
5571  Binding the 
5572 \begin_inset Flex Noun
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 ,-key
5577 \end_layout
5578
5579 \end_inset
5580
5581  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5582 \end_layout
5583
5584 \begin_layout Standard
5585 One common way to bind dead-keys is to use 
5586 \begin_inset Flex Noun
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 Meta-
5591 \end_layout
5592
5593 \end_inset
5594
5595
5596 \begin_inset Flex Noun
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 Ctrl-
5601 \end_layout
5602
5603 \end_inset
5604
5605 , and 
5606 \begin_inset Flex Noun
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610 Shift-
5611 \end_layout
5612
5613 \end_inset
5614
5615  in combination with an accent, like 
5616 \begin_inset Quotes eld
5617 \end_inset
5618
5619
5620 \begin_inset Flex Noun
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 ~
5625 \end_layout
5626
5627 \end_inset
5628
5629
5630 \begin_inset Quotes erd
5631 \end_inset
5632
5633  or 
5634 \begin_inset Quotes eld
5635 \end_inset
5636
5637
5638 \begin_inset Flex Noun
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 ,
5643 \end_layout
5644
5645 \end_inset
5646
5647
5648 \begin_inset Quotes erd
5649 \end_inset
5650
5651  or 
5652 \begin_inset Quotes eld
5653 \end_inset
5654
5655
5656 \begin_inset Flex Noun
5657 status collapsed
5658
5659 \begin_layout Plain Layout
5660 ^
5661 \end_layout
5662
5663 \end_inset
5664
5665
5666 \begin_inset Quotes erd
5667 \end_inset
5668
5669 .
5670  Another way involves using 
5671 \begin_inset Flex Code
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 xmodmap
5676 \end_layout
5677
5678 \end_inset
5679
5680  and 
5681 \begin_inset Flex Code
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 xkeycaps
5686 \end_layout
5687
5688 \end_inset
5689
5690  to set up the special 
5691 \begin_inset Flex Code
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 Mode_Switch
5696 \end_layout
5697
5698 \end_inset
5699
5700  key.
5701  The 
5702 \begin_inset Flex Code
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706 Mode_Switch
5707 \end_layout
5708
5709 \end_inset
5710
5711  acts in some ways just like 
5712 \begin_inset Flex Noun
5713 status collapsed
5714
5715 \begin_layout Plain Layout
5716 Shift
5717 \end_layout
5718
5719 \end_inset
5720
5721  and permits you to bind keys to accented characters.
5722  You can also turn keys into dead-keys by binding them to something like
5723  
5724 \begin_inset Flex Code
5725 status collapsed
5726
5727 \begin_layout Plain Layout
5728 usldead_cedilla
5729 \end_layout
5730
5731 \end_inset
5732
5733  and then binding this symbolic key to the corresponding \SpecialChar LyX
5734  command.
5735 \begin_inset Foot
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 Note from 
5740 \noun on
5741 John Weiss
5742 \noun default
5743 : This is exactly what I do in my 
5744 \begin_inset Flex Code
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748 ~/.lyx/lyxrc
5749 \end_layout
5750
5751 \end_inset
5752
5753  and my 
5754 \begin_inset Flex Code
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 ~/.xmodmap
5759 \end_layout
5760
5761 \end_inset
5762
5763  files.
5764  I have my 
5765 \begin_inset Flex Noun
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 Scroll
5770 \begin_inset space ~
5771 \end_inset
5772
5773 Lock
5774 \end_layout
5775
5776 \end_inset
5777
5778  key set up as 
5779 \begin_inset Flex Code
5780 status collapsed
5781
5782 \begin_layout Plain Layout
5783 Mode_Shift
5784 \end_layout
5785
5786 \end_inset
5787
5788  and a bunch of these 
5789 \begin_inset Quotes eld
5790 \end_inset
5791
5792
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 usldead_*
5798 \end_layout
5799
5800 \end_inset
5801
5802
5803 \begin_inset Quotes erd
5804 \end_inset
5805
5806  symbolic keys bound such things as 
5807 \begin_inset Flex Noun
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 Scroll
5812 \begin_inset space ~
5813 \end_inset
5814
5815 Lock-^
5816 \end_layout
5817
5818 \end_inset
5819
5820  and 
5821 \begin_inset Flex Noun
5822 status collapsed
5823
5824 \begin_layout Plain Layout
5825 Scroll
5826 \begin_inset space ~
5827 \end_inset
5828
5829 Lock-~
5830 \end_layout
5831
5832 \end_inset
5833
5834 .
5835  This is how I produce my accented characters.
5836 \end_layout
5837
5838 \end_inset
5839
5840  You can make just about anything into the 
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 Mode_Switch
5846 \end_layout
5847
5848 \end_inset
5849
5850  key: One of the 
5851 \begin_inset Flex Noun
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 Ctrl-
5856 \end_layout
5857
5858 \end_inset
5859
5860  keys, a spare function key, etc.
5861  As for the \SpecialChar LyX
5862  commands that produce accents, check the entry for 
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 accent-acute
5868 \end_layout
5869
5870 \end_inset
5871
5872  in the 
5873 \emph on
5874 Reference Manual
5875 \emph default
5876 .
5877  You'll find the complete list there.
5878 \end_layout
5879
5880 \begin_layout Subsection
5881 Saving your Language Configuration
5882 \end_layout
5883
5884 \begin_layout Standard
5885 You can edit your preferences so that your desired language environment
5886  is automatically configured when \SpecialChar LyX
5887  starts up, via the 
5888 \begin_inset Flex Noun
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892 Edit\SpecialChar menuseparator
5893 Preferences
5894 \end_layout
5895
5896 \end_inset
5897
5898  dialog.
5899 \end_layout
5900
5901 \begin_layout Chapter
5902 Installing New Document Classes, Layouts, and Templates
5903 \begin_inset CommandInset label
5904 LatexCommand label
5905 name "cha:Installing-New-Document"
5906
5907 \end_inset
5908
5909
5910 \begin_inset Argument 1
5911 status collapsed
5912
5913 \begin_layout Plain Layout
5914 Installing New Document Classes
5915 \end_layout
5916
5917 \end_inset
5918
5919
5920 \end_layout
5921
5922 \begin_layout Standard
5923 In this chapter, we describe the procedures for creating and installing
5924  new \SpecialChar LyX
5925  layout and template files, as well as offer a refresher on correctly
5926  installing new \SpecialChar LaTeX
5927  document classes.
5928  
5929 \end_layout
5930
5931 \begin_layout Standard
5932 First, let us a say a few words about how one ought to think about the relation
5933  between \SpecialChar LyX
5934  and \SpecialChar LaTeX
5935 .
5936  The thing to understand is that, in a certain sense, \SpecialChar LyX
5937  doesn't know anything
5938  about \SpecialChar LaTeX
5939 .
5940  Indeed, from \SpecialChar LyX
5941 's point of view, \SpecialChar LaTeX
5942  is just one of several 
5943 \begin_inset Quotes eld
5944 \end_inset
5945
5946 backend formats
5947 \begin_inset Quotes erd
5948 \end_inset
5949
5950  in which it is capable of producing output.
5951  Other such formats are DocBook, plaintext, and XHTML.
5952  \SpecialChar LaTeX
5953  is, of course, a particularly important format, but very little of the
5954  information \SpecialChar LyX
5955  has about \SpecialChar LaTeX
5956  is actually contained in the program itself.
5957 \begin_inset Foot
5958 status collapsed
5959
5960 \begin_layout Plain Layout
5961 Some commands are sufficiently complex that they are 
5962 \begin_inset Quotes eld
5963 \end_inset
5964
5965 hardcoded
5966 \begin_inset Quotes erd
5967 \end_inset
5968
5969  into \SpecialChar LyX
5970 .
5971  But the developers generally regard this as a Bad Thing.
5972 \end_layout
5973
5974 \end_inset
5975
5976  Rather, that information, even for the standard classes like 
5977 \begin_inset Flex Code
5978 status collapsed
5979
5980 \begin_layout Plain Layout
5981 article.cls
5982 \end_layout
5983
5984 \end_inset
5985
5986 , is contained in `layout files'.
5987  Similarly, \SpecialChar LyX
5988  itself does not know much about DocBook or XHTML.
5989  What it knows is contained in layout files.
5990 \end_layout
5991
5992 \begin_layout Standard
5993 You can think of the layout file for a given document class as a translation
5994  manual between \SpecialChar LyX
5995  constructs—paragraphs with their corresponding styles,
5996  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5997 , DocBook, or XHTML
5998  constructs.
5999  Almost everything \SpecialChar LyX
6000  knows about 
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 article.cls
6006 \end_layout
6007
6008 \end_inset
6009
6010 , for example, is contained in the file 
6011 \begin_inset Flex Code
6012 status collapsed
6013
6014 \begin_layout Plain Layout
6015 article.layout
6016 \end_layout
6017
6018 \end_inset
6019
6020  and in various other files it includes.
6021  For this reason, anyone intending to write layout files should plan to
6022  study the existing files.
6023  A good place to start is with 
6024 \begin_inset Flex Code
6025 status collapsed
6026
6027 \begin_layout Plain Layout
6028 stdsections.inc
6029 \end_layout
6030
6031 \end_inset
6032
6033 , which is included in 
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038 article.layout
6039 \end_layout
6040
6041 \end_inset
6042
6043
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 book.layout
6049 \end_layout
6050
6051 \end_inset
6052
6053 , and many of the other layout files for document classes.
6054  This file is where sections and the like are defined: 
6055 \begin_inset Flex Code
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 stdsections.inc
6060 \end_layout
6061
6062 \end_inset
6063
6064  tells \SpecialChar LyX
6065  how paragraphs that are marked with the Section, Subsection, etc,
6066  styles can be translated into corresponding \SpecialChar LaTeX
6067 , DocBook, and XHTML commands
6068  and tags.
6069  The 
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 article.layout
6075 \end_layout
6076
6077 \end_inset
6078
6079  file basically just includes several of these 
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 std*.inc
6085 \end_layout
6086
6087 \end_inset
6088
6089  files.
6090 \end_layout
6091
6092 \begin_layout Standard
6093 Defining the \SpecialChar LyX
6094 –\SpecialChar LaTeX
6095  correspondence is not the only thing layout files do, though.
6096  Their other job is to define how the \SpecialChar LyX
6097  constructs themselves will appear
6098  on-screen.
6099  The fact that layout files have these two jobs is often a source of confusion,
6100  because they are completely separate.
6101  Telling \SpecialChar LyX
6102  how to translate a certain paragraph style into \SpecialChar LaTeX
6103  does not tell
6104  \SpecialChar LyX
6105  how to display it; conversely, telling \SpecialChar LyX
6106  how to display a certain paragraph
6107  style does not tell \SpecialChar LyX
6108  how to translate it into \SpecialChar LaTeX
6109  (let alone tell \SpecialChar LaTeX
6110  how to
6111  display it).
6112  So, in general, when you define a new \SpecialChar LyX
6113  construct, you must always do two
6114  quite separate things: (i)
6115 \begin_inset space ~
6116 \end_inset
6117
6118 tell \SpecialChar LyX
6119  how to translate it into \SpecialChar LaTeX
6120  and (ii)
6121 \begin_inset space ~
6122 \end_inset
6123
6124 tell \SpecialChar LyX
6125  how to display it.
6126 \end_layout
6127
6128 \begin_layout Standard
6129 Much the same is true, of course, as regards \SpecialChar LyX
6130 's other backend formats, though
6131  XHTML is in some ways different, because in that case \SpecialChar LyX
6132  
6133 \emph on
6134 is
6135 \emph default
6136  able, to some extent, to use information about how it should display a
6137  paragraph on the screen to output information (in the form of CSS) about
6138  how the paragraph should be displayed in a browser.
6139  Even in this case, however, the distinction between what \SpecialChar LyX
6140  does internally
6141  and how things are rendered externally remains in force, and the two can
6142  be controlled separately.
6143  See 
6144 \begin_inset CommandInset ref
6145 LatexCommand ref
6146 reference "sec:Tags-for-XHTML"
6147
6148 \end_inset
6149
6150  for the details.
6151 \end_layout
6152
6153 \begin_layout Section
6154 Installing new \SpecialChar LaTeX
6155  files
6156 \end_layout
6157
6158 \begin_layout Standard
6159 Some installations may not include a \SpecialChar LaTeX
6160  package or class file that you would
6161  like to use within \SpecialChar LyX
6162 .
6163  For example, you might need Foil\SpecialChar TeX
6164 , a package for preparing slides for overhead
6165  projectors.
6166  Modern \SpecialChar LaTeX
6167  distributions like \SpecialChar TeX
6168 Live (2008 or newer) or MiK\SpecialChar TeX
6169  provide a user interface
6170  for installing such packages.
6171  For example, with MiK\SpecialChar TeX
6172 , you start the program 
6173 \begin_inset Quotes eld
6174 \end_inset
6175
6176 Package
6177 \begin_inset space ~
6178 \end_inset
6179
6180 Manager
6181 \begin_inset Quotes erd
6182 \end_inset
6183
6184  to get a list of available packages.
6185  To install one of them, right click on it or use the corresponding toolbar
6186  button.
6187 \end_layout
6188
6189 \begin_layout Standard
6190 If your \SpecialChar LaTeX
6191  distribution does not provide such a `package manager', or if the
6192  package is not available from your distribution, then follow these steps
6193  to install it manually:
6194 \end_layout
6195
6196 \begin_layout Enumerate
6197 Get the package from 
6198 \begin_inset CommandInset href
6199 LatexCommand href
6200 name "CTAN"
6201 target "http://www.ctan.org/"
6202 literal "false"
6203
6204 \end_inset
6205
6206  or wherever.
6207 \end_layout
6208
6209 \begin_layout Enumerate
6210 If the package contains a file with the ending 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 .ins
6220 \end_layout
6221
6222 \end_inset
6223
6224
6225 \begin_inset Quotes erd
6226 \end_inset
6227
6228  (is the case for Foil\SpecialChar TeX
6229 ) then open a console, change to the folder of this
6230  file and execute the command 
6231 \begin_inset Flex Code
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235 latex foiltex.ins
6236 \end_layout
6237
6238 \end_inset
6239
6240 .
6241  You have now unpacked the package and have all files to install it.
6242  Most \SpecialChar LaTeX
6243 -packages are not packed and you can skip this step.
6244 \end_layout
6245
6246 \begin_layout Enumerate
6247 Now you need to decide if the package should be available for all users
6248  or only for you.
6249 \end_layout
6250
6251 \begin_deeper
6252 \begin_layout Enumerate
6253 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6254  for all users on your system, then install it in your `local' \SpecialChar TeX
6255  tree, otherwise
6256  install it in your own `user' \SpecialChar TeX
6257  tree.
6258  Where these trees should be created, if they do not already exist, depends
6259  on your system.
6260  To find this out, look in the file 
6261 \begin_inset Flex Code
6262 status collapsed
6263
6264 \begin_layout Plain Layout
6265 texmf.cnf
6266 \end_layout
6267
6268 \end_inset
6269
6270 .
6271 \begin_inset Foot
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 This is usually in the directory 
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 $TEXMF/web2c
6281 \end_layout
6282
6283 \end_inset
6284
6285 , though you can execute the command 
6286 \begin_inset Flex Code
6287 status collapsed
6288
6289 \begin_layout Plain Layout
6290 kpsewhich texmf.cnf
6291 \end_layout
6292
6293 \end_inset
6294
6295  to locate it.
6296 \end_layout
6297
6298 \end_inset
6299
6300  The location of the `local' \SpecialChar TeX
6301  tree is defined by the 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 TEXMFLOCAL
6307 \end_layout
6308
6309 \end_inset
6310
6311  variable; this is usually somewhere like 
6312 \begin_inset Flex Code
6313 status collapsed
6314
6315 \begin_layout Plain Layout
6316 /usr/local/share/texmf
6317 \end_layout
6318
6319 \end_inset
6320
6321  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6322 Live
6323  distribution.
6324  The location of the `user' \SpecialChar TeX
6325  tree is defined by 
6326 \begin_inset Flex Code
6327 status collapsed
6328
6329 \begin_layout Plain Layout
6330 TEXMFHOME
6331 \end_layout
6332
6333 \end_inset
6334
6335  and is commonly 
6336 \begin_inset Flex Code
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340 $HOME/texmf
6341 \end_layout
6342
6343 \end_inset
6344
6345  or 
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350
6351 \family sans
6352 $HOME/.texliveXXXX
6353 \end_layout
6354
6355 \end_inset
6356
6357 .
6358  (If these variables are not predefined, you have to define them.) You'll
6359  probably need root permissions to create or modify the `local' tree, but
6360  not for your `user' tree.
6361 \begin_inset Newline newline
6362 \end_inset
6363
6364 In general, it is recommended to install in the user tree because your user
6365  will not be modified or even overwritten when you upgrade your system.
6366  It will typically also be backed up together with everything else when
6367  you backup your home directory (which, of course, you do on a regular basis).
6368 \end_layout
6369
6370 \begin_layout Enumerate
6371 On Windows, if you want the new package to be available for all users on
6372  your system, change to the folder where \SpecialChar LaTeX
6373  is installed and then change to
6374  the subfolder 
6375 \begin_inset Flex Code
6376 status collapsed
6377
6378 \begin_layout Plain Layout
6379 ~
6380 \backslash
6381 tex
6382 \backslash
6383 latex
6384 \end_layout
6385
6386 \end_inset
6387
6388 .
6389  (For MiK\SpecialChar TeX
6390 , this would be by default the folder 
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 ~:
6396 \backslash
6397 Programs
6398 \backslash
6399 MiKTeX
6400 \backslash
6401 tex
6402 \backslash
6403 latex
6404 \end_layout
6405
6406 \end_inset
6407
6408 .)
6409 \begin_inset Foot
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 Note that this will be the correct path only on English installations.
6414  On a German one, it would be 
6415 \begin_inset Flex Code
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 ~:
6420 \backslash
6421 Programme
6422 \backslash
6423 MiKTeX
6424 \backslash
6425 tex
6426 \backslash
6427 latex
6428 \end_layout
6429
6430 \end_inset
6431
6432 , and similarly for other languages.
6433 \end_layout
6434
6435 \end_inset
6436
6437  Create there a new folder 
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 foiltex
6443 \end_layout
6444
6445 \end_inset
6446
6447  and copy all files of the package into it.
6448  
6449 \begin_inset Newline newline
6450 \end_inset
6451
6452 If the package should only available for you or you don't have admin permissions
6453 , do the same, but in the local \SpecialChar LaTeX
6454  folder.
6455  E.
6456 \begin_inset space \thinspace{}
6457 \end_inset
6458
6459 g., for MiK\SpecialChar TeX
6460
6461 \begin_inset space ~
6462 \end_inset
6463
6464 2.8 under Windows XP, this would be the folder:
6465 \begin_inset Newline newline
6466 \end_inset
6467
6468
6469 \family sans
6470
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 ~:
6476 \backslash
6477 Documents and Settings
6478 \backslash
6479 <username>
6480 \backslash
6481 Application Data
6482 \backslash
6483
6484 \end_layout
6485
6486 \end_inset
6487
6488
6489 \begin_inset Newline newline
6490 \end_inset
6491
6492
6493 \family default
6494
6495 \begin_inset Phantom HPhantom
6496 status open
6497
6498 \begin_layout Plain Layout
6499
6500 \family sans
6501 ~:
6502 \backslash
6503
6504 \end_layout
6505
6506 \end_inset
6507
6508
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 MiKTeX
6514 \backslash
6515 2.8
6516 \backslash
6517 tex
6518 \backslash
6519 latex
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528 On Vista, it would be:
6529 \begin_inset Newline newline
6530 \end_inset
6531
6532
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 ~:
6538 \backslash
6539 Users
6540 \backslash
6541 <username>
6542 \backslash
6543 AppData
6544 \backslash
6545 Roaming
6546 \backslash
6547 2.8
6548 \backslash
6549 MiKTeX
6550 \backslash
6551 tex
6552 \backslash
6553 latex
6554 \end_layout
6555
6556 \end_inset
6557
6558
6559 \end_layout
6560
6561 \end_deeper
6562 \begin_layout Enumerate
6563 Now one only need to tell \SpecialChar LaTeX
6564  that there are new files.
6565  This depends on the used \SpecialChar LaTeX
6566 -Distribution:
6567 \end_layout
6568
6569 \begin_deeper
6570 \begin_layout Enumerate
6571 For \SpecialChar TeX
6572 Live execute the command 
6573 \begin_inset Flex Code
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 texhash
6578 \end_layout
6579
6580 \end_inset
6581
6582  from a console.
6583  If you installed the package for all users, then you will probably need
6584  to have root permissions for that.
6585 \end_layout
6586
6587 \begin_layout Enumerate
6588 For MiK\SpecialChar TeX
6589 , if you have installed the package for all users, start the program
6590  
6591 \begin_inset Quotes eld
6592 \end_inset
6593
6594 Settings
6595 \begin_inset space ~
6596 \end_inset
6597
6598 (Admin)
6599 \begin_inset Quotes erd
6600 \end_inset
6601
6602  and press the button marked 
6603 \begin_inset Quotes eld
6604 \end_inset
6605
6606 Refresh FNDB
6607 \begin_inset Quotes erd
6608 \end_inset
6609
6610 .
6611  Otherwise start the program 
6612 \begin_inset Quotes eld
6613 \end_inset
6614
6615 Settings
6616 \begin_inset Quotes erd
6617 \end_inset
6618
6619  and do the same.
6620 \end_layout
6621
6622 \end_deeper
6623 \begin_layout Enumerate
6624 Finally, you need to tell \SpecialChar LyX
6625  that there are new packages available.
6626  So, in \SpecialChar LyX
6627 , use the menu 
6628 \begin_inset Flex Noun
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632 Tools
6633 \family sans
6634 \SpecialChar menuseparator
6635 Reconfigure
6636 \end_layout
6637
6638 \end_inset
6639
6640  and then restart \SpecialChar LyX
6641 .
6642 \end_layout
6643
6644 \begin_layout Standard
6645 Now the package is installed.
6646  In our example, the document class 
6647 \begin_inset Flex Code
6648 status collapsed
6649
6650 \begin_layout Plain Layout
6651 FoilTex
6652 \end_layout
6653
6654 \end_inset
6655
6656  will now be available under 
6657 \begin_inset Flex Noun
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 Document\SpecialChar menuseparator
6662 Settings\SpecialChar menuseparator
6663 Document Class
6664 \end_layout
6665
6666 \end_inset
6667
6668  (in the 
6669 \begin_inset Quotes eld
6670 \end_inset
6671
6672 Presentations
6673 \begin_inset Quotes erd
6674 \end_inset
6675
6676  category).
6677  
6678 \end_layout
6679
6680 \begin_layout Standard
6681 If you would like to use a \SpecialChar LaTeX
6682  document class that is not even listed in the
6683  menu 
6684 \begin_inset Flex Noun
6685 status collapsed
6686
6687 \begin_layout Plain Layout
6688 Document\SpecialChar menuseparator
6689 Settings\SpecialChar menuseparator
6690 Document Class
6691 \end_layout
6692
6693 \end_inset
6694
6695 , then you need to create a `layout' file for it.
6696  That is the topic of the next section.
6697 \end_layout
6698
6699 \begin_layout Section
6700 Types of layout files
6701 \end_layout
6702
6703 \begin_layout Standard
6704 This section describes the various sorts of \SpecialChar LyX
6705  files that contain layout informati
6706 on.
6707  These files describe various paragraph and character styles, determining
6708  how \SpecialChar LyX
6709  should display them and how they should be translated into \SpecialChar LaTeX
6710 , DocBook,
6711  XHTML, or whatever output format is being used.
6712  
6713 \end_layout
6714
6715 \begin_layout Standard
6716 We shall try to provide a thorough description of the process of writing
6717  layout files here.
6718  However, there are so many different types of documents supported even
6719  by just \SpecialChar LaTeX
6720  that we can't hope to cover every different possibility or problem
6721  you might encounter.
6722  The \SpecialChar LyX
6723  users' list is frequented by people with lots of experience with layout
6724  design who are willing to share what they've learned, so please feel free
6725  to ask questions there.
6726 \end_layout
6727
6728 \begin_layout Standard
6729 As you prepare to write a new layout, it is extremely helpful to look at
6730  the layouts distributed with \SpecialChar LyX
6731 .
6732  If you write a \SpecialChar LyX
6733  layout for a \SpecialChar LaTeX
6734  document class that might also be used by
6735  others, or write a module that might be useful to others, then you should
6736  consider posting your layout to the 
6737 \begin_inset CommandInset href
6738 LatexCommand href
6739 name "layout section on the LyX wiki"
6740 target "https://wiki.lyx.org/Layouts/Layouts"
6741 literal "false"
6742
6743 \end_inset
6744
6745  or even to the \SpecialChar LyX
6746  developers' list, so that it might be included in \SpecialChar LyX
6747  itself.
6748 \begin_inset Foot
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Note that \SpecialChar LyX
6753  is licensed under the General Public License, so any material
6754  that is contributed to \SpecialChar LyX
6755  must be similarly licensed.
6756 \end_layout
6757
6758 \end_inset
6759
6760
6761 \end_layout
6762
6763 \begin_layout Subsection
6764 Layout modules
6765 \begin_inset CommandInset label
6766 LatexCommand label
6767 name "subsec:Layout-modules"
6768
6769 \end_inset
6770
6771
6772 \end_layout
6773
6774 \begin_layout Standard
6775 We have spoken to this point about `layout files'.
6776  But there are different sorts of files that contain layout information.
6777  Layout files, strictly so called, have the 
6778 \begin_inset Flex Code
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 .layout
6783 \end_layout
6784
6785 \end_inset
6786
6787  extension and provide \SpecialChar LyX
6788  with information about document classes.
6789  Since \SpecialChar LyX
6790  1.6 layout information can also be contained in layout 
6791 \emph on
6792 modules
6793 \emph default
6794 , which have the 
6795 \begin_inset Flex Code
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799 .module
6800 \end_layout
6801
6802 \end_inset
6803
6804  extension.
6805  Modules are to \SpecialChar LaTeX
6806  packages much as layouts are to \SpecialChar LaTeX
6807  classes, and some modules—such
6808  as the 
6809 \begin_inset Flex Code
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 endnotes
6814 \end_layout
6815
6816 \end_inset
6817
6818  module—specifically provide support for one package.
6819  In a sense, layout modules are similar to included
6820 \begin_inset Foot
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 These can have any extension, but by convention have the 
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 .inc
6830 \end_layout
6831
6832 \end_inset
6833
6834  extension.
6835 \end_layout
6836
6837 \end_inset
6838
6839  files—files like 
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 stdsections.inc
6845 \end_layout
6846
6847 \end_inset
6848
6849 —in that modules are not specific to a given document class but may be used
6850  with many different classes.
6851  The difference is that using an included file with 
6852 \begin_inset Flex Code
6853 status collapsed
6854
6855 \begin_layout Plain Layout
6856 article.cls
6857 \end_layout
6858
6859 \end_inset
6860
6861  requires editing that file.
6862  Modules, by contrast, are selected in the 
6863 \begin_inset Flex Noun
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 Document\SpecialChar menuseparator
6868 Settings
6869 \end_layout
6870
6871 \end_inset
6872
6873  dialog.
6874 \end_layout
6875
6876 \begin_layout Standard
6877 Building modules is the easiest way to get started with layout editing,
6878  since it can be as simple as adding a single new paragraph style or flex
6879  inset.
6880  But modules may, in principle, contain anything a layout file can contain.
6881 \end_layout
6882
6883 \begin_layout Standard
6884 After creating a new module and copying it to the 
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 layouts/
6890 \end_layout
6891
6892 \end_inset
6893
6894  folder, you will need to reconfigure and then restart \SpecialChar LyX
6895  for the module to
6896  appear in the menu.
6897  However, changes you make to the module will be seen immediately, if you
6898  open 
6899 \begin_inset Flex Noun
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 Document\SpecialChar menuseparator
6904 Settings
6905 \end_layout
6906
6907 \end_inset
6908
6909 , highlight something, and then hit 
6910 \begin_inset Quotes eld
6911 \end_inset
6912
6913 OK
6914 \begin_inset Quotes erd
6915 \end_inset
6916
6917 .
6918  
6919 \emph on
6920 It is strongly recommended that you save your work before doing this
6921 \emph default
6922 .
6923  In fact, 
6924 \emph on
6925 it is strongly recommended that you not attempt to edit modules while simultaneo
6926 usly working on actual documents
6927 \emph default
6928 .
6929  Though of course the developers strive to keep \SpecialChar LyX
6930  stable in such situations,
6931  syntax errors and the like in your module file could cause strange behavior.
6932 \end_layout
6933
6934 \begin_layout Subsubsection
6935 Local Layout
6936 \end_layout
6937
6938 \begin_layout Standard
6939 Modules are to \SpecialChar LyX
6940  as packages are to \SpecialChar LaTeX
6941 .
6942  Sometimes, however, you find yourself wanting a specific inset or character
6943  style just for one document and writing a module that will also be available
6944  to other documents makes little sense.
6945  What you need is \SpecialChar LyX
6946 's 
6947 \begin_inset Quotes eld
6948 \end_inset
6949
6950 Local Layout
6951 \begin_inset Quotes erd
6952 \end_inset
6953
6954 .
6955 \end_layout
6956
6957 \begin_layout Standard
6958 You will find it under 
6959 \family sans
6960 Document\SpecialChar menuseparator
6961 Settings\SpecialChar menuseparator
6962 Local Layout
6963 \family default
6964 .
6965  The large text box allows you to enter anything that you might enter in
6966  a layout file or module.
6967  You can think of a document's local layout, in fact, as a module that belongs
6968  just to it.
6969  So, in particular, you must enter a 
6970 \begin_inset Flex Code
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 Format
6975 \end_layout
6976
6977 \end_inset
6978
6979  tag.
6980  Any format is acceptable, but one would normally use the format current
6981  at the time.
6982  (In \SpecialChar LyX
6983  
6984 \begin_inset Info
6985 type  "lyxinfo"
6986 arg   "version"
6987 \end_inset
6988
6989 , the current layout format is 
6990 \begin_inset Info
6991 type  "lyxinfo"
6992 arg   "layoutformat"
6993 \end_inset
6994
6995 .)
6996 \end_layout
6997
6998 \begin_layout Standard
6999 When you have entered something in the 
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 Local Layout
7005 \end_layout
7006
7007 \end_inset
7008
7009  pane, \SpecialChar LyX
7010  will enable the 
7011 \begin_inset Quotes eld
7012 \end_inset
7013
7014 Validate
7015 \begin_inset Quotes erd
7016 \end_inset
7017
7018  button at the bottom.
7019  Clicking this button will cause \SpecialChar LyX
7020  to determine whether what you have entered
7021  is valid layout information for the chosen format.
7022  \SpecialChar LyX
7023  will report the result but, unfortunately, will not tell you what errors
7024  there might have been.
7025  These will be written to the terminal, however, if \SpecialChar LyX
7026  is started from a terminal.
7027  You will not be permitted to save your local layout until you have entered
7028  something valid.
7029 \end_layout
7030
7031 \begin_layout Standard
7032 The warnings at the end of the previous section apply here, too.
7033  Do not play with local layout while you are actually working, especially
7034  if you have not saved your document.
7035  That said, using local layout with a test document can be a very convenient
7036  way to try out layout ideas, or even to start developing a module.
7037 \end_layout
7038
7039 \begin_layout Subsection
7040 Layout for 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 .sty
7046 \end_layout
7047
7048 \end_inset
7049
7050  files
7051 \end_layout
7052
7053 \begin_layout Standard
7054 There are two situations you are likely to encounter when wanting to support
7055  a new \SpecialChar LaTeX
7056  document class, involving style (
7057 \begin_inset Flex Code
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 .sty
7062 \end_layout
7063
7064 \end_inset
7065
7066 ) files and \SpecialChar LaTeX2e
7067  class (
7068 \begin_inset Flex Code
7069 status collapsed
7070
7071 \begin_layout Plain Layout
7072 .cls
7073 \end_layout
7074
7075 \end_inset
7076
7077 ) .
7078  Supporting a style file is usually fairly easy.
7079  Supporting a new class file is a bit harder.
7080  We'll discuss the former in this section and the latter in the next.
7081  Similar remarks apply, of course, if you want to support a new DocBook
7082  DTD.
7083 \end_layout
7084
7085 \begin_layout Standard
7086 The easier case is the one in which your new document class is provided
7087  as a style file that is to be used in conjunction with an already supported
7088  document class.
7089  For the sake of the example, we'll assume that the style file is called
7090  
7091 \begin_inset Flex Noun
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 myclass.sty
7096 \end_layout
7097
7098 \end_inset
7099
7100  and that it is meant to be used with 
7101 \begin_inset Flex Noun
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105 report.cls
7106 \end_layout
7107
7108 \end_inset
7109
7110 , which is a standard class.
7111  
7112 \end_layout
7113
7114 \begin_layout Standard
7115 Start by copying the existing class's layout file into your local directory:
7116 \begin_inset Foot
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 Of course, which directory is your local directory will vary by platform,
7121  and \SpecialChar LyX
7122  allows you to specify your local directory on startup, too, using
7123  the 
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 -userdir
7129 \end_layout
7130
7131 \end_inset
7132
7133  option.
7134 \end_layout
7135
7136 \end_inset
7137
7138
7139 \end_layout
7140
7141 \begin_layout LyX-Code
7142 cp report.layout ~/.lyx/layouts/myclass.layout
7143 \end_layout
7144
7145 \begin_layout Standard
7146 Then edit 
7147 \begin_inset Flex Code
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 myclass.layout
7152 \end_layout
7153
7154 \end_inset
7155
7156  and change the line: 
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160
7161 \backslash
7162 DeclareLaTeXClass{Report (Standard Class)}
7163 \end_layout
7164
7165 \begin_layout Standard
7166 to read
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170
7171 \backslash
7172 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7173 \end_layout
7174
7175 \begin_layout Standard
7176 Then add:
7177 \end_layout
7178
7179 \begin_layout LyX-Code
7180 Preamble 
7181 \begin_inset Newline newline
7182 \end_inset
7183
7184     
7185 \backslash
7186 usepackage{myclass}
7187 \begin_inset Newline newline
7188 \end_inset
7189
7190 EndPreamble
7191 \end_layout
7192
7193 \begin_layout Standard
7194 near the top of the file.
7195 \end_layout
7196
7197 \begin_layout Standard
7198 Start \SpecialChar LyX
7199  and select 
7200 \begin_inset Flex Noun
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204 Tools\SpecialChar menuseparator
7205 Reconfigure
7206 \end_layout
7207
7208 \end_inset
7209
7210 .
7211  Then restart \SpecialChar LyX
7212  and try creating a new document.
7213  You should see "
7214 \begin_inset Flex Noun
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 Report (My Class)
7219 \end_layout
7220
7221 \end_inset
7222
7223 " as a document class option in the 
7224 \begin_inset Flex Noun
7225 status collapsed
7226
7227 \begin_layout Plain Layout
7228 Document\SpecialChar menuseparator
7229 Settings
7230 \end_layout
7231
7232 \end_inset
7233
7234  dialog.
7235  It is likely that some of the sectioning commands and such in your new
7236  class will work differently from how they worked in the base class—
7237 \begin_inset Flex Code
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 report
7242 \end_layout
7243
7244 \end_inset
7245
7246  in this example—so you can fiddle around with the settings for the different
7247  sections if you wish.
7248  The layout information for sections is contained in 
7249 \begin_inset Flex Code
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 stdsections.inc
7254 \end_layout
7255
7256 \end_inset
7257
7258 , but you do not need to copy and change this file.
7259  Instead, you can simply add your changes to your layout file, after the
7260  line 
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 Input stdclass.inc
7266 \end_layout
7267
7268 \end_inset
7269
7270 , which itself includes 
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 stdsections.inc
7276 \end_layout
7277
7278 \end_inset
7279
7280 .
7281  For example, you might add these lines:
7282 \end_layout
7283
7284 \begin_layout LyX-Code
7285 Style Chapter
7286 \end_layout
7287
7288 \begin_layout LyX-Code
7289     Font
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293         Family Sans
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297     EndFont
7298 \end_layout
7299
7300 \begin_layout LyX-Code
7301 End
7302 \end_layout
7303
7304 \begin_layout Standard
7305 to change the font for chapter headings to sans-serif.
7306  This will override (or, in this case, add to) the existing declaration
7307  for the Chapter style.
7308  
7309 \end_layout
7310
7311 \begin_layout Standard
7312 Your new package may also provide commands or environments not present in
7313  the base class.
7314  In this case, you will want to add these to the layout file.
7315  See 
7316 \begin_inset CommandInset ref
7317 LatexCommand ref
7318 reference "sec:TextClass"
7319
7320 \end_inset
7321
7322  for information on how to do so.
7323 \end_layout
7324
7325 \begin_layout Standard
7326 If 
7327 \begin_inset Flex Noun
7328 status collapsed
7329
7330 \begin_layout Plain Layout
7331 myclass.sty
7332 \end_layout
7333
7334 \end_inset
7335
7336  can be used with several different document classes, and even if it cannot,
7337  you might find it easiest just to write a module that you can load with
7338  the base class.
7339  The simplest possible such module would be:
7340 \end_layout
7341
7342 \begin_layout LyX-Code
7343 #
7344 \backslash
7345 DeclareLyXModule{My Class} 
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 #DescriptionBegin 
7350 \end_layout
7351
7352 \begin_layout LyX-Code
7353 #Support for myclass.sty.
7354 \end_layout
7355
7356 \begin_layout LyX-Code
7357 #DescriptionEnd
7358 \begin_inset Newline newline
7359 \end_inset
7360
7361
7362 \end_layout
7363
7364 \begin_layout LyX-Code
7365 Format 
7366 \begin_inset Info
7367 type  "lyxinfo"
7368 arg   "layoutformat"
7369 \end_inset
7370
7371
7372 \begin_inset Newline newline
7373 \end_inset
7374
7375
7376 \end_layout
7377
7378 \begin_layout LyX-Code
7379 Preamble
7380 \begin_inset Newline newline
7381 \end_inset
7382
7383     
7384 \backslash
7385 usepackage{myclass}
7386 \begin_inset Newline newline
7387 \end_inset
7388
7389 EndPreamble
7390 \end_layout
7391
7392 \begin_layout Standard
7393 A more complex module might modify the behavior of some existing constructs
7394  or define some new ones.
7395  Again, see 
7396 \begin_inset CommandInset ref
7397 LatexCommand ref
7398 reference "sec:TextClass"
7399
7400 \end_inset
7401
7402  for discussion.
7403 \end_layout
7404
7405 \begin_layout Subsection
7406 Layout for 
7407 \begin_inset Flex Noun
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 .cls
7412 \end_layout
7413
7414 \end_inset
7415
7416  files
7417 \end_layout
7418
7419 \begin_layout Standard
7420 There are two possibilities here.
7421  One is that the class file is itself based upon an existing document class.
7422  For example, many thesis classes are based upon 
7423 \begin_inset Flex Noun
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 book.cls
7428 \end_layout
7429
7430 \end_inset
7431
7432 .
7433  To see whether yours is, look for a line like
7434 \end_layout
7435
7436 \begin_layout LyX-Code
7437
7438 \backslash
7439 LoadClass{book}
7440 \end_layout
7441
7442 \begin_layout Standard
7443 in the file.
7444  If so, then you may proceed largely as in the previous section, though
7445  the 
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 Declare\SpecialChar LaTeX
7451 Class
7452 \end_layout
7453
7454 \end_inset
7455
7456  line will be different.
7457  If your new class is 
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 thesis
7463 \end_layout
7464
7465 \end_inset
7466
7467  and it is based upon 
7468 \begin_inset Flex Code
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 book
7473 \end_layout
7474
7475 \end_inset
7476
7477 , then the line should read:
7478 \begin_inset Foot
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 And it will be easiest if you save the file to 
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 thesis.layout
7488 \end_layout
7489
7490 \end_inset
7491
7492 : \SpecialChar LyX
7493  assumes that the document class has the same name as the layout file.
7494  
7495 \end_layout
7496
7497 \end_inset
7498
7499
7500 \end_layout
7501
7502 \begin_layout LyX-Code
7503
7504 \backslash
7505 DeclareLaTeXClass[thesis,book]{thesis}
7506 \end_layout
7507
7508 \begin_layout Standard
7509 If, on the other hand, the new class is not based upon an existing class,
7510  you will probably have to 
7511 \begin_inset Quotes eld
7512 \end_inset
7513
7514 roll your own
7515 \begin_inset Quotes erd
7516 \end_inset
7517
7518  layout.
7519  We strongly suggest copying an existing layout file which uses a similar
7520  \SpecialChar LaTeX
7521  class and then modifying it, if you can do so.
7522  At least use an existing file as a starting point so you can find out what
7523  items you need to worry about.
7524  Again, the specifics are covered below.
7525 \end_layout
7526
7527 \begin_layout Subsection
7528 Creating templates
7529 \begin_inset CommandInset label
7530 LatexCommand label
7531 name "subsec:Creating-Templates"
7532
7533 \end_inset
7534
7535
7536 \end_layout
7537
7538 \begin_layout Standard
7539 Once you have written a layout file for a new document class, you might
7540  want to consider writing a 
7541 \emph on
7542 template
7543 \emph default
7544  for it, too.
7545  A template acts as a kind of tutorial for your layout, showing how it might
7546  be used, though containing dummy content.
7547  You can of course look at the various templates included with \SpecialChar LyX
7548  for ideas.
7549 \end_layout
7550
7551 \begin_layout Standard
7552 Templates are created just like usual documents: using \SpecialChar LyX
7553 .
7554  The only difference is that usual documents contain all possible settings,
7555  including the font scheme and the paper size.
7556  Usually a user doesn't want a template to overwrite his preferred settings
7557  for such parameters.
7558  For that reason, the designer of a template should remove the corresponding
7559  commands like 
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564
7565 \backslash
7566 font_roman
7567 \end_layout
7568
7569 \end_inset
7570
7571  or 
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576
7577 \backslash
7578 papersize
7579 \end_layout
7580
7581 \end_inset
7582
7583  from the template \SpecialChar LyX
7584  file.
7585  This can be done with any simple text-editor, for example 
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590 vi
7591 \end_layout
7592
7593 \end_inset
7594
7595  or 
7596 \begin_inset Flex Code
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 notepad
7601 \end_layout
7602
7603 \end_inset
7604
7605 .
7606 \end_layout
7607
7608 \begin_layout Standard
7609 Put the edited template files you create in 
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 UserDir/templates/
7615 \end_layout
7616
7617 \end_inset
7618
7619 , copy the ones you use from the global template directory in 
7620 \begin_inset Flex Code
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 LyXDir/templates/
7625 \end_layout
7626
7627 \end_inset
7628
7629  to the same place, and redefine the template path in the 
7630 \begin_inset Flex Noun
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 Tools\SpecialChar menuseparator
7635 Preferences\SpecialChar menuseparator
7636 Paths
7637 \end_layout
7638
7639 \end_inset
7640
7641  dialog.
7642 \end_layout
7643
7644 \begin_layout Standard
7645 Note, by the way, that there is a template which has a particular meaning:
7646 \begin_inset Newline linebreak
7647 \end_inset
7648
7649
7650 \begin_inset Flex Code
7651 status collapsed
7652
7653 \begin_layout Plain Layout
7654 defaults.lyx
7655 \end_layout
7656
7657 \end_inset
7658
7659 .
7660  This template is loaded every time you create a new document with 
7661 \begin_inset Flex Noun
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 File\SpecialChar menuseparator
7666 New
7667 \end_layout
7668
7669 \end_inset
7670
7671  in order to provide useful defaults.
7672  To create this template from inside \SpecialChar LyX
7673 , all you have to do is to open a document
7674  with the correct settings, and use the 
7675 \begin_inset Flex Noun
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 Save as Document Defaults
7680 \end_layout
7681
7682 \end_inset
7683
7684  button.
7685 \end_layout
7686
7687 \begin_layout Subsection
7688 Upgrading old layout files
7689 \end_layout
7690
7691 \begin_layout Standard
7692 The format of layout files changes with each \SpecialChar LyX
7693  release, so old layout files
7694  need to be converted to the new format.
7695  If \SpecialChar LyX
7696  reads a layout file in an older format, it automatically calls the
7697  script 
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 layout2layout.py
7703 \end_layout
7704
7705 \end_inset
7706
7707  to convert it to a temporary file in current format.
7708  The original file is left untouched.
7709  If you use the layout file often, then, you may want to convert it permanently,
7710  so that \SpecialChar LyX
7711  does not have to do so itself every time.
7712  To do this, you can call the converter manually:
7713 \end_layout
7714
7715 \begin_layout Enumerate
7716 rename the file 
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 myclass.layout
7722 \end_layout
7723
7724 \end_inset
7725
7726  to 
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 myclass.old
7732 \end_layout
7733
7734 \end_inset
7735
7736
7737 \end_layout
7738
7739 \begin_layout Enumerate
7740 Call the command
7741 \begin_inset Newline newline
7742 \end_inset
7743
7744
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7750 \end_layout
7751
7752 \end_inset
7753
7754
7755 \begin_inset Newline newline
7756 \end_inset
7757
7758 where 
7759 \begin_inset Flex Code
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 LyXDir
7764 \end_layout
7765
7766 \end_inset
7767
7768  is the name of your \SpecialChar LyX
7769  system directory.
7770 \end_layout
7771
7772 \begin_layout Standard
7773 Note that manual conversion does not affect included files, so these will
7774  have to be converted separately.
7775 \end_layout
7776
7777 \begin_layout Subsection
7778 \begin_inset CommandInset label
7779 LatexCommand label
7780 name "subsec:Cite-Engine-Files"
7781
7782 \end_inset
7783
7784 Cite engine files
7785 \end_layout
7786
7787 \begin_layout Standard
7788 A specific form of layout files are the so-called 
7789 \begin_inset Flex Code
7790 status collapsed
7791
7792 \begin_layout Plain Layout
7793 *.citeengine
7794 \end_layout
7795
7796 \end_inset
7797
7798  files that are located in the 
7799 \begin_inset Flex Code
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 citeengines/
7804 \end_layout
7805
7806 \end_inset
7807
7808  sub-directory.
7809  Their purpose is to define the specifics of \SpecialChar LaTeX
7810  packages aimed at bibliography
7811  generation, such as 
7812 \family sans
7813 natbib
7814 \family default
7815 ,
7816 \family sans
7817  jurabib
7818 \family default
7819  or 
7820 \family sans
7821 biblatex
7822 \family default
7823 , but also the way how normal Bib\SpecialChar TeX
7824  citations (without additional packages)
7825  are handled in \SpecialChar LyX
7826  is defined in such a file.
7827  
7828 \end_layout
7829
7830 \begin_layout Standard
7831 More specifically, it is defined which packages \SpecialChar LyX
7832  needs to load, which citation
7833  commands are available, how these are to be displayed in \SpecialChar LyX
7834  (in the workarea,
7835  the dialogs, the context menus) as well as in the XHTML and plain text
7836  output.
7837  Furthermore, the files specify available style variants (author-year, numerical
7838 , etc.) and their specifics.
7839  The cite engine files are also used to generate the options that are available
7840  in 
7841 \family sans
7842 Document\SpecialChar menuseparator
7843 Settings\SpecialChar menuseparator
7844 Bibliography\SpecialChar menuseparator
7845 Style engine
7846 \family default
7847 .
7848 \end_layout
7849
7850 \begin_layout Standard
7851 Even though a cite engine file is essentially a normal layout file that
7852  could theoretically include any layout information, it usually primarily
7853  includes some specific parameters such as 
7854 \begin_inset Flex Code
7855 status collapsed
7856
7857 \begin_layout Plain Layout
7858 MaxCiteNames
7859 \end_layout
7860
7861 \end_inset
7862
7863
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 CiteFramework
7869 \end_layout
7870
7871 \end_inset
7872
7873
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 CiteEngine
7879 \end_layout
7880
7881 \end_inset
7882
7883  and 
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 CiteFormat
7889 \end_layout
7890
7891 \end_inset
7892
7893  blocks.
7894  The syntax of the latter two is described in 
7895 \begin_inset CommandInset ref
7896 LatexCommand ref
7897 reference "subsec:Citation-engine-description"
7898 plural "false"
7899 caps "false"
7900 noprefix "false"
7901
7902 \end_inset
7903
7904  and 
7905 \begin_inset CommandInset ref
7906 LatexCommand ref
7907 reference "subsec:Citation-format-description"
7908
7909 \end_inset
7910
7911 , as well as in the files themselves.
7912 \end_layout
7913
7914 \begin_layout Section
7915 \begin_inset CommandInset label
7916 LatexCommand label
7917 name "sec:TextClass"
7918
7919 \end_inset
7920
7921 The layout file format
7922 \end_layout
7923
7924 \begin_layout Standard
7925 The following sections describe how layout files are structured and written.
7926  Our advice is to go slowly, save and test often.
7927  It is really not that hard, except that the multitude of options can become
7928  overwhelming, especially if you try to check out too many at once.
7929  It becomes easier if you use existing layouts of \SpecialChar LyX
7930  as examples/reference
7931  or if you modify an existing layout to your needs.
7932 \end_layout
7933
7934 \begin_layout Standard
7935 Note that all the tags used in layout files are case-insensitive.
7936  This means that 
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 Style
7942 \end_layout
7943
7944 \end_inset
7945
7946
7947 \begin_inset Flex Code
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 style
7952 \end_layout
7953
7954 \end_inset
7955
7956  and 
7957 \begin_inset Flex Code
7958 status collapsed
7959
7960 \begin_layout Plain Layout
7961 StYlE
7962 \end_layout
7963
7964 \end_inset
7965
7966  are really the same tag.
7967  The possible arguments are printed in brackets after the tag's name.
7968  The default argument is typeset 
7969 \begin_inset Flex Code
7970 status collapsed
7971
7972 \begin_layout Plain Layout
7973
7974 \emph on
7975 emphasized
7976 \end_layout
7977
7978 \end_inset
7979
7980 .
7981  If the argument has a data type like 
7982 \begin_inset Quotes eld
7983 \end_inset
7984
7985 string
7986 \begin_inset Quotes erd
7987 \end_inset
7988
7989  or 
7990 \begin_inset Quotes eld
7991 \end_inset
7992
7993 float
7994 \begin_inset Quotes erd
7995 \end_inset
7996
7997 , the default is shown like this: 
7998 \begin_inset Flex Code
7999 status collapsed
8000
8001 \begin_layout Plain Layout
8002 float=
8003 \emph on
8004 default
8005 \end_layout
8006
8007 \end_inset
8008
8009 .
8010 \end_layout
8011
8012 \begin_layout Subsection
8013 The document class declaration and classification
8014 \end_layout
8015
8016 \begin_layout Standard
8017 Lines in a layout file which begin with 
8018 \begin_inset Flex Code
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 #
8023 \end_layout
8024
8025 \end_inset
8026
8027  are comments.
8028  There is one exception to this rule.
8029  All 
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 *.layout
8035 \end_layout
8036
8037 \end_inset
8038
8039  files should begin with lines like:
8040 \end_layout
8041
8042 \begin_layout LyX-Code
8043
8044 \size small
8045 #% Do not delete the line below; configure depends on this 
8046 \end_layout
8047
8048 \begin_layout LyX-Code
8049
8050 \size small
8051 #  
8052 \backslash
8053 DeclareLaTeXClass{Article (Standard Class)}
8054 \end_layout
8055
8056 \begin_layout LyX-Code
8057
8058 \size small
8059 #  
8060 \backslash
8061 DeclareCategory{Articles}
8062 \end_layout
8063
8064 \begin_layout Standard
8065 The second and third lines are used when you (re)configure \SpecialChar LyX
8066 .
8067  The layout file is read by the \SpecialChar LaTeX
8068  script 
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 chkconfig.ltx
8074 \end_layout
8075
8076 \end_inset
8077
8078 , in a special mode where 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 #
8084 \end_layout
8085
8086 \end_inset
8087
8088  is ignored.
8089  The first line is just a \SpecialChar LaTeX
8090  comment, the second one contains the mandatory
8091  declaration of the text class and the third line contains the optional
8092  classification of the class.
8093  If these lines appear in a file named 
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 article.layout
8099 \end_layout
8100
8101 \end_inset
8102
8103 , then they define a text class of name 
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 article
8109 \end_layout
8110
8111 \end_inset
8112
8113  (the name of the layout file) which uses the \SpecialChar LaTeX
8114  document class 
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 article.cls
8120 \end_layout
8121
8122 \end_inset
8123
8124  (the default is to use the same name as the layout).
8125  The string 
8126 \begin_inset Quotes eld
8127 \end_inset
8128
8129 Article (Standard Class)
8130 \begin_inset Quotes erd
8131 \end_inset
8132
8133  that appears above is used as a description of the text class in the 
8134 \begin_inset Flex Noun
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 Document\SpecialChar menuseparator
8139 Settings
8140 \end_layout
8141
8142 \end_inset
8143
8144  dialog.
8145  The category (
8146 \begin_inset Quotes eld
8147 \end_inset
8148
8149 Articles
8150 \begin_inset Quotes erd
8151 \end_inset
8152
8153  in the example) is also used in the 
8154 \begin_inset Flex Noun
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 Document\SpecialChar menuseparator
8159 Settings
8160 \end_layout
8161
8162 \end_inset
8163
8164  dialog: the text classes are grouped by these categories (which are usually
8165  genres, so typical categories are 
8166 \begin_inset Quotes eld
8167 \end_inset
8168
8169 Articles
8170 \begin_inset Quotes erd
8171 \end_inset
8172
8173
8174 \begin_inset Quotes eld
8175 \end_inset
8176
8177 Books
8178 \begin_inset Quotes erd
8179 \end_inset
8180
8181
8182 \begin_inset Quotes eld
8183 \end_inset
8184
8185 Reports
8186 \begin_inset Quotes erd
8187 \end_inset
8188
8189
8190 \begin_inset Quotes eld
8191 \end_inset
8192
8193 Letters
8194 \begin_inset Quotes erd
8195 \end_inset
8196
8197
8198 \begin_inset Quotes eld
8199 \end_inset
8200
8201 Presentations
8202 \begin_inset Quotes erd
8203 \end_inset
8204
8205
8206 \begin_inset Quotes eld
8207 \end_inset
8208
8209 Curricula Vitae
8210 \begin_inset Quotes erd
8211 \end_inset
8212
8213  etc.).
8214  If no category has been declared, the class will be put in the 
8215 \begin_inset Quotes eld
8216 \end_inset
8217
8218 Uncategorized
8219 \begin_inset Quotes erd
8220 \end_inset
8221
8222  group.
8223 \end_layout
8224
8225 \begin_layout Standard
8226 Let's assume that you wrote your own text class that uses the 
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 article.cls
8232 \end_layout
8233
8234 \end_inset
8235
8236  document class, but where you changed the appearance of the section headings.
8237  If you put it in a file 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 myarticle.layout
8243 \end_layout
8244
8245 \end_inset
8246
8247 , the header of this file should be:
8248 \end_layout
8249
8250 \begin_layout LyX-Code
8251
8252 \size small
8253 #% Do not delete the line below; configure depends on this 
8254 \end_layout
8255
8256 \begin_layout LyX-Code
8257
8258 \size small
8259 #  
8260 \backslash
8261 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8262 \end_layout
8263
8264 \begin_layout LyX-Code
8265
8266 \size small
8267 #  
8268 \backslash
8269 DeclareCategory{Articles}
8270 \end_layout
8271
8272 \begin_layout Standard
8273 This declares a text class 
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278 myarticle
8279 \end_layout
8280
8281 \end_inset
8282
8283 , associated with the \SpecialChar LaTeX
8284  document class 
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 article.cls
8290 \end_layout
8291
8292 \end_inset
8293
8294  and described as 
8295 \begin_inset Quotes eld
8296 \end_inset
8297
8298 Article (with My Own Headings)
8299 \begin_inset Quotes erd
8300 \end_inset
8301
8302 .
8303  If your text class depends on several packages, you can declare it as:
8304 \end_layout
8305
8306 \begin_layout LyX-Code
8307
8308 \size small
8309 #% Do not delete the line below; configure depends on this 
8310 \end_layout
8311
8312 \begin_layout LyX-Code
8313
8314 \size small
8315 #  
8316 \backslash
8317 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8318 \end_layout
8319
8320 \begin_layout LyX-Code
8321
8322 \size small
8323 #  
8324 \backslash
8325 DeclareCategory{Articles}
8326 \end_layout
8327
8328 \begin_layout Standard
8329 This indicates that your text class uses the 
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 foo.sty
8335 \end_layout
8336
8337 \end_inset
8338
8339  package.
8340  Finally, it is also possible to declare classes for DocBook code.
8341  Typical declarations will look like:
8342 \end_layout
8343
8344 \begin_layout LyX-Code
8345
8346 \size small
8347 #% Do not delete the line below; configure depends on this 
8348 \end_layout
8349
8350 \begin_layout LyX-Code
8351
8352 \size small
8353
8354 \backslash
8355 DeclareDocBookClass[article]{SGML (DocBook Article)}
8356 \end_layout
8357
8358 \begin_layout LyX-Code
8359
8360 \size small
8361
8362 \backslash
8363 DeclareCategory{Articles (DocBook)}
8364 \end_layout
8365
8366 \begin_layout Standard
8367 Note that these declarations can also be given an optional parameter declaring
8368  the name of the document class (but not a list).
8369 \end_layout
8370
8371 \begin_layout Standard
8372 So, to be as explicit as possible, the form of the layout declaration is:
8373 \end_layout
8374
8375 \begin_layout LyX-Code
8376
8377 \size small
8378 #  
8379 \backslash
8380 DeclareLaTeXClass[class,package.sty]{layout description}
8381 \end_layout
8382
8383 \begin_layout LyX-Code
8384
8385 \size small
8386 #  
8387 \backslash
8388 DeclareCategory{category}
8389 \end_layout
8390
8391 \begin_layout Standard
8392 The class need only be specified if the name of the \SpecialChar LaTeX
8393  class file and the
8394  name of the layout file are different or if there are packages to load.
8395  If the name of the class file is not specified, then \SpecialChar LyX
8396  will simply assume
8397  that it is the same as the name of the layout file.
8398 \end_layout
8399
8400 \begin_layout Standard
8401 When the text class has been modified to your taste, all you have to do
8402  is to copy it either to 
8403 \begin_inset Flex Code
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 LyXDir/layouts/
8408 \end_layout
8409
8410 \end_inset
8411
8412  or to 
8413 \begin_inset Flex Code
8414 status collapsed
8415
8416 \begin_layout Plain Layout
8417 UserDir/layouts
8418 \end_layout
8419
8420 \end_inset
8421
8422 , run 
8423 \begin_inset Flex Noun
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 Tools\SpecialChar menuseparator
8428 Reconfigure
8429 \end_layout
8430
8431 \end_inset
8432
8433 , exit \SpecialChar LyX
8434  and restart.
8435  Then your new text class should be available along with the others.
8436 \end_layout
8437
8438 \begin_layout Standard
8439 Once the layout file is installed, you can edit it and see your changes
8440  without having to reconfigure or to restart \SpecialChar LyX
8441 .
8442 \begin_inset Foot
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 In versions of \SpecialChar LyX
8447  prior to 1.6, this was not true.
8448  As a result, editing layout files was very time consuming, since you had
8449  constantly to restart \SpecialChar LyX
8450  to see changes.
8451 \end_layout
8452
8453 \end_inset
8454
8455  You can force a reload of the current layout by using the \SpecialChar LyX
8456  function 
8457 \begin_inset Flex Noun
8458 status collapsed
8459
8460 \begin_layout Plain Layout
8461 layout-reload
8462 \end_layout
8463
8464 \end_inset
8465
8466 .
8467  There is no default binding for this function—though, of course, you can
8468  bind it to a key yourself.
8469  But you will normally use this function simply by entering it in the mini-buffe
8470 r.
8471  
8472 \end_layout
8473
8474 \begin_layout Standard
8475
8476 \emph on
8477 Warning
8478 \emph default
8479
8480 \begin_inset Flex Noun
8481 status collapsed
8482
8483 \begin_layout Plain Layout
8484 layout-reload
8485 \end_layout
8486
8487 \end_inset
8488
8489  is very much an `advanced feature'.
8490  It is 
8491 \emph on
8492 strongly
8493 \emph default
8494  recommended that you save your work before using this function.
8495  In fact, it is 
8496 \emph on
8497 strongly
8498 \emph default
8499  recommended that you not attempt to edit layout information while simultaneousl
8500 y working on a document that you care about.
8501  Use a test document.
8502  Syntax errors and the like in your layout file could cause peculiar behavior.
8503  In particular, such errors could cause \SpecialChar LyX
8504  to regard the current layout as
8505  invalid and to attempt to switch to some other layout.
8506 \begin_inset Foot
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 Really bad syntax errors may even caused \SpecialChar LyX
8511  to exit.
8512  This is because certain sorts of errors may make \SpecialChar LyX
8513  unable to read 
8514 \emph on
8515 any
8516 \emph default
8517  layout information.
8518  Please be careful.
8519 \end_layout
8520
8521 \end_inset
8522
8523  The \SpecialChar LyX
8524  team strives to keep \SpecialChar LyX
8525  stable in such situations, but safe is better
8526  than sorry.
8527 \begin_inset Foot
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 While we're giving advice: make regular backups.
8532  And be nice to your mother.
8533 \end_layout
8534
8535 \end_inset
8536
8537
8538 \end_layout
8539
8540 \begin_layout Subsection
8541 The Module declaration
8542 \end_layout
8543
8544 \begin_layout Standard
8545 A module must begin with a line like the following:
8546 \end_layout
8547
8548 \begin_layout LyX-Code
8549 #
8550 \backslash
8551 DeclareLyXModule[endnotes.sty]{Endnotes}
8552 \change_inserted -712698321 1554395911
8553
8554 \end_layout
8555
8556 \begin_layout LyX-Code
8557
8558 \change_inserted -712698321 1554395924
8559
8560 \size small
8561 #
8562 \backslash
8563 DeclareCategory{Foot- and Endnotes}
8564 \change_deleted -712698321 1554395911
8565
8566 \size default
8567  
8568 \change_unchanged
8569
8570 \end_layout
8571
8572 \begin_layout Standard
8573 The mandatory argument
8574 \change_inserted -712698321 1554395956
8575  of 
8576 \family typewriter
8577
8578 \backslash
8579 DeclareLyXModule
8580 \change_unchanged
8581
8582 \family default
8583 , in curly brackets, is the name of the module, as it should appear in 
8584 \begin_inset Flex Noun
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Document\SpecialChar menuseparator
8589 Settings\SpecialChar menuseparator
8590 Modules
8591 \end_layout
8592
8593 \end_inset
8594
8595 .
8596  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8597  packages
8598  on which the module depends.
8599  It is also possible to use the form 
8600 \begin_inset Flex Noun
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 from->to
8605 \end_layout
8606
8607 \end_inset
8608
8609  as an optional argument, which declares that the module can only be used
8610  when there exists a conversion chain between the formats `
8611 \begin_inset Flex Code
8612 status collapsed
8613
8614 \begin_layout Plain Layout
8615 from
8616 \end_layout
8617
8618 \end_inset
8619
8620 ' and `
8621 \begin_inset Flex Code
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 to
8626 \end_layout
8627
8628 \end_inset
8629
8630 '.
8631
8632 \change_inserted -712698321 1554396133
8633  The 
8634 \family typewriter
8635
8636 \backslash
8637 DeclareCategory
8638 \family default
8639  declaration is not strictly mandatory, but you should add it, since it
8640  is helpful to find the module.
8641  Please have a look at the existing module categories and if appropriate,
8642  use one of those.
8643 \change_unchanged
8644
8645 \end_layout
8646
8647 \begin_layout Standard
8648 The module 
8649 \change_inserted -712698321 1554395988
8650 and category 
8651 \change_unchanged
8652 declaration should then be followed by lines like the following:
8653 \begin_inset Foot
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 Preferably in English if the module should be published with \SpecialChar LyX
8658 .
8659  This description will appear in the list of messages to be translated and
8660  will be thus translated with the next interface update.
8661 \end_layout
8662
8663 \end_inset
8664
8665
8666 \end_layout
8667
8668 \begin_layout LyX-Code
8669 #DescriptionBegin 
8670 \end_layout
8671
8672 \begin_layout LyX-Code
8673 #Adds an endnote command, in addition to footnotes.
8674  
8675 \end_layout
8676
8677 \begin_layout LyX-Code
8678 #You will need to add  
8679 \backslash
8680 theendnotes in TeX code where you 
8681 \end_layout
8682
8683 \begin_layout LyX-Code
8684 #want the endnotes to appear.
8685  
8686 \end_layout
8687
8688 \begin_layout LyX-Code
8689 #DescriptionEnd 
8690 \end_layout
8691
8692 \begin_layout LyX-Code
8693 #Requires: somemodule | othermodule
8694 \end_layout
8695
8696 \begin_layout LyX-Code
8697 #Excludes: badmodule
8698 \end_layout
8699
8700 \begin_layout Standard
8701 The description is used in 
8702 \begin_inset Flex Noun
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706 Document\SpecialChar menuseparator
8707 Settings\SpecialChar menuseparator
8708 Modules
8709 \end_layout
8710
8711 \end_inset
8712
8713  to provide the user with information about what the module does.
8714  The 
8715 \begin_inset Flex Code
8716 status collapsed
8717
8718 \begin_layout Plain Layout
8719 Requires
8720 \end_layout
8721
8722 \end_inset
8723
8724  line is used to identify other modules with which this one must be used;
8725  the 
8726 \begin_inset Flex Code
8727 status collapsed
8728
8729 \begin_layout Plain Layout
8730 Excludes
8731 \end_layout
8732
8733 \end_inset
8734
8735  line is used to identify modules with which this one may not be used.
8736  Both are optional, and, as shown, multiple modules should be separated
8737  with the pipe symbol: |.
8738  Note that the required modules are treated disjunctively: 
8739 \emph on
8740 at least one
8741 \emph default
8742  of the required modules must be used.
8743  Similarly, 
8744 \emph on
8745 no
8746 \emph default
8747  excluded module may be used.
8748  Note that modules are identified here by their filenames without the 
8749 \begin_inset Flex Code
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 .module
8754 \end_layout
8755
8756 \end_inset
8757
8758  extension.
8759  So 
8760 \begin_inset Flex Code
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764 somemodule
8765 \end_layout
8766
8767 \end_inset
8768
8769  is really 
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 somemodule.module
8775 \end_layout
8776
8777 \end_inset
8778
8779 .
8780 \end_layout
8781
8782 \begin_layout Subsection
8783 The CiteEngine file declaration
8784 \end_layout
8785
8786 \begin_layout Standard
8787 A cite engine file must begin with a line like the following:
8788 \end_layout
8789
8790 \begin_layout LyX-Code
8791 #
8792 \backslash
8793 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8794 \end_layout
8795
8796 \begin_layout Standard
8797 The mandatory argument, in curly brackets, is the name of the cite style,
8798  as it should appear in 
8799 \begin_inset Flex Noun
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 Document\SpecialChar menuseparator
8804 Settings\SpecialChar menuseparator
8805 Bibliography
8806 \end_layout
8807
8808 \end_inset
8809
8810 .
8811  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8812  packages
8813  on which the cite engine depends.
8814 \end_layout
8815
8816 \begin_layout Standard
8817 The cite engine declaration should then be followed by lines like the following:
8818 \begin_inset Foot
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 Preferably in English if the module should be published with \SpecialChar LyX
8823 .
8824  This description will appear in the list of messages to be translated and
8825  will be thus translated with the next interface update.
8826 \end_layout
8827
8828 \end_inset
8829
8830
8831 \end_layout
8832
8833 \begin_layout LyX-Code
8834 # DescriptionBegin
8835 \end_layout
8836
8837 \begin_layout LyX-Code
8838 #   Biblatex supports many author-year and numerical styles.
8839 \end_layout
8840
8841 \begin_layout LyX-Code
8842 #   It is mainly aimed at the Humanities.
8843  It is highly
8844 \end_layout
8845
8846 \begin_layout LyX-Code
8847 #   customizable, fully localized and provides many features
8848 \end_layout
8849
8850 \begin_layout LyX-Code
8851 #   that are not possible with BibTeX.
8852  The use of 'biber' as
8853 \end_layout
8854
8855 \begin_layout LyX-Code
8856 #   bibliography processor is advised.
8857 \end_layout
8858
8859 \begin_layout LyX-Code
8860 # DescriptionEnd
8861 \end_layout
8862
8863 \begin_layout Standard
8864 The description is used in 
8865 \begin_inset Flex Noun
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 Document\SpecialChar menuseparator
8870 Settings\SpecialChar menuseparator
8871 Bibliography
8872 \end_layout
8873
8874 \end_inset
8875
8876  to provide the user with information about the cite engine.
8877 \end_layout
8878
8879 \begin_layout Subsection
8880 Format number
8881 \end_layout
8882
8883 \begin_layout Standard
8884 The first non-comment line of any layout file, included file, or module
8885  
8886 \emph on
8887 must
8888 \emph default
8889  contain the file format number:
8890 \end_layout
8891
8892 \begin_layout Description
8893 \begin_inset Flex Code
8894 status collapsed
8895
8896 \begin_layout Plain Layout
8897 Format
8898 \end_layout
8899
8900 \end_inset
8901
8902  [
8903 \begin_inset Flex Code
8904 status collapsed
8905
8906 \begin_layout Plain Layout
8907 int
8908 \end_layout
8909
8910 \end_inset
8911
8912 ] The format number of the layout file.
8913 \end_layout
8914
8915 \begin_layout Standard
8916 This tag was introduced with \SpecialChar LyX
8917
8918 \begin_inset space ~
8919 \end_inset
8920
8921 1.4.0.
8922  Layout files from older \SpecialChar LyX
8923  versions do not have an explicit file format and
8924  are considered to have 
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929 Format
8930 \begin_inset space ~
8931 \end_inset
8932
8933 1
8934 \end_layout
8935
8936 \end_inset
8937
8938 .
8939  The format for the present version of \SpecialChar LyX
8940  is format 60.
8941  But each version of \SpecialChar LyX
8942  is capable of reading earlier versions' layout files,
8943  just as they are capable of reading files produced by earlier versions
8944  of \SpecialChar LyX
8945 .
8946  There is, however, no provision for converting to earlier formats.
8947 \end_layout
8948
8949 \begin_layout Subsection
8950 \begin_inset CommandInset label
8951 LatexCommand label
8952 name "subsec:General-text-class"
8953
8954 \end_inset
8955
8956 General text class parameters
8957 \end_layout
8958
8959 \begin_layout Standard
8960 These are general parameters that govern the behavior of an entire document
8961  class.
8962  (This does 
8963 \emph on
8964 not
8965 \emph default
8966  mean that they must appear in 
8967 \begin_inset Flex Code
8968 status collapsed
8969
8970 \begin_layout Plain Layout
8971 .layout
8972 \end_layout
8973
8974 \end_inset
8975
8976  files rather than in modules.
8977  A module can contain any layout tag.)
8978 \end_layout
8979
8980 \begin_layout Description
8981
8982 \change_inserted -712698321 1526899478
8983 \begin_inset Flex Code
8984 status collapsed
8985
8986 \begin_layout Plain Layout
8987
8988 \change_inserted -712698321 1526898610
8989 AddToCiteEngine <engine>
8990 \end_layout
8991
8992 \end_inset
8993
8994  Extends the possibilities for displaying citation references.
8995  See 
8996 \begin_inset CommandInset ref
8997 LatexCommand ref
8998 reference "subsec:Citation-engine-description"
8999 plural "false"
9000 caps "false"
9001 noprefix "false"
9002
9003 \end_inset
9004
9005  for details.
9006  Must end with 
9007 \begin_inset Flex Code
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011
9012 \change_inserted -712698321 1526898823
9013 End
9014 \change_unchanged
9015
9016 \end_layout
9017
9018 \end_inset
9019
9020 .
9021 \end_layout
9022
9023 \begin_layout Description
9024 \begin_inset Flex Code
9025 status collapsed
9026
9027 \begin_layout Plain Layout
9028 AddToHTMLPreamble
9029 \end_layout
9030
9031 \end_inset
9032
9033  Adds information that will be output in the 
9034 \begin_inset Flex Code
9035 status collapsed
9036
9037 \begin_layout Plain Layout
9038 <head>
9039 \end_layout
9040
9041 \end_inset
9042
9043  block when the document is output to XHTML.
9044  Typically, this would be used to output CSS style information, but it can
9045  be used for anything that can appear in 
9046 \begin_inset Flex Code
9047 status collapsed
9048
9049 \begin_layout Plain Layout
9050 <head>
9051 \end_layout
9052
9053 \end_inset
9054
9055 .
9056  Must end with 
9057 \begin_inset Quotes eld
9058 \end_inset
9059
9060
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 EndPreamble
9066 \end_layout
9067
9068 \end_inset
9069
9070
9071 \begin_inset Quotes erd
9072 \end_inset
9073
9074 .
9075 \end_layout
9076
9077 \begin_layout Description
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 AddToPreamble
9083 \end_layout
9084
9085 \end_inset
9086
9087  Adds information to the document preamble.
9088  Must end with
9089 \begin_inset Newline newline
9090 \end_inset
9091
9092
9093 \begin_inset Quotes eld
9094 \end_inset
9095
9096
9097 \begin_inset Flex Code
9098 status collapsed
9099
9100 \begin_layout Plain Layout
9101 EndPreamble
9102 \end_layout
9103
9104 \end_inset
9105
9106
9107 \begin_inset Quotes erd
9108 \end_inset
9109
9110 .
9111 \change_inserted -712698321 1562592950
9112
9113 \end_layout
9114
9115 \begin_layout Description
9116
9117 \change_inserted -712698321 1562593040
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122
9123 \change_inserted -712698321 1562592954
9124 BibInToc
9125 \end_layout
9126
9127 \end_inset
9128
9129  [
9130 \begin_inset Flex Code
9131 status collapsed
9132
9133 \begin_layout Plain Layout
9134
9135 \change_inserted -712698321 1562592950
9136
9137 \emph on
9138 0
9139 \end_layout
9140
9141 \end_inset
9142
9143 ,
9144 \begin_inset space \thinspace{}
9145 \end_inset
9146
9147
9148 \begin_inset Flex Code
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152
9153 \change_inserted -712698321 1562592950
9154 1
9155 \end_layout
9156
9157 \end_inset
9158
9159 ] If the document class adds the bibliography to the table of contents,
9160  add this option with value 
9161 \begin_inset Flex Code
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165
9166 \change_inserted -712698321 1562592996
9167 1
9168 \change_unchanged
9169
9170 \end_layout
9171
9172 \end_inset
9173
9174  (or 
9175 \begin_inset Flex Code
9176 status collapsed
9177
9178 \begin_layout Plain Layout
9179
9180 \change_inserted -712698321 1562593006
9181 true
9182 \change_unchanged
9183
9184 \end_layout
9185
9186 \end_inset
9187
9188 ).
9189  This prevents the bibliography from being added twice.
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \begin_layout Description
9195 \begin_inset Flex Code
9196 status collapsed
9197
9198 \begin_layout Plain Layout
9199 CiteEngine <engine>
9200 \end_layout
9201
9202 \end_inset
9203
9204  Defines the possibilities for displaying citation references.
9205  See 
9206 \begin_inset CommandInset ref
9207 LatexCommand ref
9208 reference "subsec:Citation-engine-description"
9209 plural "false"
9210 caps "false"
9211 noprefix "false"
9212
9213 \end_inset
9214
9215  for details.
9216  Must end with 
9217 \begin_inset Quotes eld
9218 \end_inset
9219
9220
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 End
9226 \end_layout
9227
9228 \end_inset
9229
9230
9231 \begin_inset Quotes erd
9232 \end_inset
9233
9234 .
9235  Primarily used in cite engine files (see 
9236 \begin_inset CommandInset ref
9237 LatexCommand ref
9238 reference "subsec:Cite-Engine-Files"
9239 plural "false"
9240 caps "false"
9241 noprefix "false"
9242
9243 \end_inset
9244
9245 ).
9246
9247 \change_inserted -712698321 1526898530
9248  Note that if you specify this in a layout file or module, any cite engine
9249  definition will be overridden.
9250  Also see 
9251 \begin_inset Flex Code
9252 status collapsed
9253
9254 \begin_layout Plain Layout
9255
9256 \change_inserted -712698321 1526898530
9257 AddToCiteEngine
9258 \change_unchanged
9259
9260 \end_layout
9261
9262 \end_inset
9263
9264 .
9265 \change_unchanged
9266
9267 \end_layout
9268
9269 \begin_layout Description
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 CiteFormat
9275 \end_layout
9276
9277 \end_inset
9278
9279  Defines formats for use in the display of bibliographic information.
9280  See 
9281 \begin_inset CommandInset ref
9282 LatexCommand ref
9283 reference "subsec:Citation-format-description"
9284
9285 \end_inset
9286
9287  for details.
9288  Must end with 
9289 \begin_inset Quotes eld
9290 \end_inset
9291
9292
9293 \begin_inset Flex Code
9294 status collapsed
9295
9296 \begin_layout Plain Layout
9297 End
9298 \end_layout
9299
9300 \end_inset
9301
9302
9303 \begin_inset Quotes erd
9304 \end_inset
9305
9306 .
9307  Primarily used in cite engine files (see 
9308 \begin_inset CommandInset ref
9309 LatexCommand ref
9310 reference "subsec:Cite-Engine-Files"
9311 plural "false"
9312 caps "false"
9313 noprefix "false"
9314
9315 \end_inset
9316
9317 ).
9318
9319 \change_inserted -712698321 1526898585
9320  A cite format defined in a layout or module will override the cite engine
9321  definition.
9322 \change_unchanged
9323
9324 \end_layout
9325
9326 \begin_layout Description
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 CiteFramework
9332 \end_layout
9333
9334 \end_inset
9335
9336  [
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341
9342 \emph on
9343 bibtex
9344 \end_layout
9345
9346 \end_inset
9347
9348 ,
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 biblatex
9354 \end_layout
9355
9356 \end_inset
9357
9358 ] Determines whether 
9359 \family sans
9360 Biblatex
9361 \family default
9362  or Bib\SpecialChar TeX
9363  is used to generate a Bibliography.
9364  Primarily used in cite engine files (see 
9365 \begin_inset CommandInset ref
9366 LatexCommand ref
9367 reference "subsec:Cite-Engine-Files"
9368 plural "false"
9369 caps "false"
9370 noprefix "false"
9371
9372 \end_inset
9373
9374 ).
9375 \end_layout
9376
9377 \begin_layout Description
9378 \begin_inset Flex Code
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 ClassOptions
9383 \end_layout
9384
9385 \end_inset
9386
9387  Describes various global options supported by the document class.
9388  See 
9389 \begin_inset CommandInset ref
9390 LatexCommand ref
9391 reference "subsec:ClassOptions"
9392
9393 \end_inset
9394
9395  for a description.
9396  Must end with 
9397 \begin_inset Quotes eld
9398 \end_inset
9399
9400
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 End
9406 \end_layout
9407
9408 \end_inset
9409
9410
9411 \begin_inset Quotes erd
9412 \end_inset
9413
9414 .
9415 \end_layout
9416
9417 \begin_layout Description
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 Columns
9423 \end_layout
9424
9425 \end_inset
9426
9427  [
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432
9433 \emph on
9434 1
9435 \end_layout
9436
9437 \end_inset
9438
9439 ,
9440 \begin_inset space \thinspace{}
9441 \end_inset
9442
9443
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 2
9449 \end_layout
9450
9451 \end_inset
9452
9453 ] Whether the class should 
9454 \emph on
9455 default
9456 \emph default
9457  to having one or two columns.
9458  Can be changed in the 
9459 \begin_inset Flex Noun
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 Document\SpecialChar menuseparator
9464 Settings
9465 \end_layout
9466
9467 \end_inset
9468
9469  dialog.
9470 \end_layout
9471
9472 \begin_layout Description
9473 \begin_inset Flex Code
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477 Counter
9478 \end_layout
9479
9480 \end_inset
9481
9482  [
9483 \begin_inset Flex Code
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 string
9488 \end_layout
9489
9490 \end_inset
9491
9492 ] This sequence defines the properties for a counter.
9493  If the counter does not yet exist, it is created; if it does exist, it
9494  is modified.
9495  Must end with 
9496 \begin_inset Quotes eld
9497 \end_inset
9498
9499
9500 \begin_inset Flex Code
9501 status collapsed
9502
9503 \begin_layout Plain Layout
9504 End
9505 \end_layout
9506
9507 \end_inset
9508
9509
9510 \begin_inset Quotes erd
9511 \end_inset
9512
9513 .
9514 \begin_inset Newline newline
9515 \end_inset
9516
9517 See 
9518 \begin_inset CommandInset ref
9519 LatexCommand ref
9520 reference "subsec:Counters"
9521
9522 \end_inset
9523
9524  for details on counters.
9525 \end_layout
9526
9527 \begin_layout Description
9528 \begin_inset Flex Code
9529 status collapsed
9530
9531 \begin_layout Plain Layout
9532 DefaultFont
9533 \end_layout
9534
9535 \end_inset
9536
9537  Sets the default font used to display the document.
9538  See 
9539 \begin_inset CommandInset ref
9540 LatexCommand ref
9541 reference "subsec:Font-description"
9542
9543 \end_inset
9544
9545  for how to declare fonts.
9546  Must end with 
9547 \begin_inset Quotes eld
9548 \end_inset
9549
9550
9551 \begin_inset Flex Code
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 EndFont
9556 \end_layout
9557
9558 \end_inset
9559
9560
9561 \begin_inset Quotes erd
9562 \end_inset
9563
9564 .
9565 \end_layout
9566
9567 \begin_layout Description
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 DefaultModule
9573 \end_layout
9574
9575 \end_inset
9576
9577  [
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 <module>
9583 \end_layout
9584
9585 \end_inset
9586
9587 ] Specifies a module to be included by default with this document class.
9588  The module is specified as filename without the 
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 .module
9594 \end_layout
9595
9596 \end_inset
9597
9598  extension.
9599  The user can still remove the module, but it will be active at the outset.
9600  (This applies only when new files are created, or when this class is chosen
9601  for an existing document.)
9602 \end_layout
9603
9604 \begin_layout Description
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 DefaultStyle
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 <style>
9620 \end_layout
9621
9622 \end_inset
9623
9624 ] This is the style that will be assigned to new paragraphs, usually 
9625 \begin_inset Flex Noun
9626 status collapsed
9627
9628 \begin_layout Plain Layout
9629 Standard
9630 \end_layout
9631
9632 \end_inset
9633
9634 .
9635  This will default to the first defined style if not given, but you are
9636  encouraged to use this directive.
9637 \end_layout
9638
9639 \begin_layout Description
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 ExcludesModule
9645 \end_layout
9646
9647 \end_inset
9648
9649  [
9650 \begin_inset Flex Code
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 <module>
9655 \end_layout
9656
9657 \end_inset
9658
9659 ] This tag indicates that the module (which is specified by filename without
9660  the 
9661 \begin_inset Flex Code
9662 status collapsed
9663
9664 \begin_layout Plain Layout
9665 .module
9666 \end_layout
9667
9668 \end_inset
9669
9670  extension) cannot be used with this document class.
9671  This might be used in a journal-specific layout file to prevent, say, the
9672  use of the 
9673 \begin_inset Flex Code
9674 status collapsed
9675
9676 \begin_layout Plain Layout
9677 theorems-sec
9678 \end_layout
9679
9680 \end_inset
9681
9682  module that numbers theorems by section.
9683  This tag may 
9684 \emph on
9685 not
9686 \emph default
9687  be used in a module.
9688  Modules have their own way of excluding other modules (see 
9689 \begin_inset CommandInset ref
9690 LatexCommand ref
9691 reference "subsec:Layout-modules"
9692
9693 \end_inset
9694
9695 ).
9696 \end_layout
9697
9698 \begin_layout Description
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 Float
9704 \end_layout
9705
9706 \end_inset
9707
9708  Defines a new float.
9709  See 
9710 \begin_inset CommandInset ref
9711 LatexCommand ref
9712 reference "subsec:Floats"
9713
9714 \end_inset
9715
9716  for details.
9717  Must end with 
9718 \begin_inset Quotes eld
9719 \end_inset
9720
9721
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 End
9727 \end_layout
9728
9729 \end_inset
9730
9731
9732 \begin_inset Quotes erd
9733 \end_inset
9734
9735 .
9736 \end_layout
9737
9738 \begin_layout Description
9739 \begin_inset Flex Code
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743 HTMLPreamble
9744 \end_layout
9745
9746 \end_inset
9747
9748  Sets the information that will be output in the 
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 <head>
9754 \end_layout
9755
9756 \end_inset
9757
9758  block when this document class is output to XHTML.
9759  Note that this will completely override any prior 
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 HTMLPreamble
9765 \end_layout
9766
9767 \end_inset
9768
9769  or 
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 AddToHTMLPreamble
9775 \end_layout
9776
9777 \end_inset
9778
9779  declarations.
9780  (Use
9781 \begin_inset Newline newline
9782 \end_inset
9783
9784
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 AddToHTMLPreamble
9790 \end_layout
9791
9792 \end_inset
9793
9794  if you just want to add material to the preamble.) Must end with 
9795 \begin_inset Quotes eld
9796 \end_inset
9797
9798
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 EndPreamble
9804 \end_layout
9805
9806 \end_inset
9807
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 .
9813 \end_layout
9814
9815 \begin_layout Description
9816 \begin_inset Flex Code
9817 status collapsed
9818
9819 \begin_layout Plain Layout
9820 HTMLTOCSection
9821 \end_layout
9822
9823 \end_inset
9824
9825  [
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 <style>
9831 \end_layout
9832
9833 \end_inset
9834
9835 ] The style to use for the table of contents, bibliography, and so forth,
9836  when the document is output to HTML.
9837  For articles, this should normally be 
9838 \begin_inset Flex Code
9839 status collapsed
9840
9841 \begin_layout Plain Layout
9842 Section
9843 \end_layout
9844
9845 \end_inset
9846
9847 ; for books 
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 Chapter
9853 \end_layout
9854
9855 \end_inset
9856
9857 .
9858  If it is not given, then \SpecialChar LyX
9859  will attempt to figure out which layout to use.
9860 \end_layout
9861
9862 \begin_layout Description
9863 \begin_inset Flex Code
9864 status collapsed
9865
9866 \begin_layout Plain Layout
9867 IfCounter
9868 \end_layout
9869
9870 \end_inset
9871
9872  [
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 <counter>
9878 \end_layout
9879
9880 \end_inset
9881
9882 ] Modifies the properties of the given counter.
9883  If the counter does not exist, the statement is ignored.
9884  Must end with 
9885 \begin_inset Quotes eld
9886 \end_inset
9887
9888
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 End
9894 \end_layout
9895
9896 \end_inset
9897
9898
9899 \begin_inset Quotes erd
9900 \end_inset
9901
9902 .
9903 \begin_inset Newline newline
9904 \end_inset
9905
9906 See 
9907 \begin_inset CommandInset ref
9908 LatexCommand ref
9909 reference "subsec:Counters"
9910
9911 \end_inset
9912
9913  for details on counters.
9914 \end_layout
9915
9916 \begin_layout Description
9917 \begin_inset Flex Code
9918 status collapsed
9919
9920 \begin_layout Plain Layout
9921 Input
9922 \end_layout
9923
9924 \end_inset
9925
9926  [
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 <filename>
9932 \end_layout
9933
9934 \end_inset
9935
9936 ] This allows you to include another layout definition file within yours
9937  to avoid duplicating commands.
9938  Common examples are the standard layout files, for example, 
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 stdclass.inc
9944 \end_layout
9945
9946 \end_inset
9947
9948 , which contains most of the basic layouts.
9949 \end_layout
9950
9951 \begin_layout Description
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956 InsetLayout
9957 \end_layout
9958
9959 \end_inset
9960
9961  [
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 <type>
9967 \end_layout
9968
9969 \end_inset
9970
9971 ] This section (re-)defines the layout of an inset.
9972  It can be applied to an existing inset or to a new, user-defined inset,
9973  e.g., a new character style.
9974  Must end with 
9975 \begin_inset Quotes eld
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 End
9984 \end_layout
9985
9986 \end_inset
9987
9988
9989 \begin_inset Quotes erd
9990 \end_inset
9991
9992 .
9993 \begin_inset Newline newline
9994 \end_inset
9995
9996 See 
9997 \begin_inset CommandInset ref
9998 LatexCommand ref
9999 reference "subsec:Flex-insets-and"
10000
10001 \end_inset
10002
10003  for more information.
10004  
10005 \end_layout
10006
10007 \begin_layout Description
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012 LeftMargin
10013 \end_layout
10014
10015 \end_inset
10016
10017  [
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 string
10023 \end_layout
10024
10025 \end_inset
10026
10027 ] A string that indicates the width of the left margin on the screen, for
10028  example, 
10029 \begin_inset Quotes eld
10030 \end_inset
10031
10032
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 MMMMM
10038 \end_layout
10039
10040 \end_inset
10041
10042
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 .
10047  (Note that this is not a `length', like 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051 2ex
10052 \begin_inset Quotes erd
10053 \end_inset
10054
10055 .)
10056 \end_layout
10057
10058 \begin_layout Description
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 MaxCiteNames
10064 \end_layout
10065
10066 \end_inset
10067
10068  [
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 integer
10074 \end_layout
10075
10076 \end_inset
10077
10078 ] An integer that determines the maximal number of names displayed in an
10079  author-year citation before the citation switches to 
10080 \begin_inset Quotes eld
10081 \end_inset
10082
10083 FirstAuthor et al.
10084 \begin_inset Quotes erd
10085 \end_inset
10086
10087 .
10088  Primarily used in cite engine files (see 
10089 \begin_inset CommandInset ref
10090 LatexCommand ref
10091 reference "subsec:Cite-Engine-Files"
10092 plural "false"
10093 caps "false"
10094 noprefix "false"
10095
10096 \end_inset
10097
10098 ).
10099 \end_layout
10100
10101 \begin_layout Description
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 ModifyStyle
10107 \end_layout
10108
10109 \end_inset
10110
10111  [
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 <style>
10117 \end_layout
10118
10119 \end_inset
10120
10121 ] Modifies the properties of the given paragraph style.
10122  If the style does not exist, this section is ignored.
10123  Must end with 
10124 \begin_inset Quotes eld
10125 \end_inset
10126
10127
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 End
10133 \end_layout
10134
10135 \end_inset
10136
10137
10138 \begin_inset Quotes erd
10139 \end_inset
10140
10141 .
10142 \end_layout
10143
10144 \begin_layout Description
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 NoCounter
10150 \end_layout
10151
10152 \end_inset
10153
10154  [
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 <counter>
10160 \end_layout
10161
10162 \end_inset
10163
10164 ] Deletes an existing counter, usually one defined in an included file.
10165 \end_layout
10166
10167 \begin_layout Description
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 NoFloat
10173 \end_layout
10174
10175 \end_inset
10176
10177  [
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 <float>
10183 \end_layout
10184
10185 \end_inset
10186
10187 ] Deletes an existing float.
10188  This is particularly useful when you want to suppress a float that has
10189  been defined in an input file.
10190 \end_layout
10191
10192 \begin_layout Description
10193 \begin_inset Flex Code
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 NoStyle
10198 \end_layout
10199
10200 \end_inset
10201
10202  [
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 <style>
10208 \end_layout
10209
10210 \end_inset
10211
10212 ] Deletes an existing style.
10213 \end_layout
10214
10215 \begin_layout Description
10216 \begin_inset Flex Code
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220 OutlinerName
10221 \end_layout
10222
10223 \end_inset
10224
10225  [
10226 \begin_inset Flex Code
10227 status collapsed
10228
10229 \begin_layout Plain Layout
10230 <type>
10231 \end_layout
10232
10233 \end_inset
10234
10235 ] [
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 <string>
10241 \end_layout
10242
10243 \end_inset
10244
10245 ] Define a new table of contents with type 
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 <type>
10251 \end_layout
10252
10253 \end_inset
10254
10255  and name 
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 <string>
10261 \end_layout
10262
10263 \end_inset
10264
10265 .
10266  See also the AddToToc commands.
10267 \end_layout
10268
10269 \begin_layout Description
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 OutputFormat
10275 \end_layout
10276
10277 \end_inset
10278
10279  [
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 <format>
10285 \end_layout
10286
10287 \end_inset
10288
10289 ] The file format (as defined in the \SpecialChar LyX
10290  preferences) produced by this document
10291  class.
10292  It is mainly useful when 
10293 \begin_inset Flex Code
10294 status collapsed
10295
10296 \begin_layout Plain Layout
10297 OutputType
10298 \end_layout
10299
10300 \end_inset
10301
10302  is 
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 literate
10308 \end_layout
10309
10310 \end_inset
10311
10312  and one wants to define a new type of literate document.
10313  The format is reset to 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 docbook
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Quotes erd
10329 \end_inset
10330
10331  or 
10332 \begin_inset Quotes eld
10333 \end_inset
10334
10335
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 latex
10341 \end_layout
10342
10343 \end_inset
10344
10345
10346 \begin_inset Quotes erd
10347 \end_inset
10348
10349  when the corresponding 
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354 OutputType
10355 \end_layout
10356
10357 \end_inset
10358
10359  parameter is encountered.
10360 \end_layout
10361
10362 \begin_layout Description
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 OutputType
10368 \end_layout
10369
10370 \end_inset
10371
10372  [
10373 \begin_inset Flex Code
10374 status collapsed
10375
10376 \begin_layout Plain Layout
10377
10378 \emph on
10379 lat
10380 \emph default
10381 ex
10382 \end_layout
10383
10384 \end_inset
10385
10386
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 docbook
10392 \end_layout
10393
10394 \end_inset
10395
10396
10397 \begin_inset Flex Code
10398 status collapsed
10399
10400 \begin_layout Plain Layout
10401 literate
10402 \end_layout
10403
10404 \end_inset
10405
10406 ] Specifies what sort of output documents using this class will produce.
10407 \end_layout
10408
10409 \begin_layout Description
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 PackageOptions
10415 \end_layout
10416
10417 \end_inset
10418
10419  [
10420 \begin_inset Flex Code
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 string
10425 \end_layout
10426
10427 \end_inset
10428
10429  
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 string
10435 \end_layout
10436
10437 \end_inset
10438
10439 ] Specifies options, given in the second string, for the package named by
10440  the first string.
10441  For example, 
10442 \begin_inset Quotes eld
10443 \end_inset
10444
10445
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 PackageOptions natbib square
10451 \end_layout
10452
10453 \end_inset
10454
10455
10456 \begin_inset Quotes erd
10457 \end_inset
10458
10459  will cause 
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 natbib
10465 \end_layout
10466
10467 \end_inset
10468
10469  to be loaded with the 
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 square
10475 \end_layout
10476
10477 \end_inset
10478
10479  option.
10480  (For \SpecialChar TeX
10481 perts, this causes \SpecialChar LyX
10482  to output: 
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487
10488 \backslash
10489 PassOptionsToPackage{natbib}{square}
10490 \end_layout
10491
10492 \end_inset
10493
10494  prior to loading 
10495 \begin_inset Flex Code
10496 status collapsed
10497
10498 \begin_layout Plain Layout
10499 natbib
10500 \end_layout
10501
10502 \end_inset
10503
10504 .)
10505 \change_inserted -712698321 1565102364
10506
10507 \end_layout
10508
10509 \begin_layout Description
10510
10511 \change_inserted -712698321 1565102470
10512 \begin_inset Flex Code
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516
10517 \change_inserted -712698321 1565102365
10518 PageSize
10519 \end_layout
10520
10521 \end_inset
10522
10523  [
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528
10529 \change_inserted -712698321 1565105222
10530
10531 \emph on
10532 custom
10533 \emph default
10534 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10535  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10536 \end_layout
10537
10538 \end_inset
10539
10540 ] The default page size.
10541  This is used by some converters.
10542 \change_unchanged
10543
10544 \end_layout
10545
10546 \begin_layout Description
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 PageStyle
10552 \end_layout
10553
10554 \end_inset
10555
10556  [
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561
10562 \emph on
10563 plain
10564 \end_layout
10565
10566 \end_inset
10567
10568
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 empty
10574 \end_layout
10575
10576 \end_inset
10577
10578
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 headings
10584 \end_layout
10585
10586 \end_inset
10587
10588 ] The default pagestyle.
10589  Can be changed in the 
10590 \begin_inset Flex Noun
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 Document\SpecialChar menuseparator
10595 Settings
10596 \end_layout
10597
10598 \end_inset
10599
10600  dialog.
10601 \end_layout
10602
10603 \begin_layout Description
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 Preamble
10609 \end_layout
10610
10611 \end_inset
10612
10613  Sets the preamble for the \SpecialChar LaTeX
10614  document.
10615  Note that this will completely override any prior 
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 Preamble
10621 \end_layout
10622
10623 \end_inset
10624
10625  or 
10626 \begin_inset Flex Code
10627 status collapsed
10628
10629 \begin_layout Plain Layout
10630 AddToPreamble
10631 \end_layout
10632
10633 \end_inset
10634
10635  declarations.
10636  (Use 
10637 \begin_inset Flex Code
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641 AddToPreamble
10642 \end_layout
10643
10644 \end_inset
10645
10646  if you just want to add material to the preamble.) Must end with 
10647 \begin_inset Quotes eld
10648 \end_inset
10649
10650
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 EndPreamble
10656 \end_layout
10657
10658 \end_inset
10659
10660
10661 \begin_inset Quotes erd
10662 \end_inset
10663
10664 .
10665 \end_layout
10666
10667 \begin_layout Description
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 Provides
10673 \end_layout
10674
10675 \end_inset
10676
10677  [
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 string
10683 \end_layout
10684
10685 \end_inset
10686
10687 ] [
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692
10693 \emph on
10694 0
10695 \end_layout
10696
10697 \end_inset
10698
10699 ,
10700 \begin_inset space \thinspace{}
10701 \end_inset
10702
10703
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 1
10709 \end_layout
10710
10711 \end_inset
10712
10713 ] Whether the class already provides the feature 
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 string
10719 \end_layout
10720
10721 \end_inset
10722
10723 .
10724  A feature is in general the name of a package (e.
10725 \begin_inset space \thinspace{}
10726 \end_inset
10727
10728 g.
10729 \begin_inset space \space{}
10730 \end_inset
10731
10732
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 amsmath
10738 \end_layout
10739
10740 \end_inset
10741
10742  or 
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 makeidx
10748 \end_layout
10749
10750 \end_inset
10751
10752 ) or a macro (e.
10753 \begin_inset space \thinspace{}
10754 \end_inset
10755
10756 g.
10757 \begin_inset space \space{}
10758 \end_inset
10759
10760
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765 url
10766 \end_layout
10767
10768 \end_inset
10769
10770  or 
10771 \begin_inset Flex Code
10772 status collapsed
10773
10774 \begin_layout Plain Layout
10775 boldsymbol
10776 \end_layout
10777
10778 \end_inset
10779
10780 ).
10781  See 
10782 \begin_inset CommandInset ref
10783 LatexCommand ref
10784 reference "chap:List-of-functions"
10785
10786 \end_inset
10787
10788  for the list of features.
10789 \end_layout
10790
10791 \begin_layout Description
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 ProvidesModule
10797 \end_layout
10798
10799 \end_inset
10800
10801  [
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 string
10807 \end_layout
10808
10809 \end_inset
10810
10811 ] Indicates that this layout provides the functionality of the module mentioned,
10812  which should be specified by the filename without the 
10813 \begin_inset Flex Code
10814 status collapsed
10815
10816 \begin_layout Plain Layout
10817 .module
10818 \end_layout
10819
10820 \end_inset
10821
10822  extension.
10823  This will typically be used if the layout includes the module directly,
10824  rather than using the 
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 DefaultModule
10830 \end_layout
10831
10832 \end_inset
10833
10834  tag to indicate that it ought to be used.
10835  It could also be used in a module that provided an alternate implementation
10836  of the same functionality.
10837 \end_layout
10838
10839 \begin_layout Description
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 ProvideStyle
10845 \end_layout
10846
10847 \end_inset
10848
10849  [
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 <style>
10855 \end_layout
10856
10857 \end_inset
10858
10859 ] Creates a new paragraph style if it does not already exist.
10860  If the style does exist, this section is ignored.
10861  Must end with 
10862 \begin_inset Quotes eld
10863 \end_inset
10864
10865
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 End
10871 \end_layout
10872
10873 \end_inset
10874
10875
10876 \begin_inset Quotes erd
10877 \end_inset
10878
10879 .
10880 \end_layout
10881
10882 \begin_layout Description
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 Requires
10888 \end_layout
10889
10890 \end_inset
10891
10892  [
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 string
10898 \end_layout
10899
10900 \end_inset
10901
10902 ] Whether the class requires the feature 
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 string
10908 \end_layout
10909
10910 \end_inset
10911
10912 .
10913  Multiple features must be separated by commas.
10914  Note that you can only request supported features.
10915  (See 
10916 \begin_inset CommandInset ref
10917 LatexCommand ref
10918 reference "chap:List-of-functions"
10919
10920 \end_inset
10921
10922  for the list of features.).
10923  If you require a package with specific options, you can additionally use
10924  
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 PackageOptions
10930 \end_layout
10931
10932 \end_inset
10933
10934 .
10935 \end_layout
10936
10937 \begin_layout Description
10938 \begin_inset Flex Code
10939 status collapsed
10940
10941 \begin_layout Plain Layout
10942 RightMargin
10943 \end_layout
10944
10945 \end_inset
10946
10947  [
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 string
10953 \end_layout
10954
10955 \end_inset
10956
10957 ] A string that indicates the width of the right margin on the screen, for
10958  example, 
10959 \begin_inset Quotes eld
10960 \end_inset
10961
10962
10963 \begin_inset Flex Code
10964 status collapsed
10965
10966 \begin_layout Plain Layout
10967 MMMMM
10968 \end_layout
10969
10970 \end_inset
10971
10972
10973 \begin_inset Quotes erd
10974 \end_inset
10975
10976 .
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 SecNumDepth
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 int=3
10995 \end_layout
10996
10997 \end_inset
10998
10999 ] Sets which divisions get numbered.
11000  Corresponds to the
11001 \begin_inset Newline newline
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 secnumdepth
11010 \end_layout
11011
11012 \end_inset
11013
11014  counter in \SpecialChar LaTeX
11015 .
11016 \end_layout
11017
11018 \begin_layout Description
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023 Sides
11024 \end_layout
11025
11026 \end_inset
11027
11028  [
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033
11034 \emph on
11035 1
11036 \end_layout
11037
11038 \end_inset
11039
11040 ,
11041 \begin_inset space \thinspace{}
11042 \end_inset
11043
11044
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 2
11050 \end_layout
11051
11052 \end_inset
11053
11054 ] Whether the class-default should be printing on one or both sides of the
11055  paper.
11056  Can be changed in the 
11057 \begin_inset Flex Noun
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 Document\SpecialChar menuseparator
11062 Settings
11063 \end_layout
11064
11065 \end_inset
11066
11067  dialog.
11068 \end_layout
11069
11070 \begin_layout Description
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 Style
11076 \end_layout
11077
11078 \end_inset
11079
11080  [
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 <name>
11086 \end_layout
11087
11088 \end_inset
11089
11090 ] This sequence defines a paragraph style.
11091  If the style does not yet exist, it is created; if it does exist, its parameter
11092 s are modified.
11093  Must end with 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 End
11103 \end_layout
11104
11105 \end_inset
11106
11107
11108 \begin_inset Quotes erd
11109 \end_inset
11110
11111 .
11112 \begin_inset Newline newline
11113 \end_inset
11114
11115 See 
11116 \begin_inset CommandInset ref
11117 LatexCommand ref
11118 reference "subsec:Paragraph-Styles"
11119
11120 \end_inset
11121
11122  for details on paragraph styles.
11123 \change_inserted -712698321 1553617804
11124
11125 \end_layout
11126
11127 \begin_layout Description
11128
11129 \change_inserted -712698321 1553617862
11130 \begin_inset Flex Code
11131 status collapsed
11132
11133 \begin_layout Plain Layout
11134
11135 \change_inserted -712698321 1553617809
11136 TableStyle
11137 \end_layout
11138
11139 \end_inset
11140
11141  [
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146
11147 \change_inserted -712698321 1553617805
11148 <name>
11149 \end_layout
11150
11151 \end_inset
11152
11153 ] defines the default table style that is used when inserting a table.
11154  The following styles are available:
11155 \end_layout
11156
11157 \begin_deeper
11158 \begin_layout Itemize
11159
11160 \change_inserted -712698321 1554308039
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165
11166 \change_inserted -712698321 1554307928
11167 Formal_with_Footline
11168 \change_unchanged
11169
11170 \end_layout
11171
11172 \end_inset
11173
11174 : formal (
11175 \begin_inset Quotes eld
11176 \end_inset
11177
11178 booktabs
11179 \begin_inset Quotes erd
11180 \end_inset
11181
11182 ) style with horizontal lines only, using a bold top and bottom line, the
11183  first and last row are additionally separated from the table body with
11184  a thin middle line.
11185 \end_layout
11186
11187 \begin_layout Itemize
11188
11189 \change_inserted -712698321 1554308087
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194
11195 \change_inserted -712698321 1554308042
11196 Formal_without_Footline
11197 \end_layout
11198
11199 \end_inset
11200
11201 : same as the above, but the last row is not separated with a middle line
11202  from the body.
11203 \end_layout
11204
11205 \begin_layout Itemize
11206
11207 \change_inserted -712698321 1553618031
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212
11213 \change_inserted -712698321 1553618006
11214 Simple_Grid
11215 \end_layout
11216
11217 \end_inset
11218
11219 : Simple table lines.
11220 \end_layout
11221
11222 \begin_layout Itemize
11223
11224 \change_inserted -712698321 1553618309
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229
11230 \change_inserted -712698321 1553618031
11231 Grid_with_Head
11232 \end_layout
11233
11234 \end_inset
11235
11236 : Like 
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241
11242 \change_inserted -712698321 1553618043
11243 Simple_Grid
11244 \end_layout
11245
11246 \end_inset
11247
11248 , but with the header column offset with a second horizontal line.
11249  This is also the default style of \SpecialChar LyX
11250 .
11251 \end_layout
11252
11253 \begin_layout Itemize
11254
11255 \change_inserted -712698321 1553618280
11256 \begin_inset Flex Code
11257 status collapsed
11258
11259 \begin_layout Plain Layout
11260
11261 \change_inserted -712698321 1553618261
11262 No_Borders
11263 \end_layout
11264
11265 \end_inset
11266
11267 : Table without lines.
11268 \change_unchanged
11269
11270 \end_layout
11271
11272 \end_deeper
11273 \begin_layout Description
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 TitleLatexName
11279 \end_layout
11280
11281 \end_inset
11282
11283  [
11284 \begin_inset Flex Code
11285 status collapsed
11286
11287 \begin_layout Plain Layout
11288 string="maketitle"
11289 \end_layout
11290
11291 \end_inset
11292
11293 ] The name of the command or environment to be used with 
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 TitleLatexType
11299 \end_layout
11300
11301 \end_inset
11302
11303 .
11304 \end_layout
11305
11306 \begin_layout Description
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 TitleLatexType
11312 \end_layout
11313
11314 \end_inset
11315
11316  [
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321
11322 \emph on
11323 CommandAfter
11324 \end_layout
11325
11326 \end_inset
11327
11328
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333 Environment
11334 \end_layout
11335
11336 \end_inset
11337
11338 ] Indicates what kind of markup is used to define the title of a document.
11339  
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 CommandAfter
11345 \end_layout
11346
11347 \end_inset
11348
11349  means that the macro with name 
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 TitleLatexName
11355 \end_layout
11356
11357 \end_inset
11358
11359  will be inserted after the last layout which has 
11360 \begin_inset Quotes eld
11361 \end_inset
11362
11363
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 InTitle
11369 \begin_inset space ~
11370 \end_inset
11371
11372 1
11373 \end_layout
11374
11375 \end_inset
11376
11377
11378 \begin_inset Quotes erd
11379 \end_inset
11380
11381 .
11382  
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 Environment
11388 \end_layout
11389
11390 \end_inset
11391
11392  corresponds to the case where all layouts which have 
11393 \begin_inset Quotes eld
11394 \end_inset
11395
11396
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 InTitle
11402 \begin_inset space ~
11403 \end_inset
11404
11405 1
11406 \end_layout
11407
11408 \end_inset
11409
11410
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414  should be enclosed into the 
11415 \begin_inset Flex Code
11416 status collapsed
11417
11418 \begin_layout Plain Layout
11419 TitleLatexName
11420 \end_layout
11421
11422 \end_inset
11423
11424  environment.
11425 \end_layout
11426
11427 \begin_layout Description
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 TocDepth
11433 \end_layout
11434
11435 \end_inset
11436
11437  [
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 int=3
11443 \end_layout
11444
11445 \end_inset
11446
11447 ] Sets which divisions are included in the table of contents.
11448  Corresponds to the 
11449 \begin_inset Flex Code
11450 status collapsed
11451
11452 \begin_layout Plain Layout
11453 tocdepth
11454 \end_layout
11455
11456 \end_inset
11457
11458  counter in \SpecialChar LaTeX
11459 .
11460 \end_layout
11461
11462 \begin_layout Subsection
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 ClassOptions
11468 \end_layout
11469
11470 \end_inset
11471
11472  section
11473 \begin_inset CommandInset label
11474 LatexCommand label
11475 name "subsec:ClassOptions"
11476
11477 \end_inset
11478
11479
11480 \end_layout
11481
11482 \begin_layout Standard
11483 The 
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 ClassOptions
11489 \end_layout
11490
11491 \end_inset
11492
11493  section can contain the following entries:
11494 \end_layout
11495
11496 \begin_layout Description
11497 \begin_inset Flex Code
11498 status collapsed
11499
11500 \begin_layout Plain Layout
11501 FontSize
11502 \end_layout
11503
11504 \end_inset
11505
11506  [
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 string="10|11|12"
11512 \end_layout
11513
11514 \end_inset
11515
11516 ] The list of available font sizes for the document's main font, separated
11517  by 
11518 \begin_inset Quotes eld
11519 \end_inset
11520
11521
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 |
11527 \end_layout
11528
11529 \end_inset
11530
11531
11532 \begin_inset Quotes erd
11533 \end_inset
11534
11535 .
11536
11537 \change_inserted -712698321 1565110196
11538  Any number is possible.
11539 \end_layout
11540
11541 \begin_layout Description
11542
11543 \change_inserted -712698321 1565110259
11544 \begin_inset Flex Code
11545 status collapsed
11546
11547 \begin_layout Plain Layout
11548
11549 \change_inserted -712698321 1565110199
11550 FontSizeFormat
11551 \end_layout
11552
11553 \end_inset
11554
11555  [
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 \change_inserted -712698321 1565110196
11562 string
11563 \end_layout
11564
11565 \end_inset
11566
11567 ] The format for the font size option.
11568  Default: 
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573
11574 \change_inserted -712698321 1565110238
11575 $$spt
11576 \change_unchanged
11577
11578 \end_layout
11579
11580 \end_inset
11581
11582 .
11583  
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588
11589 \change_inserted -712698321 1565110248
11590 $$s
11591 \end_layout
11592
11593 \end_inset
11594
11595  is a placeholder for the font size.
11596 \change_unchanged
11597
11598 \end_layout
11599
11600 \begin_layout Description
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 Header
11606 \end_layout
11607
11608 \end_inset
11609
11610  Used to set the DTD line with XML-based output classes.
11611  E.
11612 \begin_inset space \thinspace{}
11613 \end_inset
11614
11615 g.: PUBLIC 
11616 \begin_inset Quotes eld
11617 \end_inset
11618
11619 -//OASIS//DTD DocBook V4.2//EN
11620 \begin_inset Quotes erd
11621 \end_inset
11622
11623 .
11624 \change_inserted -712698321 1565101761
11625
11626 \end_layout
11627
11628 \begin_layout Description
11629
11630 \change_inserted -712698321 1565180598
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635
11636 \change_inserted -712698321 1565101918
11637 PageSize
11638 \end_layout
11639
11640 \end_inset
11641
11642  [
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647
11648 \change_inserted -712698321 1565105399
11649 string="letter|\SpecialChar allowbreak
11650 legal|\SpecialChar allowbreak
11651 executive|\SpecialChar allowbreak
11652 a0|\SpecialChar allowbreak
11653 a1|\SpecialChar allowbreak
11654 a2|\SpecialChar allowbreak
11655 a3|\SpecialChar allowbreak
11656 a4|\SpecialChar allowbreak
11657 a5|\SpecialChar allowbreak
11658 a6|\SpecialChar allowbreak
11659 b0|\SpecialChar allowbreak
11660 b1|\SpecialChar allowbreak
11661 b2|\SpecialChar allowbreak
11662 b3|\SpecialChar allowbreak
11663 b4|\SpecialChar allowbreak
11664 b5|\SpecialChar allowbreak
11665 b6|\SpecialChar allowbreak
11666 c0|\SpecialChar allowbreak
11667 c1|\SpecialChar allowbreak
11668 c
11669 2|\SpecialChar allowbreak
11670 c3|\SpecialChar allowbreak
11671 c4|\SpecialChar allowbreak
11672 c5|\SpecialChar allowbreak
11673 c6|\SpecialChar allowbreak
11674 b0j|\SpecialChar allowbreak
11675 b1j|\SpecialChar allowbreak
11676 b2j|\SpecialChar allowbreak
11677 b3j|\SpecialChar allowbreak
11678 b4j|\SpecialChar allowbreak
11679 b5j|\SpecialChar allowbreak
11680 b6j"
11681 \end_layout
11682
11683 \end_inset
11684
11685 ] The list of available page sizes, separated by 
11686 \begin_inset Quotes eld
11687 \end_inset
11688
11689
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694
11695 \change_inserted -712698321 1565101779
11696 |
11697 \end_layout
11698
11699 \end_inset
11700
11701
11702 \begin_inset Quotes erd
11703 \end_inset
11704
11705 .
11706  Currently, only the listed sizes are supported.
11707  Other sizes might be entered as custom class option.
11708 \end_layout
11709
11710 \begin_layout Description
11711
11712 \change_inserted -712698321 1565180623
11713 \begin_inset Flex Code
11714 status collapsed
11715
11716 \begin_layout Plain Layout
11717
11718 \change_inserted -712698321 1565180605
11719 PageSizeFormat
11720 \end_layout
11721
11722 \end_inset
11723
11724  [
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729
11730 \change_inserted -712698321 1565180601
11731 string
11732 \end_layout
11733
11734 \end_inset
11735
11736 ] The format for the page size option.
11737  Default: 
11738 \begin_inset Flex Code
11739 status collapsed
11740
11741 \begin_layout Plain Layout
11742
11743 \change_inserted -712698321 1565180618
11744 $$spaper
11745 \end_layout
11746
11747 \end_inset
11748
11749 .
11750  
11751 \begin_inset Flex Code
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755
11756 \change_inserted -712698321 1565180601
11757 $$s
11758 \end_layout
11759
11760 \end_inset
11761
11762  is a placeholder for the paper size.
11763 \change_unchanged
11764
11765 \end_layout
11766
11767 \begin_layout Description
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 PageStyle
11773 \end_layout
11774
11775 \end_inset
11776
11777  [
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 string="empty|plain|headings|fancy"
11783 \end_layout
11784
11785 \end_inset
11786
11787 ] The list of available page sty\SpecialChar softhyphen
11788 les, separated by 
11789 \begin_inset Quotes eld
11790 \end_inset
11791
11792
11793 \begin_inset Flex Code
11794 status collapsed
11795
11796 \begin_layout Plain Layout
11797 |
11798 \end_layout
11799
11800 \end_inset
11801
11802
11803 \begin_inset Quotes erd
11804 \end_inset
11805
11806 .
11807 \end_layout
11808
11809 \begin_layout Description
11810 \begin_inset Flex Code
11811 status collapsed
11812
11813 \begin_layout Plain Layout
11814 Other
11815 \end_layout
11816
11817 \end_inset
11818
11819  [
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 string=""
11825 \end_layout
11826
11827 \end_inset
11828
11829 ] Some document class options, separated by a comma, that will be added
11830  to the optional part of the 
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \backslash
11837 documentclass
11838 \end_layout
11839
11840 \end_inset
11841
11842  command.
11843 \end_layout
11844
11845 \begin_layout Standard
11846 The 
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 ClassOptions
11852 \end_layout
11853
11854 \end_inset
11855
11856  section must end with 
11857 \begin_inset Quotes eld
11858 \end_inset
11859
11860
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865 End
11866 \end_layout
11867
11868 \end_inset
11869
11870
11871 \begin_inset Quotes erd
11872 \end_inset
11873
11874 .
11875 \end_layout
11876
11877 \begin_layout Subsection
11878 Paragraph styles
11879 \begin_inset CommandInset label
11880 LatexCommand label
11881 name "subsec:Paragraph-Styles"
11882
11883 \end_inset
11884
11885
11886 \end_layout
11887
11888 \begin_layout Standard
11889 A paragraph style description looks like this:
11890 \begin_inset Foot
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 Note that this will either define a new style or modify an existing one.
11895 \end_layout
11896
11897 \end_inset
11898
11899
11900 \end_layout
11901
11902 \begin_layout LyX-Code
11903 Style 
11904 \family roman
11905 \emph on
11906 name
11907 \end_layout
11908
11909 \begin_layout LyX-Code
11910  ...
11911 \end_layout
11912
11913 \begin_layout LyX-Code
11914 End
11915 \end_layout
11916
11917 \begin_layout Standard
11918 where the following commands are allowed:
11919 \end_layout
11920
11921 \begin_layout Description
11922 \begin_inset Flex Code
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 AddToToc
11927 \end_layout
11928
11929 \end_inset
11930
11931  [
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 string
11937 \end_layout
11938
11939 \end_inset
11940
11941 =""] This paragraph will appear in the table of contents of the given type.
11942  An empty string disables.
11943  See also the OutlinerName and the IsTocCaption commands.
11944  Default: disabled.
11945 \end_layout
11946
11947 \begin_layout Description
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 Align
11953 \end_layout
11954
11955 \end_inset
11956
11957  [
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962
11963 \emph on
11964 block
11965 \emph default
11966 , left, right, center
11967 \end_layout
11968
11969 \end_inset
11970
11971 ] Paragraph alignment.
11972 \end_layout
11973
11974 \begin_layout Description
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979 AlignPossible
11980 \end_layout
11981
11982 \end_inset
11983
11984  [
11985 \begin_inset Flex Code
11986 status collapsed
11987
11988 \begin_layout Plain Layout
11989
11990 \emph on
11991 block
11992 \emph default
11993 , left, right, center
11994 \end_layout
11995
11996 \end_inset
11997
11998 ] A comma separated list of permitted alignments.
11999  (Some \SpecialChar LaTeX
12000  styles prohibit certain alignments, since those wouldn't make sense.
12001  For example a right-aligned or centered enumeration isn't possible.)
12002 \end_layout
12003
12004 \begin_layout Description
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009 Argument
12010 \end_layout
12011
12012 \end_inset
12013
12014  [
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 int
12020 \end_layout
12021
12022 \end_inset
12023
12024 ] Defines argument number <int> of a command\SpecialChar breakableslash
12025 environment associated with
12026  the current style.
12027  This is useful for things like section headings, and only makes sense with
12028  \SpecialChar LaTeX
12029 .
12030  Every (optional or required) argument of a command or environment – except
12031  for the required argument that is associated with the content of the paragraph
12032  itself – has a separate definition, where the number specifies the order
12033  of the arguments.
12034  The definition must end with 
12035 \begin_inset Flex Code
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039 EndArgument
12040 \end_layout
12041
12042 \end_inset
12043
12044 .
12045  So a command with two optional arguments has:
12046 \end_layout
12047
12048 \begin_deeper
12049 \begin_layout Quote
12050
12051 \family typewriter
12052 Argument 1
12053 \end_layout
12054
12055 \begin_layout Quote
12056
12057 \family typewriter
12058 ...
12059 \end_layout
12060
12061 \begin_layout Quote
12062
12063 \family typewriter
12064 EndArgument
12065 \end_layout
12066
12067 \begin_layout Quote
12068
12069 \family typewriter
12070 Argument 2
12071 \end_layout
12072
12073 \begin_layout Quote
12074
12075 \family typewriter
12076 ...
12077 \end_layout
12078
12079 \begin_layout Quote
12080
12081 \family typewriter
12082 EndArgument
12083 \end_layout
12084
12085 \begin_layout Standard
12086 Inside the 
12087 \begin_inset Flex Code
12088 status collapsed
12089
12090 \begin_layout Plain Layout
12091 Argument
12092 \end_layout
12093
12094 \end_inset
12095
12096  definition, the following specifications are possible:
12097 \end_layout
12098
12099 \begin_layout Itemize
12100 \begin_inset Flex Code
12101 status collapsed
12102
12103 \begin_layout Plain Layout
12104 LabelString
12105 \end_layout
12106
12107 \end_inset
12108
12109  
12110 \begin_inset Flex Code
12111 status collapsed
12112
12113 \begin_layout Plain Layout
12114 [string]
12115 \end_layout
12116
12117 \end_inset
12118
12119  The string that will appear both in the menu (to insert this argument)
12120  and on the argument inset button (unless you also specify a separate 
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 MenuString
12126 \end_layout
12127
12128 \end_inset
12129
12130 ).
12131  For the menu, you can define an accelerator by appending the respective
12132  character to the string, divided by 
12133 \begin_inset Quotes eld
12134 \end_inset
12135
12136 |
12137 \begin_inset Quotes erd
12138 \end_inset
12139
12140  (e.
12141 \begin_inset space \thinspace{}
12142 \end_inset
12143
12144 g.
12145 \begin_inset space \space{}
12146 \end_inset
12147
12148
12149 \begin_inset Quotes eld
12150 \end_inset
12151
12152
12153 \begin_inset Flex Code
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157 Short Title|S
12158 \end_layout
12159
12160 \end_inset
12161
12162
12163 \begin_inset Quotes erd
12164 \end_inset
12165
12166 ).
12167 \end_layout
12168
12169 \begin_layout Itemize
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 MenuString
12175 \end_layout
12176
12177 \end_inset
12178
12179  
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 [string]
12185 \end_layout
12186
12187 \end_inset
12188
12189  A separate string for the menu.
12190  You can define an accelerator by appending the respective character to
12191  the string, divided by 
12192 \begin_inset Quotes eld
12193 \end_inset
12194
12195 |
12196 \begin_inset Quotes erd
12197 \end_inset
12198
12199  (e.
12200 \begin_inset space \thinspace{}
12201 \end_inset
12202
12203 g.
12204 \begin_inset space \space{}
12205 \end_inset
12206
12207
12208 \begin_inset Quotes eld
12209 \end_inset
12210
12211
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 Short Title|S
12217 \end_layout
12218
12219 \end_inset
12220
12221
12222 \begin_inset Quotes erd
12223 \end_inset
12224
12225 ).
12226  This specification is optional.
12227  If it is not given the 
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 LabelString
12233 \end_layout
12234
12235 \end_inset
12236
12237  will be used instead for the menu.
12238 \end_layout
12239
12240 \begin_layout Itemize
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 Tooltip
12246 \end_layout
12247
12248 \end_inset
12249
12250  
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 [string]
12256 \end_layout
12257
12258 \end_inset
12259
12260  A longer explanatory text that appears in the tooltip when hovering over
12261  the argument inset.
12262 \end_layout
12263
12264 \begin_layout Itemize
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 Mandatory
12270 \end_layout
12271
12272 \end_inset
12273
12274  [
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279
12280 \emph on
12281 0
12282 \end_layout
12283
12284 \end_inset
12285
12286 ,
12287 \begin_inset space \thinspace{}
12288 \end_inset
12289
12290
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 1
12296 \end_layout
12297
12298 \end_inset
12299
12300 ] Declare if this is a mandatory (1) or an optional (0) argument.
12301  Mandatory arguments will be output empty if not given, while optional arguments
12302  will not be output at all.
12303  By default, mandatory arguments are delimited by 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308 {...}
12309 \end_layout
12310
12311 \end_inset
12312
12313 , while optional arguments are delimited by 
12314 \begin_inset Flex Code
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 [...]
12319 \end_layout
12320
12321 \end_inset
12322
12323
12324 \change_inserted -712698321 1555579782
12325
12326 \end_layout
12327
12328 \begin_layout Itemize
12329
12330 \change_inserted -712698321 1555579780
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335
12336 \change_inserted -712698321 1555579780
12337 NewlineCmd
12338 \end_layout
12339
12340 \end_inset
12341
12342  
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347
12348 \change_inserted -712698321 1555579780
12349 [string]
12350 \end_layout
12351
12352 \end_inset
12353
12354  Option to define a different command (from the default 
12355 \begin_inset Flex Code
12356 status collapsed
12357
12358 \begin_layout Plain Layout
12359
12360 \change_inserted -712698321 1555579780
12361
12362 \backslash
12363
12364 \backslash
12365
12366 \end_layout
12367
12368 \end_inset
12369
12370 ) to be used for line breaks.
12371  The initial backslash must not be specified.
12372 \change_unchanged
12373
12374 \end_layout
12375
12376 \begin_layout Itemize
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 Requires
12382 \end_layout
12383
12384 \end_inset
12385
12386  
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 [int=0]
12392 \end_layout
12393
12394 \end_inset
12395
12396  defines another argument (by its number) which this argument requires to
12397  be output if it is itself output.
12398  E.
12399 \begin_inset space \thinspace{}
12400 \end_inset
12401
12402 g., in \SpecialChar LaTeX
12403  commands, optional arguments often require previous optional arguments
12404  to be output (at least empty), as in 
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409
12410 \backslash
12411 command[][argument]{text}
12412 \end_layout
12413
12414 \end_inset
12415
12416 .
12417  This can be achieved by the statement 
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 Requires 1
12423 \end_layout
12424
12425 \end_inset
12426
12427  within 
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 Argument 2
12433 \end_layout
12434
12435 \end_inset
12436
12437 .
12438 \end_layout
12439
12440 \begin_layout Itemize
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 LeftDelim
12446 \end_layout
12447
12448 \end_inset
12449
12450  
12451 \begin_inset Flex Code
12452 status collapsed
12453
12454 \begin_layout Plain Layout
12455 [string]
12456 \end_layout
12457
12458 \end_inset
12459
12460  defines a custom left delimiter (instead of 
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 {
12466 \end_layout
12467
12468 \end_inset
12469
12470  or 
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 [
12476 \end_layout
12477
12478 \end_inset
12479
12480 ).
12481  A line break in the output can be indicated by 
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 <br/>
12487 \end_layout
12488
12489 \end_inset
12490
12491 .
12492 \end_layout
12493
12494 \begin_layout Itemize
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 RightDelim
12500 \end_layout
12501
12502 \end_inset
12503
12504  
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 [string]
12510 \end_layout
12511
12512 \end_inset
12513
12514  defines a custom right delimiter (instead of 
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 }
12520 \end_layout
12521
12522 \end_inset
12523
12524  or 
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 ]
12530 \end_layout
12531
12532 \end_inset
12533
12534 ).
12535  A line break in the output can be indicated by 
12536 \begin_inset Flex Code
12537 status collapsed
12538
12539 \begin_layout Plain Layout
12540 <br/>
12541 \end_layout
12542
12543 \end_inset
12544
12545 .
12546 \end_layout
12547
12548 \begin_layout Itemize
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 DefaultArg
12554 \end_layout
12555
12556 \end_inset
12557
12558  
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 [string]
12564 \end_layout
12565
12566 \end_inset
12567
12568  defines an argument that is inserted if and only if no user-specified arguments
12569  were given, i.
12570 \begin_inset space \thinspace{}
12571 \end_inset
12572
12573 e.
12574 \begin_inset space \space{}
12575 \end_inset
12576
12577 if no argument inset has been inserted (note that also an empty argument
12578  inset omits the DefaultArg).
12579  Multiple arguments need to be separated by comma.
12580 \end_layout
12581
12582 \begin_layout Itemize
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 PresetArg
12588 \end_layout
12589
12590 \end_inset
12591
12592  
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 [string]
12598 \end_layout
12599
12600 \end_inset
12601
12602  defines an argument that is inserted in any case (alone or in addition
12603  to user-specified arguments).
12604  Multiple arguments need to be separated by comma.
12605 \end_layout
12606
12607 \begin_layout Itemize
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 Font
12613 \end_layout
12614
12615 \end_inset
12616
12617  The font used for the argument content, see 
12618 \begin_inset CommandInset ref
12619 LatexCommand ref
12620 reference "subsec:Font-description"
12621
12622 \end_inset
12623
12624 .
12625 \change_inserted -712698321 1559484228
12626
12627 \end_layout
12628
12629 \begin_layout Itemize
12630
12631 \change_inserted -712698321 1559484228
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636
12637 \change_inserted -712698321 1559484228
12638 FreeSpacing
12639 \end_layout
12640
12641 \end_inset
12642
12643  [
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648
12649 \change_inserted -712698321 1559484228
12650
12651 \emph on
12652 0
12653 \end_layout
12654
12655 \end_inset
12656
12657 ,
12658 \begin_inset space \thinspace{}
12659 \end_inset
12660
12661
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666
12667 \change_inserted -712698321 1559484228
12668 1
12669 \end_layout
12670
12671 \end_inset
12672
12673 ] As with paragraph styles, see 
12674 \begin_inset CommandInset ref
12675 LatexCommand ref
12676 reference "subsec:Paragraph-Styles"
12677
12678 \end_inset
12679
12680 .
12681 \change_unchanged
12682
12683 \end_layout
12684
12685 \begin_layout Itemize
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 LabelFont
12691 \end_layout
12692
12693 \end_inset
12694
12695  The font used for the label; see 
12696 \begin_inset CommandInset ref
12697 LatexCommand ref
12698 reference "subsec:Font-description"
12699
12700 \end_inset
12701
12702 .
12703 \end_layout
12704
12705 \begin_layout Itemize
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 Decoration
12711 \end_layout
12712
12713 \end_inset
12714
12715  [
12716 \begin_inset Flex Code
12717 status collapsed
12718
12719 \begin_layout Plain Layout
12720
12721 \emph on
12722 Classic
12723 \emph default
12724 , Minimalistic, Conglomerate
12725 \end_layout
12726
12727 \end_inset
12728
12729 ] describes the rendering style used for the inset's frame and buttons.
12730 \end_layout
12731
12732 \begin_layout Itemize
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737 AutoInsert
12738 \end_layout
12739
12740 \end_inset
12741
12742  
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 [int=0]
12748 \end_layout
12749
12750 \end_inset
12751
12752  If this is set to 
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757 1
12758 \end_layout
12759
12760 \end_inset
12761
12762 , this argument is automatically inserted when the respective style is selected.
12763
12764 \change_deleted -712698321 1559484200
12765  Currently, only one argument per style\SpecialChar breakableslash
12766 layout can be automatically inserted.
12767 \change_unchanged
12768
12769 \end_layout
12770
12771 \begin_layout Itemize
12772
12773 \change_inserted -712698321 1559491402
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778
12779 \change_inserted -712698321 1559490711
12780 InsertOnNewline
12781 \end_layout
12782
12783 \end_inset
12784
12785  
12786 \begin_inset Flex Code
12787 status collapsed
12788
12789 \begin_layout Plain Layout
12790
12791 \change_inserted -712698321 1559490703
12792 [int=0]
12793 \end_layout
12794
12795 \end_inset
12796
12797  If this is set to 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802
12803 \change_inserted -712698321 1559490703
12804 1
12805 \end_layout
12806
12807 \end_inset
12808
12809 , this argument will be inserted on a new line with 
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814
12815 \change_inserted -712698321 1559491402
12816 AutoInsert
12817 \end_layout
12818
12819 \end_inset
12820
12821  (only available within Flex insets).
12822 \end_layout
12823
12824 \begin_layout Itemize
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 InsertCotext
12830 \end_layout
12831
12832 \end_inset
12833
12834  
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 [int=0]
12840 \end_layout
12841
12842 \end_inset
12843
12844  If this is set to 
12845 \begin_inset Flex Code
12846 status collapsed
12847
12848 \begin_layout Plain Layout
12849 1
12850 \end_layout
12851
12852 \end_inset
12853
12854 , this argument will be inserted with a copy of the co-text (either selected
12855  text or the whole paragraph) as content.
12856 \end_layout
12857
12858 \begin_layout Itemize
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 PassThru
12864 \end_layout
12865
12866 \end_inset
12867
12868  [
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873
12874 \emph on
12875 inherited
12876 \emph default
12877 , true, false
12878 \end_layout
12879
12880 \end_inset
12881
12882 ] Whether the contents of this argument should be output in raw form, meaning
12883  without special translations that \SpecialChar LaTeX
12884  would require.
12885  By default, the 
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890 PassThru
12891 \end_layout
12892
12893 \end_inset
12894
12895  status is inherited by the inset or paragraph layout the argument belongs
12896  to, true and false change the status for the given argument only.
12897 \end_layout
12898
12899 \begin_layout Itemize
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904 PassThruChars
12905 \end_layout
12906
12907 \end_inset
12908
12909  [
12910 \begin_inset Flex Code
12911 status collapsed
12912
12913 \begin_layout Plain Layout
12914 string of characters
12915 \end_layout
12916
12917 \end_inset
12918
12919 ]
12920 \family typewriter
12921  
12922 \family default
12923 Defines individual characters
12924 \begin_inset Newline linebreak
12925 \end_inset
12926
12927 that should be output in raw form, meaning without special translations
12928  that \SpecialChar LaTeX
12929  would require.
12930  Note that, contrary to PassThru, this needs to be explicitly defined for
12931  arguments.
12932  That is, arguments do not inherit PassThruChars from their parent inset
12933  or layout.
12934 \end_layout
12935
12936 \begin_layout Itemize
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 IsTocCaption
12942 \end_layout
12943
12944 \end_inset
12945
12946  [
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951
12952 \emph on
12953 0
12954 \end_layout
12955
12956 \end_inset
12957
12958 ,
12959 \begin_inset space \thinspace{}
12960 \end_inset
12961
12962
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 1
12968 \end_layout
12969
12970 \end_inset
12971
12972 ] If this is set to 1, the argument will output its content in the corresponding
12973  item in the table of contents.
12974  See AddToToc.
12975 \end_layout
12976
12977 \begin_layout Standard
12978 By default, the text entered in the \SpecialChar LyX
12979  workarea in the respective layout is
12980  the last (mandatory) argument of a command if the 
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 LatexType
12986 \end_layout
12987
12988 \end_inset
12989
12990  is 
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 Command
12996 \end_layout
12997
12998 \end_inset
12999
13000 .
13001  However, arguments with the prefix 
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 post:
13007 \end_layout
13008
13009 \end_inset
13010
13011  are output after this workarea argument.
13012  Note that post-argument numbering restarts at 1, so the first argument
13013  following the workarea argument is 
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 post:1
13019 \end_layout
13020
13021 \end_inset
13022
13023 .
13024  Post-arguments are ignored in any other 
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 LatexType
13030 \end_layout
13031
13032 \end_inset
13033
13034  than 
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 Command
13040 \end_layout
13041
13042 \end_inset
13043
13044 .
13045 \end_layout
13046
13047 \begin_layout Standard
13048 Arguments for list 
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053
13054 \backslash
13055 item
13056 \end_layout
13057
13058 \end_inset
13059
13060 s (as in 
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065
13066 \backslash
13067 item[foo]
13068 \end_layout
13069
13070 \end_inset
13071
13072 ) have the prefix 
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 item:
13078 \end_layout
13079
13080 \end_inset
13081
13082  followed by the number (e.
13083 \begin_inset space \thinspace{}
13084 \end_inset
13085
13086 g.
13087 \begin_inset space \space{}
13088 \end_inset
13089
13090
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Argument item:1
13096 \end_layout
13097
13098 \end_inset
13099
13100 ).
13101 \change_inserted -712698321 1534487781
13102
13103 \end_layout
13104
13105 \begin_layout Standard
13106
13107 \change_inserted -712698321 1534488561
13108 Finally, there is a special argument type with the prefix 
13109 \begin_inset Flex Code
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113
13114 \change_inserted -712698321 1534487844
13115 listpreamble:
13116 \change_unchanged
13117
13118 \end_layout
13119
13120 \end_inset
13121
13122 .
13123  It is not really an argument, but uses the argument interface (thus, the
13124  prefix is also followed by a number, e.
13125 \begin_inset space \thinspace{}
13126 \end_inset
13127
13128 g.
13129  
13130 \begin_inset Flex Code
13131 status collapsed
13132
13133 \begin_layout Plain Layout
13134
13135 \change_inserted -712698321 1534488412
13136 Argument listpreamble:1
13137 \end_layout
13138
13139 \end_inset
13140
13141 ).
13142  As the name implies, it is targeted at lists such as 
13143 \family sans
13144 Itemize
13145 \family default
13146
13147 \family sans
13148 Enumerate
13149 \family default
13150
13151 \family sans
13152 Description
13153 \family default
13154 , or 
13155 \family sans
13156 Bibliography
13157 \family default
13158 .
13159  Its content will be output at the list start, before the first 
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164
13165 \change_inserted -712698321 1534488058
13166
13167 \backslash
13168 item
13169 \change_unchanged
13170
13171 \end_layout
13172
13173 \end_inset
13174
13175 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13176 ).
13177  This way, users can insert redefinitions (of lengths etc.) to individual
13178  lists.
13179  By default, these arguments do not have a delimiter.
13180 \change_unchanged
13181
13182 \end_layout
13183
13184 \end_deeper
13185 \begin_layout Description
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190 AutoNests
13191 \end_layout
13192
13193 \end_inset
13194
13195  Includes a comma-separated list of layouts that should be nested in and
13196  after the current layout.
13197  Only makes sense for nestable layouts (such as environments).
13198  Must be ended by 
13199 \begin_inset Quotes eld
13200 \end_inset
13201
13202
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 EndAutoNests
13208 \end_layout
13209
13210 \end_inset
13211
13212
13213 \begin_inset Quotes erd
13214 \end_inset
13215
13216 .
13217  See also 
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 IsAutoNestedBy
13223 \end_layout
13224
13225 \end_inset
13226
13227 .
13228 \end_layout
13229
13230 \begin_layout Description
13231 \begin_inset Flex Code
13232 status collapsed
13233
13234 \begin_layout Plain Layout
13235 BabelPreamble
13236 \end_layout
13237
13238 \end_inset
13239
13240  Note that this will completely override any prior 
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 BabelPreamble
13246 \end_layout
13247
13248 \end_inset
13249
13250  declaration for this style.
13251  Must end with 
13252 \begin_inset Quotes eld
13253 \end_inset
13254
13255
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 EndBabelPreamble
13261 \end_layout
13262
13263 \end_inset
13264
13265
13266 \begin_inset Quotes erd
13267 \end_inset
13268
13269 .
13270  See 
13271 \begin_inset CommandInset ref
13272 LatexCommand ref
13273 reference "subsec:I18n"
13274
13275 \end_inset
13276
13277  for details on its use.
13278 \end_layout
13279
13280 \begin_layout Description
13281 \begin_inset Flex Code
13282 status collapsed
13283
13284 \begin_layout Plain Layout
13285 BottomSep
13286 \end_layout
13287
13288 \end_inset
13289
13290  [
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 float=0
13296 \end_layout
13297
13298 \end_inset
13299
13300 ]
13301 \begin_inset Foot
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 Note that a `float' here is a real number, such as: 1.5.
13306 \end_layout
13307
13308 \end_inset
13309
13310  The vertical space with which the last of a chain of paragraphs with this
13311  style is separated from the following paragraph.
13312  If the next paragraph has another style, the separations are not simply
13313  added, but the maximum is taken.
13314 \end_layout
13315
13316 \begin_layout Description
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 Category
13322 \end_layout
13323
13324 \end_inset
13325
13326  [
13327 \begin_inset Flex Code
13328 status collapsed
13329
13330 \begin_layout Plain Layout
13331 string
13332 \end_layout
13333
13334 \end_inset
13335
13336 ] The category for this style.
13337  This is used to group related styles in the style combobox on the toolbar.
13338  Any string can be used, but you may want to use existing categories with
13339  your own styles.
13340  
13341 \end_layout
13342
13343 \begin_layout Description
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 CommandDepth
13349 \end_layout
13350
13351 \end_inset
13352
13353  Depth of XML command.
13354  Used only with XML-type formats.
13355 \end_layout
13356
13357 \begin_layout Description
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 CopyStyle
13363 \end_layout
13364
13365 \end_inset
13366
13367  [
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372 string
13373 \end_layout
13374
13375 \end_inset
13376
13377 ] Copies all the features of an existing style into the current one.
13378  
13379 \end_layout
13380
13381 \begin_layout Description
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 DependsOn
13387 \end_layout
13388
13389 \end_inset
13390
13391  [
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 <name>
13397 \end_layout
13398
13399 \end_inset
13400
13401 ] The name of a style whose preamble should be output 
13402 \emph on
13403 before
13404 \emph default
13405  this one.
13406  This allows to ensure some ordering of the preamble snippets when macros
13407  definitions depend on one another.
13408 \begin_inset Foot
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 Note that, besides that functionality, there is no way to ensure any ordering
13413  of preambles.
13414  The ordering that you see in a given version of \SpecialChar LyX
13415  may change without warning
13416  in later versions.
13417 \end_layout
13418
13419 \end_inset
13420
13421
13422 \end_layout
13423
13424 \begin_layout Description
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 EndLabeltype
13430 \end_layout
13431
13432 \end_inset
13433
13434  [
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439
13440 \emph on
13441 No_Label
13442 \emph default
13443 , Box, Filled_Box, Static
13444 \end_layout
13445
13446 \end_inset
13447
13448 ] The type of label that stands at the end of the paragraph (or sequence
13449  of paragraphs if 
13450 \begin_inset Flex Code
13451 status collapsed
13452
13453 \begin_layout Plain Layout
13454 LatexType
13455 \end_layout
13456
13457 \end_inset
13458
13459  is
13460 \begin_inset Newline newline
13461 \end_inset
13462
13463
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 Environment
13469 \end_layout
13470
13471 \end_inset
13472
13473
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Item_Environment
13479 \end_layout
13480
13481 \end_inset
13482
13483  or 
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 List_Environment
13489 \end_layout
13490
13491 \end_inset
13492
13493 ).
13494  
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 No_Label
13500 \end_layout
13501
13502 \end_inset
13503
13504  means 
13505 \begin_inset Quotes eld
13506 \end_inset
13507
13508 nothing
13509 \begin_inset Quotes erd
13510 \end_inset
13511
13512
13513 \begin_inset Flex Code
13514 status collapsed
13515
13516 \begin_layout Plain Layout
13517 Box
13518 \end_layout
13519
13520 \end_inset
13521
13522  (resp.
13523 \begin_inset space \space{}
13524 \end_inset
13525
13526
13527 \begin_inset Flex Code
13528 status collapsed
13529
13530 \begin_layout Plain Layout
13531 Filled_Box
13532 \end_layout
13533
13534 \end_inset
13535
13536 ) is a white (resp.
13537 \begin_inset space ~
13538 \end_inset
13539
13540 black) square suitable for end of proof markers, 
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Static
13546 \end_layout
13547
13548 \end_inset
13549
13550  is an explicit text string.
13551 \end_layout
13552
13553 \begin_layout Description
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 EndLabelString
13559 \end_layout
13560
13561 \end_inset
13562
13563  [
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 string=""
13569 \end_layout
13570
13571 \end_inset
13572
13573 ] The string used for a label with a 
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 Static
13579 \end_layout
13580
13581 \end_inset
13582
13583
13584 \begin_inset Newline newline
13585 \end_inset
13586
13587
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 EndLabelType
13593 \end_layout
13594
13595 \end_inset
13596
13597 .
13598  
13599 \end_layout
13600
13601 \begin_layout Description
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 Font
13607 \end_layout
13608
13609 \end_inset
13610
13611  The font used for both the text body 
13612 \emph on
13613 and
13614 \emph default
13615  the label.
13616  See 
13617 \begin_inset CommandInset ref
13618 LatexCommand ref
13619 reference "subsec:Font-description"
13620
13621 \end_inset
13622
13623 .
13624  Note that defining this font automatically defines the 
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 LabelFont
13630 \end_layout
13631
13632 \end_inset
13633
13634  to the same value.
13635  So you should define this one first if you also want to define 
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 LabelFont
13641 \end_layout
13642
13643 \end_inset
13644
13645 .
13646 \end_layout
13647
13648 \begin_layout Description
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 ForceLocal
13654 \end_layout
13655
13656 \end_inset
13657
13658  [
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 int=0
13664 \end_layout
13665
13666 \end_inset
13667
13668 ] Used for backporting new styles to stable \SpecialChar LyX
13669  versions.
13670  The first stable version that supports this tag is \SpecialChar LyX
13671  2.1.0.
13672  The argument is a number which may either be 0, -1 or any value greater
13673  than zero.
13674  If the 
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 ForceLocal
13680 \end_layout
13681
13682 \end_inset
13683
13684  flag of a style is greater than zero, it will always be written to the
13685  document header.
13686  If a .lyx file is read, the style definitions from the document header are
13687  added to the document class.
13688  Therefore even older \SpecialChar LyX
13689  versions can handle the style.
13690  The argument of 
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 ForceLocal
13696 \end_layout
13697
13698 \end_inset
13699
13700  is a version number: if the style is read, and the version number is less
13701  than the version number of the already existing style in the document class,
13702  the new style is ignored.
13703  If the version number is greater, the new style replaces the existing style.
13704  A value of -1 means an infinite version number, i.
13705 \begin_inset space \thinspace{}
13706 \end_inset
13707
13708 e.
13709 \begin_inset space \space{}
13710 \end_inset
13711
13712 the style is always used.
13713 \end_layout
13714
13715 \begin_layout Description
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720 FreeSpacing
13721 \end_layout
13722
13723 \end_inset
13724
13725  [
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730
13731 \emph on
13732 0
13733 \end_layout
13734
13735 \end_inset
13736
13737 ,
13738 \begin_inset space \thinspace{}
13739 \end_inset
13740
13741
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 1
13747 \end_layout
13748
13749 \end_inset
13750
13751 ] Usually \SpecialChar LyX
13752  does not allow you to insert more than one space between words,
13753  since a space is considered as the separation between two words, not a
13754  character or symbol of its own.
13755  This is a very fine thing but sometimes annoying, for example, when typing
13756  program code or plain \SpecialChar LaTeX
13757  code.
13758  For this reason, 
13759 \begin_inset Flex Code
13760 status collapsed
13761
13762 \begin_layout Plain Layout
13763 FreeSpacing
13764 \end_layout
13765
13766 \end_inset
13767
13768  can be enabled.
13769  
13770 \change_deleted -495245474 1550490105
13771 Note that 
13772 \change_unchanged
13773 \SpecialChar LyX
13774  will create protected blanks for the additional blanks when in 
13775 \change_inserted -495245474 1550490096
13776
13777 \begin_inset Flex Code
13778 status collapsed
13779
13780 \begin_layout Plain Layout
13781
13782 \change_inserted -495245474 1550490089
13783 Passthru 1
13784 \end_layout
13785
13786 \end_inset
13787
13788  is not specified.
13789 \change_deleted -495245474 1550490116
13790 another mode than \SpecialChar LaTeX
13791 -mode.
13792
13793 \change_inserted -495245474 1550247760
13794  Note that 
13795 \begin_inset Flex Code
13796 status collapsed
13797
13798 \begin_layout Plain Layout
13799
13800 \change_inserted -495245474 1550247736
13801 FreeSpacing
13802 \end_layout
13803
13804 \end_inset
13805
13806  implies 
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811
13812 \change_inserted -495245474 1550247755
13813 KeepEmpty
13814 \end_layout
13815
13816 \end_inset
13817
13818 .
13819 \change_unchanged
13820
13821 \end_layout
13822
13823 \begin_layout Description
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 HTML*
13829 \end_layout
13830
13831 \end_inset
13832
13833  These tags are used with XHTML output.
13834  See 
13835 \begin_inset CommandInset ref
13836 LatexCommand ref
13837 reference "subsec:Paragraph-Style-XHTML"
13838
13839 \end_inset
13840
13841 .
13842 \end_layout
13843
13844 \begin_layout Description
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 InnerTag
13850 \end_layout
13851
13852 \end_inset
13853
13854  [FIXME] (Used only with XML-type formats.)
13855 \end_layout
13856
13857 \begin_layout Description
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 InPreamble
13863 \end_layout
13864
13865 \end_inset
13866
13867  [
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872
13873 \emph on
13874 0
13875 \end_layout
13876
13877 \end_inset
13878
13879 ,
13880 \begin_inset space \thinspace{}
13881 \end_inset
13882
13883
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 1
13889 \end_layout
13890
13891 \end_inset
13892
13893 ] If 
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 1
13899 \end_layout
13900
13901 \end_inset
13902
13903 , marks the style as to be included in the document preamble and not in
13904  the document body.
13905  This is useful for document classes that want such information as the title
13906  and author to appear in the preamble.
13907  Note that this works only for styles for which the 
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 LatexType
13913 \end_layout
13914
13915 \end_inset
13916
13917  is 
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 Command
13923 \end_layout
13924
13925 \end_inset
13926
13927  or 
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 Paragraph
13933 \end_layout
13934
13935 \end_inset
13936
13937 .
13938 \end_layout
13939
13940 \begin_layout Description
13941 \begin_inset Flex Code
13942 status collapsed
13943
13944 \begin_layout Plain Layout
13945 InTitle
13946 \end_layout
13947
13948 \end_inset
13949
13950  [
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955
13956 \emph on
13957 0
13958 \end_layout
13959
13960 \end_inset
13961
13962 ,
13963 \begin_inset space \thinspace{}
13964 \end_inset
13965
13966
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 1
13972 \end_layout
13973
13974 \end_inset
13975
13976 ] If 
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981 1
13982 \end_layout
13983
13984 \end_inset
13985
13986 , marks the style as being part of a title block (see also the 
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 TitleLatexType
13992 \end_layout
13993
13994 \end_inset
13995
13996  and 
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 TitleLatexName
14002 \end_layout
14003
14004 \end_inset
14005
14006  global entries).
14007 \end_layout
14008
14009 \begin_layout Description
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014 IsAutoNestedBy
14015 \end_layout
14016
14017 \end_inset
14018
14019  Includes a comma-separated list of layouts after which this one should
14020  be nested.
14021  Only makes sense with regard to nestable layouts (such as environments).
14022  Must be ended by 
14023 \begin_inset Quotes eld
14024 \end_inset
14025
14026
14027 \begin_inset Flex Code
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 EndIsAutoNestedBy
14032 \end_layout
14033
14034 \end_inset
14035
14036
14037 \begin_inset Quotes erd
14038 \end_inset
14039
14040 .
14041  See also 
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 AutoNests
14047 \end_layout
14048
14049 \end_inset
14050
14051 .
14052 \end_layout
14053
14054 \begin_layout Description
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 IsTocCaption
14060 \end_layout
14061
14062 \end_inset
14063
14064  [
14065 \begin_inset Flex Code
14066 status collapsed
14067
14068 \begin_layout Plain Layout
14069
14070 \emph on
14071 0
14072 \end_layout
14073
14074 \end_inset
14075
14076 ,
14077 \begin_inset space \thinspace{}
14078 \end_inset
14079
14080
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 1
14086 \end_layout
14087
14088 \end_inset
14089
14090 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14091  of its contents in its item in the table of contents.
14092  Otherwise, only the label, if it exists, appears.
14093 \end_layout
14094
14095 \begin_layout Description
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 ItemCommand
14101 \end_layout
14102
14103 \end_inset
14104
14105  [
14106 \begin_inset Flex Code
14107 status collapsed
14108
14109 \begin_layout Plain Layout
14110 string="item"
14111 \end_layout
14112
14113 \end_inset
14114
14115 ] The \SpecialChar LaTeX
14116  command sequence declaring an item in a list.
14117  The command is to be defined without the preceding backslash (the default
14118  is 
14119 \begin_inset Quotes eld
14120 \end_inset
14121
14122 item
14123 \begin_inset Quotes erd
14124 \end_inset
14125
14126 , resulting in 
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131
14132 \backslash
14133 item
14134 \end_layout
14135
14136 \end_inset
14137
14138  in the \SpecialChar LaTeX
14139  output).
14140 \end_layout
14141
14142 \begin_layout Description
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 ItemSep
14148 \end_layout
14149
14150 \end_inset
14151
14152  [
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 float=0
14158 \end_layout
14159
14160 \end_inset
14161
14162 ] This provides extra space between paragraphs that have the same style.
14163  If you put other styles into an environment, each is separated with the
14164  environment's 
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 ParSep
14170 \end_layout
14171
14172 \end_inset
14173
14174 .
14175  But the whole items of the environment are additionally separated with
14176  this 
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 ItemSep
14182 \end_layout
14183
14184 \end_inset
14185
14186 .
14187  Note that this is a
14188 \emph on
14189  multiplier.
14190 \end_layout
14191
14192 \begin_layout Description
14193 \begin_inset Flex Code
14194 status collapsed
14195
14196 \begin_layout Plain Layout
14197 ItemTag
14198 \end_layout
14199
14200 \end_inset
14201
14202  [FIXME] (Used only with XML-type formats.)
14203 \end_layout
14204
14205 \begin_layout Description
14206 \begin_inset Flex Code
14207 status collapsed
14208
14209 \begin_layout Plain Layout
14210 KeepEmpty
14211 \end_layout
14212
14213 \end_inset
14214
14215  [
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220
14221 \emph on
14222 0
14223 \end_layout
14224
14225 \end_inset
14226
14227 ,
14228 \begin_inset space \thinspace{}
14229 \end_inset
14230
14231
14232 \begin_inset Flex Code
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 1
14237 \end_layout
14238
14239 \end_inset
14240
14241 ] Usually \SpecialChar LyX
14242  does not allow you to leave a paragraph empty, since it would
14243  lead to empty \SpecialChar LaTeX
14244  output.
14245  There are some cases where this could be desirable however: in a letter
14246  template, the required fields can be provided as empty fields, so that
14247  people do not forget them; in some special classes, a style can be used
14248  as some kind of break, which does not contain actual text.
14249 \end_layout
14250
14251 \begin_layout Description
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 LabelBottomsep
14257 \end_layout
14258
14259 \end_inset
14260
14261  [
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 float=0
14267 \end_layout
14268
14269 \end_inset
14270
14271 ] The vertical space between the label and the text body.
14272  Only used for labels that are above the text body (
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 Top_Environment
14278 \end_layout
14279
14280 \end_inset
14281
14282  and
14283 \begin_inset Newline newline
14284 \end_inset
14285
14286
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 Centered_Top_Environment
14292 \end_layout
14293
14294 \end_inset
14295
14296 ).
14297 \end_layout
14298
14299 \begin_layout Description
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 LabelCounter
14305 \end_layout
14306
14307 \end_inset
14308
14309  [
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 string=""
14315 \end_layout
14316
14317 \end_inset
14318
14319 ] The name of the counter for automatic numbering.
14320  In order to have the counter appear with your label, you will need to reference
14321  it in the 
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326
14327 \family typewriter
14328 LabelString
14329 \end_layout
14330
14331 \end_inset
14332
14333 .
14334  This will work with 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 LabelType
14340 \end_layout
14341
14342 \end_inset
14343
14344 s, 
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 Static
14350 \end_layout
14351
14352 \end_inset
14353
14354
14355 \begin_inset Flex Code
14356 status collapsed
14357
14358 \begin_layout Plain Layout
14359 Above
14360 \end_layout
14361
14362 \end_inset
14363
14364  and 
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 Centered
14370 \end_layout
14371
14372 \end_inset
14373
14374 , at least.
14375 \begin_inset Newline newline
14376 \end_inset
14377
14378 This 
14379 \emph on
14380 may
14381 \emph default
14382  also be given if 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 LabelType
14388 \end_layout
14389
14390 \end_inset
14391
14392  is 
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 Enumerate
14398 \end_layout
14399
14400 \end_inset
14401
14402 , though this case is a bit complicated.
14403  Suppose you declare 
14404 \begin_inset Quotes eld
14405 \end_inset
14406
14407
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 LabelCounter myenum
14413 \end_layout
14414
14415 \end_inset
14416
14417
14418 \begin_inset Quotes erd
14419 \end_inset
14420
14421 .
14422  Then the actual counters used are 
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 myenumi
14428 \end_layout
14429
14430 \end_inset
14431
14432
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 myenumii
14438 \end_layout
14439
14440 \end_inset
14441
14442
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 myenumiii
14448 \end_layout
14449
14450 \end_inset
14451
14452  and 
14453 \begin_inset Flex Code
14454 status collapsed
14455
14456 \begin_layout Plain Layout
14457 myenumiv
14458 \end_layout
14459
14460 \end_inset
14461
14462 , much as in \SpecialChar LaTeX
14463 .
14464  These counters must all be declared separately.
14465 \begin_inset Newline newline
14466 \end_inset
14467
14468 See 
14469 \begin_inset CommandInset ref
14470 LatexCommand ref
14471 reference "subsec:Counters"
14472
14473 \end_inset
14474
14475  for details on counters.
14476 \end_layout
14477
14478 \begin_layout Description
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 LabelFont
14484 \end_layout
14485
14486 \end_inset
14487
14488  The font used for the label.
14489  See 
14490 \begin_inset CommandInset ref
14491 LatexCommand ref
14492 reference "subsec:Font-description"
14493
14494 \end_inset
14495
14496 .
14497 \end_layout
14498
14499 \begin_layout Description
14500 \begin_inset Flex Code
14501 status collapsed
14502
14503 \begin_layout Plain Layout
14504 LabelIndent
14505 \end_layout
14506
14507 \end_inset
14508
14509  [
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 string=""
14515 \end_layout
14516
14517 \end_inset
14518
14519 ] Text that indicates how far a label should be indented.
14520 \end_layout
14521
14522 \begin_layout Description
14523 \begin_inset Flex Code
14524 status collapsed
14525
14526 \begin_layout Plain Layout
14527 LabelSep
14528 \end_layout
14529
14530 \end_inset
14531
14532  [
14533 \begin_inset Flex Code
14534 status collapsed
14535
14536 \begin_layout Plain Layout
14537 string=""
14538 \end_layout
14539
14540 \end_inset
14541
14542 ] Text that indicates the amount of horizontal space between the label and
14543  the text body.
14544  Only used for labels that are not above the text body.
14545 \end_layout
14546
14547 \begin_layout Description
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552 LabelString
14553 \end_layout
14554
14555 \end_inset
14556
14557  [
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 string=""
14563 \end_layout
14564
14565 \end_inset
14566
14567 ] The string used for the label.
14568  When 
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 LabelCounter
14574 \end_layout
14575
14576 \end_inset
14577
14578  is set, this string can be contain the special formatting commands described
14579  in 
14580 \begin_inset CommandInset ref
14581 LatexCommand ref
14582 reference "subsec:Counters"
14583
14584 \end_inset
14585
14586 .
14587 \end_layout
14588
14589 \begin_layout Description
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 LabelStringAppendix
14595 \end_layout
14596
14597 \end_inset
14598
14599  [
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 string=""
14605 \end_layout
14606
14607 \end_inset
14608
14609 ] This is used inside the appendix instead of
14610 \begin_inset Newline newline
14611 \end_inset
14612
14613
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 LabelString
14619 \end_layout
14620
14621 \end_inset
14622
14623 .
14624  Note that every 
14625 \begin_inset Flex Code
14626 status collapsed
14627
14628 \begin_layout Plain Layout
14629 LabelString
14630 \end_layout
14631
14632 \end_inset
14633
14634  statement resets
14635 \begin_inset Newline newline
14636 \end_inset
14637
14638
14639 \begin_inset Flex Code
14640 status collapsed
14641
14642 \begin_layout Plain Layout
14643 LabelStringAppendix
14644 \end_layout
14645
14646 \end_inset
14647
14648  too.
14649 \end_layout
14650
14651 \begin_layout Description
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 LabelTag
14657 \end_layout
14658
14659 \end_inset
14660
14661  [FIXME] (Used only with XML-type formats.)
14662 \end_layout
14663
14664 \begin_layout Description
14665 \begin_inset Flex Code
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 LabelType
14670 \end_layout
14671
14672 \end_inset
14673
14674  [
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679
14680 \emph on
14681 No_Label
14682 \emph default
14683 , Manual, Static, Above, 
14684 \begin_inset Newline newline
14685 \end_inset
14686
14687 Centered, Sensitive, Enumerate,
14688 \begin_inset Newline newline
14689 \end_inset
14690
14691 Itemize, Bibliography
14692 \end_layout
14693
14694 \end_inset
14695
14696 ]
14697 \end_layout
14698
14699 \begin_deeper
14700 \begin_layout Description
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 Manual
14706 \end_layout
14707
14708 \end_inset
14709
14710  means the label is the very first word (up to the first real blank).
14711  Use protected spaces if you want more than one word as the label.
14712  
14713 \end_layout
14714
14715 \begin_layout Description
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 Static
14721 \end_layout
14722
14723 \end_inset
14724
14725  means the label is simply what is declared as 
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 LabelString
14731 \end_layout
14732
14733 \end_inset
14734
14735 .
14736  This will be displayed 
14737 \begin_inset Quotes eld
14738 \end_inset
14739
14740 inline
14741 \begin_inset Quotes erd
14742 \end_inset
14743
14744 , at the beginning of the paragraph.
14745  If the 
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 LatexType
14751 \end_layout
14752
14753 \end_inset
14754
14755  is 
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Environment
14761 \end_layout
14762
14763 \end_inset
14764
14765 , then it will be displayed only in the first paragraph of any sequence
14766  of paragraphs with the same 
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 Style
14772 \end_layout
14773
14774 \end_inset
14775
14776 .
14777 \end_layout
14778
14779 \begin_layout Description
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 Above
14785 \end_layout
14786
14787 \end_inset
14788
14789
14790 \begin_inset space ~
14791 \end_inset
14792
14793 and
14794 \begin_inset space ~
14795 \end_inset
14796
14797
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 Centered
14803 \end_layout
14804
14805 \end_inset
14806
14807  are special cases of 
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 Static
14813 \end_layout
14814
14815 \end_inset
14816
14817 .
14818  The label will be printed above the paragraph either at the beginning of
14819  the line or centered.
14820 \end_layout
14821
14822 \begin_layout Description
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 Sensitive
14828 \end_layout
14829
14830 \end_inset
14831
14832  is a special case for the caption-labels 
14833 \begin_inset Quotes eld
14834 \end_inset
14835
14836 Figure
14837 \begin_inset Quotes erd
14838 \end_inset
14839
14840  and 
14841 \begin_inset Quotes eld
14842 \end_inset
14843
14844 Table
14845 \begin_inset Quotes erd
14846 \end_inset
14847
14848 .
14849 \begin_inset Newline newline
14850 \end_inset
14851
14852
14853 \begin_inset Flex Code
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857 Sensitive
14858 \end_layout
14859
14860 \end_inset
14861
14862  means the (hardcoded) label string depends on the kind of float: It is
14863  hardcoded to be `FloatType N', where N is the value of the counter associated
14864  with the float.
14865  For the case that a caption is inserted outside of a float the 
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 LabelString
14871 \end_layout
14872
14873 \end_inset
14874
14875  will appear as 
14876 \begin_inset Quotes eld
14877 \end_inset
14878
14879 Senseless!
14880 \begin_inset Quotes erd
14881 \end_inset
14882
14883 .
14884 \end_layout
14885
14886 \begin_layout Description
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Enumerate
14892 \end_layout
14893
14894 \end_inset
14895
14896  produces the usual sort of enumeration labels.
14897  The number type needs to be set in the 
14898 \family sans
14899 Counter
14900 \family default
14901 , see 
14902 \begin_inset CommandInset ref
14903 LatexCommand ref
14904 reference "subsec:Counters"
14905
14906 \end_inset
14907
14908 .
14909 \end_layout
14910
14911 \begin_layout Description
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Itemize
14917 \end_layout
14918
14919 \end_inset
14920
14921  produces various bullets at the different levels.
14922  The bullet types displayed can be set via 
14923 \begin_inset Flex Noun
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Document\SpecialChar menuseparator
14928 Settings\SpecialChar menuseparator
14929 Bullets
14930 \end_layout
14931
14932 \end_inset
14933
14934 .
14935 \end_layout
14936
14937 \begin_layout Description
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 Bibliography
14943 \end_layout
14944
14945 \end_inset
14946
14947  should be used only with 
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 LatexType BibEnvironment
14953 \end_layout
14954
14955 \end_inset
14956
14957 .
14958 \end_layout
14959
14960 \end_deeper
14961 \begin_layout Description
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 LangPreamble
14967 \end_layout
14968
14969 \end_inset
14970
14971  Note that this will completely override any prior 
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 LangPreamble
14977 \end_layout
14978
14979 \end_inset
14980
14981  declaration for this style.
14982  Must end with 
14983 \begin_inset Quotes eld
14984 \end_inset
14985
14986
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 EndLangPreamble
14992 \end_layout
14993
14994 \end_inset
14995
14996
14997 \begin_inset Quotes erd
14998 \end_inset
14999
15000 .
15001  See 
15002 \begin_inset CommandInset ref
15003 LatexCommand ref
15004 reference "subsec:I18n"
15005
15006 \end_inset
15007
15008  for details on its use.
15009 \end_layout
15010
15011 \begin_layout Description
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 LatexName
15017 \end_layout
15018
15019 \end_inset
15020
15021  [
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 <name>
15027 \end_layout
15028
15029 \end_inset
15030
15031 ] The name of the corresponding \SpecialChar LaTeX
15032  stuff.
15033  Either the environment or command name.
15034 \end_layout
15035
15036 \begin_layout Description
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 LatexParam
15042 \end_layout
15043
15044 \end_inset
15045
15046  [
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 <parameter>
15052 \end_layout
15053
15054 \end_inset
15055
15056 ] An optional parameter for the corresponding 
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 LatexName
15062 \end_layout
15063
15064 \end_inset
15065
15066  stuff.
15067  This parameter cannot be changed from within \SpecialChar LyX
15068  (use 
15069 \begin_inset Flex Code
15070 status collapsed
15071
15072 \begin_layout Plain Layout
15073 Argument
15074 \end_layout
15075
15076 \end_inset
15077
15078  for customizable parameters).
15079  This will be output as is after all \SpecialChar LaTeX
15080  
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 Argument
15086 \end_layout
15087
15088 \end_inset
15089
15090 s.
15091 \end_layout
15092
15093 \begin_layout Description
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098 LatexType
15099 \end_layout
15100
15101 \end_inset
15102
15103  [
15104 \begin_inset Flex Code
15105 status collapsed
15106
15107 \begin_layout Plain Layout
15108
15109 \emph on
15110 Paragraph
15111 \emph default
15112 , Command, Environment, Item_Environment,
15113 \begin_inset Newline newline
15114 \end_inset
15115
15116 List_Environment, Bib_Environment
15117 \end_layout
15118
15119 \end_inset
15120
15121 ] How the style should be translated into \SpecialChar LaTeX
15122 .
15123 \begin_inset Foot
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 LatexType
15132 \end_layout
15133
15134 \end_inset
15135
15136  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15137  Visit the SGML class files for specific examples.
15138 \end_layout
15139
15140 \end_inset
15141
15142
15143 \end_layout
15144
15145 \begin_deeper
15146 \begin_layout Description
15147 \begin_inset Flex Code
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151 Paragraph
15152 \end_layout
15153
15154 \end_inset
15155
15156  means nothing special.
15157 \end_layout
15158
15159 \begin_layout Description
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164 Command
15165 \end_layout
15166
15167 \end_inset
15168
15169  means 
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174
15175 \backslash
15176
15177 \emph on
15178 LatexName
15179 \emph default
15180 {\SpecialChar ldots
15181 }
15182 \end_layout
15183
15184 \end_inset
15185
15186 .
15187 \end_layout
15188
15189 \begin_layout Description
15190 \begin_inset Flex Code
15191 status collapsed
15192
15193 \begin_layout Plain Layout
15194 Environment
15195 \end_layout
15196
15197 \end_inset
15198
15199  means 
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204
15205 \backslash
15206 begin{
15207 \emph on
15208 LatexName
15209 \emph default
15210 }\SpecialChar ldots
15211
15212 \backslash
15213 end{
15214 \emph on
15215 LatexName
15216 \emph default
15217 }
15218 \end_layout
15219
15220 \end_inset
15221
15222 .
15223  
15224 \end_layout
15225
15226 \begin_layout Description
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 Item_Environment
15232 \end_layout
15233
15234 \end_inset
15235
15236  is the same as 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 Environment
15242 \end_layout
15243
15244 \end_inset
15245
15246 , except that an 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251
15252 \backslash
15253 item
15254 \end_layout
15255
15256 \end_inset
15257
15258  is generated for each paragraph of this environment.
15259  
15260 \end_layout
15261
15262 \begin_layout Description
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 List_Environment
15268 \end_layout
15269
15270 \end_inset
15271
15272  is the same as 
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 Item_Environment
15278 \end_layout
15279
15280 \end_inset
15281
15282 , except that
15283 \begin_inset Newline newline
15284 \end_inset
15285
15286
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 LabelWidthString
15292 \end_layout
15293
15294 \end_inset
15295
15296  is passed as an argument to the environment.
15297 \begin_inset Newline newline
15298 \end_inset
15299
15300
15301 \begin_inset Flex Code
15302 status collapsed
15303
15304 \begin_layout Plain Layout
15305 LabelWidthString
15306 \end_layout
15307
15308 \end_inset
15309
15310  can be defined in the 
15311 \begin_inset Flex Noun
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 Edit\SpecialChar menuseparator
15316 Paragraph
15317 \begin_inset space ~
15318 \end_inset
15319
15320 settings
15321 \end_layout
15322
15323 \end_inset
15324
15325  dialog.
15326 \end_layout
15327
15328 \begin_layout Description
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Bib_Environment
15334 \end_layout
15335
15336 \end_inset
15337
15338  is like 
15339 \begin_inset Flex Code
15340 status collapsed
15341
15342 \begin_layout Plain Layout
15343 Environment
15344 \end_layout
15345
15346 \end_inset
15347
15348  but adds the necessary mandatory argument (the longest label) to the begin
15349  statement of the bibliography environment:
15350 \begin_inset Newline newline
15351 \end_inset
15352
15353
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358
15359 \backslash
15360 begin{thebibliography}{99}
15361 \end_layout
15362
15363 \end_inset
15364
15365 .
15366  It is therefore only useful for bibliography environments.
15367  The default longest label 
15368 \begin_inset Quotes eld
15369 \end_inset
15370
15371 99
15372 \begin_inset Quotes erd
15373 \end_inset
15374
15375  can be changed by the user in the paragraph settings of a bibliography
15376  item.
15377 \end_layout
15378
15379 \begin_layout Standard
15380 Putting the last few things together, the \SpecialChar LaTeX
15381  output will be either: 
15382 \end_layout
15383
15384 \begin_layout LyX-Code
15385
15386 \backslash
15387 LatexName[LatexParam]{\SpecialChar ldots
15388 }
15389 \end_layout
15390
15391 \begin_layout Standard
15392 or: 
15393 \end_layout
15394
15395 \begin_layout LyX-Code
15396
15397 \backslash
15398 begin{LatexName}[LatexParam] \SpecialChar ldots
15399  
15400 \backslash
15401 end{LatexName}.
15402 \end_layout
15403
15404 \begin_layout Standard
15405 depending upon the \SpecialChar LaTeX
15406  type.
15407 \end_layout
15408
15409 \end_deeper
15410 \begin_layout Description
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 LeftDelim
15416 \end_layout
15417
15418 \end_inset
15419
15420  [
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 string
15426 \end_layout
15427
15428 \end_inset
15429
15430 ] A string that is put at the beginning of the style content.
15431  A line break in the output can be indicated by 
15432 \begin_inset Flex Code
15433 status collapsed
15434
15435 \begin_layout Plain Layout
15436 <br/>
15437 \end_layout
15438
15439 \end_inset
15440
15441 .
15442 \end_layout
15443
15444 \begin_layout Description
15445 \begin_inset Flex Code
15446 status collapsed
15447
15448 \begin_layout Plain Layout
15449 LeftMargin
15450 \end_layout
15451
15452 \end_inset
15453
15454  [
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 string=""
15460 \end_layout
15461
15462 \end_inset
15463
15464 ] If you put styles into environments, the different 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 LeftMargin
15470 \end_layout
15471
15472 \end_inset
15473
15474  are not simply added, but added with a factor 
15475 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15476 \end_inset
15477
15478 .
15479  Note that this parameter is also used when 
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 Margin
15485 \end_layout
15486
15487 \end_inset
15488
15489  is defined as 
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 Manual
15495 \end_layout
15496
15497 \end_inset
15498
15499  or 
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504 Dynamic
15505 \end_layout
15506
15507 \end_inset
15508
15509 .
15510  Then it is added to the manual or dynamic margin.
15511 \begin_inset Newline newline
15512 \end_inset
15513
15514 For example 
15515 \begin_inset Quotes eld
15516 \end_inset
15517
15518
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 MM
15524 \end_layout
15525
15526 \end_inset
15527
15528
15529 \begin_inset Quotes erd
15530 \end_inset
15531
15532  means that the paragraph is indented with the width of 
15533 \begin_inset Quotes eld
15534 \end_inset
15535
15536
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 MM
15542 \end_layout
15543
15544 \end_inset
15545
15546
15547 \begin_inset Quotes erd
15548 \end_inset
15549
15550  in the normal font.
15551  You can get a negative width by prefixing the string with 
15552 \begin_inset Quotes eld
15553 \end_inset
15554
15555
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 -
15561 \end_layout
15562
15563 \end_inset
15564
15565
15566 \begin_inset Quotes erd
15567 \end_inset
15568
15569 .
15570  This way was chosen so that the look is the same with each used screen
15571  font.
15572 \end_layout
15573
15574 \begin_layout Description
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 Margin
15580 \end_layout
15581
15582 \end_inset
15583
15584  [
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \emph on
15591 Static
15592 \emph default
15593 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15594 \end_layout
15595
15596 \end_inset
15597
15598
15599 \begin_inset Newline newline
15600 \end_inset
15601
15602 The kind of margin that the style has on the left side.
15603 \end_layout
15604
15605 \begin_deeper
15606 \begin_layout Description
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 Static
15612 \end_layout
15613
15614 \end_inset
15615
15616  just means a fixed margin.
15617 \end_layout
15618
15619 \begin_layout Description
15620 \begin_inset Flex Code
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 Manual
15625 \end_layout
15626
15627 \end_inset
15628
15629  means that the left margin depends on the string entered in the 
15630 \begin_inset Flex Noun
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 Edit\SpecialChar menuseparator
15635 Paragraph
15636 \begin_inset space ~
15637 \end_inset
15638
15639 Settings
15640 \end_layout
15641
15642 \end_inset
15643
15644  dialog.
15645  This is used to typeset nice lists without tabulators.
15646 \end_layout
15647
15648 \begin_layout Description
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653 Dynamic
15654 \end_layout
15655
15656 \end_inset
15657
15658  means that the margin depends on the size of the label.
15659  This is used for automatic enumerated headlines.
15660  It is obvious that the headline 
15661 \begin_inset Quotes eld
15662 \end_inset
15663
15664 5.4.3.2.1 Very long headline
15665 \begin_inset Quotes erd
15666 \end_inset
15667
15668  must have a wider left margin (as wide as 
15669 \begin_inset Quotes eld
15670 \end_inset
15671
15672 5.4.3.2.1
15673 \begin_inset Quotes erd
15674 \end_inset
15675
15676  plus the space) than 
15677 \begin_inset Quotes eld
15678 \end_inset
15679
15680 3.2 Very long headline
15681 \begin_inset Quotes erd
15682 \end_inset
15683
15684 , even if standard 
15685 \begin_inset Quotes eld
15686 \end_inset
15687
15688 word processors
15689 \begin_inset Quotes erd
15690 \end_inset
15691
15692  are not able to do this.
15693 \end_layout
15694
15695 \begin_layout Description
15696 \begin_inset Flex Code
15697 status collapsed
15698
15699 \begin_layout Plain Layout
15700 First_Dynamic
15701 \end_layout
15702
15703 \end_inset
15704
15705  is similar, but only the very first row of the paragraph is dynamic, while
15706  the others are static; this is used, for example, for descriptions.
15707 \end_layout
15708
15709 \begin_layout Description
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714 Right_Address_Box
15715 \end_layout
15716
15717 \end_inset
15718
15719  means the margin is chosen in a way that the longest row of this paragraph
15720  fits to the right margin.
15721  This is used to typeset an address on the right edge of the page.
15722 \end_layout
15723
15724 \end_deeper
15725 \begin_layout Description
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 NeedProtect
15731 \end_layout
15732
15733 \end_inset
15734
15735  [
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740
15741 \emph on
15742 0
15743 \end_layout
15744
15745 \end_inset
15746
15747 ,
15748 \begin_inset space \thinspace{}
15749 \end_inset
15750
15751
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 1
15757 \end_layout
15758
15759 \end_inset
15760
15761 ] Whether fragile commands in this style should be 
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766
15767 \backslash
15768 protect
15769 \end_layout
15770
15771 \end_inset
15772
15773 'ed.
15774  (Note: This is 
15775 \emph on
15776 not
15777 \emph default
15778  whether this command should itself be protected.)
15779 \change_inserted -712698321 1523696949
15780
15781 \end_layout
15782
15783 \begin_layout Description
15784
15785 \change_inserted -712698321 1552395557
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790
15791 \change_inserted -712698321 1523696950
15792 NeedCProtect
15793 \end_layout
15794
15795 \end_inset
15796
15797  [
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802
15803 \change_inserted -712698321 1523696950
15804
15805 \emph on
15806 0
15807 \end_layout
15808
15809 \end_inset
15810
15811 ,
15812 \begin_inset space \thinspace{}
15813 \end_inset
15814
15815
15816 \begin_inset Flex Code
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820
15821 \change_inserted -712698321 1523696950
15822 1
15823 \end_layout
15824
15825 \end_inset
15826
15827 ] This causes macros that contain this layout to be protected with 
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832
15833 \change_inserted -712698321 1523696950
15834
15835 \backslash
15836 cprotect
15837 \end_layout
15838
15839 \end_inset
15840
15841  (cf.
15842  package 
15843 \family sans
15844 cprotect
15845 \family default
15846 ) if necessary and thus allows (some) verbatim stuff in macros.
15847 \end_layout
15848
15849 \begin_layout Description
15850
15851 \change_inserted -712698321 1552395844
15852 \begin_inset Flex Code
15853 status collapsed
15854
15855 \begin_layout Plain Layout
15856
15857 \change_inserted -712698321 1552395561
15858 NeedMBoxProtect
15859 \end_layout
15860
15861 \end_inset
15862
15863  [
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868
15869 \change_inserted -712698321 1552395557
15870
15871 \emph on
15872 0
15873 \end_layout
15874
15875 \end_inset
15876
15877 ,
15878 \begin_inset space \thinspace{}
15879 \end_inset
15880
15881
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886
15887 \change_inserted -712698321 1552395557
15888 1
15889 \end_layout
15890
15891 \end_inset
15892
15893 ] Whether specific commands in this style (such as 
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898
15899 \change_inserted -712698321 1552395655
15900
15901 \backslash
15902 cite
15903 \change_unchanged
15904
15905 \end_layout
15906
15907 \end_inset
15908
15909  and 
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914
15915 \change_inserted -712698321 1552395661
15916
15917 \backslash
15918 ref
15919 \change_unchanged
15920
15921 \end_layout
15922
15923 \end_inset
15924
15925 ) should be protected in an 
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930
15931 \change_inserted -712698321 1552395631
15932
15933 \backslash
15934 mbox
15935 \change_unchanged
15936
15937 \end_layout
15938
15939 \end_inset
15940
15941 .
15942  This is particularly needed for styles that draw on 
15943 \family sans
15944 ulem
15945 \family default
15946  or 
15947 \family sans
15948 soul
15949 \family default
15950  commands which parse their content in complex ways.
15951 \change_unchanged
15952
15953 \end_layout
15954
15955 \begin_layout Description
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 Newline
15961 \end_layout
15962
15963 \end_inset
15964
15965  [
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 0
15971 \end_layout
15972
15973 \end_inset
15974
15975 ,
15976 \begin_inset space \thinspace{}
15977 \end_inset
15978
15979
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984
15985 \emph on
15986 1
15987 \end_layout
15988
15989 \end_inset
15990
15991 ] Whether newlines are translated into \SpecialChar LaTeX
15992  newlines (
15993 \begin_inset Flex Code
15994 status collapsed
15995
15996 \begin_layout Plain Layout
15997
15998 \backslash
15999
16000 \backslash
16001
16002 \end_layout
16003
16004 \end_inset
16005
16006 ) or not.
16007  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16008  editing
16009  inside \SpecialChar LyX
16010 .
16011 \end_layout
16012
16013 \begin_layout Description
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 NextNoIndent
16019 \end_layout
16020
16021 \end_inset
16022
16023  [
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028
16029 \emph on
16030 0
16031 \end_layout
16032
16033 \end_inset
16034
16035 ,
16036 \begin_inset space \thinspace{}
16037 \end_inset
16038
16039
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 1
16045 \end_layout
16046
16047 \end_inset
16048
16049 ] If set to true, and if 
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 DefaultStyle
16055 \end_layout
16056
16057 \end_inset
16058
16059  (usually 
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 Standard
16065 \end_layout
16066
16067 \end_inset
16068
16069 ) paragraphs are being indented, then the indentation of such a paragraph
16070  following one of this type will be suppressed.
16071  (So this will not affect the display of non-default paragraphs.)
16072 \end_layout
16073
16074 \begin_layout Description
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 ObsoletedBy
16080 \end_layout
16081
16082 \end_inset
16083
16084  [
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 <name>
16090 \end_layout
16091
16092 \end_inset
16093
16094 ] Name of a style that has replaced this style.
16095  This is used to rename a style, while keeping backward compatibility.
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 ParagraphGroup
16104 \end_layout
16105
16106 \end_inset
16107
16108  [
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 0
16114 \end_layout
16115
16116 \end_inset
16117
16118 ,
16119 \begin_inset space \thinspace{}
16120 \end_inset
16121
16122
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 1
16128 \end_layout
16129
16130 \end_inset
16131
16132 ] Determines whether consecutive paragraphs of the same type are treated
16133  as belonging together.
16134  This has the effect that the 
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 GuiLabel
16140 \end_layout
16141
16142 \end_inset
16143
16144  is only printed once before such a group.
16145  By default, this is true for 
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 LaTeXType
16151 \end_layout
16152
16153 \end_inset
16154
16155  
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 Environment
16161 \end_layout
16162
16163 \end_inset
16164
16165  and 
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Bib_Environment
16171 \end_layout
16172
16173 \end_inset
16174
16175  and false for all other types.
16176 \end_layout
16177
16178 \begin_layout Description
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 ParbreakIsNewline
16184 \end_layout
16185
16186 \end_inset
16187
16188  [
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193
16194 \emph on
16195 0
16196 \end_layout
16197
16198 \end_inset
16199
16200 ,
16201 \begin_inset space \thinspace{}
16202 \end_inset
16203
16204
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 1
16210 \end_layout
16211
16212 \end_inset
16213
16214 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16215  output,
16216  but only by a line break; together with 
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 PassThru 1
16222 \end_layout
16223
16224 \end_inset
16225
16226 , this allows to emulate a plain text editor (like the ERT inset).
16227 \end_layout
16228
16229 \begin_layout Description
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 ParIndent
16235 \end_layout
16236
16237 \end_inset
16238
16239  [
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 string=""
16245 \end_layout
16246
16247 \end_inset
16248
16249 ] The indent of the very first line of a paragraph.
16250  The
16251 \begin_inset Newline newline
16252 \end_inset
16253
16254
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 Parindent
16260 \end_layout
16261
16262 \end_inset
16263
16264  will be fixed for a certain style.
16265  The exception is the default style, since the indentation for these paragraphs
16266  can be prohibited with 
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 NextNoIndent
16272 \end_layout
16273
16274 \end_inset
16275
16276 .
16277  Also, 
16278 \begin_inset Flex Code
16279 status collapsed
16280
16281 \begin_layout Plain Layout
16282 Standard
16283 \end_layout
16284
16285 \end_inset
16286
16287  style paragraphs inside environments use the 
16288 \begin_inset Flex Code
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 Parindent
16293 \end_layout
16294
16295 \end_inset
16296
16297  of the environment, not their native one.
16298  For example, 
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303 Standard
16304 \end_layout
16305
16306 \end_inset
16307
16308  paragraphs inside an enumeration are not indented.
16309 \end_layout
16310
16311 \begin_layout Description
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316 ParSep
16317 \end_layout
16318
16319 \end_inset
16320
16321  [
16322 \begin_inset Flex Code
16323 status collapsed
16324
16325 \begin_layout Plain Layout
16326 float=0
16327 \end_layout
16328
16329 \end_inset
16330
16331 ] The vertical space between two paragraphs of this style.
16332 \end_layout
16333
16334 \begin_layout Description
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 Parskip
16340 \end_layout
16341
16342 \end_inset
16343
16344  [
16345 \begin_inset Flex Code
16346 status collapsed
16347
16348 \begin_layout Plain Layout
16349 float=0
16350 \end_layout
16351
16352 \end_inset
16353
16354 ] \SpecialChar LyX
16355  allows the user to choose either 
16356 \begin_inset Quotes eld
16357 \end_inset
16358
16359 indent
16360 \begin_inset Quotes erd
16361 \end_inset
16362
16363  or 
16364 \begin_inset Quotes eld
16365 \end_inset
16366
16367 skip
16368 \begin_inset Quotes erd
16369 \end_inset
16370
16371  to separate paragraphs.
16372  When 
16373 \begin_inset Quotes eld
16374 \end_inset
16375
16376 indent
16377 \begin_inset Quotes erd
16378 \end_inset
16379
16380  is chosen, 
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 Parskip
16386 \end_layout
16387
16388 \end_inset
16389
16390  is ignored.
16391  When 
16392 \begin_inset Quotes eld
16393 \end_inset
16394
16395 skip
16396 \begin_inset Quotes erd
16397 \end_inset
16398
16399  is chosen, 
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 ParIndent
16405 \end_layout
16406
16407 \end_inset
16408
16409  is ignored and all paragraphs are separated by the 
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414 Parskip
16415 \end_layout
16416
16417 \end_inset
16418
16419  argument.
16420  The vertical space is calculated with 
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 Parskip
16426 \begin_inset space ~
16427 \end_inset
16428
16429 * DefaultHeight
16430 \end_layout
16431
16432 \end_inset
16433
16434  where 
16435 \begin_inset Flex Code
16436 status collapsed
16437
16438 \begin_layout Plain Layout
16439 DefaultHeight
16440 \end_layout
16441
16442 \end_inset
16443
16444  is the height of a row with the normal font.
16445  This way, the look stays the same with different screen fonts.
16446 \end_layout
16447
16448 \begin_layout Description
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 PassThru
16454 \end_layout
16455
16456 \end_inset
16457
16458  [
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463
16464 \emph on
16465 0
16466 \end_layout
16467
16468 \end_inset
16469
16470 ,
16471 \begin_inset space \thinspace{}
16472 \end_inset
16473
16474
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 1
16480 \end_layout
16481
16482 \end_inset
16483
16484 ] Whether the contents of this paragraph should be output in raw form, meaning
16485  without special translations that \SpecialChar LaTeX
16486  would require.
16487 \end_layout
16488
16489 \begin_layout Description
16490 \begin_inset Flex Code
16491 status collapsed
16492
16493 \begin_layout Plain Layout
16494 PassThruChars
16495 \end_layout
16496
16497 \end_inset
16498
16499  [
16500 \begin_inset Flex Code
16501 status collapsed
16502
16503 \begin_layout Plain Layout
16504 string
16505 \end_layout
16506
16507 \end_inset
16508
16509 ]
16510 \family typewriter
16511  
16512 \family default
16513 Defines individual characters that should be output in raw form, meaning
16514  without special translations that \SpecialChar LaTeX
16515  would require.
16516 \end_layout
16517
16518 \begin_layout Description
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 Preamble
16524 \end_layout
16525
16526 \end_inset
16527
16528  Information to be included in the \SpecialChar LaTeX
16529  preamble when this style is used.
16530  Used to define macros, load packages, etc., required by this particular
16531  style.
16532  Must end with 
16533 \begin_inset Quotes eld
16534 \end_inset
16535
16536
16537 \begin_inset Flex Code
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 EndPreamble
16542 \end_layout
16543
16544 \end_inset
16545
16546
16547 \begin_inset Quotes erd
16548 \end_inset
16549
16550 .
16551 \end_layout
16552
16553 \begin_layout Description
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 RefPrefix
16559 \end_layout
16560
16561 \end_inset
16562
16563  [
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 string
16569 \end_layout
16570
16571 \end_inset
16572
16573 ] The prefix to use when creating labels referring to paragraphs of this
16574  type.
16575  This allows the use of formatted references.
16576 \end_layout
16577
16578 \begin_layout Description
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 Requires 
16584 \end_layout
16585
16586 \end_inset
16587
16588  [
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 string
16594 \end_layout
16595
16596 \end_inset
16597
16598 ] Whether the style requires the feature 
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 string
16604 \end_layout
16605
16606 \end_inset
16607
16608  (see 
16609 \begin_inset CommandInset ref
16610 LatexCommand ref
16611 reference "chap:List-of-functions"
16612
16613 \end_inset
16614
16615  for the list of features).
16616  If you require a package with specific options, you can additionally use
16617  
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 PackageOptions
16623 \end_layout
16624
16625 \end_inset
16626
16627  as a general text class parameter (see 
16628 \begin_inset CommandInset ref
16629 LatexCommand ref
16630 reference "subsec:General-text-class"
16631
16632 \end_inset
16633
16634 ).
16635 \end_layout
16636
16637 \begin_layout Description
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 ResetArgs
16643 \end_layout
16644
16645 \end_inset
16646
16647  [
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652
16653 \emph on
16654 0
16655 \end_layout
16656
16657 \end_inset
16658
16659 ,
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 1
16665 \end_layout
16666
16667 \end_inset
16668
16669 ] Resets the \SpecialChar LaTeX
16670  arguments of this style (as defined via the 
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 Argument
16676 \end_layout
16677
16678 \end_inset
16679
16680  tag).
16681  This is useful if you have copied a style via 
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686 CopyStyle
16687 \end_layout
16688
16689 \end_inset
16690
16691 , but you do not want to inherit its (required and optional) arguments.
16692 \end_layout
16693
16694 \begin_layout Description
16695 \begin_inset Flex Code
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699 ResumeCounter
16700 \end_layout
16701
16702 \end_inset
16703
16704  [
16705 \begin_inset Flex Code
16706 status collapsed
16707
16708 \begin_layout Plain Layout
16709
16710 \emph on
16711 0
16712 \end_layout
16713
16714 \end_inset
16715
16716 ,
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721 1
16722 \end_layout
16723
16724 \end_inset
16725
16726 ] Resumes a counter that is usually reset at each new sequence of layouts.
16727  This is currently only useful when 
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 LabelType
16733 \end_layout
16734
16735 \end_inset
16736
16737  is 
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 Enumerate
16743 \end_layout
16744
16745 \end_inset
16746
16747 .
16748 \end_layout
16749
16750 \begin_layout Description
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 RightDelim
16756 \end_layout
16757
16758 \end_inset
16759
16760  [
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 string
16766 \end_layout
16767
16768 \end_inset
16769
16770 ] A string that is put at the end of the layout content.
16771  A line break in the output can be indicated by 
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 <br/>
16777 \end_layout
16778
16779 \end_inset
16780
16781 .
16782 \end_layout
16783
16784 \begin_layout Description
16785 \begin_inset Flex Code
16786 status collapsed
16787
16788 \begin_layout Plain Layout
16789 RightMargin
16790 \end_layout
16791
16792 \end_inset
16793
16794  [
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 string=""
16800 \end_layout
16801
16802 \end_inset
16803
16804 ] Similar to 
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809 LeftMargin
16810 \end_layout
16811
16812 \end_inset
16813
16814 .
16815 \end_layout
16816
16817 \begin_layout Description
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 Spacing
16823 \end_layout
16824
16825 \end_inset
16826
16827  [
16828 \begin_inset Flex Code
16829 status collapsed
16830
16831 \begin_layout Plain Layout
16832
16833 \emph on
16834 single
16835 \end_layout
16836
16837 \end_inset
16838
16839
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 onehalf
16845 \end_layout
16846
16847 \end_inset
16848
16849
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 double
16855 \end_layout
16856
16857 \end_inset
16858
16859
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 other
16865 \begin_inset space ~
16866 \end_inset
16867
16868 <value>
16869 \end_layout
16870
16871 \end_inset
16872
16873 ] This defines what the default spacing should be in the style.
16874  The arguments 
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879 single
16880 \end_layout
16881
16882 \end_inset
16883
16884
16885 \begin_inset Flex Code
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 onehalf
16890 \end_layout
16891
16892 \end_inset
16893
16894  and 
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 double
16900 \end_layout
16901
16902 \end_inset
16903
16904  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16905  If you specify the argument 
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 other
16911 \end_layout
16912
16913 \end_inset
16914
16915 , then you must also provide a value argument which will be the actual multiplie
16916 r value.
16917  Note that, contrary to other parameters, 
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 Spacing
16923 \end_layout
16924
16925 \end_inset
16926
16927  implies the generation of specific \SpecialChar LaTeX
16928  code, using the \SpecialChar LaTeX
16929  package 
16930 \family roman
16931
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 setspace
16937 \end_layout
16938
16939 \end_inset
16940
16941 .
16942 \end_layout
16943
16944 \begin_layout Description
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 Spellcheck
16950 \end_layout
16951
16952 \end_inset
16953
16954  [
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 0
16960 \end_layout
16961
16962 \end_inset
16963
16964 ,
16965 \begin_inset space \thinspace{}
16966 \end_inset
16967
16968
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973
16974 \emph on
16975 1
16976 \end_layout
16977
16978 \end_inset
16979
16980 ] Allow spell-checking paragraphs of this style.
16981  Default is true.
16982 \end_layout
16983
16984 \begin_layout Description
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 StepMasterCounter
16990 \end_layout
16991
16992 \end_inset
16993
16994  [
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999
17000 \emph on
17001 0
17002 \end_layout
17003
17004 \end_inset
17005
17006 ,
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 1
17012 \end_layout
17013
17014 \end_inset
17015
17016 ] Steps the master counter of a given counter at the beginning of a new
17017  sequence of layouts.
17018  This is currently only useful when 
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 LabelType
17024 \end_layout
17025
17026 \end_inset
17027
17028  is 
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 Enumerate
17034 \end_layout
17035
17036 \end_inset
17037
17038 .
17039 \end_layout
17040
17041 \begin_layout Description
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 TextFont
17047 \end_layout
17048
17049 \end_inset
17050
17051  The font used for the text body .
17052  See 
17053 \begin_inset CommandInset ref
17054 LatexCommand ref
17055 reference "subsec:Font-description"
17056
17057 \end_inset
17058
17059 .
17060 \end_layout
17061
17062 \begin_layout Description
17063 \begin_inset Flex Code
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 TocLevel
17068 \end_layout
17069
17070 \end_inset
17071
17072
17073 \series medium
17074  [
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079
17080 \series medium
17081 int=3
17082 \end_layout
17083
17084 \end_inset
17085
17086 ]
17087 \series default
17088  The level of the style in the table of contents.
17089  This is used for automatic numbering of section headings.
17090 \end_layout
17091
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 ToggleIndent
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \emph on
17104
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109
17110 \emph on
17111 default
17112 \end_layout
17113
17114 \end_inset
17115
17116
17117 \emph default
17118
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 always
17124 \end_layout
17125
17126 \end_inset
17127
17128
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 never
17134 \end_layout
17135
17136 \end_inset
17137
17138 ] This tag determines whether the first line indentation of this paragraph
17139  can be toggled via the Paragraph settings dialog.
17140  If 
17141 \emph on
17142
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147
17148 \emph off
17149 default
17150 \end_layout
17151
17152 \end_inset
17153
17154
17155 \emph default
17156  is set, indentation can be toggled if the document settings use 
17157 \begin_inset Quotes eld
17158 \end_inset
17159
17160 indent
17161 \begin_inset Quotes erd
17162 \end_inset
17163
17164  paragraph style, with 
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 always
17170 \end_layout
17171
17172 \end_inset
17173
17174 , indentation can always be toggled, notwithstanding the document settings,
17175  with 
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 never
17181 \end_layout
17182
17183 \end_inset
17184
17185 , indentation can never be toggled.
17186 \end_layout
17187
17188 \begin_layout Description
17189 \begin_inset Flex Code
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193 TopSep
17194 \end_layout
17195
17196 \end_inset
17197
17198  [
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 float=0
17204 \end_layout
17205
17206 \end_inset
17207
17208 ] The vertical space with which the very first of a chain of paragraphs
17209  with this style is separated from the previous paragraph.
17210  If the previous paragraph has another style, the separations are not simply
17211  added, but the maximum is taken.
17212 \end_layout
17213
17214 \begin_layout Subsection
17215 \begin_inset CommandInset label
17216 LatexCommand label
17217 name "subsec:I18n"
17218
17219 \end_inset
17220
17221 Internationalization of Paragraph Styles
17222 \end_layout
17223
17224 \begin_layout Standard
17225 \SpecialChar LyX
17226  has long supported internationalization of layout information, but, until
17227  version 2.0, this applied only to the user interface and not to, say, PDF
17228  output.
17229  Thus, French authors were forced to resort to ugly hacks if they wanted
17230  `
17231 \lang french
17232 Théorème
17233 \lang english
17234  1' instead of `Theorem 1'.
17235  Thanks to Georg Baum, that is no longer the case.
17236 \end_layout
17237
17238 \begin_layout Standard
17239 If a 
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Style
17245 \end_layout
17246
17247 \end_inset
17248
17249  defines text that is to appear in the typeset document, it may use 
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 LangPreamble
17255 \end_layout
17256
17257 \end_inset
17258
17259  and 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 BabelPreamble
17265 \end_layout
17266
17267 \end_inset
17268
17269  to support non-English and even multi-language documents correctly.
17270  The following excerpt (from the 
17271 \begin_inset Flex Code
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 theorems-ams.inc
17276 \end_layout
17277
17278 \end_inset
17279
17280  file) shows how this works:
17281 \end_layout
17282
17283 \begin_layout LyX-Code
17284 Preamble
17285 \end_layout
17286
17287 \begin_deeper
17288 \begin_layout LyX-Code
17289   
17290 \backslash
17291 theoremstyle{remark}
17292 \end_layout
17293
17294 \begin_layout LyX-Code
17295   
17296 \backslash
17297 newtheorem{claim}[thm]{
17298 \backslash
17299 protect
17300 \backslash
17301 claimname}
17302 \end_layout
17303
17304 \begin_layout LyX-Code
17305 EndPreamble
17306 \end_layout
17307
17308 \begin_layout LyX-Code
17309 LangPreamble
17310 \end_layout
17311
17312 \begin_layout LyX-Code
17313   
17314 \backslash
17315 providecommand{
17316 \backslash
17317 claimname}{_(Claim)}
17318 \end_layout
17319
17320 \begin_layout LyX-Code
17321 EndLangPreamble
17322 \end_layout
17323
17324 \begin_layout LyX-Code
17325 BabelPreamble
17326 \end_layout
17327
17328 \begin_layout LyX-Code
17329     
17330 \backslash
17331 addto
17332 \backslash
17333 captions$$lang{
17334 \backslash
17335 renewcommand{
17336 \backslash
17337 claimname}{_(Claim)}}
17338 \end_layout
17339
17340 \begin_layout LyX-Code
17341 EndBabelPreamble
17342 \end_layout
17343
17344 \end_deeper
17345 \begin_layout Standard
17346 In principle, any legal \SpecialChar LaTeX
17347  may appear in the 
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 LangPreamble
17353 \end_layout
17354
17355 \end_inset
17356
17357  and 
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 BabelPreamble
17363 \end_layout
17364
17365 \end_inset
17366
17367  tags, but in practice they will typically look as they do here.
17368  The key to correct translation of the typeset text is the definition of
17369  the \SpecialChar LaTeX
17370  command 
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375
17376 \backslash
17377 claimname
17378 \end_layout
17379
17380 \end_inset
17381
17382  and its use in 
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387
17388 \backslash
17389 newtheorem
17390 \end_layout
17391
17392 \end_inset
17393
17394 .
17395  
17396 \end_layout
17397
17398 \begin_layout Standard
17399 The 
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 LangPreamble
17405 \end_layout
17406
17407 \end_inset
17408
17409  tag provides for internationalization based upon the overall language of
17410  the document.
17411  The contents of the tag will be included in the preamble, just as with
17412  the 
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 Preamble
17418 \end_layout
17419
17420 \end_inset
17421
17422  tag.
17423  What makes it special is the use of the 
17424 \begin_inset Quotes eld
17425 \end_inset
17426
17427 function
17428 \begin_inset Quotes erd
17429 \end_inset
17430
17431  
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 _()
17437 \end_layout
17438
17439 \end_inset
17440
17441 , which will be replaced, when \SpecialChar LyX
17442  produces \SpecialChar LaTeX
17443  output, with the translation of
17444  its argument into the document language.
17445 \end_layout
17446
17447 \begin_layout Standard
17448 The 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 BabelPreamble
17454 \end_layout
17455
17456 \end_inset
17457
17458  tag is more complex, since it is meant to provide support for multi-language
17459  documents and so offers an interface to the 
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 babel
17465 \end_layout
17466
17467 \end_inset
17468
17469  package.
17470  Its contents will be added to the preamble once for each language that
17471  appears in the document.
17472  In this case, the argument to 
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 _()
17478 \end_layout
17479
17480 \end_inset
17481
17482  will be replaced with its translation into the language in question; the
17483  expression 
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488 $$lang
17489 \end_layout
17490
17491 \end_inset
17492
17493  is replaced by the language name (as used by the babel package).
17494 \end_layout
17495
17496 \begin_layout Standard
17497 A German document that also included a French section would thus have the
17498  following in the preamble:
17499 \end_layout
17500
17501 \begin_layout LyX-Code
17502
17503 \backslash
17504 addto
17505 \backslash
17506 captionsfrench{
17507 \backslash
17508 renewcommand{
17509 \backslash
17510 claimname}{Affirmation}}
17511 \begin_inset Newline newline
17512 \end_inset
17513
17514
17515 \backslash
17516 addto
17517 \backslash
17518 captionsngerman{
17519 \backslash
17520 renewcommand{
17521 \backslash
17522 claimname}{Behauptung}}
17523 \begin_inset Newline newline
17524 \end_inset
17525
17526
17527 \backslash
17528 providecommand{
17529 \backslash
17530 claimname}{Behauptung}
17531 \end_layout
17532
17533 \begin_layout Standard
17534 \SpecialChar LaTeX
17535  and 
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 babel
17541 \end_layout
17542
17543 \end_inset
17544
17545  will then conspire to produce the correct text in the output.
17546 \end_layout
17547
17548 \begin_layout Standard
17549 One important point to note here is that the translations are provided by
17550  \SpecialChar LyX
17551  itself, through the file 
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 layouttranslations
17557 \end_layout
17558
17559 \end_inset
17560
17561 .
17562  This means, in effect, that 
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 LangPreamble
17568 \end_layout
17569
17570 \end_inset
17571
17572  and 
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 BabelPreamble
17578 \end_layout
17579
17580 \end_inset
17581
17582  are really only of use in layout files that are provided with \SpecialChar LyX
17583 , since text
17584  entered in user-created layout files will not be seen by \SpecialChar LyX
17585 's internationalizatio
17586 n routines unless the 
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 layouttranslations
17592 \end_layout
17593
17594 \end_inset
17595
17596  file is modified accordingly.
17597  That said, however, any layout created with the intention that it will
17598  be included with \SpecialChar LyX
17599  should use these tags where appropriate.
17600  Please note that the paragraph style translations provided by \SpecialChar LyX
17601  will never
17602  change with a minor update (e.
17603 \begin_inset space \thinspace{}
17604 \end_inset
17605
17606 g.
17607 \begin_inset space \space{}
17608 \end_inset
17609
17610 from version 2.1.x to 2.1.y).
17611  It is however quite likely that a major update (e.
17612 \begin_inset space \thinspace{}
17613 \end_inset
17614
17615 g.
17616 \begin_inset space \space{}
17617 \end_inset
17618
17619 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17620 \end_layout
17621
17622 \begin_layout Subsection
17623 Floats
17624 \begin_inset CommandInset label
17625 LatexCommand label
17626 name "subsec:Floats"
17627
17628 \end_inset
17629
17630
17631 \end_layout
17632
17633 \begin_layout Standard
17634 It is necessary to define the floats (
17635 \begin_inset Flex Noun
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 figure
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Noun
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 table
17650 \end_layout
17651
17652 \end_inset
17653
17654 , \SpecialChar ldots
17655 ) in the text class itself.
17656  Standard floats are included in the file 
17657 \begin_inset Flex Code
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 stdfloats.inc
17662 \end_layout
17663
17664 \end_inset
17665
17666 , so you may have to do no more than add
17667 \end_layout
17668
17669 \begin_layout LyX-Code
17670 Input stdfloats.inc
17671 \end_layout
17672
17673 \begin_layout Standard
17674 to your layout file.
17675  If you want to implement a text class that proposes some other float types
17676  (like the AGU class bundled with \SpecialChar LyX
17677 ), the information below will hopefully
17678  help you:
17679 \end_layout
17680
17681 \begin_layout Description
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 AllowedPlacement
17687 \end_layout
17688
17689 \end_inset
17690
17691  [
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 string
17697 \end_layout
17698
17699 \end_inset
17700
17701 =!htbpH] Allowed placement options for this float type.
17702  The value is a string of placement characters.
17703  Possible characters include: 
17704 \emph on
17705 h
17706 \emph default
17707  (
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711 here if possible
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715 ), 
17716 \emph on
17717 t
17718 \emph default
17719  (
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723 top of page
17724 \begin_inset Quotes erd
17725 \end_inset
17726
17727 ), 
17728 \emph on
17729 b
17730 \emph default
17731  (
17732 \begin_inset Quotes eld
17733 \end_inset
17734
17735 bottom of page
17736 \begin_inset Quotes erd
17737 \end_inset
17738
17739 ), 
17740 \emph on
17741 p
17742 \emph default
17743  (
17744 \begin_inset Quotes eld
17745 \end_inset
17746
17747 page of floats
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751 ), 
17752 \emph on
17753 H
17754 \emph default
17755  (
17756 \begin_inset Quotes eld
17757 \end_inset
17758
17759 here definitely
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763 ) and 
17764 \emph on
17765 !
17766 \emph default
17767  (
17768 \begin_inset Quotes eld
17769 \end_inset
17770
17771 ignore LaTeX rules
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775 ).
17776  The order of the characters in the string does not matter.
17777  If no placement options are allowed, use the string 
17778 \emph on
17779 none
17780 \emph default
17781 .
17782 \end_layout
17783
17784 \begin_layout Description
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 AllowsSideways
17790 \end_layout
17791
17792 \end_inset
17793
17794  [
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799
17800 \emph off
17801 0
17802 \end_layout
17803
17804 \end_inset
17805
17806 ,
17807 \begin_inset space \thinspace{}
17808 \end_inset
17809
17810
17811 \emph on
17812
17813 \begin_inset Flex Code
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817
17818 \emph on
17819 1
17820 \end_layout
17821
17822 \end_inset
17823
17824
17825 \emph default
17826 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17827 -package 
17828 \family typewriter
17829 rotfloat
17830 \family default
17831  (sidewaysfloat).
17832  Set to 
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 0
17838 \end_layout
17839
17840 \end_inset
17841
17842  if the float does not support this feature.
17843 \end_layout
17844
17845 \begin_layout Description
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 AllowsWide
17851 \end_layout
17852
17853 \end_inset
17854
17855  [
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860
17861 \emph off
17862 0
17863 \end_layout
17864
17865 \end_inset
17866
17867 ,
17868 \begin_inset space \thinspace{}
17869 \end_inset
17870
17871
17872 \emph on
17873
17874 \begin_inset Flex Code
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878
17879 \emph on
17880 1
17881 \end_layout
17882
17883 \end_inset
17884
17885
17886 \emph default
17887 ] Defines whether the float has a starred variant that spans columns in
17888  a two column paragraph.
17889  Set to 
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 0
17895 \end_layout
17896
17897 \end_inset
17898
17899  if the float does not support this feature.
17900 \end_layout
17901
17902 \begin_layout Description
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907 Extension
17908 \end_layout
17909
17910 \end_inset
17911
17912  [
17913 \begin_inset Flex Code
17914 status collapsed
17915
17916 \begin_layout Plain Layout
17917 string
17918 \end_layout
17919
17920 \end_inset
17921
17922 =
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926
17927 \begin_inset Quotes erd
17928 \end_inset
17929
17930 ] The file name extension of an auxiliary file for the list of figures (or
17931  whatever).
17932  \SpecialChar LaTeX
17933  writes the captions to this file.
17934 \end_layout
17935
17936 \begin_layout Description
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 GuiName
17942 \end_layout
17943
17944 \end_inset
17945
17946  [
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 string
17952 \end_layout
17953
17954 \end_inset
17955
17956 =
17957 \begin_inset Quotes erd
17958 \end_inset
17959
17960
17961 \begin_inset Quotes erd
17962 \end_inset
17963
17964 ] The string that will be used in the menus and also for the caption.
17965  This is translated to the current language if babel is used.
17966 \end_layout
17967
17968 \begin_layout Description
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 HTML*
17974 \end_layout
17975
17976 \end_inset
17977
17978  These tags control the XHTML output.
17979  See 
17980 \begin_inset CommandInset ref
17981 LatexCommand ref
17982 reference "sec:Tags-for-XHTML"
17983
17984 \end_inset
17985
17986 .
17987 \end_layout
17988
17989 \begin_layout Description
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 IsPredefined
17995 \end_layout
17996
17997 \end_inset
17998
17999  [
18000 \emph on
18001
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 0
18007 \end_layout
18008
18009 \end_inset
18010
18011
18012 \emph default
18013 ,
18014 \begin_inset space \thinspace{}
18015 \end_inset
18016
18017
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022 1
18023 \end_layout
18024
18025 \end_inset
18026
18027 ] Indicates whether the float is already defined in the document class or
18028  if instead the \SpecialChar LaTeX
18029  package 
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 float
18035 \end_layout
18036
18037 \end_inset
18038
18039  needs to be loaded to define it on-the-fly.
18040  The default is 
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045 0
18046 \end_layout
18047
18048 \end_inset
18049
18050 , which means: 
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055 float
18056 \end_layout
18057
18058 \end_inset
18059
18060  is used.
18061  It should be set to 
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 1
18067 \end_layout
18068
18069 \end_inset
18070
18071  if the float is already defined by the \SpecialChar LaTeX
18072  document class.
18073 \end_layout
18074
18075 \begin_layout Description
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 ListCommand
18081 \end_layout
18082
18083 \end_inset
18084
18085  [
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 string
18091 \end_layout
18092
18093 \end_inset
18094
18095 =
18096 \begin_inset Quotes erd
18097 \end_inset
18098
18099
18100 \begin_inset Quotes erd
18101 \end_inset
18102
18103 ] The command used to generate a list of floats of this type; the leading
18104  `
18105 \backslash
18106 ' must be omitted.
18107  This 
18108 \emph on
18109 must
18110 \emph default
18111  be given if 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 UsesFloatPkg
18117 \end_layout
18118
18119 \end_inset
18120
18121  is false, since there is no standard way to generate this command.
18122  It is ignored if 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 UsesFloatPkg
18128 \end_layout
18129
18130 \end_inset
18131
18132  is true, since in that case there is a standard way to define the command.
18133 \end_layout
18134
18135 \begin_layout Description
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 ListName
18141 \end_layout
18142
18143 \end_inset
18144
18145  [
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 string
18151 \end_layout
18152
18153 \end_inset
18154
18155 =
18156 \begin_inset Quotes erd
18157 \end_inset
18158
18159
18160 \begin_inset Quotes erd
18161 \end_inset
18162
18163 ] A title for a list of floats of this kind (list of figures, tables, or
18164  whatever).
18165  It is used for the screen label within \SpecialChar LyX
18166 , it is used by \SpecialChar LaTeX
18167  for the title and
18168  it is used as the title in the XHTML output.
18169  It will be translated to the document language.
18170 \end_layout
18171
18172 \begin_layout Description
18173 \begin_inset Flex Code
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 NumberWithin
18178 \end_layout
18179
18180 \end_inset
18181
18182  [
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 string
18188 \end_layout
18189
18190 \end_inset
18191
18192 =
18193 \begin_inset Quotes erd
18194 \end_inset
18195
18196
18197 \begin_inset Quotes erd
18198 \end_inset
18199
18200 ] This (optional) argument determines whether floats of this class will
18201  be numbered within some sectional unit of the document.
18202  For example, if 
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207 NumberWithin
18208 \end_layout
18209
18210 \end_inset
18211
18212  is set to 
18213 \begin_inset Quotes eld
18214 \end_inset
18215
18216
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 chapter
18222 \end_layout
18223
18224 \end_inset
18225
18226
18227 \begin_inset Quotes erd
18228 \end_inset
18229
18230 , the floats will be numbered within chapters.
18231  
18232 \end_layout
18233
18234 \begin_layout Description
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 Placement
18240 \end_layout
18241
18242 \end_inset
18243
18244  [
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 string
18250 \end_layout
18251
18252 \end_inset
18253
18254 =
18255 \begin_inset Quotes erd
18256 \end_inset
18257
18258
18259 \begin_inset Quotes erd
18260 \end_inset
18261
18262 ] The default placement for the given class of floats.
18263  The string should be as in standard \SpecialChar LaTeX
18264
18265 \begin_inset Flex Code
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 t
18270 \end_layout
18271
18272 \end_inset
18273
18274
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 b
18280 \end_layout
18281
18282 \end_inset
18283
18284
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 p
18290 \end_layout
18291
18292 \end_inset
18293
18294  and 
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 h
18300 \end_layout
18301
18302 \end_inset
18303
18304  for top, bottom, page, and here, respectively.
18305 \begin_inset Foot
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309 Note that the order of these letters in the string is irrelevant, like in
18310  \SpecialChar LaTeX
18311 .
18312 \end_layout
18313
18314 \end_inset
18315
18316  On top of that there is a new type, 
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 H
18322 \end_layout
18323
18324 \end_inset
18325
18326 , which does not really correspond to a float, since it means: put it 
18327 \begin_inset Quotes eld
18328 \end_inset
18329
18330 here
18331 \begin_inset Quotes erd
18332 \end_inset
18333
18334  and nowhere else.
18335  Note however that the 
18336 \begin_inset Flex Code
18337 status collapsed
18338
18339 \begin_layout Plain Layout
18340 H
18341 \end_layout
18342
18343 \end_inset
18344
18345  specifier is special and, because of implementation details, cannot be
18346  used in non-built in float types.
18347  If you do not understand what this means, just use 
18348 \begin_inset Quotes eld
18349 \end_inset
18350
18351
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 tbp
18357 \end_layout
18358
18359 \end_inset
18360
18361
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365 .
18366 \end_layout
18367
18368 \begin_layout Description
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 RefPrefix
18374 \end_layout
18375
18376 \end_inset
18377
18378  [
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 string
18384 \end_layout
18385
18386 \end_inset
18387
18388 ] The prefix to use when creating labels referring to floats of this type.
18389  This allows the use of formatted references.
18390  Note that you can remove any 
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 RefPrefix
18396 \end_layout
18397
18398 \end_inset
18399
18400  set by a copied style by using the special value 
18401 \begin_inset Quotes eld
18402 \end_inset
18403
18404 OFF
18405 \begin_inset Quotes erd
18406 \end_inset
18407
18408 , which must be all caps.
18409 \change_inserted -712698321 1565605014
18410
18411 \end_layout
18412
18413 \begin_layout Description
18414
18415 \change_inserted -712698321 1565605014
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420
18421 \change_inserted -712698321 1565605014
18422 Requires
18423 \end_layout
18424
18425 \end_inset
18426
18427  [
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432
18433 \change_inserted -712698321 1565605014
18434 string
18435 \end_layout
18436
18437 \end_inset
18438
18439 ] As with paragraph styles, see 
18440 \begin_inset CommandInset ref
18441 LatexCommand ref
18442 reference "subsec:Paragraph-Styles"
18443
18444 \end_inset
18445
18446 .
18447 \change_unchanged
18448
18449 \end_layout
18450
18451 \begin_layout Description
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 Style
18457 \end_layout
18458
18459 \end_inset
18460
18461  [
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 string
18467 \end_layout
18468
18469 \end_inset
18470
18471 =
18472 \begin_inset Quotes erd
18473 \end_inset
18474
18475
18476 \begin_inset Quotes erd
18477 \end_inset
18478
18479 ] The style used when defining the float using 
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484
18485 \backslash
18486 newfloat
18487 \end_layout
18488
18489 \end_inset
18490
18491 .
18492 \end_layout
18493
18494 \begin_layout Description
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 Type
18500 \end_layout
18501
18502 \end_inset
18503
18504  [
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509 string
18510 \end_layout
18511
18512 \end_inset
18513
18514 =
18515 \begin_inset Quotes erd
18516 \end_inset
18517
18518
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522 ] The 
18523 \begin_inset Quotes eld
18524 \end_inset
18525
18526 type
18527 \begin_inset Quotes erd
18528 \end_inset
18529
18530  of the new class of floats, like program or algorithm.
18531  After the appropriate 
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536
18537 \backslash
18538 newfloat
18539 \end_layout
18540
18541 \end_inset
18542
18543 , commands such as 
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548
18549 \backslash
18550 begin{program}
18551 \end_layout
18552
18553 \end_inset
18554
18555  or 
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560
18561 \backslash
18562 end{algorithm*}
18563 \end_layout
18564
18565 \end_inset
18566
18567  will be available.
18568 \end_layout
18569
18570 \begin_layout Description
18571 \begin_inset Flex Code
18572 status collapsed
18573
18574 \begin_layout Plain Layout
18575 UsesFloatPkg
18576 \end_layout
18577
18578 \end_inset
18579
18580  [
18581 \begin_inset Flex Code
18582 status collapsed
18583
18584 \begin_layout Plain Layout
18585 0
18586 \end_layout
18587
18588 \end_inset
18589
18590 ,
18591 \begin_inset space \thinspace{}
18592 \end_inset
18593
18594
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599
18600 \emph on
18601 1
18602 \end_layout
18603
18604 \end_inset
18605
18606 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18607  package 
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 float
18613 \end_layout
18614
18615 \end_inset
18616
18617 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18618  itself.
18619 \end_layout
18620
18621 \begin_layout Standard
18622 Note that defining a float with type 
18623 \begin_inset Flex Code
18624 status collapsed
18625
18626 \begin_layout Plain Layout
18627
18628 \emph on
18629 type
18630 \end_layout
18631
18632 \end_inset
18633
18634  automatically defines the corresponding counter with name 
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639
18640 \emph on
18641 type
18642 \end_layout
18643
18644 \end_inset
18645
18646 .
18647 \end_layout
18648
18649 \begin_layout Subsection
18650 Flex insets and InsetLayout
18651 \begin_inset CommandInset label
18652 LatexCommand label
18653 name "subsec:Flex-insets-and"
18654
18655 \end_inset
18656
18657
18658 \end_layout
18659
18660 \begin_layout Standard
18661 Flex insets come in three different kinds: 
18662 \end_layout
18663
18664 \begin_layout Itemize
18665 character style (
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 CharStyle
18671 \end_layout
18672
18673 \end_inset
18674
18675 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18676  commands as 
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681
18682 \backslash
18683 noun
18684 \end_layout
18685
18686 \end_inset
18687
18688  and 
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693
18694 \backslash
18695 code
18696 \end_layout
18697
18698 \end_inset
18699
18700 .
18701 \end_layout
18702
18703 \begin_layout Itemize
18704 user custom (
18705 \begin_inset Flex Code
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709 Custom
18710 \end_layout
18711
18712 \end_inset
18713
18714 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18715  code,
18716  footnote, and the like.
18717  An obvious example is an endnote inset, which is defined in the 
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 endnote
18723 \end_layout
18724
18725 \end_inset
18726
18727  module.
18728 \end_layout
18729
18730 \begin_layout Itemize
18731 XML elements (
18732 \begin_inset Flex Code
18733 status collapsed
18734
18735 \begin_layout Plain Layout
18736 Element
18737 \end_layout
18738
18739 \end_inset
18740
18741 ): For use with DocBook classes.
18742 \end_layout
18743
18744 \begin_layout Standard
18745 Flex insets are defined using the 
18746 \begin_inset Flex Code
18747 status collapsed
18748
18749 \begin_layout Plain Layout
18750 InsetLayout
18751 \end_layout
18752
18753 \end_inset
18754
18755  tag, which shall be explained in a moment.
18756 \end_layout
18757
18758 \begin_layout Standard
18759 The 
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 InsetLayout
18765 \end_layout
18766
18767 \end_inset
18768
18769  tag also serves another function: It can be used to customize the general
18770  layout of many different types of insets.
18771  Currently, 
18772 \begin_inset Flex Code
18773 status collapsed
18774
18775 \begin_layout Plain Layout
18776 InsetLayout
18777 \end_layout
18778
18779 \end_inset
18780
18781  can be used to customize the layout parameters for footnotes, marginal
18782  notes, note insets, \SpecialChar TeX
18783  code (ERT) insets, branches, listings, indexes, boxes,
18784  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18785 \end_layout
18786
18787 \begin_layout Standard
18788 The 
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 InsetLayout
18794 \end_layout
18795
18796 \end_inset
18797
18798  definition must begin with a line of the form:
18799 \end_layout
18800
18801 \begin_layout LyX-Code
18802 InsetLayout <type>
18803 \end_layout
18804
18805 \begin_layout Standard
18806 Here 
18807 \begin_inset Flex Code
18808 status collapsed
18809
18810 \begin_layout Plain Layout
18811 <Type>
18812 \end_layout
18813
18814 \end_inset
18815
18816  indicates the inset whose layout is being defined, and here there are four
18817  cases.
18818 \end_layout
18819
18820 \begin_layout Enumerate
18821 The layout for a pre-existing inset is being modified.
18822  In this case, can be 
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 <Type>
18828 \end_layout
18829
18830 \end_inset
18831
18832  any one of the following: 
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 Algorithm
18838 \end_layout
18839
18840 \end_inset
18841
18842
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 Branch
18848 \end_layout
18849
18850 \end_inset
18851
18852
18853 \begin_inset Flex Code
18854 status collapsed
18855
18856 \begin_layout Plain Layout
18857 Box
18858 \end_layout
18859
18860 \end_inset
18861
18862
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 Box:shaded
18868 \end_layout
18869
18870 \end_inset
18871
18872
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 Caption:Standard
18878 \end_layout
18879
18880 \end_inset
18881
18882
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 ERT
18888 \end_layout
18889
18890 \end_inset
18891
18892
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 Figure
18898 \end_layout
18899
18900 \end_inset
18901
18902
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 Foot
18908 \end_layout
18909
18910 \end_inset
18911
18912
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 Index
18918 \end_layout
18919
18920 \end_inset
18921
18922
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 Info
18928 \end_layout
18929
18930 \end_inset
18931
18932
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 Info:menu
18938 \end_layout
18939
18940 \end_inset
18941
18942
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 Info:shortcut
18948 \end_layout
18949
18950 \end_inset
18951
18952
18953 \begin_inset Flex Code
18954 status collapsed
18955
18956 \begin_layout Plain Layout
18957 Info:shortcuts
18958 \end_layout
18959
18960 \end_inset
18961
18962
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 Listings
18968 \end_layout
18969
18970 \end_inset
18971
18972
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 Marginal
18978 \end_layout
18979
18980 \end_inset
18981
18982
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 Note:Comment
18988 \end_layout
18989
18990 \end_inset
18991
18992
18993 \begin_inset Flex Code
18994 status collapsed
18995
18996 \begin_layout Plain Layout
18997 Note:Note
18998 \end_layout
18999
19000 \end_inset
19001
19002
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 Note:Greyedout
19008 \end_layout
19009
19010 \end_inset
19011
19012
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 Table
19018 \end_layout
19019
19020 \end_inset
19021
19022 , or 
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 URL
19028 \end_layout
19029
19030 \end_inset
19031
19032 .
19033 \end_layout
19034
19035 \begin_layout Enumerate
19036 The layout for a Flex inset is being defined.
19037  In this case, 
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 <Type>
19043 \end_layout
19044
19045 \end_inset
19046
19047  must be of the form 
19048 \begin_inset Quotes eld
19049 \end_inset
19050
19051
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 Flex:<name>
19057 \end_layout
19058
19059 \end_inset
19060
19061
19062 \begin_inset Quotes erd
19063 \end_inset
19064
19065 , where 
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 name
19071 \end_layout
19072
19073 \end_inset
19074
19075  may be be any valid identifier not used by a pre-existing Flex inset.
19076  The identifier may include spaces, but in that case the whole thing must
19077  be wrapped in quotes.
19078  Note that the definition of a flex inset 
19079 \emph on
19080 must 
19081 \emph default
19082 also include a 
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 LyXType
19088 \end_layout
19089
19090 \end_inset
19091
19092  entry, declaring which type of inset it defines.
19093 \end_layout
19094
19095 \begin_layout Enumerate
19096 The layout for user specific branch is being defined.
19097  In this case, 
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 <Type>
19103 \end_layout
19104
19105 \end_inset
19106
19107  must be of the form 
19108 \begin_inset Quotes eld
19109 \end_inset
19110
19111
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 Branch:<name>
19117 \end_layout
19118
19119 \end_inset
19120
19121
19122 \begin_inset Quotes erd
19123 \end_inset
19124
19125 , where 
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 name
19131 \end_layout
19132
19133 \end_inset
19134
19135  may be be any valid identifier of branch defined in user's document.
19136  The identifier may include spaces, but in that case the whole thing must
19137  be wrapped in quotes.
19138  The main purpose of this feature is to allow \SpecialChar LaTeX
19139  wrapping around specific
19140  branches as user needs.
19141 \end_layout
19142
19143 \begin_layout Enumerate
19144 The layout of a user (or class) specific caption is being defined.
19145  In this case, 
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 <Type>
19151 \end_layout
19152
19153 \end_inset
19154
19155  must be of the form 
19156 \begin_inset Quotes eld
19157 \end_inset
19158
19159
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 Caption:<name>
19165 \end_layout
19166
19167 \end_inset
19168
19169
19170 \begin_inset Quotes erd
19171 \end_inset
19172
19173 , where 
19174 \begin_inset Flex Code
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178 name
19179 \end_layout
19180
19181 \end_inset
19182
19183  specifies the name of the caption as it appears in the menu.
19184  Have a look at the standard caption (
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 Caption:Standard
19190 \end_layout
19191
19192 \end_inset
19193
19194 ), the specific captions of the KOMA-Script classes (
19195 \begin_inset Flex Code
19196 status collapsed
19197
19198 \begin_layout Plain Layout
19199 Caption:Above
19200 \end_layout
19201
19202 \end_inset
19203
19204
19205 \begin_inset Flex Code
19206 status collapsed
19207
19208 \begin_layout Plain Layout
19209 Caption:Below
19210 \end_layout
19211
19212 \end_inset
19213
19214 ) or the module 
19215 \family sans
19216 Multilingual
19217 \begin_inset space ~
19218 \end_inset
19219
19220 Captions
19221 \begin_inset Newline linebreak
19222 \end_inset
19223
19224
19225 \family default
19226 (
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 Caption:Bicaption
19232 \end_layout
19233
19234 \end_inset
19235
19236 ) for applications.
19237 \end_layout
19238
19239 \begin_layout Standard
19240 The 
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 InsetLayout
19246 \end_layout
19247
19248 \end_inset
19249
19250  definition can contain the following entries:
19251 \end_layout
19252
19253 \begin_layout Description
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 AddToToc
19259 \end_layout
19260
19261 \end_inset
19262
19263  [
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 string
19269 \end_layout
19270
19271 \end_inset
19272
19273 =""] This inset will appear in the table of contents of the given type.
19274  An empty string disables.
19275  See also the OutlinerName and the IsTocCaption commands.
19276  This is only implemented for Flex insets.
19277  Default: disabled.
19278 \end_layout
19279
19280 \begin_layout Description
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285 Argument
19286 \end_layout
19287
19288 \end_inset
19289
19290  [
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 int
19296 \end_layout
19297
19298 \end_inset
19299
19300 ] Defines argument number of a command\SpecialChar breakableslash
19301 environment associated with the current
19302  layout.
19303  The definition must end with 
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308 EndArgument
19309 \end_layout
19310
19311 \end_inset
19312
19313 .
19314  See 
19315 \begin_inset CommandInset ref
19316 LatexCommand ref
19317 reference "subsec:Paragraph-Styles"
19318
19319 \end_inset
19320
19321  for details.
19322 \end_layout
19323
19324 \begin_layout Description
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 BabelPreamble
19330 \end_layout
19331
19332 \end_inset
19333
19334  Preamble for changing language commands; see 
19335 \begin_inset CommandInset ref
19336 LatexCommand ref
19337 reference "subsec:I18n"
19338
19339 \end_inset
19340
19341 .
19342 \end_layout
19343
19344 \begin_layout Description
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 BgColor
19350 \end_layout
19351
19352 \end_inset
19353
19354  [
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 <name>
19360 \end_layout
19361
19362 \end_inset
19363
19364 ] The color for the inset's background.
19365  See 
19366 \begin_inset CommandInset ref
19367 LatexCommand ref
19368 reference "chap:Names-of-colors"
19369
19370 \end_inset
19371
19372  for a list of the available color names.
19373 \end_layout
19374
19375 \begin_layout Description
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 ContentAsLabel
19381 \end_layout
19382
19383 \end_inset
19384
19385  [
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390
19391 \emph on
19392 0
19393 \end_layout
19394
19395 \end_inset
19396
19397 ,
19398 \begin_inset space \thinspace{}
19399 \end_inset
19400
19401
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 1
19407 \end_layout
19408
19409 \end_inset
19410
19411 ] Whether to use the content of the inset as the label, when the inset is
19412  closed.
19413  Default is false.
19414 \end_layout
19415
19416 \begin_layout Description
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 CopyStyle
19422 \end_layout
19423
19424 \end_inset
19425
19426  [
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 <type>
19432 \end_layout
19433
19434 \end_inset
19435
19436 ] As with paragraph styles, see 
19437 \begin_inset CommandInset ref
19438 LatexCommand ref
19439 reference "subsec:Paragraph-Styles"
19440
19441 \end_inset
19442
19443 .
19444  Note that you need to specify the complete type, e.
19445 \begin_inset space \thinspace{}
19446 \end_inset
19447
19448 g.
19449 \begin_inset space ~
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 CopyStyle Flex:<name>
19458 \end_layout
19459
19460 \end_inset
19461
19462 .
19463 \end_layout
19464
19465 \begin_layout Description
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 CustomPars
19471 \end_layout
19472
19473 \end_inset
19474
19475  [
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480
19481 \emph on
19482 0
19483 \end_layout
19484
19485 \end_inset
19486
19487 ,
19488 \begin_inset space \thinspace{}
19489 \end_inset
19490
19491
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 1
19497 \end_layout
19498
19499 \end_inset
19500
19501 ] Indicates whether the user may employ the Paragraph Settings dialog to
19502  customize the paragraph.
19503 \end_layout
19504
19505 \begin_layout Description
19506 \begin_inset Flex Code
19507 status collapsed
19508
19509 \begin_layout Plain Layout
19510 Decoration
19511 \end_layout
19512
19513 \end_inset
19514
19515  can be 
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 Classic
19521 \end_layout
19522
19523 \end_inset
19524
19525
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530 Minimalistic
19531 \end_layout
19532
19533 \end_inset
19534
19535 , or 
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 Conglomerate
19541 \end_layout
19542
19543 \end_inset
19544
19545 , describing the rendering style used for the inset's frame and buttons.
19546  Footnotes generally use 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 Classic
19552 \end_layout
19553
19554 \end_inset
19555
19556 , ERT insets generally 
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 Minimalistic
19562 \end_layout
19563
19564 \end_inset
19565
19566 , and character styles 
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 Conglomerate
19572 \end_layout
19573
19574 \end_inset
19575
19576 .
19577 \end_layout
19578
19579 \begin_layout Description
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 Display
19585 \end_layout
19586
19587 \end_inset
19588
19589  [
19590 \begin_inset Flex Code
19591 status collapsed
19592
19593 \begin_layout Plain Layout
19594 0
19595 \end_layout
19596
19597 \end_inset
19598
19599 ,
19600 \emph on
19601
19602 \begin_inset space \thinspace{}
19603 \end_inset
19604
19605
19606 \emph default
19607
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612
19613 \emph on
19614 1
19615 \end_layout
19616
19617 \end_inset
19618
19619 ] Only useful if 
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 LatexType
19625 \end_layout
19626
19627 \end_inset
19628
19629  is 
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 Environment
19635 \end_layout
19636
19637 \end_inset
19638
19639 .
19640  Indicates whether the environment will stand on its own in the output or
19641  will appear inline with the surrounding text.
19642  If set to false, it is supposed that the \SpecialChar LaTeX
19643  environment ignores white space
19644  (including one newline character) after the 
19645 \begin_inset Flex Code
19646 status collapsed
19647
19648 \begin_layout Plain Layout
19649
19650 \backslash
19651 begin{
19652 \emph on
19653 LatexName
19654 \emph default
19655 }
19656 \end_layout
19657
19658 \end_inset
19659
19660  and 
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665
19666 \backslash
19667 end{
19668 \emph on
19669 LatexName
19670 \emph default
19671 }
19672 \end_layout
19673
19674 \end_inset
19675
19676  tags.
19677  Default is true.
19678 \change_inserted 731793113 1538674858
19679
19680 \end_layout
19681
19682 \begin_layout Description
19683
19684 \change_inserted 731793113 1538674891
19685 \begin_inset Flex Code
19686 status open
19687
19688 \begin_layout Plain Layout
19689
19690 \change_inserted 731793113 1538674863
19691 EditExternal
19692 \change_unchanged
19693
19694 \end_layout
19695
19696 \end_inset
19697
19698  [
19699 \emph on
19700 0
19701 \emph default
19702 ,1] Allow the contents of the inset to be edited externally (using whatever
19703  editor is defined for the document's output format).
19704 \change_unchanged
19705
19706 \end_layout
19707
19708 \begin_layout Description
19709 \begin_inset Flex Code
19710 status collapsed
19711
19712 \begin_layout Plain Layout
19713 End
19714 \end_layout
19715
19716 \end_inset
19717
19718  Required at the end of the 
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 InsetLayout
19724 \end_layout
19725
19726 \end_inset
19727
19728  declarations.
19729 \end_layout
19730
19731 \begin_layout Description
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736 Font
19737 \end_layout
19738
19739 \end_inset
19740
19741  The font used for both the text body 
19742 \emph on
19743 and
19744 \emph default
19745  the label.
19746  See 
19747 \begin_inset CommandInset ref
19748 LatexCommand ref
19749 reference "subsec:Font-description"
19750
19751 \end_inset
19752
19753 .
19754  Note that defining this font automatically defines the 
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 LabelFont
19760 \end_layout
19761
19762 \end_inset
19763
19764  to the same value, so define this first and define 
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 LabelFont
19770 \end_layout
19771
19772 \end_inset
19773
19774  later if you want them to be different.
19775 \end_layout
19776
19777 \begin_layout Description
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 FixedWidthPreambleEncoding
19783 \end_layout
19784
19785 \end_inset
19786
19787  [
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792
19793 \emph on
19794 0
19795 \end_layout
19796
19797 \end_inset
19798
19799 ,
19800 \begin_inset space \thinspace{}
19801 \end_inset
19802
19803
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 1
19809 \end_layout
19810
19811 \end_inset
19812
19813 ] Force a fixed width encoding for the translated contents of 
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 BabelPreamble
19819 \end_layout
19820
19821 \end_inset
19822
19823  and 
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 LangPreamble
19829 \end_layout
19830
19831 \end_inset
19832
19833  code generated by this layout.
19834  This is needed for special \SpecialChar LaTeX
19835 -packages like 
19836 \family typewriter
19837 listings
19838 \family default
19839  that do not work with variable width encodings such as 
19840 \family sans
19841 utf8
19842 \family default
19843 .
19844  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19845  backends such as Xe\SpecialChar TeX
19846  or
19847  Lua\SpecialChar TeX
19848  are used.
19849 \end_layout
19850
19851 \begin_layout Description
19852 \begin_inset Flex Code
19853 status collapsed
19854
19855 \begin_layout Plain Layout
19856 ForceLocalFontSwitch
19857 \end_layout
19858
19859 \end_inset
19860
19861  [
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866
19867 \emph on
19868 0
19869 \end_layout
19870
19871 \end_inset
19872
19873 ,
19874 \begin_inset space \thinspace{}
19875 \end_inset
19876
19877
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 1
19883 \end_layout
19884
19885 \end_inset
19886
19887 ] When using babel, always use a local font switch (
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892
19893 \backslash
19894 foreignlanguage
19895 \end_layout
19896
19897 \end_inset
19898
19899 ), never a global one (such as 
19900 \begin_inset Flex Code
19901 status collapsed
19902
19903 \begin_layout Plain Layout
19904
19905 \backslash
19906 selectlanguage
19907 \end_layout
19908
19909 \end_inset
19910
19911 ).
19912 \end_layout
19913
19914 \begin_layout Description
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 ForceLTR
19920 \end_layout
19921
19922 \end_inset
19923
19924  [
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929
19930 \emph on
19931 0
19932 \end_layout
19933
19934 \end_inset
19935
19936 ,
19937 \begin_inset space \thinspace{}
19938 \end_inset
19939
19940
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 1
19946 \end_layout
19947
19948 \end_inset
19949
19950 ] Force the 
19951 \begin_inset Quotes eld
19952 \end_inset
19953
19954 latex
19955 \begin_inset Quotes erd
19956 \end_inset
19957
19958  language, leading to Left-to-Right (Latin) output, e.
19959 \begin_inset space \thinspace{}
19960 \end_inset
19961
19962 g.
19963 \begin_inset space \space{}
19964 \end_inset
19965
19966 in \SpecialChar TeX
19967  code or URL.
19968  A kludge.
19969 \end_layout
19970
19971 \begin_layout Description
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976 ForceOwnlines
19977 \end_layout
19978
19979 \end_inset
19980
19981  [
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986
19987 \emph on
19988 0
19989 \end_layout
19990
19991 \end_inset
19992
19993 ,
19994 \begin_inset space \thinspace{}
19995 \end_inset
19996
19997
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 1
20003 \end_layout
20004
20005 \end_inset
20006
20007 ] Force a a line break in the \SpecialChar LaTeX
20008  output before the inset starts and after
20009  the inset ends.
20010  This assures the inset itself is output on its own lines, for parsing purposes.
20011 \end_layout
20012
20013 \begin_layout Description
20014 \begin_inset Flex Code
20015 status collapsed
20016
20017 \begin_layout Plain Layout
20018 ForcePlain
20019 \end_layout
20020
20021 \end_inset
20022
20023  [
20024 \begin_inset Flex Code
20025 status collapsed
20026
20027 \begin_layout Plain Layout
20028
20029 \emph on
20030 0
20031 \end_layout
20032
20033 \end_inset
20034
20035 ,
20036 \begin_inset space \thinspace{}
20037 \end_inset
20038
20039
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 1
20045 \end_layout
20046
20047 \end_inset
20048
20049 ] Indicates whether the 
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 PlainLayout
20055 \end_layout
20056
20057 \end_inset
20058
20059  should be used or, instead, the user can change the paragraph style used
20060  in the inset.
20061  Default is false.
20062 \end_layout
20063
20064 \begin_layout Description
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 FreeSpacing
20070 \end_layout
20071
20072 \end_inset
20073
20074  [
20075 \begin_inset Flex Code
20076 status collapsed
20077
20078 \begin_layout Plain Layout
20079
20080 \emph on
20081 0
20082 \end_layout
20083
20084 \end_inset
20085
20086 ,
20087 \begin_inset space \thinspace{}
20088 \end_inset
20089
20090
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 1
20096 \end_layout
20097
20098 \end_inset
20099
20100 ] As with paragraph styles, see 
20101 \begin_inset CommandInset ref
20102 LatexCommand ref
20103 reference "subsec:Paragraph-Styles"
20104
20105 \end_inset
20106
20107 .
20108 \end_layout
20109
20110 \begin_layout Description
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115 HTML*
20116 \end_layout
20117
20118 \end_inset
20119
20120  These tags control the XHTML output.
20121  See 
20122 \begin_inset CommandInset ref
20123 LatexCommand ref
20124 reference "sec:Tags-for-XHTML"
20125
20126 \end_inset
20127
20128 .
20129 \end_layout
20130
20131 \begin_layout Description
20132 \begin_inset Flex Code
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 InToc
20137 \end_layout
20138
20139 \end_inset
20140
20141  [
20142 \begin_inset Flex Code
20143 status collapsed
20144
20145 \begin_layout Plain Layout
20146
20147 \emph on
20148 0
20149 \end_layout
20150
20151 \end_inset
20152
20153 ,
20154 \begin_inset space \thinspace{}
20155 \end_inset
20156
20157
20158 \begin_inset Flex Code
20159 status collapsed
20160
20161 \begin_layout Plain Layout
20162 1
20163 \end_layout
20164
20165 \end_inset
20166
20167 ] Whether to include the contents of this inset in the strings generated
20168  for the `Outline' pane for all table of contents, regardless of the AddToToc
20169  setting.
20170  One would not, for example, want the content of a footnote in a section
20171  header to be included in the TOC displayed in the outline, but one would
20172  normally want the content of a character style displayed.
20173  Default is false: not to include.
20174 \end_layout
20175
20176 \begin_layout Description
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 IsTocCaption
20182 \end_layout
20183
20184 \end_inset
20185
20186  [
20187 \begin_inset Flex Code
20188 status collapsed
20189
20190 \begin_layout Plain Layout
20191
20192 \emph on
20193 0
20194 \end_layout
20195
20196 \end_inset
20197
20198 ,
20199 \begin_inset space \thinspace{}
20200 \end_inset
20201
20202
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 1
20208 \end_layout
20209
20210 \end_inset
20211
20212 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20213  of its contents in its item in the table of contents.
20214  Otherwise, only the label appears.
20215 \end_layout
20216
20217 \begin_layout Description
20218 \begin_inset Flex Code
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 KeepEmpty
20223 \end_layout
20224
20225 \end_inset
20226
20227  [
20228 \emph on
20229
20230 \begin_inset Flex Code
20231 status collapsed
20232
20233 \begin_layout Plain Layout
20234 0
20235 \end_layout
20236
20237 \end_inset
20238
20239
20240 \emph default
20241 ,
20242 \begin_inset space \thinspace{}
20243 \end_inset
20244
20245
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250 1
20251 \end_layout
20252
20253 \end_inset
20254
20255 ] As with paragraph styles, see 
20256 \begin_inset CommandInset ref
20257 LatexCommand ref
20258 reference "subsec:Paragraph-Styles"
20259
20260 \end_inset
20261
20262 .
20263 \end_layout
20264
20265 \begin_layout Description
20266 \begin_inset Flex Code
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270 LabelFont
20271 \end_layout
20272
20273 \end_inset
20274
20275  The font used for the label.
20276  See 
20277 \begin_inset CommandInset ref
20278 LatexCommand ref
20279 reference "subsec:Font-description"
20280
20281 \end_inset
20282
20283 .
20284  Note that this definition can never appear before 
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 Font
20290 \end_layout
20291
20292 \end_inset
20293
20294 , lest it be ineffective.
20295 \end_layout
20296
20297 \begin_layout Description
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 LabelString
20303 \end_layout
20304
20305 \end_inset
20306
20307  [
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 string
20313 \end_layout
20314
20315 \end_inset
20316
20317 =
20318 \begin_inset Quotes erd
20319 \end_inset
20320
20321
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325 ] What will be displayed on the button or elsewhere as the inset label.
20326  Some inset types (
20327 \begin_inset Flex Code
20328 status collapsed
20329
20330 \begin_layout Plain Layout
20331 \SpecialChar TeX
20332  code
20333 \end_layout
20334
20335 \end_inset
20336
20337  and 
20338 \begin_inset Flex Code
20339 status collapsed
20340
20341 \begin_layout Plain Layout
20342 Branch
20343 \end_layout
20344
20345 \end_inset
20346
20347 ) modify this label on the fly.
20348 \end_layout
20349
20350 \begin_layout Description
20351 \begin_inset Flex Code
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 LangPreamble
20356 \end_layout
20357
20358 \end_inset
20359
20360  Language dependent preamble; see 
20361 \begin_inset CommandInset ref
20362 LatexCommand ref
20363 reference "subsec:I18n"
20364
20365 \end_inset
20366
20367 .
20368 \end_layout
20369
20370 \begin_layout Description
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 LatexName
20376 \end_layout
20377
20378 \end_inset
20379
20380  [
20381 \begin_inset Flex Code
20382 status collapsed
20383
20384 \begin_layout Plain Layout
20385 <name>
20386 \end_layout
20387
20388 \end_inset
20389
20390 ] The name of the corresponding \SpecialChar LaTeX
20391  stuff.
20392  Either the environment or command name.
20393 \end_layout
20394
20395 \begin_layout Description
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 LatexParam
20401 \end_layout
20402
20403 \end_inset
20404
20405  [
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 <parameter>
20411 \end_layout
20412
20413 \end_inset
20414
20415 ] The optional parameter for the corresponding 
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 LatexName
20421 \end_layout
20422
20423 \end_inset
20424
20425  stuff, including possible bracket pairs like 
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 []
20431 \end_layout
20432
20433 \end_inset
20434
20435 .
20436  This parameter cannot be changed from within \SpecialChar LyX
20437  (use 
20438 \begin_inset Flex Code
20439 status collapsed
20440
20441 \begin_layout Plain Layout
20442 Argument
20443 \end_layout
20444
20445 \end_inset
20446
20447  for customizable parameters).
20448  It will be output as is after all \SpecialChar LaTeX
20449  
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 Argument
20455 \end_layout
20456
20457 \end_inset
20458
20459 s.
20460 \end_layout
20461
20462 \begin_layout Description
20463 \begin_inset Flex Code
20464 status collapsed
20465
20466 \begin_layout Plain Layout
20467 LatexType
20468 \end_layout
20469
20470 \end_inset
20471
20472  [
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 Command, Environment, None
20478 \end_layout
20479
20480 \end_inset
20481
20482 ] How the style should be translated into \SpecialChar LaTeX
20483 .
20484 \begin_inset Foot
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 \begin_inset Flex Code
20489 status collapsed
20490
20491 \begin_layout Plain Layout
20492 LatexType
20493 \end_layout
20494
20495 \end_inset
20496
20497  is perhaps a bit misleading, since these rules apply to SGML classes too.
20498  Visit the SGML class files for specific examples.
20499 \end_layout
20500
20501 \end_inset
20502
20503
20504 \end_layout
20505
20506 \begin_deeper
20507 \begin_layout Description
20508 \begin_inset Flex Code
20509 status collapsed
20510
20511 \begin_layout Plain Layout
20512 None
20513 \end_layout
20514
20515 \end_inset
20516
20517  means nothing special
20518 \end_layout
20519
20520 \begin_layout Description
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 Command
20526 \end_layout
20527
20528 \end_inset
20529
20530  means 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535
20536 \backslash
20537
20538 \emph on
20539 LatexName
20540 \emph default
20541 {\SpecialChar ldots
20542 }
20543 \end_layout
20544
20545 \end_inset
20546
20547
20548 \end_layout
20549
20550 \begin_layout Description
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 Environment
20556 \end_layout
20557
20558 \end_inset
20559
20560  means 
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565
20566 \backslash
20567 begin{
20568 \emph on
20569 LatexName
20570 \emph default
20571 }\SpecialChar ldots
20572
20573 \backslash
20574 end{
20575 \emph on
20576 LatexName
20577 \emph default
20578 }
20579 \end_layout
20580
20581 \end_inset
20582
20583
20584 \end_layout
20585
20586 \begin_layout Standard
20587 Putting the last few things together, the \SpecialChar LaTeX
20588  output will be either: 
20589 \end_layout
20590
20591 \begin_layout LyX-Code
20592
20593 \backslash
20594 LatexName[LatexParam]{\SpecialChar ldots
20595 }
20596 \end_layout
20597
20598 \begin_layout Standard
20599 or: 
20600 \end_layout
20601
20602 \begin_layout LyX-Code
20603
20604 \backslash
20605 begin{LatexName}[LatexParam] \SpecialChar ldots
20606  
20607 \backslash
20608 end{LatexName}
20609 \end_layout
20610
20611 \begin_layout Standard
20612 depending upon the \SpecialChar LaTeX
20613  type.
20614 \end_layout
20615
20616 \end_deeper
20617 \begin_layout Description
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 LeftDelim
20623 \end_layout
20624
20625 \end_inset
20626
20627  [
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 string
20633 \end_layout
20634
20635 \end_inset
20636
20637 ] A string that is put at the beginning of the layout content.
20638  A line break in the output can be indicated by 
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 <br/>
20644 \end_layout
20645
20646 \end_inset
20647
20648 .
20649 \end_layout
20650
20651 \begin_layout Description
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 LyxType
20657 \end_layout
20658
20659 \end_inset
20660
20661  Can be 
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 charstyle
20667 \end_layout
20668
20669 \end_inset
20670
20671
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 custom
20677 \end_layout
20678
20679 \end_inset
20680
20681
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686 element
20687 \end_layout
20688
20689 \end_inset
20690
20691  or 
20692 \begin_inset Flex Code
20693 status collapsed
20694
20695 \begin_layout Plain Layout
20696 end
20697 \end_layout
20698
20699 \end_inset
20700
20701  (indicating a dummy definition ending definitions of charstyles, etc).
20702  This entry is required in and is only meaningful for Flex insets.
20703  Among other things, it determines on which menu this inset will appear.
20704  Setting 
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 LyxType
20710 \end_layout
20711
20712 \end_inset
20713
20714  to 
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 charstyle
20720 \end_layout
20721
20722 \end_inset
20723
20724  will automatically set 
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 MultiPar
20730 \end_layout
20731
20732 \end_inset
20733
20734  to false and 
20735 \begin_inset Flex Code
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739 ForcePlain
20740 \end_layout
20741
20742 \end_inset
20743
20744  to true.
20745  
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 MultiPar
20751 \end_layout
20752
20753 \end_inset
20754
20755  can be set to true, or 
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 ForcePlain
20761 \end_layout
20762
20763 \end_inset
20764
20765  to false, for 
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 charstyle
20771 \end_layout
20772
20773 \end_inset
20774
20775  insets by setting it 
20776 \emph on
20777 after
20778 \emph default
20779  you set the 
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784 LyxType
20785 \end_layout
20786
20787 \end_inset
20788
20789 .
20790 \change_inserted -712698321 1555575738
20791
20792 \end_layout
20793
20794 \begin_layout Description
20795
20796 \change_inserted -712698321 1555575844
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801
20802 \change_inserted -712698321 1555575740
20803 MenuString
20804 \end_layout
20805
20806 \end_inset
20807
20808  
20809 \begin_inset Flex Code
20810 status collapsed
20811
20812 \begin_layout Plain Layout
20813
20814 \change_inserted -712698321 1555575740
20815 [string]
20816 \end_layout
20817
20818 \end_inset
20819
20820  A dedicated string for the menu.
20821  You can define an accelerator by appending the respective character to
20822  the string, divided by 
20823 \begin_inset Quotes eld
20824 \end_inset
20825
20826 |
20827 \begin_inset Quotes erd
20828 \end_inset
20829
20830  (e.
20831 \begin_inset space \thinspace{}
20832 \end_inset
20833
20834 g.
20835 \begin_inset space \space{}
20836 \end_inset
20837
20838
20839 \begin_inset Quotes eld
20840 \end_inset
20841
20842
20843 \begin_inset Flex Code
20844 status collapsed
20845
20846 \begin_layout Plain Layout
20847
20848 \change_inserted -712698321 1555575781
20849 My Inset|M
20850 \end_layout
20851
20852 \end_inset
20853
20854
20855 \begin_inset Quotes erd
20856 \end_inset
20857
20858 ).
20859  This specification is optional.
20860  If it is not given the inset name as specified in the type declaration
20861  will be used instead for the menu.
20862 \change_unchanged
20863
20864 \end_layout
20865
20866 \begin_layout Description
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 MultiPar
20872 \end_layout
20873
20874 \end_inset
20875
20876  [
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881
20882 \emph on
20883 0
20884 \end_layout
20885
20886 \end_inset
20887
20888 ,
20889 \begin_inset space \thinspace{}
20890 \end_inset
20891
20892
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 1
20898 \end_layout
20899
20900 \end_inset
20901
20902 ] Whether multiple paragraphs are permitted in this inset.
20903  This will also set 
20904 \begin_inset Flex Code
20905 status collapsed
20906
20907 \begin_layout Plain Layout
20908 CustomPars
20909 \end_layout
20910
20911 \end_inset
20912
20913  to the same value and 
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 ForcePlain
20919 \end_layout
20920
20921 \end_inset
20922
20923  to the opposite value.
20924  These can be reset to other values, if they are used 
20925 \emph on
20926 after
20927 \emph default
20928  
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 MultiPar
20934 \end_layout
20935
20936 \end_inset
20937
20938 .
20939  Default is true.
20940 \end_layout
20941
20942 \begin_layout Description
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 NeedProtect
20948 \end_layout
20949
20950 \end_inset
20951
20952  [
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957
20958 \emph on
20959 0
20960 \end_layout
20961
20962 \end_inset
20963
20964 ,
20965 \begin_inset space \thinspace{}
20966 \end_inset
20967
20968
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 1
20974 \end_layout
20975
20976 \end_inset
20977
20978 ] Whether fragile commands in this inset should be 
20979 \begin_inset Flex Code
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983
20984 \backslash
20985 protect
20986 \end_layout
20987
20988 \end_inset
20989
20990 'ed.
20991  (Note: This is 
20992 \emph on
20993 not
20994 \emph default
20995  whether the command should itself be protected.) Default is false.
20996 \change_inserted -712698321 1523633958
20997
20998 \end_layout
20999
21000 \begin_layout Description
21001
21002 \change_inserted -712698321 1552395786
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007
21008 \change_inserted -712698321 1523633961
21009 NeedCProtect
21010 \end_layout
21011
21012 \end_inset
21013
21014  [
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019
21020 \change_inserted -712698321 1523633958
21021
21022 \emph on
21023 0
21024 \end_layout
21025
21026 \end_inset
21027
21028 ,
21029 \begin_inset space \thinspace{}
21030 \end_inset
21031
21032
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037
21038 \change_inserted -712698321 1523633958
21039 1
21040 \end_layout
21041
21042 \end_inset
21043
21044 ] This causes macros that contain this inset to be protected with 
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049
21050 \change_inserted -712698321 1523634038
21051
21052 \backslash
21053 cprotect
21054 \change_unchanged
21055
21056 \end_layout
21057
21058 \end_inset
21059
21060  (cf.
21061  package 
21062 \family sans
21063 cprotect
21064 \family default
21065 ) if necessary and thus allows (some) verbatim stuff in macros.
21066  Default is false.
21067 \end_layout
21068
21069 \begin_layout Description
21070
21071 \change_inserted -712698321 1555579651
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076
21077 \change_inserted -712698321 1552395787
21078 NeedMBoxProtect
21079 \end_layout
21080
21081 \end_inset
21082
21083  [
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088
21089 \change_inserted -712698321 1552395787
21090
21091 \emph on
21092 0
21093 \end_layout
21094
21095 \end_inset
21096
21097 ,
21098 \begin_inset space \thinspace{}
21099 \end_inset
21100
21101
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106
21107 \change_inserted -712698321 1552395787
21108 1
21109 \end_layout
21110
21111 \end_inset
21112
21113 ] Whether specific commands in this inset (such as 
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118
21119 \change_inserted -712698321 1552395787
21120
21121 \backslash
21122 cite
21123 \end_layout
21124
21125 \end_inset
21126
21127  and 
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132
21133 \change_inserted -712698321 1552395787
21134
21135 \backslash
21136 ref
21137 \end_layout
21138
21139 \end_inset
21140
21141 ) should be protected in an 
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146
21147 \change_inserted -712698321 1552395787
21148
21149 \backslash
21150 mbox
21151 \end_layout
21152
21153 \end_inset
21154
21155 .
21156  This is particularly needed for insets that draw on 
21157 \family sans
21158 ulem
21159 \family default
21160  or 
21161 \family sans
21162 soul
21163 \family default
21164  commands which parse their content in complex ways.
21165  Default is false.
21166 \end_layout
21167
21168 \begin_layout Description
21169
21170 \change_inserted -712698321 1555579742
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175
21176 \change_inserted -712698321 1555579658
21177 NewlineCmd
21178 \end_layout
21179
21180 \end_inset
21181
21182  
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187
21188 \change_inserted -712698321 1555579651
21189 [string]
21190 \end_layout
21191
21192 \end_inset
21193
21194  Option to define a different command (from the default 
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199
21200 \change_inserted -712698321 1555579742
21201
21202 \backslash
21203
21204 \backslash
21205
21206 \change_unchanged
21207
21208 \end_layout
21209
21210 \end_inset
21211
21212 ) to be used for line breaks.
21213  The initial backslash must not be specified.
21214 \change_unchanged
21215
21216 \end_layout
21217
21218 \begin_layout Description
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 NoInsetLayout
21224 \end_layout
21225
21226 \end_inset
21227
21228  [
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 <layout>
21234 \end_layout
21235
21236 \end_inset
21237
21238 ] Deletes an existing 
21239 \begin_inset Flex Code
21240 status collapsed
21241
21242 \begin_layout Plain Layout
21243 InsetLayout
21244 \end_layout
21245
21246 \end_inset
21247
21248 .
21249 \end_layout
21250
21251 \begin_layout Description
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 ObsoletedBy
21257 \end_layout
21258
21259 \end_inset
21260
21261  [
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266 <layout>
21267 \end_layout
21268
21269 \end_inset
21270
21271 ] Name of an 
21272 \begin_inset Flex Code
21273 status collapsed
21274
21275 \begin_layout Plain Layout
21276 InsetLayout
21277 \end_layout
21278
21279 \end_inset
21280
21281  that has replaced this 
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 InsetLayout
21287 \end_layout
21288
21289 \end_inset
21290
21291 .
21292  This is used to rename an 
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 InsetLayout
21298 \end_layout
21299
21300 \end_inset
21301
21302 , while keeping backward compatibility.
21303 \change_inserted -712698321 1559491850
21304
21305 \end_layout
21306
21307 \begin_layout Description
21308
21309 \change_inserted -712698321 1559492002
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314
21315 \change_inserted -712698321 1559491854
21316 ParbreakIgnored
21317 \end_layout
21318
21319 \end_inset
21320
21321  [
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326
21327 \change_inserted -712698321 1559491850
21328
21329 \emph on
21330 0
21331 \end_layout
21332
21333 \end_inset
21334
21335 ,
21336 \begin_inset space \thinspace{}
21337 \end_inset
21338
21339
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344
21345 \change_inserted -712698321 1559491850
21346 1
21347 \end_layout
21348
21349 \end_inset
21350
21351 ] If this is set to 
21352 \begin_inset Flex Code
21353 status collapsed
21354
21355 \begin_layout Plain Layout
21356
21357 \change_inserted -712698321 1559491881
21358 1
21359 \change_unchanged
21360
21361 \end_layout
21362
21363 \end_inset
21364
21365 , paragraph breaks will be ignored in the output.
21366  This might be useful for insets where the content should be alignable on
21367  different lines only in the \SpecialChar LyX
21368  workarea, without any effect in the output.
21369 \change_unchanged
21370
21371 \end_layout
21372
21373 \begin_layout Description
21374 \begin_inset Flex Code
21375 status collapsed
21376
21377 \begin_layout Plain Layout
21378 ParbreakIsNewline
21379 \end_layout
21380
21381 \end_inset
21382
21383  [
21384 \begin_inset Flex Code
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388
21389 \emph on
21390 0
21391 \end_layout
21392
21393 \end_inset
21394
21395 ,
21396 \begin_inset space \thinspace{}
21397 \end_inset
21398
21399
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 1
21405 \end_layout
21406
21407 \end_inset
21408
21409 ] As with paragraph styles, see 
21410 \begin_inset CommandInset ref
21411 LatexCommand ref
21412 reference "subsec:Paragraph-Styles"
21413
21414 \end_inset
21415
21416 .
21417  Default is false.
21418 \end_layout
21419
21420 \begin_layout Description
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 PassThru
21426 \end_layout
21427
21428 \end_inset
21429
21430  [
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435
21436 \emph on
21437 0
21438 \end_layout
21439
21440 \end_inset
21441
21442 ,
21443 \begin_inset space \thinspace{}
21444 \end_inset
21445
21446
21447 \begin_inset Flex Code
21448 status collapsed
21449
21450 \begin_layout Plain Layout
21451 1
21452 \end_layout
21453
21454 \end_inset
21455
21456 ] As with paragraph styles, see 
21457 \begin_inset CommandInset ref
21458 LatexCommand ref
21459 reference "subsec:Paragraph-Styles"
21460
21461 \end_inset
21462
21463 .
21464  Default is false.
21465 \end_layout
21466
21467 \begin_layout Description
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 Preamble
21473 \end_layout
21474
21475 \end_inset
21476
21477  As with paragraph styles, see 
21478 \begin_inset CommandInset ref
21479 LatexCommand ref
21480 reference "subsec:Paragraph-Styles"
21481
21482 \end_inset
21483
21484 .
21485 \end_layout
21486
21487 \begin_layout Description
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 RefPrefix
21493 \end_layout
21494
21495 \end_inset
21496
21497  [
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 string
21503 \end_layout
21504
21505 \end_inset
21506
21507 ] The prefix to use when creating labels referring to insets of this type.
21508  This allows the use of formatted references.
21509 \end_layout
21510
21511 \begin_layout Description
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 Requires
21517 \end_layout
21518
21519 \end_inset
21520
21521  [
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 string
21527 \end_layout
21528
21529 \end_inset
21530
21531 ] As with paragraph styles, see 
21532 \begin_inset CommandInset ref
21533 LatexCommand ref
21534 reference "subsec:Paragraph-Styles"
21535
21536 \end_inset
21537
21538 .
21539 \end_layout
21540
21541 \begin_layout Description
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 ResetArgs
21547 \end_layout
21548
21549 \end_inset
21550
21551  [
21552 \begin_inset Flex Code
21553 status collapsed
21554
21555 \begin_layout Plain Layout
21556
21557 \emph on
21558 0
21559 \end_layout
21560
21561 \end_inset
21562
21563 ,
21564 \begin_inset space \thinspace{}
21565 \end_inset
21566
21567
21568 \begin_inset Flex Code
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 1
21573 \end_layout
21574
21575 \end_inset
21576
21577 ] Resets the \SpecialChar LaTeX
21578  arguments of this layout (as defined via the 
21579 \begin_inset Flex Code
21580 status collapsed
21581
21582 \begin_layout Plain Layout
21583 Argument
21584 \end_layout
21585
21586 \end_inset
21587
21588  tag).
21589  This is useful if you have copied a style via 
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 CopyStyle
21595 \end_layout
21596
21597 \end_inset
21598
21599 , but you do not want to inherit its (required and optional) arguments.
21600 \end_layout
21601
21602 \begin_layout Description
21603 \begin_inset Flex Code
21604 status collapsed
21605
21606 \begin_layout Plain Layout
21607 ResetsFont
21608 \end_layout
21609
21610 \end_inset
21611
21612  [
21613 \begin_inset Flex Code
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617 0
21618 \end_layout
21619
21620 \end_inset
21621
21622 ,
21623 \begin_inset space \thinspace{}
21624 \end_inset
21625
21626
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631
21632 \emph on
21633 1
21634 \end_layout
21635
21636 \end_inset
21637
21638 ] Whether this inset should use the font of its surrounding environment
21639  or uses its own.
21640  Default is false: use the font of the surrounding environment.
21641 \end_layout
21642
21643 \begin_layout Description
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 RightDelim
21649 \end_layout
21650
21651 \end_inset
21652
21653  [
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 string
21659 \end_layout
21660
21661 \end_inset
21662
21663 ] A string that is put at the end of the layout content.
21664  A line break in the output can be indicated by 
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 <br/>
21670 \end_layout
21671
21672 \end_inset
21673
21674 .
21675 \end_layout
21676
21677 \begin_layout Description
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 Spellcheck
21683 \end_layout
21684
21685 \end_inset
21686
21687  [
21688 \begin_inset Flex Code
21689 status collapsed
21690
21691 \begin_layout Plain Layout
21692 0
21693 \end_layout
21694
21695 \end_inset
21696
21697 ,
21698 \begin_inset space \thinspace{}
21699 \end_inset
21700
21701
21702 \begin_inset Flex Code
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706
21707 \emph on
21708 1
21709 \end_layout
21710
21711 \end_inset
21712
21713 ] Allow spell-checking the contents of this inset.
21714  Default is true.
21715 \end_layout
21716
21717 \begin_layout Subsection
21718 Counters
21719 \begin_inset CommandInset label
21720 LatexCommand label
21721 name "subsec:Counters"
21722
21723 \end_inset
21724
21725
21726 \end_layout
21727
21728 \begin_layout Standard
21729 It is necessary to define the counters (
21730 \begin_inset Flex Noun
21731 status collapsed
21732
21733 \begin_layout Plain Layout
21734 chapter
21735 \end_layout
21736
21737 \end_inset
21738
21739
21740 \begin_inset Flex Noun
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 figure
21745 \end_layout
21746
21747 \end_inset
21748
21749 , \SpecialChar ldots
21750 ) in the text class itself.
21751  The standard counters are defined in the file 
21752 \begin_inset Flex Code
21753 status collapsed
21754
21755 \begin_layout Plain Layout
21756 stdcounters.inc
21757 \end_layout
21758
21759 \end_inset
21760
21761 , so you may have to do no more than add
21762 \end_layout
21763
21764 \begin_layout LyX-Code
21765 Input stdcounters.inc
21766 \end_layout
21767
21768 \begin_layout Standard
21769 to your layout file to get them to work.
21770  But if you want to define custom counters, then you can do so.
21771  The counter declaration must begin with:
21772 \end_layout
21773
21774 \begin_layout LyX-Code
21775 Counter CounterName
21776 \end_layout
21777
21778 \begin_layout Standard
21779 where of course `
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784 CounterName
21785 \end_layout
21786
21787 \end_inset
21788
21789 ' is replaced by the name of the counter.
21790  And it must end with 
21791 \begin_inset Quotes eld
21792 \end_inset
21793
21794
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 End
21800 \end_layout
21801
21802 \end_inset
21803
21804
21805 \begin_inset Quotes erd
21806 \end_inset
21807
21808 .
21809  The following parameters can also be used:
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 InitialValue
21818 \end_layout
21819
21820 \end_inset
21821
21822  [
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 int=1
21828 \end_layout
21829
21830 \end_inset
21831
21832 ] Sets the initial value for the counter, to which it will be reset whenever
21833  that happens.
21834  Normally, one will want the default, 1.
21835 \end_layout
21836
21837 \begin_layout Description
21838 \begin_inset Flex Code
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 LabelString
21843 \end_layout
21844
21845 \end_inset
21846
21847  [
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 string
21853 \end_layout
21854
21855 \end_inset
21856
21857 =
21858 \begin_inset Quotes erd
21859 \end_inset
21860
21861
21862 \begin_inset Quotes erd
21863 \end_inset
21864
21865 ] When defined, this string defines how the counter is displayed.
21866  Setting this value sets 
21867 \begin_inset Flex Code
21868 status collapsed
21869
21870 \begin_layout Plain Layout
21871 LabelStringAppendix
21872 \end_layout
21873
21874 \end_inset
21875
21876  to the same value.
21877  The following special constructs can be used in the string:
21878 \end_layout
21879
21880 \begin_deeper
21881 \begin_layout Itemize
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886
21887 \backslash
21888 thecounter
21889 \end_layout
21890
21891 \end_inset
21892
21893  will be replaced by the expansion of the 
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 LabelString
21899 \end_layout
21900
21901 \end_inset
21902
21903  (or 
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 LabelStringAppendix
21909 \end_layout
21910
21911 \end_inset
21912
21913 ) of the counter 
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 counter
21919 \end_layout
21920
21921 \end_inset
21922
21923 .
21924  
21925 \end_layout
21926
21927 \begin_layout Itemize
21928 counter values can be expressed using \SpecialChar LaTeX
21929 -like macros
21930 \begin_inset Newline newline
21931 \end_inset
21932
21933
21934 \begin_inset Flex Code
21935 status collapsed
21936
21937 \begin_layout Plain Layout
21938
21939 \backslash
21940
21941 \emph on
21942 numbertype
21943 \emph default
21944 {
21945 \emph on
21946 counter
21947 \emph default
21948 }
21949 \end_layout
21950
21951 \end_inset
21952
21953 , where 
21954 \begin_inset Flex Code
21955 status collapsed
21956
21957 \begin_layout Plain Layout
21958
21959 \emph on
21960 numbertype
21961 \end_layout
21962
21963 \end_inset
21964
21965  can be:
21966 \begin_inset Foot
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970
21971 \family roman
21972 \series medium
21973 \shape up
21974 \size normal
21975 \emph off
21976 \bar no
21977 \noun off
21978 \color none
21979 Actually, the situation is a bit more complicated: any
21980 \family default
21981 \series default
21982 \shape default
21983 \emph default
21984 \bar default
21985  
21986 \size default
21987 \emph on
21988 \noun default
21989 \color inherit
21990 numbertype
21991 \family roman
21992 \series medium
21993 \shape up
21994 \size normal
21995 \emph off
21996 \bar no
21997 \noun off
21998  other than those described below will produce arabic numerals.
21999  It would not be surprising to see this change in the future.
22000 \end_layout
22001
22002 \end_inset
22003
22004  
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009 arabic
22010 \end_layout
22011
22012 \end_inset
22013
22014 : 1, 2, 3,\SpecialChar ldots
22015
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 alph
22021 \end_layout
22022
22023 \end_inset
22024
22025  for lower-case letters: a, b, c, \SpecialChar ldots
22026
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 Alph
22032 \end_layout
22033
22034 \end_inset
22035
22036  for upper-case letters: A, B, C, \SpecialChar ldots
22037
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042 roman
22043 \end_layout
22044
22045 \end_inset
22046
22047  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22048
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 Roman
22054 \end_layout
22055
22056 \end_inset
22057
22058  for upper-case roman numerals: I, II, III\SpecialChar ldots
22059
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064 hebrew
22065 \end_layout
22066
22067 \end_inset
22068
22069  for hebrew numerals.
22070 \end_layout
22071
22072 \end_deeper
22073 \begin_layout Standard
22074 If LabelString is not defined, a default value is constructed as follows:
22075  if the counter has a master counter 
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 master
22081 \end_layout
22082
22083 \end_inset
22084
22085  (defined via 
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 Within
22091 \end_layout
22092
22093 \end_inset
22094
22095 ), the string
22096 \begin_inset Newline newline
22097 \end_inset
22098
22099
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104
22105 \backslash
22106 themaster.
22107 \backslash
22108 arabic{counter}
22109 \end_layout
22110
22111 \end_inset
22112
22113  is used; otherwise the string 
22114 \begin_inset Flex Code
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118
22119 \backslash
22120 arabic{counter}
22121 \end_layout
22122
22123 \end_inset
22124
22125  is used.
22126 \end_layout
22127
22128 \begin_layout Description
22129 \begin_inset Flex Code
22130 status collapsed
22131
22132 \begin_layout Plain Layout
22133 LabelStringAppendix
22134 \end_layout
22135
22136 \end_inset
22137
22138  [
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 string
22144 \end_layout
22145
22146 \end_inset
22147
22148 =
22149 \begin_inset Quotes erd
22150 \end_inset
22151
22152
22153 \begin_inset Quotes erd
22154 \end_inset
22155
22156 ] Same as 
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 LabelString
22162 \end_layout
22163
22164 \end_inset
22165
22166 , but for use in the Appendix.
22167 \end_layout
22168
22169 \begin_layout Description
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 PrettyFormat
22175 \end_layout
22176
22177 \end_inset
22178
22179  [
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 string
22185 \end_layout
22186
22187 \end_inset
22188
22189 =
22190 \begin_inset Quotes erd
22191 \end_inset
22192
22193
22194 \begin_inset Quotes erd
22195 \end_inset
22196
22197 ] A format for use with formatted references to this counter.
22198  For example, one might want to have references to section numbers appear
22199  as 
22200 \begin_inset Quotes eld
22201 \end_inset
22202
22203 Section 2.4
22204 \begin_inset Quotes erd
22205 \end_inset
22206
22207 .
22208  The string should contain 
22209 \begin_inset Quotes eld
22210 \end_inset
22211
22212 ##
22213 \begin_inset Quotes erd
22214 \end_inset
22215
22216 .
22217  This will be replaced by the counter number itself.
22218  So, for sections, it would be: Section ##.
22219 \end_layout
22220
22221 \begin_layout Description
22222 \begin_inset Flex Code
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 Within
22227 \end_layout
22228
22229 \end_inset
22230
22231  [
22232 \begin_inset Flex Code
22233 status collapsed
22234
22235 \begin_layout Plain Layout
22236 string
22237 \end_layout
22238
22239 \end_inset
22240
22241 =
22242 \begin_inset Quotes erd
22243 \end_inset
22244
22245
22246 \begin_inset Quotes erd
22247 \end_inset
22248
22249 ] If this is set to the name of another counter, the present counter will
22250  be reset every time the other one is increased.
22251  For example, 
22252 \begin_inset Flex Code
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256 subsection
22257 \end_layout
22258
22259 \end_inset
22260
22261  is numbered inside 
22262 \begin_inset Flex Code
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 section
22267 \end_layout
22268
22269 \end_inset
22270
22271 .
22272 \end_layout
22273
22274 \begin_layout Subsection
22275 Font description
22276 \begin_inset CommandInset label
22277 LatexCommand label
22278 name "subsec:Font-description"
22279
22280 \end_inset
22281
22282
22283 \end_layout
22284
22285 \begin_layout Standard
22286 A font description looks like this:
22287 \end_layout
22288
22289 \begin_layout LyX-Code
22290 Font 
22291 \family roman
22292 \emph on
22293 or
22294 \family default
22295 \emph default
22296  LabelFont
22297 \emph on
22298  
22299 \family roman
22300 or
22301 \family default
22302 \emph default
22303  DefaultFont
22304 \end_layout
22305
22306 \begin_layout LyX-Code
22307  ...
22308 \end_layout
22309
22310 \begin_layout LyX-Code
22311 EndFont
22312 \end_layout
22313
22314 \begin_layout Standard
22315 The following commands are available:
22316 \end_layout
22317
22318 \begin_layout Description
22319 \begin_inset Flex Code
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323 Color
22324 \end_layout
22325
22326 \end_inset
22327
22328  [
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333
22334 \emph on
22335 none
22336 \end_layout
22337
22338 \end_inset
22339
22340
22341 \begin_inset Flex Code
22342 status collapsed
22343
22344 \begin_layout Plain Layout
22345 black
22346 \end_layout
22347
22348 \end_inset
22349
22350
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 white
22356 \end_layout
22357
22358 \end_inset
22359
22360
22361 \begin_inset Flex Code
22362 status collapsed
22363
22364 \begin_layout Plain Layout
22365 red
22366 \end_layout
22367
22368 \end_inset
22369
22370
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 green
22376 \end_layout
22377
22378 \end_inset
22379
22380
22381 \begin_inset Flex Code
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385 blue
22386 \end_layout
22387
22388 \end_inset
22389
22390
22391 \begin_inset Flex Code
22392 status collapsed
22393
22394 \begin_layout Plain Layout
22395 cyan
22396 \end_layout
22397
22398 \end_inset
22399
22400
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405 magenta
22406 \end_layout
22407
22408 \end_inset
22409
22410
22411 \begin_inset Flex Code
22412 status collapsed
22413
22414 \begin_layout Plain Layout
22415 yellow
22416 \end_layout
22417
22418 \end_inset
22419
22420
22421 \begin_inset Flex Code
22422 status collapsed
22423
22424 \begin_layout Plain Layout
22425 brown
22426 \end_layout
22427
22428 \end_inset
22429
22430
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 darkgray
22436 \end_layout
22437
22438 \end_inset
22439
22440
22441 \begin_inset Flex Code
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445 gray
22446 \end_layout
22447
22448 \end_inset
22449
22450
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 lightgray
22456 \end_layout
22457
22458 \end_inset
22459
22460
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 lime
22466 \end_layout
22467
22468 \end_inset
22469
22470
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 orange
22476 \end_layout
22477
22478 \end_inset
22479
22480
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 olive
22486 \end_layout
22487
22488 \end_inset
22489
22490
22491 \begin_inset Flex Code
22492 status collapsed
22493
22494 \begin_layout Plain Layout
22495 pink
22496 \end_layout
22497
22498 \end_inset
22499
22500
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 purple
22506 \end_layout
22507
22508 \end_inset
22509
22510
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 teal
22516 \end_layout
22517
22518 \end_inset
22519
22520
22521 \begin_inset Flex Code
22522 status collapsed
22523
22524 \begin_layout Plain Layout
22525 violet
22526 \end_layout
22527
22528 \end_inset
22529
22530 ]
22531 \end_layout
22532
22533 \begin_layout Description
22534 \begin_inset Flex Code
22535 status collapsed
22536
22537 \begin_layout Plain Layout
22538 Family
22539 \end_layout
22540
22541 \end_inset
22542
22543  [
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548
22549 \emph on
22550 Roman
22551 \end_layout
22552
22553 \end_inset
22554
22555
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 Sans
22561 \end_layout
22562
22563 \end_inset
22564
22565
22566 \begin_inset Flex Code
22567 status collapsed
22568
22569 \begin_layout Plain Layout
22570 Typewriter
22571 \end_layout
22572
22573 \end_inset
22574
22575 ]
22576 \end_layout
22577
22578 \begin_layout Description
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 Misc
22584 \end_layout
22585
22586 \end_inset
22587
22588  [
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 string
22594 \end_layout
22595
22596 \end_inset
22597
22598 ] Valid arguments are: 
22599 \begin_inset Flex Code
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603 emph
22604 \end_layout
22605
22606 \end_inset
22607
22608
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 noun
22614 \end_layout
22615
22616 \end_inset
22617
22618
22619 \begin_inset Flex Code
22620 status collapsed
22621
22622 \begin_layout Plain Layout
22623 strikeout
22624 \end_layout
22625
22626 \end_inset
22627
22628
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633 underbar
22634 \end_layout
22635
22636 \end_inset
22637
22638
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 uuline
22644 \end_layout
22645
22646 \end_inset
22647
22648
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 uwave
22654 \end_layout
22655
22656 \end_inset
22657
22658
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 no_emph
22664 \end_layout
22665
22666 \end_inset
22667
22668
22669 \begin_inset Flex Code
22670 status collapsed
22671
22672 \begin_layout Plain Layout
22673 no_noun
22674 \end_layout
22675
22676 \end_inset
22677
22678
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 no_strikeout
22684 \end_layout
22685
22686 \end_inset
22687
22688
22689 \begin_inset Flex Code
22690 status collapsed
22691
22692 \begin_layout Plain Layout
22693 no_bar
22694 \end_layout
22695
22696 \end_inset
22697
22698
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 no_uuline
22704 \end_layout
22705
22706 \end_inset
22707
22708  and 
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713 no_uwave
22714 \end_layout
22715
22716 \end_inset
22717
22718 .
22719  Each of these turns on or off the corresponding attribute.
22720  For example, 
22721 \begin_inset Flex Code
22722 status collapsed
22723
22724 \begin_layout Plain Layout
22725 emph
22726 \end_layout
22727
22728 \end_inset
22729
22730  turns on emphasis, and 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 no_emph
22736 \end_layout
22737
22738 \end_inset
22739
22740  turns it off.
22741  
22742 \begin_inset Newline newline
22743 \end_inset
22744
22745 If the latter seems puzzling, remember that the font settings for the present
22746  context are generally inherited from the surrounding context.
22747  So 
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 no_emph
22753 \end_layout
22754
22755 \end_inset
22756
22757  would turn off the emphasis that was anyway in effect, say, in a theorem
22758  environment.
22759 \end_layout
22760
22761 \begin_layout Description
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 Series
22767 \end_layout
22768
22769 \end_inset
22770
22771  [
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776
22777 \emph on
22778 Medium
22779 \end_layout
22780
22781 \end_inset
22782
22783
22784 \begin_inset Flex Code
22785 status collapsed
22786
22787 \begin_layout Plain Layout
22788 Bold
22789 \end_layout
22790
22791 \end_inset
22792
22793
22794 \end_layout
22795
22796 \begin_layout Description
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 Shape
22802 \end_layout
22803
22804 \end_inset
22805
22806  [
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811
22812 \emph on
22813 Up
22814 \end_layout
22815
22816 \end_inset
22817
22818
22819 \begin_inset Flex Code
22820 status collapsed
22821
22822 \begin_layout Plain Layout
22823 Italic
22824 \end_layout
22825
22826 \end_inset
22827
22828
22829 \begin_inset Flex Code
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 SmallCaps
22834 \end_layout
22835
22836 \end_inset
22837
22838
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843 Slanted
22844 \end_layout
22845
22846 \end_inset
22847
22848
22849 \end_layout
22850
22851 \begin_layout Description
22852 \begin_inset Flex Code
22853 status collapsed
22854
22855 \begin_layout Plain Layout
22856 Size
22857 \end_layout
22858
22859 \end_inset
22860
22861  [
22862 \begin_inset Flex Code
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866 tiny
22867 \end_layout
22868
22869 \end_inset
22870
22871
22872 \begin_inset Flex Code
22873 status collapsed
22874
22875 \begin_layout Plain Layout
22876 small
22877 \end_layout
22878
22879 \end_inset
22880
22881
22882 \begin_inset Flex Code
22883 status collapsed
22884
22885 \begin_layout Plain Layout
22886
22887 \emph on
22888 normal
22889 \end_layout
22890
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 large
22899 \end_layout
22900
22901 \end_inset
22902
22903
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 larger
22909 \end_layout
22910
22911 \end_inset
22912
22913
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 largest
22919 \end_layout
22920
22921 \end_inset
22922
22923
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 huge
22929 \end_layout
22930
22931 \end_inset
22932
22933
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 giant
22939 \end_layout
22940
22941 \end_inset
22942
22943 ]
22944 \end_layout
22945
22946 \begin_layout Subsection
22947 \begin_inset CommandInset label
22948 LatexCommand label
22949 name "subsec:Citation-engine-description"
22950
22951 \end_inset
22952
22953 Cite engine description
22954 \end_layout
22955
22956 \begin_layout Standard
22957 The 
22958 \begin_inset Flex Code
22959 status collapsed
22960
22961 \begin_layout Plain Layout
22962 CiteEngine
22963 \end_layout
22964
22965 \end_inset
22966
22967  blocks, as used mainly in cite engine files (see 
22968 \begin_inset CommandInset ref
22969 LatexCommand ref
22970 reference "subsec:Cite-Engine-Files"
22971 plural "false"
22972 caps "false"
22973 noprefix "false"
22974
22975 \end_inset
22976
22977 ), define the citation commands provided by a specific 
22978 \begin_inset Quotes eld
22979 \end_inset
22980
22981 cite engine
22982 \begin_inset Quotes erd
22983 \end_inset
22984
22985 .
22986  A cite engine, in \SpecialChar LyX
22987  terms, is way specific way to format citations, using
22988  numbers, author names and/or years.
22989  Currently, \SpecialChar LyX
22990  supports three such engine types, namely:
22991 \end_layout
22992
22993 \begin_layout Enumerate
22994 \begin_inset Flex Code
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998 default
22999 \end_layout
23000
23001 \end_inset
23002
23003 : the default Bib\SpecialChar TeX
23004  way to format citations, a simple numeric style (e.
23005 \begin_inset space \thinspace{}
23006 \end_inset
23007
23008 g., 
23009 \begin_inset Quotes eld
23010 \end_inset
23011
23012 [1]
23013 \begin_inset Quotes erd
23014 \end_inset
23015
23016 )
23017 \end_layout
23018
23019 \begin_layout Enumerate
23020 \begin_inset Flex Code
23021 status collapsed
23022
23023 \begin_layout Plain Layout
23024 authoryear
23025 \end_layout
23026
23027 \end_inset
23028
23029 : Harvard-styled citations using author names and publication year (e.
23030 \begin_inset space \thinspace{}
23031 \end_inset
23032
23033 g., 
23034 \begin_inset Quotes eld
23035 \end_inset
23036
23037 Smith and Miller (2017b)
23038 \begin_inset Quotes erd
23039 \end_inset
23040
23041 )
23042 \end_layout
23043
23044 \begin_layout Enumerate
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 numerical
23050 \end_layout
23051
23052 \end_inset
23053
23054 : extended numerical citations that also allow for author or title next
23055  to the number (e.
23056 \begin_inset space \thinspace{}
23057 \end_inset
23058
23059 g., 
23060 \begin_inset Quotes eld
23061 \end_inset
23062
23063 Smith and Miller [1]
23064 \begin_inset Quotes erd
23065 \end_inset
23066
23067 )
23068 \end_layout
23069
23070 \begin_layout Standard
23071 \begin_inset Flex Code
23072 status collapsed
23073
23074 \begin_layout Plain Layout
23075 CiteEngine
23076 \end_layout
23077
23078 \end_inset
23079
23080  blocks look like this:
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084 CiteEngine default
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088  cite
23089 \end_layout
23090
23091 \begin_layout LyX-Code
23092  Citep*[][]
23093 \end_layout
23094
23095 \begin_layout LyX-Code
23096  citeyearpar[][]=parencite*
23097 \end_layout
23098
23099 \begin_layout LyX-Code
23100  ...
23101 \end_layout
23102
23103 \begin_layout LyX-Code
23104 End
23105 \end_layout
23106
23107 \begin_layout Standard
23108 The tag following 
23109 \begin_inset Flex Code
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113 CiteEngine
23114 \end_layout
23115
23116 \end_inset
23117
23118  denotes the engine.
23119  The individual lines respectively define a cite command or cite command
23120  paradigm supported by this engine.
23121  The line can be as simple as a cite command that is used both to name the
23122  respective \SpecialChar LyX
23123  command and the \SpecialChar LaTeX
23124  output or more complex in order to differentiate
23125  things.
23126  The full syntax is:
23127 \end_layout
23128
23129 \begin_layout LyX-Code
23130 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23131 \end_layout
23132
23133 \begin_layout Itemize
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 LyXName
23139 \end_layout
23140
23141 \end_inset
23142
23143 : The name as used in the 
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 *.lyx
23149 \end_layout
23150
23151 \end_inset
23152
23153  file.
23154 \end_layout
23155
23156 \begin_deeper
23157 \begin_layout Standard
23158 For portability reasons, we try to use the same name for same-formatted
23159  commands in different cite packages (thus many names stem from natbib,
23160  and thus we need to differentiate a 
23161 \begin_inset Flex Code
23162 status collapsed
23163
23164 \begin_layout Plain Layout
23165 latexcmd
23166 \end_layout
23167
23168 \end_inset
23169
23170  sometimes, if the \SpecialChar LaTeX
23171  command names differ).
23172 \end_layout
23173
23174 \end_deeper
23175 \begin_layout Itemize
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 alias
23181 \end_layout
23182
23183 \end_inset
23184
23185 : a (comma-separated) list of commands that fall back to the given 
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 LyXName
23191 \end_layout
23192
23193 \end_inset
23194
23195  in the current engine.
23196  This eases the switch of citation packages and engines.
23197  The 
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 alias
23203 \end_layout
23204
23205 \end_inset
23206
23207  can be compared to 
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212 ObsoletedBy
23213 \end_layout
23214
23215 \end_inset
23216
23217  in layout definitions.
23218 \end_layout
23219
23220 \begin_layout Itemize
23221 \begin_inset Flex Code
23222 status collapsed
23223
23224 \begin_layout Plain Layout
23225 latexcmd
23226 \end_layout
23227
23228 \end_inset
23229
23230 : The actual \SpecialChar LaTeX
23231  command that is output.
23232  
23233 \end_layout
23234
23235 \begin_layout Standard
23236 \begin_inset Flex Code
23237 status collapsed
23238
23239 \begin_layout Plain Layout
23240 Alias
23241 \end_layout
23242
23243 \end_inset
23244
23245  and 
23246 \begin_inset Flex Code
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250 latexcmd
23251 \end_layout
23252
23253 \end_inset
23254
23255  are optional.
23256  If no 
23257 \begin_inset Flex Code
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261 latexcmd
23262 \end_layout
23263
23264 \end_inset
23265
23266  is given, the 
23267 \begin_inset Flex Code
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 LyXName
23272 \end_layout
23273
23274 \end_inset
23275
23276  will be output to \SpecialChar LaTeX
23277 .
23278 \end_layout
23279
23280 \begin_layout Standard
23281 Note further:
23282 \end_layout
23283
23284 \begin_layout Itemize
23285 Capitalization indicates that the command also has a capitalized form (
23286 \begin_inset Flex Code
23287 status collapsed
23288
23289 \begin_layout Plain Layout
23290
23291 \backslash
23292 Latexcmd
23293 \end_layout
23294
23295 \end_inset
23296
23297  vs.
23298  
23299 \begin_inset Flex Code
23300 status collapsed
23301
23302 \begin_layout Plain Layout
23303
23304 \backslash
23305 latexcmd
23306 \end_layout
23307
23308 \end_inset
23309
23310 ).
23311  These usually enforce up-casing of name prefixes (
23312 \emph on
23313 von Goethe
23314 \emph default
23315  
23316 \begin_inset Formula $\Rightarrow$
23317 \end_inset
23318
23319  
23320 \emph on
23321 Von Goethe
23322 \emph default
23323 ).
23324 \end_layout
23325
23326 \begin_layout Itemize
23327 Brackets 
23328 \begin_inset Flex Code
23329 status collapsed
23330
23331 \begin_layout Plain Layout
23332 []
23333 \end_layout
23334
23335 \end_inset
23336
23337  indicate the number of optional arguments (there can be 0–2).
23338 \end_layout
23339
23340 \begin_layout Itemize
23341 A star 
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 *
23347 \end_layout
23348
23349 \end_inset
23350
23351  indicates there is a starred version of the command (
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356
23357 \backslash
23358 latexcmd*
23359 \end_layout
23360
23361 \end_inset
23362
23363  vs.
23364  
23365 \begin_inset Flex Code
23366 status collapsed
23367
23368 \begin_layout Plain Layout
23369
23370 \backslash
23371 latexcmd
23372 \end_layout
23373
23374 \end_inset
23375
23376 ).
23377  
23378 \end_layout
23379
23380 \begin_deeper
23381 \begin_layout Standard
23382 By default, the starred version means: Output all authors even if it should
23383  be shortened with 
23384 \begin_inset Quotes eld
23385 \end_inset
23386
23387 et al.
23388 \begin_inset Quotes erd
23389 \end_inset
23390
23391  due to the 
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396 MaxCiteNames
23397 \end_layout
23398
23399 \end_inset
23400
23401  threshold.
23402 \end_layout
23403
23404 \begin_layout Standard
23405 If the star has a different meaning for a given command, it can be specified
23406  in angle brackets: 
23407 \begin_inset Flex Code
23408 status collapsed
23409
23410 \begin_layout Plain Layout
23411 <!_stardesc!_stardesctooltip>
23412 \end_layout
23413
23414 \end_inset
23415
23416 .
23417  Maximal two translatable macro keywords, marked by the prefix 
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422 !_
23423 \end_layout
23424
23425 \end_inset
23426
23427 , can be given.
23428  The first points to the string that replaces the 
23429 \begin_inset Quotes eld
23430 \end_inset
23431
23432 Full aut&hor list
23433 \begin_inset Quotes erd
23434 \end_inset
23435
23436  checkbox label in the citation dialog, the second one to an optional tool
23437  tip for this checkbox.
23438  
23439 \end_layout
23440
23441 \begin_layout Standard
23442 Note that these two macros have to be defined in a 
23443 \begin_inset Flex Code
23444 status collapsed
23445
23446 \begin_layout Plain Layout
23447 CiteFormat
23448 \end_layout
23449
23450 \end_inset
23451
23452  (see next section), dropping the 
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457 !
23458 \end_layout
23459
23460 \end_inset
23461
23462  from the prefix, like this: 
23463 \end_layout
23464
23465 \begin_layout LyX-Code
23466 _stardesc Sta&rred command label
23467 \end_layout
23468
23469 \begin_layout LyX-Code
23470 _stardesctooltip Tooltip for the starred command checkbox.
23471 \end_layout
23472
23473 \end_deeper
23474 \begin_layout Itemize
23475 A dollar sign 
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480 $
23481 \end_layout
23482
23483 \end_inset
23484
23485  indicates that this command features 
23486 \begin_inset Quotes eld
23487 \end_inset
23488
23489 qualified citation lists
23490 \begin_inset Quotes erd
23491 \end_inset
23492
23493 .
23494  This is a 
23495 \family sans
23496 Biblatex
23497 \family default
23498 -specific feature for multi-reference citations where an individual pre-
23499  and postnote can be given to each reference in the list.
23500  Please refer to the 
23501 \family sans
23502 Biblatex
23503 \family default
23504  manual for details.
23505 \change_inserted -712698321 1526898670
23506
23507 \end_layout
23508
23509 \begin_layout Standard
23510
23511 \change_inserted -712698321 1526899524
23512 If you want to add a cite command to a cite engine (e.
23513 \begin_inset space \thinspace{}
23514 \end_inset
23515
23516 g., add a specific command provided by a class), you can use 
23517 \begin_inset Flex Code
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521
23522 \change_inserted -712698321 1526898768
23523 AddToCiteEngine <engine type> \SpecialChar ldots
23524  End
23525 \change_unchanged
23526
23527 \end_layout
23528
23529 \end_inset
23530
23531 .
23532  Note that only cite commands that do not exist yet are added.
23533 \change_unchanged
23534
23535 \end_layout
23536
23537 \begin_layout Subsection
23538 \begin_inset CommandInset label
23539 LatexCommand label
23540 name "subsec:Citation-format-description"
23541
23542 \end_inset
23543
23544 Cite format description
23545 \end_layout
23546
23547 \begin_layout Standard
23548 The 
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 CiteFormat
23554 \end_layout
23555
23556 \end_inset
23557
23558  blocks are used to describe how bibliographic information should be displayed,
23559  both within \SpecialChar LyX
23560  itself (in the citation dialog and in tooltips, for example)
23561  and in XHTML output.
23562  Such a block might look like this:
23563 \end_layout
23564
23565 \begin_layout LyX-Code
23566 CiteFormat
23567 \end_layout
23568
23569 \begin_layout LyX-Code
23570  article ...
23571 \end_layout
23572
23573 \begin_layout LyX-Code
23574  book ...
23575 \end_layout
23576
23577 \begin_layout LyX-Code
23578 End
23579 \end_layout
23580
23581 \begin_layout Standard
23582 or
23583 \end_layout
23584
23585 \begin_layout LyX-Code
23586 CiteFormat
23587 \end_layout
23588
23589 \begin_layout LyX-Code
23590  cite ...
23591 \end_layout
23592
23593 \begin_layout LyX-Code
23594  citet*[][] ...
23595 \end_layout
23596
23597 \begin_layout LyX-Code
23598 End
23599 \end_layout
23600
23601 \begin_layout Standard
23602 In the first case, the individual lines define how the bibliographic information
23603  associated with an article or book, respectively, is to be displayed, and
23604  such a definition can be given for any 
23605 \begin_inset Quotes els
23606 \end_inset
23607
23608 entry type
23609 \begin_inset Quotes ers
23610 \end_inset
23611
23612  that might be present in a Bib\SpecialChar TeX
23613  file.
23614  \SpecialChar LyX
23615  defines a default format in the source code that will be used if no specific
23616  definition has been given.
23617  \SpecialChar LyX
23618  predefines several formats in the file 
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 stdciteformats.inc
23624 \end_layout
23625
23626 \end_inset
23627
23628 , which is included in most of \SpecialChar LyX
23629 's document classes.
23630 \end_layout
23631
23632 \begin_layout Standard
23633 In the second case, the lines define how a specific citation command (in
23634  the example 
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639
23640 \backslash
23641 cite
23642 \end_layout
23643
23644 \end_inset
23645
23646
23647 \begin_inset Flex Code
23648 status collapsed
23649
23650 \begin_layout Plain Layout
23651
23652 \backslash
23653 citet
23654 \end_layout
23655
23656 \end_inset
23657
23658 ) is to be displayed on the citation inset label, in the citation dialog,
23659  menu or XHTML output.
23660  \SpecialChar LyX
23661  defines such formats for the citation style variants it supports via 
23662 \family sans
23663 Document\SpecialChar menuseparator
23664 Setting\SpecialChar menuseparator
23665 Bibliography\SpecialChar ldots
23666
23667 \family default
23668  in specific 
23669 \begin_inset Flex Code
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 *.citeengine
23674 \end_layout
23675
23676 \end_inset
23677
23678  files that are shipped with \SpecialChar LyX
23679  (see 
23680 \begin_inset CommandInset ref
23681 LatexCommand ref
23682 reference "subsec:Cite-Engine-Files"
23683 plural "false"
23684 caps "false"
23685 noprefix "false"
23686
23687 \end_inset
23688
23689 ).
23690 \end_layout
23691
23692 \begin_layout Standard
23693 The definitions use a simple language that allows Bib\SpecialChar TeX
23694  keys to be replaced
23695  with their values.
23696  Keys should be enclosed in 
23697 \begin_inset Flex Code
23698 status collapsed
23699
23700 \begin_layout Plain Layout
23701 %
23702 \end_layout
23703
23704 \end_inset
23705
23706  signs, e.g.: 
23707 \begin_inset Flex Code
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711 %author%
23712 \end_layout
23713
23714 \end_inset
23715
23716 .
23717  So a simple definition might look like this:
23718 \end_layout
23719
23720 \begin_layout LyX-Code
23721 misc %author%, 
23722 \begin_inset Quotes eld
23723 \end_inset
23724
23725 %title%
23726 \begin_inset Quotes erd
23727 \end_inset
23728
23729 .
23730 \end_layout
23731
23732 \begin_layout Standard
23733 This would print the author, followed by a comma, followed by the title,
23734  in quotes, followed by a period.
23735 \end_layout
23736
23737 \begin_layout Standard
23738 Of course, sometimes you may want to print a key only if it exists.
23739  This can be done by using a conditional construction, such as: 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 {%volume%[[vol.
23745 \begin_inset space ~
23746 \end_inset
23747
23748 %volume%]]}
23749 \end_layout
23750
23751 \end_inset
23752
23753 .
23754  This says: If the 
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 volume
23760 \end_layout
23761
23762 \end_inset
23763
23764  key exists, then print 
23765 \begin_inset Quotes eld
23766 \end_inset
23767
23768 vol.
23769 \begin_inset space ~
23770 \end_inset
23771
23772
23773 \begin_inset Quotes erd
23774 \end_inset
23775
23776  followed by the volume key.
23777  It is also possible to have an else clause in the conditional, such as:
23778 \begin_inset Newline newline
23779 \end_inset
23780
23781
23782 \begin_inset Flex Code
23783 status collapsed
23784
23785 \begin_layout Plain Layout
23786 {%author%[[%author%]][[%editor%, ed.]]}
23787 \end_layout
23788
23789 \end_inset
23790
23791 .
23792 \begin_inset Newline newline
23793 \end_inset
23794
23795 Here, the 
23796 \begin_inset Flex Code
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800 author
23801 \end_layout
23802
23803 \end_inset
23804
23805  key is printed if it exists; otherwise, the editor key is printed, followed
23806  by 
23807 \begin_inset Quotes eld
23808 \end_inset
23809
23810 ,
23811 \begin_inset space ~
23812 \end_inset
23813
23814 ed.
23815 \begin_inset Quotes erd
23816 \end_inset
23817
23818  Note that the key is again enclosed in 
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 %
23824 \end_layout
23825
23826 \end_inset
23827
23828  signs; the entire conditional is enclosed in braces; and the if and else
23829  clauses are enclosed in double brackets, 
23830 \begin_inset Quotes eld
23831 \end_inset
23832
23833
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838 [[
23839 \end_layout
23840
23841 \end_inset
23842
23843
23844 \begin_inset Quotes eld
23845 \end_inset
23846
23847  and 
23848 \begin_inset Quotes eld
23849 \end_inset
23850
23851
23852 \begin_inset Flex Code
23853 status collapsed
23854
23855 \begin_layout Plain Layout
23856 ]]
23857 \end_layout
23858
23859 \end_inset
23860
23861
23862 \begin_inset Quotes erd
23863 \end_inset
23864
23865 .
23866  There must be no space between any of these.
23867 \end_layout
23868
23869 \begin_layout Standard
23870 Next to the entry keys, there are some special keys that can be used for
23871  these conditionals:
23872 \end_layout
23873
23874 \begin_layout Itemize
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879 {%dialog%[[true]][[false]]}
23880 \end_layout
23881
23882 \end_inset
23883
23884 : process the 
23885 \begin_inset Quotes eld
23886 \end_inset
23887
23888 true
23889 \begin_inset Quotes erd
23890 \end_inset
23891
23892  part for dialogs and menus, the 
23893 \begin_inset Quotes eld
23894 \end_inset
23895
23896 false
23897 \begin_inset Quotes erd
23898 \end_inset
23899
23900  part for other contexts (workarea, export)
23901 \end_layout
23902
23903 \begin_layout Itemize
23904 \begin_inset Flex Code
23905 status collapsed
23906
23907 \begin_layout Plain Layout
23908 {%export%[[true]][[false]]}
23909 \end_layout
23910
23911 \end_inset
23912
23913 : process the 
23914 \begin_inset Quotes eld
23915 \end_inset
23916
23917 true
23918 \begin_inset Quotes erd
23919 \end_inset
23920
23921  part for export and menus, the 
23922 \begin_inset Quotes eld
23923 \end_inset
23924
23925 false
23926 \begin_inset Quotes erd
23927 \end_inset
23928
23929  part for other contexts (workarea, dialog)
23930 \end_layout
23931
23932 \begin_layout Itemize
23933 \begin_inset Flex Code
23934 status collapsed
23935
23936 \begin_layout Plain Layout
23937 {%next%[[true]]}
23938 \end_layout
23939
23940 \end_inset
23941
23942 : process the 
23943 \begin_inset Quotes eld
23944 \end_inset
23945
23946 true
23947 \begin_inset Quotes erd
23948 \end_inset
23949
23950  part if another item follows (e.
23951 \begin_inset space \thinspace{}
23952 \end_inset
23953
23954 g., in a citation with multiple keys)
23955 \end_layout
23956
23957 \begin_layout Itemize
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 {%second%[[true]][[false]]}
23963 \end_layout
23964
23965 \end_inset
23966
23967 : process the 
23968 \begin_inset Quotes eld
23969 \end_inset
23970
23971 true
23972 \begin_inset Quotes erd
23973 \end_inset
23974
23975  if this is the second of multiple items, else the 
23976 \begin_inset Quotes eld
23977 \end_inset
23978
23979 false
23980 \begin_inset Quotes erd
23981 \end_inset
23982
23983  part
23984 \end_layout
23985
23986 \begin_layout Itemize
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991 {%ifstar%[[true]][[false]]}
23992 \end_layout
23993
23994 \end_inset
23995
23996 : process the 
23997 \begin_inset Quotes eld
23998 \end_inset
23999
24000 true
24001 \begin_inset Quotes erd
24002 \end_inset
24003
24004  part for starred citation commands (such as 
24005 \begin_inset Flex Code
24006 status collapsed
24007
24008 \begin_layout Plain Layout
24009
24010 \backslash
24011 cite*
24012 \end_layout
24013
24014 \end_inset
24015
24016 ), the false part for unstarred
24017 \end_layout
24018
24019 \begin_layout Itemize
24020 \begin_inset Flex Code
24021 status collapsed
24022
24023 \begin_layout Plain Layout
24024 {%ifentrytype:<type>%[[true]][[false]]}
24025 \end_layout
24026
24027 \end_inset
24028
24029 : process the 
24030 \begin_inset Quotes eld
24031 \end_inset
24032
24033 true
24034 \begin_inset Quotes erd
24035 \end_inset
24036
24037  if the current entry type matches 
24038 \begin_inset Flex Code
24039 status collapsed
24040
24041 \begin_layout Plain Layout
24042 <type>
24043 \end_layout
24044
24045 \end_inset
24046
24047 , else the false part (e.g., in a citation definition: 
24048 \begin_inset Flex Code
24049 status collapsed
24050
24051 \begin_layout Plain Layout
24052 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24053 \end_layout
24054
24055 \end_inset
24056
24057 )
24058 \end_layout
24059
24060 \begin_layout Itemize
24061 \begin_inset Flex Code
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065 {%ifmultiple:<authortype>%[[true]][[false]]}
24066 \end_layout
24067
24068 \end_inset
24069
24070 : process the 
24071 \begin_inset Quotes eld
24072 \end_inset
24073
24074 true
24075 \begin_inset Quotes erd
24076 \end_inset
24077
24078  if the current author type (author, editor etc.) has multiple authors, else
24079  the false part (e.g., in a bibliography definition: 
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 {%ifmultiple:editor%[[eds.]][[ed.]]}
24085 \end_layout
24086
24087 \end_inset
24088
24089 )
24090 \end_layout
24091
24092 \begin_layout Itemize
24093 \begin_inset Flex Code
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 {%ifqualified%[[true]][[false]]}
24098 \end_layout
24099
24100 \end_inset
24101
24102 : process the 
24103 \begin_inset Quotes eld
24104 \end_inset
24105
24106 true
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110  part if the current citation is a qualified citation list (a specific 
24111 \family sans
24112 Biblatex
24113 \family default
24114  format for multi-reference citations), the false part if this is not the
24115  case.
24116 \end_layout
24117
24118 \begin_layout Standard
24119 We said that 
24120 \begin_inset Flex Code
24121 status collapsed
24122
24123 \begin_layout Plain Layout
24124 %author%
24125 \end_layout
24126
24127 \end_inset
24128
24129  prints the author key as it is recorded in the bibliography file.
24130  This might not be what you want, since it will result in a string such
24131  as 
24132 \begin_inset Quotes eld
24133 \end_inset
24134
24135 Miller, Peter and Smith, Mary and White, Jane
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139  (since 
24140 \begin_inset Quotes eld
24141 \end_inset
24142
24143 and
24144 \begin_inset Quotes erd
24145 \end_inset
24146
24147  is used by Bib\SpecialChar TeX
24148  to delimit authors).
24149  \SpecialChar LyX
24150  therefore provides some methods to get properly formatted name lists (which
24151  will also get translated).
24152  The following keys are provided:
24153 \end_layout
24154
24155 \begin_layout Enumerate
24156 For name lists with pre- and surname, suitable for the main authors/editors
24157  of a bibliography item.
24158  The 
24159 \begin_inset Flex Code
24160 status collapsed
24161
24162 \begin_layout Plain Layout
24163 <nametype>
24164 \end_layout
24165
24166 \end_inset
24167
24168  part denotes the kind of list that is requested (e.g.
24169  
24170 \begin_inset Flex Code
24171 status collapsed
24172
24173 \begin_layout Plain Layout
24174 <nametype:author>
24175 \end_layout
24176
24177 \end_inset
24178
24179 ):
24180 \end_layout
24181
24182 \begin_deeper
24183 \begin_layout Itemize
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 %abbrvnames:<nametype>%
24189 \end_layout
24190
24191 \end_inset
24192
24193 : Provides a name list which is abbreviated (with 
24194 \begin_inset Quotes eld
24195 \end_inset
24196
24197 et al.
24198 \begin_inset Quotes erd
24199 \end_inset
24200
24201 ) when 
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 MaxCiteNames
24207 \end_layout
24208
24209 \end_inset
24210
24211  is reached.
24212 \end_layout
24213
24214 \begin_layout Itemize
24215 \begin_inset Flex Code
24216 status collapsed
24217
24218 \begin_layout Plain Layout
24219 %fullnames:<nametype>%
24220 \end_layout
24221
24222 \end_inset
24223
24224 : Provides a full name list (never abbreviated with 
24225 \begin_inset Quotes eld
24226 \end_inset
24227
24228 et al.
24229 \begin_inset Quotes erd
24230 \end_inset
24231
24232 ).
24233 \end_layout
24234
24235 \begin_layout Itemize
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 %forceabbrvnames:<nametype>%
24241 \end_layout
24242
24243 \end_inset
24244
24245 : Provides a name list which is always abbreviated (with 
24246 \begin_inset Quotes eld
24247 \end_inset
24248
24249 et al.
24250 \begin_inset Quotes erd
24251 \end_inset
24252
24253 ) irrespective of 
24254 \begin_inset Flex Code
24255 status collapsed
24256
24257 \begin_layout Plain Layout
24258 MaxCiteNames
24259 \end_layout
24260
24261 \end_inset
24262
24263 .
24264 \end_layout
24265
24266 \end_deeper
24267 \begin_layout Enumerate
24268 Alternative name lists with pre- and surname, if the order of pre- and surname
24269  inside the bibliography item differs (as in: 
24270 \begin_inset Quotes eld
24271 \end_inset
24272
24273 Miller, John: Some text, in: Mary Smith, ed.: A volume
24274 \begin_inset Quotes erd
24275 \end_inset
24276
24277 ):
24278 \end_layout
24279
24280 \begin_deeper
24281 \begin_layout Itemize
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 %abbrvbynames:<nametype>%
24287 \end_layout
24288
24289 \end_inset
24290
24291 : Provides a name list which is abbreviated (with 
24292 \begin_inset Quotes eld
24293 \end_inset
24294
24295 et al.
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299 ) when 
24300 \begin_inset Flex Code
24301 status collapsed
24302
24303 \begin_layout Plain Layout
24304 MaxCiteNames
24305 \end_layout
24306
24307 \end_inset
24308
24309  is reached.
24310 \end_layout
24311
24312 \begin_layout Itemize
24313 \begin_inset Flex Code
24314 status collapsed
24315
24316 \begin_layout Plain Layout
24317 %fullbynames:<nametype>%
24318 \end_layout
24319
24320 \end_inset
24321
24322 : Provides a full name list (never abbreviated with 
24323 \begin_inset Quotes eld
24324 \end_inset
24325
24326 et al.
24327 \begin_inset Quotes erd
24328 \end_inset
24329
24330 ).
24331 \end_layout
24332
24333 \begin_layout Itemize
24334 \begin_inset Flex Code
24335 status collapsed
24336
24337 \begin_layout Plain Layout
24338 %forceabbrvbynames:<nametype>%
24339 \end_layout
24340
24341 \end_inset
24342
24343 : Provides a name list which is always abbreviated (with 
24344 \begin_inset Quotes eld
24345 \end_inset
24346
24347 et al.
24348 \begin_inset Quotes erd
24349 \end_inset
24350
24351 ) irrespective of 
24352 \begin_inset Flex Code
24353 status collapsed
24354
24355 \begin_layout Plain Layout
24356 MaxCiteNames
24357 \end_layout
24358
24359 \end_inset
24360
24361 .
24362 \end_layout
24363
24364 \end_deeper
24365 \begin_layout Enumerate
24366 And finally name lists which consist of family names only, as used in author-yea
24367 r citation labels.
24368  These do not take a 
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 <nametype>
24374 \end_layout
24375
24376 \end_inset
24377
24378  part, but always return either an author list or, if this does not exist,
24379  an editor list (as common in author-year labels):
24380 \end_layout
24381
24382 \begin_deeper
24383 \begin_layout Itemize
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388 %abbrvciteauthor%
24389 \end_layout
24390
24391 \end_inset
24392
24393 : Provides a name list which is abbreviated (with 
24394 \begin_inset Quotes eld
24395 \end_inset
24396
24397 et al.
24398 \begin_inset Quotes erd
24399 \end_inset
24400
24401 ) when 
24402 \begin_inset Flex Code
24403 status collapsed
24404
24405 \begin_layout Plain Layout
24406 MaxCiteNames
24407 \end_layout
24408
24409 \end_inset
24410
24411  is reached.
24412 \end_layout
24413
24414 \begin_layout Itemize
24415 \begin_inset Flex Code
24416 status collapsed
24417
24418 \begin_layout Plain Layout
24419 %fullciteauthor%
24420 \end_layout
24421
24422 \end_inset
24423
24424 : Provides a full name list (never abbreviated with 
24425 \begin_inset Quotes eld
24426 \end_inset
24427
24428 et al.
24429 \begin_inset Quotes erd
24430 \end_inset
24431
24432 ).
24433 \end_layout
24434
24435 \begin_layout Itemize
24436 \begin_inset Flex Code
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440 %forceabbrvciteauthor%
24441 \end_layout
24442
24443 \end_inset
24444
24445 : Provides a name list which is always abbreviated (with 
24446 \begin_inset Quotes eld
24447 \end_inset
24448
24449 et al.
24450 \begin_inset Quotes erd
24451 \end_inset
24452
24453 ) irrespective of 
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 MaxCiteNames
24459 \end_layout
24460
24461 \end_inset
24462
24463 .
24464 \end_layout
24465
24466 \end_deeper
24467 \begin_layout Standard
24468 The order of pre- and surname in the former two lists can be adjusted by
24469  these macros:
24470 \end_layout
24471
24472 \begin_layout Itemize
24473 \begin_inset Flex Code
24474 status collapsed
24475
24476 \begin_layout Plain Layout
24477 !firstnameform %surname%, %prename%
24478 \end_layout
24479
24480 \end_inset
24481
24482  (first author in lists of type 1)
24483 \end_layout
24484
24485 \begin_layout Itemize
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 !othernameform %surname%, %prename%
24491 \end_layout
24492
24493 \end_inset
24494
24495  (other authors in lists of type 1)
24496 \end_layout
24497
24498 \begin_layout Itemize
24499 \begin_inset Flex Code
24500 status collapsed
24501
24502 \begin_layout Plain Layout
24503 !firstbynameform %prename% %surname%
24504 \end_layout
24505
24506 \end_inset
24507
24508  (first author in lists of type 2)
24509 \end_layout
24510
24511 \begin_layout Itemize
24512 \begin_inset Flex Code
24513 status collapsed
24514
24515 \begin_layout Plain Layout
24516 !otherbynameform %prename% %surname%
24517 \end_layout
24518
24519 \end_inset
24520
24521  (other authors in lists of type 2)
24522 \end_layout
24523
24524 \begin_layout Standard
24525 This allows you to configure namings like 
24526 \begin_inset Quotes eld
24527 \end_inset
24528
24529 Miller, Peter and Mary Smith: \SpecialChar ldots
24530 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24531
24532 \begin_inset Quotes erd
24533 \end_inset
24534
24535 .
24536 \end_layout
24537
24538 \begin_layout Standard
24539 There is one other piece of syntax available in definitions, which looks
24540  like this: 
24541 \begin_inset Flex Code
24542 status collapsed
24543
24544 \begin_layout Plain Layout
24545 {!<i>!}
24546 \end_layout
24547
24548 \end_inset
24549
24550 .
24551  This defines a piece of formatting information that is to be used when
24552  creating 
24553 \begin_inset Quotes eld
24554 \end_inset
24555
24556 rich text
24557 \begin_inset Quotes erd
24558 \end_inset
24559
24560 .
24561  Obviously, we do not want to output HTML tags when writing plain text,
24562  so they should be wrapped in 
24563 \begin_inset Quotes eld
24564 \end_inset
24565
24566 {!
24567 \begin_inset Quotes erd
24568 \end_inset
24569
24570  and 
24571 \begin_inset Quotes eld
24572 \end_inset
24573
24574 !}
24575 \begin_inset Quotes erd
24576 \end_inset
24577
24578 .
24579 \end_layout
24580
24581 \begin_layout Standard
24582 Two special sorts of definitions are also possible in a 
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 CiteFormat
24588 \end_layout
24589
24590 \end_inset
24591
24592  block.
24593  An example of the first would be:
24594 \end_layout
24595
24596 \begin_layout LyX-Code
24597 !quotetitle 
24598 \begin_inset Quotes eld
24599 \end_inset
24600
24601 %title%
24602 \begin_inset Quotes erd
24603 \end_inset
24604
24605
24606 \end_layout
24607
24608 \begin_layout Standard
24609 This is an abbreviation, or macro, and it can be used by treating it as
24610  if it were a key: 
24611 \begin_inset Flex Code
24612 status collapsed
24613
24614 \begin_layout Plain Layout
24615 %!quotetitle%
24616 \end_layout
24617
24618 \end_inset
24619
24620 .
24621  \SpecialChar LyX
24622  will treat 
24623 \begin_inset Flex Code
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627 %!quotetitle%
24628 \end_layout
24629
24630 \end_inset
24631
24632  exactly as it would treat its definition.
24633  So, let us issue the obvious 
24634 \emph on
24635 warning
24636 \emph default
24637 .
24638  Do not do this:
24639 \end_layout
24640
24641 \begin_layout LyX-Code
24642 !funfun %funfun%
24643 \end_layout
24644
24645 \begin_layout Standard
24646 or anything like it.
24647  \SpecialChar LyX
24648  shouldn't go into an infinite loop, but it may go into a long one before
24649  it gives up.
24650 \end_layout
24651
24652 \begin_layout Standard
24653 The second sort of special definition might look like this:
24654 \end_layout
24655
24656 \begin_layout LyX-Code
24657 B_pptext pp.
24658 \end_layout
24659
24660 \begin_layout Standard
24661 This defines a translatable piece of text, which allows relevant parts of
24662  the bibliography or citation to be translated.
24663  It can be included in a definition by treating it as a key: 
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 %B_pptext%
24669 \end_layout
24670
24671 \end_inset
24672
24673 .
24674  Note that there are two different translation paths: All definitions starting
24675  with 
24676 \begin_inset Flex Code
24677 status collapsed
24678
24679 \begin_layout Plain Layout
24680 B_
24681 \end_layout
24682
24683 \end_inset
24684
24685 , such as in the example above, will be translated to the currently active
24686  buffer language (so the translation will match the generated document).
24687  All definitions starting with underscore only will be translated to the
24688  GUI language.
24689  This is the proper translation for strings that only occur in the dialogs
24690  or on buttons, such as this one:
24691 \end_layout
24692
24693 \begin_layout LyX-Code
24694 _addtobib Add to bibliography only.
24695 \end_layout
24696
24697 \begin_layout Standard
24698 Several of these translatable strings are predefined in 
24699 \begin_inset Flex Code
24700 status collapsed
24701
24702 \begin_layout Plain Layout
24703 stdciteformats.inc
24704 \end_layout
24705
24706 \end_inset
24707
24708  and the diverse 
24709 \begin_inset Flex Code
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713 *.citeengine
24714 \end_layout
24715
24716 \end_inset
24717
24718  files.
24719  Note that these are not macros, in the sense just defined.
24720  They will not be expanded.
24721 \end_layout
24722
24723 \begin_layout Standard
24724 So here then is an example that uses several of these features:
24725 \begin_inset VSpace defskip
24726 \end_inset
24727
24728
24729 \end_layout
24730
24731 \begin_layout Standard
24732 \noindent
24733
24734 \family sans
24735 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24736 \end_layout
24737
24738 \begin_layout Standard
24739 \begin_inset VSpace defskip
24740 \end_inset
24741
24742 This defines a macro that prints the author, followed by a comma, if the
24743  
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 author
24749 \end_layout
24750
24751 \end_inset
24752
24753  key is defined, or else prints the name of the editor, followed by the
24754  
24755 \begin_inset Flex Code
24756 status collapsed
24757
24758 \begin_layout Plain Layout
24759 B_edtext
24760 \end_layout
24761
24762 \end_inset
24763
24764  or its translation (it is by default 
24765 \begin_inset Quotes eld
24766 \end_inset
24767
24768 ed.
24769 \begin_inset Quotes erd
24770 \end_inset
24771
24772 ), if the 
24773 \begin_inset Flex Code
24774 status collapsed
24775
24776 \begin_layout Plain Layout
24777 editor
24778 \end_layout
24779
24780 \end_inset
24781
24782  key is defined.
24783  Note that this is in fact defined in 
24784 \begin_inset Flex Code
24785 status collapsed
24786
24787 \begin_layout Plain Layout
24788 stdciteformats.inc
24789 \end_layout
24790
24791 \end_inset
24792
24793 , so you can use it in your own definitions, or re-definitions, if you load
24794  that file first.
24795 \end_layout
24796
24797 \begin_layout Section
24798 \begin_inset CommandInset label
24799 LatexCommand label
24800 name "sec:Tags-for-XHTML"
24801
24802 \end_inset
24803
24804 Tags for XHTML output
24805 \end_layout
24806
24807 \begin_layout Standard
24808 As with \SpecialChar LaTeX
24809  or DocBook, the format of \SpecialChar LyX
24810 's XHTML output is also controlled by
24811  layout information.
24812  In general, \SpecialChar LyX
24813  provides sensible defaults and, as mentioned earlier, it will
24814  even construct default CSS style rules from the other layout tags.
24815  For example, \SpecialChar LyX
24816  will attempt to use the information provided in the 
24817 \begin_inset Flex Code
24818 status collapsed
24819
24820 \begin_layout Plain Layout
24821 Font
24822 \end_layout
24823
24824 \end_inset
24825
24826  declaration for the Chapter style to write CSS that will appropriately
24827  format chapter headings.
24828 \end_layout
24829
24830 \begin_layout Standard
24831 In many cases, then, you may not have to do anything at all to get acceptable
24832  XHTML output for your own environments, custom insets, and so forth.
24833  But in some cases you will, and so \SpecialChar LyX
24834  provides a number of layout tags that
24835  can be used to customize the XHTML and CSS that are generated.
24836 \end_layout
24837
24838 \begin_layout Standard
24839 Note that there are two tags, 
24840 \begin_inset Flex Code
24841 status collapsed
24842
24843 \begin_layout Plain Layout
24844 HTMLPreamble
24845 \end_layout
24846
24847 \end_inset
24848
24849  and 
24850 \begin_inset Flex Code
24851 status collapsed
24852
24853 \begin_layout Plain Layout
24854 AddToHTMLPreamble
24855 \end_layout
24856
24857 \end_inset
24858
24859  that may appear outside style and inset declarations.
24860  See 
24861 \begin_inset CommandInset ref
24862 LatexCommand ref
24863 reference "subsec:General-text-class"
24864
24865 \end_inset
24866
24867  for details on these.
24868 \end_layout
24869
24870 \begin_layout Subsection
24871 \begin_inset CommandInset label
24872 LatexCommand label
24873 name "subsec:Paragraph-Style-XHTML"
24874
24875 \end_inset
24876
24877 Paragraph styles
24878 \end_layout
24879
24880 \begin_layout Standard
24881 The sort of XHTML \SpecialChar LyX
24882  outputs for a paragraph depends upon whether we are dealing
24883  with a normal paragraph, a command, or an environment, where this is itself
24884  determined by the contents of the corresponding 
24885 \begin_inset Flex Code
24886 status collapsed
24887
24888 \begin_layout Plain Layout
24889 \SpecialChar LaTeX
24890 Type
24891 \end_layout
24892
24893 \end_inset
24894
24895  tag.
24896  
24897 \end_layout
24898
24899 \begin_layout Standard
24900 For a command or normal paragraph, the output XHTML has the following form:
24901 \end_layout
24902
24903 \begin_layout LyX-Code
24904
24905 \family sans
24906 <tag attr=
24907 \begin_inset Quotes erd
24908 \end_inset
24909
24910 value
24911 \begin_inset Quotes erd
24912 \end_inset
24913
24914 >
24915 \end_layout
24916
24917 \begin_layout LyX-Code
24918
24919 \family sans
24920 <labeltag attr=
24921 \begin_inset Quotes erd
24922 \end_inset
24923
24924 value
24925 \begin_inset Quotes erd
24926 \end_inset
24927
24928 >Label</labeltag>
24929 \end_layout
24930
24931 \begin_layout LyX-Code
24932
24933 \family sans
24934 Contents of the paragraph.
24935 \end_layout
24936
24937 \begin_layout LyX-Code
24938
24939 \family sans
24940 </tag>
24941 \end_layout
24942
24943 \begin_layout Standard
24944 The label tags are of course omitted if the paragraph does not have a label.
24945 \end_layout
24946
24947 \begin_layout Standard
24948 For an environment that is not some sort of list, the XHTML takes this form:
24949 \end_layout
24950
24951 \begin_layout LyX-Code
24952
24953 \family sans
24954 <tag attr=
24955 \begin_inset Quotes erd
24956 \end_inset
24957
24958 value
24959 \begin_inset Quotes erd
24960 \end_inset
24961
24962 >
24963 \end_layout
24964
24965 \begin_layout LyX-Code
24966
24967 \family sans
24968 <itemtag attr=
24969 \begin_inset Quotes erd
24970 \end_inset
24971
24972 value
24973 \begin_inset Quotes erd
24974 \end_inset
24975
24976 ><labeltag attr=
24977 \begin_inset Quotes erd
24978 \end_inset
24979
24980 value
24981 \begin_inset Quotes erd
24982 \end_inset
24983
24984 >Environment Label</labeltag>First paragraph.</itemtag>
24985 \end_layout
24986
24987 \begin_layout LyX-Code
24988
24989 \family sans
24990 <itemtag>Second paragraph.</itemtag>
24991 \end_layout
24992
24993 \begin_layout LyX-Code
24994
24995 \family sans
24996 </tag>
24997 \end_layout
24998
24999 \begin_layout Standard
25000 Note that the label is output only for the first paragraph, as it should
25001  be for a theorem, for example.
25002  
25003 \end_layout
25004
25005 \begin_layout Standard
25006 For a list, we have one of these forms:
25007 \end_layout
25008
25009 \begin_layout LyX-Code
25010
25011 \family sans
25012 <tag attr=
25013 \begin_inset Quotes erd
25014 \end_inset
25015
25016 value
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 >
25021 \end_layout
25022
25023 \begin_layout LyX-Code
25024
25025 \family sans
25026 <itemtag attr=
25027 \begin_inset Quotes erd
25028 \end_inset
25029
25030 value
25031 \begin_inset Quotes erd
25032 \end_inset
25033
25034 ><labeltag attr=
25035 \begin_inset Quotes erd
25036 \end_inset
25037
25038 value
25039 \begin_inset Quotes erd
25040 \end_inset
25041
25042 >List Label</labeltag>First item.</itemtag>
25043 \end_layout
25044
25045 \begin_layout LyX-Code
25046
25047 \family sans
25048 <itemtag attr=
25049 \begin_inset Quotes erd
25050 \end_inset
25051
25052 value
25053 \begin_inset Quotes erd
25054 \end_inset
25055
25056 ><labeltag attr=
25057 \begin_inset Quotes erd
25058 \end_inset
25059
25060 value
25061 \begin_inset Quotes erd
25062 \end_inset
25063
25064 >List Label</labeltag>Second item.</itemtag>
25065 \end_layout
25066
25067 \begin_layout LyX-Code
25068
25069 \family sans
25070 </tag>
25071 \end_layout
25072
25073 \begin_layout LyX-Code
25074
25075 \end_layout
25076
25077 \begin_layout LyX-Code
25078
25079 \family sans
25080 <tag attr=
25081 \begin_inset Quotes erd
25082 \end_inset
25083
25084 value
25085 \begin_inset Quotes erd
25086 \end_inset
25087
25088 >
25089 \end_layout
25090
25091 \begin_layout LyX-Code
25092
25093 \family sans
25094 <labeltag attr=
25095 \begin_inset Quotes erd
25096 \end_inset
25097
25098 value
25099 \begin_inset Quotes erd
25100 \end_inset
25101
25102 >List Label</labeltag><itemtag attr=
25103 \begin_inset Quotes erd
25104 \end_inset
25105
25106 value
25107 \begin_inset Quotes erd
25108 \end_inset
25109
25110 >First item.</itemtag>
25111 \end_layout
25112
25113 \begin_layout LyX-Code
25114
25115 \family sans
25116 <labeltag attr=
25117 \begin_inset Quotes erd
25118 \end_inset
25119
25120 value
25121 \begin_inset Quotes erd
25122 \end_inset
25123
25124 >List Label</labeltag><itemtag attr=
25125 \begin_inset Quotes erd
25126 \end_inset
25127
25128 value
25129 \begin_inset Quotes erd
25130 \end_inset
25131
25132 >Second item.</itemtag>
25133 \end_layout
25134
25135 \begin_layout LyX-Code
25136
25137 \family sans
25138 </tag>
25139 \end_layout
25140
25141 \begin_layout Standard
25142 Note the different orders of 
25143 \begin_inset Flex Code
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 labeltag
25148 \end_layout
25149
25150 \end_inset
25151
25152  and 
25153 \begin_inset Flex Code
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157 itemtag
25158 \end_layout
25159
25160 \end_inset
25161
25162 .
25163  Which order we get depends upon the setting of 
25164 \begin_inset Flex Code
25165 status collapsed
25166
25167 \begin_layout Plain Layout
25168 HTMLLabelFirst
25169 \end_layout
25170
25171 \end_inset
25172
25173 : If 
25174 \begin_inset Flex Code
25175 status collapsed
25176
25177 \begin_layout Plain Layout
25178 HTMLLabelFirst
25179 \end_layout
25180
25181 \end_inset
25182
25183  is false (the default), you get the first of these, with the label within
25184  the item; if true, you get the second, with the label outside the item.
25185 \end_layout
25186
25187 \begin_layout Standard
25188 The specific tags and attributes output for each paragraph type can be controlle
25189 d by means of the layout tags we are about to describe.
25190  As mentioned earlier, however, \SpecialChar LyX
25191  uses sensible defaults for many of these,
25192  so you often may not need to do very much to get good XHTML output.
25193  Think of the available tags as there so you can tweak things to your liking.
25194 \end_layout
25195
25196 \begin_layout Description
25197 \begin_inset Flex Code
25198 status collapsed
25199
25200 \begin_layout Plain Layout
25201 HTMLAttr
25202 \end_layout
25203
25204 \end_inset
25205
25206  [
25207 \begin_inset Flex Code
25208 status collapsed
25209
25210 \begin_layout Plain Layout
25211 string
25212 \end_layout
25213
25214 \end_inset
25215
25216 ] Specifies attribute information to be output with the main tag.
25217  For example, 
25218 \begin_inset Quotes eld
25219 \end_inset
25220
25221
25222 \begin_inset Flex Code
25223 status collapsed
25224
25225 \begin_layout Plain Layout
25226 class=`mydiv'
25227 \end_layout
25228
25229 \end_inset
25230
25231
25232 \begin_inset Quotes erd
25233 \end_inset
25234
25235 .
25236  By default, \SpecialChar LyX
25237  will output 
25238 \begin_inset Quotes eld
25239 \end_inset
25240
25241
25242 \begin_inset Flex Code
25243 status collapsed
25244
25245 \begin_layout Plain Layout
25246 class=`layoutname'
25247 \end_layout
25248
25249 \end_inset
25250
25251
25252 \begin_inset Quotes erd
25253 \end_inset
25254
25255 , where 
25256 \begin_inset Flex Code
25257 status collapsed
25258
25259 \begin_layout Plain Layout
25260 layoutname
25261 \end_layout
25262
25263 \end_inset
25264
25265  is the \SpecialChar LyX
25266  name of the layout, made lowercase, for example: chapter.
25267  This should 
25268 \emph on
25269 not
25270 \emph default
25271  contain any style information.
25272  Use 
25273 \begin_inset Flex Code
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277 HTMLStyle
25278 \end_layout
25279
25280 \end_inset
25281
25282  for that purpose.
25283 \end_layout
25284
25285 \begin_layout Description
25286 \begin_inset Flex Code
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290 HTMLForceCSS
25291 \end_layout
25292
25293 \end_inset
25294
25295  [
25296 \begin_inset Flex Code
25297 status collapsed
25298
25299 \begin_layout Plain Layout
25300
25301 \emph on
25302 0
25303 \emph default
25304 ,1
25305 \end_layout
25306
25307 \end_inset
25308
25309 ] Whether to output the default CSS information \SpecialChar LyX
25310  generates for this layout,
25311  even if additional information is explicitly provided via 
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 HTMLStyle
25317 \end_layout
25318
25319 \end_inset
25320
25321 .
25322  Setting this to 
25323 \begin_inset Flex Code
25324 status collapsed
25325
25326 \begin_layout Plain Layout
25327 1
25328 \end_layout
25329
25330 \end_inset
25331
25332  allows you to alter or augment the generated CSS, rather than to override
25333  it completely.
25334  Default is 
25335 \begin_inset Flex Code
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339 0
25340 \end_layout
25341
25342 \end_inset
25343
25344 .
25345 \end_layout
25346
25347 \begin_layout Description
25348 \begin_inset Flex Code
25349 status collapsed
25350
25351 \begin_layout Plain Layout
25352 HTMLItem
25353 \end_layout
25354
25355 \end_inset
25356
25357  [
25358 \begin_inset Flex Code
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 string
25363 \end_layout
25364
25365 \end_inset
25366
25367 ] The tag to be used for individual paragraphs of environments, replacing
25368  
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 itemtag
25374 \end_layout
25375
25376 \end_inset
25377
25378  in the examples above.
25379  Defaults to 
25380 \begin_inset Flex Code
25381 status collapsed
25382
25383 \begin_layout Plain Layout
25384 div
25385 \end_layout
25386
25387 \end_inset
25388
25389 .
25390 \end_layout
25391
25392 \begin_layout Description
25393 \begin_inset Flex Code
25394 status collapsed
25395
25396 \begin_layout Plain Layout
25397 HTMLItemAttr
25398 \end_layout
25399
25400 \end_inset
25401
25402  [
25403 \begin_inset Flex Code
25404 status collapsed
25405
25406 \begin_layout Plain Layout
25407 string
25408 \end_layout
25409
25410 \end_inset
25411
25412 ] Attributes for the item tag.
25413  Defaults to
25414 \begin_inset Newline newline
25415 \end_inset
25416
25417
25418 \begin_inset Quotes eld
25419 \end_inset
25420
25421
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 class=`layoutname_item'
25427 \end_layout
25428
25429 \end_inset
25430
25431
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435 .
25436  This should 
25437 \emph on
25438 not
25439 \emph default
25440  contain any style information.
25441  Use 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 HTMLStyle
25447 \end_layout
25448
25449 \end_inset
25450
25451  for that purpose.
25452 \end_layout
25453
25454 \begin_layout Description
25455 \begin_inset Flex Code
25456 status collapsed
25457
25458 \begin_layout Plain Layout
25459 HTMLLabel
25460 \end_layout
25461
25462 \end_inset
25463
25464  [
25465 \begin_inset Flex Code
25466 status collapsed
25467
25468 \begin_layout Plain Layout
25469 string
25470 \end_layout
25471
25472 \end_inset
25473
25474 ] The tag to be used for paragraph and item labels, replacing 
25475 \begin_inset Flex Code
25476 status collapsed
25477
25478 \begin_layout Plain Layout
25479 labeltag
25480 \end_layout
25481
25482 \end_inset
25483
25484  in the examples above.
25485  Defaults to 
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 span
25491 \end_layout
25492
25493 \end_inset
25494
25495 , unless 
25496 \begin_inset Flex Code
25497 status collapsed
25498
25499 \begin_layout Plain Layout
25500 LabelType
25501 \end_layout
25502
25503 \end_inset
25504
25505  is either 
25506 \begin_inset Flex Code
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510 Top_Environment
25511 \end_layout
25512
25513 \end_inset
25514
25515  or 
25516 \begin_inset Flex Code
25517 status collapsed
25518
25519 \begin_layout Plain Layout
25520 Centered_Top_Environment
25521 \end_layout
25522
25523 \end_inset
25524
25525 , in which case it defaults to 
25526 \begin_inset Flex Code
25527 status collapsed
25528
25529 \begin_layout Plain Layout
25530 div
25531 \end_layout
25532
25533 \end_inset
25534
25535 .
25536 \end_layout
25537
25538 \begin_layout Description
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543 HTMLLabelAttr
25544 \end_layout
25545
25546 \end_inset
25547
25548  [
25549 \begin_inset Flex Code
25550 status collapsed
25551
25552 \begin_layout Plain Layout
25553 string
25554 \end_layout
25555
25556 \end_inset
25557
25558 ] Attributes for the label tag.
25559  Defaults to
25560 \begin_inset Newline newline
25561 \end_inset
25562
25563
25564 \begin_inset Quotes eld
25565 \end_inset
25566
25567
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572 class=`layoutname_label'
25573 \end_layout
25574
25575 \end_inset
25576
25577
25578 \begin_inset Quotes erd
25579 \end_inset
25580
25581 .
25582  This should 
25583 \emph on
25584 not
25585 \emph default
25586  contain any style information.
25587  Use 
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 HTMLStyle
25593 \end_layout
25594
25595 \end_inset
25596
25597  for that purpose.
25598 \end_layout
25599
25600 \begin_layout Description
25601 \begin_inset Flex Code
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605 HTMLLabelFirst
25606 \end_layout
25607
25608 \end_inset
25609
25610  [
25611 \begin_inset Flex Code
25612 status collapsed
25613
25614 \begin_layout Plain Layout
25615
25616 \emph on
25617 0
25618 \emph default
25619 ,1
25620 \end_layout
25621
25622 \end_inset
25623
25624 ] Meaningful only for list-like environments, this tag controls whether
25625  the label tag is output before or inside the item tag.
25626  This is used, for example, in the description environment, where we want
25627  `
25628 \begin_inset Flex Code
25629 status collapsed
25630
25631 \begin_layout Plain Layout
25632 <dt>\SpecialChar ldots
25633 </dt><dd>\SpecialChar ldots
25634 </dd>
25635 \end_layout
25636
25637 \end_inset
25638
25639 .
25640  Default is 
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 0
25646 \end_layout
25647
25648 \end_inset
25649
25650 : The label tag is output inside the item tag.
25651 \end_layout
25652
25653 \begin_layout Description
25654 \begin_inset Flex Code
25655 status collapsed
25656
25657 \begin_layout Plain Layout
25658 HTMLPreamble
25659 \end_layout
25660
25661 \end_inset
25662
25663  Information to be output in the 
25664 \begin_inset Flex Code
25665 status collapsed
25666
25667 \begin_layout Plain Layout
25668 <head>
25669 \end_layout
25670
25671 \end_inset
25672
25673  section when this style is used.
25674  This might, for example, be used to include a 
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679 <script>
25680 \end_layout
25681
25682 \end_inset
25683
25684  block defining an 
25685 \begin_inset Flex Code
25686 status collapsed
25687
25688 \begin_layout Plain Layout
25689 onclick
25690 \end_layout
25691
25692 \end_inset
25693
25694  handler.
25695 \end_layout
25696
25697 \begin_layout Description
25698 \begin_inset Flex Code
25699 status collapsed
25700
25701 \begin_layout Plain Layout
25702 HTMLStyle
25703 \end_layout
25704
25705 \end_inset
25706
25707  CSS style information to be included when this style is used.
25708  Note that this will automatically be wrapped in a layout-generated 
25709 \begin_inset Flex Code
25710 status collapsed
25711
25712 \begin_layout Plain Layout
25713 <style>
25714 \end_layout
25715
25716 \end_inset
25717
25718  block, so only the CSS itself need be included.
25719  Must end with 
25720 \begin_inset Flex Code
25721 status collapsed
25722
25723 \begin_layout Plain Layout
25724 EndHTMLStyle
25725 \end_layout
25726
25727 \end_inset
25728
25729 .
25730 \end_layout
25731
25732 \begin_layout Description
25733 \begin_inset Flex Code
25734 status collapsed
25735
25736 \begin_layout Plain Layout
25737 HTMLTag
25738 \end_layout
25739
25740 \end_inset
25741
25742  [
25743 \begin_inset Flex Code
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 string
25748 \end_layout
25749
25750 \end_inset
25751
25752 ] The tag to be used for the main label, replacing 
25753 \begin_inset Flex Code
25754 status collapsed
25755
25756 \begin_layout Plain Layout
25757 tag
25758 \end_layout
25759
25760 \end_inset
25761
25762  in the examples above.
25763  Defaults to 
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 div
25769 \end_layout
25770
25771 \end_inset
25772
25773 .
25774 \end_layout
25775
25776 \begin_layout Description
25777 \begin_inset Flex Code
25778 status collapsed
25779
25780 \begin_layout Plain Layout
25781 HTMLTitle
25782 \end_layout
25783
25784 \end_inset
25785
25786  [
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791
25792 \emph on
25793 0
25794 \emph default
25795 ,1
25796 \end_layout
25797
25798 \end_inset
25799
25800 ] Marks this style as the one to be used to generate the 
25801 \begin_inset Flex Code
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805 <title>
25806 \end_layout
25807
25808 \end_inset
25809
25810  tag for the XHTML file.
25811  By default, it is false.
25812  The 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 stdtitle.inc
25818 \end_layout
25819
25820 \end_inset
25821
25822  file sets it to true for the 
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827 title
25828 \end_layout
25829
25830 \end_inset
25831
25832  environment.
25833  
25834 \end_layout
25835
25836 \begin_layout Subsection
25837 InsetLayout XHTML
25838 \end_layout
25839
25840 \begin_layout Standard
25841 The XHTML output of insets can also be controlled by information in layout
25842  files.
25843 \begin_inset Foot
25844 status collapsed
25845
25846 \begin_layout Plain Layout
25847 At present, this is true only for 
25848 \begin_inset Quotes eld
25849 \end_inset
25850
25851 text
25852 \begin_inset Quotes erd
25853 \end_inset
25854
25855  insets (insets you can type into) and is not true for 
25856 \begin_inset Quotes eld
25857 \end_inset
25858
25859 command
25860 \begin_inset Quotes erd
25861 \end_inset
25862
25863  insets (insets that are associated with dialog boxes).
25864 \end_layout
25865
25866 \end_inset
25867
25868  Here, too, \SpecialChar LyX
25869  tries to provide sensible defaults, and it constructs default
25870  CSS style rules.
25871  But everything can be customized.
25872 \end_layout
25873
25874 \begin_layout Standard
25875 The XHTML \SpecialChar LyX
25876  outputs for an inset has the following form:
25877 \end_layout
25878
25879 \begin_layout LyX-Code
25880 <tag attr=
25881 \begin_inset Quotes erd
25882 \end_inset
25883
25884 value
25885 \begin_inset Quotes erd
25886 \end_inset
25887
25888 >
25889 \end_layout
25890
25891 \begin_layout LyX-Code
25892 <labeltag>Label</labeltag>
25893 \end_layout
25894
25895 \begin_layout LyX-Code
25896 <innertag attr=
25897 \begin_inset Quotes erd
25898 \end_inset
25899
25900 value
25901 \begin_inset Quotes erd
25902 \end_inset
25903
25904 >Contents of the inset.</innertag>
25905 \end_layout
25906
25907 \begin_layout LyX-Code
25908 </tag>
25909 \end_layout
25910
25911 \begin_layout Standard
25912 If the inset permits multiple paragraphs—that is, if 
25913 \begin_inset Flex Code
25914 status collapsed
25915
25916 \begin_layout Plain Layout
25917 MultiPar
25918 \end_layout
25919
25920 \end_inset
25921
25922  is true—then the contents of the inset will itself be output as paragraphs
25923  formatted according to the styles used for those paragraphs (standard,
25924  quote, and the like).
25925  The label tag is of course omitted if the paragraph does not have a label
25926  and, at present, is always 
25927 \begin_inset Flex Code
25928 status collapsed
25929
25930 \begin_layout Plain Layout
25931 span
25932 \end_layout
25933
25934 \end_inset
25935
25936 .
25937  The inner tag is optional and, by default, does not appear.
25938 \end_layout
25939
25940 \begin_layout Standard
25941 The specific tags and attributes output for each inset can be controlled
25942  by means of the following layout tags.
25943 \end_layout
25944
25945 \begin_layout Description
25946 \begin_inset Flex Code
25947 status collapsed
25948
25949 \begin_layout Plain Layout
25950 HTMLAttr
25951 \end_layout
25952
25953 \end_inset
25954
25955  [
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 string
25961 \end_layout
25962
25963 \end_inset
25964
25965 ] Specifies attribute information to be output with the main tag.
25966  For example, 
25967 \begin_inset Quotes eld
25968 \end_inset
25969
25970
25971 \begin_inset Flex Code
25972 status collapsed
25973
25974 \begin_layout Plain Layout
25975 class=`myinset' onclick=`\SpecialChar ldots
25976 '
25977 \end_layout
25978
25979 \end_inset
25980
25981
25982 \begin_inset Quotes erd
25983 \end_inset
25984
25985 .
25986  By default, \SpecialChar LyX
25987  will output 
25988 \begin_inset Quotes eld
25989 \end_inset
25990
25991
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 class=`insetname'
25997 \end_layout
25998
25999 \end_inset
26000
26001
26002 \begin_inset Quotes erd
26003 \end_inset
26004
26005 , where 
26006 \begin_inset Flex Code
26007 status collapsed
26008
26009 \begin_layout Plain Layout
26010 insetname
26011 \end_layout
26012
26013 \end_inset
26014
26015  is the \SpecialChar LyX
26016  name of the inset, made lowercase and with non-alphanumeric characters
26017  converted to underscores, for example: footnote.
26018 \end_layout
26019
26020 \begin_layout Description
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 HTMLForceCSS
26026 \end_layout
26027
26028 \end_inset
26029
26030  [
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035
26036 \emph on
26037 0
26038 \emph default
26039 ,1
26040 \end_layout
26041
26042 \end_inset
26043
26044 ] Whether to output the default CSS information \SpecialChar LyX
26045  generates for this layout,
26046  even if additional information is explicitly provided via 
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 HTMLStyle
26052 \end_layout
26053
26054 \end_inset
26055
26056 .
26057  Setting this to 
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 1
26063 \end_layout
26064
26065 \end_inset
26066
26067  allows you to alter or augment the generated CSS, rather than to override
26068  it completely.
26069  Default is 0.
26070 \end_layout
26071
26072 \begin_layout Description
26073 \begin_inset Flex Code
26074 status collapsed
26075
26076 \begin_layout Plain Layout
26077 HTMLInnerAttr
26078 \end_layout
26079
26080 \end_inset
26081
26082  [
26083 \begin_inset Flex Code
26084 status collapsed
26085
26086 \begin_layout Plain Layout
26087 string
26088 \end_layout
26089
26090 \end_inset
26091
26092 ] Attributes for the inner tag.
26093  Defaults to
26094 \begin_inset Newline newline
26095 \end_inset
26096
26097
26098 \begin_inset Quotes eld
26099 \end_inset
26100
26101
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 class=`insetname_inner'
26107 \end_layout
26108
26109 \end_inset
26110
26111
26112 \begin_inset Quotes erd
26113 \end_inset
26114
26115 .
26116 \end_layout
26117
26118 \begin_layout Description
26119 \begin_inset Flex Code
26120 status collapsed
26121
26122 \begin_layout Plain Layout
26123 HTMLInnerTag
26124 \end_layout
26125
26126 \end_inset
26127
26128  [
26129 \begin_inset Flex Code
26130 status collapsed
26131
26132 \begin_layout Plain Layout
26133 string
26134 \end_layout
26135
26136 \end_inset
26137
26138 ] The inner tag, replacing 
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 innertag
26144 \end_layout
26145
26146 \end_inset
26147
26148  in the examples above.
26149  By default, there is none.
26150 \end_layout
26151
26152 \begin_layout Description
26153 \begin_inset Flex Code
26154 status collapsed
26155
26156 \begin_layout Plain Layout
26157 HTMLIsBlock
26158 \end_layout
26159
26160 \end_inset
26161
26162  [
26163 \begin_inset Flex Code
26164 status collapsed
26165
26166 \begin_layout Plain Layout
26167 0,
26168 \emph on
26169 1
26170 \end_layout
26171
26172 \end_inset
26173
26174 ] Whether this inset represents a standalone block of text (such as a footnote)
26175  or instead represents material that is included in the surrounding text
26176  (such as a branch).
26177  Defaults to 1.
26178 \end_layout
26179
26180 \begin_layout Description
26181 \begin_inset Flex Code
26182 status collapsed
26183
26184 \begin_layout Plain Layout
26185 HTMLLabel
26186 \end_layout
26187
26188 \end_inset
26189
26190  [
26191 \begin_inset Flex Code
26192 status collapsed
26193
26194 \begin_layout Plain Layout
26195 string
26196 \end_layout
26197
26198 \end_inset
26199
26200 ] A label for this inset, possibly including a reference to a counter.
26201  For example, for footnote, it might be: 
26202 \begin_inset Flex Code
26203 status collapsed
26204
26205 \begin_layout Plain Layout
26206
26207 \backslash
26208 arabic{footnote}
26209 \end_layout
26210
26211 \end_inset
26212
26213 .
26214  This is optional, and there is no default.
26215 \end_layout
26216
26217 \begin_layout Description
26218 \begin_inset Flex Code
26219 status collapsed
26220
26221 \begin_layout Plain Layout
26222 HTMLPreamble
26223 \end_layout
26224
26225 \end_inset
26226
26227  Information to be output in the 
26228 \begin_inset Flex Code
26229 status collapsed
26230
26231 \begin_layout Plain Layout
26232 <head>
26233 \end_layout
26234
26235 \end_inset
26236
26237  section when this style is used.
26238  This might, for example, be used to include a 
26239 \begin_inset Flex Code
26240 status collapsed
26241
26242 \begin_layout Plain Layout
26243 <script>
26244 \end_layout
26245
26246 \end_inset
26247
26248  block defining an 
26249 \begin_inset Flex Code
26250 status collapsed
26251
26252 \begin_layout Plain Layout
26253 onclick
26254 \end_layout
26255
26256 \end_inset
26257
26258  handler.
26259 \end_layout
26260
26261 \begin_layout Description
26262 \begin_inset Flex Code
26263 status collapsed
26264
26265 \begin_layout Plain Layout
26266 HTMLStyle
26267 \end_layout
26268
26269 \end_inset
26270
26271  CSS style information to be included when this style is used.
26272  Note that this will automatically be wrapped in a layout-generated 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 <style>
26278 \end_layout
26279
26280 \end_inset
26281
26282  block, so only the CSS itself need be included.
26283 \end_layout
26284
26285 \begin_layout Description
26286 \begin_inset Flex Code
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290 HTMLTag
26291 \end_layout
26292
26293 \end_inset
26294
26295  [
26296 \begin_inset Flex Code
26297 status collapsed
26298
26299 \begin_layout Plain Layout
26300 string
26301 \end_layout
26302
26303 \end_inset
26304
26305 ] The tag to be used for the main label, replacing 
26306 \begin_inset Flex Code
26307 status collapsed
26308
26309 \begin_layout Plain Layout
26310 tag
26311 \end_layout
26312
26313 \end_inset
26314
26315  in the examples above.
26316  The default depends upon the setting of 
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 MultiPar
26322 \end_layout
26323
26324 \end_inset
26325
26326 : If 
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 MultiPar
26332 \end_layout
26333
26334 \end_inset
26335
26336  is true, the default is 
26337 \begin_inset Flex Code
26338 status collapsed
26339
26340 \begin_layout Plain Layout
26341 div
26342 \end_layout
26343
26344 \end_inset
26345
26346 ; if it is false, the default is 
26347 \begin_inset Flex Code
26348 status collapsed
26349
26350 \begin_layout Plain Layout
26351 span
26352 \end_layout
26353
26354 \end_inset
26355
26356 .
26357 \end_layout
26358
26359 \begin_layout Subsection
26360 Float XHTML
26361 \end_layout
26362
26363 \begin_layout Standard
26364 The XHTML output for floats too can be controlled by layout information.
26365  The output has the following form:
26366 \end_layout
26367
26368 \begin_layout LyX-Code
26369 <tag attr=
26370 \begin_inset Quotes erd
26371 \end_inset
26372
26373 value
26374 \begin_inset Quotes erd
26375 \end_inset
26376
26377 >
26378 \end_layout
26379
26380 \begin_layout LyX-Code
26381 Contents of the float.
26382 \end_layout
26383
26384 \begin_layout LyX-Code
26385 </tag>
26386 \end_layout
26387
26388 \begin_layout Standard
26389 The caption, if there is one, is a separate inset and will be output as
26390  such.
26391  Its appearance can be controlled via the InsetLayout for caption insets.
26392  
26393 \end_layout
26394
26395 \begin_layout Description
26396 \begin_inset Flex Code
26397 status collapsed
26398
26399 \begin_layout Plain Layout
26400 HTMLAttr
26401 \end_layout
26402
26403 \end_inset
26404
26405  [
26406 \begin_inset Flex Code
26407 status collapsed
26408
26409 \begin_layout Plain Layout
26410 string
26411 \end_layout
26412
26413 \end_inset
26414
26415 ] Specifies attribute information to be output with the main tag.
26416  For example, 
26417 \begin_inset Quotes eld
26418 \end_inset
26419
26420
26421 \begin_inset Flex Code
26422 status collapsed
26423
26424 \begin_layout Plain Layout
26425 class=`myfloat' onclick=`\SpecialChar ldots
26426 '
26427 \end_layout
26428
26429 \end_inset
26430
26431
26432 \begin_inset Quotes erd
26433 \end_inset
26434
26435 .
26436  By default, \SpecialChar LyX
26437  will output 
26438 \begin_inset Quotes eld
26439 \end_inset
26440
26441
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 class=`float float-floattype'
26447 \end_layout
26448
26449 \end_inset
26450
26451
26452 \begin_inset Quotes erd
26453 \end_inset
26454
26455 , where 
26456 \begin_inset Flex Code
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460 floattype
26461 \end_layout
26462
26463 \end_inset
26464
26465  is \SpecialChar LyX
26466 's name for this type of float, as determined by the float declaration
26467  (see 
26468 \begin_inset CommandInset ref
26469 LatexCommand ref
26470 reference "subsec:Floats"
26471
26472 \end_inset
26473
26474 ), though made lowercase and with non-alphanumeric characters converted
26475  to underscores, for example: float-table.
26476 \end_layout
26477
26478 \begin_layout Description
26479 \begin_inset Flex Code
26480 status collapsed
26481
26482 \begin_layout Plain Layout
26483 HTMLStyle
26484 \end_layout
26485
26486 \end_inset
26487
26488  CSS style information to be included when this float is used.
26489  Note that this will automatically be wrapped in a layout-generated 
26490 \begin_inset Flex Code
26491 status collapsed
26492
26493 \begin_layout Plain Layout
26494 <style>
26495 \end_layout
26496
26497 \end_inset
26498
26499  block, so only the CSS itself need be included.
26500 \end_layout
26501
26502 \begin_layout Description
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507 HTMLTag
26508 \end_layout
26509
26510 \end_inset
26511
26512  [
26513 \begin_inset Flex Code
26514 status collapsed
26515
26516 \begin_layout Plain Layout
26517 string
26518 \end_layout
26519
26520 \end_inset
26521
26522 ] The tag to be used for this float, replacing 
26523 \begin_inset Quotes eld
26524 \end_inset
26525
26526
26527 \begin_inset Flex Code
26528 status collapsed
26529
26530 \begin_layout Plain Layout
26531 tag
26532 \end_layout
26533
26534 \end_inset
26535
26536
26537 \begin_inset Quotes erd
26538 \end_inset
26539
26540  in the example above.
26541  The default is 
26542 \begin_inset Flex Code
26543 status collapsed
26544
26545 \begin_layout Plain Layout
26546 div
26547 \end_layout
26548
26549 \end_inset
26550
26551  and will rarely need changing.
26552 \end_layout
26553
26554 \begin_layout Subsection
26555 Bibliography formatting
26556 \end_layout
26557
26558 \begin_layout Standard
26559 The bibliography can be formatted using 
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 CiteFormat
26565 \end_layout
26566
26567 \end_inset
26568
26569  blocks.
26570  See 
26571 \begin_inset CommandInset ref
26572 LatexCommand ref
26573 reference "subsec:Citation-format-description"
26574
26575 \end_inset
26576
26577  for the details.
26578 \end_layout
26579
26580 \begin_layout Subsection
26581 \SpecialChar LyX
26582 -generated CSS
26583 \end_layout
26584
26585 \begin_layout Standard
26586 We have several times mentioned that \SpecialChar LyX
26587  will generate default CSS style rules
26588  for both insets and paragraph styles, based upon the other layout information
26589  that is provided.
26590  In this section, we shall say a word about which layout information \SpecialChar LyX
26591  uses
26592  and how.
26593 \end_layout
26594
26595 \begin_layout Standard
26596 At present, \SpecialChar LyX
26597  auto-generates CSS only for font information, making use of
26598  the 
26599 \begin_inset Flex Code
26600 status collapsed
26601
26602 \begin_layout Plain Layout
26603 Family
26604 \end_layout
26605
26606 \end_inset
26607
26608
26609 \begin_inset Flex Code
26610 status collapsed
26611
26612 \begin_layout Plain Layout
26613 Series
26614 \end_layout
26615
26616 \end_inset
26617
26618
26619 \begin_inset Flex Code
26620 status collapsed
26621
26622 \begin_layout Plain Layout
26623 Shape
26624 \end_layout
26625
26626 \end_inset
26627
26628 , and 
26629 \begin_inset Flex Code
26630 status collapsed
26631
26632 \begin_layout Plain Layout
26633 Size
26634 \end_layout
26635
26636 \end_inset
26637
26638  specified in the 
26639 \begin_inset Flex Code
26640 status collapsed
26641
26642 \begin_layout Plain Layout
26643 Font
26644 \end_layout
26645
26646 \end_inset
26647
26648  declaration (see 
26649 \begin_inset CommandInset ref
26650 LatexCommand ref
26651 reference "subsec:Font-description"
26652
26653 \end_inset
26654
26655 ).
26656  The translation is mostly straightforward and obvious.
26657  For example, 
26658 \begin_inset Quotes eld
26659 \end_inset
26660
26661
26662 \begin_inset Flex Code
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666 Family Sans
26667 \end_layout
26668
26669 \end_inset
26670
26671
26672 \begin_inset Quotes erd
26673 \end_inset
26674
26675  becomes 
26676 \begin_inset Quotes eld
26677 \end_inset
26678
26679
26680 \begin_inset Flex Code
26681 status collapsed
26682
26683 \begin_layout Plain Layout
26684 font-family: sans-serif;
26685 \end_layout
26686
26687 \end_inset
26688
26689
26690 \begin_inset Quotes erd
26691 \end_inset
26692
26693 .
26694  The correspondence of \SpecialChar LyX
26695  sizes and CSS sizes is a little less obvious but
26696  nonetheless intuitive.
26697  See the 
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702 getSizeCSS()
26703 \end_layout
26704
26705 \end_inset
26706
26707  function in 
26708 \begin_inset Flex URL
26709 status collapsed
26710
26711 \begin_layout Plain Layout
26712
26713 src/FontInfo.cpp
26714 \end_layout
26715
26716 \end_inset
26717
26718  for the details.
26719 \end_layout
26720
26721 \begin_layout Chapter
26722 Including External Material
26723 \begin_inset CommandInset label
26724 LatexCommand label
26725 name "chap:Including-External-Material"
26726
26727 \end_inset
26728
26729
26730 \end_layout
26731
26732 \begin_layout Standard
26733 \begin_inset Box Shadowbox
26734 position "t"
26735 hor_pos "c"
26736 has_inner_box 1
26737 inner_pos "t"
26738 use_parbox 0
26739 use_makebox 0
26740 width "100col%"
26741 special "none"
26742 height "1in"
26743 height_special "totalheight"
26744 thickness "0.4pt"
26745 separation "3pt"
26746 shadowsize "4pt"
26747 framecolor "black"
26748 backgroundcolor "none"
26749 status open
26750
26751 \begin_layout Plain Layout
26752 WARNING: This portion of the documentation has not been updated for some
26753  time.
26754  We certainly hope that it is still accurate, but there are no guarantees.
26755 \end_layout
26756
26757 \end_inset
26758
26759
26760 \end_layout
26761
26762 \begin_layout Standard
26763 The use of material from sources external to \SpecialChar LyX
26764  is covered in detail in the
26765  
26766 \emph on
26767 Embedded Objects
26768 \emph default
26769  manual.
26770  This part of the manual covers what needs to happen behind the scenes for
26771  new sorts of material to be included.
26772 \end_layout
26773
26774 \begin_layout Section
26775 How does it work?
26776 \end_layout
26777
26778 \begin_layout Standard
26779 The external material feature is based on the concept of a 
26780 \emph on
26781 template
26782 \emph default
26783 .
26784  A template is a specification of how \SpecialChar LyX
26785  should interface with a certain kind
26786  of material.
26787  As bundled, \SpecialChar LyX
26788  comes with predefined templates for Xfig figures, various
26789  raster format images, chess diagrams, and LilyPond music notation.
26790  You can check the actual list by using the menu 
26791 \begin_inset Flex Noun
26792 status collapsed
26793
26794 \begin_layout Plain Layout
26795 Insert\SpecialChar menuseparator
26796 File\SpecialChar menuseparator
26797 External Material
26798 \end_layout
26799
26800 \end_inset
26801
26802 .
26803  Furthermore, it is possible to roll your own template to support a specific
26804  kind of material.
26805  Later we'll describe in more detail what is involved, and hopefully you
26806  will submit all the templates you create so we can include them in a later
26807  \SpecialChar LyX
26808  version.
26809 \end_layout
26810
26811 \begin_layout Standard
26812 Another basic idea of the external material feature is to distinguish between
26813  the original file that serves as a base for final material and the produced
26814  file that is included in your exported or printed document.
26815  For example, consider the case of a figure produced with 
26816 \begin_inset Flex Code
26817 status collapsed
26818
26819 \begin_layout Plain Layout
26820 Xfig
26821 \end_layout
26822
26823 \end_inset
26824
26825 .
26826  The Xfig application itself works on an original file with the 
26827 \begin_inset Flex Code
26828 status collapsed
26829
26830 \begin_layout Plain Layout
26831 .fig
26832 \end_layout
26833
26834 \end_inset
26835
26836  extension.
26837  Within Xfig, you create and change your figure, and when you are done,
26838  you save the 
26839 \begin_inset Flex Code
26840 status collapsed
26841
26842 \begin_layout Plain Layout
26843 fig
26844 \end_layout
26845
26846 \end_inset
26847
26848 -file.
26849  When you want to include the figure in your document, you invoke 
26850 \begin_inset Flex Code
26851 status collapsed
26852
26853 \begin_layout Plain Layout
26854 transfig
26855 \end_layout
26856
26857 \end_inset
26858
26859  in order to create a PostScript file that can readily be included in your
26860  \SpecialChar LaTeX
26861  file.
26862  In this case, the 
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867 .fig
26868 \end_layout
26869
26870 \end_inset
26871
26872  file is the original file, and the PostScript file is the produced file.
26873 \end_layout
26874
26875 \begin_layout Standard
26876 This distinction is important in order to allow updating of the material
26877  while you are in the process of writing the document.
26878  Furthermore, it provides us with the flexibility that is needed to support
26879  multiple export formats.
26880  For instance, in the case of a plain text file, it is not exactly an award-winn
26881 ing idea to include the figure as raw PostScript.
26882  Instead, you would either prefer to just include a reference to the figure
26883  or try to invoke some graphics to ASCII converter to make the final result
26884  look similar to the real graphics.
26885  The external material management allows you to do this, because it is parametri
26886 zed on the different export formats that \SpecialChar LyX
26887  supports.
26888 \end_layout
26889
26890 \begin_layout Standard
26891 Besides supporting the production of different products according to the
26892  exported format, it supports tight integration with editing and viewing
26893  applications.
26894  In the case of an Xfig figure, you are able to invoke Xfig on the original
26895  file with a single click from within the external material dialog in \SpecialChar LyX
26896 ,
26897  and also preview the produced PostScript file with Ghostview with another
26898  click.
26899  No more fiddling around with the command line and/or file browsers to locate
26900  and manipulate the original or produced files.
26901  In this way, you are finally able to take full advantage of the many different
26902  applications that are relevant to use when you write your documents, and
26903  ultimately be more productive.
26904 \end_layout
26905
26906 \begin_layout Section
26907 The external template configuration files
26908 \end_layout
26909
26910 \begin_layout Standard
26911 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26912 .
26913  However, be aware that doing this in an careless manner most probably 
26914 \emph on
26915 will
26916 \emph default
26917  introduce an easily exploitable security hole.
26918  So before you do this, please read the discussion about security in 
26919 \begin_inset CommandInset ref
26920 LatexCommand ref
26921 reference "sec:Security-discussion"
26922
26923 \end_inset
26924
26925 .
26926 \end_layout
26927
26928 \begin_layout Standard
26929 Having said that, we encourage you to submit any interesting templates that
26930  you create.
26931  
26932 \end_layout
26933
26934 \begin_layout Standard
26935 The external templates are defined in the 
26936 \begin_inset Flex Code
26937 status collapsed
26938
26939 \begin_layout Plain Layout
26940 *.xtemplate
26941 \end_layout
26942
26943 \end_inset
26944
26945  files that are stored in the 
26946 \begin_inset Flex Code
26947 status collapsed
26948
26949 \begin_layout Plain Layout
26950 LyXDir/lib/xtemplates/
26951 \end_layout
26952
26953 \end_inset
26954
26955  directory.
26956  Each template is defined in a file of its own.
26957  You can place your own templates in 
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 UserDir/xtemplates/
26963 \end_layout
26964
26965 \end_inset
26966
26967  or copy existing templates to that directory in order to modify them.
26968 \end_layout
26969
26970 \begin_layout Standard
26971 A typical template looks like this:
26972 \end_layout
26973
26974 \begin_layout LyX-Code
26975 Template XFig
26976 \end_layout
26977
26978 \begin_layout LyX-Code
26979 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26980 \end_layout
26981
26982 \begin_layout LyX-Code
26983 HelpText
26984 \end_layout
26985
26986 \begin_layout LyX-Code
26987 An XFig figure.
26988 \end_layout
26989
26990 \begin_layout LyX-Code
26991 HelpTextEnd
26992 \end_layout
26993
26994 \begin_layout LyX-Code
26995 InputFormat fig
26996 \end_layout
26997
26998 \begin_layout LyX-Code
26999 FileFilter "*.fig"
27000 \end_layout
27001
27002 \begin_layout LyX-Code
27003 AutomaticProduction true
27004 \end_layout
27005
27006 \begin_layout LyX-Code
27007 Transform Rotate
27008 \end_layout
27009
27010 \begin_layout LyX-Code
27011 Transform Resize
27012 \end_layout
27013
27014 \begin_layout LyX-Code
27015 Format LaTeX
27016 \end_layout
27017
27018 \begin_layout LyX-Code
27019 TransformCommand Rotate RotationLatexCommand
27020 \end_layout
27021
27022 \begin_layout LyX-Code
27023 TransformCommand Resize ResizeLatexCommand
27024 \end_layout
27025
27026 \begin_layout LyX-Code
27027 Product "$$RotateFront$$ResizeFront
27028 \end_layout
27029
27030 \begin_layout LyX-Code
27031          
27032 \backslash
27033
27034 \backslash
27035 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
27036 \end_layout
27037
27038 \begin_layout LyX-Code
27039          $$ResizeBack$$RotateBack"
27040 \end_layout
27041
27042 \begin_layout LyX-Code
27043 UpdateFormat pstex
27044 \end_layout
27045
27046 \begin_layout LyX-Code
27047 UpdateResult "$$AbsPath$$Basename.pstex_t"
27048 \end_layout
27049
27050 \begin_layout LyX-Code
27051 Requirement "graphicx"
27052 \end_layout
27053
27054 \begin_layout LyX-Code
27055 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27056 \end_layout
27057
27058 \begin_layout LyX-Code
27059 ReferencedFile latex "$$AbsPath$$Basename.eps"
27060 \end_layout
27061
27062 \begin_layout LyX-Code
27063 ReferencedFile dvi "$$AbsPath$$Basename.eps"
27064 \end_layout
27065
27066 \begin_layout LyX-Code
27067 FormatEnd
27068 \end_layout
27069
27070 \begin_layout LyX-Code
27071 Format PDFLaTeX
27072 \end_layout
27073
27074 \begin_layout LyX-Code
27075 TransformCommand Rotate RotationLatexCommand
27076 \end_layout
27077
27078 \begin_layout LyX-Code
27079 TransformCommand Resize ResizeLatexCommand
27080 \end_layout
27081
27082 \begin_layout LyX-Code
27083 Product "$$RotateFront$$ResizeFront
27084 \end_layout
27085
27086 \begin_layout LyX-Code
27087          
27088 \backslash
27089
27090 \backslash
27091 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
27092 \end_layout
27093
27094 \begin_layout LyX-Code
27095          $$ResizeBack$$RotateBack"
27096 \end_layout
27097
27098 \begin_layout LyX-Code
27099 UpdateFormat pdftex
27100 \end_layout
27101
27102 \begin_layout LyX-Code
27103 UpdateResult "$$AbsPath$$Basename.pdftex_t"
27104 \end_layout
27105
27106 \begin_layout LyX-Code
27107 Requirement "graphicx"
27108 \end_layout
27109
27110 \begin_layout LyX-Code
27111 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
27112 \end_layout
27113
27114 \begin_layout LyX-Code
27115 ReferencedFile latex "$$AbsPath$$Basename.pdf"
27116 \end_layout
27117
27118 \begin_layout LyX-Code
27119 FormatEnd
27120 \end_layout
27121
27122 \begin_layout LyX-Code
27123 Format Ascii
27124 \end_layout
27125
27126 \begin_layout LyX-Code
27127 Product "[XFig: $$FName]"
27128 \end_layout
27129
27130 \begin_layout LyX-Code
27131 FormatEnd
27132 \end_layout
27133
27134 \begin_layout LyX-Code
27135 Format DocBook
27136 \end_layout
27137
27138 \begin_layout LyX-Code
27139 Product "<graphic fileref=
27140 \backslash
27141 "$$AbsOrRelPathMaster$$Basename.eps
27142 \backslash
27143 ">
27144 \end_layout
27145
27146 \begin_layout LyX-Code
27147          </graphic>"
27148 \end_layout
27149
27150 \begin_layout LyX-Code
27151 UpdateFormat eps
27152 \end_layout
27153
27154 \begin_layout LyX-Code
27155 UpdateResult "$$AbsPath$$Basename.eps"
27156 \end_layout
27157
27158 \begin_layout LyX-Code
27159 ReferencedFile docbook "$$AbsPath$$Basename.eps"
27160 \end_layout
27161
27162 \begin_layout LyX-Code
27163 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
27164 \end_layout
27165
27166 \begin_layout LyX-Code
27167 FormatEnd
27168 \end_layout
27169
27170 \begin_layout LyX-Code
27171 TemplateEnd
27172 \end_layout
27173
27174 \begin_layout Standard
27175 As you can see, the template is enclosed in 
27176 \begin_inset Flex Code
27177 status collapsed
27178
27179 \begin_layout Plain Layout
27180 Template
27181 \end_layout
27182
27183 \end_inset
27184
27185  \SpecialChar ldots
27186  
27187 \begin_inset Flex Code
27188 status collapsed
27189
27190 \begin_layout Plain Layout
27191 TemplateEnd
27192 \end_layout
27193
27194 \end_inset
27195
27196 .
27197  It contains a header specifying some general settings and, for each supported
27198  primary document file format, a section 
27199 \begin_inset Flex Code
27200 status collapsed
27201
27202 \begin_layout Plain Layout
27203 Format
27204 \end_layout
27205
27206 \end_inset
27207
27208  \SpecialChar ldots
27209  
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 FormatEnd
27215 \end_layout
27216
27217 \end_inset
27218
27219 .
27220 \end_layout
27221
27222 \begin_layout Subsection
27223 The template header
27224 \end_layout
27225
27226 \begin_layout Description
27227 \begin_inset Flex Code
27228 status collapsed
27229
27230 \begin_layout Plain Layout
27231 AutomaticProduction
27232 \begin_inset space ~
27233 \end_inset
27234
27235 true|false
27236 \end_layout
27237
27238 \end_inset
27239
27240  Whether the file represented by the template must be generated by \SpecialChar LyX
27241 .
27242  This command must occur exactly once.
27243 \end_layout
27244
27245 \begin_layout Description
27246 \begin_inset Flex Code
27247 status collapsed
27248
27249 \begin_layout Plain Layout
27250 FileFilter
27251 \begin_inset space ~
27252 \end_inset
27253
27254 <pattern>
27255 \end_layout
27256
27257 \end_inset
27258
27259  A glob pattern that is used in the file dialog to filter out the desired
27260  files.
27261  If there is more than one possible file extension (e.
27262 \begin_inset space \thinspace{}
27263 \end_inset
27264
27265 g.
27266 \begin_inset space \space{}
27267 \end_inset
27268
27269 tgif has 
27270 \begin_inset Flex Code
27271 status collapsed
27272
27273 \begin_layout Plain Layout
27274 .obj
27275 \end_layout
27276
27277 \end_inset
27278
27279  and 
27280 \begin_inset Flex Code
27281 status collapsed
27282
27283 \begin_layout Plain Layout
27284 .tgo
27285 \end_layout
27286
27287 \end_inset
27288
27289 ), use something like 
27290 \begin_inset Flex Code
27291 status collapsed
27292
27293 \begin_layout Plain Layout
27294 "*.{obj,tgo}"
27295 \end_layout
27296
27297 \end_inset
27298
27299 .
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 GuiName
27309 \begin_inset space ~
27310 \end_inset
27311
27312 <guiname>
27313 \end_layout
27314
27315 \end_inset
27316
27317  The text that is displayed on the button.
27318  This command must occur exactly once.
27319 \end_layout
27320
27321 \begin_layout Description
27322 \begin_inset Flex Code
27323 status collapsed
27324
27325 \begin_layout Plain Layout
27326 HelpText
27327 \begin_inset space ~
27328 \end_inset
27329
27330 <text>
27331 \begin_inset space ~
27332 \end_inset
27333
27334 HelpTextEnd
27335 \end_layout
27336
27337 \end_inset
27338
27339  The help text that is used in the External dialog.
27340  Provide enough information to explain to the user just what the template
27341  can provide him with.
27342  This command must occur exactly once.
27343 \end_layout
27344
27345 \begin_layout Description
27346 \begin_inset Flex Code
27347 status collapsed
27348
27349 \begin_layout Plain Layout
27350 InputFormat
27351 \begin_inset space ~
27352 \end_inset
27353
27354 <format>
27355 \end_layout
27356
27357 \end_inset
27358
27359  The file format of the original file.
27360  This must be the name of a format that is known to \SpecialChar LyX
27361  (see 
27362 \begin_inset CommandInset ref
27363 LatexCommand ref
27364 reference "sec:Formats"
27365
27366 \end_inset
27367
27368 ).
27369  Use 
27370 \begin_inset Quotes eld
27371 \end_inset
27372
27373
27374 \begin_inset Flex Code
27375 status collapsed
27376
27377 \begin_layout Plain Layout
27378 *
27379 \end_layout
27380
27381 \end_inset
27382
27383
27384 \begin_inset Quotes erd
27385 \end_inset
27386
27387  if the template can handle original files of more than one format.
27388  \SpecialChar LyX
27389  will attempt to interrogate the file itself in order to deduce its format
27390  in this case.
27391  This command must occur exactly once.
27392 \end_layout
27393
27394 \begin_layout Description
27395 \begin_inset Flex Code
27396 status collapsed
27397
27398 \begin_layout Plain Layout
27399 Template
27400 \begin_inset space ~
27401 \end_inset
27402
27403 <id>
27404 \end_layout
27405
27406 \end_inset
27407
27408  A unique name for the template.
27409  It must not contain substitution macros (see below).
27410 \end_layout
27411
27412 \begin_layout Description
27413 \begin_inset Flex Code
27414 status collapsed
27415
27416 \begin_layout Plain Layout
27417 Transform
27418 \begin_inset space ~
27419 \end_inset
27420
27421 Rotate|Resize|Clip|Extra
27422 \end_layout
27423
27424 \end_inset
27425
27426  This command specifies which transformations are supported by this template.
27427  It may occur zero or more times.
27428  This command enables the corresponding tabs in the external dialog.
27429  Each 
27430 \begin_inset Flex Code
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 Transform
27435 \end_layout
27436
27437 \end_inset
27438
27439  command must have either a corresponding 
27440 \begin_inset Flex Code
27441 status collapsed
27442
27443 \begin_layout Plain Layout
27444 TransformCommand
27445 \end_layout
27446
27447 \end_inset
27448
27449  or a 
27450 \begin_inset Flex Code
27451 status collapsed
27452
27453 \begin_layout Plain Layout
27454 TransformOption
27455 \end_layout
27456
27457 \end_inset
27458
27459  command in the 
27460 \begin_inset Flex Code
27461 status collapsed
27462
27463 \begin_layout Plain Layout
27464 Format
27465 \end_layout
27466
27467 \end_inset
27468
27469  section.
27470  Otherwise the transformation will not be supported by that format.
27471 \end_layout
27472
27473 \begin_layout Subsection
27474 The Format section
27475 \end_layout
27476
27477 \begin_layout Description
27478 \begin_inset Flex Code
27479 status collapsed
27480
27481 \begin_layout Plain Layout
27482 Format
27483 \begin_inset space ~
27484 \end_inset
27485
27486 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27487 \end_layout
27488
27489 \end_inset
27490
27491  The primary document file format that this format definition is for.
27492  Not every template has a sensible representation in all document file formats.
27493  Please define nevertheless a 
27494 \begin_inset Flex Code
27495 status collapsed
27496
27497 \begin_layout Plain Layout
27498 Format
27499 \end_layout
27500
27501 \end_inset
27502
27503  section for all templates.
27504  Use a dummy text when no representation is available.
27505  Then you can at least see a reference to the external material in the exported
27506  document.
27507 \end_layout
27508
27509 \begin_layout Description
27510 \begin_inset Flex Code
27511 status collapsed
27512
27513 \begin_layout Plain Layout
27514 Option
27515 \begin_inset space ~
27516 \end_inset
27517
27518 <name>
27519 \begin_inset space ~
27520 \end_inset
27521
27522 <value>
27523 \end_layout
27524
27525 \end_inset
27526
27527  This command defines an additional macro 
27528 \begin_inset Flex Code
27529 status collapsed
27530
27531 \begin_layout Plain Layout
27532 $$<name>
27533 \end_layout
27534
27535 \end_inset
27536
27537  for substitution in 
27538 \begin_inset Flex Code
27539 status collapsed
27540
27541 \begin_layout Plain Layout
27542 Product
27543 \end_layout
27544
27545 \end_inset
27546
27547 .
27548  
27549 \begin_inset Flex Code
27550 status collapsed
27551
27552 \begin_layout Plain Layout
27553 <value>
27554 \end_layout
27555
27556 \end_inset
27557
27558  itself may contain substitution macros.
27559  The advantage over using 
27560 \begin_inset Flex Code
27561 status collapsed
27562
27563 \begin_layout Plain Layout
27564 <value>
27565 \end_layout
27566
27567 \end_inset
27568
27569  directly in 
27570 \begin_inset Flex Code
27571 status collapsed
27572
27573 \begin_layout Plain Layout
27574 Product
27575 \end_layout
27576
27577 \end_inset
27578
27579  is that the substituted value of 
27580 \begin_inset Flex Code
27581 status collapsed
27582
27583 \begin_layout Plain Layout
27584 $$<name>
27585 \end_layout
27586
27587 \end_inset
27588
27589  is sanitized so that it is a valid optional argument in the document format.
27590  This command may occur zero or more times.
27591 \end_layout
27592
27593 \begin_layout Description
27594 \begin_inset Flex Code
27595 status collapsed
27596
27597 \begin_layout Plain Layout
27598 Product
27599 \begin_inset space ~
27600 \end_inset
27601
27602 <text>
27603 \end_layout
27604
27605 \end_inset
27606
27607  The text that is inserted in the exported document.
27608  This is actually the most important command and can be quite complex.
27609  This command must occur exactly once.
27610 \end_layout
27611
27612 \begin_layout Description
27613 \begin_inset Flex Code
27614 status collapsed
27615
27616 \begin_layout Plain Layout
27617 Preamble
27618 \begin_inset space ~
27619 \end_inset
27620
27621 <name>
27622 \end_layout
27623
27624 \end_inset
27625
27626  This command specifies a preamble snippet that will be included in the
27627  \SpecialChar LaTeX
27628  preamble.
27629  It has to be defined using 
27630 \begin_inset Flex Code
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 PreambleDef
27635 \end_layout
27636
27637 \end_inset
27638
27639  \SpecialChar ldots
27640  
27641 \begin_inset Flex Code
27642 status collapsed
27643
27644 \begin_layout Plain Layout
27645 PreambleDefEnd
27646 \end_layout
27647
27648 \end_inset
27649
27650 .
27651  This command may occur zero or more times.
27652 \end_layout
27653
27654 \begin_layout Description
27655 \begin_inset Flex Code
27656 status collapsed
27657
27658 \begin_layout Plain Layout
27659 ReferencedFile
27660 \begin_inset space ~
27661 \end_inset
27662
27663 <format>
27664 \begin_inset space ~
27665 \end_inset
27666
27667 <filename>
27668 \end_layout
27669
27670 \end_inset
27671
27672  This command denotes files that are created by the conversion process and
27673  are needed for a particular export format.
27674  If the filename is relative, it is interpreted relative to the master document.
27675  This command may be given zero or more times.
27676 \end_layout
27677
27678 \begin_layout Description
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683 Requirement
27684 \begin_inset space ~
27685 \end_inset
27686
27687 <package>
27688 \end_layout
27689
27690 \end_inset
27691
27692  The name of a required \SpecialChar LaTeX
27693  package.
27694  The package is included via 
27695 \begin_inset Flex Code
27696 status collapsed
27697
27698 \begin_layout Plain Layout
27699
27700 \backslash
27701 usepackage{}
27702 \end_layout
27703
27704 \end_inset
27705
27706  in the \SpecialChar LaTeX
27707  preamble.
27708  This command may occur zero or more times.
27709 \end_layout
27710
27711 \begin_layout Description
27712 \begin_inset Flex Code
27713 status collapsed
27714
27715 \begin_layout Plain Layout
27716 TransformCommand
27717 \begin_inset space ~
27718 \end_inset
27719
27720 Rotate
27721 \begin_inset space ~
27722 \end_inset
27723
27724 RotationLatexCommand
27725 \end_layout
27726
27727 \end_inset
27728
27729  This command specifies that the built in \SpecialChar LaTeX
27730  command should be used for rotation.
27731  This command may occur once or not at all.
27732 \end_layout
27733
27734 \begin_layout Description
27735 \begin_inset Flex Code
27736 status collapsed
27737
27738 \begin_layout Plain Layout
27739 TransformCommand
27740 \begin_inset space ~
27741 \end_inset
27742
27743 Resize
27744 \begin_inset space ~
27745 \end_inset
27746
27747 ResizeLatexCommand
27748 \end_layout
27749
27750 \end_inset
27751
27752  This command specifies that the built in \SpecialChar LaTeX
27753  command should be used for resizing.
27754  This command may occur once or not at all.
27755 \end_layout
27756
27757 \begin_layout Description
27758 \begin_inset Flex Code
27759 status collapsed
27760
27761 \begin_layout Plain Layout
27762 TransformOption
27763 \begin_inset space ~
27764 \end_inset
27765
27766 Rotate
27767 \begin_inset space ~
27768 \end_inset
27769
27770 RotationLatexOption
27771 \end_layout
27772
27773 \end_inset
27774
27775  This command specifies that rotation is done via an optional argument.
27776  This command may occur once or not at all.
27777 \end_layout
27778
27779 \begin_layout Description
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 TransformOption
27785 \begin_inset space ~
27786 \end_inset
27787
27788 Resize
27789 \begin_inset space ~
27790 \end_inset
27791
27792 ResizeLatexOption
27793 \end_layout
27794
27795 \end_inset
27796
27797  This command specifies that resizing is done via an optional argument.
27798  This command may occur once or not at all.
27799 \end_layout
27800
27801 \begin_layout Description
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806 TransformOption
27807 \begin_inset space ~
27808 \end_inset
27809
27810 Clip
27811 \begin_inset space ~
27812 \end_inset
27813
27814 ClipLatexOption
27815 \end_layout
27816
27817 \end_inset
27818
27819  This command specifies that clipping is done via an optional argument.
27820  This command may occur once or not at all.
27821 \end_layout
27822
27823 \begin_layout Description
27824 \begin_inset Flex Code
27825 status collapsed
27826
27827 \begin_layout Plain Layout
27828 TransformOption
27829 \begin_inset space ~
27830 \end_inset
27831
27832 Extra
27833 \begin_inset space ~
27834 \end_inset
27835
27836 ExtraLatexOption
27837 \end_layout
27838
27839 \end_inset
27840
27841  This command specifies that an extra optional argument is used.
27842  This command may occur once or not at all.
27843 \end_layout
27844
27845 \begin_layout Description
27846 \begin_inset Flex Code
27847 status collapsed
27848
27849 \begin_layout Plain Layout
27850 UpdateFormat
27851 \begin_inset space ~
27852 \end_inset
27853
27854 <format>
27855 \end_layout
27856
27857 \end_inset
27858
27859  The file format of the converted file.
27860  This must be the name of a format that is known to \SpecialChar LyX
27861  (see the 
27862 \begin_inset Flex Noun
27863 status collapsed
27864
27865 \begin_layout Plain Layout
27866 Tools\SpecialChar menuseparator
27867 Preferences\SpecialChar menuseparator
27868 File Handling\SpecialChar menuseparator
27869 File Format
27870 \end_layout
27871
27872 \end_inset
27873
27874  dialog).
27875  This command must occur exactly once.
27876  If the resulting file format is PDF, you need to specify the format 
27877 \begin_inset Flex Code
27878 status collapsed
27879
27880 \begin_layout Plain Layout
27881 pdf6
27882 \end_layout
27883
27884 \end_inset
27885
27886 .
27887  This is the PDF format used for including graphics.
27888  The other defined PDF formats are for document export.
27889 \end_layout
27890
27891 \begin_layout Description
27892 \begin_inset Flex Code
27893 status collapsed
27894
27895 \begin_layout Plain Layout
27896 UpdateResult
27897 \begin_inset space ~
27898 \end_inset
27899
27900 <filename>
27901 \end_layout
27902
27903 \end_inset
27904
27905  The file name of the converted file.
27906  The file name must be absolute.
27907  This command must occur exactly once.
27908 \end_layout
27909
27910 \begin_layout Subsection
27911 Preamble definitions
27912 \end_layout
27913
27914 \begin_layout Standard
27915 The external template configuration file may contain additional preamble
27916  definitions enclosed by 
27917 \begin_inset Flex Code
27918 status collapsed
27919
27920 \begin_layout Plain Layout
27921 PreambleDef
27922 \end_layout
27923
27924 \end_inset
27925
27926  \SpecialChar ldots
27927  
27928 \begin_inset Flex Code
27929 status collapsed
27930
27931 \begin_layout Plain Layout
27932 PreambleDefEnd
27933 \end_layout
27934
27935 \end_inset
27936
27937 .
27938  They can be used by the templates in the 
27939 \begin_inset Flex Code
27940 status collapsed
27941
27942 \begin_layout Plain Layout
27943 Format
27944 \end_layout
27945
27946 \end_inset
27947
27948  section.
27949 \end_layout
27950
27951 \begin_layout Section
27952 The substitution mechanism
27953 \end_layout
27954
27955 \begin_layout Standard
27956 When the external material facility invokes an external program, it is done
27957  on the basis of a command defined in the template configuration file.
27958  These commands can contain various macros that are expanded before execution.
27959  Execution always take place in the directory of the containing document.
27960 \end_layout
27961
27962 \begin_layout Standard
27963 Also, whenever external material is to be displayed, the name will be produced
27964  by the substitution mechanism, and most other commands in the template
27965  definition support substitution as well.
27966 \end_layout
27967
27968 \begin_layout Standard
27969 The available macros are the following:
27970 \end_layout
27971
27972 \begin_layout Description
27973 \begin_inset Flex Code
27974 status collapsed
27975
27976 \begin_layout Plain Layout
27977 $$AbsOrRelPathMaster
27978 \end_layout
27979
27980 \end_inset
27981
27982  The file path, absolute or relative to the master \SpecialChar LyX
27983  document.
27984 \end_layout
27985
27986 \begin_layout Description
27987 \begin_inset Flex Code
27988 status collapsed
27989
27990 \begin_layout Plain Layout
27991 $$AbsOrRelPathParent
27992 \end_layout
27993
27994 \end_inset
27995
27996  The file path, absolute or relative to the \SpecialChar LyX
27997  document.
27998 \end_layout
27999
28000 \begin_layout Description
28001 \begin_inset Flex Code
28002 status collapsed
28003
28004 \begin_layout Plain Layout
28005 $$AbsPath
28006 \end_layout
28007
28008 \end_inset
28009
28010  The absolute file path.
28011 \end_layout
28012
28013 \begin_layout Description
28014 \begin_inset Flex Code
28015 status collapsed
28016
28017 \begin_layout Plain Layout
28018 $$Basename
28019 \end_layout
28020
28021 \end_inset
28022
28023  The filename without path and without the extension.
28024 \end_layout
28025
28026 \begin_layout Description
28027 \begin_inset Flex Code
28028 status collapsed
28029
28030 \begin_layout Plain Layout
28031 $$Contents(
28032 \begin_inset Quotes eld
28033 \end_inset
28034
28035 filename.ext
28036 \begin_inset Quotes erd
28037 \end_inset
28038
28039 )
28040 \end_layout
28041
28042 \end_inset
28043
28044  This macro will expand to the contents of the file with the name 
28045 \begin_inset Flex Code
28046 status collapsed
28047
28048 \begin_layout Plain Layout
28049 filename.ext
28050 \end_layout
28051
28052 \end_inset
28053
28054 .
28055 \end_layout
28056
28057 \begin_layout Description
28058 \begin_inset Flex Code
28059 status collapsed
28060
28061 \begin_layout Plain Layout
28062 $$Extension
28063 \end_layout
28064
28065 \end_inset
28066
28067  The file extension (including the dot).
28068 \end_layout
28069
28070 \begin_layout Description
28071 \begin_inset Flex Code
28072 status collapsed
28073
28074 \begin_layout Plain Layout
28075 $$pngOrjpg
28076 \end_layout
28077
28078 \end_inset
28079
28080  This will be the string 
28081 \begin_inset Quotes eld
28082 \end_inset
28083
28084 jpg
28085 \begin_inset Quotes erd
28086 \end_inset
28087
28088  if the file is in JPEG format, otherwise it will be the string 
28089 \begin_inset Quotes eld
28090 \end_inset
28091
28092 png
28093 \begin_inset Quotes erd
28094 \end_inset
28095
28096 .
28097  This is useful to avoid uneeded conversions for output formats that support
28098  both PNG and JPEG fomats.
28099  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
28100  output
28101  format.
28102 \end_layout
28103
28104 \begin_layout Description
28105 \begin_inset Flex Code
28106 status collapsed
28107
28108 \begin_layout Plain Layout
28109 $$FName
28110 \end_layout
28111
28112 \end_inset
28113
28114  The filename of the file specified in the external material dialog.
28115  This is either an absolute name, or it is relative to the \SpecialChar LyX
28116  document.
28117 \end_layout
28118
28119 \begin_layout Description
28120 \begin_inset Flex Code
28121 status collapsed
28122
28123 \begin_layout Plain Layout
28124 $$FPath
28125 \end_layout
28126
28127 \end_inset
28128
28129  The path part of 
28130 \begin_inset Flex Code
28131 status collapsed
28132
28133 \begin_layout Plain Layout
28134 $$FName
28135 \end_layout
28136
28137 \end_inset
28138
28139  (absolute name or relative to the \SpecialChar LyX
28140  document).
28141 \end_layout
28142
28143 \begin_layout Description
28144 \begin_inset Flex Code
28145 status collapsed
28146
28147 \begin_layout Plain Layout
28148 $$RelPathMaster
28149 \end_layout
28150
28151 \end_inset
28152
28153  The file path, relative to the master \SpecialChar LyX
28154  document.
28155 \end_layout
28156
28157 \begin_layout Description
28158 \begin_inset Flex Code
28159 status collapsed
28160
28161 \begin_layout Plain Layout
28162 $$RelPathParent
28163 \end_layout
28164
28165 \end_inset
28166
28167  The file path, relative to the \SpecialChar LyX
28168  document.
28169 \end_layout
28170
28171 \begin_layout Description
28172 \begin_inset Flex Code
28173 status collapsed
28174
28175 \begin_layout Plain Layout
28176 $$Sysdir
28177 \end_layout
28178
28179 \end_inset
28180
28181  This macro will expand to the absolute path of the system directory.
28182  This is typically used to point to the various helper scripts that are
28183  bundled with \SpecialChar LyX
28184 .
28185 \end_layout
28186
28187 \begin_layout Description
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 $$Tempname
28193 \end_layout
28194
28195 \end_inset
28196
28197  A name and full path to a temporary file which will be automatically deleted
28198  whenever the containing document is closed, or the external material insertion
28199  deleted.
28200 \end_layout
28201
28202 \begin_layout Standard
28203 All path macros contain a trailing directory separator, so you can construct
28204  e.
28205 \begin_inset space \thinspace{}
28206 \end_inset
28207
28208 g.
28209 \begin_inset space \space{}
28210 \end_inset
28211
28212 the absolute filename with 
28213 \begin_inset Flex Code
28214 status collapsed
28215
28216 \begin_layout Plain Layout
28217 $$AbsPath$$Basename$$Extension
28218 \end_layout
28219
28220 \end_inset
28221
28222 .
28223 \end_layout
28224
28225 \begin_layout Standard
28226 The macros above are substituted in all commands unless otherwise noted.
28227  The command 
28228 \begin_inset Flex Code
28229 status collapsed
28230
28231 \begin_layout Plain Layout
28232 Product
28233 \end_layout
28234
28235 \end_inset
28236
28237  supports additionally the following substitutions if they are enabled by
28238  the 
28239 \begin_inset Flex Code
28240 status collapsed
28241
28242 \begin_layout Plain Layout
28243 Transform
28244 \end_layout
28245
28246 \end_inset
28247
28248  and 
28249 \begin_inset Flex Code
28250 status collapsed
28251
28252 \begin_layout Plain Layout
28253 TransformCommand
28254 \end_layout
28255
28256 \end_inset
28257
28258  commands:
28259 \end_layout
28260
28261 \begin_layout Description
28262 \begin_inset Flex Code
28263 status collapsed
28264
28265 \begin_layout Plain Layout
28266 $$ResizeFront
28267 \end_layout
28268
28269 \end_inset
28270
28271  The front part of the resize command.
28272 \end_layout
28273
28274 \begin_layout Description
28275 \begin_inset Flex Code
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279 $$ResizeBack
28280 \end_layout
28281
28282 \end_inset
28283
28284  The back part of the resize command.
28285 \end_layout
28286
28287 \begin_layout Description
28288 \begin_inset Flex Code
28289 status collapsed
28290
28291 \begin_layout Plain Layout
28292 $$RotateFront
28293 \end_layout
28294
28295 \end_inset
28296
28297  The front part of the rotation command.
28298 \end_layout
28299
28300 \begin_layout Description
28301 \begin_inset Flex Code
28302 status collapsed
28303
28304 \begin_layout Plain Layout
28305 $$RotateBack
28306 \end_layout
28307
28308 \end_inset
28309
28310  The back part of the rotation command.
28311 \end_layout
28312
28313 \begin_layout Standard
28314 The value string of the 
28315 \begin_inset Flex Code
28316 status collapsed
28317
28318 \begin_layout Plain Layout
28319 Option
28320 \end_layout
28321
28322 \end_inset
28323
28324  command supports additionally the following substitutions if they are enabled
28325  by the 
28326 \begin_inset Flex Code
28327 status collapsed
28328
28329 \begin_layout Plain Layout
28330 Transform
28331 \end_layout
28332
28333 \end_inset
28334
28335  and 
28336 \begin_inset Flex Code
28337 status collapsed
28338
28339 \begin_layout Plain Layout
28340 TransformOption
28341 \end_layout
28342
28343 \end_inset
28344
28345  commands:
28346 \end_layout
28347
28348 \begin_layout Description
28349 \begin_inset Flex Code
28350 status collapsed
28351
28352 \begin_layout Plain Layout
28353 $$Clip
28354 \end_layout
28355
28356 \end_inset
28357
28358  The clip option.
28359 \end_layout
28360
28361 \begin_layout Description
28362 \begin_inset Flex Code
28363 status collapsed
28364
28365 \begin_layout Plain Layout
28366 $$Extra
28367 \end_layout
28368
28369 \end_inset
28370
28371  The extra option.
28372 \end_layout
28373
28374 \begin_layout Description
28375 \begin_inset Flex Code
28376 status collapsed
28377
28378 \begin_layout Plain Layout
28379 $$Resize
28380 \end_layout
28381
28382 \end_inset
28383
28384  The resize option.
28385 \end_layout
28386
28387 \begin_layout Description
28388 \begin_inset Flex Code
28389 status collapsed
28390
28391 \begin_layout Plain Layout
28392 $$Rotate
28393 \end_layout
28394
28395 \end_inset
28396
28397  The rotation option.
28398 \end_layout
28399
28400 \begin_layout Standard
28401 You may ask why there are so many path macros.
28402  There are mainly two reasons:
28403 \end_layout
28404
28405 \begin_layout Enumerate
28406 Relative and absolute file names should remain relative or absolute, respectivel
28407 y.
28408  Users may have reasons to prefer either form.
28409  Relative names are useful for portable documents that should work on different
28410  machines, for example.
28411  Absolute names may be required by some programs.
28412 \end_layout
28413
28414 \begin_layout Enumerate
28415 \SpecialChar LaTeX
28416  treats relative file names differently than \SpecialChar LyX
28417  and other programs in nested
28418  included files.
28419  For \SpecialChar LyX
28420 , a relative file name is always relative to the document that contains
28421  the file name.
28422  For \SpecialChar LaTeX
28423 , it is always relative to the master document.
28424  These two definitions are identical if you have only one document, but
28425  differ if you have a master document that includes part documents.
28426  That means that relative filenames must be transformed when presented to
28427  \SpecialChar LaTeX
28428 .
28429  Fortunately \SpecialChar LyX
28430  does this automatically for you if you choose the right macros.
28431 \end_layout
28432
28433 \begin_layout Standard
28434 So which path macro should be used in new template definitions? The rule
28435  is not difficult:
28436 \end_layout
28437
28438 \begin_layout Itemize
28439 Use 
28440 \begin_inset Flex Code
28441 status collapsed
28442
28443 \begin_layout Plain Layout
28444 $$AbsPath
28445 \end_layout
28446
28447 \end_inset
28448
28449  if an absolute path is required.
28450 \end_layout
28451
28452 \begin_layout Itemize
28453 Use 
28454 \begin_inset Flex Code
28455 status collapsed
28456
28457 \begin_layout Plain Layout
28458 $$AbsOrRelPathMaster
28459 \end_layout
28460
28461 \end_inset
28462
28463  if the substituted string is some kind of \SpecialChar LaTeX
28464  input.
28465 \end_layout
28466
28467 \begin_layout Itemize
28468 Else use 
28469 \begin_inset Flex Code
28470 status collapsed
28471
28472 \begin_layout Plain Layout
28473 $$AbsOrRelPathParent
28474 \end_layout
28475
28476 \end_inset
28477
28478  in order to preserve the user's choice.
28479 \end_layout
28480
28481 \begin_layout Standard
28482 There are special cases where this rule does not work and e.
28483 \begin_inset space \thinspace{}
28484 \end_inset
28485
28486 g.
28487 \begin_inset space \space{}
28488 \end_inset
28489
28490 relative names are needed, but normally it will work just fine.
28491  One example for such a case is the command 
28492 \begin_inset Flex Code
28493 status collapsed
28494
28495 \begin_layout Plain Layout
28496 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28497 \end_layout
28498
28499 \end_inset
28500
28501  in the XFig template above: We can't use the absolute name because the
28502  copier for 
28503 \begin_inset Flex Code
28504 status collapsed
28505
28506 \begin_layout Plain Layout
28507 .pstex_t
28508 \end_layout
28509
28510 \end_inset
28511
28512  files needs the relative name in order to rewrite the file content.
28513 \end_layout
28514
28515 \begin_layout Section
28516 Security discussion
28517 \begin_inset CommandInset label
28518 LatexCommand label
28519 name "sec:Security-discussion"
28520
28521 \end_inset
28522
28523
28524 \end_layout
28525
28526 \begin_layout Standard
28527 The external material feature interfaces with a lot of external programs
28528  and does so automatically, so we have to consider the security implications
28529  of this.
28530  In particular, since you have the option of including your own filenames
28531  and/or parameter strings and those are expanded into a command, it seems
28532  that it would be possible to create a malicious document which executes
28533  arbitrary commands when a user views or prints the document.
28534  This is something we definitely want to avoid.
28535 \end_layout
28536
28537 \begin_layout Standard
28538 However, since the external program commands are specified in the template
28539  configuration file only, there are no security issues if \SpecialChar LyX
28540  is properly configure
28541 d with safe templates only.
28542  This is so because the external programs are invoked with the 
28543 \begin_inset Flex Code
28544 status collapsed
28545
28546 \begin_layout Plain Layout
28547 execvp
28548 \end_layout
28549
28550 \end_inset
28551
28552 -system call rather than the 
28553 \begin_inset Flex Code
28554 status collapsed
28555
28556 \begin_layout Plain Layout
28557 system
28558 \end_layout
28559
28560 \end_inset
28561
28562  system-call, so it's not possible to execute arbitrary commands from the
28563  filename or parameter section via the shell.
28564 \end_layout
28565
28566 \begin_layout Standard
28567 This also implies that you are restricted in what command strings you can
28568  use in the external material templates.
28569  In particular, pipes and redirection are not readily available.
28570  This has to be so if \SpecialChar LyX
28571  should remain safe.
28572  If you want to use some of the shell features, you should write a safe
28573  script to do this in a controlled manner, and then invoke the script from
28574  the command string.
28575  
28576 \end_layout
28577
28578 \begin_layout Standard
28579 It is possible to design a template that interacts directly with the shell,
28580  but since this would allow a malicious user to execute arbitrary commands
28581  by writing clever filenames and/or parameters, we generally recommend that
28582  you only use safe scripts that work with the 
28583 \begin_inset Flex Code
28584 status collapsed
28585
28586 \begin_layout Plain Layout
28587 execvp
28588 \end_layout
28589
28590 \end_inset
28591
28592  system call in a controlled manner.
28593  Of course, for use in a controlled environment, it can be tempting to just
28594  fall back to use ordinary shell scripts.
28595  If you do so, be aware that you 
28596 \emph on
28597 will
28598 \emph default
28599  provide an easily exploitable security hole in your system.
28600  Of course it stands to reason that such unsafe templates will never be
28601  included in the standard \SpecialChar LyX
28602  distribution, although we do encourage people
28603  to submit new templates in the open source tradition.
28604  But \SpecialChar LyX
28605  as shipped from the official distribution channels will never have
28606  unsafe templates.
28607 \end_layout
28608
28609 \begin_layout Standard
28610 Including external material provides a lot of power, and you have to be
28611  careful not to introduce security hazards with this power.
28612  A subtle error in a single line in an innocent looking script can open
28613  the door to huge security problems.
28614  So if you do not fully understand the issues, we recommend that you consult
28615  a knowledgeable security professional or the \SpecialChar LyX
28616  development team if you have
28617  any questions about whether a given template is safe or not.
28618  And do this before you use it in an uncontrolled environment.
28619 \end_layout
28620
28621 \begin_layout Chapter
28622 \start_of_appendix
28623 List of supported \SpecialChar LyX
28624  functions to be used in layouts
28625 \begin_inset CommandInset label
28626 LatexCommand label
28627 name "chap:List-of-functions"
28628
28629 \end_inset
28630
28631
28632 \end_layout
28633
28634 \begin_layout Standard
28635 \align center
28636 \begin_inset Tabular
28637 <lyxtabular version="3" rows="11" columns="8">
28638 <features tabularvalignment="middle">
28639 <column alignment="left" valignment="top">
28640 <column alignment="left" valignment="top">
28641 <column alignment="left" valignment="top">
28642 <column alignment="left" valignment="top">
28643 <column alignment="left" valignment="top">
28644 <column alignment="left" valignment="top">
28645 <column alignment="left" valignment="top">
28646 <column alignment="left" valignment="top">
28647 <row>
28648 <cell alignment="left" valignment="top" usebox="none">
28649 \begin_inset Text
28650
28651 \begin_layout Plain Layout
28652 accents
28653 \end_layout
28654
28655 \end_inset
28656 </cell>
28657 <cell alignment="left" valignment="top" usebox="none">
28658 \begin_inset Text
28659
28660 \begin_layout Plain Layout
28661 booktabs
28662 \end_layout
28663
28664 \end_inset
28665 </cell>
28666 <cell alignment="left" valignment="top" usebox="none">
28667 \begin_inset Text
28668
28669 \begin_layout Plain Layout
28670 feyn
28671 \end_layout
28672
28673 \end_inset
28674 </cell>
28675 <cell alignment="left" valignment="top" usebox="none">
28676 \begin_inset Text
28677
28678 \begin_layout Plain Layout
28679 listings
28680 \end_layout
28681
28682 \end_inset
28683 </cell>
28684 <cell alignment="center" valignment="top" usebox="none">
28685 \begin_inset Text
28686
28687 \begin_layout Plain Layout
28688 natbib
28689 \end_layout
28690
28691 \end_inset
28692 </cell>
28693 <cell alignment="center" valignment="top" usebox="none">
28694 \begin_inset Text
28695
28696 \begin_layout Plain Layout
28697 rotfloat
28698 \end_layout
28699
28700 \end_inset
28701 </cell>
28702 <cell alignment="center" valignment="top" usebox="none">
28703 \begin_inset Text
28704
28705 \begin_layout Plain Layout
28706 tfrupee
28707 \end_layout
28708
28709 \end_inset
28710 </cell>
28711 <cell alignment="center" valignment="top" usebox="none">
28712 \begin_inset Text
28713
28714 \begin_layout Plain Layout
28715 wasysym
28716 \end_layout
28717
28718 \end_inset
28719 </cell>
28720 </row>
28721 <row>
28722 <cell alignment="left" valignment="top" usebox="none">
28723 \begin_inset Text
28724
28725 \begin_layout Plain Layout
28726 amsbsy
28727 \end_layout
28728
28729 \end_inset
28730 </cell>
28731 <cell alignment="left" valignment="top" usebox="none">
28732 \begin_inset Text
28733
28734 \begin_layout Plain Layout
28735 calc
28736 \end_layout
28737
28738 \end_inset
28739 </cell>
28740 <cell alignment="left" valignment="top" usebox="none">
28741 \begin_inset Text
28742
28743 \begin_layout Plain Layout
28744 fixltx2e
28745 \end_layout
28746
28747 \end_inset
28748 </cell>
28749 <cell alignment="left" valignment="top" usebox="none">
28750 \begin_inset Text
28751
28752 \begin_layout Plain Layout
28753 longtable
28754 \end_layout
28755
28756 \end_inset
28757 </cell>
28758 <cell alignment="center" valignment="top" usebox="none">
28759 \begin_inset Text
28760
28761 \begin_layout Plain Layout
28762 nomencl
28763 \end_layout
28764
28765 \end_inset
28766 </cell>
28767 <cell alignment="center" valignment="top" usebox="none">
28768 \begin_inset Text
28769
28770 \begin_layout Plain Layout
28771 rsphrase
28772 \end_layout
28773
28774 \end_inset
28775 </cell>
28776 <cell alignment="center" valignment="top" usebox="none">
28777 \begin_inset Text
28778
28779 \begin_layout Plain Layout
28780 tipa
28781 \end_layout
28782
28783 \end_inset
28784 </cell>
28785 <cell alignment="center" valignment="top" usebox="none">
28786 \begin_inset Text
28787
28788 \begin_layout Plain Layout
28789 wrapfig
28790 \end_layout
28791
28792 \end_inset
28793 </cell>
28794 </row>
28795 <row>
28796 <cell alignment="left" valignment="top" usebox="none">
28797 \begin_inset Text
28798
28799 \begin_layout Plain Layout
28800 amscd
28801 \end_layout
28802
28803 \end_inset
28804 </cell>
28805 <cell alignment="left" valignment="top" usebox="none">
28806 \begin_inset Text
28807
28808 \begin_layout Plain Layout
28809 CJK
28810 \end_layout
28811
28812 \end_inset
28813 </cell>
28814 <cell alignment="left" valignment="top" usebox="none">
28815 \begin_inset Text
28816
28817 \begin_layout Plain Layout
28818 float
28819 \end_layout
28820
28821 \end_inset
28822 </cell>
28823 <cell alignment="left" valignment="top" usebox="none">
28824 \begin_inset Text
28825
28826 \begin_layout Plain Layout
28827 lyxskak
28828 \end_layout
28829
28830 \end_inset
28831 </cell>
28832 <cell alignment="center" valignment="top" usebox="none">
28833 \begin_inset Text
28834
28835 \begin_layout Plain Layout
28836 pdfcolmk
28837 \end_layout
28838
28839 \end_inset
28840 </cell>
28841 <cell alignment="center" valignment="top" usebox="none">
28842 \begin_inset Text
28843
28844 \begin_layout Plain Layout
28845 setspace
28846 \end_layout
28847
28848 \end_inset
28849 </cell>
28850 <cell alignment="center" valignment="top" usebox="none">
28851 \begin_inset Text
28852
28853 \begin_layout Plain Layout
28854 tipx
28855 \end_layout
28856
28857 \end_inset
28858 </cell>
28859 <cell alignment="center" valignment="top" usebox="none">
28860 \begin_inset Text
28861
28862 \begin_layout Plain Layout
28863 xargs
28864 \end_layout
28865
28866 \end_inset
28867 </cell>
28868 </row>
28869 <row>
28870 <cell alignment="left" valignment="top" usebox="none">
28871 \begin_inset Text
28872
28873 \begin_layout Plain Layout
28874 amsmath
28875 \end_layout
28876
28877 \end_inset
28878 </cell>
28879 <cell alignment="left" valignment="top" usebox="none">
28880 \begin_inset Text
28881
28882 \begin_layout Plain Layout
28883 color
28884 \end_layout
28885
28886 \end_inset
28887 </cell>
28888 <cell alignment="left" valignment="top" usebox="none">
28889 \begin_inset Text
28890
28891 \begin_layout Plain Layout
28892 framed
28893 \end_layout
28894
28895 \end_inset
28896 </cell>
28897 <cell alignment="left" valignment="top" usebox="none">
28898 \begin_inset Text
28899
28900 \begin_layout Plain Layout
28901 makeidx
28902 \end_layout
28903
28904 \end_inset
28905 </cell>
28906 <cell alignment="center" valignment="top" usebox="none">
28907 \begin_inset Text
28908
28909 \begin_layout Plain Layout
28910 pdfpages
28911 \end_layout
28912
28913 \end_inset
28914 </cell>
28915 <cell alignment="center" valignment="top" usebox="none">
28916 \begin_inset Text
28917
28918 \begin_layout Plain Layout
28919 shapepar
28920 \end_layout
28921
28922 \end_inset
28923 </cell>
28924 <cell alignment="center" valignment="top" usebox="none">
28925 \begin_inset Text
28926
28927 \begin_layout Plain Layout
28928 tone
28929 \end_layout
28930
28931 \end_inset
28932 </cell>
28933 <cell alignment="center" valignment="top" usebox="none">
28934 \begin_inset Text
28935
28936 \begin_layout Plain Layout
28937 xcolor
28938 \end_layout
28939
28940 \end_inset
28941 </cell>
28942 </row>
28943 <row>
28944 <cell alignment="left" valignment="top" usebox="none">
28945 \begin_inset Text
28946
28947 \begin_layout Plain Layout
28948 amssymb
28949 \end_layout
28950
28951 \end_inset
28952 </cell>
28953 <cell alignment="left" valignment="top" usebox="none">
28954 \begin_inset Text
28955
28956 \begin_layout Plain Layout
28957 covington
28958 \end_layout
28959
28960 \end_inset
28961 </cell>
28962 <cell alignment="left" valignment="top" usebox="none">
28963 \begin_inset Text
28964
28965 \begin_layout Plain Layout
28966 graphicx
28967 \end_layout
28968
28969 \end_inset
28970 </cell>
28971 <cell alignment="left" valignment="top" usebox="none">
28972 \begin_inset Text
28973
28974 \begin_layout Plain Layout
28975 marvosym
28976 \end_layout
28977
28978 \end_inset
28979 </cell>
28980 <cell alignment="center" valignment="top" usebox="none">
28981 \begin_inset Text
28982
28983 \begin_layout Plain Layout
28984 pifont
28985 \end_layout
28986
28987 \end_inset
28988 </cell>
28989 <cell alignment="center" valignment="top" usebox="none">
28990 \begin_inset Text
28991
28992 \begin_layout Plain Layout
28993 slashed
28994 \end_layout
28995
28996 \end_inset
28997 </cell>
28998 <cell alignment="center" valignment="top" usebox="none">
28999 \begin_inset Text
29000
29001 \begin_layout Plain Layout
29002 txfonts
29003 \end_layout
29004
29005 \end_inset
29006 </cell>
29007 <cell alignment="center" valignment="top" usebox="none">
29008 \begin_inset Text
29009
29010 \begin_layout Plain Layout
29011 xy
29012 \end_layout
29013
29014 \end_inset
29015 </cell>
29016 </row>
29017 <row>
29018 <cell alignment="left" valignment="top" usebox="none">
29019 \begin_inset Text
29020
29021 \begin_layout Plain Layout
29022 amstext
29023 \end_layout
29024
29025 \end_inset
29026 </cell>
29027 <cell alignment="left" valignment="top" usebox="none">
29028 \begin_inset Text
29029
29030 \begin_layout Plain Layout
29031 csquotes
29032 \end_layout
29033
29034 \end_inset
29035 </cell>
29036 <cell alignment="left" valignment="top" usebox="none">
29037 \begin_inset Text
29038
29039 \begin_layout Plain Layout
29040 hhline
29041 \end_layout
29042
29043 \end_inset
29044 </cell>
29045 <cell alignment="left" valignment="top" usebox="none">
29046 \begin_inset Text
29047
29048 \begin_layout Plain Layout
29049 mathdesign
29050 \end_layout
29051
29052 \end_inset
29053 </cell>
29054 <cell alignment="center" valignment="top" usebox="none">
29055 \begin_inset Text
29056
29057 \begin_layout Plain Layout
29058 pmboxdraw
29059 \end_layout
29060
29061 \end_inset
29062 </cell>
29063 <cell alignment="center" valignment="top" usebox="none">
29064 \begin_inset Text
29065
29066 \begin_layout Plain Layout
29067 soul
29068 \end_layout
29069
29070 \end_inset
29071 </cell>
29072 <cell alignment="center" valignment="top" usebox="none">
29073 \begin_inset Text
29074
29075 \begin_layout Plain Layout
29076 ulem
29077 \end_layout
29078
29079 \end_inset
29080 </cell>
29081 <cell alignment="center" valignment="top" usebox="none">
29082 \begin_inset Text
29083
29084 \begin_layout Plain Layout
29085 yhmath
29086 \end_layout
29087
29088 \end_inset
29089 </cell>
29090 </row>
29091 <row>
29092 <cell alignment="left" valignment="top" usebox="none">
29093 \begin_inset Text
29094
29095 \begin_layout Plain Layout
29096 amsthm
29097 \end_layout
29098
29099 \end_inset
29100 </cell>
29101 <cell alignment="left" valignment="top" usebox="none">
29102 \begin_inset Text
29103
29104 \begin_layout Plain Layout
29105 dvipost
29106 \end_layout
29107
29108 \end_inset
29109 </cell>
29110 <cell alignment="left" valignment="top" usebox="none">
29111 \begin_inset Text
29112
29113 \begin_layout Plain Layout
29114 hyperref
29115 \end_layout
29116
29117 \end_inset
29118 </cell>
29119 <cell alignment="left" valignment="top" usebox="none">
29120 \begin_inset Text
29121
29122 \begin_layout Plain Layout
29123 mathdots
29124 \end_layout
29125
29126 \end_inset
29127 </cell>
29128 <cell alignment="center" valignment="top" usebox="none">
29129 \begin_inset Text
29130
29131 \begin_layout Plain Layout
29132 polyglossia
29133 \end_layout
29134
29135 \end_inset
29136 </cell>
29137 <cell alignment="center" valignment="top" usebox="none">
29138 \begin_inset Text
29139
29140 \begin_layout Plain Layout
29141 splitidx
29142 \end_layout
29143
29144 \end_inset
29145 </cell>
29146 <cell alignment="center" valignment="top" usebox="none">
29147 \begin_inset Text
29148
29149 \begin_layout Plain Layout
29150 undertilde
29151 \end_layout
29152
29153 \end_inset
29154 </cell>
29155 <cell alignment="center" valignment="top" usebox="none">
29156 \begin_inset Text
29157
29158 \begin_layout Plain Layout
29159
29160 \end_layout
29161
29162 \end_inset
29163 </cell>
29164 </row>
29165 <row>
29166 <cell alignment="left" valignment="top" usebox="none">
29167 \begin_inset Text
29168
29169 \begin_layout Plain Layout
29170 array
29171 \end_layout
29172
29173 \end_inset
29174 </cell>
29175 <cell alignment="left" valignment="top" usebox="none">
29176 \begin_inset Text
29177
29178 \begin_layout Plain Layout
29179 endnotes
29180 \end_layout
29181
29182 \end_inset
29183 </cell>
29184 <cell alignment="left" valignment="top" usebox="none">
29185 \begin_inset Text
29186
29187 \begin_layout Plain Layout
29188 ifsym
29189 \end_layout
29190
29191 \end_inset
29192 </cell>
29193 <cell alignment="left" valignment="top" usebox="none">
29194 \begin_inset Text
29195
29196 \begin_layout Plain Layout
29197 mathrsfs
29198 \end_layout
29199
29200 \end_inset
29201 </cell>
29202 <cell alignment="center" valignment="top" usebox="none">
29203 \begin_inset Text
29204
29205 \begin_layout Plain Layout
29206 prettyref
29207 \end_layout
29208
29209 \end_inset
29210 </cell>
29211 <cell alignment="center" valignment="top" usebox="none">
29212 \begin_inset Text
29213
29214 \begin_layout Plain Layout
29215 subfig
29216 \end_layout
29217
29218 \end_inset
29219 </cell>
29220 <cell alignment="center" valignment="top" usebox="none">
29221 \begin_inset Text
29222
29223 \begin_layout Plain Layout
29224 units
29225 \end_layout
29226
29227 \end_inset
29228 </cell>
29229 <cell alignment="center" valignment="top" usebox="none">
29230 \begin_inset Text
29231
29232 \begin_layout Plain Layout
29233
29234 \end_layout
29235
29236 \end_inset
29237 </cell>
29238 </row>
29239 <row>
29240 <cell alignment="left" valignment="top" usebox="none">
29241 \begin_inset Text
29242
29243 \begin_layout Plain Layout
29244 ascii
29245 \end_layout
29246
29247 \end_inset
29248 </cell>
29249 <cell alignment="left" valignment="top" usebox="none">
29250 \begin_inset Text
29251
29252 \begin_layout Plain Layout
29253 enumitem
29254 \end_layout
29255
29256 \end_inset
29257 </cell>
29258 <cell alignment="left" valignment="top" usebox="none">
29259 \begin_inset Text
29260
29261 \begin_layout Plain Layout
29262 ifthen
29263 \end_layout
29264
29265 \end_inset
29266 </cell>
29267 <cell alignment="left" valignment="top" usebox="none">
29268 \begin_inset Text
29269
29270 \begin_layout Plain Layout
29271 mhchem
29272 \end_layout
29273
29274 \end_inset
29275 </cell>
29276 <cell alignment="center" valignment="top" usebox="none">
29277 \begin_inset Text
29278
29279 \begin_layout Plain Layout
29280 pxfonts
29281 \end_layout
29282
29283 \end_inset
29284 </cell>
29285 <cell alignment="center" valignment="top" usebox="none">
29286 \begin_inset Text
29287
29288 \begin_layout Plain Layout
29289 subscript
29290 \end_layout
29291
29292 \end_inset
29293 </cell>
29294 <cell alignment="center" valignment="top" usebox="none">
29295 \begin_inset Text
29296
29297 \begin_layout Plain Layout
29298 url
29299 \end_layout
29300
29301 \end_inset
29302 </cell>
29303 <cell alignment="center" valignment="top" usebox="none">
29304 \begin_inset Text
29305
29306 \begin_layout Plain Layout
29307
29308 \end_layout
29309
29310 \end_inset
29311 </cell>
29312 </row>
29313 <row>
29314 <cell alignment="left" valignment="top" usebox="none">
29315 \begin_inset Text
29316
29317 \begin_layout Plain Layout
29318 bbding
29319 \end_layout
29320
29321 \end_inset
29322 </cell>
29323 <cell alignment="left" valignment="top" usebox="none">
29324 \begin_inset Text
29325
29326 \begin_layout Plain Layout
29327 esint
29328 \end_layout
29329
29330 \end_inset
29331 </cell>
29332 <cell alignment="left" valignment="top" usebox="none">
29333 \begin_inset Text
29334
29335 \begin_layout Plain Layout
29336 jurabib
29337 \end_layout
29338
29339 \end_inset
29340 </cell>
29341 <cell alignment="left" valignment="top" usebox="none">
29342 \begin_inset Text
29343
29344 \begin_layout Plain Layout
29345 multicol
29346 \end_layout
29347
29348 \end_inset
29349 </cell>
29350 <cell alignment="center" valignment="top" usebox="none">
29351 \begin_inset Text
29352
29353 \begin_layout Plain Layout
29354 refstyle
29355 \end_layout
29356
29357 \end_inset
29358 </cell>
29359 <cell alignment="center" valignment="top" usebox="none">
29360 \begin_inset Text
29361
29362 \begin_layout Plain Layout
29363 textcomp
29364 \end_layout
29365
29366 \end_inset
29367 </cell>
29368 <cell alignment="center" valignment="top" usebox="none">
29369 \begin_inset Text
29370
29371 \begin_layout Plain Layout
29372 varioref
29373 \end_layout
29374
29375 \end_inset
29376 </cell>
29377 <cell alignment="center" valignment="top" usebox="none">
29378 \begin_inset Text
29379
29380 \begin_layout Plain Layout
29381
29382 \end_layout
29383
29384 \end_inset
29385 </cell>
29386 </row>
29387 <row>
29388 <cell alignment="center" valignment="top" usebox="none">
29389 \begin_inset Text
29390
29391 \begin_layout Plain Layout
29392 bm
29393 \end_layout
29394
29395 \end_inset
29396 </cell>
29397 <cell alignment="center" valignment="top" usebox="none">
29398 \begin_inset Text
29399
29400 \begin_layout Plain Layout
29401 fancybox
29402 \end_layout
29403
29404 \end_inset
29405 </cell>
29406 <cell alignment="center" valignment="top" usebox="none">
29407 \begin_inset Text
29408
29409 \begin_layout Plain Layout
29410 latexsym
29411 \end_layout
29412
29413 \end_inset
29414 </cell>
29415 <cell alignment="center" valignment="top" usebox="none">
29416 \begin_inset Text
29417
29418 \begin_layout Plain Layout
29419 multirow
29420 \end_layout
29421
29422 \end_inset
29423 </cell>
29424 <cell alignment="center" valignment="top" usebox="none">
29425 \begin_inset Text
29426
29427 \begin_layout Plain Layout
29428 rotating
29429 \end_layout
29430
29431 \end_inset
29432 </cell>
29433 <cell alignment="center" valignment="top" usebox="none">
29434 \begin_inset Text
29435
29436 \begin_layout Plain Layout
29437 textgreek
29438 \end_layout
29439
29440 \end_inset
29441 </cell>
29442 <cell alignment="center" valignment="top" usebox="none">
29443 \begin_inset Text
29444
29445 \begin_layout Plain Layout
29446 verbatim
29447 \end_layout
29448
29449 \end_inset
29450 </cell>
29451 <cell alignment="center" valignment="top" usebox="none">
29452 \begin_inset Text
29453
29454 \begin_layout Plain Layout
29455
29456 \end_layout
29457
29458 \end_inset
29459 </cell>
29460 </row>
29461 </lyxtabular>
29462
29463 \end_inset
29464
29465
29466 \end_layout
29467
29468 \begin_layout Chapter
29469 Names of available colors to be used in layouts
29470 \begin_inset CommandInset label
29471 LatexCommand label
29472 name "chap:Names-of-colors"
29473
29474 \end_inset
29475
29476
29477 \end_layout
29478
29479 \begin_layout Standard
29480 The colors listed below are the standard colors and those that you can adjust
29481  in the \SpecialChar LyX
29482  preferences.
29483 \end_layout
29484
29485 \begin_layout Section
29486 Color functions
29487 \end_layout
29488
29489 \begin_layout Standard
29490 The following are no real colors, but rather act on color definitions:
29491 \end_layout
29492
29493 \begin_layout Description
29494 ignore The color is ignored
29495 \end_layout
29496
29497 \begin_layout Description
29498 inherit The color is inherited
29499 \end_layout
29500
29501 \begin_layout Description
29502 none
29503 \family roman
29504 \series medium
29505 \shape up
29506 \size normal
29507 \emph off
29508 \bar no
29509 \strikeout off
29510 \uuline off
29511 \uwave off
29512 \noun off
29513 \color none
29514  No particular color – clear or default
29515 \end_layout
29516
29517 \begin_layout Section
29518 Static colors
29519 \end_layout
29520
29521 \begin_layout Standard
29522 These are fixed colors that cannot be customized:
29523 \end_layout
29524
29525 \begin_layout Description
29526 black
29527 \end_layout
29528
29529 \begin_layout Description
29530 white
29531 \end_layout
29532
29533 \begin_layout Description
29534 blue
29535 \end_layout
29536
29537 \begin_layout Description
29538 brown
29539 \end_layout
29540
29541 \begin_layout Description
29542 cyan
29543 \end_layout
29544
29545 \begin_layout Description
29546 darkgray
29547 \end_layout
29548
29549 \begin_layout Description
29550 gray
29551 \end_layout
29552
29553 \begin_layout Description
29554 green
29555 \end_layout
29556
29557 \begin_layout Description
29558 lightgray
29559 \end_layout
29560
29561 \begin_layout Description
29562 lime
29563 \end_layout
29564
29565 \begin_layout Description
29566 magenta
29567 \end_layout
29568
29569 \begin_layout Description
29570 olive
29571 \end_layout
29572
29573 \begin_layout Description
29574 orange
29575 \end_layout
29576
29577 \begin_layout Description
29578 pink
29579 \end_layout
29580
29581 \begin_layout Description
29582 purple
29583 \end_layout
29584
29585 \begin_layout Description
29586 red
29587 \end_layout
29588
29589 \begin_layout Description
29590 teal
29591 \end_layout
29592
29593 \begin_layout Description
29594 violet
29595 \end_layout
29596
29597 \begin_layout Description
29598 yellow
29599 \end_layout
29600
29601 \begin_layout Section
29602 Dynamic colors
29603 \end_layout
29604
29605 \begin_layout Standard
29606 These are the colors allocated to specific elements in 
29607 \begin_inset Info
29608 type  "menu"
29609 arg   "dialog-show prefs"
29610 \end_inset
29611
29612 :
29613 \end_layout
29614
29615 \begin_layout Description
29616 added_space Added space color
29617 \end_layout
29618
29619 \begin_layout Description
29620 addedtext Added text color
29621 \end_layout
29622
29623 \begin_layout Description
29624 appendix Appendix marker color
29625 \end_layout
29626
29627 \begin_layout Description
29628 background Background color
29629 \end_layout
29630
29631 \begin_layout Description
29632 bottomarea Bottom area color
29633 \end_layout
29634
29635 \begin_layout Description
29636 branchlabel Label color for branches
29637 \end_layout
29638
29639 \begin_layout Description
29640 buttonbg Color used for button background
29641 \end_layout
29642
29643 \begin_layout Description
29644 buttonframe Color for inset button frames
29645 \end_layout
29646
29647 \begin_layout Description
29648 buttonhoverbg Color used for button background under focus
29649 \end_layout
29650
29651 \begin_layout Description
29652 changebar Changebar color
29653 \end_layout
29654
29655 \begin_layout Description
29656 changedtextauthor1 Changed text color author 1
29657 \end_layout
29658
29659 \begin_layout Description
29660 changedtextauthor2 Changed text color author 2
29661 \end_layout
29662
29663 \begin_layout Description
29664 changedtextauthor3 Changed text color author 3
29665 \end_layout
29666
29667 \begin_layout Description
29668 changedtextauthor4 Changed text color author 4
29669 \end_layout
29670
29671 \begin_layout Description
29672 changedtextauthor5 Changed text color author 5
29673 \end_layout
29674
29675 \begin_layout Description
29676 collapsible Collapsible insets text color
29677 \end_layout
29678
29679 \begin_layout Description
29680 collapsibleframe Collapsible insets framecolor
29681 \end_layout
29682
29683 \begin_layout Description
29684 command Text color for command insets
29685 \end_layout
29686
29687 \begin_layout Description
29688 commandbg Background color for command insets
29689 \end_layout
29690
29691 \begin_layout Description
29692 commandframe Frame color for command insets
29693 \end_layout
29694
29695 \begin_layout Description
29696 comment Label color for comments
29697 \end_layout
29698
29699 \begin_layout Description
29700 commentbg Background color of comments
29701 \end_layout
29702
29703 \begin_layout Description
29704 cursor Cursor color
29705 \end_layout
29706
29707 \begin_layout Description
29708 deletedtext Deleted text color
29709 \end_layout
29710
29711 \begin_layout Description
29712 deletedtextmodifier Deleted text modifying color
29713 \end_layout
29714
29715 \begin_layout Description
29716 depthbar Color for the depth bars in the margin
29717 \end_layout
29718
29719 \begin_layout Description
29720 eolmarker End of line marker color
29721 \end_layout
29722
29723 \begin_layout Description
29724 error Color of the \SpecialChar LaTeX
29725  error box
29726 \end_layout
29727
29728 \begin_layout Description
29729 footlabel Label color for footnotes
29730 \end_layout
29731
29732 \begin_layout Description
29733 foreground Foreground color
29734 \end_layout
29735
29736 \begin_layout Description
29737 graphicsbg Graphics inset background color
29738 \end_layout
29739
29740 \begin_layout Description
29741 greyedoutbg Background color of greyedout inset
29742 \end_layout
29743
29744 \begin_layout Description
29745 greyedoutlabel Label color for greyedout insets
29746 \end_layout
29747
29748 \begin_layout Description
29749 greyedouttext Color for greyedout inset text
29750 \end_layout
29751
29752 \begin_layout Description
29753 indexlabel Label color for index insets
29754 \end_layout
29755
29756 \begin_layout Description
29757 inlinecompletion Inline completion color
29758 \end_layout
29759
29760 \begin_layout Description
29761 insetbg Inset marker background color
29762 \end_layout
29763
29764 \begin_layout Description
29765 insetframe Inset marker frame color
29766 \end_layout
29767
29768 \begin_layout Description
29769 language Color for marking foreign language words
29770 \end_layout
29771
29772 \begin_layout Description
29773 latex Text color in \SpecialChar LaTeX
29774  mode
29775 \end_layout
29776
29777 \begin_layout Description
29778 listingsbg Background color of listings inset
29779 \end_layout
29780
29781 \begin_layout Description
29782 marginlabel Label color for margin notes
29783 \end_layout
29784
29785 \begin_layout Description
29786 math Math inset text color
29787 \end_layout
29788
29789 \begin_layout Description
29790 mathbg Math inset background color
29791 \end_layout
29792
29793 \begin_layout Description
29794 mathcorners Math inset frame color not under focus
29795 \end_layout
29796
29797 \begin_layout Description
29798 mathframe Math inset frame color under focus
29799 \end_layout
29800
29801 \begin_layout Description
29802 mathline Math line color
29803 \end_layout
29804
29805 \begin_layout Description
29806 mathmacrobg Macro math inset background color
29807 \end_layout
29808
29809 \begin_layout Description
29810 mathmacroblend Macro math blended color
29811 \end_layout
29812
29813 \begin_layout Description
29814 mathmacroframe Macro math frame color
29815 \end_layout
29816
29817 \begin_layout Description
29818 mathmacrohoverbg Macro math inset background color hovered
29819 \end_layout
29820
29821 \begin_layout Description
29822 mathmacrolabel Macro math label color
29823 \end_layout
29824
29825 \begin_layout Description
29826 mathmacronewarg Macro template color for new parameters
29827 \end_layout
29828
29829 \begin_layout Description
29830 mathmacrooldarg Macro template color for old parameters
29831 \end_layout
29832
29833 \begin_layout Description
29834 newpage New page color
29835 \end_layout
29836
29837 \begin_layout Description
29838 nonunique_inlinecompletion Inline completion color for the non-unique part
29839 \end_layout
29840
29841 \begin_layout Description
29842 note Label color for notes
29843 \end_layout
29844
29845 \begin_layout Description
29846 notebg Background color of notes
29847 \end_layout
29848
29849 \begin_layout Description
29850 pagebreak Page break/line break color
29851 \end_layout
29852
29853 \begin_layout Description
29854 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29855 \end_layout
29856
29857 \begin_layout Description
29858 phantomtext Text color for phantom insets
29859 \end_layout
29860
29861 \begin_layout Description
29862 preview The color used for previews
29863 \end_layout
29864
29865 \begin_layout Description
29866 previewframe Preview frame color
29867 \end_layout
29868
29869 \begin_layout Description
29870 regexpframe Color for regexp frame
29871 \end_layout
29872
29873 \begin_layout Description
29874 scroll Color that indicates when a row can be scrolled 
29875 \end_layout
29876
29877 \begin_layout Description
29878 selection Background color of selected text
29879 \end_layout
29880
29881 \begin_layout Description
29882 selectiontext Foreground color of selected text
29883 \end_layout
29884
29885 \begin_layout Description
29886 shadedbg Background color of shaded box
29887 \end_layout
29888
29889 \begin_layout Description
29890 special Special chars text color
29891 \end_layout
29892
29893 \begin_layout Description
29894 tabularline Table line color
29895 \end_layout
29896
29897 \begin_layout Description
29898 tabularonoffline Table line color
29899 \end_layout
29900
29901 \begin_layout Description
29902 urllabel Label color for URL insets
29903 \end_layout
29904
29905 \begin_layout Description
29906 urltext Color for URL inset text
29907 \end_layout
29908
29909 \end_body
29910 \end_document