]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
b1e0fd405491999034a85f1693439f13253b67c2
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 596
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \author -712698321 "Jürgen Spitzmüller"
139 \author -495245474 "Jean-Marc Lasgouttes"
140 \author 5863208 "ab"
141 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
142 \end_header
143
144 \begin_body
145
146 \begin_layout Title
147 Customizing \SpecialChar LyX
148 : Features for the Advanced User
149 \end_layout
150
151 \begin_layout Author
152 by the \SpecialChar LyX
153  Team
154 \begin_inset Foot
155 status collapsed
156
157 \begin_layout Plain Layout
158 \noindent
159 If you have comments or error corrections, please send them to the \SpecialChar LyX
160  Documentatio
161 n mailing list, 
162 \begin_inset CommandInset href
163 LatexCommand href
164 target "lyx-docs@lists.lyx.org"
165 type "mailto:"
166 literal "false"
167
168 \end_inset
169
170 .
171  Include 
172 \begin_inset Quotes eld
173 \end_inset
174
175 [Customization]
176 \begin_inset Quotes erd
177 \end_inset
178
179  in the subject header, and please cc the current maintainer of this file,
180  Richard Heck <rgheck@comcast.net>.
181 \end_layout
182
183 \end_inset
184
185
186 \begin_inset Newline newline
187 \end_inset
188
189
190 \begin_inset Newline newline
191 \end_inset
192
193 Version 2.3.x 
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset CommandInset toc
198 LatexCommand tableofcontents
199
200 \end_inset
201
202
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset Note Note
207 status open
208
209 \begin_layout Plain Layout
210 Please use change tracking when modifying this document.
211  This makes it easier for our translators to recognize things that have
212  been changed, and it helps the maintainer keep up-to-date with what's been
213  done.
214 \end_layout
215
216 \end_inset
217
218
219 \end_layout
220
221 \begin_layout Chapter
222 Introduction
223 \end_layout
224
225 \begin_layout Standard
226 This manual covers the customization features present in \SpecialChar LyX
227 .
228  In it, we discuss issues like keyboard shortcuts, screen previewing options,
229  printer options, sending commands to \SpecialChar LyX
230  via the \SpecialChar LyX
231  Server, internationalization,
232  installing new \SpecialChar LaTeX
233  classes and \SpecialChar LyX
234  layouts, etc.
235  We can't possibly hope to touch on everything you can change—our developers
236  add new features faster than we can document them—but we will explain the
237  most common customizations and hopefully point you in the right direction
238  for some of the more obscure ones.
239 \end_layout
240
241 \begin_layout Standard
242 \begin_inset Branch OutDated
243 inverted 0
244 status collapsed
245
246 \begin_layout Standard
247 Information from previous versions of this document that now seems to be
248  outdated is contained in the OutDated branch of this document.
249  By default, this information will not appear in the \SpecialChar LaTeX
250  output.
251 \end_layout
252
253 \end_inset
254
255
256 \end_layout
257
258 \begin_layout Chapter
259 \SpecialChar LyX
260  configuration files
261 \end_layout
262
263 \begin_layout Standard
264 This chapter aims to help you to find your way through the \SpecialChar LyX
265  configuration
266  files.
267  Before continuing to read this chapter, you should find out where your
268  \SpecialChar LyX
269  library and user directories are by using 
270 \begin_inset Flex Noun
271 status collapsed
272
273 \begin_layout Plain Layout
274 Help\SpecialChar menuseparator
275 About
276 \begin_inset space ~
277 \end_inset
278
279 LyX
280 \end_layout
281
282 \end_inset
283
284 .
285  The library directory is the place where \SpecialChar LyX
286  places its system-wide configuration
287  files; the user directory is where you can place your modified versions.
288  We will call the former 
289 \begin_inset Flex Code
290 status collapsed
291
292 \begin_layout Plain Layout
293 LyXDir
294 \end_layout
295
296 \end_inset
297
298  and the latter 
299 \begin_inset Flex Noun
300 status collapsed
301
302 \begin_layout Plain Layout
303 UserDir
304 \end_layout
305
306 \end_inset
307
308  in the remainder of this document.
309  
310 \end_layout
311
312 \begin_layout Section
313 What's in 
314 \begin_inset Flex Code
315 status collapsed
316
317 \begin_layout Plain Layout
318 LyXDir
319 \end_layout
320
321 \end_inset
322
323 ?
324 \end_layout
325
326 \begin_layout Standard
327 \begin_inset Flex Code
328 status collapsed
329
330 \begin_layout Plain Layout
331 LyXDir
332 \end_layout
333
334 \end_inset
335
336  and its sub-directories contain a number of files and that can be used
337  to customize \SpecialChar LyX
338 's behavior.
339  You can change many of these files from within \SpecialChar LyX
340  itself through the 
341 \begin_inset Flex Noun
342 status collapsed
343
344 \begin_layout Plain Layout
345 Tools\SpecialChar menuseparator
346 Preferences
347 \end_layout
348
349 \end_inset
350
351  dialog.
352  Most customization that you will want to do in \SpecialChar LyX
353  is possible through this
354  dialog.
355  However, many other inner aspects of \SpecialChar LyX
356  can be customized by modifying the
357  files in 
358 \begin_inset Flex Code
359 status collapsed
360
361 \begin_layout Plain Layout
362 LyXDir
363 \end_layout
364
365 \end_inset
366
367 .
368  These files fall in different categories, described in the following subsection
369 s.
370 \end_layout
371
372 \begin_layout Subsection
373 Automatically generated files
374 \end_layout
375
376 \begin_layout Standard
377 The files, which are to be found in 
378 \begin_inset Flex Noun
379 status collapsed
380
381 \begin_layout Plain Layout
382 UserDir
383 \end_layout
384
385 \end_inset
386
387 , are generated when you configure \SpecialChar LyX
388 .
389  They contain various default values that are guessed by inspection.
390  In general, it is not a good idea to modify them, since they might be overwritt
391 en at any time.
392 \end_layout
393
394 \begin_layout Labeling
395 \labelwidthstring 00.00.0000
396 \begin_inset Flex Code
397 status collapsed
398
399 \begin_layout Plain Layout
400 lyxrc.defaults
401 \end_layout
402
403 \end_inset
404
405  contains defaults for various commands.
406 \end_layout
407
408 \begin_layout Labeling
409 \labelwidthstring 00.00.0000
410 \begin_inset Flex Code
411 status collapsed
412
413 \begin_layout Plain Layout
414 packages.lst
415 \end_layout
416
417 \end_inset
418
419  contains the list of packages that have been recognized by \SpecialChar LyX
420 .
421  It is currently unused by the \SpecialChar LyX
422  program itself, but the information extracted,
423  and more, is made available with 
424 \begin_inset Flex Noun
425 status collapsed
426
427 \begin_layout Plain Layout
428 Help\SpecialChar menuseparator
429 \SpecialChar LaTeX
430
431 \begin_inset space ~
432 \end_inset
433
434 Configuration
435 \end_layout
436
437 \end_inset
438
439 .
440 \end_layout
441
442 \begin_layout Labeling
443 \labelwidthstring 00.00.0000
444 \begin_inset Flex Code
445 status collapsed
446
447 \begin_layout Plain Layout
448 textclass.lst
449 \end_layout
450
451 \end_inset
452
453  the list of text classes that have been found in your 
454 \begin_inset Flex Code
455 status collapsed
456
457 \begin_layout Plain Layout
458 layout/
459 \end_layout
460
461 \end_inset
462
463  directories, along with the associated \SpecialChar LaTeX
464  document class and their description.
465 \end_layout
466
467 \begin_layout Labeling
468 \labelwidthstring 00.00.0000
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 lyxmodules.lst
474 \end_layout
475
476 \end_inset
477
478  the list of layout modules found in your 
479 \begin_inset Flex Code
480 status collapsed
481
482 \begin_layout Plain Layout
483 layout/
484 \end_layout
485
486 \end_inset
487
488  directories
489 \end_layout
490
491 \begin_layout Labeling
492 \labelwidthstring 00.00.0000
493 \begin_inset Flex Code
494 status collapsed
495
496 \begin_layout Plain Layout
497 *files.lst
498 \end_layout
499
500 \end_inset
501
502  lists of various sorts of \SpecialChar LaTeX
503 -related files found on your system
504 \end_layout
505
506 \begin_layout Labeling
507 \labelwidthstring 00.00.0000
508 \begin_inset Flex Code
509 status collapsed
510
511 \begin_layout Plain Layout
512 doc/\SpecialChar LaTeX
513 Config.lyx
514 \end_layout
515
516 \end_inset
517
518  is automatically generated during configuration from the file 
519 \begin_inset Flex Code
520 status collapsed
521
522 \begin_layout Plain Layout
523 \SpecialChar LaTeX
524 Config.lyx.in
525 \end_layout
526
527 \end_inset
528
529 .
530  It contains information on your \SpecialChar LaTeX
531  configuration.
532 \end_layout
533
534 \begin_layout Subsection
535 Directories
536 \end_layout
537
538 \begin_layout Standard
539 These directories are duplicated between 
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 LyXDir
545 \end_layout
546
547 \end_inset
548
549  and 
550 \begin_inset Flex Code
551 status collapsed
552
553 \begin_layout Plain Layout
554 UserDir
555 \end_layout
556
557 \end_inset
558
559 .
560  If a particular files exists in both places, the one in 
561 \begin_inset Flex Code
562 status collapsed
563
564 \begin_layout Plain Layout
565 UserDir
566 \end_layout
567
568 \end_inset
569
570  will be used.
571 \end_layout
572
573 \begin_layout Labeling
574 \labelwidthstring 00.00.0000
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 bind/
580 \end_layout
581
582 \end_inset
583
584  this directory contains files with the extension 
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 .bind
590 \end_layout
591
592 \end_inset
593
594  that define the keybindings used in \SpecialChar LyX
595 .
596  If there exists an internationalized version of the bind file named 
597 \begin_inset Flex Code
598 status collapsed
599
600 \begin_layout Plain Layout
601 $LANG_xxx.bind
602 \end_layout
603
604 \end_inset
605
606 , that will be used first.
607 \end_layout
608
609 \begin_layout Labeling
610 \labelwidthstring 00.00.0000
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 citeengines/
616 \end_layout
617
618 \end_inset
619
620  contains files with the extension 
621 \begin_inset Flex Code
622 status collapsed
623
624 \begin_layout Plain Layout
625 .citeengine
626 \end_layout
627
628 \end_inset
629
630  which define the diverse citation possibilities (natbib, biblatex etc.).
631  See 
632 \begin_inset CommandInset ref
633 LatexCommand ref
634 reference "subsec:Cite-Engine-Files"
635 plural "false"
636 caps "false"
637 noprefix "false"
638
639 \end_inset
640
641  for details.
642 \end_layout
643
644 \begin_layout Labeling
645 \labelwidthstring 00.00.0000
646 \begin_inset Flex Code
647 status collapsed
648
649 \begin_layout Plain Layout
650 clipart/
651 \end_layout
652
653 \end_inset
654
655  contains graphics files that can be included in documents.
656  
657 \end_layout
658
659 \begin_layout Labeling
660 \labelwidthstring 00.00.0000
661 \begin_inset Flex Code
662 status collapsed
663
664 \begin_layout Plain Layout
665 doc/
666 \end_layout
667
668 \end_inset
669
670  contains \SpecialChar LyX
671  documentation files (including the one you are currently reading).
672  The file 
673 \begin_inset Flex Code
674 status collapsed
675
676 \begin_layout Plain Layout
677 \SpecialChar LaTeX
678 Config.lyx
679 \end_layout
680
681 \end_inset
682
683  deserves special attention, as noted above.
684  The internationalized help docs are in subdirectories 
685 \begin_inset Flex Code
686 status collapsed
687
688 \begin_layout Plain Layout
689 doc/xx
690 \end_layout
691
692 \end_inset
693
694  where 
695 \begin_inset Quotes eld
696 \end_inset
697
698 xx
699 \begin_inset Quotes erd
700 \end_inset
701
702  is the ISO language code.
703  See 
704 \begin_inset CommandInset ref
705 LatexCommand ref
706 reference "cha:Internationalizing-LyX"
707
708 \end_inset
709
710  for details.
711 \end_layout
712
713 \begin_layout Labeling
714 \labelwidthstring 00.00.0000
715 \begin_inset Flex Code
716 status collapsed
717
718 \begin_layout Plain Layout
719 examples/
720 \end_layout
721
722 \end_inset
723
724  contains example files that explain how to use some features.
725  In the file browser, press the 
726 \begin_inset Flex Noun
727 status collapsed
728
729 \begin_layout Plain Layout
730 Examples
731 \end_layout
732
733 \end_inset
734
735  button to get there.
736 \end_layout
737
738 \begin_layout Labeling
739 \labelwidthstring 00.00.0000
740 \begin_inset Flex Code
741 status collapsed
742
743 \begin_layout Plain Layout
744 images/
745 \end_layout
746
747 \end_inset
748
749  contains image files that are used by the 
750 \begin_inset Flex Noun
751 status collapsed
752
753 \begin_layout Plain Layout
754 Document
755 \end_layout
756
757 \end_inset
758
759  dialog.
760  In addition, it also contains the individual icons used in the toolbar
761  and the banners that can be shown when \SpecialChar LyX
762  is launched.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 kbd/
772 \end_layout
773
774 \end_inset
775
776  contains keyboard keymapping files.
777  See 
778 \begin_inset CommandInset ref
779 LatexCommand ref
780 reference "sec:International-Keymap-Stuff"
781
782 \end_inset
783
784  for details.
785 \end_layout
786
787 \begin_layout Labeling
788 \labelwidthstring 00.00.0000
789 \begin_inset Flex Code
790 status collapsed
791
792 \begin_layout Plain Layout
793 layouts/
794 \end_layout
795
796 \end_inset
797
798  contains the text class and module files described in 
799 \begin_inset CommandInset ref
800 LatexCommand ref
801 reference "cha:Installing-New-Document"
802
803 \end_inset
804
805 .
806 \end_layout
807
808 \begin_layout Labeling
809 \labelwidthstring 00.00.0000
810 \begin_inset Flex Code
811 status collapsed
812
813 \begin_layout Plain Layout
814 lyx2lyx
815 \end_layout
816
817 \end_inset
818
819  contains the 
820 \begin_inset Flex Code
821 status collapsed
822
823 \begin_layout Plain Layout
824 lyx2lyx
825 \end_layout
826
827 \end_inset
828
829  Python scripts used to convert between \SpecialChar LyX
830  versions.
831  These can be run from the command line if, say, you want to batch-convert
832  files.
833 \end_layout
834
835 \begin_layout Labeling
836 \labelwidthstring 00.00.0000
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841 scripts/
842 \end_layout
843
844 \end_inset
845
846  contains some files that demonstrate the capabilities of the 
847 \begin_inset Flex Noun
848 status collapsed
849
850 \begin_layout Plain Layout
851 External
852 \begin_inset space ~
853 \end_inset
854
855 Template
856 \end_layout
857
858 \end_inset
859
860  feature.
861  Also contains some scripts used by \SpecialChar LyX
862  itself.
863 \end_layout
864
865 \begin_layout Labeling
866 \labelwidthstring 00.00.0000
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871 templates/
872 \end_layout
873
874 \end_inset
875
876  contains the standard \SpecialChar LyX
877  template files described in 
878 \begin_inset CommandInset ref
879 LatexCommand ref
880 reference "subsec:Creating-Templates"
881
882 \end_inset
883
884 .
885 \end_layout
886
887 \begin_layout Labeling
888 \labelwidthstring 00.00.0000
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893 ui/
894 \end_layout
895
896 \end_inset
897
898  contains files with the extension 
899 \begin_inset Flex Code
900 status collapsed
901
902 \begin_layout Plain Layout
903 .ui
904 \end_layout
905
906 \end_inset
907
908  that define the user interface to \SpecialChar LyX
909 .
910  That is, the files define which items appear in which menus and the items
911  appearing on the toolbar.
912 \end_layout
913
914 \begin_layout Labeling
915 \labelwidthstring 00.00.0000
916 \begin_inset Flex Code
917 status collapsed
918
919 \begin_layout Plain Layout
920 xtemplates/
921 \end_layout
922
923 \end_inset
924
925  contains files with the extension 
926 \begin_inset Flex Code
927 status collapsed
928
929 \begin_layout Plain Layout
930 .xtemplate
931 \end_layout
932
933 \end_inset
934
935  which define the templates for the insertion of external material to a
936  \SpecialChar LyX
937  document; see 
938 \begin_inset CommandInset ref
939 LatexCommand ref
940 reference "chap:Including-External-Material"
941
942 \end_inset
943
944 .
945 \end_layout
946
947 \begin_layout Subsection
948 Files you don't want to modify
949 \end_layout
950
951 \begin_layout Standard
952 These files are used internally by \SpecialChar LyX
953  and you generally do not need to modify
954  them unless you are a developer.
955 \end_layout
956
957 \begin_layout Labeling
958 \labelwidthstring 00.00.0000
959 \begin_inset Flex Code
960 status collapsed
961
962 \begin_layout Plain Layout
963 CREDITS
964 \end_layout
965
966 \end_inset
967
968  this file contains the list of \SpecialChar LyX
969  developers.
970  The contents are displayed with the menu entry 
971 \begin_inset Flex Noun
972 status collapsed
973
974 \begin_layout Plain Layout
975 Help\SpecialChar menuseparator
976 About
977 \begin_inset space ~
978 \end_inset
979
980 LyX
981 \end_layout
982
983 \end_inset
984
985 .
986 \end_layout
987
988 \begin_layout Labeling
989 \labelwidthstring 00.00.0000
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994 chkconfig.ltx
995 \end_layout
996
997 \end_inset
998
999  this is a \SpecialChar LaTeX
1000  script used during the configuration process.
1001  Do not run directly.
1002 \end_layout
1003
1004 \begin_layout Labeling
1005 \labelwidthstring 00.00.0000
1006 \begin_inset Flex Code
1007 status collapsed
1008
1009 \begin_layout Plain Layout
1010 configure.py
1011 \end_layout
1012
1013 \end_inset
1014
1015  this is a Python script that is used to re-configure \SpecialChar LyX
1016 .
1017  It creates configuration files in the directory it was run from.
1018 \end_layout
1019
1020 \begin_layout Subsection
1021 Other files needing a line or two
1022 \end_layout
1023
1024 \begin_layout Labeling
1025 \labelwidthstring 00.00.0000
1026 \begin_inset Flex Code
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030 encodings
1031 \end_layout
1032
1033 \end_inset
1034
1035  this contains tables describing how different character encodings can be
1036  mapped to Unicode
1037 \end_layout
1038
1039 \begin_layout Labeling
1040 \labelwidthstring 00.00.0000
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 languages
1046 \end_layout
1047
1048 \end_inset
1049
1050  this file contains a list of all the languages currently supported by \SpecialChar LyX
1051 .
1052 \end_layout
1053
1054 \begin_layout Labeling
1055 \labelwidthstring 00.00.0000
1056 \begin_inset Flex Code
1057 status collapsed
1058
1059 \begin_layout Plain Layout
1060 latexfonts
1061 \end_layout
1062
1063 \end_inset
1064
1065  contains information about the supported fonts.
1066 \end_layout
1067
1068 \begin_layout Labeling
1069 \labelwidthstring 00.00.0000
1070 \begin_inset Flex Code
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074 layouttranslations
1075 \end_layout
1076
1077 \end_inset
1078
1079  this file contains translations for internationalized paragraph styles
1080  (see 
1081 \begin_inset CommandInset ref
1082 LatexCommand ref
1083 reference "subsec:I18n"
1084
1085 \end_inset
1086
1087 ).
1088 \end_layout
1089
1090 \begin_layout Labeling
1091 \labelwidthstring 00.00.0000
1092 \begin_inset Flex Code
1093 status collapsed
1094
1095 \begin_layout Plain Layout
1096 unicodesymbols
1097 \end_layout
1098
1099 \end_inset
1100
1101  this file contains information about Unicode-encoded glyphs and the way
1102  they are supported by \SpecialChar LyX
1103  via \SpecialChar LaTeX
1104 .
1105 \end_layout
1106
1107 \begin_layout Section
1108 Your local configuration directory
1109 \end_layout
1110
1111 \begin_layout Standard
1112 Even if you are using \SpecialChar LyX
1113  as an unprivileged user, you might want to change
1114  \SpecialChar LyX
1115  configuration for your own use.
1116  The 
1117 \begin_inset Flex Code
1118 status collapsed
1119
1120 \begin_layout Plain Layout
1121 UserDir
1122 \end_layout
1123
1124 \end_inset
1125
1126  directory contains all your personal configuration files.
1127  This is the directory described as 
1128 \begin_inset Quotes eld
1129 \end_inset
1130
1131 user directory
1132 \begin_inset Quotes erd
1133 \end_inset
1134
1135  in 
1136 \begin_inset Flex Noun
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 Help\SpecialChar menuseparator
1141 About
1142 \begin_inset space ~
1143 \end_inset
1144
1145 LyX
1146 \end_layout
1147
1148 \end_inset
1149
1150 .
1151  This directory is used as a mirror of 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 LyXDir
1157 \end_layout
1158
1159 \end_inset
1160
1161 , which means that every file in 
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 UserDir
1167 \end_layout
1168
1169 \end_inset
1170
1171  is a replacement for the corresponding file in 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 LyXDir
1177 \end_layout
1178
1179 \end_inset
1180
1181 .
1182  Any configuration file described in the above sections can be placed either
1183  in the system-wide directory, in which case it will affect all users, or
1184  in your local directory for your own use.
1185 \end_layout
1186
1187 \begin_layout Standard
1188 To make things clearer, let's provide a few examples:
1189 \end_layout
1190
1191 \begin_layout Itemize
1192 The preferences set in the 
1193 \begin_inset Flex Noun
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 Tools\SpecialChar menuseparator
1198 Preferences
1199 \end_layout
1200
1201 \end_inset
1202
1203  dialog are saved to a file 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 preferences
1209 \end_layout
1210
1211 \end_inset
1212
1213  in 
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 UserDir
1219 \end_layout
1220
1221 \end_inset
1222
1223 .
1224 \end_layout
1225
1226 \begin_layout Itemize
1227 When you reconfigure using 
1228 \begin_inset Flex Noun
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232 Tools\SpecialChar menuseparator
1233 Reconfigure
1234 \end_layout
1235
1236 \end_inset
1237
1238 , \SpecialChar LyX
1239  runs the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 configure.py
1245 \end_layout
1246
1247 \end_inset
1248
1249  script, and the resulting files are written in your local configuration
1250  directory.
1251  This means that any additional text class file that you might have added
1252  in 
1253 \begin_inset Flex Code
1254 status collapsed
1255
1256 \begin_layout Plain Layout
1257 UserDir/layouts
1258 \end_layout
1259
1260 \end_inset
1261
1262  will be added to the list of classes in the 
1263 \begin_inset Flex Noun
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 Document\SpecialChar menuseparator
1268 Settings
1269 \end_layout
1270
1271 \end_inset
1272
1273  dialog.
1274 \end_layout
1275
1276 \begin_layout Itemize
1277 If you get some updated documentation from \SpecialChar LyX
1278  ftp site and cannot install
1279  it because you do not have sysadmin rights on your system, you can just
1280  copy the files in 
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 UserDir/doc/
1286 \end_layout
1287
1288 \end_inset
1289
1290  and the items in the 
1291 \begin_inset Flex Noun
1292 status collapsed
1293
1294 \begin_layout Plain Layout
1295 Help
1296 \end_layout
1297
1298 \end_inset
1299
1300  menu will open them!
1301 \end_layout
1302
1303 \begin_layout Section
1304 Running \SpecialChar LyX
1305  with multiple configurations
1306 \end_layout
1307
1308 \begin_layout Standard
1309 The configuration freedom of the local configuration directory may not suffice
1310  if you want to have more than one configuration at your disposal.
1311  For example, you may want to be use different key bindings or printer settings
1312  at different times.
1313  You can achieve this by having several such directories.
1314  You then specify which directory to use at run-time.
1315 \end_layout
1316
1317 \begin_layout Standard
1318 Invoking \SpecialChar LyX
1319  with the command line switch 
1320 \begin_inset Flex Code
1321 status collapsed
1322
1323 \begin_layout Plain Layout
1324 -userdir
1325 \end_layout
1326
1327 \end_inset
1328
1329  
1330 \emph on
1331 <some directory>
1332 \emph default
1333  instructs the program to read the configuration from that directory, and
1334  not from the default directory.
1335  (You can determine the default directory by running \SpecialChar LyX
1336  without the 
1337 \begin_inset Flex Code
1338 status collapsed
1339
1340 \begin_layout Plain Layout
1341 -userdir
1342 \end_layout
1343
1344 \end_inset
1345
1346  switch.) If the specified directory does not exist, \SpecialChar LyX
1347  offers to create it
1348  for you, just like it does for the default directory on the first time
1349  you run the program.
1350  You can modify the configuration options in this additional user directory
1351  exactly as you would for the default directory.
1352  These directories are completely independent (but read on).
1353  Note that setting the environment variable 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358 LYX_USERDIR_VER
1359 \end_layout
1360
1361 \end_inset
1362
1363  to some value has exactly the same effect.
1364 \end_layout
1365
1366 \begin_layout Standard
1367 Having several configurations also requires more maintenance: if you want
1368  to add a new layout to 
1369 \begin_inset Flex Code
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 NewUserDir/layouts
1374 \end_layout
1375
1376 \end_inset
1377
1378  which you want available from all your configurations, you must add it
1379  to each directory separately.
1380  You can avoid this with the following trick: after \SpecialChar LyX
1381  creates the additional
1382  directory, most of the subdirectories (see above) are empty.
1383  If you want the new configuration to mirror an existing one, replace the
1384  empty subdirectory with a symbolic link to the matching subdirectory in
1385  the existing configuration.
1386  Take care with the 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 doc/
1392 \end_layout
1393
1394 \end_inset
1395
1396  subdirectory, however, since it contains a file written by the configuration
1397  script (also accessible through 
1398 \begin_inset Flex Noun
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 Tools\SpecialChar menuseparator
1403 Reconfigure
1404 \end_layout
1405
1406 \end_inset
1407
1408 ) which is configuration-specific.
1409 \end_layout
1410
1411 \begin_layout Chapter
1412 The Preferences dialog
1413 \end_layout
1414
1415 \begin_layout Standard
1416 All options of the preferences dialog are described in the Appendix 
1417 \emph on
1418 The Preferences Dialog
1419 \emph default
1420  in the 
1421 \emph on
1422 User's Guide
1423 \emph default
1424 .
1425  For some options you might find here more details.
1426 \end_layout
1427
1428 \begin_layout Section
1429 Formats
1430 \begin_inset CommandInset label
1431 LatexCommand label
1432 name "sec:Formats"
1433
1434 \end_inset
1435
1436
1437 \end_layout
1438
1439 \begin_layout Standard
1440 The first step is to define your file formats if they are not already defined.
1441  To do so, open the 
1442 \begin_inset Flex Noun
1443 status collapsed
1444
1445 \begin_layout Plain Layout
1446 Tools\SpecialChar menuseparator
1447 Preferences
1448 \end_layout
1449
1450 \end_inset
1451
1452  dialog.
1453  Under 
1454 \begin_inset Flex Noun
1455 status collapsed
1456
1457 \begin_layout Plain Layout
1458 File Handling\SpecialChar menuseparator
1459 File formats
1460 \end_layout
1461
1462 \end_inset
1463
1464  press the 
1465 \begin_inset Flex Noun
1466 status collapsed
1467
1468 \begin_layout Plain Layout
1469 New
1470 \end_layout
1471
1472 \end_inset
1473
1474  button to define your new format.
1475  The 
1476 \begin_inset Flex Noun
1477 status collapsed
1478
1479 \begin_layout Plain Layout
1480 Format
1481 \end_layout
1482
1483 \end_inset
1484
1485  field contains the name used to identify the format in the GUI.
1486  The 
1487 \begin_inset Flex Noun
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 Short Name
1492 \end_layout
1493
1494 \end_inset
1495
1496  is used to identify the format internally.
1497  You will also need to enter a file extension.
1498  These are all required.
1499  The optional 
1500 \begin_inset Flex Noun
1501 status collapsed
1502
1503 \begin_layout Plain Layout
1504 Shortcut
1505 \end_layout
1506
1507 \end_inset
1508
1509  field is used to provide a keyboard shortcut on the menus.
1510  (For example, pressing 
1511 \begin_inset Flex Noun
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Ctrl+D
1516 \end_layout
1517
1518 \end_inset
1519
1520  will 
1521 \begin_inset Flex Noun
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 Document\SpecialChar menuseparator
1526 View (Other Formats)\SpecialChar menuseparator
1527 DVI
1528 \end_layout
1529
1530 \end_inset
1531
1532 .) 
1533 \end_layout
1534
1535 \begin_layout Standard
1536 A Format can have a 
1537 \begin_inset Flex Noun
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Viewer
1542 \end_layout
1543
1544 \end_inset
1545
1546  and an 
1547 \begin_inset Flex Noun
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 Editor
1552 \end_layout
1553
1554 \end_inset
1555
1556  associated with it.
1557  For example, you might want to use 
1558 \begin_inset Flex Noun
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 Ghostview
1563 \end_layout
1564
1565 \end_inset
1566
1567  to view PostScript files.
1568  You can enter the command needed to start the program in the corresponding
1569  fields.
1570  In defining this command, you can use the four variables listed in the
1571  next section.
1572  The viewer is launched when you view an image in \SpecialChar LyX
1573  or use the 
1574 \begin_inset Flex Noun
1575 status collapsed
1576
1577 \begin_layout Plain Layout
1578 Document\SpecialChar menuseparator
1579 View
1580 \end_layout
1581
1582 \end_inset
1583
1584  menu.
1585  The editor is for example launched when you right-click on an image and
1586  choose 
1587 \begin_inset Flex Noun
1588 status collapsed
1589
1590 \begin_layout Plain Layout
1591 Edit externally
1592 \end_layout
1593
1594 \end_inset
1595
1596  in the appearing context menu.
1597 \end_layout
1598
1599 \begin_layout Standard
1600 The 
1601 \begin_inset Flex Noun
1602 status collapsed
1603
1604 \begin_layout Plain Layout
1605 MIME
1606 \end_layout
1607
1608 \end_inset
1609
1610  type of a format is optional, but if it is specified, it must be unique
1611  across all formats.
1612  It is used to detect files of this format from the file contents.
1613  For some important file formats there is no MIME type officially registered
1614  with the 
1615 \begin_inset CommandInset href
1616 LatexCommand href
1617 name "IANA"
1618 target "http://www.iana.org/assignments/media-types/"
1619 literal "false"
1620
1621 \end_inset
1622
1623 .
1624  Therefore \SpecialChar LyX
1625  uses the extended list of MIME types as specified by 
1626 \begin_inset CommandInset href
1627 LatexCommand href
1628 name "freedesktop.org"
1629 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1630 literal "false"
1631
1632 \end_inset
1633
1634 .
1635 \end_layout
1636
1637 \begin_layout Standard
1638 The 
1639 \begin_inset Flex Noun
1640 status collapsed
1641
1642 \begin_layout Plain Layout
1643 Document format
1644 \end_layout
1645
1646 \end_inset
1647
1648  option tells \SpecialChar LyX
1649  that a format is suitable for document export.
1650  If this is set and if a suitable conversion route exists (see 
1651 \begin_inset CommandInset ref
1652 LatexCommand ref
1653 reference "sec:Converters"
1654
1655 \end_inset
1656
1657 ), the format will appear in the 
1658 \begin_inset Flex Noun
1659 status collapsed
1660
1661 \begin_layout Plain Layout
1662 File\SpecialChar menuseparator
1663 Export
1664 \end_layout
1665
1666 \end_inset
1667
1668  menu.
1669  The format will also appear in the 
1670 \begin_inset Flex Noun
1671 status collapsed
1672
1673 \begin_layout Plain Layout
1674 Document\SpecialChar menuseparator
1675 View
1676 \end_layout
1677
1678 \end_inset
1679
1680  menu if a viewer is specified for the format.
1681  Pure image formats, such as 
1682 \begin_inset Flex Code
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 png
1687 \end_layout
1688
1689 \end_inset
1690
1691 , should not use this option.
1692  Formats that can both represent vector graphics and documents like 
1693 \begin_inset Flex Code
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 pdf
1698 \end_layout
1699
1700 \end_inset
1701
1702  should use it.
1703 \end_layout
1704
1705 \begin_layout Standard
1706 The option 
1707 \begin_inset Flex Noun
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 Vector graphics format
1712 \end_layout
1713
1714 \end_inset
1715
1716  tells \SpecialChar LyX
1717  that a format can contain vector graphics.
1718  This information is used to determine the target format of included graphics
1719  for 
1720 \begin_inset Flex Noun
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 pdflatex
1725 \end_layout
1726
1727 \end_inset
1728
1729  export.
1730  Included graphics may need to be converted to either 
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 pdf
1736 \end_layout
1737
1738 \end_inset
1739
1740
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 png
1746 \end_layout
1747
1748 \end_inset
1749
1750 , or 
1751 \begin_inset Flex Noun
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 jpg
1756 \end_layout
1757
1758 \end_inset
1759
1760 , since 
1761 \begin_inset Flex Noun
1762 status collapsed
1763
1764 \begin_layout Plain Layout
1765 pdflatex
1766 \end_layout
1767
1768 \end_inset
1769
1770  cannot handle other image formats.
1771  If an included graphic is not already in 
1772 \begin_inset Flex Noun
1773 status collapsed
1774
1775 \begin_layout Plain Layout
1776 pdf
1777 \end_layout
1778
1779 \end_inset
1780
1781
1782 \begin_inset Flex Noun
1783 status collapsed
1784
1785 \begin_layout Plain Layout
1786 png
1787 \end_layout
1788
1789 \end_inset
1790
1791 , or 
1792 \begin_inset Flex Noun
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 jpg
1797 \end_layout
1798
1799 \end_inset
1800
1801  format, it is converted to 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 pdf
1807 \end_layout
1808
1809 \end_inset
1810
1811  if the vector format option is set, and otherwise to 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 png
1817 \end_layout
1818
1819 \end_inset
1820
1821 .
1822 \end_layout
1823
1824 \begin_layout Section
1825 Copiers
1826 \end_layout
1827
1828 \begin_layout Standard
1829 Since all conversions from one format to another take place in \SpecialChar LyX
1830 's temporary
1831  directory, it is sometimes necessary to modify a file before copying it
1832  to the temporary directory in order that the conversion may be performed.
1833 \begin_inset Foot
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 For example, the file may refer to other files—images, for example—using
1838  relative file names, and these may become invalid when the file is copied
1839  to the temporary directory.
1840 \end_layout
1841
1842 \end_inset
1843
1844  This is done by a Copier: It copies a file to (or from) the temporary directory
1845  and may modify it in the process.
1846 \end_layout
1847
1848 \begin_layout Standard
1849 The definitions of the copiers may use eight variables:
1850 \end_layout
1851
1852 \begin_layout Labeling
1853 \labelwidthstring 00.00.0000
1854 \begin_inset Flex Code
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 $$s
1859 \end_layout
1860
1861 \end_inset
1862
1863  The \SpecialChar LyX
1864  system directory (e.
1865 \begin_inset space \thinspace{}
1866 \end_inset
1867
1868 g.
1869 \begin_inset space \space{}
1870 \end_inset
1871
1872
1873 \begin_inset Flex Noun
1874 status collapsed
1875
1876 \begin_layout Plain Layout
1877 /usr/share/lyx
1878 \end_layout
1879
1880 \end_inset
1881
1882 ).
1883 \end_layout
1884
1885 \begin_layout Labeling
1886 \labelwidthstring 00.00.0000
1887 \begin_inset Flex Code
1888 status collapsed
1889
1890 \begin_layout Plain Layout
1891 $$i
1892 \end_layout
1893
1894 \end_inset
1895
1896  The input file
1897 \end_layout
1898
1899 \begin_layout Labeling
1900 \labelwidthstring 00.00.0000
1901 \begin_inset Flex Code
1902 status collapsed
1903
1904 \begin_layout Plain Layout
1905 $$o
1906 \end_layout
1907
1908 \end_inset
1909
1910  The output file
1911 \end_layout
1912
1913 \begin_layout Labeling
1914 \labelwidthstring 00.00.0000
1915 \begin_inset Flex Code
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 $$b
1920 \end_layout
1921
1922 \end_inset
1923
1924  The base name (without filename extension) in the \SpecialChar LyX
1925  temporary directory
1926 \end_layout
1927
1928 \begin_layout Labeling
1929 \labelwidthstring 00.00.0000
1930 \begin_inset Flex Code
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 $$p
1935 \end_layout
1936
1937 \end_inset
1938
1939  The full directory path of the \SpecialChar LyX
1940  temporary directory
1941 \end_layout
1942
1943 \begin_layout Labeling
1944 \labelwidthstring 00.00.0000
1945 \begin_inset Flex Code
1946 status collapsed
1947
1948 \begin_layout Plain Layout
1949 $$r
1950 \end_layout
1951
1952 \end_inset
1953
1954  The full pathname to the original \SpecialChar LyX
1955  file being processed
1956 \end_layout
1957
1958 \begin_layout Labeling
1959 \labelwidthstring 00.00.0000
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 $$f
1965 \end_layout
1966
1967 \end_inset
1968
1969  The filename (without any directory path) of the \SpecialChar LyX
1970  file.
1971 \end_layout
1972
1973 \begin_layout Labeling
1974 \labelwidthstring 00.00.0000
1975 \begin_inset Flex Code
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 $$l
1980 \end_layout
1981
1982 \end_inset
1983
1984  The `\SpecialChar LaTeX
1985  name'
1986 \end_layout
1987
1988 \begin_layout Standard
1989 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1990 's 
1991 \series bold
1992
1993 \backslash
1994 include
1995 \series default
1996  command.
1997  It is relevant only when exporting files suitable for such inclusion.
1998 \end_layout
1999
2000 \begin_layout Standard
2001 Copiers can be used to do almost anything with output files.
2002  For example, suppose you want generated pdf files to be copied to a special
2003  directory, 
2004 \begin_inset Flex Code
2005 status collapsed
2006
2007 \begin_layout Plain Layout
2008 /home/you/pdf/
2009 \end_layout
2010
2011 \end_inset
2012
2013 .
2014  Then you could write a shell script such as this one:
2015 \end_layout
2016
2017 \begin_layout Standard
2018 \begin_inset listings
2019 inline false
2020 status open
2021
2022 \begin_layout Plain Layout
2023
2024 #!/bin/bash
2025 \end_layout
2026
2027 \begin_layout Plain Layout
2028
2029 FROMFILE=$1
2030 \end_layout
2031
2032 \begin_layout Plain Layout
2033
2034 TOFILE=`basename $2`
2035 \end_layout
2036
2037 \begin_layout Plain Layout
2038
2039 cp $FROMFILE /home/you/pdf/$TOFILE
2040 \end_layout
2041
2042 \end_inset
2043
2044 Save it in your local \SpecialChar LyX
2045  directory—say, 
2046 \begin_inset Flex Code
2047 status collapsed
2048
2049 \begin_layout Plain Layout
2050 /home/you/.lyx/scripts/pdfcopier.sh
2051 \end_layout
2052
2053 \end_inset
2054
2055 —and make it executable, if you need to do so on your platform.
2056  Then, in the 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 Tools\SpecialChar menuseparator
2062 Preferences
2063 \end_layout
2064
2065 \end_inset
2066
2067  dialog, select under 
2068 \begin_inset Flex Noun
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072 File Handling\SpecialChar menuseparator
2073 File formats
2074 \end_layout
2075
2076 \end_inset
2077
2078  the 
2079 \begin_inset Flex Noun
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 PDF(pdflatex)
2084 \end_layout
2085
2086 \end_inset
2087
2088  format—or one of the other pdf formats—and enter 
2089 \begin_inset Flex Code
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 pdfcopier.sh $$i $$o
2094 \end_layout
2095
2096 \end_inset
2097
2098  into the 
2099 \begin_inset Flex Noun
2100 status collapsed
2101
2102 \begin_layout Plain Layout
2103 Copier
2104 \end_layout
2105
2106 \end_inset
2107
2108  field.
2109  
2110 \end_layout
2111
2112 \begin_layout Standard
2113 Copiers are used by \SpecialChar LyX
2114  in various of its own conversions.
2115  For example, if appropriate programs are found, \SpecialChar LyX
2116  will automatically install
2117  copiers for the 
2118 \begin_inset Flex Noun
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 HTML
2123 \end_layout
2124
2125 \end_inset
2126
2127  and 
2128 \begin_inset Flex Noun
2129 status collapsed
2130
2131 \begin_layout Plain Layout
2132 HTML
2133 \begin_inset space ~
2134 \end_inset
2135
2136 (MS Word)
2137 \end_layout
2138
2139 \end_inset
2140
2141  formats.
2142  When these formats are exported, the copier sees that not just the main
2143  HTML file but various associated files (style files, images, etc.) are also
2144  copied.
2145  All these files are written to a subdirectory of the directory in which
2146  the original \SpecialChar LyX
2147  file was found.
2148 \begin_inset Foot
2149 status collapsed
2150
2151 \begin_layout Plain Layout
2152 This copier can be customized.
2153  The optional 
2154 \begin_inset Quotes eld
2155 \end_inset
2156
2157 -e
2158 \begin_inset Quotes erd
2159 \end_inset
2160
2161  argument takes a comma-separated list of extensions to be copied; if it
2162  is omitted, all files will be copied.
2163  The 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167 -t
2168 \begin_inset Quotes erd
2169 \end_inset
2170
2171  argument determines the extension added to the generated directory.
2172  By default, it is 
2173 \begin_inset Quotes eld
2174 \end_inset
2175
2176
2177 \begin_inset Flex Noun
2178 status collapsed
2179
2180 \begin_layout Plain Layout
2181 LyXconv
2182 \end_layout
2183
2184 \end_inset
2185
2186
2187 \begin_inset Quotes erd
2188 \end_inset
2189
2190 , so HTML generated from 
2191 \begin_inset Flex Noun
2192 status collapsed
2193
2194 \begin_layout Plain Layout
2195 /path/to/filename.lyx
2196 \end_layout
2197
2198 \end_inset
2199
2200  will end up in 
2201 \begin_inset Flex Noun
2202 status collapsed
2203
2204 \begin_layout Plain Layout
2205 /path/to/filename.html.LyXconv
2206 \end_layout
2207
2208 \end_inset
2209
2210 .
2211  
2212 \end_layout
2213
2214 \end_inset
2215
2216
2217 \end_layout
2218
2219 \begin_layout Section
2220 Converters
2221 \begin_inset CommandInset label
2222 LatexCommand label
2223 name "sec:Converters"
2224
2225 \end_inset
2226
2227
2228 \end_layout
2229
2230 \begin_layout Standard
2231 You can define your own Converters to convert files between different formats.
2232  This is done in the 
2233 \begin_inset Flex Noun
2234 status collapsed
2235
2236 \begin_layout Plain Layout
2237 Tools\SpecialChar menuseparator
2238 Preferences\SpecialChar menuseparator
2239 File Handling\SpecialChar menuseparator
2240 Converters
2241 \end_layout
2242
2243 \end_inset
2244
2245  dialog.
2246 \end_layout
2247
2248 \begin_layout Standard
2249 To define a new converter, select the 
2250 \begin_inset Flex Noun
2251 status collapsed
2252
2253 \begin_layout Plain Layout
2254 From
2255 \begin_inset space ~
2256 \end_inset
2257
2258 format
2259 \end_layout
2260
2261 \end_inset
2262
2263  and 
2264 \begin_inset Flex Noun
2265 status collapsed
2266
2267 \begin_layout Plain Layout
2268 To
2269 \begin_inset space ~
2270 \end_inset
2271
2272 format
2273 \end_layout
2274
2275 \end_inset
2276
2277  from the drop-down lists, enter the command needed for the conversion,
2278  and then press the 
2279 \begin_inset Flex Noun
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283 Add
2284 \end_layout
2285
2286 \end_inset
2287
2288  button.
2289  Several variables can be used in the definition of converters:
2290 \end_layout
2291
2292 \begin_layout Labeling
2293 \labelwidthstring 00.00.0000
2294 \begin_inset Flex Code
2295 status collapsed
2296
2297 \begin_layout Plain Layout
2298 $$s
2299 \end_layout
2300
2301 \end_inset
2302
2303  The \SpecialChar LyX
2304  system directory
2305 \end_layout
2306
2307 \begin_layout Labeling
2308 \labelwidthstring 00.00.0000
2309 \begin_inset Flex Code
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313 $$i
2314 \end_layout
2315
2316 \end_inset
2317
2318  The input file
2319 \end_layout
2320
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Flex Code
2324 status collapsed
2325
2326 \begin_layout Plain Layout
2327 $$o
2328 \end_layout
2329
2330 \end_inset
2331
2332  The output file
2333 \end_layout
2334
2335 \begin_layout Labeling
2336 \labelwidthstring 00.00.0000
2337 \begin_inset Flex Code
2338 status collapsed
2339
2340 \begin_layout Plain Layout
2341 $$b
2342 \end_layout
2343
2344 \end_inset
2345
2346  The base filename of the input file (i.
2347 \begin_inset space \thinspace{}
2348 \end_inset
2349
2350 g., without the extension)
2351 \end_layout
2352
2353 \begin_layout Labeling
2354 \labelwidthstring 00.00.0000
2355 \begin_inset Flex Code
2356 status collapsed
2357
2358 \begin_layout Plain Layout
2359 $$p
2360 \end_layout
2361
2362 \end_inset
2363
2364  The path to the input file
2365 \end_layout
2366
2367 \begin_layout Labeling
2368 \labelwidthstring 00.00.0000
2369 \begin_inset Flex Code
2370 status collapsed
2371
2372 \begin_layout Plain Layout
2373 $$r
2374 \end_layout
2375
2376 \end_inset
2377
2378  The path to the original input file (this is different from $$p when a
2379  chain of converters is called)
2380 \end_layout
2381
2382 \begin_layout Labeling
2383 \labelwidthstring 00.00.0000
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 $$e
2389 \end_layout
2390
2391 \end_inset
2392
2393  The iconv name for the encoding of the document.
2394 \end_layout
2395
2396 \begin_layout Standard
2397 In the 
2398 \begin_inset Flex Noun
2399 status collapsed
2400
2401 \begin_layout Plain Layout
2402 Extra
2403 \begin_inset space ~
2404 \end_inset
2405
2406 Flag
2407 \end_layout
2408
2409 \end_inset
2410
2411  field you can enter the following flags, separated by commas:
2412 \end_layout
2413
2414 \begin_layout Labeling
2415 \labelwidthstring 00.00.0000
2416 \begin_inset Flex Code
2417 status collapsed
2418
2419 \begin_layout Plain Layout
2420 latex
2421 \change_inserted -712698321 1524656940
2422 =flavor
2423 \change_unchanged
2424
2425 \end_layout
2426
2427 \end_inset
2428
2429  This converter runs some form of \SpecialChar LaTeX
2430 .
2431  This will make \SpecialChar LyX
2432 's \SpecialChar LaTeX
2433  error logs available.
2434
2435 \change_inserted -712698321 1524657018
2436  The optional 
2437 \begin_inset Flex Code
2438 status open
2439
2440 \begin_layout Plain Layout
2441
2442 \change_inserted -712698321 1524657012
2443 flavor
2444 \change_unchanged
2445
2446 \end_layout
2447
2448 \end_inset
2449
2450  value specifies the form of \SpecialChar LaTeX
2451  that is run (
2452 \begin_inset Flex Code
2453 status open
2454
2455 \begin_layout Plain Layout
2456
2457 \change_inserted -712698321 1524657005
2458 latex, pdflatex, platex, xetex, luatex
2459 \change_unchanged
2460
2461 \end_layout
2462
2463 \end_inset
2464
2465 ).
2466  If no value is specified, 
2467 \begin_inset Flex Code
2468 status open
2469
2470 \begin_layout Plain Layout
2471
2472 \change_inserted -712698321 1524657018
2473 latex
2474 \change_unchanged
2475
2476 \end_layout
2477
2478 \end_inset
2479
2480  is used.
2481 \change_unchanged
2482
2483 \end_layout
2484
2485 \begin_layout Labeling
2486 \labelwidthstring 00.00.0000
2487 \begin_inset Flex Code
2488 status collapsed
2489
2490 \begin_layout Plain Layout
2491 needaux
2492 \change_inserted -712698321 1524656935
2493 =flavor
2494 \change_unchanged
2495
2496 \end_layout
2497
2498 \end_inset
2499
2500  Needs the \SpecialChar LaTeX
2501  
2502 \begin_inset Flex Noun
2503 status collapsed
2504
2505 \begin_layout Plain Layout
2506 .aux
2507 \end_layout
2508
2509 \end_inset
2510
2511  file for the conversion.
2512
2513 \change_inserted -712698321 1524657047
2514  The optional 
2515 \begin_inset Flex Code
2516 status open
2517
2518 \begin_layout Plain Layout
2519
2520 \change_inserted -712698321 1524657030
2521 flavor
2522 \end_layout
2523
2524 \end_inset
2525
2526  value specifies the form of \SpecialChar LaTeX
2527  that is run in order to generate the 
2528 \begin_inset Flex Noun
2529 status collapsed
2530
2531 \begin_layout Plain Layout
2532
2533 \change_inserted -712698321 1524657047
2534 .aux
2535 \end_layout
2536
2537 \end_inset
2538
2539  file (
2540 \begin_inset Flex Code
2541 status open
2542
2543 \begin_layout Plain Layout
2544
2545 \change_inserted -712698321 1524657030
2546 latex, pdflatex, platex, xetex, luatex
2547 \end_layout
2548
2549 \end_inset
2550
2551 ).
2552  If no value is specified, 
2553 \begin_inset Flex Code
2554 status open
2555
2556 \begin_layout Plain Layout
2557
2558 \change_inserted -712698321 1524657030
2559 latex
2560 \end_layout
2561
2562 \end_inset
2563
2564  is used.
2565 \change_unchanged
2566
2567 \end_layout
2568
2569 \begin_layout Labeling
2570 \labelwidthstring 00.00.0000
2571 \begin_inset Flex Code
2572 status collapsed
2573
2574 \begin_layout Plain Layout
2575 nice
2576 \end_layout
2577
2578 \end_inset
2579
2580  Needs a 
2581 \begin_inset Quotes eld
2582 \end_inset
2583
2584 nice
2585 \begin_inset Quotes erd
2586 \end_inset
2587
2588  file from the backend, which in practice means a \SpecialChar LaTeX
2589  file like the one we
2590  would export, without 
2591 \begin_inset Flex Code
2592 status collapsed
2593
2594 \begin_layout Plain Layout
2595 input@path
2596 \end_layout
2597
2598 \end_inset
2599
2600 .
2601 \end_layout
2602
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 xml
2610 \end_layout
2611
2612 \end_inset
2613
2614  Output is XML.
2615 \end_layout
2616
2617 \begin_layout Standard
2618 The following three flags are not really flags at all because they take
2619  an argument in the 
2620 \begin_inset Flex Noun
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 key
2625 \begin_inset space ~
2626 \end_inset
2627
2628 =
2629 \begin_inset space ~
2630 \end_inset
2631
2632 value
2633 \end_layout
2634
2635 \end_inset
2636
2637  format:
2638 \end_layout
2639
2640 \begin_layout Labeling
2641 \labelwidthstring 00.00.0000
2642
2643 \change_inserted -712698321 1523206314
2644 \begin_inset Flex Code
2645 status collapsed
2646
2647 \begin_layout Plain Layout
2648
2649 \change_inserted -712698321 1523206193
2650 hyperref-driver
2651 \end_layout
2652
2653 \end_inset
2654
2655  The name of the driver that needs to be loaded with the 
2656 \family sans
2657 hyperref
2658 \family default
2659  package for this converter.
2660  The loading of the correct driver is necessary to get some PDF-specific
2661  features.
2662  See the 
2663 \family sans
2664 hyperref
2665 \family default
2666  manual for details.
2667 \end_layout
2668
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 parselog
2676 \end_layout
2677
2678 \end_inset
2679
2680  If set, the converter's standard error will be redirected to a file 
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 infile.out
2686 \end_layout
2687
2688 \end_inset
2689
2690 , and the script given as argument will be run as: 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 script < infile.out > infile.log
2696 \end_layout
2697
2698 \end_inset
2699
2700 .
2701  The argument may contain 
2702 \begin_inset Flex Code
2703 status collapsed
2704
2705 \begin_layout Plain Layout
2706 $$s
2707 \end_layout
2708
2709 \end_inset
2710
2711 .
2712 \end_layout
2713
2714 \begin_layout Labeling
2715 \labelwidthstring 00.00.0000
2716 \begin_inset Flex Code
2717 status collapsed
2718
2719 \begin_layout Plain Layout
2720 resultdir
2721 \end_layout
2722
2723 \end_inset
2724
2725  The name of the directory in which the converter will dump the generated
2726  files.
2727  \SpecialChar LyX
2728  will not create this directory, and it does not copy anything into it,
2729  though it will copy this directory to the destination.
2730  The argument may contain 
2731 \begin_inset Flex Code
2732 status collapsed
2733
2734 \begin_layout Plain Layout
2735 $$b
2736 \end_layout
2737
2738 \end_inset
2739
2740 , which will be replaced by the base name of the input and output files,
2741  respectively, when the directory is copied.
2742 \begin_inset Newline newline
2743 \end_inset
2744
2745 Note that resultdir and usetempdir make no sense together.
2746  The latter will be ignored if the former is given.
2747 \end_layout
2748
2749 \begin_layout Labeling
2750 \labelwidthstring 00.00.0000
2751 \begin_inset Flex Code
2752 status collapsed
2753
2754 \begin_layout Plain Layout
2755 resultfile
2756 \end_layout
2757
2758 \end_inset
2759
2760  Determines the output file name and may, contain 
2761 \begin_inset Flex Code
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 $$b
2766 \end_layout
2767
2768 \end_inset
2769
2770 .
2771  Sensible only with resultdir and optional even then; if not given, it defaults
2772  to `index'.
2773 \end_layout
2774
2775 \begin_layout Standard
2776
2777 \change_inserted -712698321 1523206384
2778 A suitable hyperref-driver is set for some converters that are installed
2779  with \SpecialChar LyX
2780 .
2781  
2782 \change_deleted -712698321 1523206388
2783 None of these
2784 \change_inserted -712698321 1523206389
2785 The
2786 \change_unchanged
2787  last three
2788 \change_inserted -712698321 1523206400
2789  flags, however,
2790 \change_unchanged
2791  are presently 
2792 \change_inserted -712698321 1523206407
2793 not 
2794 \change_unchanged
2795 used in any of the 
2796 \change_inserted -712698321 1523206437
2797 pre-installed 
2798 \change_unchanged
2799 converters
2800 \change_deleted -712698321 1523206442
2801  that are installed with \SpecialChar LyX
2802
2803 \change_unchanged
2804 .
2805  
2806 \end_layout
2807
2808 \begin_layout Standard
2809 You do not have to define converters for all formats between which you want
2810  to convert.
2811  For example, you will note that there is no `\SpecialChar LyX
2812  to PostScript' converter,
2813  but \SpecialChar LyX
2814  will export PostScript.
2815  It does so by first creating a \SpecialChar LaTeX
2816  file (no converter needs to be defined
2817  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2818  to DVI' converter,
2819  and finally converting the resulting DVI file to PostScript.
2820  \SpecialChar LyX
2821  finds such `chains' of converters automatically, and it will always choose
2822  the shortest possible chain.
2823  You can, though, still define multiple conversion methods between file
2824  formats.
2825  For example, the standard \SpecialChar LyX
2826  configuration provides five ways to convert
2827  \SpecialChar LaTeX
2828  to PDF:
2829 \end_layout
2830
2831 \begin_layout Enumerate
2832 Directly, using 
2833 \begin_inset Flex Noun
2834 status collapsed
2835
2836 \begin_layout Plain Layout
2837 pdflatex
2838 \end_layout
2839
2840 \end_inset
2841
2842
2843 \end_layout
2844
2845 \begin_layout Enumerate
2846 via (DVI and) PostScript, using 
2847 \begin_inset Flex Noun
2848 status collapsed
2849
2850 \begin_layout Plain Layout
2851 ps2pdf
2852 \end_layout
2853
2854 \end_inset
2855
2856
2857 \end_layout
2858
2859 \begin_layout Enumerate
2860 via DVI, using 
2861 \begin_inset Flex Noun
2862 status collapsed
2863
2864 \begin_layout Plain Layout
2865 dvipdfm
2866 \end_layout
2867
2868 \end_inset
2869
2870
2871 \end_layout
2872
2873 \begin_layout Enumerate
2874 directly using 
2875 \begin_inset Flex Noun
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879 Xe\SpecialChar TeX
2880
2881 \end_layout
2882
2883 \end_inset
2884
2885
2886 \end_layout
2887
2888 \begin_layout Enumerate
2889 directly using 
2890 \begin_inset Flex Noun
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 Lua\SpecialChar TeX
2895
2896 \end_layout
2897
2898 \end_inset
2899
2900
2901 \end_layout
2902
2903 \begin_layout Standard
2904 To define such alternate chains, you must define multiple target `file formats',
2905  as described in 
2906 \begin_inset CommandInset ref
2907 LatexCommand ref
2908 reference "sec:Formats"
2909
2910 \end_inset
2911
2912 .
2913  For example, in the standard configuration, the formats named 
2914 \begin_inset Flex Noun
2915 status collapsed
2916
2917 \begin_layout Plain Layout
2918 pdf
2919 \end_layout
2920
2921 \end_inset
2922
2923  (for 
2924 \begin_inset Flex Noun
2925 status collapsed
2926
2927 \begin_layout Plain Layout
2928 ps2pdf
2929 \end_layout
2930
2931 \end_inset
2932
2933 ), 
2934 \begin_inset Flex Noun
2935 status collapsed
2936
2937 \begin_layout Plain Layout
2938 pdf2
2939 \end_layout
2940
2941 \end_inset
2942
2943  (for 
2944 \begin_inset Flex Noun
2945 status collapsed
2946
2947 \begin_layout Plain Layout
2948 pdflatex
2949 \end_layout
2950
2951 \end_inset
2952
2953 ), 
2954 \begin_inset Flex Noun
2955 status collapsed
2956
2957 \begin_layout Plain Layout
2958 pdf3
2959 \end_layout
2960
2961 \end_inset
2962
2963  (for 
2964 \begin_inset Flex Noun
2965 status collapsed
2966
2967 \begin_layout Plain Layout
2968 dvipdfm
2969 \end_layout
2970
2971 \end_inset
2972
2973 ), 
2974 \begin_inset Flex Noun
2975 status collapsed
2976
2977 \begin_layout Plain Layout
2978 pdf4
2979 \end_layout
2980
2981 \end_inset
2982
2983  (for 
2984 \begin_inset Flex Noun
2985 status collapsed
2986
2987 \begin_layout Plain Layout
2988 Xe\SpecialChar TeX
2989
2990 \end_layout
2991
2992 \end_inset
2993
2994 ), and 
2995 \begin_inset Flex Noun
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999 pdf5
3000 \end_layout
3001
3002 \end_inset
3003
3004  (for 
3005 \begin_inset Flex Noun
3006 status collapsed
3007
3008 \begin_layout Plain Layout
3009 Lua\SpecialChar TeX
3010
3011 \end_layout
3012
3013 \end_inset
3014
3015 ) are defined, all of which share the extension 
3016 \begin_inset Flex Noun
3017 status collapsed
3018
3019 \begin_layout Plain Layout
3020 .pdf
3021 \end_layout
3022
3023 \end_inset
3024
3025 , and which correspond to the conversion methods just mentioned.
3026 \end_layout
3027
3028 \begin_layout Chapter
3029 Internationalizing \SpecialChar LyX
3030
3031 \begin_inset CommandInset label
3032 LatexCommand label
3033 name "cha:Internationalizing-LyX"
3034
3035 \end_inset
3036
3037
3038 \end_layout
3039
3040 \begin_layout Standard
3041 \SpecialChar LyX
3042  supports using a translated interface.
3043  Last time we checked, \SpecialChar LyX
3044  provided text in thirty languages.
3045  The language of choice is called your 
3046 \emph on
3047 locale
3048 \emph default
3049 .
3050  (For further reading on locale settings, see also the documentation for
3051  locale that comes with your operating system.
3052  For Linux, the manual page for 
3053 \begin_inset Flex Code
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 locale(5)
3058 \end_layout
3059
3060 \end_inset
3061
3062  could be a good place to start).
3063 \end_layout
3064
3065 \begin_layout Standard
3066 Notice that these translations will work, but do contain a few flaws.
3067  In particular, all dialogs have been designed with the English text in
3068  mind, which means that some of the translated text will be too large to
3069  fit within the space allocated.
3070  This is only a display problem and will not cause any harm.
3071  Also, you will find that some of the translations do not define shortcut
3072  keys for everything.
3073  Sometimes, there are simply not enough free letters to do it.
3074  Other times, the translator just hasn't got around to doing it yet.
3075  Our localization team, which you may wish to join,
3076 \begin_inset Foot
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080 If you are a fluent speaker of a language other than English, joining these
3081  teams is a great way to give back to the \SpecialChar LyX
3082  community!
3083 \end_layout
3084
3085 \end_inset
3086
3087  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3088 .
3089 \end_layout
3090
3091 \begin_layout Section
3092 Translating \SpecialChar LyX
3093
3094 \end_layout
3095
3096 \begin_layout Subsection
3097 Translating the graphical user interface (text messages).
3098 \end_layout
3099
3100 \begin_layout Standard
3101 \SpecialChar LyX
3102  uses the GNU 
3103 \begin_inset Flex Code
3104 status collapsed
3105
3106 \begin_layout Plain Layout
3107 gettext
3108 \end_layout
3109
3110 \end_inset
3111
3112  library to handle the internationalization of the interface.
3113  To have \SpecialChar LyX
3114  speak your favorite language in all menus and dialogs, you need
3115  a 
3116 \begin_inset Flex Code
3117 status collapsed
3118
3119 \begin_layout Plain Layout
3120 po
3121 \end_layout
3122
3123 \end_inset
3124
3125 -file for that language.
3126  When this is available, you'll have to generate a 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 mo
3132 \end_layout
3133
3134 \end_inset
3135
3136 -file from it and install the 
3137 \begin_inset Flex Code
3138 status collapsed
3139
3140 \begin_layout Plain Layout
3141 mo
3142 \end_layout
3143
3144 \end_inset
3145
3146 -file.
3147  The process of doing all of this is explained in the documentation for
3148  GNU 
3149 \begin_inset Flex Code
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153 gettext
3154 \end_layout
3155
3156 \end_inset
3157
3158 .
3159  It is possible to do this just for yourself, but if you're going to do
3160  it, you might as well share the results of your labors with the rest of
3161  the \SpecialChar LyX
3162  community.
3163  Send a message to the \SpecialChar LyX
3164  developers' list for more information about how
3165  to proceed.
3166 \end_layout
3167
3168 \begin_layout Standard
3169 In short, this is what you should do (xx denotes the language code):
3170 \end_layout
3171
3172 \begin_layout Itemize
3173 Check out the \SpecialChar LyX
3174  source code.
3175  (See the 
3176 \begin_inset CommandInset href
3177 LatexCommand href
3178 name "information on the web"
3179 target "https://www.lyx.org/HowToUseGIT"
3180 literal "false"
3181
3182 \end_inset
3183
3184 .)
3185 \end_layout
3186
3187 \begin_layout Itemize
3188 Copy the file 
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 lyx.pot
3194 \end_layout
3195
3196 \end_inset
3197
3198  to the folder of the 
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 **.po
3204 \end_layout
3205
3206 \end_inset
3207
3208  files.
3209  Then rename it to 
3210 \begin_inset Flex Code
3211 status collapsed
3212
3213 \begin_layout Plain Layout
3214 xx.po
3215 \end_layout
3216
3217 \end_inset
3218
3219 .
3220  (If 
3221 \begin_inset Flex Code
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 lyx.pot
3226 \end_layout
3227
3228 \end_inset
3229
3230  doesn't exist anywhere, it can be remade with the console command 
3231 \begin_inset Flex Code
3232 status collapsed
3233
3234 \begin_layout Plain Layout
3235 make lyx.pot
3236 \end_layout
3237
3238 \end_inset
3239
3240  in that directory, or you can use an existing po-file for some other language
3241  as a template).
3242 \end_layout
3243
3244 \begin_layout Itemize
3245 Edit 
3246 \begin_inset Flex Code
3247 status collapsed
3248
3249 \begin_layout Plain Layout
3250 xx.po
3251 \end_layout
3252
3253 \end_inset
3254
3255 .
3256 \begin_inset Foot
3257 status collapsed
3258
3259 \begin_layout Plain Layout
3260 This is just a text file, so it can be edited in any text editor.
3261  But there are also specialized programs that support such editing, such
3262  as 
3263 \family typewriter
3264 Poedit
3265 \family default
3266  (for all platforms) or 
3267 \family typewriter
3268 KBabel
3269 \family default
3270  (for KDE).
3271  
3272 \family typewriter
3273 Emacs
3274 \family default
3275  contains a `mode' for editing 
3276 \begin_inset Flex Code
3277 status collapsed
3278
3279 \begin_layout Plain Layout
3280 po
3281 \end_layout
3282
3283 \end_inset
3284
3285  files, as well, see 
3286 \begin_inset Flex URL
3287 status open
3288
3289 \begin_layout Plain Layout
3290
3291 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3292 \end_layout
3293
3294 \end_inset
3295
3296 .
3297 \end_layout
3298
3299 \end_inset
3300
3301  For some menu- and widget-labels, there are also shortcut keys that should
3302  be translated.
3303  Those keys are marked after a `|', and should be translated according to
3304  the words and phrases of the language.
3305  You should also fill also out the information at the beginning of the new
3306  
3307 \begin_inset Flex Code
3308 status collapsed
3309
3310 \begin_layout Plain Layout
3311 po
3312 \end_layout
3313
3314 \end_inset
3315
3316 -file with your email-address, etc., so people know where to reach you with
3317  suggestions and entertaining flames.
3318 \end_layout
3319
3320 \begin_layout Standard
3321 If you are just doing this on your own, then:
3322 \end_layout
3323
3324 \begin_layout Itemize
3325 Generate 
3326 \begin_inset Flex Code
3327 status collapsed
3328
3329 \begin_layout Plain Layout
3330 xx.mo
3331 \end_layout
3332
3333 \end_inset
3334
3335 .
3336  This can be done with 
3337 \begin_inset Flex Code
3338 status collapsed
3339
3340 \begin_layout Plain Layout
3341 msgfmt -o xx.mo < xx.po
3342 \end_layout
3343
3344 \end_inset
3345
3346 .
3347 \end_layout
3348
3349 \begin_layout Itemize
3350 Copy the 
3351 \begin_inset Flex Code
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 mo
3356 \end_layout
3357
3358 \end_inset
3359
3360 -file to your locale-tree, at the correct directory for application messages
3361  for the language
3362 \series bold
3363  
3364 \series default
3365 xx, and under the name 
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370 lyx.mo
3371 \end_layout
3372
3373 \end_inset
3374
3375  (e.
3376 \begin_inset space \thinspace{}
3377 \end_inset
3378
3379 g.
3380 \begin_inset space \space{}
3381 \end_inset
3382
3383
3384 \begin_inset Flex Code
3385 status collapsed
3386
3387 \begin_layout Plain Layout
3388 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3389 \end_layout
3390
3391 \end_inset
3392
3393
3394 \series bold
3395 .
3396 \end_layout
3397
3398 \begin_layout Standard
3399 As said, however, it would be best if the new 
3400 \begin_inset Flex Code
3401 status collapsed
3402
3403 \begin_layout Plain Layout
3404 po
3405 \end_layout
3406
3407 \end_inset
3408
3409  file could be added to the \SpecialChar LyX
3410  distribution, so others can use it.
3411  Adding it involves making additional changes to \SpecialChar LyX
3412 .
3413  So send an email to the developers' mailing list if you're interested in
3414  doing that.
3415 \end_layout
3416
3417 \begin_layout Subsubsection
3418 Ambiguous messages
3419 \end_layout
3420
3421 \begin_layout Standard
3422 Sometimes it turns out that one English message needs to be translated into
3423  different messages in the target language.
3424  One example is the message 
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429 To
3430 \end_layout
3431
3432 \end_inset
3433
3434  which has the German translation 
3435 \lang german
3436 Nach
3437 \lang english
3438  or 
3439 \lang german
3440 Bis
3441 \lang english
3442 , depending upon exactly what the English 
3443 \begin_inset Quotes eld
3444 \end_inset
3445
3446 to
3447 \begin_inset Quotes erd
3448 \end_inset
3449
3450  means.
3451  GNU 
3452 \begin_inset Flex Code
3453 status collapsed
3454
3455 \begin_layout Plain Layout
3456 gettext
3457 \end_layout
3458
3459 \end_inset
3460
3461  does not handle such ambiguous translations.
3462  Therefore you have to add some context information to the message: Instead
3463  of 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 To
3469 \end_layout
3470
3471 \end_inset
3472
3473  it becomes 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 To[[as in 'From format x to format y']]
3479 \end_layout
3480
3481 \end_inset
3482
3483  and 
3484 \begin_inset Flex Code
3485 status collapsed
3486
3487 \begin_layout Plain Layout
3488 To[[as in 'From page x to page y']].
3489 \end_layout
3490
3491 \end_inset
3492
3493  Now the two occurrences of 
3494 \begin_inset Flex Code
3495 status collapsed
3496
3497 \begin_layout Plain Layout
3498 To
3499 \end_layout
3500
3501 \end_inset
3502
3503  are different for 
3504 \begin_inset Flex Code
3505 status collapsed
3506
3507 \begin_layout Plain Layout
3508 gettext
3509 \end_layout
3510
3511 \end_inset
3512
3513  and can be translated correctly to 
3514 \lang german
3515 Nach
3516 \lang english
3517  and 
3518 \lang german
3519 Bis
3520 \lang english
3521 , respectively.
3522 \end_layout
3523
3524 \begin_layout Standard
3525 Of course the context information needs to be stripped off the original
3526  message when no translation is used.
3527  Therefore you have to put it in double square brackets at the end of the
3528  message (see the example above).
3529  The translation mechanism of \SpecialChar LyX
3530  ensures that everything in double square
3531  brackets at the end of messages is removed before displaying the message.
3532 \end_layout
3533
3534 \begin_layout Subsection
3535 Translating the documentation.
3536 \end_layout
3537
3538 \begin_layout Standard
3539 The online documentation (in the 
3540 \begin_inset Flex Noun
3541 status collapsed
3542
3543 \begin_layout Plain Layout
3544 Help
3545 \end_layout
3546
3547 \end_inset
3548
3549 -menu) can (and should!) be translated.
3550  If there are translated versions of the documentation available
3551 \begin_inset Foot
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 As of March 2008, at least some of the documents have been translated into
3556  fourteen languages, with the Tutorial available in a few more.
3557 \end_layout
3558
3559 \end_inset
3560
3561  and the locale is set accordingly, these will be used automagically by
3562  \SpecialChar LyX
3563 .
3564  \SpecialChar LyX
3565  looks for translated versions as 
3566 \begin_inset Flex Code
3567 status collapsed
3568
3569 \begin_layout Plain Layout
3570 LyXDir/doc/xx/DocName.lyx
3571 \end_layout
3572
3573 \end_inset
3574
3575 , where 
3576 \begin_inset Flex Code
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 xx
3581 \end_layout
3582
3583 \end_inset
3584
3585  is the code for the language currently in use.
3586  If there are no translated documents, the default English versions will
3587  be displayed.
3588  Note that the translated versions must have the same filenames (
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593 DocName
3594 \end_layout
3595
3596 \end_inset
3597
3598  above) as the original.
3599  If you feel up to translating the documentation (an excellent way to proof-read
3600  the original documentation by the way!), there are a few things you should
3601  do right away:
3602 \end_layout
3603
3604 \begin_layout Itemize
3605 Check out the documentation translation web page at 
3606 \begin_inset CommandInset href
3607 LatexCommand href
3608 name "https://www.lyx.org/Translation"
3609 target "https://www.lyx.org/Translation"
3610 literal "false"
3611
3612 \end_inset
3613
3614 .
3615  That way, you can find out which (if any) documents have already been translate
3616 d into your language.
3617  You can also find out who (if anyone) is organizing the effort to translate
3618  the documentation into your language.
3619  If no one is organizing the effort, please let us know that you're interested.
3620 \end_layout
3621
3622 \begin_layout Standard
3623 Once you get to actually translating, here's a few hints for you that may
3624  save you trouble:
3625 \end_layout
3626
3627 \begin_layout Itemize
3628 Join the documentation team! There is information on how to do that in 
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633 Intro.lyx
3634 \end_layout
3635
3636 \end_inset
3637
3638  (
3639 \begin_inset Flex Noun
3640 status collapsed
3641
3642 \begin_layout Plain Layout
3643 Help\SpecialChar menuseparator
3644 Introduction
3645 \end_layout
3646
3647 \end_inset
3648
3649 ), which by the way is the first document you should translate.
3650 \end_layout
3651
3652 \begin_layout Itemize
3653 Learn the typographic conventions for the language you are translating to.
3654  Typography is an ancient art and over the centuries, a great variety of
3655  conventions have developed throughout different parts of the world.
3656  Also study the professional terminology amongst typographers in your country.
3657  Inventing your own terminology will only confuse the users.
3658  
3659 \emph on
3660 (Warning! Typography is addictive!)
3661 \end_layout
3662
3663 \begin_layout Itemize
3664 Make a copy of the document.
3665  This will be your working copy.
3666  You can use this as your personal translated help-file by placing it in
3667  your 
3668 \begin_inset Flex Code
3669 status collapsed
3670
3671 \begin_layout Plain Layout
3672 UserDir/doc/xx/
3673 \end_layout
3674
3675 \end_inset
3676
3677  directory.
3678 \begin_inset Note Greyedout
3679 status open
3680
3681 \begin_layout Plain Layout
3682
3683 \series bold
3684 Note:
3685 \series default
3686  For a complex document with external material (images, etc.), if you make
3687  a copy e.
3688 \begin_inset space \thinspace{}
3689 \end_inset
3690
3691 g.
3692 \begin_inset space \space{}
3693 \end_inset
3694
3695 in a temp dir, beware that the links to external material may be broken
3696  when the document is moved to a different place.
3697  The best way is to retrieve the \SpecialChar LyX
3698  tree from git (see 
3699 \begin_inset Flex URL
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703
3704 https://www.lyx.org/HowToUseGIT
3705 \end_layout
3706
3707 \end_inset
3708
3709 ) and to edit the doc file in place.
3710 \end_layout
3711
3712 \end_inset
3713
3714
3715 \end_layout
3716
3717 \begin_layout Itemize
3718 Sometimes the original document (from the \SpecialChar LyX
3719  team) will be updated.
3720  Use the source viewer at 
3721 \begin_inset CommandInset href
3722 LatexCommand href
3723 name "https://www.lyx.org/trac/timeline"
3724 target "https://www.lyx.org/trac/timeline"
3725 literal "false"
3726
3727 \end_inset
3728
3729  to see what has been changed.
3730  That way you can easily see which parts of the translated document need
3731  to be updated.
3732 \end_layout
3733
3734 \begin_layout Standard
3735 If you ever find an error in the original document, fix it and notify the
3736  rest of the documentation team of the changes! (You didn't forget to join
3737  the documentation team, did you?)
3738 \end_layout
3739
3740 \begin_layout Standard
3741 \begin_inset Branch OutDated
3742 inverted 0
3743 status collapsed
3744
3745 \begin_layout Section
3746 International Keyboard Support
3747 \end_layout
3748
3749 \begin_layout Standard
3750
3751 \emph on
3752 [Editor's Note: The following section is by
3753 \emph default
3754  
3755 \shape smallcaps
3756 \emph on
3757 Ivan Schreter
3758 \shape default
3759 .
3760  It needs to be fixed to conform to the new Documentation Style sheet and
3761  to make use of the new v1.0 features.
3762  The whole thing also needs to be merged with the section following it.-jw
3763  It may also be badly out of date.-rh (2008)]
3764 \end_layout
3765
3766 \begin_layout Subsection
3767 Defining Own Keymaps: Keymap File Format
3768 \end_layout
3769
3770 \begin_layout Standard
3771 Let's look at a keyboard definition file a little closer.
3772  It is a plain text file defining
3773 \end_layout
3774
3775 \begin_layout Itemize
3776 key-to-key or key-to-string translations
3777 \end_layout
3778
3779 \begin_layout Itemize
3780 dead keys
3781 \end_layout
3782
3783 \begin_layout Itemize
3784 dead keys exceptions
3785 \end_layout
3786
3787 \begin_layout Standard
3788 To define key-to-key or key-to-string translation, use this command:
3789 \end_layout
3790
3791 \begin_layout Quotation
3792 \begin_inset Flex Code
3793 status collapsed
3794
3795 \begin_layout Plain Layout
3796
3797 \backslash
3798 kmap
3799 \end_layout
3800
3801 \end_inset
3802
3803  
3804 \begin_inset Flex Code
3805 status collapsed
3806
3807 \begin_layout Plain Layout
3808 key
3809 \end_layout
3810
3811 \end_inset
3812
3813  outstring 
3814 \end_layout
3815
3816 \begin_layout Standard
3817 where 
3818 \begin_inset Flex Code
3819 status collapsed
3820
3821 \begin_layout Plain Layout
3822 key
3823 \end_layout
3824
3825 \end_inset
3826
3827  is the key to be translated and 
3828 \begin_inset Flex Code
3829 status collapsed
3830
3831 \begin_layout Plain Layout
3832 outstring
3833 \end_layout
3834
3835 \end_inset
3836
3837  is the string to be inserted into the document.
3838  To define dead keys, use:
3839 \end_layout
3840
3841 \begin_layout Quotation
3842 \begin_inset Flex Code
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846
3847 \backslash
3848 kmod
3849 \end_layout
3850
3851 \end_inset
3852
3853  
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 key
3859 \end_layout
3860
3861 \end_inset
3862
3863  deadkey
3864 \end_layout
3865
3866 \begin_layout Standard
3867 where 
3868 \begin_inset Flex Code
3869 status collapsed
3870
3871 \begin_layout Plain Layout
3872 key
3873 \end_layout
3874
3875 \end_inset
3876
3877  is a keyboard key and 
3878 \begin_inset Flex Code
3879 status collapsed
3880
3881 \begin_layout Plain Layout
3882 deadkey
3883 \end_layout
3884
3885 \end_inset
3886
3887  is dead key name.
3888  The following dead keys are supported (shortcut name is in parentheses):
3889 \end_layout
3890
3891 \begin_layout Quotation
3892
3893 \emph on
3894 Name
3895 \begin_inset space \hfill{}
3896 \end_inset
3897
3898 Example
3899 \end_layout
3900
3901 \begin_layout Quotation
3902 acute (acu)
3903 \begin_inset space \hfill{}
3904 \end_inset
3905
3906 áéíóú
3907 \end_layout
3908
3909 \begin_layout Quotation
3910 grave (gra)
3911 \begin_inset space \hfill{}
3912 \end_inset
3913
3914 àèìòù
3915 \end_layout
3916
3917 \begin_layout Quotation
3918 macron (mac)
3919 \begin_inset space \hfill{}
3920 \end_inset
3921
3922  ō
3923 \end_layout
3924
3925 \begin_layout Quotation
3926 tilde (til)
3927 \begin_inset space \hfill{}
3928 \end_inset
3929
3930 ñÑ
3931 \end_layout
3932
3933 \begin_layout Quotation
3934 underbar (underb)
3935 \begin_inset space \hfill{}
3936 \end_inset
3937
3938
3939 \begin_inset ERT
3940 status open
3941
3942 \begin_layout Plain Layout
3943
3944
3945 \backslash
3946 b o
3947 \end_layout
3948
3949 \end_inset
3950
3951
3952 \end_layout
3953
3954 \begin_layout Quotation
3955 cedilla (ced)
3956 \begin_inset space \hfill{}
3957 \end_inset
3958
3959 çÇ
3960 \end_layout
3961
3962 \begin_layout Quotation
3963 underdot (underd)
3964 \begin_inset space \hfill{}
3965 \end_inset
3966
3967
3968 \begin_inset ERT
3969 status open
3970
3971 \begin_layout Plain Layout
3972
3973
3974 \backslash
3975 d o
3976 \end_layout
3977
3978 \end_inset
3979
3980
3981 \end_layout
3982
3983 \begin_layout Quotation
3984 circumflex (circu)
3985 \begin_inset space \hfill{}
3986 \end_inset
3987
3988 âêîôû
3989 \end_layout
3990
3991 \begin_layout Quotation
3992 circle (circl)
3993 \begin_inset space \hfill{}
3994 \end_inset
3995
3996 ÅůŮ
3997 \end_layout
3998
3999 \begin_layout Quotation
4000 tie (tie)
4001 \begin_inset space \hfill{}
4002 \end_inset
4003
4004
4005 \begin_inset ERT
4006 status open
4007
4008 \begin_layout Plain Layout
4009
4010
4011 \backslash
4012 t o
4013 \end_layout
4014
4015 \end_inset
4016
4017
4018 \end_layout
4019
4020 \begin_layout Quotation
4021 breve (bre)
4022 \begin_inset space \hfill{}
4023 \end_inset
4024
4025 ă
4026 \begin_inset ERT
4027 status open
4028
4029 \begin_layout Plain Layout
4030
4031
4032 \backslash
4033 u o
4034 \end_layout
4035
4036 \end_inset
4037
4038
4039 \end_layout
4040
4041 \begin_layout Quotation
4042 caron (car)
4043 \begin_inset space \hfill{}
4044 \end_inset
4045
4046 čšž
4047 \end_layout
4048
4049 \begin_layout Quotation
4050 hungarian umlaut (hug)
4051 \begin_inset space \hfill{}
4052 \end_inset
4053
4054 őű
4055 \end_layout
4056
4057 \begin_layout Quotation
4058 umlaut (uml)
4059 \begin_inset space \hfill{}
4060 \end_inset
4061
4062 äöü
4063 \end_layout
4064
4065 \begin_layout Quotation
4066 dot (dot)
4067 \begin_inset space \hfill{}
4068 \end_inset
4069
4070 ż
4071 \begin_inset ERT
4072 status open
4073
4074 \begin_layout Plain Layout
4075
4076
4077 \backslash
4078 .s
4079 \end_layout
4080
4081 \end_inset
4082
4083
4084 \end_layout
4085
4086 \begin_layout Standard
4087 Since in many international keyboards there are exceptions to what some
4088  dead keys should do, you can define them using
4089 \end_layout
4090
4091 \begin_layout Quotation
4092 \begin_inset Flex Code
4093 status collapsed
4094
4095 \begin_layout Plain Layout
4096
4097 \backslash
4098 kxmod
4099 \end_layout
4100
4101 \end_inset
4102
4103  deadkey key outstring
4104 \end_layout
4105
4106 \begin_layout Standard
4107 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4108 , so you put in
4109 \end_layout
4110
4111 \begin_layout Quotation
4112 \begin_inset Flex Code
4113 status collapsed
4114
4115 \begin_layout Plain Layout
4116
4117 \backslash
4118 kxmod
4119 \end_layout
4120
4121 \end_inset
4122
4123  caron o "
4124 \backslash
4125 ^o"
4126 \end_layout
4127
4128 \begin_layout Standard
4129 to make it work correctly.
4130  Also, you have to define as exceptions dead keys over i and j, to remove
4131  the dot from them before inserting an accent mark.
4132  I will change this when the time comes, but so far I haven't had time.
4133 \end_layout
4134
4135 \begin_layout Standard
4136 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4137  double backslash.
4138  Also, quotes and 
4139 \begin_inset Flex Code
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143 #
4144 \end_layout
4145
4146 \end_inset
4147
4148  have different meaning.
4149  
4150 \begin_inset Flex Code
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154 #
4155 \end_layout
4156
4157 \end_inset
4158
4159  marks comments, quotes start and end \SpecialChar LaTeX
4160 -style commands.
4161  To enter quote, you'll need to use 
4162 \begin_inset Flex Code
4163 status collapsed
4164
4165 \begin_layout Plain Layout
4166
4167 \backslash
4168 "
4169 \end_layout
4170
4171 \end_inset
4172
4173 , to enter 
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 #
4179 \end_layout
4180
4181 \end_inset
4182
4183 , use 
4184 \begin_inset Flex Code
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188
4189 \backslash
4190 #
4191 \end_layout
4192
4193 \end_inset
4194
4195 .
4196 \end_layout
4197
4198 \begin_layout Standard
4199 If you make a keyboard description file that works for your language, please
4200  mail it to me, so I can include it in the next keymap distribution.
4201 \end_layout
4202
4203 \begin_layout Standard
4204 More keywords will be supported in keymap configuration file in future,
4205  like
4206 \end_layout
4207
4208 \begin_layout Itemize
4209 \begin_inset Flex Code
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213
4214 \backslash
4215 kinclude filename
4216 \end_layout
4217
4218 \end_inset
4219
4220
4221 \emph on
4222
4223 \begin_inset space \hfill{}
4224 \end_inset
4225
4226
4227 \begin_inset Flex Code
4228 status collapsed
4229
4230 \begin_layout Plain Layout
4231 include
4232 \end_layout
4233
4234 \end_inset
4235
4236  another file
4237 \end_layout
4238
4239 \begin_layout Itemize
4240 \begin_inset Flex Code
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244
4245 \backslash
4246 kprog program
4247 \end_layout
4248
4249 \end_inset
4250
4251
4252 \emph on
4253
4254 \begin_inset space \hfill{}
4255 \end_inset
4256
4257
4258 \begin_inset Flex Code
4259 status collapsed
4260
4261 \begin_layout Plain Layout
4262 define
4263 \end_layout
4264
4265 \end_inset
4266
4267  an external keymap translation program 
4268 \end_layout
4269
4270 \begin_layout Standard
4271 Also, it should look into 
4272 \begin_inset Flex Code
4273 status collapsed
4274
4275 \begin_layout Plain Layout
4276 lyxrc
4277 \end_layout
4278
4279 \end_inset
4280
4281  file for defaults, too (for example, a 
4282 \begin_inset Flex Code
4283 status collapsed
4284
4285 \begin_layout Plain Layout
4286
4287 \backslash
4288 kinclude
4289 \end_layout
4290
4291 \end_inset
4292
4293  option to include default keyboard).
4294 \end_layout
4295
4296 \end_inset
4297
4298
4299 \end_layout
4300
4301 \begin_layout Section
4302 International Keymap Stuff
4303 \begin_inset CommandInset label
4304 LatexCommand label
4305 name "sec:International-Keymap-Stuff"
4306
4307 \end_inset
4308
4309
4310 \end_layout
4311
4312 \begin_layout Standard
4313 \begin_inset Note Note
4314 status open
4315
4316 \begin_layout Plain Layout
4317 In doing the revisions on this document in March 2008, I did not look over
4318  this stuff, as I do not understand it.
4319  It would be good if someone else could do so.
4320  (RH)
4321 \end_layout
4322
4323 \end_inset
4324
4325
4326 \end_layout
4327
4328 \begin_layout Standard
4329 The next two sections describe the 
4330 \begin_inset Flex Code
4331 status collapsed
4332
4333 \begin_layout Plain Layout
4334
4335 \shape up
4336 .kmap
4337 \end_layout
4338
4339 \end_inset
4340
4341  and 
4342 \begin_inset Flex Code
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346
4347 \shape up
4348 .cdef
4349 \end_layout
4350
4351 \end_inset
4352
4353  file syntax in detail.
4354  These sections should help you design your own key map if the ones provided
4355  do not meet your needs.
4356 \end_layout
4357
4358 \begin_layout Subsection
4359 The .kmap File
4360 \end_layout
4361
4362 \begin_layout Standard
4363
4364 \shape up
4365 .
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370 kmap
4371 \end_layout
4372
4373 \end_inset
4374
4375  file maps keystrokes to characters or strings.
4376  As the name suggests, it sets a keyboard mapping.
4377  The 
4378 \begin_inset Flex Code
4379 status collapsed
4380
4381 \begin_layout Plain Layout
4382 .kmap
4383 \end_layout
4384
4385 \end_inset
4386
4387
4388 \shape default
4389  file keywords 
4390 \shape up
4391
4392 \begin_inset Flex Code
4393 status collapsed
4394
4395 \begin_layout Plain Layout
4396
4397 \shape up
4398 kmap
4399 \end_layout
4400
4401 \end_inset
4402
4403
4404 \shape default
4405 ,
4406 \shape up
4407  
4408 \shape default
4409
4410 \begin_inset Flex Code
4411 status collapsed
4412
4413 \begin_layout Plain Layout
4414
4415 \shape up
4416 kmod
4417 \end_layout
4418
4419 \end_inset
4420
4421 ,
4422 \shape up
4423  
4424 \shape default
4425
4426 \begin_inset Flex Code
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430
4431 \shape up
4432 kxmod
4433 \end_layout
4434
4435 \end_inset
4436
4437 , and 
4438 \begin_inset Flex Code
4439 status collapsed
4440
4441 \begin_layout Plain Layout
4442
4443 \shape up
4444 kcomb
4445 \end_layout
4446
4447 \end_inset
4448
4449  are described in this section.
4450 \end_layout
4451
4452 \begin_layout Labeling
4453 \labelwidthstring 00.00.0000
4454 \begin_inset Flex Code
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458
4459 \shape up
4460 kmap
4461 \end_layout
4462
4463 \end_inset
4464
4465  Map a character to a string
4466 \end_layout
4467
4468 \begin_layout LyX-Code
4469
4470 \backslash
4471 kmap 
4472 \family roman
4473 \emph on
4474 char
4475 \family default
4476 \emph default
4477  
4478 \family roman
4479 \emph on
4480 string
4481 \end_layout
4482
4483 \begin_layout Standard
4484 This will ma
4485 \family roman
4486 p
4487 \family default
4488  
4489 \family roman
4490 \emph on
4491 char
4492 \family default
4493 \emph default
4494  
4495 \family roman
4496 to
4497 \family default
4498  
4499 \family roman
4500 \emph on
4501 string
4502 \emph default
4503 .
4504  Note that in
4505 \family default
4506  
4507 \family roman
4508 \emph on
4509 string
4510 \emph default
4511 ,
4512 \family default
4513  
4514 \family roman
4515 \shape up
4516 the double-quote (")
4517 \family default
4518 \shape default
4519  
4520 \family roman
4521 and
4522 \family default
4523  
4524 \family roman
4525 \shape up
4526 the backslash (
4527 \backslash
4528 )
4529 \family default
4530 \shape default
4531  
4532 \family roman
4533 must be escaped with a preceding backslash (
4534 \shape up
4535
4536 \backslash
4537
4538 \shape default
4539 )
4540 \family default
4541 .
4542 \end_layout
4543
4544 \begin_layout Standard
4545 An example of a 
4546 \begin_inset Flex Noun
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550
4551 \shape up
4552 kmap
4553 \end_layout
4554
4555 \end_inset
4556
4557  statement to cause the symbol 
4558 \begin_inset Flex Noun
4559 status collapsed
4560
4561 \begin_layout Plain Layout
4562
4563 \shape up
4564 /
4565 \end_layout
4566
4567 \end_inset
4568
4569  to be output for the keystroke 
4570 \begin_inset Flex Noun
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574
4575 \shape up
4576 &
4577 \end_layout
4578
4579 \end_inset
4580
4581  is:
4582 \end_layout
4583
4584 \begin_layout LyX-Code
4585
4586 \backslash
4587 kmap & /
4588 \end_layout
4589
4590 \begin_layout Labeling
4591 \labelwidthstring 00.00.0000
4592 \begin_inset Flex Code
4593 status collapsed
4594
4595 \begin_layout Plain Layout
4596
4597 \shape up
4598 kmod
4599 \end_layout
4600
4601 \end_inset
4602
4603  Specify an accent character
4604 \end_layout
4605
4606 \begin_layout LyX-Code
4607
4608 \backslash
4609 kmod 
4610 \family roman
4611 \emph on
4612 char accent allowed
4613 \end_layout
4614
4615 \begin_layout Standard
4616 This will make the cha
4617 \family roman
4618 racter
4619 \family default
4620  
4621 \family roman
4622 \emph on
4623 char
4624 \family default
4625 \emph default
4626  
4627 \family roman
4628 \shape up
4629 \emph on
4630 be an accent
4631 \family default
4632 \shape default
4633 \emph default
4634  
4635 \family roman
4636 \shape up
4637 on the
4638 \family default
4639 \shape default
4640  
4641 \family roman
4642 \shape up
4643 \emph on
4644 allowed
4645 \family default
4646 \shape default
4647 \emph default
4648  
4649 \family roman
4650 \shape up
4651 cha
4652 \family default
4653 racter(s).
4654  This is the dead key
4655 \begin_inset Foot
4656 status collapsed
4657
4658 \begin_layout Plain Layout
4659 The term 
4660 \family roman
4661 \emph on
4662 dead key
4663 \family default
4664 \emph default
4665  refers to a key that does not produce a character by itself, but when followed
4666  with another key, produces the desired accent character.
4667  For example, a German characte
4668 \family roman
4669 r with an umlaut like
4670 \family default
4671  
4672 \family roman
4673 \emph on
4674 ä
4675 \family default
4676 \emph default
4677  
4678 \family roman
4679 can be produced in this manner.
4680 \end_layout
4681
4682 \end_inset
4683
4684  mechanism.
4685  
4686 \end_layout
4687
4688 \begin_layout Standard
4689 If you 
4690 \family roman
4691 hit
4692 \family default
4693  
4694 \family roman
4695 \emph on
4696 char
4697 \family default
4698 \emph default
4699  
4700 \family roman
4701 and then another key not in
4702 \family default
4703  
4704 \family roman
4705 \emph on
4706 allowed
4707 \emph default
4708 , you will get a
4709 \family default
4710  
4711 \family roman
4712 \emph on
4713 char
4714 \family default
4715 \emph default
4716  
4717 \family roman
4718 followed by the other, not allowed key, as output.
4719
4720 \family default
4721  Note that a 
4722 \begin_inset Flex Noun
4723 status collapsed
4724
4725 \begin_layout Plain Layout
4726
4727 \shape up
4728 Backspace
4729 \end_layout
4730
4731 \end_inset
4732
4733  cancels a dead key, so if 
4734 \family roman
4735 you hit
4736 \family default
4737  
4738 \family roman
4739 \emph on
4740 char
4741 \family default
4742 \emph default
4743  
4744 \begin_inset Flex Noun
4745 status collapsed
4746
4747 \begin_layout Plain Layout
4748
4749 \shape up
4750 \emph on
4751 Backspace
4752 \end_layout
4753
4754 \end_inset
4755
4756 , the cursor will not go one position backwards but will instead cancel
4757  the effect t
4758 \family roman
4759 hat
4760 \family default
4761  
4762 \family roman
4763 \shape up
4764 \emph on
4765 char
4766 \family default
4767 \shape default
4768 \emph default
4769  
4770 \family roman
4771 \shape up
4772 might have had on the next keystroke.
4773  
4774 \end_layout
4775
4776 \begin_layout Standard
4777 The following example specifies that the character ' is to be an acute accent,
4778  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4779 \end_layout
4780
4781 \begin_layout LyX-Code
4782
4783 \backslash
4784 kmod ' acute aeiouAEIOU
4785 \end_layout
4786
4787 \begin_layout Labeling
4788 \labelwidthstring 00.00.0000
4789 \begin_inset Flex Code
4790 status collapsed
4791
4792 \begin_layout Plain Layout
4793 kxmod
4794 \end_layout
4795
4796 \end_inset
4797
4798  Specify an exception to the accent character
4799 \end_layout
4800
4801 \begin_layout LyX-Code
4802
4803 \backslash
4804 kxmod  
4805 \family roman
4806 \emph on
4807 accent char result
4808 \end_layout
4809
4810 \begin_layout Standard
4811 This defines an exce
4812 \family roman
4813 ption for
4814 \family default
4815  
4816 \family roman
4817 \emph on
4818 accent
4819 \family default
4820 \emph default
4821  
4822 \family roman
4823 on
4824 \family default
4825  
4826 \family roman
4827 \emph on
4828 char
4829 \emph default
4830 .
4831  T
4832 \shape up
4833 he
4834 \family default
4835 \shape default
4836  
4837 \family roman
4838 \shape up
4839 \emph on
4840 accent
4841 \family default
4842 \shape default
4843 \emph default
4844  
4845 \family roman
4846 \shape up
4847 must
4848 \family default
4849 \shape default
4850  
4851 \shape up
4852 have been assigned a keystroke with a previous
4853 \shape default
4854  
4855 \begin_inset Flex Code
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859
4860 \shape up
4861
4862 \backslash
4863 kmo
4864 \shape default
4865 d
4866 \end_layout
4867
4868 \end_inset
4869
4870  declar
4871 \family roman
4872 ation and
4873 \family default
4874  
4875 \family roman
4876 \emph on
4877 char
4878 \family default
4879 \emph default
4880  
4881 \family roman
4882 must not belong in the
4883 \family default
4884  
4885 \family roman
4886 \emph on
4887 allowed
4888 \family default
4889 \emph default
4890  
4891 \family roman
4892 set of
4893 \family default
4894  
4895 \family roman
4896 \emph on
4897 accent
4898 \emph default
4899 .
4900  When
4901 \family default
4902  
4903 \family roman
4904 \shape up
4905 you enter the
4906 \family default
4907 \shape default
4908  
4909 \family roman
4910 \shape up
4911 \emph on
4912 accent char
4913 \family default
4914 \shape default
4915 \emph default
4916  
4917 \family roman
4918 \shape up
4919 sequence,
4920 \family default
4921 \shape default
4922  
4923 \family roman
4924 \shape up
4925 \emph on
4926 result
4927 \emph default
4928  is produced.
4929  If such a declaration does not exist in
4930 \family default
4931 \shape default
4932  
4933 \shape up
4934 the
4935 \shape default
4936  
4937 \begin_inset Flex Code
4938 status collapsed
4939
4940 \begin_layout Plain Layout
4941
4942 \shape up
4943 .kmap
4944 \end_layout
4945
4946 \end_inset
4947
4948  file and yo
4949 \family roman
4950 u enter
4951 \family default
4952  
4953 \family roman
4954 \emph on
4955 accent char
4956 \emph default
4957 , you get
4958 \family default
4959  
4960 \family roman
4961 \emph on
4962 accent_key char
4963 \emph default
4964  where
4965 \family default
4966  
4967 \family roman
4968 \emph on
4969 accent_key
4970 \emph default
4971  is the first arg
4972 \family default
4973 ument of the 
4974 \begin_inset Flex Code
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978
4979 \shape up
4980
4981 \backslash
4982 kmod
4983 \end_layout
4984
4985 \end_inset
4986
4987  declaration.
4988  
4989 \end_layout
4990
4991 \begin_layout Standard
4992 The following command produces causes äi to be produced when you enter acute-i
4993  ('i):
4994 \end_layout
4995
4996 \begin_layout LyX-Code
4997
4998 \backslash
4999 kxmod acute i "
5000 \backslash
5001
5002 \backslash
5003 '{
5004 \backslash
5005
5006 \backslash
5007 i}"
5008 \end_layout
5009
5010 \begin_layout Labeling
5011 \labelwidthstring 00.00.0000
5012 \begin_inset Flex Code
5013 status collapsed
5014
5015 \begin_layout Plain Layout
5016 kcomb
5017 \end_layout
5018
5019 \end_inset
5020
5021  Combine two accent characters
5022 \end_layout
5023
5024 \begin_layout LyX-Code
5025
5026 \backslash
5027 kcomb 
5028 \family roman
5029 \emph on
5030 accent1 accent2 allowed
5031 \end_layout
5032
5033 \begin_layout Standard
5034 This one is getting pretty esoteric.
5035  It allows you to combine the effect 
5036 \family roman
5037 of
5038 \family default
5039  
5040 \family roman
5041 \emph on
5042 accent1
5043 \family default
5044 \emph default
5045  
5046 \family roman
5047 and
5048 \family default
5049  
5050 \family roman
5051 \emph on
5052 accent2
5053 \family default
5054 \emph default
5055  
5056 \family roman
5057 (in that order!) on
5058 \family default
5059  
5060 \family roman
5061 \emph on
5062 allowed
5063 \family default
5064 \emph default
5065  
5066 \family roman
5067 chars.
5068  The keystrokes for
5069 \family default
5070  
5071 \family roman
5072 \emph on
5073 accent1
5074 \family default
5075 \emph default
5076  
5077 \family roman
5078 and
5079 \family default
5080  
5081 \family roman
5082 \emph on
5083 accent2
5084 \family default
5085 \emph default
5086  
5087 \family roman
5088 must have be
5089 \family default
5090 en set with a 
5091 \begin_inset Flex Code
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095
5096 \shape up
5097
5098 \backslash
5099 kmod
5100 \end_layout
5101
5102 \end_inset
5103
5104  command at 
5105 \family roman
5106 a
5107 \family default
5108  
5109 \family roman
5110 \emph on
5111 previous
5112 \family default
5113 \emph default
5114  
5115 \family roman
5116 point in the
5117 \family default
5118  file.
5119  
5120 \end_layout
5121
5122 \begin_layout Standard
5123 Consider this example from the 
5124 \begin_inset Flex Code
5125 status collapsed
5126
5127 \begin_layout Plain Layout
5128
5129 \shape up
5130 greek.kmap
5131 \end_layout
5132
5133 \end_inset
5134
5135  file:
5136 \end_layout
5137
5138 \begin_layout LyX-Code
5139
5140 \backslash
5141 kmod ; acute aeioyvhAEIOYVH 
5142 \backslash
5143 kmod : umlaut iyIY 
5144 \backslash
5145 kcomb acute umlaut iyIY
5146 \end_layout
5147
5148 \begin_layout Standard
5149 This allows you to press 
5150 \begin_inset Flex Noun
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154
5155 \shape up
5156 ;:i
5157 \end_layout
5158
5159 \end_inset
5160
5161  and get the effect of 
5162 \begin_inset Flex Code
5163 status collapsed
5164
5165 \begin_layout Plain Layout
5166
5167 \shape up
5168
5169 \backslash
5170 '{
5171 \backslash
5172 "{i}}
5173 \end_layout
5174
5175 \end_inset
5176
5177 .
5178  
5179 \family roman
5180 \shape up
5181 A backspace
5182 \family default
5183 \shape default
5184  in this case cancels the last dead key, so if you press 
5185 \begin_inset Flex Noun
5186 status collapsed
5187
5188 \begin_layout Plain Layout
5189
5190 \shape up
5191 ;: Backspace i
5192 \end_layout
5193
5194 \end_inset
5195
5196  you get 
5197 \begin_inset Flex Code
5198 status collapsed
5199
5200 \begin_layout Plain Layout
5201
5202 \shape up
5203
5204 \backslash
5205 '{i}
5206 \end_layout
5207
5208 \end_inset
5209
5210 .
5211 \end_layout
5212
5213 \begin_layout Subsection
5214 The .cdef File
5215 \end_layout
5216
5217 \begin_layout Standard
5218 After the 
5219 \begin_inset Flex Code
5220 status collapsed
5221
5222 \begin_layout Plain Layout
5223
5224 \shape up
5225 .kmap
5226 \end_layout
5227
5228 \end_inset
5229
5230  mapping is performed, a 
5231 \begin_inset Flex Code
5232 status collapsed
5233
5234 \begin_layout Plain Layout
5235
5236 \shape up
5237 .cde
5238 \shape default
5239 f
5240 \end_layout
5241
5242 \end_inset
5243
5244  file maps the strings that the symbols generate to characters in the current
5245  font.
5246  The \SpecialChar LyX
5247  distribution currently includes at least the 
5248 \begin_inset Flex Code
5249 status collapsed
5250
5251 \begin_layout Plain Layout
5252
5253 \shape up
5254 iso8859-1.cdef
5255 \end_layout
5256
5257 \end_inset
5258
5259  and 
5260 \begin_inset Flex Code
5261 status collapsed
5262
5263 \begin_layout Plain Layout
5264
5265 \shape up
5266 iso8859-2.cdef
5267 \end_layout
5268
5269 \end_inset
5270
5271  files.
5272 \end_layout
5273
5274 \begin_layout Standard
5275 In general the 
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280
5281 \shape up
5282 .cdef
5283 \end_layout
5284
5285 \end_inset
5286
5287  file is a sequence of declarations of the form
5288 \end_layout
5289
5290 \begin_layout LyX-Code
5291
5292 \family roman
5293 \emph on
5294 char_index_in_set
5295 \family default
5296 \emph default
5297  
5298 \family roman
5299 \emph on
5300  string
5301 \end_layout
5302
5303 \begin_layout Standard
5304 For example, in order to map 
5305 \begin_inset Flex Noun
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309
5310 \shape up
5311
5312 \backslash
5313 '{e}
5314 \end_layout
5315
5316 \end_inset
5317
5318  to the corresponding character in the iso-8859-1 set (233), the following
5319  declaration is used
5320 \end_layout
5321
5322 \begin_layout LyX-Code
5323 233 "
5324 \backslash
5325
5326 \backslash
5327 '{e}"
5328 \end_layout
5329
5330 \begin_layout Standard
5331 with 
5332 \begin_inset Flex Code
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336
5337 \backslash
5338
5339 \end_layout
5340
5341 \end_inset
5342
5343  and 
5344 \begin_inset Flex Code
5345 status collapsed
5346
5347 \begin_layout Plain Layout
5348 "
5349 \end_layout
5350
5351 \end_inset
5352
5353  being escap
5354 \family roman
5355 ed in
5356 \family default
5357  
5358 \family roman
5359 \emph on
5360 string
5361 \emph default
5362 .
5363  Note that
5364 \family default
5365  the same character can apply to more than one string.
5366  In the 
5367 \begin_inset Flex Code
5368 status collapsed
5369
5370 \begin_layout Plain Layout
5371 i
5372 \shape up
5373 so-8859-7.cdef
5374 \end_layout
5375
5376 \end_inset
5377
5378  file you have
5379 \end_layout
5380
5381 \begin_layout LyX-Code
5382 192 "
5383 \backslash
5384
5385 \backslash
5386 '{
5387 \backslash
5388
5389 \backslash
5390
5391 \backslash
5392 "{i}}"
5393 \begin_inset Newline newline
5394 \end_inset
5395
5396 192 "
5397 \backslash
5398
5399 \backslash
5400
5401 \backslash
5402 "{
5403 \backslash
5404
5405 \backslash
5406 '{i}}"
5407 \end_layout
5408
5409 \begin_layout Standard
5410 If \SpecialChar LyX
5411  cannot find a mapping for the string produced by the keystroke or a
5412  deadkey sequence, it will check if it looks like an accented char and try
5413  to draw an accent over the character on screen.
5414 \end_layout
5415
5416 \begin_layout Subsection
5417 Dead Keys
5418 \end_layout
5419
5420 \begin_layout Standard
5421 There is a second way to add support for international characters through
5422  so-called dead-keys.
5423  A dead-key works in combination with a letter to produce an accented character.
5424  Here, we'll explain how to create a really simple dead-key to illustrate
5425  how they work.
5426 \end_layout
5427
5428 \begin_layout Standard
5429 Suppose you happen to need the circumflex character, 
5430 \begin_inset Quotes eld
5431 \end_inset
5432
5433  ̂
5434 \begin_inset Quotes erd
5435 \end_inset
5436
5437 .
5438  You could bind the 
5439 \begin_inset Flex Noun
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443 ^
5444 \end_layout
5445
5446 \end_inset
5447
5448 -key [a.k.a.
5449 \begin_inset space ~
5450 \end_inset
5451
5452
5453 \begin_inset Flex Noun
5454 status collapsed
5455
5456 \begin_layout Plain Layout
5457 Shift-6
5458 \end_layout
5459
5460 \end_inset
5461
5462 ] to the \SpecialChar LyX
5463  command 
5464 \begin_inset Flex Code
5465 status collapsed
5466
5467 \begin_layout Plain Layout
5468 accent-circumflex
5469 \end_layout
5470
5471 \end_inset
5472
5473  in your 
5474 \begin_inset Flex Code
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 lyxrc
5479 \end_layout
5480
5481 \end_inset
5482
5483  file.
5484  Now, whenever you type the 
5485 \begin_inset Flex Noun
5486 status collapsed
5487
5488 \begin_layout Plain Layout
5489 ^
5490 \end_layout
5491
5492 \end_inset
5493
5494 -key followed by a letter, that letter will have a circumflex accent on
5495  it.
5496  For example, the sequence 
5497 \begin_inset Quotes eld
5498 \end_inset
5499
5500
5501 \begin_inset Flex Noun
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 ^e
5506 \end_layout
5507
5508 \end_inset
5509
5510
5511 \begin_inset Quotes erd
5512 \end_inset
5513
5514  produces the letter: 
5515 \begin_inset Quotes eld
5516 \end_inset
5517
5518 ê
5519 \begin_inset Quotes erd
5520 \end_inset
5521
5522 .
5523  If you tried to type 
5524 \begin_inset Quotes eld
5525 \end_inset
5526
5527
5528 \begin_inset Flex Noun
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532 ^t
5533 \end_layout
5534
5535 \end_inset
5536
5537
5538 \begin_inset Quotes erd
5539 \end_inset
5540
5541 , however, \SpecialChar LyX
5542  will complain with a beep, since a 
5543 \begin_inset Quotes eld
5544 \end_inset
5545
5546
5547 \begin_inset Flex Noun
5548 status collapsed
5549
5550 \begin_layout Plain Layout
5551 t
5552 \end_layout
5553
5554 \end_inset
5555
5556
5557 \begin_inset Quotes erd
5558 \end_inset
5559
5560  never takes a circumflex accent.
5561  Hitting 
5562 \begin_inset Flex Noun
5563 status collapsed
5564
5565 \begin_layout Plain Layout
5566 Space
5567 \end_layout
5568
5569 \end_inset
5570
5571  after a dead-key produces the bare-accent.
5572  Please note this last point! If you bind a key to a dead-key, you'll need
5573  to rebind the character on that key to yet another key.
5574  Binding the 
5575 \begin_inset Flex Noun
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579 ,-key
5580 \end_layout
5581
5582 \end_inset
5583
5584  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5585 \end_layout
5586
5587 \begin_layout Standard
5588 One common way to bind dead-keys is to use 
5589 \begin_inset Flex Noun
5590 status collapsed
5591
5592 \begin_layout Plain Layout
5593 Meta-
5594 \end_layout
5595
5596 \end_inset
5597
5598
5599 \begin_inset Flex Noun
5600 status collapsed
5601
5602 \begin_layout Plain Layout
5603 Ctrl-
5604 \end_layout
5605
5606 \end_inset
5607
5608 , and 
5609 \begin_inset Flex Noun
5610 status collapsed
5611
5612 \begin_layout Plain Layout
5613 Shift-
5614 \end_layout
5615
5616 \end_inset
5617
5618  in combination with an accent, like 
5619 \begin_inset Quotes eld
5620 \end_inset
5621
5622
5623 \begin_inset Flex Noun
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 ~
5628 \end_layout
5629
5630 \end_inset
5631
5632
5633 \begin_inset Quotes erd
5634 \end_inset
5635
5636  or 
5637 \begin_inset Quotes eld
5638 \end_inset
5639
5640
5641 \begin_inset Flex Noun
5642 status collapsed
5643
5644 \begin_layout Plain Layout
5645 ,
5646 \end_layout
5647
5648 \end_inset
5649
5650
5651 \begin_inset Quotes erd
5652 \end_inset
5653
5654  or 
5655 \begin_inset Quotes eld
5656 \end_inset
5657
5658
5659 \begin_inset Flex Noun
5660 status collapsed
5661
5662 \begin_layout Plain Layout
5663 ^
5664 \end_layout
5665
5666 \end_inset
5667
5668
5669 \begin_inset Quotes erd
5670 \end_inset
5671
5672 .
5673  Another way involves using 
5674 \begin_inset Flex Code
5675 status collapsed
5676
5677 \begin_layout Plain Layout
5678 xmodmap
5679 \end_layout
5680
5681 \end_inset
5682
5683  and 
5684 \begin_inset Flex Code
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688 xkeycaps
5689 \end_layout
5690
5691 \end_inset
5692
5693  to set up the special 
5694 \begin_inset Flex Code
5695 status collapsed
5696
5697 \begin_layout Plain Layout
5698 Mode_Switch
5699 \end_layout
5700
5701 \end_inset
5702
5703  key.
5704  The 
5705 \begin_inset Flex Code
5706 status collapsed
5707
5708 \begin_layout Plain Layout
5709 Mode_Switch
5710 \end_layout
5711
5712 \end_inset
5713
5714  acts in some ways just like 
5715 \begin_inset Flex Noun
5716 status collapsed
5717
5718 \begin_layout Plain Layout
5719 Shift
5720 \end_layout
5721
5722 \end_inset
5723
5724  and permits you to bind keys to accented characters.
5725  You can also turn keys into dead-keys by binding them to something like
5726  
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 usldead_cedilla
5732 \end_layout
5733
5734 \end_inset
5735
5736  and then binding this symbolic key to the corresponding \SpecialChar LyX
5737  command.
5738 \begin_inset Foot
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 Note from 
5743 \noun on
5744 John Weiss
5745 \noun default
5746 : This is exactly what I do in my 
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751 ~/.lyx/lyxrc
5752 \end_layout
5753
5754 \end_inset
5755
5756  and my 
5757 \begin_inset Flex Code
5758 status collapsed
5759
5760 \begin_layout Plain Layout
5761 ~/.xmodmap
5762 \end_layout
5763
5764 \end_inset
5765
5766  files.
5767  I have my 
5768 \begin_inset Flex Noun
5769 status collapsed
5770
5771 \begin_layout Plain Layout
5772 Scroll
5773 \begin_inset space ~
5774 \end_inset
5775
5776 Lock
5777 \end_layout
5778
5779 \end_inset
5780
5781  key set up as 
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 Mode_Shift
5787 \end_layout
5788
5789 \end_inset
5790
5791  and a bunch of these 
5792 \begin_inset Quotes eld
5793 \end_inset
5794
5795
5796 \begin_inset Flex Code
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 usldead_*
5801 \end_layout
5802
5803 \end_inset
5804
5805
5806 \begin_inset Quotes erd
5807 \end_inset
5808
5809  symbolic keys bound such things as 
5810 \begin_inset Flex Noun
5811 status collapsed
5812
5813 \begin_layout Plain Layout
5814 Scroll
5815 \begin_inset space ~
5816 \end_inset
5817
5818 Lock-^
5819 \end_layout
5820
5821 \end_inset
5822
5823  and 
5824 \begin_inset Flex Noun
5825 status collapsed
5826
5827 \begin_layout Plain Layout
5828 Scroll
5829 \begin_inset space ~
5830 \end_inset
5831
5832 Lock-~
5833 \end_layout
5834
5835 \end_inset
5836
5837 .
5838  This is how I produce my accented characters.
5839 \end_layout
5840
5841 \end_inset
5842
5843  You can make just about anything into the 
5844 \begin_inset Flex Code
5845 status collapsed
5846
5847 \begin_layout Plain Layout
5848 Mode_Switch
5849 \end_layout
5850
5851 \end_inset
5852
5853  key: One of the 
5854 \begin_inset Flex Noun
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858 Ctrl-
5859 \end_layout
5860
5861 \end_inset
5862
5863  keys, a spare function key, etc.
5864  As for the \SpecialChar LyX
5865  commands that produce accents, check the entry for 
5866 \begin_inset Flex Code
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870 accent-acute
5871 \end_layout
5872
5873 \end_inset
5874
5875  in the 
5876 \emph on
5877 Reference Manual
5878 \emph default
5879 .
5880  You'll find the complete list there.
5881 \end_layout
5882
5883 \begin_layout Subsection
5884 Saving your Language Configuration
5885 \end_layout
5886
5887 \begin_layout Standard
5888 You can edit your preferences so that your desired language environment
5889  is automatically configured when \SpecialChar LyX
5890  starts up, via the 
5891 \begin_inset Flex Noun
5892 status collapsed
5893
5894 \begin_layout Plain Layout
5895 Edit\SpecialChar menuseparator
5896 Preferences
5897 \end_layout
5898
5899 \end_inset
5900
5901  dialog.
5902 \end_layout
5903
5904 \begin_layout Chapter
5905 Installing New Document Classes, Layouts, and Templates
5906 \begin_inset CommandInset label
5907 LatexCommand label
5908 name "cha:Installing-New-Document"
5909
5910 \end_inset
5911
5912
5913 \begin_inset Argument 1
5914 status collapsed
5915
5916 \begin_layout Plain Layout
5917 Installing New Document Classes
5918 \end_layout
5919
5920 \end_inset
5921
5922
5923 \end_layout
5924
5925 \begin_layout Standard
5926 In this chapter, we describe the procedures for creating and installing
5927  new \SpecialChar LyX
5928  layout and template files, as well as offer a refresher on correctly
5929  installing new \SpecialChar LaTeX
5930  document classes.
5931  
5932 \end_layout
5933
5934 \begin_layout Standard
5935 First, let us a say a few words about how one ought to think about the relation
5936  between \SpecialChar LyX
5937  and \SpecialChar LaTeX
5938 .
5939  The thing to understand is that, in a certain sense, \SpecialChar LyX
5940  doesn't know anything
5941  about \SpecialChar LaTeX
5942 .
5943  Indeed, from \SpecialChar LyX
5944 's point of view, \SpecialChar LaTeX
5945  is just one of several 
5946 \begin_inset Quotes eld
5947 \end_inset
5948
5949 backend formats
5950 \begin_inset Quotes erd
5951 \end_inset
5952
5953  in which it is capable of producing output.
5954  Other such formats are DocBook, plaintext, and XHTML.
5955  \SpecialChar LaTeX
5956  is, of course, a particularly important format, but very little of the
5957  information \SpecialChar LyX
5958  has about \SpecialChar LaTeX
5959  is actually contained in the program itself.
5960 \begin_inset Foot
5961 status collapsed
5962
5963 \begin_layout Plain Layout
5964 Some commands are sufficiently complex that they are 
5965 \begin_inset Quotes eld
5966 \end_inset
5967
5968 hardcoded
5969 \begin_inset Quotes erd
5970 \end_inset
5971
5972  into \SpecialChar LyX
5973 .
5974  But the developers generally regard this as a Bad Thing.
5975 \end_layout
5976
5977 \end_inset
5978
5979  Rather, that information, even for the standard classes like 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 article.cls
5985 \end_layout
5986
5987 \end_inset
5988
5989 , is contained in `layout files'.
5990  Similarly, \SpecialChar LyX
5991  itself does not know much about DocBook or XHTML.
5992  What it knows is contained in layout files.
5993 \end_layout
5994
5995 \begin_layout Standard
5996 You can think of the layout file for a given document class as a translation
5997  manual between \SpecialChar LyX
5998  constructs—paragraphs with their corresponding styles,
5999  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6000 , DocBook, or XHTML
6001  constructs.
6002  Almost everything \SpecialChar LyX
6003  knows about 
6004 \begin_inset Flex Code
6005 status collapsed
6006
6007 \begin_layout Plain Layout
6008 article.cls
6009 \end_layout
6010
6011 \end_inset
6012
6013 , for example, is contained in the file 
6014 \begin_inset Flex Code
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 article.layout
6019 \end_layout
6020
6021 \end_inset
6022
6023  and in various other files it includes.
6024  For this reason, anyone intending to write layout files should plan to
6025  study the existing files.
6026  A good place to start is with 
6027 \begin_inset Flex Code
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031 stdsections.inc
6032 \end_layout
6033
6034 \end_inset
6035
6036 , which is included in 
6037 \begin_inset Flex Code
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 article.layout
6042 \end_layout
6043
6044 \end_inset
6045
6046
6047 \begin_inset Flex Code
6048 status collapsed
6049
6050 \begin_layout Plain Layout
6051 book.layout
6052 \end_layout
6053
6054 \end_inset
6055
6056 , and many of the other layout files for document classes.
6057  This file is where sections and the like are defined: 
6058 \begin_inset Flex Code
6059 status collapsed
6060
6061 \begin_layout Plain Layout
6062 stdsections.inc
6063 \end_layout
6064
6065 \end_inset
6066
6067  tells \SpecialChar LyX
6068  how paragraphs that are marked with the Section, Subsection, etc,
6069  styles can be translated into corresponding \SpecialChar LaTeX
6070 , DocBook, and XHTML commands
6071  and tags.
6072  The 
6073 \begin_inset Flex Code
6074 status collapsed
6075
6076 \begin_layout Plain Layout
6077 article.layout
6078 \end_layout
6079
6080 \end_inset
6081
6082  file basically just includes several of these 
6083 \begin_inset Flex Code
6084 status collapsed
6085
6086 \begin_layout Plain Layout
6087 std*.inc
6088 \end_layout
6089
6090 \end_inset
6091
6092  files.
6093 \end_layout
6094
6095 \begin_layout Standard
6096 Defining the \SpecialChar LyX
6097 –\SpecialChar LaTeX
6098  correspondence is not the only thing layout files do, though.
6099  Their other job is to define how the \SpecialChar LyX
6100  constructs themselves will appear
6101  on-screen.
6102  The fact that layout files have these two jobs is often a source of confusion,
6103  because they are completely separate.
6104  Telling \SpecialChar LyX
6105  how to translate a certain paragraph style into \SpecialChar LaTeX
6106  does not tell
6107  \SpecialChar LyX
6108  how to display it; conversely, telling \SpecialChar LyX
6109  how to display a certain paragraph
6110  style does not tell \SpecialChar LyX
6111  how to translate it into \SpecialChar LaTeX
6112  (let alone tell \SpecialChar LaTeX
6113  how to
6114  display it).
6115  So, in general, when you define a new \SpecialChar LyX
6116  construct, you must always do two
6117  quite separate things: (i)
6118 \begin_inset space ~
6119 \end_inset
6120
6121 tell \SpecialChar LyX
6122  how to translate it into \SpecialChar LaTeX
6123  and (ii)
6124 \begin_inset space ~
6125 \end_inset
6126
6127 tell \SpecialChar LyX
6128  how to display it.
6129 \end_layout
6130
6131 \begin_layout Standard
6132 Much the same is true, of course, as regards \SpecialChar LyX
6133 's other backend formats, though
6134  XHTML is in some ways different, because in that case \SpecialChar LyX
6135  
6136 \emph on
6137 is
6138 \emph default
6139  able, to some extent, to use information about how it should display a
6140  paragraph on the screen to output information (in the form of CSS) about
6141  how the paragraph should be displayed in a browser.
6142  Even in this case, however, the distinction between what \SpecialChar LyX
6143  does internally
6144  and how things are rendered externally remains in force, and the two can
6145  be controlled separately.
6146  See 
6147 \begin_inset CommandInset ref
6148 LatexCommand ref
6149 reference "sec:Tags-for-XHTML"
6150
6151 \end_inset
6152
6153  for the details.
6154 \end_layout
6155
6156 \begin_layout Section
6157 Installing new \SpecialChar LaTeX
6158  files
6159 \end_layout
6160
6161 \begin_layout Standard
6162 Some installations may not include a \SpecialChar LaTeX
6163  package or class file that you would
6164  like to use within \SpecialChar LyX
6165 .
6166  For example, you might need Foil\SpecialChar TeX
6167 , a package for preparing slides for overhead
6168  projectors.
6169  Modern \SpecialChar LaTeX
6170  distributions like \SpecialChar TeX
6171 Live (2008 or newer) or MiK\SpecialChar TeX
6172  provide a user interface
6173  for installing such packages.
6174  For example, with MiK\SpecialChar TeX
6175 , you start the program 
6176 \begin_inset Quotes eld
6177 \end_inset
6178
6179 Package
6180 \begin_inset space ~
6181 \end_inset
6182
6183 Manager
6184 \begin_inset Quotes erd
6185 \end_inset
6186
6187  to get a list of available packages.
6188  To install one of them, right click on it or use the corresponding toolbar
6189  button.
6190 \end_layout
6191
6192 \begin_layout Standard
6193 If your \SpecialChar LaTeX
6194  distribution does not provide such a `package manager', or if the
6195  package is not available from your distribution, then follow these steps
6196  to install it manually:
6197 \end_layout
6198
6199 \begin_layout Enumerate
6200 Get the package from 
6201 \begin_inset CommandInset href
6202 LatexCommand href
6203 name "CTAN"
6204 target "http://www.ctan.org/"
6205 literal "false"
6206
6207 \end_inset
6208
6209  or wherever.
6210 \end_layout
6211
6212 \begin_layout Enumerate
6213 If the package contains a file with the ending 
6214 \begin_inset Quotes eld
6215 \end_inset
6216
6217
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 .ins
6223 \end_layout
6224
6225 \end_inset
6226
6227
6228 \begin_inset Quotes erd
6229 \end_inset
6230
6231  (is the case for Foil\SpecialChar TeX
6232 ) then open a console, change to the folder of this
6233  file and execute the command 
6234 \begin_inset Flex Code
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 latex foiltex.ins
6239 \end_layout
6240
6241 \end_inset
6242
6243 .
6244  You have now unpacked the package and have all files to install it.
6245  Most \SpecialChar LaTeX
6246 -packages are not packed and you can skip this step.
6247 \end_layout
6248
6249 \begin_layout Enumerate
6250 Now you need to decide if the package should be available for all users
6251  or only for you.
6252 \end_layout
6253
6254 \begin_deeper
6255 \begin_layout Enumerate
6256 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6257  for all users on your system, then install it in your `local' \SpecialChar TeX
6258  tree, otherwise
6259  install it in your own `user' \SpecialChar TeX
6260  tree.
6261  Where these trees should be created, if they do not already exist, depends
6262  on your system.
6263  To find this out, look in the file 
6264 \begin_inset Flex Code
6265 status collapsed
6266
6267 \begin_layout Plain Layout
6268 texmf.cnf
6269 \end_layout
6270
6271 \end_inset
6272
6273 .
6274 \begin_inset Foot
6275 status collapsed
6276
6277 \begin_layout Plain Layout
6278 This is usually in the directory 
6279 \begin_inset Flex Code
6280 status collapsed
6281
6282 \begin_layout Plain Layout
6283 $TEXMF/web2c
6284 \end_layout
6285
6286 \end_inset
6287
6288 , though you can execute the command 
6289 \begin_inset Flex Code
6290 status collapsed
6291
6292 \begin_layout Plain Layout
6293 kpsewhich texmf.cnf
6294 \end_layout
6295
6296 \end_inset
6297
6298  to locate it.
6299 \end_layout
6300
6301 \end_inset
6302
6303  The location of the `local' \SpecialChar TeX
6304  tree is defined by the 
6305 \begin_inset Flex Code
6306 status collapsed
6307
6308 \begin_layout Plain Layout
6309 TEXMFLOCAL
6310 \end_layout
6311
6312 \end_inset
6313
6314  variable; this is usually somewhere like 
6315 \begin_inset Flex Code
6316 status collapsed
6317
6318 \begin_layout Plain Layout
6319 /usr/local/share/texmf
6320 \end_layout
6321
6322 \end_inset
6323
6324  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6325 Live
6326  distribution.
6327  The location of the `user' \SpecialChar TeX
6328  tree is defined by 
6329 \begin_inset Flex Code
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 TEXMFHOME
6334 \end_layout
6335
6336 \end_inset
6337
6338  and is commonly 
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 $HOME/texmf
6344 \end_layout
6345
6346 \end_inset
6347
6348  or 
6349 \begin_inset Flex Code
6350 status collapsed
6351
6352 \begin_layout Plain Layout
6353
6354 \family sans
6355 $HOME/.texliveXXXX
6356 \end_layout
6357
6358 \end_inset
6359
6360 .
6361  (If these variables are not predefined, you have to define them.) You'll
6362  probably need root permissions to create or modify the `local' tree, but
6363  not for your `user' tree.
6364 \begin_inset Newline newline
6365 \end_inset
6366
6367 In general, it is recommended to install in the user tree because your user
6368  will not be modified or even overwritten when you upgrade your system.
6369  It will typically also be backed up together with everything else when
6370  you backup your home directory (which, of course, you do on a regular basis).
6371 \end_layout
6372
6373 \begin_layout Enumerate
6374 On Windows, if you want the new package to be available for all users on
6375  your system, change to the folder where \SpecialChar LaTeX
6376  is installed and then change to
6377  the subfolder 
6378 \begin_inset Flex Code
6379 status collapsed
6380
6381 \begin_layout Plain Layout
6382 ~
6383 \backslash
6384 tex
6385 \backslash
6386 latex
6387 \end_layout
6388
6389 \end_inset
6390
6391 .
6392  (For MiK\SpecialChar TeX
6393 , this would be by default the folder 
6394 \begin_inset Flex Code
6395 status collapsed
6396
6397 \begin_layout Plain Layout
6398 ~:
6399 \backslash
6400 Programs
6401 \backslash
6402 MiKTeX
6403 \backslash
6404 tex
6405 \backslash
6406 latex
6407 \end_layout
6408
6409 \end_inset
6410
6411 .)
6412 \begin_inset Foot
6413 status collapsed
6414
6415 \begin_layout Plain Layout
6416 Note that this will be the correct path only on English installations.
6417  On a German one, it would be 
6418 \begin_inset Flex Code
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 ~:
6423 \backslash
6424 Programme
6425 \backslash
6426 MiKTeX
6427 \backslash
6428 tex
6429 \backslash
6430 latex
6431 \end_layout
6432
6433 \end_inset
6434
6435 , and similarly for other languages.
6436 \end_layout
6437
6438 \end_inset
6439
6440  Create there a new folder 
6441 \begin_inset Flex Code
6442 status collapsed
6443
6444 \begin_layout Plain Layout
6445 foiltex
6446 \end_layout
6447
6448 \end_inset
6449
6450  and copy all files of the package into it.
6451  
6452 \begin_inset Newline newline
6453 \end_inset
6454
6455 If the package should only available for you or you don't have admin permissions
6456 , do the same, but in the local \SpecialChar LaTeX
6457  folder.
6458  E.
6459 \begin_inset space \thinspace{}
6460 \end_inset
6461
6462 g., for MiK\SpecialChar TeX
6463
6464 \begin_inset space ~
6465 \end_inset
6466
6467 2.8 under Windows XP, this would be the folder:
6468 \begin_inset Newline newline
6469 \end_inset
6470
6471
6472 \family sans
6473
6474 \begin_inset Flex Code
6475 status collapsed
6476
6477 \begin_layout Plain Layout
6478 ~:
6479 \backslash
6480 Documents and Settings
6481 \backslash
6482 <username>
6483 \backslash
6484 Application Data
6485 \backslash
6486
6487 \end_layout
6488
6489 \end_inset
6490
6491
6492 \begin_inset Newline newline
6493 \end_inset
6494
6495
6496 \family default
6497
6498 \begin_inset Phantom HPhantom
6499 status open
6500
6501 \begin_layout Plain Layout
6502
6503 \family sans
6504 ~:
6505 \backslash
6506
6507 \end_layout
6508
6509 \end_inset
6510
6511
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 MiKTeX
6517 \backslash
6518 2.8
6519 \backslash
6520 tex
6521 \backslash
6522 latex
6523 \end_layout
6524
6525 \end_inset
6526
6527
6528 \begin_inset Newline newline
6529 \end_inset
6530
6531 On Vista, it would be:
6532 \begin_inset Newline newline
6533 \end_inset
6534
6535
6536 \begin_inset Flex Code
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 ~:
6541 \backslash
6542 Users
6543 \backslash
6544 <username>
6545 \backslash
6546 AppData
6547 \backslash
6548 Roaming
6549 \backslash
6550 2.8
6551 \backslash
6552 MiKTeX
6553 \backslash
6554 tex
6555 \backslash
6556 latex
6557 \end_layout
6558
6559 \end_inset
6560
6561
6562 \end_layout
6563
6564 \end_deeper
6565 \begin_layout Enumerate
6566 Now one only need to tell \SpecialChar LaTeX
6567  that there are new files.
6568  This depends on the used \SpecialChar LaTeX
6569 -Distribution:
6570 \end_layout
6571
6572 \begin_deeper
6573 \begin_layout Enumerate
6574 For \SpecialChar TeX
6575 Live execute the command 
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 texhash
6581 \end_layout
6582
6583 \end_inset
6584
6585  from a console.
6586  If you installed the package for all users, then you will probably need
6587  to have root permissions for that.
6588 \end_layout
6589
6590 \begin_layout Enumerate
6591 For MiK\SpecialChar TeX
6592 , if you have installed the package for all users, start the program
6593  
6594 \begin_inset Quotes eld
6595 \end_inset
6596
6597 Settings
6598 \begin_inset space ~
6599 \end_inset
6600
6601 (Admin)
6602 \begin_inset Quotes erd
6603 \end_inset
6604
6605  and press the button marked 
6606 \begin_inset Quotes eld
6607 \end_inset
6608
6609 Refresh FNDB
6610 \begin_inset Quotes erd
6611 \end_inset
6612
6613 .
6614  Otherwise start the program 
6615 \begin_inset Quotes eld
6616 \end_inset
6617
6618 Settings
6619 \begin_inset Quotes erd
6620 \end_inset
6621
6622  and do the same.
6623 \end_layout
6624
6625 \end_deeper
6626 \begin_layout Enumerate
6627 Finally, you need to tell \SpecialChar LyX
6628  that there are new packages available.
6629  So, in \SpecialChar LyX
6630 , use the menu 
6631 \begin_inset Flex Noun
6632 status collapsed
6633
6634 \begin_layout Plain Layout
6635 Tools
6636 \family sans
6637 \SpecialChar menuseparator
6638 Reconfigure
6639 \end_layout
6640
6641 \end_inset
6642
6643  and then restart \SpecialChar LyX
6644 .
6645 \end_layout
6646
6647 \begin_layout Standard
6648 Now the package is installed.
6649  In our example, the document class 
6650 \begin_inset Flex Code
6651 status collapsed
6652
6653 \begin_layout Plain Layout
6654 FoilTex
6655 \end_layout
6656
6657 \end_inset
6658
6659  will now be available under 
6660 \begin_inset Flex Noun
6661 status collapsed
6662
6663 \begin_layout Plain Layout
6664 Document\SpecialChar menuseparator
6665 Settings\SpecialChar menuseparator
6666 Document Class
6667 \end_layout
6668
6669 \end_inset
6670
6671  (in the 
6672 \begin_inset Quotes eld
6673 \end_inset
6674
6675 Presentations
6676 \begin_inset Quotes erd
6677 \end_inset
6678
6679  category).
6680  
6681 \end_layout
6682
6683 \begin_layout Standard
6684 If you would like to use a \SpecialChar LaTeX
6685  document class that is not even listed in the
6686  menu 
6687 \begin_inset Flex Noun
6688 status collapsed
6689
6690 \begin_layout Plain Layout
6691 Document\SpecialChar menuseparator
6692 Settings\SpecialChar menuseparator
6693 Document Class
6694 \end_layout
6695
6696 \end_inset
6697
6698 , then you need to create a `layout' file for it.
6699  That is the topic of the next section.
6700 \end_layout
6701
6702 \begin_layout Section
6703 Types of layout files
6704 \end_layout
6705
6706 \begin_layout Standard
6707 This section describes the various sorts of \SpecialChar LyX
6708  files that contain layout informati
6709 on.
6710  These files describe various paragraph and character styles, determining
6711  how \SpecialChar LyX
6712  should display them and how they should be translated into \SpecialChar LaTeX
6713 , DocBook,
6714  XHTML, or whatever output format is being used.
6715  
6716 \end_layout
6717
6718 \begin_layout Standard
6719 We shall try to provide a thorough description of the process of writing
6720  layout files here.
6721  However, there are so many different types of documents supported even
6722  by just \SpecialChar LaTeX
6723  that we can't hope to cover every different possibility or problem
6724  you might encounter.
6725  The \SpecialChar LyX
6726  users' list is frequented by people with lots of experience with layout
6727  design who are willing to share what they've learned, so please feel free
6728  to ask questions there.
6729 \end_layout
6730
6731 \begin_layout Standard
6732 As you prepare to write a new layout, it is extremely helpful to look at
6733  the layouts distributed with \SpecialChar LyX
6734 .
6735  If you write a \SpecialChar LyX
6736  layout for a \SpecialChar LaTeX
6737  document class that might also be used by
6738  others, or write a module that might be useful to others, then you should
6739  consider posting your layout to the 
6740 \begin_inset CommandInset href
6741 LatexCommand href
6742 name "layout section on the LyX wiki"
6743 target "https://wiki.lyx.org/Layouts/Layouts"
6744 literal "false"
6745
6746 \end_inset
6747
6748  or even to the \SpecialChar LyX
6749  developers' list, so that it might be included in \SpecialChar LyX
6750  itself.
6751 \begin_inset Foot
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755 Note that \SpecialChar LyX
6756  is licensed under the General Public License, so any material
6757  that is contributed to \SpecialChar LyX
6758  must be similarly licensed.
6759 \end_layout
6760
6761 \end_inset
6762
6763
6764 \end_layout
6765
6766 \begin_layout Subsection
6767 Layout modules
6768 \begin_inset CommandInset label
6769 LatexCommand label
6770 name "subsec:Layout-modules"
6771
6772 \end_inset
6773
6774
6775 \end_layout
6776
6777 \begin_layout Standard
6778 We have spoken to this point about `layout files'.
6779  But there are different sorts of files that contain layout information.
6780  Layout files, strictly so called, have the 
6781 \begin_inset Flex Code
6782 status collapsed
6783
6784 \begin_layout Plain Layout
6785 .layout
6786 \end_layout
6787
6788 \end_inset
6789
6790  extension and provide \SpecialChar LyX
6791  with information about document classes.
6792  Since \SpecialChar LyX
6793  1.6 layout information can also be contained in layout 
6794 \emph on
6795 modules
6796 \emph default
6797 , which have the 
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 .module
6803 \end_layout
6804
6805 \end_inset
6806
6807  extension.
6808  Modules are to \SpecialChar LaTeX
6809  packages much as layouts are to \SpecialChar LaTeX
6810  classes, and some modules—such
6811  as the 
6812 \begin_inset Flex Code
6813 status collapsed
6814
6815 \begin_layout Plain Layout
6816 endnotes
6817 \end_layout
6818
6819 \end_inset
6820
6821  module—specifically provide support for one package.
6822  In a sense, layout modules are similar to included
6823 \begin_inset Foot
6824 status collapsed
6825
6826 \begin_layout Plain Layout
6827 These can have any extension, but by convention have the 
6828 \begin_inset Flex Code
6829 status collapsed
6830
6831 \begin_layout Plain Layout
6832 .inc
6833 \end_layout
6834
6835 \end_inset
6836
6837  extension.
6838 \end_layout
6839
6840 \end_inset
6841
6842  files—files like 
6843 \begin_inset Flex Code
6844 status collapsed
6845
6846 \begin_layout Plain Layout
6847 stdsections.inc
6848 \end_layout
6849
6850 \end_inset
6851
6852 —in that modules are not specific to a given document class but may be used
6853  with many different classes.
6854  The difference is that using an included file with 
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 article.cls
6860 \end_layout
6861
6862 \end_inset
6863
6864  requires editing that file.
6865  Modules, by contrast, are selected in the 
6866 \begin_inset Flex Noun
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870 Document\SpecialChar menuseparator
6871 Settings
6872 \end_layout
6873
6874 \end_inset
6875
6876  dialog.
6877 \end_layout
6878
6879 \begin_layout Standard
6880 Building modules is the easiest way to get started with layout editing,
6881  since it can be as simple as adding a single new paragraph style or flex
6882  inset.
6883  But modules may, in principle, contain anything a layout file can contain.
6884 \end_layout
6885
6886 \begin_layout Standard
6887 After creating a new module and copying it to the 
6888 \begin_inset Flex Code
6889 status collapsed
6890
6891 \begin_layout Plain Layout
6892 layouts/
6893 \end_layout
6894
6895 \end_inset
6896
6897  folder, you will need to reconfigure and then restart \SpecialChar LyX
6898  for the module to
6899  appear in the menu.
6900  However, changes you make to the module will be seen immediately, if you
6901  open 
6902 \begin_inset Flex Noun
6903 status collapsed
6904
6905 \begin_layout Plain Layout
6906 Document\SpecialChar menuseparator
6907 Settings
6908 \end_layout
6909
6910 \end_inset
6911
6912 , highlight something, and then hit 
6913 \begin_inset Quotes eld
6914 \end_inset
6915
6916 OK
6917 \begin_inset Quotes erd
6918 \end_inset
6919
6920 .
6921  
6922 \emph on
6923 It is strongly recommended that you save your work before doing this
6924 \emph default
6925 .
6926  In fact, 
6927 \emph on
6928 it is strongly recommended that you not attempt to edit modules while simultaneo
6929 usly working on actual documents
6930 \emph default
6931 .
6932  Though of course the developers strive to keep \SpecialChar LyX
6933  stable in such situations,
6934  syntax errors and the like in your module file could cause strange behavior.
6935 \end_layout
6936
6937 \begin_layout Subsubsection
6938 Local Layout
6939 \end_layout
6940
6941 \begin_layout Standard
6942 Modules are to \SpecialChar LyX
6943  as packages are to \SpecialChar LaTeX
6944 .
6945  Sometimes, however, you find yourself wanting a specific inset or character
6946  style just for one document and writing a module that will also be available
6947  to other documents makes little sense.
6948  What you need is \SpecialChar LyX
6949 's 
6950 \begin_inset Quotes eld
6951 \end_inset
6952
6953 Local Layout
6954 \begin_inset Quotes erd
6955 \end_inset
6956
6957 .
6958 \end_layout
6959
6960 \begin_layout Standard
6961 You will find it under 
6962 \family sans
6963 Document\SpecialChar menuseparator
6964 Settings\SpecialChar menuseparator
6965 Local Layout
6966 \family default
6967 .
6968  The large text box allows you to enter anything that you might enter in
6969  a layout file or module.
6970  You can think of a document's local layout, in fact, as a module that belongs
6971  just to it.
6972  So, in particular, you must enter a 
6973 \begin_inset Flex Code
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 Format
6978 \end_layout
6979
6980 \end_inset
6981
6982  tag.
6983  Any format is acceptable, but one would normally use the format current
6984  at the time.
6985  (In \SpecialChar LyX
6986  
6987 \begin_inset Info
6988 type  "lyxinfo"
6989 arg   "version"
6990 \end_inset
6991
6992 , the current layout format is 
6993 \begin_inset Info
6994 type  "lyxinfo"
6995 arg   "layoutformat"
6996 \end_inset
6997
6998 .)
6999 \end_layout
7000
7001 \begin_layout Standard
7002 When you have entered something in the 
7003 \begin_inset Flex Code
7004 status collapsed
7005
7006 \begin_layout Plain Layout
7007 Local Layout
7008 \end_layout
7009
7010 \end_inset
7011
7012  pane, \SpecialChar LyX
7013  will enable the 
7014 \begin_inset Quotes eld
7015 \end_inset
7016
7017 Validate
7018 \begin_inset Quotes erd
7019 \end_inset
7020
7021  button at the bottom.
7022  Clicking this button will cause \SpecialChar LyX
7023  to determine whether what you have entered
7024  is valid layout information for the chosen format.
7025  \SpecialChar LyX
7026  will report the result but, unfortunately, will not tell you what errors
7027  there might have been.
7028  These will be written to the terminal, however, if \SpecialChar LyX
7029  is started from a terminal.
7030  You will not be permitted to save your local layout until you have entered
7031  something valid.
7032 \end_layout
7033
7034 \begin_layout Standard
7035 The warnings at the end of the previous section apply here, too.
7036  Do not play with local layout while you are actually working, especially
7037  if you have not saved your document.
7038  That said, using local layout with a test document can be a very convenient
7039  way to try out layout ideas, or even to start developing a module.
7040 \end_layout
7041
7042 \begin_layout Subsection
7043 Layout for 
7044 \begin_inset Flex Noun
7045 status collapsed
7046
7047 \begin_layout Plain Layout
7048 .sty
7049 \end_layout
7050
7051 \end_inset
7052
7053  files
7054 \end_layout
7055
7056 \begin_layout Standard
7057 There are two situations you are likely to encounter when wanting to support
7058  a new \SpecialChar LaTeX
7059  document class, involving style (
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 .sty
7065 \end_layout
7066
7067 \end_inset
7068
7069 ) files and \SpecialChar LaTeX2e
7070  class (
7071 \begin_inset Flex Code
7072 status collapsed
7073
7074 \begin_layout Plain Layout
7075 .cls
7076 \end_layout
7077
7078 \end_inset
7079
7080 ) .
7081  Supporting a style file is usually fairly easy.
7082  Supporting a new class file is a bit harder.
7083  We'll discuss the former in this section and the latter in the next.
7084  
7085 \change_deleted 5863208 1594239023
7086 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7087 \change_unchanged
7088
7089 \end_layout
7090
7091 \begin_layout Standard
7092 The easier case is the one in which your new document class is provided
7093  as a style file that is to be used in conjunction with an already supported
7094  document class.
7095  For the sake of the example, we'll assume that the style file is called
7096  
7097 \begin_inset Flex Noun
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 myclass.sty
7102 \end_layout
7103
7104 \end_inset
7105
7106  and that it is meant to be used with 
7107 \begin_inset Flex Noun
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 report.cls
7112 \end_layout
7113
7114 \end_inset
7115
7116 , which is a standard class.
7117  
7118 \end_layout
7119
7120 \begin_layout Standard
7121 Start by copying the existing class's layout file into your local directory:
7122 \begin_inset Foot
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 Of course, which directory is your local directory will vary by platform,
7127  and \SpecialChar LyX
7128  allows you to specify your local directory on startup, too, using
7129  the 
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 -userdir
7135 \end_layout
7136
7137 \end_inset
7138
7139  option.
7140 \end_layout
7141
7142 \end_inset
7143
7144
7145 \end_layout
7146
7147 \begin_layout LyX-Code
7148 cp report.layout ~/.lyx/layouts/myclass.layout
7149 \end_layout
7150
7151 \begin_layout Standard
7152 Then edit 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 myclass.layout
7158 \end_layout
7159
7160 \end_inset
7161
7162  and change the line: 
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166
7167 \backslash
7168 DeclareLaTeXClass{Report (Standard Class)}
7169 \end_layout
7170
7171 \begin_layout Standard
7172 to read
7173 \end_layout
7174
7175 \begin_layout LyX-Code
7176
7177 \backslash
7178 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7179 \end_layout
7180
7181 \begin_layout Standard
7182 Then add:
7183 \end_layout
7184
7185 \begin_layout LyX-Code
7186 Preamble 
7187 \begin_inset Newline newline
7188 \end_inset
7189
7190     
7191 \backslash
7192 usepackage{myclass}
7193 \begin_inset Newline newline
7194 \end_inset
7195
7196 EndPreamble
7197 \end_layout
7198
7199 \begin_layout Standard
7200 near the top of the file.
7201 \end_layout
7202
7203 \begin_layout Standard
7204 Start \SpecialChar LyX
7205  and select 
7206 \begin_inset Flex Noun
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 Tools\SpecialChar menuseparator
7211 Reconfigure
7212 \end_layout
7213
7214 \end_inset
7215
7216 .
7217  Then restart \SpecialChar LyX
7218  and try creating a new document.
7219  You should see "
7220 \begin_inset Flex Noun
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 Report (My Class)
7225 \end_layout
7226
7227 \end_inset
7228
7229 " as a document class option in the 
7230 \begin_inset Flex Noun
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234 Document\SpecialChar menuseparator
7235 Settings
7236 \end_layout
7237
7238 \end_inset
7239
7240  dialog.
7241  It is likely that some of the sectioning commands and such in your new
7242  class will work differently from how they worked in the base class—
7243 \begin_inset Flex Code
7244 status collapsed
7245
7246 \begin_layout Plain Layout
7247 report
7248 \end_layout
7249
7250 \end_inset
7251
7252  in this example—so you can fiddle around with the settings for the different
7253  sections if you wish.
7254  The layout information for sections is contained in 
7255 \begin_inset Flex Code
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 stdsections.inc
7260 \end_layout
7261
7262 \end_inset
7263
7264 , but you do not need to copy and change this file.
7265  Instead, you can simply add your changes to your layout file, after the
7266  line 
7267 \begin_inset Flex Code
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 Input stdclass.inc
7272 \end_layout
7273
7274 \end_inset
7275
7276 , which itself includes 
7277 \begin_inset Flex Code
7278 status collapsed
7279
7280 \begin_layout Plain Layout
7281 stdsections.inc
7282 \end_layout
7283
7284 \end_inset
7285
7286 .
7287  For example, you might add these lines:
7288 \end_layout
7289
7290 \begin_layout LyX-Code
7291 Style Chapter
7292 \end_layout
7293
7294 \begin_layout LyX-Code
7295     Font
7296 \end_layout
7297
7298 \begin_layout LyX-Code
7299         Family Sans
7300 \end_layout
7301
7302 \begin_layout LyX-Code
7303     EndFont
7304 \end_layout
7305
7306 \begin_layout LyX-Code
7307 End
7308 \end_layout
7309
7310 \begin_layout Standard
7311 to change the font for chapter headings to sans-serif.
7312  This will override (or, in this case, add to) the existing declaration
7313  for the Chapter style.
7314  
7315 \end_layout
7316
7317 \begin_layout Standard
7318 Your new package may also provide commands or environments not present in
7319  the base class.
7320  In this case, you will want to add these to the layout file.
7321  See 
7322 \begin_inset CommandInset ref
7323 LatexCommand ref
7324 reference "sec:TextClass"
7325
7326 \end_inset
7327
7328  for information on how to do so.
7329 \end_layout
7330
7331 \begin_layout Standard
7332 If 
7333 \begin_inset Flex Noun
7334 status collapsed
7335
7336 \begin_layout Plain Layout
7337 myclass.sty
7338 \end_layout
7339
7340 \end_inset
7341
7342  can be used with several different document classes, and even if it cannot,
7343  you might find it easiest just to write a module that you can load with
7344  the base class.
7345  The simplest possible such module would be:
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 #
7350 \backslash
7351 DeclareLyXModule{My Class} 
7352 \end_layout
7353
7354 \begin_layout LyX-Code
7355 #DescriptionBegin 
7356 \end_layout
7357
7358 \begin_layout LyX-Code
7359 #Support for myclass.sty.
7360 \end_layout
7361
7362 \begin_layout LyX-Code
7363 #DescriptionEnd
7364 \begin_inset Newline newline
7365 \end_inset
7366
7367
7368 \end_layout
7369
7370 \begin_layout LyX-Code
7371 Format 
7372 \begin_inset Info
7373 type  "lyxinfo"
7374 arg   "layoutformat"
7375 \end_inset
7376
7377
7378 \begin_inset Newline newline
7379 \end_inset
7380
7381
7382 \end_layout
7383
7384 \begin_layout LyX-Code
7385 Preamble
7386 \begin_inset Newline newline
7387 \end_inset
7388
7389     
7390 \backslash
7391 usepackage{myclass}
7392 \begin_inset Newline newline
7393 \end_inset
7394
7395 EndPreamble
7396 \end_layout
7397
7398 \begin_layout Standard
7399 A more complex module might modify the behavior of some existing constructs
7400  or define some new ones.
7401  Again, see 
7402 \begin_inset CommandInset ref
7403 LatexCommand ref
7404 reference "sec:TextClass"
7405
7406 \end_inset
7407
7408  for discussion.
7409 \end_layout
7410
7411 \begin_layout Subsection
7412 Layout for 
7413 \begin_inset Flex Noun
7414 status collapsed
7415
7416 \begin_layout Plain Layout
7417 .cls
7418 \end_layout
7419
7420 \end_inset
7421
7422  files
7423 \end_layout
7424
7425 \begin_layout Standard
7426 There are two possibilities here.
7427  One is that the class file is itself based upon an existing document class.
7428  For example, many thesis classes are based upon 
7429 \begin_inset Flex Noun
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 book.cls
7434 \end_layout
7435
7436 \end_inset
7437
7438 .
7439  To see whether yours is, look for a line like
7440 \end_layout
7441
7442 \begin_layout LyX-Code
7443
7444 \backslash
7445 LoadClass{book}
7446 \end_layout
7447
7448 \begin_layout Standard
7449 in the file.
7450  If so, then you may proceed largely as in the previous section, though
7451  the 
7452 \begin_inset Flex Code
7453 status collapsed
7454
7455 \begin_layout Plain Layout
7456 Declare\SpecialChar LaTeX
7457 Class
7458 \end_layout
7459
7460 \end_inset
7461
7462  line will be different.
7463  If your new class is 
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 thesis
7469 \end_layout
7470
7471 \end_inset
7472
7473  and it is based upon 
7474 \begin_inset Flex Code
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 book
7479 \end_layout
7480
7481 \end_inset
7482
7483 , then the line should read:
7484 \begin_inset Foot
7485 status collapsed
7486
7487 \begin_layout Plain Layout
7488 And it will be easiest if you save the file to 
7489 \begin_inset Flex Code
7490 status collapsed
7491
7492 \begin_layout Plain Layout
7493 thesis.layout
7494 \end_layout
7495
7496 \end_inset
7497
7498 : \SpecialChar LyX
7499  assumes that the document class has the same name as the layout file.
7500  
7501 \end_layout
7502
7503 \end_inset
7504
7505
7506 \end_layout
7507
7508 \begin_layout LyX-Code
7509
7510 \backslash
7511 DeclareLaTeXClass[thesis,book]{thesis}
7512 \end_layout
7513
7514 \begin_layout Standard
7515 If, on the other hand, the new class is not based upon an existing class,
7516  you will probably have to 
7517 \begin_inset Quotes eld
7518 \end_inset
7519
7520 roll your own
7521 \begin_inset Quotes erd
7522 \end_inset
7523
7524  layout.
7525  We strongly suggest copying an existing layout file which uses a similar
7526  \SpecialChar LaTeX
7527  class and then modifying it, if you can do so.
7528  At least use an existing file as a starting point so you can find out what
7529  items you need to worry about.
7530  Again, the specifics are covered below.
7531 \end_layout
7532
7533 \begin_layout Subsection
7534 Creating templates
7535 \begin_inset CommandInset label
7536 LatexCommand label
7537 name "subsec:Creating-Templates"
7538
7539 \end_inset
7540
7541
7542 \end_layout
7543
7544 \begin_layout Standard
7545 Once you have written a layout file for a new document class, you might
7546  want to consider writing a 
7547 \emph on
7548 template
7549 \emph default
7550  for it, too.
7551  A template acts as a kind of tutorial for your layout, showing how it might
7552  be used, though containing dummy content.
7553  You can of course look at the various templates included with \SpecialChar LyX
7554  for ideas.
7555 \end_layout
7556
7557 \begin_layout Standard
7558 Templates are created just like usual documents: using \SpecialChar LyX
7559 .
7560  The only difference is that usual documents contain all possible settings,
7561  including the font scheme and the paper size.
7562  Usually a user doesn't want a template to overwrite his preferred settings
7563  for such parameters.
7564  For that reason, the designer of a template should remove the corresponding
7565  commands like 
7566 \begin_inset Flex Code
7567 status collapsed
7568
7569 \begin_layout Plain Layout
7570
7571 \backslash
7572 font_roman
7573 \end_layout
7574
7575 \end_inset
7576
7577  or 
7578 \begin_inset Flex Code
7579 status collapsed
7580
7581 \begin_layout Plain Layout
7582
7583 \backslash
7584 papersize
7585 \end_layout
7586
7587 \end_inset
7588
7589  from the template \SpecialChar LyX
7590  file.
7591  This can be done with any simple text-editor, for example 
7592 \begin_inset Flex Code
7593 status collapsed
7594
7595 \begin_layout Plain Layout
7596 vi
7597 \end_layout
7598
7599 \end_inset
7600
7601  or 
7602 \begin_inset Flex Code
7603 status collapsed
7604
7605 \begin_layout Plain Layout
7606 notepad
7607 \end_layout
7608
7609 \end_inset
7610
7611 .
7612 \end_layout
7613
7614 \begin_layout Standard
7615 Put the edited template files you create in 
7616 \begin_inset Flex Code
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 UserDir/templates/
7621 \end_layout
7622
7623 \end_inset
7624
7625 , copy the ones you use from the global template directory in 
7626 \begin_inset Flex Code
7627 status collapsed
7628
7629 \begin_layout Plain Layout
7630 LyXDir/templates/
7631 \end_layout
7632
7633 \end_inset
7634
7635  to the same place, and redefine the template path in the 
7636 \begin_inset Flex Noun
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640 Tools\SpecialChar menuseparator
7641 Preferences\SpecialChar menuseparator
7642 Paths
7643 \end_layout
7644
7645 \end_inset
7646
7647  dialog.
7648 \end_layout
7649
7650 \begin_layout Standard
7651 Note, by the way, that there is a template which has a particular meaning:
7652 \begin_inset Newline linebreak
7653 \end_inset
7654
7655
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 defaults.lyx
7661 \end_layout
7662
7663 \end_inset
7664
7665 .
7666  This template is loaded every time you create a new document with 
7667 \begin_inset Flex Noun
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 File\SpecialChar menuseparator
7672 New
7673 \end_layout
7674
7675 \end_inset
7676
7677  in order to provide useful defaults.
7678  To create this template from inside \SpecialChar LyX
7679 , all you have to do is to open a document
7680  with the correct settings, and use the 
7681 \begin_inset Flex Noun
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 Save as Document Defaults
7686 \end_layout
7687
7688 \end_inset
7689
7690  button.
7691 \end_layout
7692
7693 \begin_layout Subsection
7694 Upgrading old layout files
7695 \end_layout
7696
7697 \begin_layout Standard
7698 The format of layout files changes with each \SpecialChar LyX
7699  release, so old layout files
7700  need to be converted to the new format.
7701  If \SpecialChar LyX
7702  reads a layout file in an older format, it automatically calls the
7703  script 
7704 \begin_inset Flex Code
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 layout2layout.py
7709 \end_layout
7710
7711 \end_inset
7712
7713  to convert it to a temporary file in current format.
7714  The original file is left untouched.
7715  If you use the layout file often, then, you may want to convert it permanently,
7716  so that \SpecialChar LyX
7717  does not have to do so itself every time.
7718  To do this, you can call the converter manually:
7719 \end_layout
7720
7721 \begin_layout Enumerate
7722 rename the file 
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 myclass.layout
7728 \end_layout
7729
7730 \end_inset
7731
7732  to 
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737 myclass.old
7738 \end_layout
7739
7740 \end_inset
7741
7742
7743 \end_layout
7744
7745 \begin_layout Enumerate
7746 Call the command
7747 \begin_inset Newline newline
7748 \end_inset
7749
7750
7751 \begin_inset Flex Code
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7756 \end_layout
7757
7758 \end_inset
7759
7760
7761 \begin_inset Newline newline
7762 \end_inset
7763
7764 where 
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 LyXDir
7770 \end_layout
7771
7772 \end_inset
7773
7774  is the name of your \SpecialChar LyX
7775  system directory.
7776 \end_layout
7777
7778 \begin_layout Standard
7779 Note that manual conversion does not affect included files, so these will
7780  have to be converted separately.
7781 \end_layout
7782
7783 \begin_layout Subsection
7784 \begin_inset CommandInset label
7785 LatexCommand label
7786 name "subsec:Cite-Engine-Files"
7787
7788 \end_inset
7789
7790 Cite engine files
7791 \end_layout
7792
7793 \begin_layout Standard
7794 A specific form of layout files are the so-called 
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 *.citeengine
7800 \end_layout
7801
7802 \end_inset
7803
7804  files that are located in the 
7805 \begin_inset Flex Code
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 citeengines/
7810 \end_layout
7811
7812 \end_inset
7813
7814  sub-directory.
7815  Their purpose is to define the specifics of \SpecialChar LaTeX
7816  packages aimed at bibliography
7817  generation, such as 
7818 \family sans
7819 natbib
7820 \family default
7821 ,
7822 \family sans
7823  jurabib
7824 \family default
7825  or 
7826 \family sans
7827 biblatex
7828 \family default
7829 , but also the way how normal Bib\SpecialChar TeX
7830  citations (without additional packages)
7831  are handled in \SpecialChar LyX
7832  is defined in such a file.
7833  
7834 \end_layout
7835
7836 \begin_layout Standard
7837 More specifically, it is defined which packages \SpecialChar LyX
7838  needs to load, which citation
7839  commands are available, how these are to be displayed in \SpecialChar LyX
7840  (in the workarea,
7841  the dialogs, the context menus) as well as in the XHTML and plain text
7842  output.
7843  Furthermore, the files specify available style variants (author-year, numerical
7844 , etc.) and their specifics.
7845  The cite engine files are also used to generate the options that are available
7846  in 
7847 \family sans
7848 Document\SpecialChar menuseparator
7849 Settings\SpecialChar menuseparator
7850 Bibliography\SpecialChar menuseparator
7851 Style engine
7852 \family default
7853 .
7854 \end_layout
7855
7856 \begin_layout Standard
7857 Even though a cite engine file is essentially a normal layout file that
7858  could theoretically include any layout information, it usually primarily
7859  includes some specific parameters such as 
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 MaxCiteNames
7865 \end_layout
7866
7867 \end_inset
7868
7869
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 CiteFramework
7875 \end_layout
7876
7877 \end_inset
7878
7879
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 CiteEngine
7885 \end_layout
7886
7887 \end_inset
7888
7889  and 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 CiteFormat
7895 \end_layout
7896
7897 \end_inset
7898
7899  blocks.
7900  The syntax of the latter two is described in 
7901 \begin_inset CommandInset ref
7902 LatexCommand ref
7903 reference "subsec:Citation-engine-description"
7904 plural "false"
7905 caps "false"
7906 noprefix "false"
7907
7908 \end_inset
7909
7910  and 
7911 \begin_inset CommandInset ref
7912 LatexCommand ref
7913 reference "subsec:Citation-format-description"
7914
7915 \end_inset
7916
7917 , as well as in the files themselves.
7918 \end_layout
7919
7920 \begin_layout Section
7921 \begin_inset CommandInset label
7922 LatexCommand label
7923 name "sec:TextClass"
7924
7925 \end_inset
7926
7927 The layout file format
7928 \end_layout
7929
7930 \begin_layout Standard
7931 The following sections describe how layout files are structured and written.
7932  Our advice is to go slowly, save and test often.
7933  It is really not that hard, except that the multitude of options can become
7934  overwhelming, especially if you try to check out too many at once.
7935  It becomes easier if you use existing layouts of \SpecialChar LyX
7936  as examples/reference
7937  or if you modify an existing layout to your needs.
7938 \end_layout
7939
7940 \begin_layout Standard
7941 Note that all the tags used in layout files are case-insensitive.
7942  This means that 
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 Style
7948 \end_layout
7949
7950 \end_inset
7951
7952
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 style
7958 \end_layout
7959
7960 \end_inset
7961
7962  and 
7963 \begin_inset Flex Code
7964 status collapsed
7965
7966 \begin_layout Plain Layout
7967 StYlE
7968 \end_layout
7969
7970 \end_inset
7971
7972  are really the same tag.
7973  The possible arguments are printed in brackets after the tag's name.
7974  The default argument is typeset 
7975 \begin_inset Flex Code
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979
7980 \emph on
7981 emphasized
7982 \end_layout
7983
7984 \end_inset
7985
7986 .
7987  If the argument has a data type like 
7988 \begin_inset Quotes eld
7989 \end_inset
7990
7991 string
7992 \begin_inset Quotes erd
7993 \end_inset
7994
7995  or 
7996 \begin_inset Quotes eld
7997 \end_inset
7998
7999 float
8000 \begin_inset Quotes erd
8001 \end_inset
8002
8003 , the default is shown like this: 
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 float=
8009 \emph on
8010 default
8011 \end_layout
8012
8013 \end_inset
8014
8015 .
8016 \end_layout
8017
8018 \begin_layout Subsection
8019 The document class declaration and classification
8020 \end_layout
8021
8022 \begin_layout Standard
8023 Lines in a layout file which begin with 
8024 \begin_inset Flex Code
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 #
8029 \end_layout
8030
8031 \end_inset
8032
8033  are comments.
8034  There is one exception to this rule.
8035  All 
8036 \begin_inset Flex Code
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040 *.layout
8041 \end_layout
8042
8043 \end_inset
8044
8045  files should begin with lines like:
8046 \end_layout
8047
8048 \begin_layout LyX-Code
8049
8050 \size small
8051 #% Do not delete the line below; configure depends on this 
8052 \end_layout
8053
8054 \begin_layout LyX-Code
8055
8056 \size small
8057 #  
8058 \backslash
8059 DeclareLaTeXClass{Article (Standard Class)}
8060 \end_layout
8061
8062 \begin_layout LyX-Code
8063
8064 \size small
8065 #  
8066 \backslash
8067 DeclareCategory{Articles}
8068 \end_layout
8069
8070 \begin_layout Standard
8071 The second and third lines are used when you (re)configure \SpecialChar LyX
8072 .
8073  The layout file is read by the \SpecialChar LaTeX
8074  script 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 chkconfig.ltx
8080 \end_layout
8081
8082 \end_inset
8083
8084 , in a special mode where 
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 #
8090 \end_layout
8091
8092 \end_inset
8093
8094  is ignored.
8095  The first line is just a \SpecialChar LaTeX
8096  comment, the second one contains the mandatory
8097  declaration of the text class and the third line contains the optional
8098  classification of the class.
8099  If these lines appear in a file named 
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 article.layout
8105 \end_layout
8106
8107 \end_inset
8108
8109 , then they define a text class of name 
8110 \begin_inset Flex Code
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 article
8115 \end_layout
8116
8117 \end_inset
8118
8119  (the name of the layout file) which uses the \SpecialChar LaTeX
8120  document class 
8121 \begin_inset Flex Code
8122 status collapsed
8123
8124 \begin_layout Plain Layout
8125 article.cls
8126 \end_layout
8127
8128 \end_inset
8129
8130  (the default is to use the same name as the layout).
8131  The string 
8132 \begin_inset Quotes eld
8133 \end_inset
8134
8135 Article (Standard Class)
8136 \begin_inset Quotes erd
8137 \end_inset
8138
8139  that appears above is used as a description of the text class in the 
8140 \begin_inset Flex Noun
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 Document\SpecialChar menuseparator
8145 Settings
8146 \end_layout
8147
8148 \end_inset
8149
8150  dialog.
8151  The category (
8152 \begin_inset Quotes eld
8153 \end_inset
8154
8155 Articles
8156 \begin_inset Quotes erd
8157 \end_inset
8158
8159  in the example) is also used in the 
8160 \begin_inset Flex Noun
8161 status collapsed
8162
8163 \begin_layout Plain Layout
8164 Document\SpecialChar menuseparator
8165 Settings
8166 \end_layout
8167
8168 \end_inset
8169
8170  dialog: the text classes are grouped by these categories (which are usually
8171  genres, so typical categories are 
8172 \begin_inset Quotes eld
8173 \end_inset
8174
8175 Articles
8176 \begin_inset Quotes erd
8177 \end_inset
8178
8179
8180 \begin_inset Quotes eld
8181 \end_inset
8182
8183 Books
8184 \begin_inset Quotes erd
8185 \end_inset
8186
8187
8188 \begin_inset Quotes eld
8189 \end_inset
8190
8191 Reports
8192 \begin_inset Quotes erd
8193 \end_inset
8194
8195
8196 \begin_inset Quotes eld
8197 \end_inset
8198
8199 Letters
8200 \begin_inset Quotes erd
8201 \end_inset
8202
8203
8204 \begin_inset Quotes eld
8205 \end_inset
8206
8207 Presentations
8208 \begin_inset Quotes erd
8209 \end_inset
8210
8211
8212 \begin_inset Quotes eld
8213 \end_inset
8214
8215 Curricula Vitae
8216 \begin_inset Quotes erd
8217 \end_inset
8218
8219  etc.).
8220  If no category has been declared, the class will be put in the 
8221 \begin_inset Quotes eld
8222 \end_inset
8223
8224 Uncategorized
8225 \begin_inset Quotes erd
8226 \end_inset
8227
8228  group.
8229 \end_layout
8230
8231 \begin_layout Standard
8232 Let's assume that you wrote your own text class that uses the 
8233 \begin_inset Flex Code
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 article.cls
8238 \end_layout
8239
8240 \end_inset
8241
8242  document class, but where you changed the appearance of the section headings.
8243  If you put it in a file 
8244 \begin_inset Flex Code
8245 status collapsed
8246
8247 \begin_layout Plain Layout
8248 myarticle.layout
8249 \end_layout
8250
8251 \end_inset
8252
8253 , the header of this file should be:
8254 \end_layout
8255
8256 \begin_layout LyX-Code
8257
8258 \size small
8259 #% Do not delete the line below; configure depends on this 
8260 \end_layout
8261
8262 \begin_layout LyX-Code
8263
8264 \size small
8265 #  
8266 \backslash
8267 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8268 \end_layout
8269
8270 \begin_layout LyX-Code
8271
8272 \size small
8273 #  
8274 \backslash
8275 DeclareCategory{Articles}
8276 \end_layout
8277
8278 \begin_layout Standard
8279 This declares a text class 
8280 \begin_inset Flex Code
8281 status collapsed
8282
8283 \begin_layout Plain Layout
8284 myarticle
8285 \end_layout
8286
8287 \end_inset
8288
8289 , associated with the \SpecialChar LaTeX
8290  document class 
8291 \begin_inset Flex Code
8292 status collapsed
8293
8294 \begin_layout Plain Layout
8295 article.cls
8296 \end_layout
8297
8298 \end_inset
8299
8300  and described as 
8301 \begin_inset Quotes eld
8302 \end_inset
8303
8304 Article (with My Own Headings)
8305 \begin_inset Quotes erd
8306 \end_inset
8307
8308 .
8309  If your text class depends on several packages, you can declare it as:
8310 \end_layout
8311
8312 \begin_layout LyX-Code
8313
8314 \size small
8315 #% Do not delete the line below; configure depends on this 
8316 \end_layout
8317
8318 \begin_layout LyX-Code
8319
8320 \size small
8321 #  
8322 \backslash
8323 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8324 \end_layout
8325
8326 \begin_layout LyX-Code
8327
8328 \size small
8329 #  
8330 \backslash
8331 DeclareCategory{Articles}
8332 \end_layout
8333
8334 \begin_layout Standard
8335 This indicates that your text class uses the 
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 foo.sty
8341 \end_layout
8342
8343 \end_inset
8344
8345  package.
8346  
8347 \change_deleted 5863208 1594239179
8348 Finally, it is also possible to declare classes for DocBook code.
8349  Typical declarations will look like:
8350 \end_layout
8351
8352 \begin_layout LyX-Code
8353
8354 \change_deleted 5863208 1594239179
8355
8356 \size small
8357 #% Do not delete the line below; configure depends on this 
8358 \end_layout
8359
8360 \begin_layout LyX-Code
8361
8362 \change_deleted 5863208 1594239179
8363
8364 \size small
8365
8366 \backslash
8367 DeclareDocBookClass[article]{SGML (DocBook Article)}
8368 \end_layout
8369
8370 \begin_layout LyX-Code
8371
8372 \change_deleted 5863208 1594239179
8373
8374 \size small
8375
8376 \backslash
8377 DeclareCategory{Articles (DocBook)}
8378 \change_unchanged
8379
8380 \end_layout
8381
8382 \begin_layout Standard
8383 Note that these declarations can also be given an optional parameter declaring
8384  the name of the document class (but not a list).
8385 \end_layout
8386
8387 \begin_layout Standard
8388 So, to be as explicit as possible, the form of the layout declaration is:
8389 \end_layout
8390
8391 \begin_layout LyX-Code
8392
8393 \size small
8394 #  
8395 \backslash
8396 DeclareLaTeXClass[class,package.sty]{layout description}
8397 \end_layout
8398
8399 \begin_layout LyX-Code
8400
8401 \size small
8402 #  
8403 \backslash
8404 DeclareCategory{category}
8405 \end_layout
8406
8407 \begin_layout Standard
8408 The class need only be specified if the name of the \SpecialChar LaTeX
8409  class file and the
8410  name of the layout file are different or if there are packages to load.
8411  If the name of the class file is not specified, then \SpecialChar LyX
8412  will simply assume
8413  that it is the same as the name of the layout file.
8414 \end_layout
8415
8416 \begin_layout Standard
8417 When the text class has been modified to your taste, all you have to do
8418  is to copy it either to 
8419 \begin_inset Flex Code
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 LyXDir/layouts/
8424 \end_layout
8425
8426 \end_inset
8427
8428  or to 
8429 \begin_inset Flex Code
8430 status collapsed
8431
8432 \begin_layout Plain Layout
8433 UserDir/layouts
8434 \end_layout
8435
8436 \end_inset
8437
8438 , run 
8439 \begin_inset Flex Noun
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 Tools\SpecialChar menuseparator
8444 Reconfigure
8445 \end_layout
8446
8447 \end_inset
8448
8449 , exit \SpecialChar LyX
8450  and restart.
8451  Then your new text class should be available along with the others.
8452 \end_layout
8453
8454 \begin_layout Standard
8455 Once the layout file is installed, you can edit it and see your changes
8456  without having to reconfigure or to restart \SpecialChar LyX
8457 .
8458 \begin_inset Foot
8459 status collapsed
8460
8461 \begin_layout Plain Layout
8462 In versions of \SpecialChar LyX
8463  prior to 1.6, this was not true.
8464  As a result, editing layout files was very time consuming, since you had
8465  constantly to restart \SpecialChar LyX
8466  to see changes.
8467 \end_layout
8468
8469 \end_inset
8470
8471  You can force a reload of the current layout by using the \SpecialChar LyX
8472  function 
8473 \begin_inset Flex Noun
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 layout-reload
8478 \end_layout
8479
8480 \end_inset
8481
8482 .
8483  There is no default binding for this function—though, of course, you can
8484  bind it to a key yourself.
8485  But you will normally use this function simply by entering it in the mini-buffe
8486 r.
8487  
8488 \end_layout
8489
8490 \begin_layout Standard
8491
8492 \emph on
8493 Warning
8494 \emph default
8495
8496 \begin_inset Flex Noun
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 layout-reload
8501 \end_layout
8502
8503 \end_inset
8504
8505  is very much an `advanced feature'.
8506  It is 
8507 \emph on
8508 strongly
8509 \emph default
8510  recommended that you save your work before using this function.
8511  In fact, it is 
8512 \emph on
8513 strongly
8514 \emph default
8515  recommended that you not attempt to edit layout information while simultaneousl
8516 y working on a document that you care about.
8517  Use a test document.
8518  Syntax errors and the like in your layout file could cause peculiar behavior.
8519  In particular, such errors could cause \SpecialChar LyX
8520  to regard the current layout as
8521  invalid and to attempt to switch to some other layout.
8522 \begin_inset Foot
8523 status collapsed
8524
8525 \begin_layout Plain Layout
8526 Really bad syntax errors may even caused \SpecialChar LyX
8527  to exit.
8528  This is because certain sorts of errors may make \SpecialChar LyX
8529  unable to read 
8530 \emph on
8531 any
8532 \emph default
8533  layout information.
8534  Please be careful.
8535 \end_layout
8536
8537 \end_inset
8538
8539  The \SpecialChar LyX
8540  team strives to keep \SpecialChar LyX
8541  stable in such situations, but safe is better
8542  than sorry.
8543 \begin_inset Foot
8544 status collapsed
8545
8546 \begin_layout Plain Layout
8547 While we're giving advice: make regular backups.
8548  And be nice to your mother.
8549 \end_layout
8550
8551 \end_inset
8552
8553
8554 \end_layout
8555
8556 \begin_layout Subsection
8557 The Module declaration
8558 \end_layout
8559
8560 \begin_layout Standard
8561 A module must begin with a line like the following:
8562 \end_layout
8563
8564 \begin_layout LyX-Code
8565 #
8566 \backslash
8567 DeclareLyXModule[endnotes.sty]{Endnotes}
8568 \change_inserted -712698321 1554395911
8569
8570 \end_layout
8571
8572 \begin_layout LyX-Code
8573
8574 \change_inserted -712698321 1554395924
8575
8576 \size small
8577 #
8578 \backslash
8579 DeclareCategory{Foot- and Endnotes}
8580 \change_deleted -712698321 1554395911
8581
8582 \size default
8583  
8584 \change_unchanged
8585
8586 \end_layout
8587
8588 \begin_layout Standard
8589 The mandatory argument
8590 \change_inserted -712698321 1554395956
8591  of 
8592 \family typewriter
8593
8594 \backslash
8595 DeclareLyXModule
8596 \change_unchanged
8597
8598 \family default
8599 , in curly brackets, is the name of the module, as it should appear in 
8600 \begin_inset Flex Noun
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 Document\SpecialChar menuseparator
8605 Settings\SpecialChar menuseparator
8606 Modules
8607 \end_layout
8608
8609 \end_inset
8610
8611 .
8612  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8613  packages
8614  on which the module depends.
8615  It is also possible to use the form 
8616 \begin_inset Flex Noun
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 from->to
8621 \end_layout
8622
8623 \end_inset
8624
8625  as an optional argument, which declares that the module can only be used
8626  when there exists a conversion chain between the formats `
8627 \begin_inset Flex Code
8628 status collapsed
8629
8630 \begin_layout Plain Layout
8631 from
8632 \end_layout
8633
8634 \end_inset
8635
8636 ' and `
8637 \begin_inset Flex Code
8638 status collapsed
8639
8640 \begin_layout Plain Layout
8641 to
8642 \end_layout
8643
8644 \end_inset
8645
8646 '.
8647
8648 \change_inserted -712698321 1554396133
8649  The 
8650 \family typewriter
8651
8652 \backslash
8653 DeclareCategory
8654 \family default
8655  declaration is not strictly mandatory, but you should add it, since it
8656  is helpful to find the module.
8657  Please have a look at the existing module categories and if appropriate,
8658  use one of those.
8659 \change_unchanged
8660
8661 \end_layout
8662
8663 \begin_layout Standard
8664 The module 
8665 \change_inserted -712698321 1554395988
8666 and category 
8667 \change_unchanged
8668 declaration should then be followed by lines like the following:
8669 \begin_inset Foot
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 Preferably in English if the module should be published with \SpecialChar LyX
8674 .
8675  This description will appear in the list of messages to be translated and
8676  will be thus translated with the next interface update.
8677 \end_layout
8678
8679 \end_inset
8680
8681
8682 \end_layout
8683
8684 \begin_layout LyX-Code
8685 #DescriptionBegin 
8686 \end_layout
8687
8688 \begin_layout LyX-Code
8689 #Adds an endnote command, in addition to footnotes.
8690  
8691 \end_layout
8692
8693 \begin_layout LyX-Code
8694 #You will need to add  
8695 \backslash
8696 theendnotes in TeX code where you 
8697 \end_layout
8698
8699 \begin_layout LyX-Code
8700 #want the endnotes to appear.
8701  
8702 \end_layout
8703
8704 \begin_layout LyX-Code
8705 #DescriptionEnd 
8706 \end_layout
8707
8708 \begin_layout LyX-Code
8709 #Requires: somemodule | othermodule
8710 \end_layout
8711
8712 \begin_layout LyX-Code
8713 #Excludes: badmodule
8714 \end_layout
8715
8716 \begin_layout Standard
8717 The description is used in 
8718 \begin_inset Flex Noun
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 Document\SpecialChar menuseparator
8723 Settings\SpecialChar menuseparator
8724 Modules
8725 \end_layout
8726
8727 \end_inset
8728
8729  to provide the user with information about what the module does.
8730  The 
8731 \begin_inset Flex Code
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 Requires
8736 \end_layout
8737
8738 \end_inset
8739
8740  line is used to identify other modules with which this one must be used;
8741  the 
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 Excludes
8747 \end_layout
8748
8749 \end_inset
8750
8751  line is used to identify modules with which this one may not be used.
8752  Both are optional, and, as shown, multiple modules should be separated
8753  with the pipe symbol: |.
8754  Note that the required modules are treated disjunctively: 
8755 \emph on
8756 at least one
8757 \emph default
8758  of the required modules must be used.
8759  Similarly, 
8760 \emph on
8761 no
8762 \emph default
8763  excluded module may be used.
8764  Note that modules are identified here by their filenames without the 
8765 \begin_inset Flex Code
8766 status collapsed
8767
8768 \begin_layout Plain Layout
8769 .module
8770 \end_layout
8771
8772 \end_inset
8773
8774  extension.
8775  So 
8776 \begin_inset Flex Code
8777 status collapsed
8778
8779 \begin_layout Plain Layout
8780 somemodule
8781 \end_layout
8782
8783 \end_inset
8784
8785  is really 
8786 \begin_inset Flex Code
8787 status collapsed
8788
8789 \begin_layout Plain Layout
8790 somemodule.module
8791 \end_layout
8792
8793 \end_inset
8794
8795 .
8796 \end_layout
8797
8798 \begin_layout Subsection
8799 The CiteEngine file declaration
8800 \end_layout
8801
8802 \begin_layout Standard
8803 A cite engine file must begin with a line like the following:
8804 \end_layout
8805
8806 \begin_layout LyX-Code
8807 #
8808 \backslash
8809 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8810 \end_layout
8811
8812 \begin_layout Standard
8813 The mandatory argument, in curly brackets, is the name of the cite style,
8814  as it should appear in 
8815 \begin_inset Flex Noun
8816 status collapsed
8817
8818 \begin_layout Plain Layout
8819 Document\SpecialChar menuseparator
8820 Settings\SpecialChar menuseparator
8821 Bibliography
8822 \end_layout
8823
8824 \end_inset
8825
8826 .
8827  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8828  packages
8829  on which the cite engine depends.
8830 \end_layout
8831
8832 \begin_layout Standard
8833 The cite engine declaration should then be followed by lines like the following:
8834 \begin_inset Foot
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 Preferably in English if the module should be published with \SpecialChar LyX
8839 .
8840  This description will appear in the list of messages to be translated and
8841  will be thus translated with the next interface update.
8842 \end_layout
8843
8844 \end_inset
8845
8846
8847 \end_layout
8848
8849 \begin_layout LyX-Code
8850 # DescriptionBegin
8851 \end_layout
8852
8853 \begin_layout LyX-Code
8854 #   Biblatex supports many author-year and numerical styles.
8855 \end_layout
8856
8857 \begin_layout LyX-Code
8858 #   It is mainly aimed at the Humanities.
8859  It is highly
8860 \end_layout
8861
8862 \begin_layout LyX-Code
8863 #   customizable, fully localized and provides many features
8864 \end_layout
8865
8866 \begin_layout LyX-Code
8867 #   that are not possible with BibTeX.
8868  The use of 'biber' as
8869 \end_layout
8870
8871 \begin_layout LyX-Code
8872 #   bibliography processor is advised.
8873 \end_layout
8874
8875 \begin_layout LyX-Code
8876 # DescriptionEnd
8877 \end_layout
8878
8879 \begin_layout Standard
8880 The description is used in 
8881 \begin_inset Flex Noun
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885 Document\SpecialChar menuseparator
8886 Settings\SpecialChar menuseparator
8887 Bibliography
8888 \end_layout
8889
8890 \end_inset
8891
8892  to provide the user with information about the cite engine.
8893 \end_layout
8894
8895 \begin_layout Subsection
8896 Format number
8897 \end_layout
8898
8899 \begin_layout Standard
8900 The first non-comment line of any layout file, included file, or module
8901  
8902 \emph on
8903 must
8904 \emph default
8905  contain the file format number:
8906 \end_layout
8907
8908 \begin_layout Description
8909 \begin_inset Flex Code
8910 status collapsed
8911
8912 \begin_layout Plain Layout
8913 Format
8914 \end_layout
8915
8916 \end_inset
8917
8918  [
8919 \begin_inset Flex Code
8920 status collapsed
8921
8922 \begin_layout Plain Layout
8923 int
8924 \end_layout
8925
8926 \end_inset
8927
8928 ] The format number of the layout file.
8929 \end_layout
8930
8931 \begin_layout Standard
8932 This tag was introduced with \SpecialChar LyX
8933
8934 \begin_inset space ~
8935 \end_inset
8936
8937 1.4.0.
8938  Layout files from older \SpecialChar LyX
8939  versions do not have an explicit file format and
8940  are considered to have 
8941 \begin_inset Flex Code
8942 status collapsed
8943
8944 \begin_layout Plain Layout
8945 Format
8946 \begin_inset space ~
8947 \end_inset
8948
8949 1
8950 \end_layout
8951
8952 \end_inset
8953
8954 .
8955  The format for the present version of \SpecialChar LyX
8956  is format 60.
8957  But each version of \SpecialChar LyX
8958  is capable of reading earlier versions' layout files,
8959  just as they are capable of reading files produced by earlier versions
8960  of \SpecialChar LyX
8961 .
8962  There is, however, no provision for converting to earlier formats.
8963 \end_layout
8964
8965 \begin_layout Subsection
8966 \begin_inset CommandInset label
8967 LatexCommand label
8968 name "subsec:General-text-class"
8969
8970 \end_inset
8971
8972 General text class parameters
8973 \end_layout
8974
8975 \begin_layout Standard
8976 These are general parameters that govern the behavior of an entire document
8977  class.
8978  (This does 
8979 \emph on
8980 not
8981 \emph default
8982  mean that they must appear in 
8983 \begin_inset Flex Code
8984 status collapsed
8985
8986 \begin_layout Plain Layout
8987 .layout
8988 \end_layout
8989
8990 \end_inset
8991
8992  files rather than in modules.
8993  A module can contain any layout tag.)
8994 \end_layout
8995
8996 \begin_layout Description
8997
8998 \change_inserted -712698321 1526899478
8999 \begin_inset Flex Code
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003
9004 \change_inserted -712698321 1526898610
9005 AddToCiteEngine <engine>
9006 \end_layout
9007
9008 \end_inset
9009
9010  Extends the possibilities for displaying citation references.
9011  See 
9012 \begin_inset CommandInset ref
9013 LatexCommand ref
9014 reference "subsec:Citation-engine-description"
9015 plural "false"
9016 caps "false"
9017 noprefix "false"
9018
9019 \end_inset
9020
9021  for details.
9022  Must end with 
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027
9028 \change_inserted -712698321 1526898823
9029 End
9030 \change_unchanged
9031
9032 \end_layout
9033
9034 \end_inset
9035
9036 .
9037 \end_layout
9038
9039 \begin_layout Description
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 AddToHTMLPreamble
9045 \end_layout
9046
9047 \end_inset
9048
9049  Adds information that will be output in the 
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 <head>
9055 \end_layout
9056
9057 \end_inset
9058
9059  block when the document is output to XHTML.
9060  Typically, this would be used to output CSS style information, but it can
9061  be used for anything that can appear in 
9062 \begin_inset Flex Code
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 <head>
9067 \end_layout
9068
9069 \end_inset
9070
9071 .
9072  Must end with 
9073 \begin_inset Quotes eld
9074 \end_inset
9075
9076
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 EndPreamble
9082 \end_layout
9083
9084 \end_inset
9085
9086
9087 \begin_inset Quotes erd
9088 \end_inset
9089
9090 .
9091 \end_layout
9092
9093 \begin_layout Description
9094 \begin_inset Flex Code
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 AddToPreamble
9099 \end_layout
9100
9101 \end_inset
9102
9103  Adds information to the document preamble.
9104  Must end with
9105 \begin_inset Newline newline
9106 \end_inset
9107
9108
9109 \begin_inset Quotes eld
9110 \end_inset
9111
9112
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 EndPreamble
9118 \end_layout
9119
9120 \end_inset
9121
9122
9123 \begin_inset Quotes erd
9124 \end_inset
9125
9126 .
9127 \change_inserted -712698321 1562592950
9128
9129 \end_layout
9130
9131 \begin_layout Description
9132
9133 \change_inserted -712698321 1562593040
9134 \begin_inset Flex Code
9135 status collapsed
9136
9137 \begin_layout Plain Layout
9138
9139 \change_inserted -712698321 1562592954
9140 BibInToc
9141 \end_layout
9142
9143 \end_inset
9144
9145  [
9146 \begin_inset Flex Code
9147 status collapsed
9148
9149 \begin_layout Plain Layout
9150
9151 \change_inserted -712698321 1562592950
9152
9153 \emph on
9154 0
9155 \end_layout
9156
9157 \end_inset
9158
9159 ,
9160 \begin_inset space \thinspace{}
9161 \end_inset
9162
9163
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168
9169 \change_inserted -712698321 1562592950
9170 1
9171 \end_layout
9172
9173 \end_inset
9174
9175 ] If the document class adds the bibliography to the table of contents,
9176  add this option with value 
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181
9182 \change_inserted -712698321 1562592996
9183 1
9184 \change_unchanged
9185
9186 \end_layout
9187
9188 \end_inset
9189
9190  (or 
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195
9196 \change_inserted -712698321 1562593006
9197 true
9198 \change_unchanged
9199
9200 \end_layout
9201
9202 \end_inset
9203
9204 ).
9205  This prevents the bibliography from being added twice.
9206 \change_unchanged
9207
9208 \end_layout
9209
9210 \begin_layout Description
9211 \begin_inset Flex Code
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 CiteEngine <engine>
9216 \end_layout
9217
9218 \end_inset
9219
9220  Defines the possibilities for displaying citation references.
9221  See 
9222 \begin_inset CommandInset ref
9223 LatexCommand ref
9224 reference "subsec:Citation-engine-description"
9225 plural "false"
9226 caps "false"
9227 noprefix "false"
9228
9229 \end_inset
9230
9231  for details.
9232  Must end with 
9233 \begin_inset Quotes eld
9234 \end_inset
9235
9236
9237 \begin_inset Flex Code
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 End
9242 \end_layout
9243
9244 \end_inset
9245
9246
9247 \begin_inset Quotes erd
9248 \end_inset
9249
9250 .
9251  Primarily used in cite engine files (see 
9252 \begin_inset CommandInset ref
9253 LatexCommand ref
9254 reference "subsec:Cite-Engine-Files"
9255 plural "false"
9256 caps "false"
9257 noprefix "false"
9258
9259 \end_inset
9260
9261 ).
9262
9263 \change_inserted -712698321 1526898530
9264  Note that if you specify this in a layout file or module, any cite engine
9265  definition will be overridden.
9266  Also see 
9267 \begin_inset Flex Code
9268 status collapsed
9269
9270 \begin_layout Plain Layout
9271
9272 \change_inserted -712698321 1526898530
9273 AddToCiteEngine
9274 \change_unchanged
9275
9276 \end_layout
9277
9278 \end_inset
9279
9280 .
9281 \change_unchanged
9282
9283 \end_layout
9284
9285 \begin_layout Description
9286 \begin_inset Flex Code
9287 status collapsed
9288
9289 \begin_layout Plain Layout
9290 CiteFormat
9291 \end_layout
9292
9293 \end_inset
9294
9295  Defines formats for use in the display of bibliographic information.
9296  See 
9297 \begin_inset CommandInset ref
9298 LatexCommand ref
9299 reference "subsec:Citation-format-description"
9300
9301 \end_inset
9302
9303  for details.
9304  Must end with 
9305 \begin_inset Quotes eld
9306 \end_inset
9307
9308
9309 \begin_inset Flex Code
9310 status collapsed
9311
9312 \begin_layout Plain Layout
9313 End
9314 \end_layout
9315
9316 \end_inset
9317
9318
9319 \begin_inset Quotes erd
9320 \end_inset
9321
9322 .
9323  Primarily used in cite engine files (see 
9324 \begin_inset CommandInset ref
9325 LatexCommand ref
9326 reference "subsec:Cite-Engine-Files"
9327 plural "false"
9328 caps "false"
9329 noprefix "false"
9330
9331 \end_inset
9332
9333 ).
9334
9335 \change_inserted -712698321 1526898585
9336  A cite format defined in a layout or module will override the cite engine
9337  definition.
9338 \change_unchanged
9339
9340 \end_layout
9341
9342 \begin_layout Description
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 CiteFramework
9348 \end_layout
9349
9350 \end_inset
9351
9352  [
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357
9358 \emph on
9359 bibtex
9360 \end_layout
9361
9362 \end_inset
9363
9364 ,
9365 \begin_inset Flex Code
9366 status collapsed
9367
9368 \begin_layout Plain Layout
9369 biblatex
9370 \end_layout
9371
9372 \end_inset
9373
9374 ] Determines whether 
9375 \family sans
9376 Biblatex
9377 \family default
9378  or Bib\SpecialChar TeX
9379  is used to generate a Bibliography.
9380  Primarily used in cite engine files (see 
9381 \begin_inset CommandInset ref
9382 LatexCommand ref
9383 reference "subsec:Cite-Engine-Files"
9384 plural "false"
9385 caps "false"
9386 noprefix "false"
9387
9388 \end_inset
9389
9390 ).
9391 \end_layout
9392
9393 \begin_layout Description
9394 \begin_inset Flex Code
9395 status collapsed
9396
9397 \begin_layout Plain Layout
9398 ClassOptions
9399 \end_layout
9400
9401 \end_inset
9402
9403  Describes various global options supported by the document class.
9404  See 
9405 \begin_inset CommandInset ref
9406 LatexCommand ref
9407 reference "subsec:ClassOptions"
9408
9409 \end_inset
9410
9411  for a description.
9412  Must end with 
9413 \begin_inset Quotes eld
9414 \end_inset
9415
9416
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 End
9422 \end_layout
9423
9424 \end_inset
9425
9426
9427 \begin_inset Quotes erd
9428 \end_inset
9429
9430 .
9431 \end_layout
9432
9433 \begin_layout Description
9434 \begin_inset Flex Code
9435 status collapsed
9436
9437 \begin_layout Plain Layout
9438 Columns
9439 \end_layout
9440
9441 \end_inset
9442
9443  [
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448
9449 \emph on
9450 1
9451 \end_layout
9452
9453 \end_inset
9454
9455 ,
9456 \begin_inset space \thinspace{}
9457 \end_inset
9458
9459
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 2
9465 \end_layout
9466
9467 \end_inset
9468
9469 ] Whether the class should 
9470 \emph on
9471 default
9472 \emph default
9473  to having one or two columns.
9474  Can be changed in the 
9475 \begin_inset Flex Noun
9476 status collapsed
9477
9478 \begin_layout Plain Layout
9479 Document\SpecialChar menuseparator
9480 Settings
9481 \end_layout
9482
9483 \end_inset
9484
9485  dialog.
9486 \end_layout
9487
9488 \begin_layout Description
9489 \begin_inset Flex Code
9490 status collapsed
9491
9492 \begin_layout Plain Layout
9493 Counter
9494 \end_layout
9495
9496 \end_inset
9497
9498  [
9499 \begin_inset Flex Code
9500 status collapsed
9501
9502 \begin_layout Plain Layout
9503 string
9504 \end_layout
9505
9506 \end_inset
9507
9508 ] This sequence defines the properties for a counter.
9509  If the counter does not yet exist, it is created; if it does exist, it
9510  is modified.
9511  Must end with 
9512 \begin_inset Quotes eld
9513 \end_inset
9514
9515
9516 \begin_inset Flex Code
9517 status collapsed
9518
9519 \begin_layout Plain Layout
9520 End
9521 \end_layout
9522
9523 \end_inset
9524
9525
9526 \begin_inset Quotes erd
9527 \end_inset
9528
9529 .
9530 \begin_inset Newline newline
9531 \end_inset
9532
9533 See 
9534 \begin_inset CommandInset ref
9535 LatexCommand ref
9536 reference "subsec:Counters"
9537
9538 \end_inset
9539
9540  for details on counters.
9541 \end_layout
9542
9543 \begin_layout Description
9544 \begin_inset Flex Code
9545 status collapsed
9546
9547 \begin_layout Plain Layout
9548 DefaultFont
9549 \end_layout
9550
9551 \end_inset
9552
9553  Sets the default font used to display the document.
9554  See 
9555 \begin_inset CommandInset ref
9556 LatexCommand ref
9557 reference "subsec:Font-description"
9558
9559 \end_inset
9560
9561  for how to declare fonts.
9562  Must end with 
9563 \begin_inset Quotes eld
9564 \end_inset
9565
9566
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 EndFont
9572 \end_layout
9573
9574 \end_inset
9575
9576
9577 \begin_inset Quotes erd
9578 \end_inset
9579
9580 .
9581 \end_layout
9582
9583 \begin_layout Description
9584 \begin_inset Flex Code
9585 status collapsed
9586
9587 \begin_layout Plain Layout
9588 DefaultModule
9589 \end_layout
9590
9591 \end_inset
9592
9593  [
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598 <module>
9599 \end_layout
9600
9601 \end_inset
9602
9603 ] Specifies a module to be included by default with this document class.
9604  The module is specified as filename without the 
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 .module
9610 \end_layout
9611
9612 \end_inset
9613
9614  extension.
9615  The user can still remove the module, but it will be active at the outset.
9616  (This applies only when new files are created, or when this class is chosen
9617  for an existing document.)
9618 \end_layout
9619
9620 \begin_layout Description
9621 \begin_inset Flex Code
9622 status collapsed
9623
9624 \begin_layout Plain Layout
9625 DefaultStyle
9626 \end_layout
9627
9628 \end_inset
9629
9630  [
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 <style>
9636 \end_layout
9637
9638 \end_inset
9639
9640 ] This is the style that will be assigned to new paragraphs, usually 
9641 \begin_inset Flex Noun
9642 status collapsed
9643
9644 \begin_layout Plain Layout
9645 Standard
9646 \end_layout
9647
9648 \end_inset
9649
9650 .
9651  This will default to the first defined style if not given, but you are
9652  encouraged to use this directive.
9653 \end_layout
9654
9655 \begin_layout Description
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 ExcludesModule
9661 \end_layout
9662
9663 \end_inset
9664
9665  [
9666 \begin_inset Flex Code
9667 status collapsed
9668
9669 \begin_layout Plain Layout
9670 <module>
9671 \end_layout
9672
9673 \end_inset
9674
9675 ] This tag indicates that the module (which is specified by filename without
9676  the 
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 .module
9682 \end_layout
9683
9684 \end_inset
9685
9686  extension) cannot be used with this document class.
9687  This might be used in a journal-specific layout file to prevent, say, the
9688  use of the 
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 theorems-sec
9694 \end_layout
9695
9696 \end_inset
9697
9698  module that numbers theorems by section.
9699  This tag may 
9700 \emph on
9701 not
9702 \emph default
9703  be used in a module.
9704  Modules have their own way of excluding other modules (see 
9705 \begin_inset CommandInset ref
9706 LatexCommand ref
9707 reference "subsec:Layout-modules"
9708
9709 \end_inset
9710
9711 ).
9712 \end_layout
9713
9714 \begin_layout Description
9715 \begin_inset Flex Code
9716 status collapsed
9717
9718 \begin_layout Plain Layout
9719 Float
9720 \end_layout
9721
9722 \end_inset
9723
9724  Defines a new float.
9725  See 
9726 \begin_inset CommandInset ref
9727 LatexCommand ref
9728 reference "subsec:Floats"
9729
9730 \end_inset
9731
9732  for details.
9733  Must end with 
9734 \begin_inset Quotes eld
9735 \end_inset
9736
9737
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 End
9743 \end_layout
9744
9745 \end_inset
9746
9747
9748 \begin_inset Quotes erd
9749 \end_inset
9750
9751 .
9752 \end_layout
9753
9754 \begin_layout Description
9755 \begin_inset Flex Code
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759 HTMLPreamble
9760 \end_layout
9761
9762 \end_inset
9763
9764  Sets the information that will be output in the 
9765 \begin_inset Flex Code
9766 status collapsed
9767
9768 \begin_layout Plain Layout
9769 <head>
9770 \end_layout
9771
9772 \end_inset
9773
9774  block when this document class is output to XHTML.
9775  Note that this will completely override any prior 
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 HTMLPreamble
9781 \end_layout
9782
9783 \end_inset
9784
9785  or 
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 AddToHTMLPreamble
9791 \end_layout
9792
9793 \end_inset
9794
9795  declarations.
9796  (Use
9797 \begin_inset Newline newline
9798 \end_inset
9799
9800
9801 \begin_inset Flex Code
9802 status collapsed
9803
9804 \begin_layout Plain Layout
9805 AddToHTMLPreamble
9806 \end_layout
9807
9808 \end_inset
9809
9810  if you just want to add material to the preamble.) Must end with 
9811 \begin_inset Quotes eld
9812 \end_inset
9813
9814
9815 \begin_inset Flex Code
9816 status collapsed
9817
9818 \begin_layout Plain Layout
9819 EndPreamble
9820 \end_layout
9821
9822 \end_inset
9823
9824
9825 \begin_inset Quotes erd
9826 \end_inset
9827
9828 .
9829 \end_layout
9830
9831 \begin_layout Description
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 HTMLTOCSection
9837 \end_layout
9838
9839 \end_inset
9840
9841  [
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 <style>
9847 \end_layout
9848
9849 \end_inset
9850
9851 ] The style to use for the table of contents, bibliography, and so forth,
9852  when the document is output to HTML.
9853  For articles, this should normally be 
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 Section
9859 \end_layout
9860
9861 \end_inset
9862
9863 ; for books 
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 Chapter
9869 \end_layout
9870
9871 \end_inset
9872
9873 .
9874  If it is not given, then \SpecialChar LyX
9875  will attempt to figure out which layout to use.
9876 \end_layout
9877
9878 \begin_layout Description
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 IfCounter
9884 \end_layout
9885
9886 \end_inset
9887
9888  [
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 <counter>
9894 \end_layout
9895
9896 \end_inset
9897
9898 ] Modifies the properties of the given counter.
9899  If the counter does not exist, the statement is ignored.
9900  Must end with 
9901 \begin_inset Quotes eld
9902 \end_inset
9903
9904
9905 \begin_inset Flex Code
9906 status collapsed
9907
9908 \begin_layout Plain Layout
9909 End
9910 \end_layout
9911
9912 \end_inset
9913
9914
9915 \begin_inset Quotes erd
9916 \end_inset
9917
9918 .
9919 \begin_inset Newline newline
9920 \end_inset
9921
9922 See 
9923 \begin_inset CommandInset ref
9924 LatexCommand ref
9925 reference "subsec:Counters"
9926
9927 \end_inset
9928
9929  for details on counters.
9930 \end_layout
9931
9932 \begin_layout Description
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 Input
9938 \end_layout
9939
9940 \end_inset
9941
9942  [
9943 \begin_inset Flex Code
9944 status collapsed
9945
9946 \begin_layout Plain Layout
9947 <filename>
9948 \end_layout
9949
9950 \end_inset
9951
9952 ] This allows you to include another layout definition file within yours
9953  to avoid duplicating commands.
9954  Common examples are the standard layout files, for example, 
9955 \begin_inset Flex Code
9956 status collapsed
9957
9958 \begin_layout Plain Layout
9959 stdclass.inc
9960 \end_layout
9961
9962 \end_inset
9963
9964 , which contains most of the basic layouts.
9965 \end_layout
9966
9967 \begin_layout Description
9968 \begin_inset Flex Code
9969 status collapsed
9970
9971 \begin_layout Plain Layout
9972 InsetLayout
9973 \end_layout
9974
9975 \end_inset
9976
9977  [
9978 \begin_inset Flex Code
9979 status collapsed
9980
9981 \begin_layout Plain Layout
9982 <type>
9983 \end_layout
9984
9985 \end_inset
9986
9987 ] This section (re-)defines the layout of an inset.
9988  It can be applied to an existing inset or to a new, user-defined inset,
9989  e.g., a new character style.
9990  Must end with 
9991 \begin_inset Quotes eld
9992 \end_inset
9993
9994
9995 \begin_inset Flex Code
9996 status collapsed
9997
9998 \begin_layout Plain Layout
9999 End
10000 \end_layout
10001
10002 \end_inset
10003
10004
10005 \begin_inset Quotes erd
10006 \end_inset
10007
10008 .
10009 \begin_inset Newline newline
10010 \end_inset
10011
10012 See 
10013 \begin_inset CommandInset ref
10014 LatexCommand ref
10015 reference "subsec:Flex-insets-and"
10016
10017 \end_inset
10018
10019  for more information.
10020  
10021 \end_layout
10022
10023 \begin_layout Description
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 LeftMargin
10029 \end_layout
10030
10031 \end_inset
10032
10033  [
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 string
10039 \end_layout
10040
10041 \end_inset
10042
10043 ] A string that indicates the width of the left margin on the screen, for
10044  example, 
10045 \begin_inset Quotes eld
10046 \end_inset
10047
10048
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 MMMMM
10054 \end_layout
10055
10056 \end_inset
10057
10058
10059 \begin_inset Quotes erd
10060 \end_inset
10061
10062 .
10063  (Note that this is not a `length', like 
10064 \begin_inset Quotes eld
10065 \end_inset
10066
10067 2ex
10068 \begin_inset Quotes erd
10069 \end_inset
10070
10071 .)
10072 \end_layout
10073
10074 \begin_layout Description
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 MaxCiteNames
10080 \end_layout
10081
10082 \end_inset
10083
10084  [
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 integer
10090 \end_layout
10091
10092 \end_inset
10093
10094 ] An integer that determines the maximal number of names displayed in an
10095  author-year citation before the citation switches to 
10096 \begin_inset Quotes eld
10097 \end_inset
10098
10099 FirstAuthor et al.
10100 \begin_inset Quotes erd
10101 \end_inset
10102
10103 .
10104  Primarily used in cite engine files (see 
10105 \begin_inset CommandInset ref
10106 LatexCommand ref
10107 reference "subsec:Cite-Engine-Files"
10108 plural "false"
10109 caps "false"
10110 noprefix "false"
10111
10112 \end_inset
10113
10114 ).
10115 \end_layout
10116
10117 \begin_layout Description
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 ModifyStyle
10123 \end_layout
10124
10125 \end_inset
10126
10127  [
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 <style>
10133 \end_layout
10134
10135 \end_inset
10136
10137 ] Modifies the properties of the given paragraph style.
10138  If the style does not exist, this section is ignored.
10139  Must end with 
10140 \begin_inset Quotes eld
10141 \end_inset
10142
10143
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 End
10149 \end_layout
10150
10151 \end_inset
10152
10153
10154 \begin_inset Quotes erd
10155 \end_inset
10156
10157 .
10158 \end_layout
10159
10160 \begin_layout Description
10161 \begin_inset Flex Code
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 NoCounter
10166 \end_layout
10167
10168 \end_inset
10169
10170  [
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 <counter>
10176 \end_layout
10177
10178 \end_inset
10179
10180 ] Deletes an existing counter, usually one defined in an included file.
10181 \end_layout
10182
10183 \begin_layout Description
10184 \begin_inset Flex Code
10185 status collapsed
10186
10187 \begin_layout Plain Layout
10188 NoFloat
10189 \end_layout
10190
10191 \end_inset
10192
10193  [
10194 \begin_inset Flex Code
10195 status collapsed
10196
10197 \begin_layout Plain Layout
10198 <float>
10199 \end_layout
10200
10201 \end_inset
10202
10203 ] Deletes an existing float.
10204  This is particularly useful when you want to suppress a float that has
10205  been defined in an input file.
10206 \end_layout
10207
10208 \begin_layout Description
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 NoStyle
10214 \end_layout
10215
10216 \end_inset
10217
10218  [
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 <style>
10224 \end_layout
10225
10226 \end_inset
10227
10228 ] Deletes an existing style.
10229 \end_layout
10230
10231 \begin_layout Description
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 OutlinerName
10237 \end_layout
10238
10239 \end_inset
10240
10241  [
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 <type>
10247 \end_layout
10248
10249 \end_inset
10250
10251 ] [
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 <string>
10257 \end_layout
10258
10259 \end_inset
10260
10261 ] Define a new table of contents with type 
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 <type>
10267 \end_layout
10268
10269 \end_inset
10270
10271  and name 
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 <string>
10277 \end_layout
10278
10279 \end_inset
10280
10281 .
10282  See also the AddToToc commands.
10283 \end_layout
10284
10285 \begin_layout Description
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 OutputFormat
10291 \end_layout
10292
10293 \end_inset
10294
10295  [
10296 \begin_inset Flex Code
10297 status collapsed
10298
10299 \begin_layout Plain Layout
10300 <format>
10301 \end_layout
10302
10303 \end_inset
10304
10305 ] The file format (as defined in the \SpecialChar LyX
10306  preferences) produced by this document
10307  class.
10308  It is mainly useful when 
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 OutputType
10314 \end_layout
10315
10316 \end_inset
10317
10318  is 
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 literate
10324 \end_layout
10325
10326 \end_inset
10327
10328  and one wants to define a new type of literate document.
10329  The format is reset to 
10330 \change_deleted 5863208 1594239413
10331
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 docbook
10341 \end_layout
10342
10343 \end_inset
10344
10345
10346 \begin_inset Quotes erd
10347 \end_inset
10348
10349  or
10350 \change_unchanged
10351  
10352 \begin_inset Quotes eld
10353 \end_inset
10354
10355
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 latex
10361 \end_layout
10362
10363 \end_inset
10364
10365
10366 \begin_inset Quotes erd
10367 \end_inset
10368
10369  when the corresponding 
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374 OutputType
10375 \end_layout
10376
10377 \end_inset
10378
10379  parameter is encountered.
10380 \end_layout
10381
10382 \begin_layout Description
10383 \begin_inset Flex Code
10384 status collapsed
10385
10386 \begin_layout Plain Layout
10387 OutputType
10388 \end_layout
10389
10390 \end_inset
10391
10392  [
10393 \begin_inset Flex Code
10394 status collapsed
10395
10396 \begin_layout Plain Layout
10397
10398 \emph on
10399 lat
10400 \emph default
10401 ex
10402 \end_layout
10403
10404 \end_inset
10405
10406
10407 \change_deleted 5863208 1594239430
10408
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 docbook
10414 \end_layout
10415
10416 \end_inset
10417
10418 ,
10419 \change_unchanged
10420  
10421 \begin_inset Flex Code
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 literate
10426 \end_layout
10427
10428 \end_inset
10429
10430 ] Specifies what sort of output documents using this class will produce.
10431 \end_layout
10432
10433 \begin_layout Description
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 PackageOptions
10439 \end_layout
10440
10441 \end_inset
10442
10443  [
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448 string
10449 \end_layout
10450
10451 \end_inset
10452
10453  
10454 \begin_inset Flex Code
10455 status collapsed
10456
10457 \begin_layout Plain Layout
10458 string
10459 \end_layout
10460
10461 \end_inset
10462
10463 ] Specifies options, given in the second string, for the package named by
10464  the first string.
10465  For example, 
10466 \begin_inset Quotes eld
10467 \end_inset
10468
10469
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 PackageOptions natbib square
10475 \end_layout
10476
10477 \end_inset
10478
10479
10480 \begin_inset Quotes erd
10481 \end_inset
10482
10483  will cause 
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 natbib
10489 \end_layout
10490
10491 \end_inset
10492
10493  to be loaded with the 
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 square
10499 \end_layout
10500
10501 \end_inset
10502
10503  option.
10504  (For \SpecialChar TeX
10505 perts, this causes \SpecialChar LyX
10506  to output: 
10507 \begin_inset Flex Code
10508 status collapsed
10509
10510 \begin_layout Plain Layout
10511
10512 \backslash
10513 PassOptionsToPackage{natbib}{square}
10514 \end_layout
10515
10516 \end_inset
10517
10518  prior to loading 
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523 natbib
10524 \end_layout
10525
10526 \end_inset
10527
10528 .)
10529 \change_inserted -712698321 1565102364
10530
10531 \end_layout
10532
10533 \begin_layout Description
10534
10535 \change_inserted -712698321 1565102470
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540
10541 \change_inserted -712698321 1565102365
10542 PageSize
10543 \end_layout
10544
10545 \end_inset
10546
10547  [
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552
10553 \change_inserted -712698321 1565105222
10554
10555 \emph on
10556 custom
10557 \emph default
10558 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10559  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10560 \end_layout
10561
10562 \end_inset
10563
10564 ] The default page size.
10565  This is used by some converters.
10566 \change_unchanged
10567
10568 \end_layout
10569
10570 \begin_layout Description
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 PageStyle
10576 \end_layout
10577
10578 \end_inset
10579
10580  [
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585
10586 \emph on
10587 plain
10588 \end_layout
10589
10590 \end_inset
10591
10592
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 empty
10598 \end_layout
10599
10600 \end_inset
10601
10602
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 headings
10608 \end_layout
10609
10610 \end_inset
10611
10612 ] The default pagestyle.
10613  Can be changed in the 
10614 \begin_inset Flex Noun
10615 status collapsed
10616
10617 \begin_layout Plain Layout
10618 Document\SpecialChar menuseparator
10619 Settings
10620 \end_layout
10621
10622 \end_inset
10623
10624  dialog.
10625 \end_layout
10626
10627 \begin_layout Description
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 Preamble
10633 \end_layout
10634
10635 \end_inset
10636
10637  Sets the preamble for the \SpecialChar LaTeX
10638  document.
10639  Note that this will completely override any prior 
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 Preamble
10645 \end_layout
10646
10647 \end_inset
10648
10649  or 
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 AddToPreamble
10655 \end_layout
10656
10657 \end_inset
10658
10659  declarations.
10660  (Use 
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 AddToPreamble
10666 \end_layout
10667
10668 \end_inset
10669
10670  if you just want to add material to the preamble.) Must end with 
10671 \begin_inset Quotes eld
10672 \end_inset
10673
10674
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 EndPreamble
10680 \end_layout
10681
10682 \end_inset
10683
10684
10685 \begin_inset Quotes erd
10686 \end_inset
10687
10688 .
10689 \end_layout
10690
10691 \begin_layout Description
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 Provides
10697 \end_layout
10698
10699 \end_inset
10700
10701  [
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 string
10707 \end_layout
10708
10709 \end_inset
10710
10711 ] [
10712 \begin_inset Flex Code
10713 status collapsed
10714
10715 \begin_layout Plain Layout
10716
10717 \emph on
10718 0
10719 \end_layout
10720
10721 \end_inset
10722
10723 ,
10724 \begin_inset space \thinspace{}
10725 \end_inset
10726
10727
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 1
10733 \end_layout
10734
10735 \end_inset
10736
10737 ] Whether the class already provides the feature 
10738 \begin_inset Flex Code
10739 status collapsed
10740
10741 \begin_layout Plain Layout
10742 string
10743 \end_layout
10744
10745 \end_inset
10746
10747 .
10748  A feature is in general the name of a package (e.
10749 \begin_inset space \thinspace{}
10750 \end_inset
10751
10752 g.
10753 \begin_inset space \space{}
10754 \end_inset
10755
10756
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 amsmath
10762 \end_layout
10763
10764 \end_inset
10765
10766  or 
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 makeidx
10772 \end_layout
10773
10774 \end_inset
10775
10776 ) or a macro (e.
10777 \begin_inset space \thinspace{}
10778 \end_inset
10779
10780 g.
10781 \begin_inset space \space{}
10782 \end_inset
10783
10784
10785 \begin_inset Flex Code
10786 status collapsed
10787
10788 \begin_layout Plain Layout
10789 url
10790 \end_layout
10791
10792 \end_inset
10793
10794  or 
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 boldsymbol
10800 \end_layout
10801
10802 \end_inset
10803
10804 ).
10805  See 
10806 \begin_inset CommandInset ref
10807 LatexCommand ref
10808 reference "chap:List-of-functions"
10809
10810 \end_inset
10811
10812  for the list of features.
10813 \end_layout
10814
10815 \begin_layout Description
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 ProvidesModule
10821 \end_layout
10822
10823 \end_inset
10824
10825  [
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 string
10831 \end_layout
10832
10833 \end_inset
10834
10835 ] Indicates that this layout provides the functionality of the module mentioned,
10836  which should be specified by the filename without the 
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 .module
10842 \end_layout
10843
10844 \end_inset
10845
10846  extension.
10847  This will typically be used if the layout includes the module directly,
10848  rather than using the 
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 DefaultModule
10854 \end_layout
10855
10856 \end_inset
10857
10858  tag to indicate that it ought to be used.
10859  It could also be used in a module that provided an alternate implementation
10860  of the same functionality.
10861 \end_layout
10862
10863 \begin_layout Description
10864 \begin_inset Flex Code
10865 status collapsed
10866
10867 \begin_layout Plain Layout
10868 ProvideStyle
10869 \end_layout
10870
10871 \end_inset
10872
10873  [
10874 \begin_inset Flex Code
10875 status collapsed
10876
10877 \begin_layout Plain Layout
10878 <style>
10879 \end_layout
10880
10881 \end_inset
10882
10883 ] Creates a new paragraph style if it does not already exist.
10884  If the style does exist, this section is ignored.
10885  Must end with 
10886 \begin_inset Quotes eld
10887 \end_inset
10888
10889
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 End
10895 \end_layout
10896
10897 \end_inset
10898
10899
10900 \begin_inset Quotes erd
10901 \end_inset
10902
10903 .
10904 \end_layout
10905
10906 \begin_layout Description
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 Requires
10912 \end_layout
10913
10914 \end_inset
10915
10916  [
10917 \begin_inset Flex Code
10918 status collapsed
10919
10920 \begin_layout Plain Layout
10921 string
10922 \end_layout
10923
10924 \end_inset
10925
10926 ] Whether the class requires the feature 
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 string
10932 \end_layout
10933
10934 \end_inset
10935
10936 .
10937  Multiple features must be separated by commas.
10938  Note that you can only request supported features.
10939  (See 
10940 \begin_inset CommandInset ref
10941 LatexCommand ref
10942 reference "chap:List-of-functions"
10943
10944 \end_inset
10945
10946  for the list of features.).
10947  If you require a package with specific options, you can additionally use
10948  
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 PackageOptions
10954 \end_layout
10955
10956 \end_inset
10957
10958 .
10959 \end_layout
10960
10961 \begin_layout Description
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966 RightMargin
10967 \end_layout
10968
10969 \end_inset
10970
10971  [
10972 \begin_inset Flex Code
10973 status collapsed
10974
10975 \begin_layout Plain Layout
10976 string
10977 \end_layout
10978
10979 \end_inset
10980
10981 ] A string that indicates the width of the right margin on the screen, for
10982  example, 
10983 \begin_inset Quotes eld
10984 \end_inset
10985
10986
10987 \begin_inset Flex Code
10988 status collapsed
10989
10990 \begin_layout Plain Layout
10991 MMMMM
10992 \end_layout
10993
10994 \end_inset
10995
10996
10997 \begin_inset Quotes erd
10998 \end_inset
10999
11000 .
11001 \end_layout
11002
11003 \begin_layout Description
11004 \begin_inset Flex Code
11005 status collapsed
11006
11007 \begin_layout Plain Layout
11008 SecNumDepth
11009 \end_layout
11010
11011 \end_inset
11012
11013  [
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 int=3
11019 \end_layout
11020
11021 \end_inset
11022
11023 ] Sets which divisions get numbered.
11024  Corresponds to the
11025 \begin_inset Newline newline
11026 \end_inset
11027
11028
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033 secnumdepth
11034 \end_layout
11035
11036 \end_inset
11037
11038  counter in \SpecialChar LaTeX
11039 .
11040 \end_layout
11041
11042 \begin_layout Description
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 Sides
11048 \end_layout
11049
11050 \end_inset
11051
11052  [
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057
11058 \emph on
11059 1
11060 \end_layout
11061
11062 \end_inset
11063
11064 ,
11065 \begin_inset space \thinspace{}
11066 \end_inset
11067
11068
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073 2
11074 \end_layout
11075
11076 \end_inset
11077
11078 ] Whether the class-default should be printing on one or both sides of the
11079  paper.
11080  Can be changed in the 
11081 \begin_inset Flex Noun
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 Document\SpecialChar menuseparator
11086 Settings
11087 \end_layout
11088
11089 \end_inset
11090
11091  dialog.
11092 \end_layout
11093
11094 \begin_layout Description
11095 \begin_inset Flex Code
11096 status collapsed
11097
11098 \begin_layout Plain Layout
11099 Style
11100 \end_layout
11101
11102 \end_inset
11103
11104  [
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 <name>
11110 \end_layout
11111
11112 \end_inset
11113
11114 ] This sequence defines a paragraph style.
11115  If the style does not yet exist, it is created; if it does exist, its parameter
11116 s are modified.
11117  Must end with 
11118 \begin_inset Quotes eld
11119 \end_inset
11120
11121
11122 \begin_inset Flex Code
11123 status collapsed
11124
11125 \begin_layout Plain Layout
11126 End
11127 \end_layout
11128
11129 \end_inset
11130
11131
11132 \begin_inset Quotes erd
11133 \end_inset
11134
11135 .
11136 \begin_inset Newline newline
11137 \end_inset
11138
11139 See 
11140 \begin_inset CommandInset ref
11141 LatexCommand ref
11142 reference "subsec:Paragraph-Styles"
11143
11144 \end_inset
11145
11146  for details on paragraph styles.
11147 \change_inserted -712698321 1553617804
11148
11149 \end_layout
11150
11151 \begin_layout Description
11152
11153 \change_inserted -712698321 1553617862
11154 \begin_inset Flex Code
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158
11159 \change_inserted -712698321 1553617809
11160 TableStyle
11161 \end_layout
11162
11163 \end_inset
11164
11165  [
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170
11171 \change_inserted -712698321 1553617805
11172 <name>
11173 \end_layout
11174
11175 \end_inset
11176
11177 ] defines the default table style that is used when inserting a table.
11178  The following styles are available:
11179 \end_layout
11180
11181 \begin_deeper
11182 \begin_layout Itemize
11183
11184 \change_inserted -712698321 1554308039
11185 \begin_inset Flex Code
11186 status collapsed
11187
11188 \begin_layout Plain Layout
11189
11190 \change_inserted -712698321 1554307928
11191 Formal_with_Footline
11192 \change_unchanged
11193
11194 \end_layout
11195
11196 \end_inset
11197
11198 : formal (
11199 \begin_inset Quotes eld
11200 \end_inset
11201
11202 booktabs
11203 \begin_inset Quotes erd
11204 \end_inset
11205
11206 ) style with horizontal lines only, using a bold top and bottom line, the
11207  first and last row are additionally separated from the table body with
11208  a thin middle line.
11209 \end_layout
11210
11211 \begin_layout Itemize
11212
11213 \change_inserted -712698321 1554308087
11214 \begin_inset Flex Code
11215 status collapsed
11216
11217 \begin_layout Plain Layout
11218
11219 \change_inserted -712698321 1554308042
11220 Formal_without_Footline
11221 \end_layout
11222
11223 \end_inset
11224
11225 : same as the above, but the last row is not separated with a middle line
11226  from the body.
11227 \end_layout
11228
11229 \begin_layout Itemize
11230
11231 \change_inserted -712698321 1553618031
11232 \begin_inset Flex Code
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236
11237 \change_inserted -712698321 1553618006
11238 Simple_Grid
11239 \end_layout
11240
11241 \end_inset
11242
11243 : Simple table lines.
11244 \end_layout
11245
11246 \begin_layout Itemize
11247
11248 \change_inserted -712698321 1553618309
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253
11254 \change_inserted -712698321 1553618031
11255 Grid_with_Head
11256 \end_layout
11257
11258 \end_inset
11259
11260 : Like 
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265
11266 \change_inserted -712698321 1553618043
11267 Simple_Grid
11268 \end_layout
11269
11270 \end_inset
11271
11272 , but with the header column offset with a second horizontal line.
11273  This is also the default style of \SpecialChar LyX
11274 .
11275 \end_layout
11276
11277 \begin_layout Itemize
11278
11279 \change_inserted -712698321 1553618280
11280 \begin_inset Flex Code
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284
11285 \change_inserted -712698321 1553618261
11286 No_Borders
11287 \end_layout
11288
11289 \end_inset
11290
11291 : Table without lines.
11292 \change_unchanged
11293
11294 \end_layout
11295
11296 \end_deeper
11297 \begin_layout Description
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 TitleLatexName
11303 \end_layout
11304
11305 \end_inset
11306
11307  [
11308 \begin_inset Flex Code
11309 status collapsed
11310
11311 \begin_layout Plain Layout
11312 string="maketitle"
11313 \end_layout
11314
11315 \end_inset
11316
11317 ] The name of the command or environment to be used with 
11318 \begin_inset Flex Code
11319 status collapsed
11320
11321 \begin_layout Plain Layout
11322 TitleLatexType
11323 \end_layout
11324
11325 \end_inset
11326
11327 .
11328 \end_layout
11329
11330 \begin_layout Description
11331 \begin_inset Flex Code
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335 TitleLatexType
11336 \end_layout
11337
11338 \end_inset
11339
11340  [
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345
11346 \emph on
11347 CommandAfter
11348 \end_layout
11349
11350 \end_inset
11351
11352
11353 \begin_inset Flex Code
11354 status collapsed
11355
11356 \begin_layout Plain Layout
11357 Environment
11358 \end_layout
11359
11360 \end_inset
11361
11362 ] Indicates what kind of markup is used to define the title of a document.
11363  
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 CommandAfter
11369 \end_layout
11370
11371 \end_inset
11372
11373  means that the macro with name 
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 TitleLatexName
11379 \end_layout
11380
11381 \end_inset
11382
11383  will be inserted after the last layout which has 
11384 \begin_inset Quotes eld
11385 \end_inset
11386
11387
11388 \begin_inset Flex Code
11389 status collapsed
11390
11391 \begin_layout Plain Layout
11392 InTitle
11393 \begin_inset space ~
11394 \end_inset
11395
11396 1
11397 \end_layout
11398
11399 \end_inset
11400
11401
11402 \begin_inset Quotes erd
11403 \end_inset
11404
11405 .
11406  
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411 Environment
11412 \end_layout
11413
11414 \end_inset
11415
11416  corresponds to the case where all layouts which have 
11417 \begin_inset Quotes eld
11418 \end_inset
11419
11420
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425 InTitle
11426 \begin_inset space ~
11427 \end_inset
11428
11429 1
11430 \end_layout
11431
11432 \end_inset
11433
11434
11435 \begin_inset Quotes erd
11436 \end_inset
11437
11438  should be enclosed into the 
11439 \begin_inset Flex Code
11440 status collapsed
11441
11442 \begin_layout Plain Layout
11443 TitleLatexName
11444 \end_layout
11445
11446 \end_inset
11447
11448  environment.
11449 \end_layout
11450
11451 \begin_layout Description
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 TocDepth
11457 \end_layout
11458
11459 \end_inset
11460
11461  [
11462 \begin_inset Flex Code
11463 status collapsed
11464
11465 \begin_layout Plain Layout
11466 int=3
11467 \end_layout
11468
11469 \end_inset
11470
11471 ] Sets which divisions are included in the table of contents.
11472  Corresponds to the 
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 tocdepth
11478 \end_layout
11479
11480 \end_inset
11481
11482  counter in \SpecialChar LaTeX
11483 .
11484 \end_layout
11485
11486 \begin_layout Subsection
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 ClassOptions
11492 \end_layout
11493
11494 \end_inset
11495
11496  section
11497 \begin_inset CommandInset label
11498 LatexCommand label
11499 name "subsec:ClassOptions"
11500
11501 \end_inset
11502
11503
11504 \end_layout
11505
11506 \begin_layout Standard
11507 The 
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 ClassOptions
11513 \end_layout
11514
11515 \end_inset
11516
11517  section can contain the following entries:
11518 \end_layout
11519
11520 \begin_layout Description
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 FontSize
11526 \end_layout
11527
11528 \end_inset
11529
11530  [
11531 \begin_inset Flex Code
11532 status collapsed
11533
11534 \begin_layout Plain Layout
11535 string="10|11|12"
11536 \end_layout
11537
11538 \end_inset
11539
11540 ] The list of available font sizes for the document's main font, separated
11541  by 
11542 \begin_inset Quotes eld
11543 \end_inset
11544
11545
11546 \begin_inset Flex Code
11547 status collapsed
11548
11549 \begin_layout Plain Layout
11550 |
11551 \end_layout
11552
11553 \end_inset
11554
11555
11556 \begin_inset Quotes erd
11557 \end_inset
11558
11559 .
11560
11561 \change_inserted -712698321 1565110196
11562  Any number is possible.
11563 \end_layout
11564
11565 \begin_layout Description
11566
11567 \change_inserted -712698321 1565110259
11568 \begin_inset Flex Code
11569 status collapsed
11570
11571 \begin_layout Plain Layout
11572
11573 \change_inserted -712698321 1565110199
11574 FontSizeFormat
11575 \end_layout
11576
11577 \end_inset
11578
11579  [
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584
11585 \change_inserted -712698321 1565110196
11586 string
11587 \end_layout
11588
11589 \end_inset
11590
11591 ] The format for the font size option.
11592  Default: 
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597
11598 \change_inserted -712698321 1565110238
11599 $$spt
11600 \change_unchanged
11601
11602 \end_layout
11603
11604 \end_inset
11605
11606 .
11607  
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612
11613 \change_inserted -712698321 1565110248
11614 $$s
11615 \end_layout
11616
11617 \end_inset
11618
11619  is a placeholder for the font size.
11620 \change_unchanged
11621
11622 \end_layout
11623
11624 \begin_layout Description
11625
11626 \change_deleted 5863208 1594239483
11627 \begin_inset Flex Code
11628 status collapsed
11629
11630 \begin_layout Plain Layout
11631 Header
11632 \end_layout
11633
11634 \end_inset
11635
11636  Used to set the DTD line with XML-based output classes.
11637  E.
11638 \begin_inset space \thinspace{}
11639 \end_inset
11640
11641 g.: PUBLIC 
11642 \begin_inset Quotes eld
11643 \end_inset
11644
11645 -//OASIS//DTD DocBook V4.2//EN
11646 \begin_inset Quotes erd
11647 \end_inset
11648
11649 .
11650 \change_inserted -712698321 1565101761
11651
11652 \end_layout
11653
11654 \begin_layout Description
11655
11656 \change_inserted -712698321 1565180598
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661
11662 \change_inserted -712698321 1565101918
11663 PageSize
11664 \end_layout
11665
11666 \end_inset
11667
11668  [
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673
11674 \change_inserted -712698321 1565105399
11675 string="letter|\SpecialChar allowbreak
11676 legal|\SpecialChar allowbreak
11677 executive|\SpecialChar allowbreak
11678 a0|\SpecialChar allowbreak
11679 a1|\SpecialChar allowbreak
11680 a2|\SpecialChar allowbreak
11681 a3|\SpecialChar allowbreak
11682 a4|\SpecialChar allowbreak
11683 a5|\SpecialChar allowbreak
11684 a6|\SpecialChar allowbreak
11685 b0|\SpecialChar allowbreak
11686 b1|\SpecialChar allowbreak
11687 b2|\SpecialChar allowbreak
11688 b3|\SpecialChar allowbreak
11689 b4|\SpecialChar allowbreak
11690 b5|\SpecialChar allowbreak
11691 b6|\SpecialChar allowbreak
11692 c0|\SpecialChar allowbreak
11693 c1|\SpecialChar allowbreak
11694 c
11695 2|\SpecialChar allowbreak
11696 c3|\SpecialChar allowbreak
11697 c4|\SpecialChar allowbreak
11698 c5|\SpecialChar allowbreak
11699 c6|\SpecialChar allowbreak
11700 b0j|\SpecialChar allowbreak
11701 b1j|\SpecialChar allowbreak
11702 b2j|\SpecialChar allowbreak
11703 b3j|\SpecialChar allowbreak
11704 b4j|\SpecialChar allowbreak
11705 b5j|\SpecialChar allowbreak
11706 b6j"
11707 \end_layout
11708
11709 \end_inset
11710
11711 ] The list of available page sizes, separated by 
11712 \begin_inset Quotes eld
11713 \end_inset
11714
11715
11716 \begin_inset Flex Code
11717 status collapsed
11718
11719 \begin_layout Plain Layout
11720
11721 \change_inserted -712698321 1565101779
11722 |
11723 \end_layout
11724
11725 \end_inset
11726
11727
11728 \begin_inset Quotes erd
11729 \end_inset
11730
11731 .
11732  Currently, only the listed sizes are supported.
11733  Other sizes might be entered as custom class option.
11734 \end_layout
11735
11736 \begin_layout Description
11737
11738 \change_inserted -712698321 1565180623
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743
11744 \change_inserted -712698321 1565180605
11745 PageSizeFormat
11746 \end_layout
11747
11748 \end_inset
11749
11750  [
11751 \begin_inset Flex Code
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755
11756 \change_inserted -712698321 1565180601
11757 string
11758 \end_layout
11759
11760 \end_inset
11761
11762 ] The format for the page size option.
11763  Default: 
11764 \begin_inset Flex Code
11765 status collapsed
11766
11767 \begin_layout Plain Layout
11768
11769 \change_inserted -712698321 1565180618
11770 $$spaper
11771 \end_layout
11772
11773 \end_inset
11774
11775 .
11776  
11777 \begin_inset Flex Code
11778 status collapsed
11779
11780 \begin_layout Plain Layout
11781
11782 \change_inserted -712698321 1565180601
11783 $$s
11784 \end_layout
11785
11786 \end_inset
11787
11788  is a placeholder for the paper size.
11789 \change_unchanged
11790
11791 \end_layout
11792
11793 \begin_layout Description
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 PageStyle
11799 \end_layout
11800
11801 \end_inset
11802
11803  [
11804 \begin_inset Flex Code
11805 status collapsed
11806
11807 \begin_layout Plain Layout
11808 string="empty|plain|headings|fancy"
11809 \end_layout
11810
11811 \end_inset
11812
11813 ] The list of available page sty\SpecialChar softhyphen
11814 les, separated by 
11815 \begin_inset Quotes eld
11816 \end_inset
11817
11818
11819 \begin_inset Flex Code
11820 status collapsed
11821
11822 \begin_layout Plain Layout
11823 |
11824 \end_layout
11825
11826 \end_inset
11827
11828
11829 \begin_inset Quotes erd
11830 \end_inset
11831
11832 .
11833 \end_layout
11834
11835 \begin_layout Description
11836 \begin_inset Flex Code
11837 status collapsed
11838
11839 \begin_layout Plain Layout
11840 Other
11841 \end_layout
11842
11843 \end_inset
11844
11845  [
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 string=""
11851 \end_layout
11852
11853 \end_inset
11854
11855 ] Some document class options, separated by a comma, that will be added
11856  to the optional part of the 
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861
11862 \backslash
11863 documentclass
11864 \end_layout
11865
11866 \end_inset
11867
11868  command.
11869 \end_layout
11870
11871 \begin_layout Standard
11872 The 
11873 \begin_inset Flex Code
11874 status collapsed
11875
11876 \begin_layout Plain Layout
11877 ClassOptions
11878 \end_layout
11879
11880 \end_inset
11881
11882  section must end with 
11883 \begin_inset Quotes eld
11884 \end_inset
11885
11886
11887 \begin_inset Flex Code
11888 status collapsed
11889
11890 \begin_layout Plain Layout
11891 End
11892 \end_layout
11893
11894 \end_inset
11895
11896
11897 \begin_inset Quotes erd
11898 \end_inset
11899
11900 .
11901 \end_layout
11902
11903 \begin_layout Subsection
11904 Paragraph styles
11905 \begin_inset CommandInset label
11906 LatexCommand label
11907 name "subsec:Paragraph-Styles"
11908
11909 \end_inset
11910
11911
11912 \end_layout
11913
11914 \begin_layout Standard
11915 A paragraph style description looks like this:
11916 \begin_inset Foot
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 Note that this will either define a new style or modify an existing one.
11921 \end_layout
11922
11923 \end_inset
11924
11925
11926 \end_layout
11927
11928 \begin_layout LyX-Code
11929 Style 
11930 \family roman
11931 \emph on
11932 name
11933 \end_layout
11934
11935 \begin_layout LyX-Code
11936  ...
11937 \end_layout
11938
11939 \begin_layout LyX-Code
11940 End
11941 \end_layout
11942
11943 \begin_layout Standard
11944 where the following commands are allowed:
11945 \end_layout
11946
11947 \begin_layout Description
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 AddToToc
11953 \end_layout
11954
11955 \end_inset
11956
11957  [
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 string
11963 \end_layout
11964
11965 \end_inset
11966
11967 =""] This paragraph will appear in the table of contents of the given type.
11968  An empty string disables.
11969  See also the OutlinerName and the IsTocCaption commands.
11970  Default: disabled.
11971 \end_layout
11972
11973 \begin_layout Description
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 Align
11979 \end_layout
11980
11981 \end_inset
11982
11983  [
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988
11989 \emph on
11990 block
11991 \emph default
11992 , left, right, center
11993 \end_layout
11994
11995 \end_inset
11996
11997 ] Paragraph alignment.
11998 \end_layout
11999
12000 \begin_layout Description
12001 \begin_inset Flex Code
12002 status collapsed
12003
12004 \begin_layout Plain Layout
12005 AlignPossible
12006 \end_layout
12007
12008 \end_inset
12009
12010  [
12011 \begin_inset Flex Code
12012 status collapsed
12013
12014 \begin_layout Plain Layout
12015
12016 \emph on
12017 block
12018 \emph default
12019 , left, right, center
12020 \end_layout
12021
12022 \end_inset
12023
12024 ] A comma separated list of permitted alignments.
12025  (Some \SpecialChar LaTeX
12026  styles prohibit certain alignments, since those wouldn't make sense.
12027  For example a right-aligned or centered enumeration isn't possible.)
12028 \end_layout
12029
12030 \begin_layout Description
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035 Argument
12036 \end_layout
12037
12038 \end_inset
12039
12040  [
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045 int
12046 \end_layout
12047
12048 \end_inset
12049
12050 ] Defines argument number <int> of a command\SpecialChar breakableslash
12051 environment associated with
12052  the current style.
12053  This is useful for things like section headings, and only makes sense with
12054  \SpecialChar LaTeX
12055 .
12056  Every (optional or required) argument of a command or environment – except
12057  for the required argument that is associated with the content of the paragraph
12058  itself – has a separate definition, where the number specifies the order
12059  of the arguments.
12060  The definition must end with 
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 EndArgument
12066 \end_layout
12067
12068 \end_inset
12069
12070 .
12071  So a command with two optional arguments has:
12072 \end_layout
12073
12074 \begin_deeper
12075 \begin_layout Quote
12076
12077 \family typewriter
12078 Argument 1
12079 \end_layout
12080
12081 \begin_layout Quote
12082
12083 \family typewriter
12084 ...
12085 \end_layout
12086
12087 \begin_layout Quote
12088
12089 \family typewriter
12090 EndArgument
12091 \end_layout
12092
12093 \begin_layout Quote
12094
12095 \family typewriter
12096 Argument 2
12097 \end_layout
12098
12099 \begin_layout Quote
12100
12101 \family typewriter
12102 ...
12103 \end_layout
12104
12105 \begin_layout Quote
12106
12107 \family typewriter
12108 EndArgument
12109 \end_layout
12110
12111 \begin_layout Standard
12112 Inside the 
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 Argument
12118 \end_layout
12119
12120 \end_inset
12121
12122  definition, the following specifications are possible:
12123 \end_layout
12124
12125 \begin_layout Itemize
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 LabelString
12131 \end_layout
12132
12133 \end_inset
12134
12135  
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140 [string]
12141 \end_layout
12142
12143 \end_inset
12144
12145  The string that will appear both in the menu (to insert this argument)
12146  and on the argument inset button (unless you also specify a separate 
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 MenuString
12152 \end_layout
12153
12154 \end_inset
12155
12156 ).
12157  For the menu, you can define an accelerator by appending the respective
12158  character to the string, divided by 
12159 \begin_inset Quotes eld
12160 \end_inset
12161
12162 |
12163 \begin_inset Quotes erd
12164 \end_inset
12165
12166  (e.
12167 \begin_inset space \thinspace{}
12168 \end_inset
12169
12170 g.
12171 \begin_inset space \space{}
12172 \end_inset
12173
12174
12175 \begin_inset Quotes eld
12176 \end_inset
12177
12178
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 Short Title|S
12184 \end_layout
12185
12186 \end_inset
12187
12188
12189 \begin_inset Quotes erd
12190 \end_inset
12191
12192 ).
12193 \end_layout
12194
12195 \begin_layout Itemize
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 MenuString
12201 \end_layout
12202
12203 \end_inset
12204
12205  
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 [string]
12211 \end_layout
12212
12213 \end_inset
12214
12215  A separate string for the menu.
12216  You can define an accelerator by appending the respective character to
12217  the string, divided by 
12218 \begin_inset Quotes eld
12219 \end_inset
12220
12221 |
12222 \begin_inset Quotes erd
12223 \end_inset
12224
12225  (e.
12226 \begin_inset space \thinspace{}
12227 \end_inset
12228
12229 g.
12230 \begin_inset space \space{}
12231 \end_inset
12232
12233
12234 \begin_inset Quotes eld
12235 \end_inset
12236
12237
12238 \begin_inset Flex Code
12239 status collapsed
12240
12241 \begin_layout Plain Layout
12242 Short Title|S
12243 \end_layout
12244
12245 \end_inset
12246
12247
12248 \begin_inset Quotes erd
12249 \end_inset
12250
12251 ).
12252  This specification is optional.
12253  If it is not given the 
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 LabelString
12259 \end_layout
12260
12261 \end_inset
12262
12263  will be used instead for the menu.
12264 \end_layout
12265
12266 \begin_layout Itemize
12267 \begin_inset Flex Code
12268 status collapsed
12269
12270 \begin_layout Plain Layout
12271 Tooltip
12272 \end_layout
12273
12274 \end_inset
12275
12276  
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281 [string]
12282 \end_layout
12283
12284 \end_inset
12285
12286  A longer explanatory text that appears in the tooltip when hovering over
12287  the argument inset.
12288 \end_layout
12289
12290 \begin_layout Itemize
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 Mandatory
12296 \end_layout
12297
12298 \end_inset
12299
12300  [
12301 \begin_inset Flex Code
12302 status collapsed
12303
12304 \begin_layout Plain Layout
12305
12306 \emph on
12307 0
12308 \end_layout
12309
12310 \end_inset
12311
12312 ,
12313 \begin_inset space \thinspace{}
12314 \end_inset
12315
12316
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 1
12322 \end_layout
12323
12324 \end_inset
12325
12326 ] Declare if this is a mandatory (1) or an optional (0) argument.
12327  Mandatory arguments will be output empty if not given, while optional arguments
12328  will not be output at all.
12329  By default, mandatory arguments are delimited by 
12330 \begin_inset Flex Code
12331 status collapsed
12332
12333 \begin_layout Plain Layout
12334 {...}
12335 \end_layout
12336
12337 \end_inset
12338
12339 , while optional arguments are delimited by 
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 [...]
12345 \end_layout
12346
12347 \end_inset
12348
12349
12350 \change_inserted -712698321 1555579782
12351
12352 \end_layout
12353
12354 \begin_layout Itemize
12355
12356 \change_inserted -712698321 1555579780
12357 \begin_inset Flex Code
12358 status collapsed
12359
12360 \begin_layout Plain Layout
12361
12362 \change_inserted -712698321 1555579780
12363 NewlineCmd
12364 \end_layout
12365
12366 \end_inset
12367
12368  
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373
12374 \change_inserted -712698321 1555579780
12375 [string]
12376 \end_layout
12377
12378 \end_inset
12379
12380  Option to define a different command (from the default 
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385
12386 \change_inserted -712698321 1555579780
12387
12388 \backslash
12389
12390 \backslash
12391
12392 \end_layout
12393
12394 \end_inset
12395
12396 ) to be used for line breaks.
12397  The initial backslash must not be specified.
12398 \change_unchanged
12399
12400 \end_layout
12401
12402 \begin_layout Itemize
12403 \begin_inset Flex Code
12404 status collapsed
12405
12406 \begin_layout Plain Layout
12407 Requires
12408 \end_layout
12409
12410 \end_inset
12411
12412  
12413 \begin_inset Flex Code
12414 status collapsed
12415
12416 \begin_layout Plain Layout
12417 [int=0]
12418 \end_layout
12419
12420 \end_inset
12421
12422  defines another argument (by its number) which this argument requires to
12423  be output if it is itself output.
12424  E.
12425 \begin_inset space \thinspace{}
12426 \end_inset
12427
12428 g., in \SpecialChar LaTeX
12429  commands, optional arguments often require previous optional arguments
12430  to be output (at least empty), as in 
12431 \begin_inset Flex Code
12432 status collapsed
12433
12434 \begin_layout Plain Layout
12435
12436 \backslash
12437 command[][argument]{text}
12438 \end_layout
12439
12440 \end_inset
12441
12442 .
12443  This can be achieved by the statement 
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448 Requires 1
12449 \end_layout
12450
12451 \end_inset
12452
12453  within 
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 Argument 2
12459 \end_layout
12460
12461 \end_inset
12462
12463 .
12464 \end_layout
12465
12466 \begin_layout Itemize
12467 \begin_inset Flex Code
12468 status collapsed
12469
12470 \begin_layout Plain Layout
12471 LeftDelim
12472 \end_layout
12473
12474 \end_inset
12475
12476  
12477 \begin_inset Flex Code
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481 [string]
12482 \end_layout
12483
12484 \end_inset
12485
12486  defines a custom left delimiter (instead of 
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491 {
12492 \end_layout
12493
12494 \end_inset
12495
12496  or 
12497 \begin_inset Flex Code
12498 status collapsed
12499
12500 \begin_layout Plain Layout
12501 [
12502 \end_layout
12503
12504 \end_inset
12505
12506 ).
12507  A line break in the output can be indicated by 
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 <br/>
12513 \end_layout
12514
12515 \end_inset
12516
12517 .
12518 \end_layout
12519
12520 \begin_layout Itemize
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 RightDelim
12526 \end_layout
12527
12528 \end_inset
12529
12530  
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 [string]
12536 \end_layout
12537
12538 \end_inset
12539
12540  defines a custom right delimiter (instead of 
12541 \begin_inset Flex Code
12542 status collapsed
12543
12544 \begin_layout Plain Layout
12545 }
12546 \end_layout
12547
12548 \end_inset
12549
12550  or 
12551 \begin_inset Flex Code
12552 status collapsed
12553
12554 \begin_layout Plain Layout
12555 ]
12556 \end_layout
12557
12558 \end_inset
12559
12560 ).
12561  A line break in the output can be indicated by 
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 <br/>
12567 \end_layout
12568
12569 \end_inset
12570
12571 .
12572 \end_layout
12573
12574 \begin_layout Itemize
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 DefaultArg
12580 \end_layout
12581
12582 \end_inset
12583
12584  
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 [string]
12590 \end_layout
12591
12592 \end_inset
12593
12594  defines an argument that is inserted if and only if no user-specified arguments
12595  were given, i.
12596 \begin_inset space \thinspace{}
12597 \end_inset
12598
12599 e.
12600 \begin_inset space \space{}
12601 \end_inset
12602
12603 if no argument inset has been inserted (note that also an empty argument
12604  inset omits the DefaultArg).
12605  Multiple arguments need to be separated by comma.
12606 \end_layout
12607
12608 \begin_layout Itemize
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 PresetArg
12614 \end_layout
12615
12616 \end_inset
12617
12618  
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 [string]
12624 \end_layout
12625
12626 \end_inset
12627
12628  defines an argument that is inserted in any case (alone or in addition
12629  to user-specified arguments).
12630  Multiple arguments need to be separated by comma.
12631 \end_layout
12632
12633 \begin_layout Itemize
12634 \begin_inset Flex Code
12635 status collapsed
12636
12637 \begin_layout Plain Layout
12638 Font
12639 \end_layout
12640
12641 \end_inset
12642
12643  The font used for the argument content, see 
12644 \begin_inset CommandInset ref
12645 LatexCommand ref
12646 reference "subsec:Font-description"
12647
12648 \end_inset
12649
12650 .
12651 \change_inserted -712698321 1559484228
12652
12653 \end_layout
12654
12655 \begin_layout Itemize
12656
12657 \change_inserted -712698321 1559484228
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662
12663 \change_inserted -712698321 1559484228
12664 FreeSpacing
12665 \end_layout
12666
12667 \end_inset
12668
12669  [
12670 \begin_inset Flex Code
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674
12675 \change_inserted -712698321 1559484228
12676
12677 \emph on
12678 0
12679 \end_layout
12680
12681 \end_inset
12682
12683 ,
12684 \begin_inset space \thinspace{}
12685 \end_inset
12686
12687
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692
12693 \change_inserted -712698321 1559484228
12694 1
12695 \end_layout
12696
12697 \end_inset
12698
12699 ] As with paragraph styles, see 
12700 \begin_inset CommandInset ref
12701 LatexCommand ref
12702 reference "subsec:Paragraph-Styles"
12703
12704 \end_inset
12705
12706 .
12707 \change_unchanged
12708
12709 \end_layout
12710
12711 \begin_layout Itemize
12712 \begin_inset Flex Code
12713 status collapsed
12714
12715 \begin_layout Plain Layout
12716 LabelFont
12717 \end_layout
12718
12719 \end_inset
12720
12721  The font used for the label; see 
12722 \begin_inset CommandInset ref
12723 LatexCommand ref
12724 reference "subsec:Font-description"
12725
12726 \end_inset
12727
12728 .
12729 \end_layout
12730
12731 \begin_layout Itemize
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 Decoration
12737 \end_layout
12738
12739 \end_inset
12740
12741  [
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746
12747 \emph on
12748 Classic
12749 \emph default
12750 , Minimalistic, Conglomerate
12751 \end_layout
12752
12753 \end_inset
12754
12755 ] describes the rendering style used for the inset's frame and buttons.
12756 \end_layout
12757
12758 \begin_layout Itemize
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763 AutoInsert
12764 \end_layout
12765
12766 \end_inset
12767
12768  
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 [int=0]
12774 \end_layout
12775
12776 \end_inset
12777
12778  If this is set to 
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 1
12784 \end_layout
12785
12786 \end_inset
12787
12788 , this argument is automatically inserted when the respective style is selected.
12789
12790 \change_deleted -712698321 1559484200
12791  Currently, only one argument per style\SpecialChar breakableslash
12792 layout can be automatically inserted.
12793 \change_unchanged
12794
12795 \end_layout
12796
12797 \begin_layout Itemize
12798
12799 \change_inserted -712698321 1559491402
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804
12805 \change_inserted -712698321 1559490711
12806 InsertOnNewline
12807 \end_layout
12808
12809 \end_inset
12810
12811  
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816
12817 \change_inserted -712698321 1559490703
12818 [int=0]
12819 \end_layout
12820
12821 \end_inset
12822
12823  If this is set to 
12824 \begin_inset Flex Code
12825 status collapsed
12826
12827 \begin_layout Plain Layout
12828
12829 \change_inserted -712698321 1559490703
12830 1
12831 \end_layout
12832
12833 \end_inset
12834
12835 , this argument will be inserted on a new line with 
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840
12841 \change_inserted -712698321 1559491402
12842 AutoInsert
12843 \end_layout
12844
12845 \end_inset
12846
12847  (only available within Flex insets).
12848 \end_layout
12849
12850 \begin_layout Itemize
12851 \begin_inset Flex Code
12852 status collapsed
12853
12854 \begin_layout Plain Layout
12855 InsertCotext
12856 \end_layout
12857
12858 \end_inset
12859
12860  
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 [int=0]
12866 \end_layout
12867
12868 \end_inset
12869
12870  If this is set to 
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875 1
12876 \end_layout
12877
12878 \end_inset
12879
12880 , this argument will be inserted with a copy of the co-text (either selected
12881  text or the whole paragraph) as content.
12882 \end_layout
12883
12884 \begin_layout Itemize
12885 \begin_inset Flex Code
12886 status collapsed
12887
12888 \begin_layout Plain Layout
12889 PassThru
12890 \end_layout
12891
12892 \end_inset
12893
12894  [
12895 \begin_inset Flex Code
12896 status collapsed
12897
12898 \begin_layout Plain Layout
12899
12900 \emph on
12901 inherited
12902 \emph default
12903 , true, false
12904 \end_layout
12905
12906 \end_inset
12907
12908 ] Whether the contents of this argument should be output in raw form, meaning
12909  without special translations that \SpecialChar LaTeX
12910  would require.
12911  By default, the 
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 PassThru
12917 \end_layout
12918
12919 \end_inset
12920
12921  status is inherited by the inset or paragraph layout the argument belongs
12922  to, true and false change the status for the given argument only.
12923 \end_layout
12924
12925 \begin_layout Itemize
12926 \begin_inset Flex Code
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930 PassThruChars
12931 \end_layout
12932
12933 \end_inset
12934
12935  [
12936 \begin_inset Flex Code
12937 status collapsed
12938
12939 \begin_layout Plain Layout
12940 string of characters
12941 \end_layout
12942
12943 \end_inset
12944
12945 ]
12946 \family typewriter
12947  
12948 \family default
12949 Defines individual characters
12950 \begin_inset Newline linebreak
12951 \end_inset
12952
12953 that should be output in raw form, meaning without special translations
12954  that \SpecialChar LaTeX
12955  would require.
12956  Note that, contrary to PassThru, this needs to be explicitly defined for
12957  arguments.
12958  That is, arguments do not inherit PassThruChars from their parent inset
12959  or layout.
12960 \end_layout
12961
12962 \begin_layout Itemize
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 IsTocCaption
12968 \end_layout
12969
12970 \end_inset
12971
12972  [
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977
12978 \emph on
12979 0
12980 \end_layout
12981
12982 \end_inset
12983
12984 ,
12985 \begin_inset space \thinspace{}
12986 \end_inset
12987
12988
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 1
12994 \end_layout
12995
12996 \end_inset
12997
12998 ] If this is set to 1, the argument will output its content in the corresponding
12999  item in the table of contents.
13000  See AddToToc.
13001 \end_layout
13002
13003 \begin_layout Standard
13004 By default, the text entered in the \SpecialChar LyX
13005  workarea in the respective layout is
13006  the last (mandatory) argument of a command if the 
13007 \begin_inset Flex Code
13008 status collapsed
13009
13010 \begin_layout Plain Layout
13011 LatexType
13012 \end_layout
13013
13014 \end_inset
13015
13016  is 
13017 \begin_inset Flex Code
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 Command
13022 \end_layout
13023
13024 \end_inset
13025
13026 .
13027  However, arguments with the prefix 
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 post:
13033 \end_layout
13034
13035 \end_inset
13036
13037  are output after this workarea argument.
13038  Note that post-argument numbering restarts at 1, so the first argument
13039  following the workarea argument is 
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044 post:1
13045 \end_layout
13046
13047 \end_inset
13048
13049 .
13050  Post-arguments are ignored in any other 
13051 \begin_inset Flex Code
13052 status collapsed
13053
13054 \begin_layout Plain Layout
13055 LatexType
13056 \end_layout
13057
13058 \end_inset
13059
13060  than 
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 Command
13066 \end_layout
13067
13068 \end_inset
13069
13070 .
13071 \end_layout
13072
13073 \begin_layout Standard
13074 Arguments for list 
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079
13080 \backslash
13081 item
13082 \end_layout
13083
13084 \end_inset
13085
13086 s (as in 
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091
13092 \backslash
13093 item[foo]
13094 \end_layout
13095
13096 \end_inset
13097
13098 ) have the prefix 
13099 \begin_inset Flex Code
13100 status collapsed
13101
13102 \begin_layout Plain Layout
13103 item:
13104 \end_layout
13105
13106 \end_inset
13107
13108  followed by the number (e.
13109 \begin_inset space \thinspace{}
13110 \end_inset
13111
13112 g.
13113 \begin_inset space \space{}
13114 \end_inset
13115
13116
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 Argument item:1
13122 \end_layout
13123
13124 \end_inset
13125
13126 ).
13127 \change_inserted -712698321 1534487781
13128
13129 \end_layout
13130
13131 \begin_layout Standard
13132
13133 \change_inserted -712698321 1534488561
13134 Finally, there is a special argument type with the prefix 
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139
13140 \change_inserted -712698321 1534487844
13141 listpreamble:
13142 \change_unchanged
13143
13144 \end_layout
13145
13146 \end_inset
13147
13148 .
13149  It is not really an argument, but uses the argument interface (thus, the
13150  prefix is also followed by a number, e.
13151 \begin_inset space \thinspace{}
13152 \end_inset
13153
13154 g.
13155  
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160
13161 \change_inserted -712698321 1534488412
13162 Argument listpreamble:1
13163 \end_layout
13164
13165 \end_inset
13166
13167 ).
13168  As the name implies, it is targeted at lists such as 
13169 \family sans
13170 Itemize
13171 \family default
13172
13173 \family sans
13174 Enumerate
13175 \family default
13176
13177 \family sans
13178 Description
13179 \family default
13180 , or 
13181 \family sans
13182 Bibliography
13183 \family default
13184 .
13185  Its content will be output at the list start, before the first 
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190
13191 \change_inserted -712698321 1534488058
13192
13193 \backslash
13194 item
13195 \change_unchanged
13196
13197 \end_layout
13198
13199 \end_inset
13200
13201 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13202 ).
13203  This way, users can insert redefinitions (of lengths etc.) to individual
13204  lists.
13205  By default, these arguments do not have a delimiter.
13206 \change_unchanged
13207
13208 \end_layout
13209
13210 \end_deeper
13211 \begin_layout Description
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 AutoNests
13217 \end_layout
13218
13219 \end_inset
13220
13221  Includes a comma-separated list of layouts that should be nested in and
13222  after the current layout.
13223  Only makes sense for nestable layouts (such as environments).
13224  Must be ended by 
13225 \begin_inset Quotes eld
13226 \end_inset
13227
13228
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 EndAutoNests
13234 \end_layout
13235
13236 \end_inset
13237
13238
13239 \begin_inset Quotes erd
13240 \end_inset
13241
13242 .
13243  See also 
13244 \begin_inset Flex Code
13245 status collapsed
13246
13247 \begin_layout Plain Layout
13248 IsAutoNestedBy
13249 \end_layout
13250
13251 \end_inset
13252
13253 .
13254 \end_layout
13255
13256 \begin_layout Description
13257 \begin_inset Flex Code
13258 status collapsed
13259
13260 \begin_layout Plain Layout
13261 BabelPreamble
13262 \end_layout
13263
13264 \end_inset
13265
13266  Note that this will completely override any prior 
13267 \begin_inset Flex Code
13268 status collapsed
13269
13270 \begin_layout Plain Layout
13271 BabelPreamble
13272 \end_layout
13273
13274 \end_inset
13275
13276  declaration for this style.
13277  Must end with 
13278 \begin_inset Quotes eld
13279 \end_inset
13280
13281
13282 \begin_inset Flex Code
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 EndBabelPreamble
13287 \end_layout
13288
13289 \end_inset
13290
13291
13292 \begin_inset Quotes erd
13293 \end_inset
13294
13295 .
13296  See 
13297 \begin_inset CommandInset ref
13298 LatexCommand ref
13299 reference "subsec:I18n"
13300
13301 \end_inset
13302
13303  for details on its use.
13304 \end_layout
13305
13306 \begin_layout Description
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 BottomSep
13312 \end_layout
13313
13314 \end_inset
13315
13316  [
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 float=0
13322 \end_layout
13323
13324 \end_inset
13325
13326 ]
13327 \begin_inset Foot
13328 status collapsed
13329
13330 \begin_layout Plain Layout
13331 Note that a `float' here is a real number, such as: 1.5.
13332 \end_layout
13333
13334 \end_inset
13335
13336  The vertical space with which the last of a chain of paragraphs with this
13337  style is separated from the following paragraph.
13338  If the next paragraph has another style, the separations are not simply
13339  added, but the maximum is taken.
13340 \end_layout
13341
13342 \begin_layout Description
13343 \begin_inset Flex Code
13344 status collapsed
13345
13346 \begin_layout Plain Layout
13347 Category
13348 \end_layout
13349
13350 \end_inset
13351
13352  [
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 string
13358 \end_layout
13359
13360 \end_inset
13361
13362 ] The category for this style.
13363  This is used to group related styles in the style combobox on the toolbar.
13364  Any string can be used, but you may want to use existing categories with
13365  your own styles.
13366  
13367 \end_layout
13368
13369 \begin_layout Description
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 CommandDepth
13375 \end_layout
13376
13377 \end_inset
13378
13379  Depth of XML command.
13380  Used only with XML-type formats.
13381 \end_layout
13382
13383 \begin_layout Description
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388 CopyStyle
13389 \end_layout
13390
13391 \end_inset
13392
13393  [
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398 string
13399 \end_layout
13400
13401 \end_inset
13402
13403 ] Copies all the features of an existing style into the current one.
13404  
13405 \end_layout
13406
13407 \begin_layout Description
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 DependsOn
13413 \end_layout
13414
13415 \end_inset
13416
13417  [
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422 <name>
13423 \end_layout
13424
13425 \end_inset
13426
13427 ] The name of a style whose preamble should be output 
13428 \emph on
13429 before
13430 \emph default
13431  this one.
13432  This allows to ensure some ordering of the preamble snippets when macros
13433  definitions depend on one another.
13434 \begin_inset Foot
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 Note that, besides that functionality, there is no way to ensure any ordering
13439  of preambles.
13440  The ordering that you see in a given version of \SpecialChar LyX
13441  may change without warning
13442  in later versions.
13443 \end_layout
13444
13445 \end_inset
13446
13447
13448 \end_layout
13449
13450 \begin_layout Description
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 EndLabeltype
13456 \end_layout
13457
13458 \end_inset
13459
13460  [
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465
13466 \emph on
13467 No_Label
13468 \emph default
13469 , Box, Filled_Box, Static
13470 \end_layout
13471
13472 \end_inset
13473
13474 ] The type of label that stands at the end of the paragraph (or sequence
13475  of paragraphs if 
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 LatexType
13481 \end_layout
13482
13483 \end_inset
13484
13485  is
13486 \begin_inset Newline newline
13487 \end_inset
13488
13489
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 Environment
13495 \end_layout
13496
13497 \end_inset
13498
13499
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 Item_Environment
13505 \end_layout
13506
13507 \end_inset
13508
13509  or 
13510 \begin_inset Flex Code
13511 status collapsed
13512
13513 \begin_layout Plain Layout
13514 List_Environment
13515 \end_layout
13516
13517 \end_inset
13518
13519 ).
13520  
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 No_Label
13526 \end_layout
13527
13528 \end_inset
13529
13530  means 
13531 \begin_inset Quotes eld
13532 \end_inset
13533
13534 nothing
13535 \begin_inset Quotes erd
13536 \end_inset
13537
13538
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 Box
13544 \end_layout
13545
13546 \end_inset
13547
13548  (resp.
13549 \begin_inset space \space{}
13550 \end_inset
13551
13552
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557 Filled_Box
13558 \end_layout
13559
13560 \end_inset
13561
13562 ) is a white (resp.
13563 \begin_inset space ~
13564 \end_inset
13565
13566 black) square suitable for end of proof markers, 
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 Static
13572 \end_layout
13573
13574 \end_inset
13575
13576  is an explicit text string.
13577 \end_layout
13578
13579 \begin_layout Description
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584 EndLabelString
13585 \end_layout
13586
13587 \end_inset
13588
13589  [
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 string=""
13595 \end_layout
13596
13597 \end_inset
13598
13599 ] The string used for a label with a 
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 Static
13605 \end_layout
13606
13607 \end_inset
13608
13609
13610 \begin_inset Newline newline
13611 \end_inset
13612
13613
13614 \begin_inset Flex Code
13615 status collapsed
13616
13617 \begin_layout Plain Layout
13618 EndLabelType
13619 \end_layout
13620
13621 \end_inset
13622
13623 .
13624  
13625 \end_layout
13626
13627 \begin_layout Description
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 Font
13633 \end_layout
13634
13635 \end_inset
13636
13637  The font used for both the text body 
13638 \emph on
13639 and
13640 \emph default
13641  the label.
13642  See 
13643 \begin_inset CommandInset ref
13644 LatexCommand ref
13645 reference "subsec:Font-description"
13646
13647 \end_inset
13648
13649 .
13650  Note that defining this font automatically defines the 
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655 LabelFont
13656 \end_layout
13657
13658 \end_inset
13659
13660  to the same value.
13661  So you should define this one first if you also want to define 
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 LabelFont
13667 \end_layout
13668
13669 \end_inset
13670
13671 .
13672 \end_layout
13673
13674 \begin_layout Description
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  [
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 int=0
13690 \end_layout
13691
13692 \end_inset
13693
13694 ] Used for backporting new styles to stable \SpecialChar LyX
13695  versions.
13696  The first stable version that supports this tag is \SpecialChar LyX
13697  2.1.0.
13698  The argument is a number which may either be 0, -1 or any value greater
13699  than zero.
13700  If the 
13701 \begin_inset Flex Code
13702 status collapsed
13703
13704 \begin_layout Plain Layout
13705 ForceLocal
13706 \end_layout
13707
13708 \end_inset
13709
13710  flag of a style is greater than zero, it will always be written to the
13711  document header.
13712  If a .lyx file is read, the style definitions from the document header are
13713  added to the document class.
13714  Therefore even older \SpecialChar LyX
13715  versions can handle the style.
13716  The argument of 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 ForceLocal
13722 \end_layout
13723
13724 \end_inset
13725
13726  is a version number: if the style is read, and the version number is less
13727  than the version number of the already existing style in the document class,
13728  the new style is ignored.
13729  If the version number is greater, the new style replaces the existing style.
13730  A value of -1 means an infinite version number, i.
13731 \begin_inset space \thinspace{}
13732 \end_inset
13733
13734 e.
13735 \begin_inset space \space{}
13736 \end_inset
13737
13738 the style is always used.
13739 \end_layout
13740
13741 \begin_layout Description
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 FreeSpacing
13747 \end_layout
13748
13749 \end_inset
13750
13751  [
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756
13757 \emph on
13758 0
13759 \end_layout
13760
13761 \end_inset
13762
13763 ,
13764 \begin_inset space \thinspace{}
13765 \end_inset
13766
13767
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772 1
13773 \end_layout
13774
13775 \end_inset
13776
13777 ] Usually \SpecialChar LyX
13778  does not allow you to insert more than one space between words,
13779  since a space is considered as the separation between two words, not a
13780  character or symbol of its own.
13781  This is a very fine thing but sometimes annoying, for example, when typing
13782  program code or plain \SpecialChar LaTeX
13783  code.
13784  For this reason, 
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 FreeSpacing
13790 \end_layout
13791
13792 \end_inset
13793
13794  can be enabled.
13795  
13796 \change_deleted -495245474 1550490105
13797 Note that 
13798 \change_unchanged
13799 \SpecialChar LyX
13800  will create protected blanks for the additional blanks when in 
13801 \change_inserted -495245474 1550490096
13802
13803 \begin_inset Flex Code
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807
13808 \change_inserted -495245474 1550490089
13809 Passthru 1
13810 \end_layout
13811
13812 \end_inset
13813
13814  is not specified.
13815 \change_deleted -495245474 1550490116
13816 another mode than \SpecialChar LaTeX
13817 -mode.
13818
13819 \change_inserted -495245474 1550247760
13820  Note that 
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825
13826 \change_inserted -495245474 1550247736
13827 FreeSpacing
13828 \end_layout
13829
13830 \end_inset
13831
13832  implies 
13833 \begin_inset Flex Code
13834 status collapsed
13835
13836 \begin_layout Plain Layout
13837
13838 \change_inserted -495245474 1550247755
13839 KeepEmpty
13840 \end_layout
13841
13842 \end_inset
13843
13844 .
13845 \change_unchanged
13846
13847 \end_layout
13848
13849 \begin_layout Description
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 HTML*
13855 \end_layout
13856
13857 \end_inset
13858
13859  These tags are used with XHTML output.
13860  See 
13861 \begin_inset CommandInset ref
13862 LatexCommand ref
13863 reference "subsec:Paragraph-Style-XHTML"
13864
13865 \end_inset
13866
13867 .
13868 \end_layout
13869
13870 \begin_layout Description
13871 \begin_inset Flex Code
13872 status collapsed
13873
13874 \begin_layout Plain Layout
13875 InnerTag
13876 \end_layout
13877
13878 \end_inset
13879
13880  [FIXME] (Used only with XML-type formats.)
13881 \end_layout
13882
13883 \begin_layout Description
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 InPreamble
13889 \end_layout
13890
13891 \end_inset
13892
13893  [
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898
13899 \emph on
13900 0
13901 \end_layout
13902
13903 \end_inset
13904
13905 ,
13906 \begin_inset space \thinspace{}
13907 \end_inset
13908
13909
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 1
13915 \end_layout
13916
13917 \end_inset
13918
13919 ] If 
13920 \begin_inset Flex Code
13921 status collapsed
13922
13923 \begin_layout Plain Layout
13924 1
13925 \end_layout
13926
13927 \end_inset
13928
13929 , marks the style as to be included in the document preamble and not in
13930  the document body.
13931  This is useful for document classes that want such information as the title
13932  and author to appear in the preamble.
13933  Note that this works only for styles for which the 
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 LatexType
13939 \end_layout
13940
13941 \end_inset
13942
13943  is 
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948 Command
13949 \end_layout
13950
13951 \end_inset
13952
13953  or 
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 Paragraph
13959 \end_layout
13960
13961 \end_inset
13962
13963 .
13964 \end_layout
13965
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 InTitle
13972 \end_layout
13973
13974 \end_inset
13975
13976  [
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981
13982 \emph on
13983 0
13984 \end_layout
13985
13986 \end_inset
13987
13988 ,
13989 \begin_inset space \thinspace{}
13990 \end_inset
13991
13992
13993 \begin_inset Flex Code
13994 status collapsed
13995
13996 \begin_layout Plain Layout
13997 1
13998 \end_layout
13999
14000 \end_inset
14001
14002 ] If 
14003 \begin_inset Flex Code
14004 status collapsed
14005
14006 \begin_layout Plain Layout
14007 1
14008 \end_layout
14009
14010 \end_inset
14011
14012 , marks the style as being part of a title block (see also the 
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017 TitleLatexType
14018 \end_layout
14019
14020 \end_inset
14021
14022  and 
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027 TitleLatexName
14028 \end_layout
14029
14030 \end_inset
14031
14032  global entries).
14033 \end_layout
14034
14035 \begin_layout Description
14036 \begin_inset Flex Code
14037 status collapsed
14038
14039 \begin_layout Plain Layout
14040 IsAutoNestedBy
14041 \end_layout
14042
14043 \end_inset
14044
14045  Includes a comma-separated list of layouts after which this one should
14046  be nested.
14047  Only makes sense with regard to nestable layouts (such as environments).
14048  Must be ended by 
14049 \begin_inset Quotes eld
14050 \end_inset
14051
14052
14053 \begin_inset Flex Code
14054 status collapsed
14055
14056 \begin_layout Plain Layout
14057 EndIsAutoNestedBy
14058 \end_layout
14059
14060 \end_inset
14061
14062
14063 \begin_inset Quotes erd
14064 \end_inset
14065
14066 .
14067  See also 
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 AutoNests
14073 \end_layout
14074
14075 \end_inset
14076
14077 .
14078 \end_layout
14079
14080 \begin_layout Description
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 IsTocCaption
14086 \end_layout
14087
14088 \end_inset
14089
14090  [
14091 \begin_inset Flex Code
14092 status collapsed
14093
14094 \begin_layout Plain Layout
14095
14096 \emph on
14097 0
14098 \end_layout
14099
14100 \end_inset
14101
14102 ,
14103 \begin_inset space \thinspace{}
14104 \end_inset
14105
14106
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 1
14112 \end_layout
14113
14114 \end_inset
14115
14116 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14117  of its contents in its item in the table of contents.
14118  Otherwise, only the label, if it exists, appears.
14119 \end_layout
14120
14121 \begin_layout Description
14122 \begin_inset Flex Code
14123 status collapsed
14124
14125 \begin_layout Plain Layout
14126 ItemCommand
14127 \end_layout
14128
14129 \end_inset
14130
14131  [
14132 \begin_inset Flex Code
14133 status collapsed
14134
14135 \begin_layout Plain Layout
14136 string="item"
14137 \end_layout
14138
14139 \end_inset
14140
14141 ] The \SpecialChar LaTeX
14142  command sequence declaring an item in a list.
14143  The command is to be defined without the preceding backslash (the default
14144  is 
14145 \begin_inset Quotes eld
14146 \end_inset
14147
14148 item
14149 \begin_inset Quotes erd
14150 \end_inset
14151
14152 , resulting in 
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157
14158 \backslash
14159 item
14160 \end_layout
14161
14162 \end_inset
14163
14164  in the \SpecialChar LaTeX
14165  output).
14166 \end_layout
14167
14168 \begin_layout Description
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 ItemSep
14174 \end_layout
14175
14176 \end_inset
14177
14178  [
14179 \begin_inset Flex Code
14180 status collapsed
14181
14182 \begin_layout Plain Layout
14183 float=0
14184 \end_layout
14185
14186 \end_inset
14187
14188 ] This provides extra space between paragraphs that have the same style.
14189  If you put other styles into an environment, each is separated with the
14190  environment's 
14191 \begin_inset Flex Code
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 ParSep
14196 \end_layout
14197
14198 \end_inset
14199
14200 .
14201  But the whole items of the environment are additionally separated with
14202  this 
14203 \begin_inset Flex Code
14204 status collapsed
14205
14206 \begin_layout Plain Layout
14207 ItemSep
14208 \end_layout
14209
14210 \end_inset
14211
14212 .
14213  Note that this is a
14214 \emph on
14215  multiplier.
14216 \end_layout
14217
14218 \begin_layout Description
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 ItemTag
14224 \end_layout
14225
14226 \end_inset
14227
14228  [FIXME] (Used only with XML-type formats.)
14229 \end_layout
14230
14231 \begin_layout Description
14232 \begin_inset Flex Code
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 KeepEmpty
14237 \end_layout
14238
14239 \end_inset
14240
14241  [
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246
14247 \emph on
14248 0
14249 \end_layout
14250
14251 \end_inset
14252
14253 ,
14254 \begin_inset space \thinspace{}
14255 \end_inset
14256
14257
14258 \begin_inset Flex Code
14259 status collapsed
14260
14261 \begin_layout Plain Layout
14262 1
14263 \end_layout
14264
14265 \end_inset
14266
14267 ] Usually \SpecialChar LyX
14268  does not allow you to leave a paragraph empty, since it would
14269  lead to empty \SpecialChar LaTeX
14270  output.
14271  There are some cases where this could be desirable however: in a letter
14272  template, the required fields can be provided as empty fields, so that
14273  people do not forget them; in some special classes, a style can be used
14274  as some kind of break, which does not contain actual text.
14275 \end_layout
14276
14277 \begin_layout Description
14278 \begin_inset Flex Code
14279 status collapsed
14280
14281 \begin_layout Plain Layout
14282 LabelBottomsep
14283 \end_layout
14284
14285 \end_inset
14286
14287  [
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 float=0
14293 \end_layout
14294
14295 \end_inset
14296
14297 ] The vertical space between the label and the text body.
14298  Only used for labels that are above the text body (
14299 \begin_inset Flex Code
14300 status collapsed
14301
14302 \begin_layout Plain Layout
14303 Top_Environment
14304 \end_layout
14305
14306 \end_inset
14307
14308  and
14309 \begin_inset Newline newline
14310 \end_inset
14311
14312
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 Centered_Top_Environment
14318 \end_layout
14319
14320 \end_inset
14321
14322 ).
14323 \end_layout
14324
14325 \begin_layout Description
14326 \begin_inset Flex Code
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330 LabelCounter
14331 \end_layout
14332
14333 \end_inset
14334
14335  [
14336 \begin_inset Flex Code
14337 status collapsed
14338
14339 \begin_layout Plain Layout
14340 string=""
14341 \end_layout
14342
14343 \end_inset
14344
14345 ] The name of the counter for automatic numbering.
14346  In order to have the counter appear with your label, you will need to reference
14347  it in the 
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352
14353 \family typewriter
14354 LabelString
14355 \end_layout
14356
14357 \end_inset
14358
14359 .
14360  This will work with 
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365 LabelType
14366 \end_layout
14367
14368 \end_inset
14369
14370 s, 
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375 Static
14376 \end_layout
14377
14378 \end_inset
14379
14380
14381 \begin_inset Flex Code
14382 status collapsed
14383
14384 \begin_layout Plain Layout
14385 Above
14386 \end_layout
14387
14388 \end_inset
14389
14390  and 
14391 \begin_inset Flex Code
14392 status collapsed
14393
14394 \begin_layout Plain Layout
14395 Centered
14396 \end_layout
14397
14398 \end_inset
14399
14400 , at least.
14401 \begin_inset Newline newline
14402 \end_inset
14403
14404 This 
14405 \emph on
14406 may
14407 \emph default
14408  also be given if 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 LabelType
14414 \end_layout
14415
14416 \end_inset
14417
14418  is 
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Enumerate
14424 \end_layout
14425
14426 \end_inset
14427
14428 , though this case is a bit complicated.
14429  Suppose you declare 
14430 \begin_inset Quotes eld
14431 \end_inset
14432
14433
14434 \begin_inset Flex Code
14435 status collapsed
14436
14437 \begin_layout Plain Layout
14438 LabelCounter myenum
14439 \end_layout
14440
14441 \end_inset
14442
14443
14444 \begin_inset Quotes erd
14445 \end_inset
14446
14447 .
14448  Then the actual counters used are 
14449 \begin_inset Flex Code
14450 status collapsed
14451
14452 \begin_layout Plain Layout
14453 myenumi
14454 \end_layout
14455
14456 \end_inset
14457
14458
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 myenumii
14464 \end_layout
14465
14466 \end_inset
14467
14468
14469 \begin_inset Flex Code
14470 status collapsed
14471
14472 \begin_layout Plain Layout
14473 myenumiii
14474 \end_layout
14475
14476 \end_inset
14477
14478  and 
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 myenumiv
14484 \end_layout
14485
14486 \end_inset
14487
14488 , much as in \SpecialChar LaTeX
14489 .
14490  These counters must all be declared separately.
14491 \begin_inset Newline newline
14492 \end_inset
14493
14494 See 
14495 \begin_inset CommandInset ref
14496 LatexCommand ref
14497 reference "subsec:Counters"
14498
14499 \end_inset
14500
14501  for details on counters.
14502 \end_layout
14503
14504 \begin_layout Description
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 LabelFont
14510 \end_layout
14511
14512 \end_inset
14513
14514  The font used for the label.
14515  See 
14516 \begin_inset CommandInset ref
14517 LatexCommand ref
14518 reference "subsec:Font-description"
14519
14520 \end_inset
14521
14522 .
14523 \end_layout
14524
14525 \begin_layout Description
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 LabelIndent
14531 \end_layout
14532
14533 \end_inset
14534
14535  [
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 string=""
14541 \end_layout
14542
14543 \end_inset
14544
14545 ] Text that indicates how far a label should be indented.
14546 \end_layout
14547
14548 \begin_layout Description
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 LabelSep
14554 \end_layout
14555
14556 \end_inset
14557
14558  [
14559 \begin_inset Flex Code
14560 status collapsed
14561
14562 \begin_layout Plain Layout
14563 string=""
14564 \end_layout
14565
14566 \end_inset
14567
14568 ] Text that indicates the amount of horizontal space between the label and
14569  the text body.
14570  Only used for labels that are not above the text body.
14571 \end_layout
14572
14573 \begin_layout Description
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 LabelString
14579 \end_layout
14580
14581 \end_inset
14582
14583  [
14584 \begin_inset Flex Code
14585 status collapsed
14586
14587 \begin_layout Plain Layout
14588 string=""
14589 \end_layout
14590
14591 \end_inset
14592
14593 ] The string used for the label.
14594  When 
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 LabelCounter
14600 \end_layout
14601
14602 \end_inset
14603
14604  is set, this string can be contain the special formatting commands described
14605  in 
14606 \begin_inset CommandInset ref
14607 LatexCommand ref
14608 reference "subsec:Counters"
14609
14610 \end_inset
14611
14612 .
14613 \end_layout
14614
14615 \begin_layout Description
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 LabelStringAppendix
14621 \end_layout
14622
14623 \end_inset
14624
14625  [
14626 \begin_inset Flex Code
14627 status collapsed
14628
14629 \begin_layout Plain Layout
14630 string=""
14631 \end_layout
14632
14633 \end_inset
14634
14635 ] This is used inside the appendix instead of
14636 \begin_inset Newline newline
14637 \end_inset
14638
14639
14640 \begin_inset Flex Code
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644 LabelString
14645 \end_layout
14646
14647 \end_inset
14648
14649 .
14650  Note that every 
14651 \begin_inset Flex Code
14652 status collapsed
14653
14654 \begin_layout Plain Layout
14655 LabelString
14656 \end_layout
14657
14658 \end_inset
14659
14660  statement resets
14661 \begin_inset Newline newline
14662 \end_inset
14663
14664
14665 \begin_inset Flex Code
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 LabelStringAppendix
14670 \end_layout
14671
14672 \end_inset
14673
14674  too.
14675 \end_layout
14676
14677 \begin_layout Description
14678 \begin_inset Flex Code
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 LabelTag
14683 \end_layout
14684
14685 \end_inset
14686
14687  [FIXME] (Used only with XML-type formats.)
14688 \end_layout
14689
14690 \begin_layout Description
14691 \begin_inset Flex Code
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695 LabelType
14696 \end_layout
14697
14698 \end_inset
14699
14700  [
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705
14706 \emph on
14707 No_Label
14708 \emph default
14709 , Manual, Static, Above, 
14710 \begin_inset Newline newline
14711 \end_inset
14712
14713 Centered, Sensitive, Enumerate,
14714 \begin_inset Newline newline
14715 \end_inset
14716
14717 Itemize, Bibliography
14718 \end_layout
14719
14720 \end_inset
14721
14722 ]
14723 \end_layout
14724
14725 \begin_deeper
14726 \begin_layout Description
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731 Manual
14732 \end_layout
14733
14734 \end_inset
14735
14736  means the label is the very first word (up to the first real blank).
14737  Use protected spaces if you want more than one word as the label.
14738  
14739 \end_layout
14740
14741 \begin_layout Description
14742 \begin_inset Flex Code
14743 status collapsed
14744
14745 \begin_layout Plain Layout
14746 Static
14747 \end_layout
14748
14749 \end_inset
14750
14751  means the label is simply what is declared as 
14752 \begin_inset Flex Code
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 LabelString
14757 \end_layout
14758
14759 \end_inset
14760
14761 .
14762  This will be displayed 
14763 \begin_inset Quotes eld
14764 \end_inset
14765
14766 inline
14767 \begin_inset Quotes erd
14768 \end_inset
14769
14770 , at the beginning of the paragraph.
14771  If the 
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 LatexType
14777 \end_layout
14778
14779 \end_inset
14780
14781  is 
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 Environment
14787 \end_layout
14788
14789 \end_inset
14790
14791 , then it will be displayed only in the first paragraph of any sequence
14792  of paragraphs with the same 
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797 Style
14798 \end_layout
14799
14800 \end_inset
14801
14802 .
14803 \end_layout
14804
14805 \begin_layout Description
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 Above
14811 \end_layout
14812
14813 \end_inset
14814
14815
14816 \begin_inset space ~
14817 \end_inset
14818
14819 and
14820 \begin_inset space ~
14821 \end_inset
14822
14823
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 Centered
14829 \end_layout
14830
14831 \end_inset
14832
14833  are special cases of 
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 Static
14839 \end_layout
14840
14841 \end_inset
14842
14843 .
14844  The label will be printed above the paragraph either at the beginning of
14845  the line or centered.
14846 \end_layout
14847
14848 \begin_layout Description
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 Sensitive
14854 \end_layout
14855
14856 \end_inset
14857
14858  is a special case for the caption-labels 
14859 \begin_inset Quotes eld
14860 \end_inset
14861
14862 Figure
14863 \begin_inset Quotes erd
14864 \end_inset
14865
14866  and 
14867 \begin_inset Quotes eld
14868 \end_inset
14869
14870 Table
14871 \begin_inset Quotes erd
14872 \end_inset
14873
14874 .
14875 \begin_inset Newline newline
14876 \end_inset
14877
14878
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 Sensitive
14884 \end_layout
14885
14886 \end_inset
14887
14888  means the (hardcoded) label string depends on the kind of float: It is
14889  hardcoded to be `FloatType N', where N is the value of the counter associated
14890  with the float.
14891  For the case that a caption is inserted outside of a float the 
14892 \begin_inset Flex Code
14893 status collapsed
14894
14895 \begin_layout Plain Layout
14896 LabelString
14897 \end_layout
14898
14899 \end_inset
14900
14901  will appear as 
14902 \begin_inset Quotes eld
14903 \end_inset
14904
14905 Senseless!
14906 \begin_inset Quotes erd
14907 \end_inset
14908
14909 .
14910 \end_layout
14911
14912 \begin_layout Description
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 Enumerate
14918 \end_layout
14919
14920 \end_inset
14921
14922  produces the usual sort of enumeration labels.
14923  The number type needs to be set in the 
14924 \family sans
14925 Counter
14926 \family default
14927 , see 
14928 \begin_inset CommandInset ref
14929 LatexCommand ref
14930 reference "subsec:Counters"
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 Itemize
14943 \end_layout
14944
14945 \end_inset
14946
14947  produces various bullets at the different levels.
14948  The bullet types displayed can be set via 
14949 \begin_inset Flex Noun
14950 status collapsed
14951
14952 \begin_layout Plain Layout
14953 Document\SpecialChar menuseparator
14954 Settings\SpecialChar menuseparator
14955 Bullets
14956 \end_layout
14957
14958 \end_inset
14959
14960 .
14961 \end_layout
14962
14963 \begin_layout Description
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 Bibliography
14969 \end_layout
14970
14971 \end_inset
14972
14973  should be used only with 
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 LatexType BibEnvironment
14979 \end_layout
14980
14981 \end_inset
14982
14983 .
14984 \end_layout
14985
14986 \end_deeper
14987 \begin_layout Description
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 LangPreamble
14993 \end_layout
14994
14995 \end_inset
14996
14997  Note that this will completely override any prior 
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 LangPreamble
15003 \end_layout
15004
15005 \end_inset
15006
15007  declaration for this style.
15008  Must end with 
15009 \begin_inset Quotes eld
15010 \end_inset
15011
15012
15013 \begin_inset Flex Code
15014 status collapsed
15015
15016 \begin_layout Plain Layout
15017 EndLangPreamble
15018 \end_layout
15019
15020 \end_inset
15021
15022
15023 \begin_inset Quotes erd
15024 \end_inset
15025
15026 .
15027  See 
15028 \begin_inset CommandInset ref
15029 LatexCommand ref
15030 reference "subsec:I18n"
15031
15032 \end_inset
15033
15034  for details on its use.
15035 \end_layout
15036
15037 \begin_layout Description
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 LatexName
15043 \end_layout
15044
15045 \end_inset
15046
15047  [
15048 \begin_inset Flex Code
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 <name>
15053 \end_layout
15054
15055 \end_inset
15056
15057 ] The name of the corresponding \SpecialChar LaTeX
15058  stuff.
15059  Either the environment or command name.
15060 \end_layout
15061
15062 \begin_layout Description
15063 \begin_inset Flex Code
15064 status collapsed
15065
15066 \begin_layout Plain Layout
15067 LatexParam
15068 \end_layout
15069
15070 \end_inset
15071
15072  [
15073 \begin_inset Flex Code
15074 status collapsed
15075
15076 \begin_layout Plain Layout
15077 <parameter>
15078 \end_layout
15079
15080 \end_inset
15081
15082 ] An optional parameter for the corresponding 
15083 \begin_inset Flex Code
15084 status collapsed
15085
15086 \begin_layout Plain Layout
15087 LatexName
15088 \end_layout
15089
15090 \end_inset
15091
15092  stuff.
15093  This parameter cannot be changed from within \SpecialChar LyX
15094  (use 
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 Argument
15100 \end_layout
15101
15102 \end_inset
15103
15104  for customizable parameters).
15105  This will be output as is after all \SpecialChar LaTeX
15106  
15107 \begin_inset Flex Code
15108 status collapsed
15109
15110 \begin_layout Plain Layout
15111 Argument
15112 \end_layout
15113
15114 \end_inset
15115
15116 s.
15117 \end_layout
15118
15119 \begin_layout Description
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 LatexType
15125 \end_layout
15126
15127 \end_inset
15128
15129  [
15130 \begin_inset Flex Code
15131 status collapsed
15132
15133 \begin_layout Plain Layout
15134
15135 \emph on
15136 Paragraph
15137 \emph default
15138 , Command, Environment, Item_Environment,
15139 \begin_inset Newline newline
15140 \end_inset
15141
15142 List_Environment, Bib_Environment
15143 \end_layout
15144
15145 \end_inset
15146
15147 ] How the style should be translated into \SpecialChar LaTeX
15148 .
15149 \begin_inset Foot
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153 \begin_inset Flex Code
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 LatexType
15158 \end_layout
15159
15160 \end_inset
15161
15162  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15163  Visit the SGML class files for specific examples.
15164 \end_layout
15165
15166 \end_inset
15167
15168
15169 \end_layout
15170
15171 \begin_deeper
15172 \begin_layout Description
15173 \begin_inset Flex Code
15174 status collapsed
15175
15176 \begin_layout Plain Layout
15177 Paragraph
15178 \end_layout
15179
15180 \end_inset
15181
15182  means nothing special.
15183 \end_layout
15184
15185 \begin_layout Description
15186 \begin_inset Flex Code
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190 Command
15191 \end_layout
15192
15193 \end_inset
15194
15195  means 
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200
15201 \backslash
15202
15203 \emph on
15204 LatexName
15205 \emph default
15206 {\SpecialChar ldots
15207 }
15208 \end_layout
15209
15210 \end_inset
15211
15212 .
15213 \end_layout
15214
15215 \begin_layout Description
15216 \begin_inset Flex Code
15217 status collapsed
15218
15219 \begin_layout Plain Layout
15220 Environment
15221 \end_layout
15222
15223 \end_inset
15224
15225  means 
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230
15231 \backslash
15232 begin{
15233 \emph on
15234 LatexName
15235 \emph default
15236 }\SpecialChar ldots
15237
15238 \backslash
15239 end{
15240 \emph on
15241 LatexName
15242 \emph default
15243 }
15244 \end_layout
15245
15246 \end_inset
15247
15248 .
15249  
15250 \end_layout
15251
15252 \begin_layout Description
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 Item_Environment
15258 \end_layout
15259
15260 \end_inset
15261
15262  is the same as 
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 Environment
15268 \end_layout
15269
15270 \end_inset
15271
15272 , except that an 
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277
15278 \backslash
15279 item
15280 \end_layout
15281
15282 \end_inset
15283
15284  is generated for each paragraph of this environment.
15285  
15286 \end_layout
15287
15288 \begin_layout Description
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293 List_Environment
15294 \end_layout
15295
15296 \end_inset
15297
15298  is the same as 
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 Item_Environment
15304 \end_layout
15305
15306 \end_inset
15307
15308 , except that
15309 \begin_inset Newline newline
15310 \end_inset
15311
15312
15313 \begin_inset Flex Code
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 LabelWidthString
15318 \end_layout
15319
15320 \end_inset
15321
15322  is passed as an argument to the environment.
15323 \begin_inset Newline newline
15324 \end_inset
15325
15326
15327 \begin_inset Flex Code
15328 status collapsed
15329
15330 \begin_layout Plain Layout
15331 LabelWidthString
15332 \end_layout
15333
15334 \end_inset
15335
15336  can be defined in the 
15337 \begin_inset Flex Noun
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 Edit\SpecialChar menuseparator
15342 Paragraph
15343 \begin_inset space ~
15344 \end_inset
15345
15346 settings
15347 \end_layout
15348
15349 \end_inset
15350
15351  dialog.
15352 \end_layout
15353
15354 \begin_layout Description
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 Bib_Environment
15360 \end_layout
15361
15362 \end_inset
15363
15364  is like 
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 Environment
15370 \end_layout
15371
15372 \end_inset
15373
15374  but adds the necessary mandatory argument (the longest label) to the begin
15375  statement of the bibliography environment:
15376 \begin_inset Newline newline
15377 \end_inset
15378
15379
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384
15385 \backslash
15386 begin{thebibliography}{99}
15387 \end_layout
15388
15389 \end_inset
15390
15391 .
15392  It is therefore only useful for bibliography environments.
15393  The default longest label 
15394 \begin_inset Quotes eld
15395 \end_inset
15396
15397 99
15398 \begin_inset Quotes erd
15399 \end_inset
15400
15401  can be changed by the user in the paragraph settings of a bibliography
15402  item.
15403 \end_layout
15404
15405 \begin_layout Standard
15406 Putting the last few things together, the \SpecialChar LaTeX
15407  output will be either: 
15408 \end_layout
15409
15410 \begin_layout LyX-Code
15411
15412 \backslash
15413 LatexName[LatexParam]{\SpecialChar ldots
15414 }
15415 \end_layout
15416
15417 \begin_layout Standard
15418 or: 
15419 \end_layout
15420
15421 \begin_layout LyX-Code
15422
15423 \backslash
15424 begin{LatexName}[LatexParam] \SpecialChar ldots
15425  
15426 \backslash
15427 end{LatexName}.
15428 \end_layout
15429
15430 \begin_layout Standard
15431 depending upon the \SpecialChar LaTeX
15432  type.
15433 \end_layout
15434
15435 \end_deeper
15436 \begin_layout Description
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 LeftDelim
15442 \end_layout
15443
15444 \end_inset
15445
15446  [
15447 \begin_inset Flex Code
15448 status collapsed
15449
15450 \begin_layout Plain Layout
15451 string
15452 \end_layout
15453
15454 \end_inset
15455
15456 ] A string that is put at the beginning of the style content.
15457  A line break in the output can be indicated by 
15458 \begin_inset Flex Code
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 <br/>
15463 \end_layout
15464
15465 \end_inset
15466
15467 .
15468 \end_layout
15469
15470 \begin_layout Description
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 LeftMargin
15476 \end_layout
15477
15478 \end_inset
15479
15480  [
15481 \begin_inset Flex Code
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485 string=""
15486 \end_layout
15487
15488 \end_inset
15489
15490 ] If you put styles into environments, the different 
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 LeftMargin
15496 \end_layout
15497
15498 \end_inset
15499
15500  are not simply added, but added with a factor 
15501 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15502 \end_inset
15503
15504 .
15505  Note that this parameter is also used when 
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 Margin
15511 \end_layout
15512
15513 \end_inset
15514
15515  is defined as 
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 Manual
15521 \end_layout
15522
15523 \end_inset
15524
15525  or 
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 Dynamic
15531 \end_layout
15532
15533 \end_inset
15534
15535 .
15536  Then it is added to the manual or dynamic margin.
15537 \begin_inset Newline newline
15538 \end_inset
15539
15540 For example 
15541 \begin_inset Quotes eld
15542 \end_inset
15543
15544
15545 \begin_inset Flex Code
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549 MM
15550 \end_layout
15551
15552 \end_inset
15553
15554
15555 \begin_inset Quotes erd
15556 \end_inset
15557
15558  means that the paragraph is indented with the width of 
15559 \begin_inset Quotes eld
15560 \end_inset
15561
15562
15563 \begin_inset Flex Code
15564 status collapsed
15565
15566 \begin_layout Plain Layout
15567 MM
15568 \end_layout
15569
15570 \end_inset
15571
15572
15573 \begin_inset Quotes erd
15574 \end_inset
15575
15576  in the normal font.
15577  You can get a negative width by prefixing the string with 
15578 \begin_inset Quotes eld
15579 \end_inset
15580
15581
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 -
15587 \end_layout
15588
15589 \end_inset
15590
15591
15592 \begin_inset Quotes erd
15593 \end_inset
15594
15595 .
15596  This way was chosen so that the look is the same with each used screen
15597  font.
15598 \end_layout
15599
15600 \begin_layout Description
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 Margin
15606 \end_layout
15607
15608 \end_inset
15609
15610  [
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615
15616 \emph on
15617 Static
15618 \emph default
15619 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15620 \end_layout
15621
15622 \end_inset
15623
15624
15625 \begin_inset Newline newline
15626 \end_inset
15627
15628 The kind of margin that the style has on the left side.
15629 \end_layout
15630
15631 \begin_deeper
15632 \begin_layout Description
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637 Static
15638 \end_layout
15639
15640 \end_inset
15641
15642  just means a fixed margin.
15643 \end_layout
15644
15645 \begin_layout Description
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 Manual
15651 \end_layout
15652
15653 \end_inset
15654
15655  means that the left margin depends on the string entered in the 
15656 \begin_inset Flex Noun
15657 status collapsed
15658
15659 \begin_layout Plain Layout
15660 Edit\SpecialChar menuseparator
15661 Paragraph
15662 \begin_inset space ~
15663 \end_inset
15664
15665 Settings
15666 \end_layout
15667
15668 \end_inset
15669
15670  dialog.
15671  This is used to typeset nice lists without tabulators.
15672 \end_layout
15673
15674 \begin_layout Description
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 Dynamic
15680 \end_layout
15681
15682 \end_inset
15683
15684  means that the margin depends on the size of the label.
15685  This is used for automatic enumerated headlines.
15686  It is obvious that the headline 
15687 \begin_inset Quotes eld
15688 \end_inset
15689
15690 5.4.3.2.1 Very long headline
15691 \begin_inset Quotes erd
15692 \end_inset
15693
15694  must have a wider left margin (as wide as 
15695 \begin_inset Quotes eld
15696 \end_inset
15697
15698 5.4.3.2.1
15699 \begin_inset Quotes erd
15700 \end_inset
15701
15702  plus the space) than 
15703 \begin_inset Quotes eld
15704 \end_inset
15705
15706 3.2 Very long headline
15707 \begin_inset Quotes erd
15708 \end_inset
15709
15710 , even if standard 
15711 \begin_inset Quotes eld
15712 \end_inset
15713
15714 word processors
15715 \begin_inset Quotes erd
15716 \end_inset
15717
15718  are not able to do this.
15719 \end_layout
15720
15721 \begin_layout Description
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 First_Dynamic
15727 \end_layout
15728
15729 \end_inset
15730
15731  is similar, but only the very first row of the paragraph is dynamic, while
15732  the others are static; this is used, for example, for descriptions.
15733 \end_layout
15734
15735 \begin_layout Description
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 Right_Address_Box
15741 \end_layout
15742
15743 \end_inset
15744
15745  means the margin is chosen in a way that the longest row of this paragraph
15746  fits to the right margin.
15747  This is used to typeset an address on the right edge of the page.
15748 \end_layout
15749
15750 \end_deeper
15751 \begin_layout Description
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 NeedProtect
15757 \end_layout
15758
15759 \end_inset
15760
15761  [
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766
15767 \emph on
15768 0
15769 \end_layout
15770
15771 \end_inset
15772
15773 ,
15774 \begin_inset space \thinspace{}
15775 \end_inset
15776
15777
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 1
15783 \end_layout
15784
15785 \end_inset
15786
15787 ] Whether fragile commands in this style should be 
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792
15793 \backslash
15794 protect
15795 \end_layout
15796
15797 \end_inset
15798
15799 'ed.
15800  (Note: This is 
15801 \emph on
15802 not
15803 \emph default
15804  whether this command should itself be protected.)
15805 \change_inserted -712698321 1523696949
15806
15807 \end_layout
15808
15809 \begin_layout Description
15810
15811 \change_inserted -712698321 1552395557
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816
15817 \change_inserted -712698321 1523696950
15818 NeedCProtect
15819 \end_layout
15820
15821 \end_inset
15822
15823  [
15824 \begin_inset Flex Code
15825 status collapsed
15826
15827 \begin_layout Plain Layout
15828
15829 \change_inserted -712698321 1523696950
15830
15831 \emph on
15832 0
15833 \end_layout
15834
15835 \end_inset
15836
15837 ,
15838 \begin_inset space \thinspace{}
15839 \end_inset
15840
15841
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846
15847 \change_inserted -712698321 1523696950
15848 1
15849 \end_layout
15850
15851 \end_inset
15852
15853 ] This causes macros that contain this layout to be protected with 
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858
15859 \change_inserted -712698321 1523696950
15860
15861 \backslash
15862 cprotect
15863 \end_layout
15864
15865 \end_inset
15866
15867  (cf.
15868  package 
15869 \family sans
15870 cprotect
15871 \family default
15872 ) if necessary and thus allows (some) verbatim stuff in macros.
15873 \end_layout
15874
15875 \begin_layout Description
15876
15877 \change_inserted -712698321 1552395844
15878 \begin_inset Flex Code
15879 status collapsed
15880
15881 \begin_layout Plain Layout
15882
15883 \change_inserted -712698321 1552395561
15884 NeedMBoxProtect
15885 \end_layout
15886
15887 \end_inset
15888
15889  [
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894
15895 \change_inserted -712698321 1552395557
15896
15897 \emph on
15898 0
15899 \end_layout
15900
15901 \end_inset
15902
15903 ,
15904 \begin_inset space \thinspace{}
15905 \end_inset
15906
15907
15908 \begin_inset Flex Code
15909 status collapsed
15910
15911 \begin_layout Plain Layout
15912
15913 \change_inserted -712698321 1552395557
15914 1
15915 \end_layout
15916
15917 \end_inset
15918
15919 ] Whether specific commands in this style (such as 
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924
15925 \change_inserted -712698321 1552395655
15926
15927 \backslash
15928 cite
15929 \change_unchanged
15930
15931 \end_layout
15932
15933 \end_inset
15934
15935  and 
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940
15941 \change_inserted -712698321 1552395661
15942
15943 \backslash
15944 ref
15945 \change_unchanged
15946
15947 \end_layout
15948
15949 \end_inset
15950
15951 ) should be protected in an 
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956
15957 \change_inserted -712698321 1552395631
15958
15959 \backslash
15960 mbox
15961 \change_unchanged
15962
15963 \end_layout
15964
15965 \end_inset
15966
15967 .
15968  This is particularly needed for styles that draw on 
15969 \family sans
15970 ulem
15971 \family default
15972  or 
15973 \family sans
15974 soul
15975 \family default
15976  commands which parse their content in complex ways.
15977 \change_unchanged
15978
15979 \end_layout
15980
15981 \begin_layout Description
15982 \begin_inset Flex Code
15983 status collapsed
15984
15985 \begin_layout Plain Layout
15986 Newline
15987 \end_layout
15988
15989 \end_inset
15990
15991  [
15992 \begin_inset Flex Code
15993 status collapsed
15994
15995 \begin_layout Plain Layout
15996 0
15997 \end_layout
15998
15999 \end_inset
16000
16001 ,
16002 \begin_inset space \thinspace{}
16003 \end_inset
16004
16005
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010
16011 \emph on
16012 1
16013 \end_layout
16014
16015 \end_inset
16016
16017 ] Whether newlines are translated into \SpecialChar LaTeX
16018  newlines (
16019 \begin_inset Flex Code
16020 status collapsed
16021
16022 \begin_layout Plain Layout
16023
16024 \backslash
16025
16026 \backslash
16027
16028 \end_layout
16029
16030 \end_inset
16031
16032 ) or not.
16033  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16034  editing
16035  inside \SpecialChar LyX
16036 .
16037 \end_layout
16038
16039 \begin_layout Description
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 NextNoIndent
16045 \end_layout
16046
16047 \end_inset
16048
16049  [
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054
16055 \emph on
16056 0
16057 \end_layout
16058
16059 \end_inset
16060
16061 ,
16062 \begin_inset space \thinspace{}
16063 \end_inset
16064
16065
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 1
16071 \end_layout
16072
16073 \end_inset
16074
16075 ] If set to true, and if 
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 DefaultStyle
16081 \end_layout
16082
16083 \end_inset
16084
16085  (usually 
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 Standard
16091 \end_layout
16092
16093 \end_inset
16094
16095 ) paragraphs are being indented, then the indentation of such a paragraph
16096  following one of this type will be suppressed.
16097  (So this will not affect the display of non-default paragraphs.)
16098 \end_layout
16099
16100 \begin_layout Description
16101 \begin_inset Flex Code
16102 status collapsed
16103
16104 \begin_layout Plain Layout
16105 ObsoletedBy
16106 \end_layout
16107
16108 \end_inset
16109
16110  [
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 <name>
16116 \end_layout
16117
16118 \end_inset
16119
16120 ] Name of a style that has replaced this style.
16121  This is used to rename a style, while keeping backward compatibility.
16122 \end_layout
16123
16124 \begin_layout Description
16125 \begin_inset Flex Code
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129 ParagraphGroup
16130 \end_layout
16131
16132 \end_inset
16133
16134  [
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 0
16140 \end_layout
16141
16142 \end_inset
16143
16144 ,
16145 \begin_inset space \thinspace{}
16146 \end_inset
16147
16148
16149 \begin_inset Flex Code
16150 status collapsed
16151
16152 \begin_layout Plain Layout
16153 1
16154 \end_layout
16155
16156 \end_inset
16157
16158 ] Determines whether consecutive paragraphs of the same type are treated
16159  as belonging together.
16160  This has the effect that the 
16161 \begin_inset Flex Code
16162 status collapsed
16163
16164 \begin_layout Plain Layout
16165 GuiLabel
16166 \end_layout
16167
16168 \end_inset
16169
16170  is only printed once before such a group.
16171  By default, this is true for 
16172 \begin_inset Flex Code
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 LaTeXType
16177 \end_layout
16178
16179 \end_inset
16180
16181  
16182 \begin_inset Flex Code
16183 status collapsed
16184
16185 \begin_layout Plain Layout
16186 Environment
16187 \end_layout
16188
16189 \end_inset
16190
16191  and 
16192 \begin_inset Flex Code
16193 status collapsed
16194
16195 \begin_layout Plain Layout
16196 Bib_Environment
16197 \end_layout
16198
16199 \end_inset
16200
16201  and false for all other types.
16202 \end_layout
16203
16204 \begin_layout Description
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 ParbreakIsNewline
16210 \end_layout
16211
16212 \end_inset
16213
16214  [
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219
16220 \emph on
16221 0
16222 \end_layout
16223
16224 \end_inset
16225
16226 ,
16227 \begin_inset space \thinspace{}
16228 \end_inset
16229
16230
16231 \begin_inset Flex Code
16232 status collapsed
16233
16234 \begin_layout Plain Layout
16235 1
16236 \end_layout
16237
16238 \end_inset
16239
16240 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16241  output,
16242  but only by a line break; together with 
16243 \begin_inset Flex Code
16244 status collapsed
16245
16246 \begin_layout Plain Layout
16247 PassThru 1
16248 \end_layout
16249
16250 \end_inset
16251
16252 , this allows to emulate a plain text editor (like the ERT inset).
16253 \end_layout
16254
16255 \begin_layout Description
16256 \begin_inset Flex Code
16257 status collapsed
16258
16259 \begin_layout Plain Layout
16260 ParIndent
16261 \end_layout
16262
16263 \end_inset
16264
16265  [
16266 \begin_inset Flex Code
16267 status collapsed
16268
16269 \begin_layout Plain Layout
16270 string=""
16271 \end_layout
16272
16273 \end_inset
16274
16275 ] The indent of the very first line of a paragraph.
16276  The
16277 \begin_inset Newline newline
16278 \end_inset
16279
16280
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 Parindent
16286 \end_layout
16287
16288 \end_inset
16289
16290  will be fixed for a certain style.
16291  The exception is the default style, since the indentation for these paragraphs
16292  can be prohibited with 
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 NextNoIndent
16298 \end_layout
16299
16300 \end_inset
16301
16302 .
16303  Also, 
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 Standard
16309 \end_layout
16310
16311 \end_inset
16312
16313  style paragraphs inside environments use the 
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 Parindent
16319 \end_layout
16320
16321 \end_inset
16322
16323  of the environment, not their native one.
16324  For example, 
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 Standard
16330 \end_layout
16331
16332 \end_inset
16333
16334  paragraphs inside an enumeration are not indented.
16335 \end_layout
16336
16337 \begin_layout Description
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 ParSep
16343 \end_layout
16344
16345 \end_inset
16346
16347  [
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 float=0
16353 \end_layout
16354
16355 \end_inset
16356
16357 ] The vertical space between two paragraphs of this style.
16358 \end_layout
16359
16360 \begin_layout Description
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 Parskip
16366 \end_layout
16367
16368 \end_inset
16369
16370  [
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 float=0
16376 \end_layout
16377
16378 \end_inset
16379
16380 ] \SpecialChar LyX
16381  allows the user to choose either 
16382 \begin_inset Quotes eld
16383 \end_inset
16384
16385 indent
16386 \begin_inset Quotes erd
16387 \end_inset
16388
16389  or 
16390 \begin_inset Quotes eld
16391 \end_inset
16392
16393 skip
16394 \begin_inset Quotes erd
16395 \end_inset
16396
16397  to separate paragraphs.
16398  When 
16399 \begin_inset Quotes eld
16400 \end_inset
16401
16402 indent
16403 \begin_inset Quotes erd
16404 \end_inset
16405
16406  is chosen, 
16407 \begin_inset Flex Code
16408 status collapsed
16409
16410 \begin_layout Plain Layout
16411 Parskip
16412 \end_layout
16413
16414 \end_inset
16415
16416  is ignored.
16417  When 
16418 \begin_inset Quotes eld
16419 \end_inset
16420
16421 skip
16422 \begin_inset Quotes erd
16423 \end_inset
16424
16425  is chosen, 
16426 \begin_inset Flex Code
16427 status collapsed
16428
16429 \begin_layout Plain Layout
16430 ParIndent
16431 \end_layout
16432
16433 \end_inset
16434
16435  is ignored and all paragraphs are separated by the 
16436 \begin_inset Flex Code
16437 status collapsed
16438
16439 \begin_layout Plain Layout
16440 Parskip
16441 \end_layout
16442
16443 \end_inset
16444
16445  argument.
16446  The vertical space is calculated with 
16447 \begin_inset Flex Code
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451 Parskip
16452 \begin_inset space ~
16453 \end_inset
16454
16455 * DefaultHeight
16456 \end_layout
16457
16458 \end_inset
16459
16460  where 
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 DefaultHeight
16466 \end_layout
16467
16468 \end_inset
16469
16470  is the height of a row with the normal font.
16471  This way, the look stays the same with different screen fonts.
16472 \end_layout
16473
16474 \begin_layout Description
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 PassThru
16480 \end_layout
16481
16482 \end_inset
16483
16484  [
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489
16490 \emph on
16491 0
16492 \end_layout
16493
16494 \end_inset
16495
16496 ,
16497 \begin_inset space \thinspace{}
16498 \end_inset
16499
16500
16501 \begin_inset Flex Code
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505 1
16506 \end_layout
16507
16508 \end_inset
16509
16510 ] Whether the contents of this paragraph should be output in raw form, meaning
16511  without special translations that \SpecialChar LaTeX
16512  would require.
16513 \end_layout
16514
16515 \begin_layout Description
16516 \begin_inset Flex Code
16517 status collapsed
16518
16519 \begin_layout Plain Layout
16520 PassThruChars
16521 \end_layout
16522
16523 \end_inset
16524
16525  [
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530 string
16531 \end_layout
16532
16533 \end_inset
16534
16535 ]
16536 \family typewriter
16537  
16538 \family default
16539 Defines individual characters that should be output in raw form, meaning
16540  without special translations that \SpecialChar LaTeX
16541  would require.
16542 \end_layout
16543
16544 \begin_layout Description
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 Preamble
16550 \end_layout
16551
16552 \end_inset
16553
16554  Information to be included in the \SpecialChar LaTeX
16555  preamble when this style is used.
16556  Used to define macros, load packages, etc., required by this particular
16557  style.
16558  Must end with 
16559 \begin_inset Quotes eld
16560 \end_inset
16561
16562
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 EndPreamble
16568 \end_layout
16569
16570 \end_inset
16571
16572
16573 \begin_inset Quotes erd
16574 \end_inset
16575
16576 .
16577 \end_layout
16578
16579 \begin_layout Description
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584 RefPrefix
16585 \end_layout
16586
16587 \end_inset
16588
16589  [
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 string
16595 \end_layout
16596
16597 \end_inset
16598
16599 ] The prefix to use when creating labels referring to paragraphs of this
16600  type.
16601  This allows the use of formatted references.
16602 \end_layout
16603
16604 \begin_layout Description
16605 \begin_inset Flex Code
16606 status collapsed
16607
16608 \begin_layout Plain Layout
16609 Requires 
16610 \end_layout
16611
16612 \end_inset
16613
16614  [
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 string
16620 \end_layout
16621
16622 \end_inset
16623
16624 ] Whether the style requires the feature 
16625 \begin_inset Flex Code
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629 string
16630 \end_layout
16631
16632 \end_inset
16633
16634  (see 
16635 \begin_inset CommandInset ref
16636 LatexCommand ref
16637 reference "chap:List-of-functions"
16638
16639 \end_inset
16640
16641  for the list of features).
16642  If you require a package with specific options, you can additionally use
16643  
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648 PackageOptions
16649 \end_layout
16650
16651 \end_inset
16652
16653  as a general text class parameter (see 
16654 \begin_inset CommandInset ref
16655 LatexCommand ref
16656 reference "subsec:General-text-class"
16657
16658 \end_inset
16659
16660 ).
16661 \end_layout
16662
16663 \begin_layout Description
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668 ResetArgs
16669 \end_layout
16670
16671 \end_inset
16672
16673  [
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678
16679 \emph on
16680 0
16681 \end_layout
16682
16683 \end_inset
16684
16685 ,
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 1
16691 \end_layout
16692
16693 \end_inset
16694
16695 ] Resets the \SpecialChar LaTeX
16696  arguments of this style (as defined via the 
16697 \begin_inset Flex Code
16698 status collapsed
16699
16700 \begin_layout Plain Layout
16701 Argument
16702 \end_layout
16703
16704 \end_inset
16705
16706  tag).
16707  This is useful if you have copied a style via 
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 CopyStyle
16713 \end_layout
16714
16715 \end_inset
16716
16717 , but you do not want to inherit its (required and optional) arguments.
16718 \end_layout
16719
16720 \begin_layout Description
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 ResumeCounter
16726 \end_layout
16727
16728 \end_inset
16729
16730  [
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735
16736 \emph on
16737 0
16738 \end_layout
16739
16740 \end_inset
16741
16742 ,
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 1
16748 \end_layout
16749
16750 \end_inset
16751
16752 ] Resumes a counter that is usually reset at each new sequence of layouts.
16753  This is currently only useful when 
16754 \begin_inset Flex Code
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 LabelType
16759 \end_layout
16760
16761 \end_inset
16762
16763  is 
16764 \begin_inset Flex Code
16765 status collapsed
16766
16767 \begin_layout Plain Layout
16768 Enumerate
16769 \end_layout
16770
16771 \end_inset
16772
16773 .
16774 \end_layout
16775
16776 \begin_layout Description
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 RightDelim
16782 \end_layout
16783
16784 \end_inset
16785
16786  [
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 string
16792 \end_layout
16793
16794 \end_inset
16795
16796 ] A string that is put at the end of the layout content.
16797  A line break in the output can be indicated by 
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802 <br/>
16803 \end_layout
16804
16805 \end_inset
16806
16807 .
16808 \end_layout
16809
16810 \begin_layout Description
16811 \begin_inset Flex Code
16812 status collapsed
16813
16814 \begin_layout Plain Layout
16815 RightMargin
16816 \end_layout
16817
16818 \end_inset
16819
16820  [
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 string=""
16826 \end_layout
16827
16828 \end_inset
16829
16830 ] Similar to 
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 LeftMargin
16836 \end_layout
16837
16838 \end_inset
16839
16840 .
16841 \end_layout
16842
16843 \begin_layout Description
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 Spacing
16849 \end_layout
16850
16851 \end_inset
16852
16853  [
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858
16859 \emph on
16860 single
16861 \end_layout
16862
16863 \end_inset
16864
16865
16866 \begin_inset Flex Code
16867 status collapsed
16868
16869 \begin_layout Plain Layout
16870 onehalf
16871 \end_layout
16872
16873 \end_inset
16874
16875
16876 \begin_inset Flex Code
16877 status collapsed
16878
16879 \begin_layout Plain Layout
16880 double
16881 \end_layout
16882
16883 \end_inset
16884
16885
16886 \begin_inset Flex Code
16887 status collapsed
16888
16889 \begin_layout Plain Layout
16890 other
16891 \begin_inset space ~
16892 \end_inset
16893
16894 <value>
16895 \end_layout
16896
16897 \end_inset
16898
16899 ] This defines what the default spacing should be in the style.
16900  The arguments 
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 single
16906 \end_layout
16907
16908 \end_inset
16909
16910
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 onehalf
16916 \end_layout
16917
16918 \end_inset
16919
16920  and 
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925 double
16926 \end_layout
16927
16928 \end_inset
16929
16930  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16931  If you specify the argument 
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 other
16937 \end_layout
16938
16939 \end_inset
16940
16941 , then you must also provide a value argument which will be the actual multiplie
16942 r value.
16943  Note that, contrary to other parameters, 
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948 Spacing
16949 \end_layout
16950
16951 \end_inset
16952
16953  implies the generation of specific \SpecialChar LaTeX
16954  code, using the \SpecialChar LaTeX
16955  package 
16956 \family roman
16957
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962 setspace
16963 \end_layout
16964
16965 \end_inset
16966
16967 .
16968 \end_layout
16969
16970 \begin_layout Description
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 Spellcheck
16976 \end_layout
16977
16978 \end_inset
16979
16980  [
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 0
16986 \end_layout
16987
16988 \end_inset
16989
16990 ,
16991 \begin_inset space \thinspace{}
16992 \end_inset
16993
16994
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999
17000 \emph on
17001 1
17002 \end_layout
17003
17004 \end_inset
17005
17006 ] Allow spell-checking paragraphs of this style.
17007  Default is true.
17008 \end_layout
17009
17010 \begin_layout Description
17011 \begin_inset Flex Code
17012 status collapsed
17013
17014 \begin_layout Plain Layout
17015 StepMasterCounter
17016 \end_layout
17017
17018 \end_inset
17019
17020  [
17021 \begin_inset Flex Code
17022 status collapsed
17023
17024 \begin_layout Plain Layout
17025
17026 \emph on
17027 0
17028 \end_layout
17029
17030 \end_inset
17031
17032 ,
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 1
17038 \end_layout
17039
17040 \end_inset
17041
17042 ] Steps the master counter of a given counter at the beginning of a new
17043  sequence of layouts.
17044  This is currently only useful when 
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 LabelType
17050 \end_layout
17051
17052 \end_inset
17053
17054  is 
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 Enumerate
17060 \end_layout
17061
17062 \end_inset
17063
17064 .
17065 \end_layout
17066
17067 \begin_layout Description
17068 \begin_inset Flex Code
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 TextFont
17073 \end_layout
17074
17075 \end_inset
17076
17077  The font used for the text body .
17078  See 
17079 \begin_inset CommandInset ref
17080 LatexCommand ref
17081 reference "subsec:Font-description"
17082
17083 \end_inset
17084
17085 .
17086 \end_layout
17087
17088 \begin_layout Description
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 TocLevel
17094 \end_layout
17095
17096 \end_inset
17097
17098
17099 \series medium
17100  [
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105
17106 \series medium
17107 int=3
17108 \end_layout
17109
17110 \end_inset
17111
17112 ]
17113 \series default
17114  The level of the style in the table of contents.
17115  This is used for automatic numbering of section headings.
17116 \end_layout
17117
17118 \begin_layout Description
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 ToggleIndent
17124 \end_layout
17125
17126 \end_inset
17127
17128  [
17129 \emph on
17130
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135
17136 \emph on
17137 default
17138 \end_layout
17139
17140 \end_inset
17141
17142
17143 \emph default
17144
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149 always
17150 \end_layout
17151
17152 \end_inset
17153
17154
17155 \begin_inset Flex Code
17156 status collapsed
17157
17158 \begin_layout Plain Layout
17159 never
17160 \end_layout
17161
17162 \end_inset
17163
17164 ] This tag determines whether the first line indentation of this paragraph
17165  can be toggled via the Paragraph settings dialog.
17166  If 
17167 \emph on
17168
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173
17174 \emph off
17175 default
17176 \end_layout
17177
17178 \end_inset
17179
17180
17181 \emph default
17182  is set, indentation can be toggled if the document settings use 
17183 \begin_inset Quotes eld
17184 \end_inset
17185
17186 indent
17187 \begin_inset Quotes erd
17188 \end_inset
17189
17190  paragraph style, with 
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 always
17196 \end_layout
17197
17198 \end_inset
17199
17200 , indentation can always be toggled, notwithstanding the document settings,
17201  with 
17202 \begin_inset Flex Code
17203 status collapsed
17204
17205 \begin_layout Plain Layout
17206 never
17207 \end_layout
17208
17209 \end_inset
17210
17211 , indentation can never be toggled.
17212 \end_layout
17213
17214 \begin_layout Description
17215 \begin_inset Flex Code
17216 status collapsed
17217
17218 \begin_layout Plain Layout
17219 TopSep
17220 \end_layout
17221
17222 \end_inset
17223
17224  [
17225 \begin_inset Flex Code
17226 status collapsed
17227
17228 \begin_layout Plain Layout
17229 float=0
17230 \end_layout
17231
17232 \end_inset
17233
17234 ] The vertical space with which the very first of a chain of paragraphs
17235  with this style is separated from the previous paragraph.
17236  If the previous paragraph has another style, the separations are not simply
17237  added, but the maximum is taken.
17238 \end_layout
17239
17240 \begin_layout Subsection
17241 \begin_inset CommandInset label
17242 LatexCommand label
17243 name "subsec:I18n"
17244
17245 \end_inset
17246
17247 Internationalization of Paragraph Styles
17248 \end_layout
17249
17250 \begin_layout Standard
17251 \SpecialChar LyX
17252  has long supported internationalization of layout information, but, until
17253  version 2.0, this applied only to the user interface and not to, say, PDF
17254  output.
17255  Thus, French authors were forced to resort to ugly hacks if they wanted
17256  `
17257 \lang french
17258 Théorème
17259 \lang english
17260  1' instead of `Theorem 1'.
17261  Thanks to Georg Baum, that is no longer the case.
17262 \end_layout
17263
17264 \begin_layout Standard
17265 If a 
17266 \begin_inset Flex Code
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 Style
17271 \end_layout
17272
17273 \end_inset
17274
17275  defines text that is to appear in the typeset document, it may use 
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 LangPreamble
17281 \end_layout
17282
17283 \end_inset
17284
17285  and 
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290 BabelPreamble
17291 \end_layout
17292
17293 \end_inset
17294
17295  to support non-English and even multi-language documents correctly.
17296  The following excerpt (from the 
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 theorems-ams.inc
17302 \end_layout
17303
17304 \end_inset
17305
17306  file) shows how this works:
17307 \end_layout
17308
17309 \begin_layout LyX-Code
17310 Preamble
17311 \end_layout
17312
17313 \begin_deeper
17314 \begin_layout LyX-Code
17315   
17316 \backslash
17317 theoremstyle{remark}
17318 \end_layout
17319
17320 \begin_layout LyX-Code
17321   
17322 \backslash
17323 newtheorem{claim}[thm]{
17324 \backslash
17325 protect
17326 \backslash
17327 claimname}
17328 \end_layout
17329
17330 \begin_layout LyX-Code
17331 EndPreamble
17332 \end_layout
17333
17334 \begin_layout LyX-Code
17335 LangPreamble
17336 \end_layout
17337
17338 \begin_layout LyX-Code
17339   
17340 \backslash
17341 providecommand{
17342 \backslash
17343 claimname}{_(Claim)}
17344 \end_layout
17345
17346 \begin_layout LyX-Code
17347 EndLangPreamble
17348 \end_layout
17349
17350 \begin_layout LyX-Code
17351 BabelPreamble
17352 \end_layout
17353
17354 \begin_layout LyX-Code
17355     
17356 \backslash
17357 addto
17358 \backslash
17359 captions$$lang{
17360 \backslash
17361 renewcommand{
17362 \backslash
17363 claimname}{_(Claim)}}
17364 \end_layout
17365
17366 \begin_layout LyX-Code
17367 EndBabelPreamble
17368 \end_layout
17369
17370 \end_deeper
17371 \begin_layout Standard
17372 In principle, any legal \SpecialChar LaTeX
17373  may appear in the 
17374 \begin_inset Flex Code
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 LangPreamble
17379 \end_layout
17380
17381 \end_inset
17382
17383  and 
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 BabelPreamble
17389 \end_layout
17390
17391 \end_inset
17392
17393  tags, but in practice they will typically look as they do here.
17394  The key to correct translation of the typeset text is the definition of
17395  the \SpecialChar LaTeX
17396  command 
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401
17402 \backslash
17403 claimname
17404 \end_layout
17405
17406 \end_inset
17407
17408  and its use in 
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413
17414 \backslash
17415 newtheorem
17416 \end_layout
17417
17418 \end_inset
17419
17420 .
17421  
17422 \end_layout
17423
17424 \begin_layout Standard
17425 The 
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 LangPreamble
17431 \end_layout
17432
17433 \end_inset
17434
17435  tag provides for internationalization based upon the overall language of
17436  the document.
17437  The contents of the tag will be included in the preamble, just as with
17438  the 
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 Preamble
17444 \end_layout
17445
17446 \end_inset
17447
17448  tag.
17449  What makes it special is the use of the 
17450 \begin_inset Quotes eld
17451 \end_inset
17452
17453 function
17454 \begin_inset Quotes erd
17455 \end_inset
17456
17457  
17458 \begin_inset Flex Code
17459 status collapsed
17460
17461 \begin_layout Plain Layout
17462 _()
17463 \end_layout
17464
17465 \end_inset
17466
17467 , which will be replaced, when \SpecialChar LyX
17468  produces \SpecialChar LaTeX
17469  output, with the translation of
17470  its argument into the document language.
17471 \end_layout
17472
17473 \begin_layout Standard
17474 The 
17475 \begin_inset Flex Code
17476 status collapsed
17477
17478 \begin_layout Plain Layout
17479 BabelPreamble
17480 \end_layout
17481
17482 \end_inset
17483
17484  tag is more complex, since it is meant to provide support for multi-language
17485  documents and so offers an interface to the 
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 babel
17491 \end_layout
17492
17493 \end_inset
17494
17495  package.
17496  Its contents will be added to the preamble once for each language that
17497  appears in the document.
17498  In this case, the argument to 
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 _()
17504 \end_layout
17505
17506 \end_inset
17507
17508  will be replaced with its translation into the language in question; the
17509  expression 
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 $$lang
17515 \end_layout
17516
17517 \end_inset
17518
17519  is replaced by the language name (as used by the babel package).
17520 \end_layout
17521
17522 \begin_layout Standard
17523 A German document that also included a French section would thus have the
17524  following in the preamble:
17525 \end_layout
17526
17527 \begin_layout LyX-Code
17528
17529 \backslash
17530 addto
17531 \backslash
17532 captionsfrench{
17533 \backslash
17534 renewcommand{
17535 \backslash
17536 claimname}{Affirmation}}
17537 \begin_inset Newline newline
17538 \end_inset
17539
17540
17541 \backslash
17542 addto
17543 \backslash
17544 captionsngerman{
17545 \backslash
17546 renewcommand{
17547 \backslash
17548 claimname}{Behauptung}}
17549 \begin_inset Newline newline
17550 \end_inset
17551
17552
17553 \backslash
17554 providecommand{
17555 \backslash
17556 claimname}{Behauptung}
17557 \end_layout
17558
17559 \begin_layout Standard
17560 \SpecialChar LaTeX
17561  and 
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 babel
17567 \end_layout
17568
17569 \end_inset
17570
17571  will then conspire to produce the correct text in the output.
17572 \end_layout
17573
17574 \begin_layout Standard
17575 One important point to note here is that the translations are provided by
17576  \SpecialChar LyX
17577  itself, through the file 
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 layouttranslations
17583 \end_layout
17584
17585 \end_inset
17586
17587 .
17588  This means, in effect, that 
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 LangPreamble
17594 \end_layout
17595
17596 \end_inset
17597
17598  and 
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 BabelPreamble
17604 \end_layout
17605
17606 \end_inset
17607
17608  are really only of use in layout files that are provided with \SpecialChar LyX
17609 , since text
17610  entered in user-created layout files will not be seen by \SpecialChar LyX
17611 's internationalizatio
17612 n routines unless the 
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 layouttranslations
17618 \end_layout
17619
17620 \end_inset
17621
17622  file is modified accordingly.
17623  That said, however, any layout created with the intention that it will
17624  be included with \SpecialChar LyX
17625  should use these tags where appropriate.
17626  Please note that the paragraph style translations provided by \SpecialChar LyX
17627  will never
17628  change with a minor update (e.
17629 \begin_inset space \thinspace{}
17630 \end_inset
17631
17632 g.
17633 \begin_inset space \space{}
17634 \end_inset
17635
17636 from version 2.1.x to 2.1.y).
17637  It is however quite likely that a major update (e.
17638 \begin_inset space \thinspace{}
17639 \end_inset
17640
17641 g.
17642 \begin_inset space \space{}
17643 \end_inset
17644
17645 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17646 \end_layout
17647
17648 \begin_layout Subsection
17649 Floats
17650 \begin_inset CommandInset label
17651 LatexCommand label
17652 name "subsec:Floats"
17653
17654 \end_inset
17655
17656
17657 \end_layout
17658
17659 \begin_layout Standard
17660 It is necessary to define the floats (
17661 \begin_inset Flex Noun
17662 status collapsed
17663
17664 \begin_layout Plain Layout
17665 figure
17666 \end_layout
17667
17668 \end_inset
17669
17670
17671 \begin_inset Flex Noun
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 table
17676 \end_layout
17677
17678 \end_inset
17679
17680 , \SpecialChar ldots
17681 ) in the text class itself.
17682  Standard floats are included in the file 
17683 \begin_inset Flex Code
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687 stdfloats.inc
17688 \end_layout
17689
17690 \end_inset
17691
17692 , so you may have to do no more than add
17693 \end_layout
17694
17695 \begin_layout LyX-Code
17696 Input stdfloats.inc
17697 \end_layout
17698
17699 \begin_layout Standard
17700 to your layout file.
17701  If you want to implement a text class that proposes some other float types
17702  (like the AGU class bundled with \SpecialChar LyX
17703 ), the information below will hopefully
17704  help you:
17705 \end_layout
17706
17707 \begin_layout Description
17708 \begin_inset Flex Code
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712 AllowedPlacement
17713 \end_layout
17714
17715 \end_inset
17716
17717  [
17718 \begin_inset Flex Code
17719 status collapsed
17720
17721 \begin_layout Plain Layout
17722 string
17723 \end_layout
17724
17725 \end_inset
17726
17727 =!htbpH] Allowed placement options for this float type.
17728  The value is a string of placement characters.
17729  Possible characters include: 
17730 \emph on
17731 h
17732 \emph default
17733  (
17734 \begin_inset Quotes eld
17735 \end_inset
17736
17737 here if possible
17738 \begin_inset Quotes erd
17739 \end_inset
17740
17741 ), 
17742 \emph on
17743 t
17744 \emph default
17745  (
17746 \begin_inset Quotes eld
17747 \end_inset
17748
17749 top of page
17750 \begin_inset Quotes erd
17751 \end_inset
17752
17753 ), 
17754 \emph on
17755 b
17756 \emph default
17757  (
17758 \begin_inset Quotes eld
17759 \end_inset
17760
17761 bottom of page
17762 \begin_inset Quotes erd
17763 \end_inset
17764
17765 ), 
17766 \emph on
17767 p
17768 \emph default
17769  (
17770 \begin_inset Quotes eld
17771 \end_inset
17772
17773 page of floats
17774 \begin_inset Quotes erd
17775 \end_inset
17776
17777 ), 
17778 \emph on
17779 H
17780 \emph default
17781  (
17782 \begin_inset Quotes eld
17783 \end_inset
17784
17785 here definitely
17786 \begin_inset Quotes erd
17787 \end_inset
17788
17789 ) and 
17790 \emph on
17791 !
17792 \emph default
17793  (
17794 \begin_inset Quotes eld
17795 \end_inset
17796
17797 ignore LaTeX rules
17798 \begin_inset Quotes erd
17799 \end_inset
17800
17801 ).
17802  The order of the characters in the string does not matter.
17803  If no placement options are allowed, use the string 
17804 \emph on
17805 none
17806 \emph default
17807 .
17808 \end_layout
17809
17810 \begin_layout Description
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 AllowsSideways
17816 \end_layout
17817
17818 \end_inset
17819
17820  [
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825
17826 \emph off
17827 0
17828 \end_layout
17829
17830 \end_inset
17831
17832 ,
17833 \begin_inset space \thinspace{}
17834 \end_inset
17835
17836
17837 \emph on
17838
17839 \begin_inset Flex Code
17840 status collapsed
17841
17842 \begin_layout Plain Layout
17843
17844 \emph on
17845 1
17846 \end_layout
17847
17848 \end_inset
17849
17850
17851 \emph default
17852 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17853 -package 
17854 \family typewriter
17855 rotfloat
17856 \family default
17857  (sidewaysfloat).
17858  Set to 
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 0
17864 \end_layout
17865
17866 \end_inset
17867
17868  if the float does not support this feature.
17869 \end_layout
17870
17871 \begin_layout Description
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 AllowsWide
17877 \end_layout
17878
17879 \end_inset
17880
17881  [
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886
17887 \emph off
17888 0
17889 \end_layout
17890
17891 \end_inset
17892
17893 ,
17894 \begin_inset space \thinspace{}
17895 \end_inset
17896
17897
17898 \emph on
17899
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904
17905 \emph on
17906 1
17907 \end_layout
17908
17909 \end_inset
17910
17911
17912 \emph default
17913 ] Defines whether the float has a starred variant that spans columns in
17914  a two column paragraph.
17915  Set to 
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 0
17921 \end_layout
17922
17923 \end_inset
17924
17925  if the float does not support this feature.
17926 \end_layout
17927
17928 \begin_layout Description
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 Extension
17934 \end_layout
17935
17936 \end_inset
17937
17938  [
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 string
17944 \end_layout
17945
17946 \end_inset
17947
17948 =
17949 \begin_inset Quotes erd
17950 \end_inset
17951
17952
17953 \begin_inset Quotes erd
17954 \end_inset
17955
17956 ] The file name extension of an auxiliary file for the list of figures (or
17957  whatever).
17958  \SpecialChar LaTeX
17959  writes the captions to this file.
17960 \end_layout
17961
17962 \begin_layout Description
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 GuiName
17968 \end_layout
17969
17970 \end_inset
17971
17972  [
17973 \begin_inset Flex Code
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977 string
17978 \end_layout
17979
17980 \end_inset
17981
17982 =
17983 \begin_inset Quotes erd
17984 \end_inset
17985
17986
17987 \begin_inset Quotes erd
17988 \end_inset
17989
17990 ] The string that will be used in the menus and also for the caption.
17991  This is translated to the current language if babel is used.
17992 \end_layout
17993
17994 \begin_layout Description
17995 \begin_inset Flex Code
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999 HTML*
18000 \end_layout
18001
18002 \end_inset
18003
18004  These tags control the XHTML output.
18005  See 
18006 \begin_inset CommandInset ref
18007 LatexCommand ref
18008 reference "sec:Tags-for-XHTML"
18009
18010 \end_inset
18011
18012 .
18013 \end_layout
18014
18015 \begin_layout Description
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020 IsPredefined
18021 \end_layout
18022
18023 \end_inset
18024
18025  [
18026 \emph on
18027
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 0
18033 \end_layout
18034
18035 \end_inset
18036
18037
18038 \emph default
18039 ,
18040 \begin_inset space \thinspace{}
18041 \end_inset
18042
18043
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 1
18049 \end_layout
18050
18051 \end_inset
18052
18053 ] Indicates whether the float is already defined in the document class or
18054  if instead the \SpecialChar LaTeX
18055  package 
18056 \begin_inset Flex Code
18057 status collapsed
18058
18059 \begin_layout Plain Layout
18060 float
18061 \end_layout
18062
18063 \end_inset
18064
18065  needs to be loaded to define it on-the-fly.
18066  The default is 
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 0
18072 \end_layout
18073
18074 \end_inset
18075
18076 , which means: 
18077 \begin_inset Flex Code
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 float
18082 \end_layout
18083
18084 \end_inset
18085
18086  is used.
18087  It should be set to 
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 1
18093 \end_layout
18094
18095 \end_inset
18096
18097  if the float is already defined by the \SpecialChar LaTeX
18098  document class.
18099 \end_layout
18100
18101 \begin_layout Description
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 ListCommand
18107 \end_layout
18108
18109 \end_inset
18110
18111  [
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 string
18117 \end_layout
18118
18119 \end_inset
18120
18121 =
18122 \begin_inset Quotes erd
18123 \end_inset
18124
18125
18126 \begin_inset Quotes erd
18127 \end_inset
18128
18129 ] The command used to generate a list of floats of this type; the leading
18130  `
18131 \backslash
18132 ' must be omitted.
18133  This 
18134 \emph on
18135 must
18136 \emph default
18137  be given if 
18138 \begin_inset Flex Code
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142 UsesFloatPkg
18143 \end_layout
18144
18145 \end_inset
18146
18147  is false, since there is no standard way to generate this command.
18148  It is ignored if 
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 UsesFloatPkg
18154 \end_layout
18155
18156 \end_inset
18157
18158  is true, since in that case there is a standard way to define the command.
18159 \end_layout
18160
18161 \begin_layout Description
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 ListName
18167 \end_layout
18168
18169 \end_inset
18170
18171  [
18172 \begin_inset Flex Code
18173 status collapsed
18174
18175 \begin_layout Plain Layout
18176 string
18177 \end_layout
18178
18179 \end_inset
18180
18181 =
18182 \begin_inset Quotes erd
18183 \end_inset
18184
18185
18186 \begin_inset Quotes erd
18187 \end_inset
18188
18189 ] A title for a list of floats of this kind (list of figures, tables, or
18190  whatever).
18191  It is used for the screen label within \SpecialChar LyX
18192 , it is used by \SpecialChar LaTeX
18193  for the title and
18194  it is used as the title in the XHTML output.
18195  It will be translated to the document language.
18196 \end_layout
18197
18198 \begin_layout Description
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203 NumberWithin
18204 \end_layout
18205
18206 \end_inset
18207
18208  [
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 string
18214 \end_layout
18215
18216 \end_inset
18217
18218 =
18219 \begin_inset Quotes erd
18220 \end_inset
18221
18222
18223 \begin_inset Quotes erd
18224 \end_inset
18225
18226 ] This (optional) argument determines whether floats of this class will
18227  be numbered within some sectional unit of the document.
18228  For example, if 
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 NumberWithin
18234 \end_layout
18235
18236 \end_inset
18237
18238  is set to 
18239 \begin_inset Quotes eld
18240 \end_inset
18241
18242
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 chapter
18248 \end_layout
18249
18250 \end_inset
18251
18252
18253 \begin_inset Quotes erd
18254 \end_inset
18255
18256 , the floats will be numbered within chapters.
18257  
18258 \end_layout
18259
18260 \begin_layout Description
18261 \begin_inset Flex Code
18262 status collapsed
18263
18264 \begin_layout Plain Layout
18265 Placement
18266 \end_layout
18267
18268 \end_inset
18269
18270  [
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275 string
18276 \end_layout
18277
18278 \end_inset
18279
18280 =
18281 \begin_inset Quotes erd
18282 \end_inset
18283
18284
18285 \begin_inset Quotes erd
18286 \end_inset
18287
18288 ] The default placement for the given class of floats.
18289  The string should be as in standard \SpecialChar LaTeX
18290
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295 t
18296 \end_layout
18297
18298 \end_inset
18299
18300
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 b
18306 \end_layout
18307
18308 \end_inset
18309
18310
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 p
18316 \end_layout
18317
18318 \end_inset
18319
18320  and 
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 h
18326 \end_layout
18327
18328 \end_inset
18329
18330  for top, bottom, page, and here, respectively.
18331 \begin_inset Foot
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335 Note that the order of these letters in the string is irrelevant, like in
18336  \SpecialChar LaTeX
18337 .
18338 \end_layout
18339
18340 \end_inset
18341
18342  On top of that there is a new type, 
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 H
18348 \end_layout
18349
18350 \end_inset
18351
18352 , which does not really correspond to a float, since it means: put it 
18353 \begin_inset Quotes eld
18354 \end_inset
18355
18356 here
18357 \begin_inset Quotes erd
18358 \end_inset
18359
18360  and nowhere else.
18361  Note however that the 
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 H
18367 \end_layout
18368
18369 \end_inset
18370
18371  specifier is special and, because of implementation details, cannot be
18372  used in non-built in float types.
18373  If you do not understand what this means, just use 
18374 \begin_inset Quotes eld
18375 \end_inset
18376
18377
18378 \begin_inset Flex Code
18379 status collapsed
18380
18381 \begin_layout Plain Layout
18382 tbp
18383 \end_layout
18384
18385 \end_inset
18386
18387
18388 \begin_inset Quotes erd
18389 \end_inset
18390
18391 .
18392 \end_layout
18393
18394 \begin_layout Description
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399 RefPrefix
18400 \end_layout
18401
18402 \end_inset
18403
18404  [
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 string
18410 \end_layout
18411
18412 \end_inset
18413
18414 ] The prefix to use when creating labels referring to floats of this type.
18415  This allows the use of formatted references.
18416  Note that you can remove any 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 RefPrefix
18422 \end_layout
18423
18424 \end_inset
18425
18426  set by a copied style by using the special value 
18427 \begin_inset Quotes eld
18428 \end_inset
18429
18430 OFF
18431 \begin_inset Quotes erd
18432 \end_inset
18433
18434 , which must be all caps.
18435 \change_inserted -712698321 1565605014
18436
18437 \end_layout
18438
18439 \begin_layout Description
18440
18441 \change_inserted -712698321 1565605014
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446
18447 \change_inserted -712698321 1565605014
18448 Requires
18449 \end_layout
18450
18451 \end_inset
18452
18453  [
18454 \begin_inset Flex Code
18455 status collapsed
18456
18457 \begin_layout Plain Layout
18458
18459 \change_inserted -712698321 1565605014
18460 string
18461 \end_layout
18462
18463 \end_inset
18464
18465 ] As with paragraph styles, see 
18466 \begin_inset CommandInset ref
18467 LatexCommand ref
18468 reference "subsec:Paragraph-Styles"
18469
18470 \end_inset
18471
18472 .
18473 \change_unchanged
18474
18475 \end_layout
18476
18477 \begin_layout Description
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Style
18483 \end_layout
18484
18485 \end_inset
18486
18487  [
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 string
18493 \end_layout
18494
18495 \end_inset
18496
18497 =
18498 \begin_inset Quotes erd
18499 \end_inset
18500
18501
18502 \begin_inset Quotes erd
18503 \end_inset
18504
18505 ] The style used when defining the float using 
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510
18511 \backslash
18512 newfloat
18513 \end_layout
18514
18515 \end_inset
18516
18517 .
18518 \end_layout
18519
18520 \begin_layout Description
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 Type
18526 \end_layout
18527
18528 \end_inset
18529
18530  [
18531 \begin_inset Flex Code
18532 status collapsed
18533
18534 \begin_layout Plain Layout
18535 string
18536 \end_layout
18537
18538 \end_inset
18539
18540 =
18541 \begin_inset Quotes erd
18542 \end_inset
18543
18544
18545 \begin_inset Quotes erd
18546 \end_inset
18547
18548 ] The 
18549 \begin_inset Quotes eld
18550 \end_inset
18551
18552 type
18553 \begin_inset Quotes erd
18554 \end_inset
18555
18556  of the new class of floats, like program or algorithm.
18557  After the appropriate 
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562
18563 \backslash
18564 newfloat
18565 \end_layout
18566
18567 \end_inset
18568
18569 , commands such as 
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574
18575 \backslash
18576 begin{program}
18577 \end_layout
18578
18579 \end_inset
18580
18581  or 
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586
18587 \backslash
18588 end{algorithm*}
18589 \end_layout
18590
18591 \end_inset
18592
18593  will be available.
18594 \end_layout
18595
18596 \begin_layout Description
18597 \begin_inset Flex Code
18598 status collapsed
18599
18600 \begin_layout Plain Layout
18601 UsesFloatPkg
18602 \end_layout
18603
18604 \end_inset
18605
18606  [
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 0
18612 \end_layout
18613
18614 \end_inset
18615
18616 ,
18617 \begin_inset space \thinspace{}
18618 \end_inset
18619
18620
18621 \begin_inset Flex Code
18622 status collapsed
18623
18624 \begin_layout Plain Layout
18625
18626 \emph on
18627 1
18628 \end_layout
18629
18630 \end_inset
18631
18632 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18633  package 
18634 \begin_inset Flex Code
18635 status collapsed
18636
18637 \begin_layout Plain Layout
18638 float
18639 \end_layout
18640
18641 \end_inset
18642
18643 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18644  itself.
18645 \end_layout
18646
18647 \begin_layout Standard
18648 Note that defining a float with type 
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653
18654 \emph on
18655 type
18656 \end_layout
18657
18658 \end_inset
18659
18660  automatically defines the corresponding counter with name 
18661 \begin_inset Flex Code
18662 status collapsed
18663
18664 \begin_layout Plain Layout
18665
18666 \emph on
18667 type
18668 \end_layout
18669
18670 \end_inset
18671
18672 .
18673 \end_layout
18674
18675 \begin_layout Subsection
18676 Flex insets and InsetLayout
18677 \begin_inset CommandInset label
18678 LatexCommand label
18679 name "subsec:Flex-insets-and"
18680
18681 \end_inset
18682
18683
18684 \end_layout
18685
18686 \begin_layout Standard
18687 Flex insets come in 
18688 \change_deleted 5863208 1594239511
18689 three
18690 \change_inserted 5863208 1594239512
18691 two
18692 \change_unchanged
18693  different kinds: 
18694 \end_layout
18695
18696 \begin_layout Itemize
18697 character style (
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 CharStyle
18703 \end_layout
18704
18705 \end_inset
18706
18707 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18708  commands as 
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713
18714 \backslash
18715 noun
18716 \end_layout
18717
18718 \end_inset
18719
18720  and 
18721 \begin_inset Flex Code
18722 status collapsed
18723
18724 \begin_layout Plain Layout
18725
18726 \backslash
18727 code
18728 \end_layout
18729
18730 \end_inset
18731
18732 .
18733 \end_layout
18734
18735 \begin_layout Itemize
18736 user custom (
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741 Custom
18742 \end_layout
18743
18744 \end_inset
18745
18746 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18747  code,
18748  footnote, and the like.
18749  An obvious example is an endnote inset, which is defined in the 
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 endnote
18755 \end_layout
18756
18757 \end_inset
18758
18759  module.
18760 \end_layout
18761
18762 \begin_layout Itemize
18763
18764 \change_deleted 5863208 1594239528
18765 XML elements (
18766 \begin_inset Flex Code
18767 status collapsed
18768
18769 \begin_layout Plain Layout
18770 Element
18771 \end_layout
18772
18773 \end_inset
18774
18775 ): For use with DocBook classes.
18776 \change_unchanged
18777
18778 \end_layout
18779
18780 \begin_layout Standard
18781 Flex insets are defined using the 
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 InsetLayout
18787 \end_layout
18788
18789 \end_inset
18790
18791  tag, which shall be explained in a moment.
18792 \end_layout
18793
18794 \begin_layout Standard
18795 The 
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 InsetLayout
18801 \end_layout
18802
18803 \end_inset
18804
18805  tag also serves another function: It can be used to customize the general
18806  layout of many different types of insets.
18807  Currently, 
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 InsetLayout
18813 \end_layout
18814
18815 \end_inset
18816
18817  can be used to customize the layout parameters for footnotes, marginal
18818  notes, note insets, \SpecialChar TeX
18819  code (ERT) insets, branches, listings, indexes, boxes,
18820  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18821 \end_layout
18822
18823 \begin_layout Standard
18824 The 
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829 InsetLayout
18830 \end_layout
18831
18832 \end_inset
18833
18834  definition must begin with a line of the form:
18835 \end_layout
18836
18837 \begin_layout LyX-Code
18838 InsetLayout <type>
18839 \end_layout
18840
18841 \begin_layout Standard
18842 Here 
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 <Type>
18848 \end_layout
18849
18850 \end_inset
18851
18852  indicates the inset whose layout is being defined, and here there are four
18853  cases.
18854 \end_layout
18855
18856 \begin_layout Enumerate
18857 The layout for a pre-existing inset is being modified.
18858  In this case, can be 
18859 \begin_inset Flex Code
18860 status collapsed
18861
18862 \begin_layout Plain Layout
18863 <Type>
18864 \end_layout
18865
18866 \end_inset
18867
18868  any one of the following: 
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 Algorithm
18874 \end_layout
18875
18876 \end_inset
18877
18878
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 Branch
18884 \end_layout
18885
18886 \end_inset
18887
18888
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 Box
18894 \end_layout
18895
18896 \end_inset
18897
18898
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 Box:shaded
18904 \end_layout
18905
18906 \end_inset
18907
18908
18909 \begin_inset Flex Code
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 Caption:Standard
18914 \end_layout
18915
18916 \end_inset
18917
18918
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 ERT
18924 \end_layout
18925
18926 \end_inset
18927
18928
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 Figure
18934 \end_layout
18935
18936 \end_inset
18937
18938
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 Foot
18944 \end_layout
18945
18946 \end_inset
18947
18948
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 Index
18954 \end_layout
18955
18956 \end_inset
18957
18958
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 Info
18964 \end_layout
18965
18966 \end_inset
18967
18968
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 Info:menu
18974 \end_layout
18975
18976 \end_inset
18977
18978
18979 \begin_inset Flex Code
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983 Info:shortcut
18984 \end_layout
18985
18986 \end_inset
18987
18988
18989 \begin_inset Flex Code
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 Info:shortcuts
18994 \end_layout
18995
18996 \end_inset
18997
18998
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 Listings
19004 \end_layout
19005
19006 \end_inset
19007
19008
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 Marginal
19014 \end_layout
19015
19016 \end_inset
19017
19018
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 Note:Comment
19024 \end_layout
19025
19026 \end_inset
19027
19028
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 Note:Note
19034 \end_layout
19035
19036 \end_inset
19037
19038
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 Note:Greyedout
19044 \end_layout
19045
19046 \end_inset
19047
19048
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 Table
19054 \end_layout
19055
19056 \end_inset
19057
19058 , or 
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 URL
19064 \end_layout
19065
19066 \end_inset
19067
19068 .
19069 \end_layout
19070
19071 \begin_layout Enumerate
19072 The layout for a Flex inset is being defined.
19073  In this case, 
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 <Type>
19079 \end_layout
19080
19081 \end_inset
19082
19083  must be of the form 
19084 \begin_inset Quotes eld
19085 \end_inset
19086
19087
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 Flex:<name>
19093 \end_layout
19094
19095 \end_inset
19096
19097
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101 , where 
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 name
19107 \end_layout
19108
19109 \end_inset
19110
19111  may be be any valid identifier not used by a pre-existing Flex inset.
19112  The identifier may include spaces, but in that case the whole thing must
19113  be wrapped in quotes.
19114  Note that the definition of a flex inset 
19115 \emph on
19116 must 
19117 \emph default
19118 also include a 
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 LyXType
19124 \end_layout
19125
19126 \end_inset
19127
19128  entry, declaring which type of inset it defines.
19129 \end_layout
19130
19131 \begin_layout Enumerate
19132 The layout for user specific branch is being defined.
19133  In this case, 
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 <Type>
19139 \end_layout
19140
19141 \end_inset
19142
19143  must be of the form 
19144 \begin_inset Quotes eld
19145 \end_inset
19146
19147
19148 \begin_inset Flex Code
19149 status collapsed
19150
19151 \begin_layout Plain Layout
19152 Branch:<name>
19153 \end_layout
19154
19155 \end_inset
19156
19157
19158 \begin_inset Quotes erd
19159 \end_inset
19160
19161 , where 
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 name
19167 \end_layout
19168
19169 \end_inset
19170
19171  may be be any valid identifier of branch defined in user's document.
19172  The identifier may include spaces, but in that case the whole thing must
19173  be wrapped in quotes.
19174  The main purpose of this feature is to allow \SpecialChar LaTeX
19175  wrapping around specific
19176  branches as user needs.
19177 \end_layout
19178
19179 \begin_layout Enumerate
19180 The layout of a user (or class) specific caption is being defined.
19181  In this case, 
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 <Type>
19187 \end_layout
19188
19189 \end_inset
19190
19191  must be of the form 
19192 \begin_inset Quotes eld
19193 \end_inset
19194
19195
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 Caption:<name>
19201 \end_layout
19202
19203 \end_inset
19204
19205
19206 \begin_inset Quotes erd
19207 \end_inset
19208
19209 , where 
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 name
19215 \end_layout
19216
19217 \end_inset
19218
19219  specifies the name of the caption as it appears in the menu.
19220  Have a look at the standard caption (
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 Caption:Standard
19226 \end_layout
19227
19228 \end_inset
19229
19230 ), the specific captions of the KOMA-Script classes (
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 Caption:Above
19236 \end_layout
19237
19238 \end_inset
19239
19240
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 Caption:Below
19246 \end_layout
19247
19248 \end_inset
19249
19250 ) or the module 
19251 \family sans
19252 Multilingual
19253 \begin_inset space ~
19254 \end_inset
19255
19256 Captions
19257 \begin_inset Newline linebreak
19258 \end_inset
19259
19260
19261 \family default
19262 (
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 Caption:Bicaption
19268 \end_layout
19269
19270 \end_inset
19271
19272 ) for applications.
19273 \end_layout
19274
19275 \begin_layout Standard
19276 The 
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 InsetLayout
19282 \end_layout
19283
19284 \end_inset
19285
19286  definition can contain the following entries:
19287 \end_layout
19288
19289 \begin_layout Description
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 AddToToc
19295 \end_layout
19296
19297 \end_inset
19298
19299  [
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 string
19305 \end_layout
19306
19307 \end_inset
19308
19309 =""] This inset will appear in the table of contents of the given type.
19310  An empty string disables.
19311  See also the OutlinerName and the IsTocCaption commands.
19312  This is only implemented for Flex insets.
19313  Default: disabled.
19314 \end_layout
19315
19316 \begin_layout Description
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 Argument
19322 \end_layout
19323
19324 \end_inset
19325
19326  [
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 int
19332 \end_layout
19333
19334 \end_inset
19335
19336 ] Defines argument number of a command\SpecialChar breakableslash
19337 environment associated with the current
19338  layout.
19339  The definition must end with 
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 EndArgument
19345 \end_layout
19346
19347 \end_inset
19348
19349 .
19350  See 
19351 \begin_inset CommandInset ref
19352 LatexCommand ref
19353 reference "subsec:Paragraph-Styles"
19354
19355 \end_inset
19356
19357  for details.
19358 \end_layout
19359
19360 \begin_layout Description
19361 \begin_inset Flex Code
19362 status collapsed
19363
19364 \begin_layout Plain Layout
19365 BabelPreamble
19366 \end_layout
19367
19368 \end_inset
19369
19370  Preamble for changing language commands; see 
19371 \begin_inset CommandInset ref
19372 LatexCommand ref
19373 reference "subsec:I18n"
19374
19375 \end_inset
19376
19377 .
19378 \end_layout
19379
19380 \begin_layout Description
19381 \begin_inset Flex Code
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385 BgColor
19386 \end_layout
19387
19388 \end_inset
19389
19390  [
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 <name>
19396 \end_layout
19397
19398 \end_inset
19399
19400 ] The color for the inset's background.
19401  See 
19402 \begin_inset CommandInset ref
19403 LatexCommand ref
19404 reference "chap:Names-of-colors"
19405
19406 \end_inset
19407
19408  for a list of the available color names.
19409 \end_layout
19410
19411 \begin_layout Description
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416 ContentAsLabel
19417 \end_layout
19418
19419 \end_inset
19420
19421  [
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426
19427 \emph on
19428 0
19429 \end_layout
19430
19431 \end_inset
19432
19433 ,
19434 \begin_inset space \thinspace{}
19435 \end_inset
19436
19437
19438 \begin_inset Flex Code
19439 status collapsed
19440
19441 \begin_layout Plain Layout
19442 1
19443 \end_layout
19444
19445 \end_inset
19446
19447 ] Whether to use the content of the inset as the label, when the inset is
19448  closed.
19449  Default is false.
19450 \end_layout
19451
19452 \begin_layout Description
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 CopyStyle
19458 \end_layout
19459
19460 \end_inset
19461
19462  [
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 <type>
19468 \end_layout
19469
19470 \end_inset
19471
19472 ] As with paragraph styles, see 
19473 \begin_inset CommandInset ref
19474 LatexCommand ref
19475 reference "subsec:Paragraph-Styles"
19476
19477 \end_inset
19478
19479 .
19480  Note that you need to specify the complete type, e.
19481 \begin_inset space \thinspace{}
19482 \end_inset
19483
19484 g.
19485 \begin_inset space ~
19486 \end_inset
19487
19488
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 CopyStyle Flex:<name>
19494 \end_layout
19495
19496 \end_inset
19497
19498 .
19499 \end_layout
19500
19501 \begin_layout Description
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 CustomPars
19507 \end_layout
19508
19509 \end_inset
19510
19511  [
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516
19517 \emph on
19518 0
19519 \end_layout
19520
19521 \end_inset
19522
19523 ,
19524 \begin_inset space \thinspace{}
19525 \end_inset
19526
19527
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 1
19533 \end_layout
19534
19535 \end_inset
19536
19537 ] Indicates whether the user may employ the Paragraph Settings dialog to
19538  customize the paragraph.
19539 \end_layout
19540
19541 \begin_layout Description
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 Decoration
19547 \end_layout
19548
19549 \end_inset
19550
19551  can be 
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 Classic
19557 \end_layout
19558
19559 \end_inset
19560
19561
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 Minimalistic
19567 \end_layout
19568
19569 \end_inset
19570
19571 , or 
19572 \begin_inset Flex Code
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 Conglomerate
19577 \end_layout
19578
19579 \end_inset
19580
19581 , describing the rendering style used for the inset's frame and buttons.
19582  Footnotes generally use 
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 Classic
19588 \end_layout
19589
19590 \end_inset
19591
19592 , ERT insets generally 
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597 Minimalistic
19598 \end_layout
19599
19600 \end_inset
19601
19602 , and character styles 
19603 \begin_inset Flex Code
19604 status collapsed
19605
19606 \begin_layout Plain Layout
19607 Conglomerate
19608 \end_layout
19609
19610 \end_inset
19611
19612 .
19613 \end_layout
19614
19615 \begin_layout Description
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 Display
19621 \end_layout
19622
19623 \end_inset
19624
19625  [
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 0
19631 \end_layout
19632
19633 \end_inset
19634
19635 ,
19636 \emph on
19637
19638 \begin_inset space \thinspace{}
19639 \end_inset
19640
19641
19642 \emph default
19643
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648
19649 \emph on
19650 1
19651 \end_layout
19652
19653 \end_inset
19654
19655 ] Only useful if 
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 LatexType
19661 \end_layout
19662
19663 \end_inset
19664
19665  is 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 Environment
19671 \end_layout
19672
19673 \end_inset
19674
19675 .
19676  Indicates whether the environment will stand on its own in the output or
19677  will appear inline with the surrounding text.
19678  If set to false, it is supposed that the \SpecialChar LaTeX
19679  environment ignores white space
19680  (including one newline character) after the 
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685
19686 \backslash
19687 begin{
19688 \emph on
19689 LatexName
19690 \emph default
19691 }
19692 \end_layout
19693
19694 \end_inset
19695
19696  and 
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701
19702 \backslash
19703 end{
19704 \emph on
19705 LatexName
19706 \emph default
19707 }
19708 \end_layout
19709
19710 \end_inset
19711
19712  tags.
19713  Default is true.
19714 \change_inserted 731793113 1538674858
19715
19716 \end_layout
19717
19718 \begin_layout Description
19719
19720 \change_inserted 731793113 1538674891
19721 \begin_inset Flex Code
19722 status open
19723
19724 \begin_layout Plain Layout
19725
19726 \change_inserted 731793113 1538674863
19727 EditExternal
19728 \change_unchanged
19729
19730 \end_layout
19731
19732 \end_inset
19733
19734  [
19735 \emph on
19736 0
19737 \emph default
19738 ,1] Allow the contents of the inset to be edited externally (using whatever
19739  editor is defined for the document's output format).
19740 \change_unchanged
19741
19742 \end_layout
19743
19744 \begin_layout Description
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 End
19750 \end_layout
19751
19752 \end_inset
19753
19754  Required at the end of the 
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 InsetLayout
19760 \end_layout
19761
19762 \end_inset
19763
19764  declarations.
19765 \end_layout
19766
19767 \begin_layout Description
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 Font
19773 \end_layout
19774
19775 \end_inset
19776
19777  The font used for both the text body 
19778 \emph on
19779 and
19780 \emph default
19781  the label.
19782  See 
19783 \begin_inset CommandInset ref
19784 LatexCommand ref
19785 reference "subsec:Font-description"
19786
19787 \end_inset
19788
19789 .
19790  Note that defining this font automatically defines the 
19791 \begin_inset Flex Code
19792 status collapsed
19793
19794 \begin_layout Plain Layout
19795 LabelFont
19796 \end_layout
19797
19798 \end_inset
19799
19800  to the same value, so define this first and define 
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 LabelFont
19806 \end_layout
19807
19808 \end_inset
19809
19810  later if you want them to be different.
19811 \end_layout
19812
19813 \begin_layout Description
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 FixedWidthPreambleEncoding
19819 \end_layout
19820
19821 \end_inset
19822
19823  [
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828
19829 \emph on
19830 0
19831 \end_layout
19832
19833 \end_inset
19834
19835 ,
19836 \begin_inset space \thinspace{}
19837 \end_inset
19838
19839
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 1
19845 \end_layout
19846
19847 \end_inset
19848
19849 ] Force a fixed width encoding for the translated contents of 
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 BabelPreamble
19855 \end_layout
19856
19857 \end_inset
19858
19859  and 
19860 \begin_inset Flex Code
19861 status collapsed
19862
19863 \begin_layout Plain Layout
19864 LangPreamble
19865 \end_layout
19866
19867 \end_inset
19868
19869  code generated by this layout.
19870  This is needed for special \SpecialChar LaTeX
19871 -packages like 
19872 \family typewriter
19873 listings
19874 \family default
19875  that do not work with variable width encodings such as 
19876 \family sans
19877 utf8
19878 \family default
19879 .
19880  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19881  backends such as Xe\SpecialChar TeX
19882  or
19883  Lua\SpecialChar TeX
19884  are used.
19885 \end_layout
19886
19887 \begin_layout Description
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 ForceLocalFontSwitch
19893 \end_layout
19894
19895 \end_inset
19896
19897  [
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902
19903 \emph on
19904 0
19905 \end_layout
19906
19907 \end_inset
19908
19909 ,
19910 \begin_inset space \thinspace{}
19911 \end_inset
19912
19913
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 1
19919 \end_layout
19920
19921 \end_inset
19922
19923 ] When using babel, always use a local font switch (
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928
19929 \backslash
19930 foreignlanguage
19931 \end_layout
19932
19933 \end_inset
19934
19935 ), never a global one (such as 
19936 \begin_inset Flex Code
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940
19941 \backslash
19942 selectlanguage
19943 \end_layout
19944
19945 \end_inset
19946
19947 ).
19948 \end_layout
19949
19950 \begin_layout Description
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 ForceLTR
19956 \end_layout
19957
19958 \end_inset
19959
19960  [
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965
19966 \emph on
19967 0
19968 \end_layout
19969
19970 \end_inset
19971
19972 ,
19973 \begin_inset space \thinspace{}
19974 \end_inset
19975
19976
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 1
19982 \end_layout
19983
19984 \end_inset
19985
19986 ] Force the 
19987 \begin_inset Quotes eld
19988 \end_inset
19989
19990 latex
19991 \begin_inset Quotes erd
19992 \end_inset
19993
19994  language, leading to Left-to-Right (Latin) output, e.
19995 \begin_inset space \thinspace{}
19996 \end_inset
19997
19998 g.
19999 \begin_inset space \space{}
20000 \end_inset
20001
20002 in \SpecialChar TeX
20003  code or URL.
20004  A kludge.
20005 \end_layout
20006
20007 \begin_layout Description
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 ForceOwnlines
20013 \end_layout
20014
20015 \end_inset
20016
20017  [
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022
20023 \emph on
20024 0
20025 \end_layout
20026
20027 \end_inset
20028
20029 ,
20030 \begin_inset space \thinspace{}
20031 \end_inset
20032
20033
20034 \begin_inset Flex Code
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038 1
20039 \end_layout
20040
20041 \end_inset
20042
20043 ] Force a a line break in the \SpecialChar LaTeX
20044  output before the inset starts and after
20045  the inset ends.
20046  This assures the inset itself is output on its own lines, for parsing purposes.
20047 \end_layout
20048
20049 \begin_layout Description
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 ForcePlain
20055 \end_layout
20056
20057 \end_inset
20058
20059  [
20060 \begin_inset Flex Code
20061 status collapsed
20062
20063 \begin_layout Plain Layout
20064
20065 \emph on
20066 0
20067 \end_layout
20068
20069 \end_inset
20070
20071 ,
20072 \begin_inset space \thinspace{}
20073 \end_inset
20074
20075
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 1
20081 \end_layout
20082
20083 \end_inset
20084
20085 ] Indicates whether the 
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 PlainLayout
20091 \end_layout
20092
20093 \end_inset
20094
20095  should be used or, instead, the user can change the paragraph style used
20096  in the inset.
20097  Default is false.
20098 \end_layout
20099
20100 \begin_layout Description
20101 \begin_inset Flex Code
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 FreeSpacing
20106 \end_layout
20107
20108 \end_inset
20109
20110  [
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115
20116 \emph on
20117 0
20118 \end_layout
20119
20120 \end_inset
20121
20122 ,
20123 \begin_inset space \thinspace{}
20124 \end_inset
20125
20126
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 1
20132 \end_layout
20133
20134 \end_inset
20135
20136 ] As with paragraph styles, see 
20137 \begin_inset CommandInset ref
20138 LatexCommand ref
20139 reference "subsec:Paragraph-Styles"
20140
20141 \end_inset
20142
20143 .
20144 \end_layout
20145
20146 \begin_layout Description
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 HTML*
20152 \end_layout
20153
20154 \end_inset
20155
20156  These tags control the XHTML output.
20157  See 
20158 \begin_inset CommandInset ref
20159 LatexCommand ref
20160 reference "sec:Tags-for-XHTML"
20161
20162 \end_inset
20163
20164 .
20165 \end_layout
20166
20167 \begin_layout Description
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 InToc
20173 \end_layout
20174
20175 \end_inset
20176
20177  [
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182
20183 \emph on
20184 0
20185 \end_layout
20186
20187 \end_inset
20188
20189 ,
20190 \begin_inset space \thinspace{}
20191 \end_inset
20192
20193
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 1
20199 \end_layout
20200
20201 \end_inset
20202
20203 ] Whether to include the contents of this inset in the strings generated
20204  for the `Outline' pane for all table of contents, regardless of the AddToToc
20205  setting.
20206  One would not, for example, want the content of a footnote in a section
20207  header to be included in the TOC displayed in the outline, but one would
20208  normally want the content of a character style displayed.
20209  Default is false: not to include.
20210 \end_layout
20211
20212 \begin_layout Description
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 IsTocCaption
20218 \end_layout
20219
20220 \end_inset
20221
20222  [
20223 \begin_inset Flex Code
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227
20228 \emph on
20229 0
20230 \end_layout
20231
20232 \end_inset
20233
20234 ,
20235 \begin_inset space \thinspace{}
20236 \end_inset
20237
20238
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 1
20244 \end_layout
20245
20246 \end_inset
20247
20248 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20249  of its contents in its item in the table of contents.
20250  Otherwise, only the label appears.
20251 \end_layout
20252
20253 \begin_layout Description
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 KeepEmpty
20259 \end_layout
20260
20261 \end_inset
20262
20263  [
20264 \emph on
20265
20266 \begin_inset Flex Code
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270 0
20271 \end_layout
20272
20273 \end_inset
20274
20275
20276 \emph default
20277 ,
20278 \begin_inset space \thinspace{}
20279 \end_inset
20280
20281
20282 \begin_inset Flex Code
20283 status collapsed
20284
20285 \begin_layout Plain Layout
20286 1
20287 \end_layout
20288
20289 \end_inset
20290
20291 ] As with paragraph styles, see 
20292 \begin_inset CommandInset ref
20293 LatexCommand ref
20294 reference "subsec:Paragraph-Styles"
20295
20296 \end_inset
20297
20298 .
20299 \end_layout
20300
20301 \begin_layout Description
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 LabelFont
20307 \end_layout
20308
20309 \end_inset
20310
20311  The font used for the label.
20312  See 
20313 \begin_inset CommandInset ref
20314 LatexCommand ref
20315 reference "subsec:Font-description"
20316
20317 \end_inset
20318
20319 .
20320  Note that this definition can never appear before 
20321 \begin_inset Flex Code
20322 status collapsed
20323
20324 \begin_layout Plain Layout
20325 Font
20326 \end_layout
20327
20328 \end_inset
20329
20330 , lest it be ineffective.
20331 \end_layout
20332
20333 \begin_layout Description
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 LabelString
20339 \end_layout
20340
20341 \end_inset
20342
20343  [
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 string
20349 \end_layout
20350
20351 \end_inset
20352
20353 =
20354 \begin_inset Quotes erd
20355 \end_inset
20356
20357
20358 \begin_inset Quotes erd
20359 \end_inset
20360
20361 ] What will be displayed on the button or elsewhere as the inset label.
20362  Some inset types (
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 \SpecialChar TeX
20368  code
20369 \end_layout
20370
20371 \end_inset
20372
20373  and 
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 Branch
20379 \end_layout
20380
20381 \end_inset
20382
20383 ) modify this label on the fly.
20384 \end_layout
20385
20386 \begin_layout Description
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 LangPreamble
20392 \end_layout
20393
20394 \end_inset
20395
20396  Language dependent preamble; see 
20397 \begin_inset CommandInset ref
20398 LatexCommand ref
20399 reference "subsec:I18n"
20400
20401 \end_inset
20402
20403 .
20404 \end_layout
20405
20406 \begin_layout Description
20407 \begin_inset Flex Code
20408 status collapsed
20409
20410 \begin_layout Plain Layout
20411 LatexName
20412 \end_layout
20413
20414 \end_inset
20415
20416  [
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 <name>
20422 \end_layout
20423
20424 \end_inset
20425
20426 ] The name of the corresponding \SpecialChar LaTeX
20427  stuff.
20428  Either the environment or command name.
20429 \end_layout
20430
20431 \begin_layout Description
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 LatexParam
20437 \end_layout
20438
20439 \end_inset
20440
20441  [
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446 <parameter>
20447 \end_layout
20448
20449 \end_inset
20450
20451 ] The optional parameter for the corresponding 
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 LatexName
20457 \end_layout
20458
20459 \end_inset
20460
20461  stuff, including possible bracket pairs like 
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 []
20467 \end_layout
20468
20469 \end_inset
20470
20471 .
20472  This parameter cannot be changed from within \SpecialChar LyX
20473  (use 
20474 \begin_inset Flex Code
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 Argument
20479 \end_layout
20480
20481 \end_inset
20482
20483  for customizable parameters).
20484  It will be output as is after all \SpecialChar LaTeX
20485  
20486 \begin_inset Flex Code
20487 status collapsed
20488
20489 \begin_layout Plain Layout
20490 Argument
20491 \end_layout
20492
20493 \end_inset
20494
20495 s.
20496 \end_layout
20497
20498 \begin_layout Description
20499 \begin_inset Flex Code
20500 status collapsed
20501
20502 \begin_layout Plain Layout
20503 LatexType
20504 \end_layout
20505
20506 \end_inset
20507
20508  [
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 Command, Environment, None
20514 \end_layout
20515
20516 \end_inset
20517
20518 ] How the style should be translated into \SpecialChar LaTeX
20519 .
20520 \begin_inset Foot
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 LatexType
20529 \end_layout
20530
20531 \end_inset
20532
20533  is perhaps a bit misleading, since these rules apply to SGML classes too.
20534  Visit the SGML class files for specific examples.
20535 \end_layout
20536
20537 \end_inset
20538
20539
20540 \end_layout
20541
20542 \begin_deeper
20543 \begin_layout Description
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548 None
20549 \end_layout
20550
20551 \end_inset
20552
20553  means nothing special
20554 \end_layout
20555
20556 \begin_layout Description
20557 \begin_inset Flex Code
20558 status collapsed
20559
20560 \begin_layout Plain Layout
20561 Command
20562 \end_layout
20563
20564 \end_inset
20565
20566  means 
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571
20572 \backslash
20573
20574 \emph on
20575 LatexName
20576 \emph default
20577 {\SpecialChar ldots
20578 }
20579 \end_layout
20580
20581 \end_inset
20582
20583
20584 \end_layout
20585
20586 \begin_layout Description
20587 \begin_inset Flex Code
20588 status collapsed
20589
20590 \begin_layout Plain Layout
20591 Environment
20592 \end_layout
20593
20594 \end_inset
20595
20596  means 
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601
20602 \backslash
20603 begin{
20604 \emph on
20605 LatexName
20606 \emph default
20607 }\SpecialChar ldots
20608
20609 \backslash
20610 end{
20611 \emph on
20612 LatexName
20613 \emph default
20614 }
20615 \end_layout
20616
20617 \end_inset
20618
20619
20620 \end_layout
20621
20622 \begin_layout Standard
20623 Putting the last few things together, the \SpecialChar LaTeX
20624  output will be either: 
20625 \end_layout
20626
20627 \begin_layout LyX-Code
20628
20629 \backslash
20630 LatexName[LatexParam]{\SpecialChar ldots
20631 }
20632 \end_layout
20633
20634 \begin_layout Standard
20635 or: 
20636 \end_layout
20637
20638 \begin_layout LyX-Code
20639
20640 \backslash
20641 begin{LatexName}[LatexParam] \SpecialChar ldots
20642  
20643 \backslash
20644 end{LatexName}
20645 \end_layout
20646
20647 \begin_layout Standard
20648 depending upon the \SpecialChar LaTeX
20649  type.
20650 \end_layout
20651
20652 \end_deeper
20653 \begin_layout Description
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 LeftDelim
20659 \end_layout
20660
20661 \end_inset
20662
20663  [
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 string
20669 \end_layout
20670
20671 \end_inset
20672
20673 ] A string that is put at the beginning of the layout content.
20674  A line break in the output can be indicated by 
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 <br/>
20680 \end_layout
20681
20682 \end_inset
20683
20684 .
20685 \end_layout
20686
20687 \begin_layout Description
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 LyxType
20693 \end_layout
20694
20695 \end_inset
20696
20697  Can be 
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 charstyle
20703 \end_layout
20704
20705 \end_inset
20706
20707
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 custom
20713 \end_layout
20714
20715 \end_inset
20716
20717
20718 \begin_inset Flex Code
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722 element
20723 \end_layout
20724
20725 \end_inset
20726
20727  or 
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732 end
20733 \end_layout
20734
20735 \end_inset
20736
20737  (indicating a dummy definition ending definitions of charstyles, etc).
20738  This entry is required in and is only meaningful for Flex insets.
20739  Among other things, it determines on which menu this inset will appear.
20740  Setting 
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 LyxType
20746 \end_layout
20747
20748 \end_inset
20749
20750  to 
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 charstyle
20756 \end_layout
20757
20758 \end_inset
20759
20760  will automatically set 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 MultiPar
20766 \end_layout
20767
20768 \end_inset
20769
20770  to false and 
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 ForcePlain
20776 \end_layout
20777
20778 \end_inset
20779
20780  to true.
20781  
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 MultiPar
20787 \end_layout
20788
20789 \end_inset
20790
20791  can be set to true, or 
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 ForcePlain
20797 \end_layout
20798
20799 \end_inset
20800
20801  to false, for 
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 charstyle
20807 \end_layout
20808
20809 \end_inset
20810
20811  insets by setting it 
20812 \emph on
20813 after
20814 \emph default
20815  you set the 
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 LyxType
20821 \end_layout
20822
20823 \end_inset
20824
20825 .
20826 \change_inserted -712698321 1555575738
20827
20828 \end_layout
20829
20830 \begin_layout Description
20831
20832 \change_inserted -712698321 1555575844
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837
20838 \change_inserted -712698321 1555575740
20839 MenuString
20840 \end_layout
20841
20842 \end_inset
20843
20844  
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849
20850 \change_inserted -712698321 1555575740
20851 [string]
20852 \end_layout
20853
20854 \end_inset
20855
20856  A dedicated string for the menu.
20857  You can define an accelerator by appending the respective character to
20858  the string, divided by 
20859 \begin_inset Quotes eld
20860 \end_inset
20861
20862 |
20863 \begin_inset Quotes erd
20864 \end_inset
20865
20866  (e.
20867 \begin_inset space \thinspace{}
20868 \end_inset
20869
20870 g.
20871 \begin_inset space \space{}
20872 \end_inset
20873
20874
20875 \begin_inset Quotes eld
20876 \end_inset
20877
20878
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883
20884 \change_inserted -712698321 1555575781
20885 My Inset|M
20886 \end_layout
20887
20888 \end_inset
20889
20890
20891 \begin_inset Quotes erd
20892 \end_inset
20893
20894 ).
20895  This specification is optional.
20896  If it is not given the inset name as specified in the type declaration
20897  will be used instead for the menu.
20898 \change_unchanged
20899
20900 \end_layout
20901
20902 \begin_layout Description
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 MultiPar
20908 \end_layout
20909
20910 \end_inset
20911
20912  [
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917
20918 \emph on
20919 0
20920 \end_layout
20921
20922 \end_inset
20923
20924 ,
20925 \begin_inset space \thinspace{}
20926 \end_inset
20927
20928
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 1
20934 \end_layout
20935
20936 \end_inset
20937
20938 ] Whether multiple paragraphs are permitted in this inset.
20939  This will also set 
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 CustomPars
20945 \end_layout
20946
20947 \end_inset
20948
20949  to the same value and 
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 ForcePlain
20955 \end_layout
20956
20957 \end_inset
20958
20959  to the opposite value.
20960  These can be reset to other values, if they are used 
20961 \emph on
20962 after
20963 \emph default
20964  
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 MultiPar
20970 \end_layout
20971
20972 \end_inset
20973
20974 .
20975  Default is true.
20976 \end_layout
20977
20978 \begin_layout Description
20979 \begin_inset Flex Code
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 NeedProtect
20984 \end_layout
20985
20986 \end_inset
20987
20988  [
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993
20994 \emph on
20995 0
20996 \end_layout
20997
20998 \end_inset
20999
21000 ,
21001 \begin_inset space \thinspace{}
21002 \end_inset
21003
21004
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 1
21010 \end_layout
21011
21012 \end_inset
21013
21014 ] Whether fragile commands in this inset should be 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019
21020 \backslash
21021 protect
21022 \end_layout
21023
21024 \end_inset
21025
21026 'ed.
21027  (Note: This is 
21028 \emph on
21029 not
21030 \emph default
21031  whether the command should itself be protected.) Default is false.
21032 \change_inserted -712698321 1523633958
21033
21034 \end_layout
21035
21036 \begin_layout Description
21037
21038 \change_inserted -712698321 1552395786
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044 \change_inserted -712698321 1523633961
21045 NeedCProtect
21046 \end_layout
21047
21048 \end_inset
21049
21050  [
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055
21056 \change_inserted -712698321 1523633958
21057
21058 \emph on
21059 0
21060 \end_layout
21061
21062 \end_inset
21063
21064 ,
21065 \begin_inset space \thinspace{}
21066 \end_inset
21067
21068
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073
21074 \change_inserted -712698321 1523633958
21075 1
21076 \end_layout
21077
21078 \end_inset
21079
21080 ] This causes macros that contain this inset to be protected with 
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085
21086 \change_inserted -712698321 1523634038
21087
21088 \backslash
21089 cprotect
21090 \change_unchanged
21091
21092 \end_layout
21093
21094 \end_inset
21095
21096  (cf.
21097  package 
21098 \family sans
21099 cprotect
21100 \family default
21101 ) if necessary and thus allows (some) verbatim stuff in macros.
21102  Default is false.
21103 \end_layout
21104
21105 \begin_layout Description
21106
21107 \change_inserted -712698321 1555579651
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112
21113 \change_inserted -712698321 1552395787
21114 NeedMBoxProtect
21115 \end_layout
21116
21117 \end_inset
21118
21119  [
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124
21125 \change_inserted -712698321 1552395787
21126
21127 \emph on
21128 0
21129 \end_layout
21130
21131 \end_inset
21132
21133 ,
21134 \begin_inset space \thinspace{}
21135 \end_inset
21136
21137
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142
21143 \change_inserted -712698321 1552395787
21144 1
21145 \end_layout
21146
21147 \end_inset
21148
21149 ] Whether specific commands in this inset (such as 
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154
21155 \change_inserted -712698321 1552395787
21156
21157 \backslash
21158 cite
21159 \end_layout
21160
21161 \end_inset
21162
21163  and 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168
21169 \change_inserted -712698321 1552395787
21170
21171 \backslash
21172 ref
21173 \end_layout
21174
21175 \end_inset
21176
21177 ) should be protected in an 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182
21183 \change_inserted -712698321 1552395787
21184
21185 \backslash
21186 mbox
21187 \end_layout
21188
21189 \end_inset
21190
21191 .
21192  This is particularly needed for insets that draw on 
21193 \family sans
21194 ulem
21195 \family default
21196  or 
21197 \family sans
21198 soul
21199 \family default
21200  commands which parse their content in complex ways.
21201  Default is false.
21202 \end_layout
21203
21204 \begin_layout Description
21205
21206 \change_inserted -712698321 1555579742
21207 \begin_inset Flex Code
21208 status collapsed
21209
21210 \begin_layout Plain Layout
21211
21212 \change_inserted -712698321 1555579658
21213 NewlineCmd
21214 \end_layout
21215
21216 \end_inset
21217
21218  
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223
21224 \change_inserted -712698321 1555579651
21225 [string]
21226 \end_layout
21227
21228 \end_inset
21229
21230  Option to define a different command (from the default 
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235
21236 \change_inserted -712698321 1555579742
21237
21238 \backslash
21239
21240 \backslash
21241
21242 \change_unchanged
21243
21244 \end_layout
21245
21246 \end_inset
21247
21248 ) to be used for line breaks.
21249  The initial backslash must not be specified.
21250 \change_unchanged
21251
21252 \end_layout
21253
21254 \begin_layout Description
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 NoInsetLayout
21260 \end_layout
21261
21262 \end_inset
21263
21264  [
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 <layout>
21270 \end_layout
21271
21272 \end_inset
21273
21274 ] Deletes an existing 
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 InsetLayout
21280 \end_layout
21281
21282 \end_inset
21283
21284 .
21285 \end_layout
21286
21287 \begin_layout Description
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 ObsoletedBy
21293 \end_layout
21294
21295 \end_inset
21296
21297  [
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 <layout>
21303 \end_layout
21304
21305 \end_inset
21306
21307 ] Name of an 
21308 \begin_inset Flex Code
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 InsetLayout
21313 \end_layout
21314
21315 \end_inset
21316
21317  that has replaced this 
21318 \begin_inset Flex Code
21319 status collapsed
21320
21321 \begin_layout Plain Layout
21322 InsetLayout
21323 \end_layout
21324
21325 \end_inset
21326
21327 .
21328  This is used to rename an 
21329 \begin_inset Flex Code
21330 status collapsed
21331
21332 \begin_layout Plain Layout
21333 InsetLayout
21334 \end_layout
21335
21336 \end_inset
21337
21338 , while keeping backward compatibility.
21339 \change_inserted -712698321 1559491850
21340
21341 \end_layout
21342
21343 \begin_layout Description
21344
21345 \change_inserted -712698321 1559492002
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350
21351 \change_inserted -712698321 1559491854
21352 ParbreakIgnored
21353 \end_layout
21354
21355 \end_inset
21356
21357  [
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362
21363 \change_inserted -712698321 1559491850
21364
21365 \emph on
21366 0
21367 \end_layout
21368
21369 \end_inset
21370
21371 ,
21372 \begin_inset space \thinspace{}
21373 \end_inset
21374
21375
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380
21381 \change_inserted -712698321 1559491850
21382 1
21383 \end_layout
21384
21385 \end_inset
21386
21387 ] If this is set to 
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392
21393 \change_inserted -712698321 1559491881
21394 1
21395 \change_unchanged
21396
21397 \end_layout
21398
21399 \end_inset
21400
21401 , paragraph breaks will be ignored in the output.
21402  This might be useful for insets where the content should be alignable on
21403  different lines only in the \SpecialChar LyX
21404  workarea, without any effect in the output.
21405 \change_unchanged
21406
21407 \end_layout
21408
21409 \begin_layout Description
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 ParbreakIsNewline
21415 \end_layout
21416
21417 \end_inset
21418
21419  [
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424
21425 \emph on
21426 0
21427 \end_layout
21428
21429 \end_inset
21430
21431 ,
21432 \begin_inset space \thinspace{}
21433 \end_inset
21434
21435
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 1
21441 \end_layout
21442
21443 \end_inset
21444
21445 ] As with paragraph styles, see 
21446 \begin_inset CommandInset ref
21447 LatexCommand ref
21448 reference "subsec:Paragraph-Styles"
21449
21450 \end_inset
21451
21452 .
21453  Default is false.
21454 \end_layout
21455
21456 \begin_layout Description
21457 \begin_inset Flex Code
21458 status collapsed
21459
21460 \begin_layout Plain Layout
21461 PassThru
21462 \end_layout
21463
21464 \end_inset
21465
21466  [
21467 \begin_inset Flex Code
21468 status collapsed
21469
21470 \begin_layout Plain Layout
21471
21472 \emph on
21473 0
21474 \end_layout
21475
21476 \end_inset
21477
21478 ,
21479 \begin_inset space \thinspace{}
21480 \end_inset
21481
21482
21483 \begin_inset Flex Code
21484 status collapsed
21485
21486 \begin_layout Plain Layout
21487 1
21488 \end_layout
21489
21490 \end_inset
21491
21492 ] As with paragraph styles, see 
21493 \begin_inset CommandInset ref
21494 LatexCommand ref
21495 reference "subsec:Paragraph-Styles"
21496
21497 \end_inset
21498
21499 .
21500  Default is false.
21501 \end_layout
21502
21503 \begin_layout Description
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508 Preamble
21509 \end_layout
21510
21511 \end_inset
21512
21513  As with paragraph styles, see 
21514 \begin_inset CommandInset ref
21515 LatexCommand ref
21516 reference "subsec:Paragraph-Styles"
21517
21518 \end_inset
21519
21520 .
21521 \end_layout
21522
21523 \begin_layout Description
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528 RefPrefix
21529 \end_layout
21530
21531 \end_inset
21532
21533  [
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 string
21539 \end_layout
21540
21541 \end_inset
21542
21543 ] The prefix to use when creating labels referring to insets of this type.
21544  This allows the use of formatted references.
21545 \end_layout
21546
21547 \begin_layout Description
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552 Requires
21553 \end_layout
21554
21555 \end_inset
21556
21557  [
21558 \begin_inset Flex Code
21559 status collapsed
21560
21561 \begin_layout Plain Layout
21562 string
21563 \end_layout
21564
21565 \end_inset
21566
21567 ] As with paragraph styles, see 
21568 \begin_inset CommandInset ref
21569 LatexCommand ref
21570 reference "subsec:Paragraph-Styles"
21571
21572 \end_inset
21573
21574 .
21575 \end_layout
21576
21577 \begin_layout Description
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 ResetArgs
21583 \end_layout
21584
21585 \end_inset
21586
21587  [
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592
21593 \emph on
21594 0
21595 \end_layout
21596
21597 \end_inset
21598
21599 ,
21600 \begin_inset space \thinspace{}
21601 \end_inset
21602
21603
21604 \begin_inset Flex Code
21605 status collapsed
21606
21607 \begin_layout Plain Layout
21608 1
21609 \end_layout
21610
21611 \end_inset
21612
21613 ] Resets the \SpecialChar LaTeX
21614  arguments of this layout (as defined via the 
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 Argument
21620 \end_layout
21621
21622 \end_inset
21623
21624  tag).
21625  This is useful if you have copied a style via 
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 CopyStyle
21631 \end_layout
21632
21633 \end_inset
21634
21635 , but you do not want to inherit its (required and optional) arguments.
21636 \end_layout
21637
21638 \begin_layout Description
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 ResetsFont
21644 \end_layout
21645
21646 \end_inset
21647
21648  [
21649 \begin_inset Flex Code
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653 0
21654 \end_layout
21655
21656 \end_inset
21657
21658 ,
21659 \begin_inset space \thinspace{}
21660 \end_inset
21661
21662
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667
21668 \emph on
21669 1
21670 \end_layout
21671
21672 \end_inset
21673
21674 ] Whether this inset should use the font of its surrounding environment
21675  or uses its own.
21676  Default is false: use the font of the surrounding environment.
21677 \end_layout
21678
21679 \begin_layout Description
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 RightDelim
21685 \end_layout
21686
21687 \end_inset
21688
21689  [
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 string
21695 \end_layout
21696
21697 \end_inset
21698
21699 ] A string that is put at the end of the layout content.
21700  A line break in the output can be indicated by 
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 <br/>
21706 \end_layout
21707
21708 \end_inset
21709
21710 .
21711 \end_layout
21712
21713 \begin_layout Description
21714 \begin_inset Flex Code
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 Spellcheck
21719 \end_layout
21720
21721 \end_inset
21722
21723  [
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 0
21729 \end_layout
21730
21731 \end_inset
21732
21733 ,
21734 \begin_inset space \thinspace{}
21735 \end_inset
21736
21737
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742
21743 \emph on
21744 1
21745 \end_layout
21746
21747 \end_inset
21748
21749 ] Allow spell-checking the contents of this inset.
21750  Default is true.
21751 \end_layout
21752
21753 \begin_layout Subsection
21754 Counters
21755 \begin_inset CommandInset label
21756 LatexCommand label
21757 name "subsec:Counters"
21758
21759 \end_inset
21760
21761
21762 \end_layout
21763
21764 \begin_layout Standard
21765 It is necessary to define the counters (
21766 \begin_inset Flex Noun
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 chapter
21771 \end_layout
21772
21773 \end_inset
21774
21775
21776 \begin_inset Flex Noun
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 figure
21781 \end_layout
21782
21783 \end_inset
21784
21785 , \SpecialChar ldots
21786 ) in the text class itself.
21787  The standard counters are defined in the file 
21788 \begin_inset Flex Code
21789 status collapsed
21790
21791 \begin_layout Plain Layout
21792 stdcounters.inc
21793 \end_layout
21794
21795 \end_inset
21796
21797 , so you may have to do no more than add
21798 \end_layout
21799
21800 \begin_layout LyX-Code
21801 Input stdcounters.inc
21802 \end_layout
21803
21804 \begin_layout Standard
21805 to your layout file to get them to work.
21806  But if you want to define custom counters, then you can do so.
21807  The counter declaration must begin with:
21808 \end_layout
21809
21810 \begin_layout LyX-Code
21811 Counter CounterName
21812 \end_layout
21813
21814 \begin_layout Standard
21815 where of course `
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 CounterName
21821 \end_layout
21822
21823 \end_inset
21824
21825 ' is replaced by the name of the counter.
21826  And it must end with 
21827 \begin_inset Quotes eld
21828 \end_inset
21829
21830
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835 End
21836 \end_layout
21837
21838 \end_inset
21839
21840
21841 \begin_inset Quotes erd
21842 \end_inset
21843
21844 .
21845  The following parameters can also be used:
21846 \end_layout
21847
21848 \begin_layout Description
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 InitialValue
21854 \end_layout
21855
21856 \end_inset
21857
21858  [
21859 \begin_inset Flex Code
21860 status collapsed
21861
21862 \begin_layout Plain Layout
21863 int=1
21864 \end_layout
21865
21866 \end_inset
21867
21868 ] Sets the initial value for the counter, to which it will be reset whenever
21869  that happens.
21870  Normally, one will want the default, 1.
21871 \end_layout
21872
21873 \begin_layout Description
21874 \begin_inset Flex Code
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878 LabelString
21879 \end_layout
21880
21881 \end_inset
21882
21883  [
21884 \begin_inset Flex Code
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 string
21889 \end_layout
21890
21891 \end_inset
21892
21893 =
21894 \begin_inset Quotes erd
21895 \end_inset
21896
21897
21898 \begin_inset Quotes erd
21899 \end_inset
21900
21901 ] When defined, this string defines how the counter is displayed.
21902  Setting this value sets 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 LabelStringAppendix
21908 \end_layout
21909
21910 \end_inset
21911
21912  to the same value.
21913  The following special constructs can be used in the string:
21914 \end_layout
21915
21916 \begin_deeper
21917 \begin_layout Itemize
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922
21923 \backslash
21924 thecounter
21925 \end_layout
21926
21927 \end_inset
21928
21929  will be replaced by the expansion of the 
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 LabelString
21935 \end_layout
21936
21937 \end_inset
21938
21939  (or 
21940 \begin_inset Flex Code
21941 status collapsed
21942
21943 \begin_layout Plain Layout
21944 LabelStringAppendix
21945 \end_layout
21946
21947 \end_inset
21948
21949 ) of the counter 
21950 \begin_inset Flex Code
21951 status collapsed
21952
21953 \begin_layout Plain Layout
21954 counter
21955 \end_layout
21956
21957 \end_inset
21958
21959 .
21960  
21961 \end_layout
21962
21963 \begin_layout Itemize
21964 counter values can be expressed using \SpecialChar LaTeX
21965 -like macros
21966 \begin_inset Newline newline
21967 \end_inset
21968
21969
21970 \begin_inset Flex Code
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974
21975 \backslash
21976
21977 \emph on
21978 numbertype
21979 \emph default
21980 {
21981 \emph on
21982 counter
21983 \emph default
21984 }
21985 \end_layout
21986
21987 \end_inset
21988
21989 , where 
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994
21995 \emph on
21996 numbertype
21997 \end_layout
21998
21999 \end_inset
22000
22001  can be:
22002 \begin_inset Foot
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006
22007 \family roman
22008 \series medium
22009 \shape up
22010 \size normal
22011 \emph off
22012 \bar no
22013 \noun off
22014 \color none
22015 Actually, the situation is a bit more complicated: any
22016 \family default
22017 \series default
22018 \shape default
22019 \emph default
22020 \bar default
22021  
22022 \size default
22023 \emph on
22024 \noun default
22025 \color inherit
22026 numbertype
22027 \family roman
22028 \series medium
22029 \shape up
22030 \size normal
22031 \emph off
22032 \bar no
22033 \noun off
22034  other than those described below will produce arabic numerals.
22035  It would not be surprising to see this change in the future.
22036 \end_layout
22037
22038 \end_inset
22039
22040  
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 arabic
22046 \end_layout
22047
22048 \end_inset
22049
22050 : 1, 2, 3,\SpecialChar ldots
22051
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 alph
22057 \end_layout
22058
22059 \end_inset
22060
22061  for lower-case letters: a, b, c, \SpecialChar ldots
22062
22063 \begin_inset Flex Code
22064 status collapsed
22065
22066 \begin_layout Plain Layout
22067 Alph
22068 \end_layout
22069
22070 \end_inset
22071
22072  for upper-case letters: A, B, C, \SpecialChar ldots
22073
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078 roman
22079 \end_layout
22080
22081 \end_inset
22082
22083  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22084
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089 Roman
22090 \end_layout
22091
22092 \end_inset
22093
22094  for upper-case roman numerals: I, II, III\SpecialChar ldots
22095
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 hebrew
22101 \end_layout
22102
22103 \end_inset
22104
22105  for hebrew numerals.
22106 \end_layout
22107
22108 \end_deeper
22109 \begin_layout Standard
22110 If LabelString is not defined, a default value is constructed as follows:
22111  if the counter has a master counter 
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116 master
22117 \end_layout
22118
22119 \end_inset
22120
22121  (defined via 
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 Within
22127 \end_layout
22128
22129 \end_inset
22130
22131 ), the string
22132 \begin_inset Newline newline
22133 \end_inset
22134
22135
22136 \begin_inset Flex Code
22137 status collapsed
22138
22139 \begin_layout Plain Layout
22140
22141 \backslash
22142 themaster.
22143 \backslash
22144 arabic{counter}
22145 \end_layout
22146
22147 \end_inset
22148
22149  is used; otherwise the string 
22150 \begin_inset Flex Code
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154
22155 \backslash
22156 arabic{counter}
22157 \end_layout
22158
22159 \end_inset
22160
22161  is used.
22162 \end_layout
22163
22164 \begin_layout Description
22165 \begin_inset Flex Code
22166 status collapsed
22167
22168 \begin_layout Plain Layout
22169 LabelStringAppendix
22170 \end_layout
22171
22172 \end_inset
22173
22174  [
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 string
22180 \end_layout
22181
22182 \end_inset
22183
22184 =
22185 \begin_inset Quotes erd
22186 \end_inset
22187
22188
22189 \begin_inset Quotes erd
22190 \end_inset
22191
22192 ] Same as 
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 LabelString
22198 \end_layout
22199
22200 \end_inset
22201
22202 , but for use in the Appendix.
22203 \end_layout
22204
22205 \begin_layout Description
22206 \begin_inset Flex Code
22207 status collapsed
22208
22209 \begin_layout Plain Layout
22210 PrettyFormat
22211 \end_layout
22212
22213 \end_inset
22214
22215  [
22216 \begin_inset Flex Code
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 string
22221 \end_layout
22222
22223 \end_inset
22224
22225 =
22226 \begin_inset Quotes erd
22227 \end_inset
22228
22229
22230 \begin_inset Quotes erd
22231 \end_inset
22232
22233 ] A format for use with formatted references to this counter.
22234  For example, one might want to have references to section numbers appear
22235  as 
22236 \begin_inset Quotes eld
22237 \end_inset
22238
22239 Section 2.4
22240 \begin_inset Quotes erd
22241 \end_inset
22242
22243 .
22244  The string should contain 
22245 \begin_inset Quotes eld
22246 \end_inset
22247
22248 ##
22249 \begin_inset Quotes erd
22250 \end_inset
22251
22252 .
22253  This will be replaced by the counter number itself.
22254  So, for sections, it would be: Section ##.
22255 \end_layout
22256
22257 \begin_layout Description
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262 Within
22263 \end_layout
22264
22265 \end_inset
22266
22267  [
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 string
22273 \end_layout
22274
22275 \end_inset
22276
22277 =
22278 \begin_inset Quotes erd
22279 \end_inset
22280
22281
22282 \begin_inset Quotes erd
22283 \end_inset
22284
22285 ] If this is set to the name of another counter, the present counter will
22286  be reset every time the other one is increased.
22287  For example, 
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292 subsection
22293 \end_layout
22294
22295 \end_inset
22296
22297  is numbered inside 
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 section
22303 \end_layout
22304
22305 \end_inset
22306
22307 .
22308 \end_layout
22309
22310 \begin_layout Subsection
22311 Font description
22312 \begin_inset CommandInset label
22313 LatexCommand label
22314 name "subsec:Font-description"
22315
22316 \end_inset
22317
22318
22319 \end_layout
22320
22321 \begin_layout Standard
22322 A font description looks like this:
22323 \end_layout
22324
22325 \begin_layout LyX-Code
22326 Font 
22327 \family roman
22328 \emph on
22329 or
22330 \family default
22331 \emph default
22332  LabelFont
22333 \emph on
22334  
22335 \family roman
22336 or
22337 \family default
22338 \emph default
22339  DefaultFont
22340 \end_layout
22341
22342 \begin_layout LyX-Code
22343  ...
22344 \end_layout
22345
22346 \begin_layout LyX-Code
22347 EndFont
22348 \end_layout
22349
22350 \begin_layout Standard
22351 The following commands are available:
22352 \end_layout
22353
22354 \begin_layout Description
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 Color
22360 \end_layout
22361
22362 \end_inset
22363
22364  [
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369
22370 \emph on
22371 none
22372 \end_layout
22373
22374 \end_inset
22375
22376
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 black
22382 \end_layout
22383
22384 \end_inset
22385
22386
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 white
22392 \end_layout
22393
22394 \end_inset
22395
22396
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 red
22402 \end_layout
22403
22404 \end_inset
22405
22406
22407 \begin_inset Flex Code
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 green
22412 \end_layout
22413
22414 \end_inset
22415
22416
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421 blue
22422 \end_layout
22423
22424 \end_inset
22425
22426
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 cyan
22432 \end_layout
22433
22434 \end_inset
22435
22436
22437 \begin_inset Flex Code
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441 magenta
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \begin_inset Flex Code
22448 status collapsed
22449
22450 \begin_layout Plain Layout
22451 yellow
22452 \end_layout
22453
22454 \end_inset
22455
22456
22457 \begin_inset Flex Code
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 brown
22462 \end_layout
22463
22464 \end_inset
22465
22466
22467 \begin_inset Flex Code
22468 status collapsed
22469
22470 \begin_layout Plain Layout
22471 darkgray
22472 \end_layout
22473
22474 \end_inset
22475
22476
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 gray
22482 \end_layout
22483
22484 \end_inset
22485
22486
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 lightgray
22492 \end_layout
22493
22494 \end_inset
22495
22496
22497 \begin_inset Flex Code
22498 status collapsed
22499
22500 \begin_layout Plain Layout
22501 lime
22502 \end_layout
22503
22504 \end_inset
22505
22506
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 orange
22512 \end_layout
22513
22514 \end_inset
22515
22516
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521 olive
22522 \end_layout
22523
22524 \end_inset
22525
22526
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 pink
22532 \end_layout
22533
22534 \end_inset
22535
22536
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541 purple
22542 \end_layout
22543
22544 \end_inset
22545
22546
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 teal
22552 \end_layout
22553
22554 \end_inset
22555
22556
22557 \begin_inset Flex Code
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 violet
22562 \end_layout
22563
22564 \end_inset
22565
22566 ]
22567 \end_layout
22568
22569 \begin_layout Description
22570 \begin_inset Flex Code
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 Family
22575 \end_layout
22576
22577 \end_inset
22578
22579  [
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584
22585 \emph on
22586 Roman
22587 \end_layout
22588
22589 \end_inset
22590
22591
22592 \begin_inset Flex Code
22593 status collapsed
22594
22595 \begin_layout Plain Layout
22596 Sans
22597 \end_layout
22598
22599 \end_inset
22600
22601
22602 \begin_inset Flex Code
22603 status collapsed
22604
22605 \begin_layout Plain Layout
22606 Typewriter
22607 \end_layout
22608
22609 \end_inset
22610
22611 ]
22612 \end_layout
22613
22614 \begin_layout Description
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 Misc
22620 \end_layout
22621
22622 \end_inset
22623
22624  [
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 string
22630 \end_layout
22631
22632 \end_inset
22633
22634 ] Valid arguments are: 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639 emph
22640 \end_layout
22641
22642 \end_inset
22643
22644
22645 \begin_inset Flex Code
22646 status collapsed
22647
22648 \begin_layout Plain Layout
22649 noun
22650 \end_layout
22651
22652 \end_inset
22653
22654
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 strikeout
22660 \end_layout
22661
22662 \end_inset
22663
22664
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 underbar
22670 \end_layout
22671
22672 \end_inset
22673
22674
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 uuline
22680 \end_layout
22681
22682 \end_inset
22683
22684
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 uwave
22690 \end_layout
22691
22692 \end_inset
22693
22694
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699 no_emph
22700 \end_layout
22701
22702 \end_inset
22703
22704
22705 \begin_inset Flex Code
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 no_noun
22710 \end_layout
22711
22712 \end_inset
22713
22714
22715 \begin_inset Flex Code
22716 status collapsed
22717
22718 \begin_layout Plain Layout
22719 no_strikeout
22720 \end_layout
22721
22722 \end_inset
22723
22724
22725 \begin_inset Flex Code
22726 status collapsed
22727
22728 \begin_layout Plain Layout
22729 no_bar
22730 \end_layout
22731
22732 \end_inset
22733
22734
22735 \begin_inset Flex Code
22736 status collapsed
22737
22738 \begin_layout Plain Layout
22739 no_uuline
22740 \end_layout
22741
22742 \end_inset
22743
22744  and 
22745 \begin_inset Flex Code
22746 status collapsed
22747
22748 \begin_layout Plain Layout
22749 no_uwave
22750 \end_layout
22751
22752 \end_inset
22753
22754 .
22755  Each of these turns on or off the corresponding attribute.
22756  For example, 
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 emph
22762 \end_layout
22763
22764 \end_inset
22765
22766  turns on emphasis, and 
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 no_emph
22772 \end_layout
22773
22774 \end_inset
22775
22776  turns it off.
22777  
22778 \begin_inset Newline newline
22779 \end_inset
22780
22781 If the latter seems puzzling, remember that the font settings for the present
22782  context are generally inherited from the surrounding context.
22783  So 
22784 \begin_inset Flex Code
22785 status collapsed
22786
22787 \begin_layout Plain Layout
22788 no_emph
22789 \end_layout
22790
22791 \end_inset
22792
22793  would turn off the emphasis that was anyway in effect, say, in a theorem
22794  environment.
22795 \end_layout
22796
22797 \begin_layout Description
22798 \begin_inset Flex Code
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 Series
22803 \end_layout
22804
22805 \end_inset
22806
22807  [
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812
22813 \emph on
22814 Medium
22815 \end_layout
22816
22817 \end_inset
22818
22819
22820 \begin_inset Flex Code
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824 Bold
22825 \end_layout
22826
22827 \end_inset
22828
22829
22830 \end_layout
22831
22832 \begin_layout Description
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 Shape
22838 \end_layout
22839
22840 \end_inset
22841
22842  [
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847
22848 \emph on
22849 Up
22850 \end_layout
22851
22852 \end_inset
22853
22854
22855 \begin_inset Flex Code
22856 status collapsed
22857
22858 \begin_layout Plain Layout
22859 Italic
22860 \end_layout
22861
22862 \end_inset
22863
22864
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 SmallCaps
22870 \end_layout
22871
22872 \end_inset
22873
22874
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 Slanted
22880 \end_layout
22881
22882 \end_inset
22883
22884
22885 \end_layout
22886
22887 \begin_layout Description
22888 \begin_inset Flex Code
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 Size
22893 \end_layout
22894
22895 \end_inset
22896
22897  [
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 tiny
22903 \end_layout
22904
22905 \end_inset
22906
22907
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 small
22913 \end_layout
22914
22915 \end_inset
22916
22917
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922
22923 \emph on
22924 normal
22925 \end_layout
22926
22927 \end_inset
22928
22929
22930 \begin_inset Flex Code
22931 status collapsed
22932
22933 \begin_layout Plain Layout
22934 large
22935 \end_layout
22936
22937 \end_inset
22938
22939
22940 \begin_inset Flex Code
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944 larger
22945 \end_layout
22946
22947 \end_inset
22948
22949
22950 \begin_inset Flex Code
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954 largest
22955 \end_layout
22956
22957 \end_inset
22958
22959
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 huge
22965 \end_layout
22966
22967 \end_inset
22968
22969
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 giant
22975 \end_layout
22976
22977 \end_inset
22978
22979 ]
22980 \end_layout
22981
22982 \begin_layout Subsection
22983 \begin_inset CommandInset label
22984 LatexCommand label
22985 name "subsec:Citation-engine-description"
22986
22987 \end_inset
22988
22989 Cite engine description
22990 \end_layout
22991
22992 \begin_layout Standard
22993 The 
22994 \begin_inset Flex Code
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998 CiteEngine
22999 \end_layout
23000
23001 \end_inset
23002
23003  blocks, as used mainly in cite engine files (see 
23004 \begin_inset CommandInset ref
23005 LatexCommand ref
23006 reference "subsec:Cite-Engine-Files"
23007 plural "false"
23008 caps "false"
23009 noprefix "false"
23010
23011 \end_inset
23012
23013 ), define the citation commands provided by a specific 
23014 \begin_inset Quotes eld
23015 \end_inset
23016
23017 cite engine
23018 \begin_inset Quotes erd
23019 \end_inset
23020
23021 .
23022  A cite engine, in \SpecialChar LyX
23023  terms, is way specific way to format citations, using
23024  numbers, author names and/or years.
23025  Currently, \SpecialChar LyX
23026  supports three such engine types, namely:
23027 \end_layout
23028
23029 \begin_layout Enumerate
23030 \begin_inset Flex Code
23031 status collapsed
23032
23033 \begin_layout Plain Layout
23034 default
23035 \end_layout
23036
23037 \end_inset
23038
23039 : the default Bib\SpecialChar TeX
23040  way to format citations, a simple numeric style (e.
23041 \begin_inset space \thinspace{}
23042 \end_inset
23043
23044 g., 
23045 \begin_inset Quotes eld
23046 \end_inset
23047
23048 [1]
23049 \begin_inset Quotes erd
23050 \end_inset
23051
23052 )
23053 \end_layout
23054
23055 \begin_layout Enumerate
23056 \begin_inset Flex Code
23057 status collapsed
23058
23059 \begin_layout Plain Layout
23060 authoryear
23061 \end_layout
23062
23063 \end_inset
23064
23065 : Harvard-styled citations using author names and publication year (e.
23066 \begin_inset space \thinspace{}
23067 \end_inset
23068
23069 g., 
23070 \begin_inset Quotes eld
23071 \end_inset
23072
23073 Smith and Miller (2017b)
23074 \begin_inset Quotes erd
23075 \end_inset
23076
23077 )
23078 \end_layout
23079
23080 \begin_layout Enumerate
23081 \begin_inset Flex Code
23082 status collapsed
23083
23084 \begin_layout Plain Layout
23085 numerical
23086 \end_layout
23087
23088 \end_inset
23089
23090 : extended numerical citations that also allow for author or title next
23091  to the number (e.
23092 \begin_inset space \thinspace{}
23093 \end_inset
23094
23095 g., 
23096 \begin_inset Quotes eld
23097 \end_inset
23098
23099 Smith and Miller [1]
23100 \begin_inset Quotes erd
23101 \end_inset
23102
23103 )
23104 \end_layout
23105
23106 \begin_layout Standard
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 CiteEngine
23112 \end_layout
23113
23114 \end_inset
23115
23116  blocks look like this:
23117 \end_layout
23118
23119 \begin_layout LyX-Code
23120 CiteEngine default
23121 \end_layout
23122
23123 \begin_layout LyX-Code
23124  cite
23125 \end_layout
23126
23127 \begin_layout LyX-Code
23128  Citep*[][]
23129 \end_layout
23130
23131 \begin_layout LyX-Code
23132  citeyearpar[][]=parencite*
23133 \end_layout
23134
23135 \begin_layout LyX-Code
23136  ...
23137 \end_layout
23138
23139 \begin_layout LyX-Code
23140 End
23141 \end_layout
23142
23143 \begin_layout Standard
23144 The tag following 
23145 \begin_inset Flex Code
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149 CiteEngine
23150 \end_layout
23151
23152 \end_inset
23153
23154  denotes the engine.
23155  The individual lines respectively define a cite command or cite command
23156  paradigm supported by this engine.
23157  The line can be as simple as a cite command that is used both to name the
23158  respective \SpecialChar LyX
23159  command and the \SpecialChar LaTeX
23160  output or more complex in order to differentiate
23161  things.
23162  The full syntax is:
23163 \end_layout
23164
23165 \begin_layout LyX-Code
23166 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23167 \end_layout
23168
23169 \begin_layout Itemize
23170 \begin_inset Flex Code
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174 LyXName
23175 \end_layout
23176
23177 \end_inset
23178
23179 : The name as used in the 
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 *.lyx
23185 \end_layout
23186
23187 \end_inset
23188
23189  file.
23190 \end_layout
23191
23192 \begin_deeper
23193 \begin_layout Standard
23194 For portability reasons, we try to use the same name for same-formatted
23195  commands in different cite packages (thus many names stem from natbib,
23196  and thus we need to differentiate a 
23197 \begin_inset Flex Code
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201 latexcmd
23202 \end_layout
23203
23204 \end_inset
23205
23206  sometimes, if the \SpecialChar LaTeX
23207  command names differ).
23208 \end_layout
23209
23210 \end_deeper
23211 \begin_layout Itemize
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 alias
23217 \end_layout
23218
23219 \end_inset
23220
23221 : a (comma-separated) list of commands that fall back to the given 
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226 LyXName
23227 \end_layout
23228
23229 \end_inset
23230
23231  in the current engine.
23232  This eases the switch of citation packages and engines.
23233  The 
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 alias
23239 \end_layout
23240
23241 \end_inset
23242
23243  can be compared to 
23244 \begin_inset Flex Code
23245 status collapsed
23246
23247 \begin_layout Plain Layout
23248 ObsoletedBy
23249 \end_layout
23250
23251 \end_inset
23252
23253  in layout definitions.
23254 \end_layout
23255
23256 \begin_layout Itemize
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 : The actual \SpecialChar LaTeX
23267  command that is output.
23268  
23269 \end_layout
23270
23271 \begin_layout Standard
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 Alias
23277 \end_layout
23278
23279 \end_inset
23280
23281  and 
23282 \begin_inset Flex Code
23283 status collapsed
23284
23285 \begin_layout Plain Layout
23286 latexcmd
23287 \end_layout
23288
23289 \end_inset
23290
23291  are optional.
23292  If no 
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 latexcmd
23298 \end_layout
23299
23300 \end_inset
23301
23302  is given, the 
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 LyXName
23308 \end_layout
23309
23310 \end_inset
23311
23312  will be output to \SpecialChar LaTeX
23313 .
23314 \end_layout
23315
23316 \begin_layout Standard
23317 Note further:
23318 \end_layout
23319
23320 \begin_layout Itemize
23321 Capitalization indicates that the command also has a capitalized form (
23322 \begin_inset Flex Code
23323 status collapsed
23324
23325 \begin_layout Plain Layout
23326
23327 \backslash
23328 Latexcmd
23329 \end_layout
23330
23331 \end_inset
23332
23333  vs.
23334  
23335 \begin_inset Flex Code
23336 status collapsed
23337
23338 \begin_layout Plain Layout
23339
23340 \backslash
23341 latexcmd
23342 \end_layout
23343
23344 \end_inset
23345
23346 ).
23347  These usually enforce up-casing of name prefixes (
23348 \emph on
23349 von Goethe
23350 \emph default
23351  
23352 \begin_inset Formula $\Rightarrow$
23353 \end_inset
23354
23355  
23356 \emph on
23357 Von Goethe
23358 \emph default
23359 ).
23360 \end_layout
23361
23362 \begin_layout Itemize
23363 Brackets 
23364 \begin_inset Flex Code
23365 status collapsed
23366
23367 \begin_layout Plain Layout
23368 []
23369 \end_layout
23370
23371 \end_inset
23372
23373  indicate the number of optional arguments (there can be 0–2).
23374 \end_layout
23375
23376 \begin_layout Itemize
23377 A star 
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 *
23383 \end_layout
23384
23385 \end_inset
23386
23387  indicates there is a starred version of the command (
23388 \begin_inset Flex Code
23389 status collapsed
23390
23391 \begin_layout Plain Layout
23392
23393 \backslash
23394 latexcmd*
23395 \end_layout
23396
23397 \end_inset
23398
23399  vs.
23400  
23401 \begin_inset Flex Code
23402 status collapsed
23403
23404 \begin_layout Plain Layout
23405
23406 \backslash
23407 latexcmd
23408 \end_layout
23409
23410 \end_inset
23411
23412 ).
23413  
23414 \end_layout
23415
23416 \begin_deeper
23417 \begin_layout Standard
23418 By default, the starred version means: Output all authors even if it should
23419  be shortened with 
23420 \begin_inset Quotes eld
23421 \end_inset
23422
23423 et al.
23424 \begin_inset Quotes erd
23425 \end_inset
23426
23427  due to the 
23428 \begin_inset Flex Code
23429 status collapsed
23430
23431 \begin_layout Plain Layout
23432 MaxCiteNames
23433 \end_layout
23434
23435 \end_inset
23436
23437  threshold.
23438 \end_layout
23439
23440 \begin_layout Standard
23441 If the star has a different meaning for a given command, it can be specified
23442  in angle brackets: 
23443 \begin_inset Flex Code
23444 status collapsed
23445
23446 \begin_layout Plain Layout
23447 <!_stardesc!_stardesctooltip>
23448 \end_layout
23449
23450 \end_inset
23451
23452 .
23453  Maximal two translatable macro keywords, marked by the prefix 
23454 \begin_inset Flex Code
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 !_
23459 \end_layout
23460
23461 \end_inset
23462
23463 , can be given.
23464  The first points to the string that replaces the 
23465 \begin_inset Quotes eld
23466 \end_inset
23467
23468 Full aut&hor list
23469 \begin_inset Quotes erd
23470 \end_inset
23471
23472  checkbox label in the citation dialog, the second one to an optional tool
23473  tip for this checkbox.
23474  
23475 \end_layout
23476
23477 \begin_layout Standard
23478 Note that these two macros have to be defined in a 
23479 \begin_inset Flex Code
23480 status collapsed
23481
23482 \begin_layout Plain Layout
23483 CiteFormat
23484 \end_layout
23485
23486 \end_inset
23487
23488  (see next section), dropping the 
23489 \begin_inset Flex Code
23490 status collapsed
23491
23492 \begin_layout Plain Layout
23493 !
23494 \end_layout
23495
23496 \end_inset
23497
23498  from the prefix, like this: 
23499 \end_layout
23500
23501 \begin_layout LyX-Code
23502 _stardesc Sta&rred command label
23503 \end_layout
23504
23505 \begin_layout LyX-Code
23506 _stardesctooltip Tooltip for the starred command checkbox.
23507 \end_layout
23508
23509 \end_deeper
23510 \begin_layout Itemize
23511 A dollar sign 
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 $
23517 \end_layout
23518
23519 \end_inset
23520
23521  indicates that this command features 
23522 \begin_inset Quotes eld
23523 \end_inset
23524
23525 qualified citation lists
23526 \begin_inset Quotes erd
23527 \end_inset
23528
23529 .
23530  This is a 
23531 \family sans
23532 Biblatex
23533 \family default
23534 -specific feature for multi-reference citations where an individual pre-
23535  and postnote can be given to each reference in the list.
23536  Please refer to the 
23537 \family sans
23538 Biblatex
23539 \family default
23540  manual for details.
23541 \change_inserted -712698321 1526898670
23542
23543 \end_layout
23544
23545 \begin_layout Standard
23546
23547 \change_inserted -712698321 1526899524
23548 If you want to add a cite command to a cite engine (e.
23549 \begin_inset space \thinspace{}
23550 \end_inset
23551
23552 g., add a specific command provided by a class), you can use 
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557
23558 \change_inserted -712698321 1526898768
23559 AddToCiteEngine <engine type> \SpecialChar ldots
23560  End
23561 \change_unchanged
23562
23563 \end_layout
23564
23565 \end_inset
23566
23567 .
23568  Note that only cite commands that do not exist yet are added.
23569 \change_unchanged
23570
23571 \end_layout
23572
23573 \begin_layout Subsection
23574 \begin_inset CommandInset label
23575 LatexCommand label
23576 name "subsec:Citation-format-description"
23577
23578 \end_inset
23579
23580 Cite format description
23581 \end_layout
23582
23583 \begin_layout Standard
23584 The 
23585 \begin_inset Flex Code
23586 status collapsed
23587
23588 \begin_layout Plain Layout
23589 CiteFormat
23590 \end_layout
23591
23592 \end_inset
23593
23594  blocks are used to describe how bibliographic information should be displayed,
23595  both within \SpecialChar LyX
23596  itself (in the citation dialog and in tooltips, for example)
23597  and in XHTML output.
23598  Such a block might look like this:
23599 \end_layout
23600
23601 \begin_layout LyX-Code
23602 CiteFormat
23603 \end_layout
23604
23605 \begin_layout LyX-Code
23606  article ...
23607 \end_layout
23608
23609 \begin_layout LyX-Code
23610  book ...
23611 \end_layout
23612
23613 \begin_layout LyX-Code
23614 End
23615 \end_layout
23616
23617 \begin_layout Standard
23618 or
23619 \end_layout
23620
23621 \begin_layout LyX-Code
23622 CiteFormat
23623 \end_layout
23624
23625 \begin_layout LyX-Code
23626  cite ...
23627 \end_layout
23628
23629 \begin_layout LyX-Code
23630  citet*[][] ...
23631 \end_layout
23632
23633 \begin_layout LyX-Code
23634 End
23635 \end_layout
23636
23637 \begin_layout Standard
23638 In the first case, the individual lines define how the bibliographic information
23639  associated with an article or book, respectively, is to be displayed, and
23640  such a definition can be given for any 
23641 \begin_inset Quotes els
23642 \end_inset
23643
23644 entry type
23645 \begin_inset Quotes ers
23646 \end_inset
23647
23648  that might be present in a Bib\SpecialChar TeX
23649  file.
23650  \SpecialChar LyX
23651  defines a default format in the source code that will be used if no specific
23652  definition has been given.
23653  \SpecialChar LyX
23654  predefines several formats in the file 
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 stdciteformats.inc
23660 \end_layout
23661
23662 \end_inset
23663
23664 , which is included in most of \SpecialChar LyX
23665 's document classes.
23666 \end_layout
23667
23668 \begin_layout Standard
23669 In the second case, the lines define how a specific citation command (in
23670  the example 
23671 \begin_inset Flex Code
23672 status collapsed
23673
23674 \begin_layout Plain Layout
23675
23676 \backslash
23677 cite
23678 \end_layout
23679
23680 \end_inset
23681
23682
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687
23688 \backslash
23689 citet
23690 \end_layout
23691
23692 \end_inset
23693
23694 ) is to be displayed on the citation inset label, in the citation dialog,
23695  menu or XHTML output.
23696  \SpecialChar LyX
23697  defines such formats for the citation style variants it supports via 
23698 \family sans
23699 Document\SpecialChar menuseparator
23700 Setting\SpecialChar menuseparator
23701 Bibliography\SpecialChar ldots
23702
23703 \family default
23704  in specific 
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 *.citeengine
23710 \end_layout
23711
23712 \end_inset
23713
23714  files that are shipped with \SpecialChar LyX
23715  (see 
23716 \begin_inset CommandInset ref
23717 LatexCommand ref
23718 reference "subsec:Cite-Engine-Files"
23719 plural "false"
23720 caps "false"
23721 noprefix "false"
23722
23723 \end_inset
23724
23725 ).
23726 \end_layout
23727
23728 \begin_layout Standard
23729 The definitions use a simple language that allows Bib\SpecialChar TeX
23730  keys to be replaced
23731  with their values.
23732  Keys should be enclosed in 
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 %
23738 \end_layout
23739
23740 \end_inset
23741
23742  signs, e.g.: 
23743 \begin_inset Flex Code
23744 status collapsed
23745
23746 \begin_layout Plain Layout
23747 %author%
23748 \end_layout
23749
23750 \end_inset
23751
23752 .
23753  So a simple definition might look like this:
23754 \end_layout
23755
23756 \begin_layout LyX-Code
23757 misc %author%, 
23758 \begin_inset Quotes eld
23759 \end_inset
23760
23761 %title%
23762 \begin_inset Quotes erd
23763 \end_inset
23764
23765 .
23766 \end_layout
23767
23768 \begin_layout Standard
23769 This would print the author, followed by a comma, followed by the title,
23770  in quotes, followed by a period.
23771 \end_layout
23772
23773 \begin_layout Standard
23774 Of course, sometimes you may want to print a key only if it exists.
23775  This can be done by using a conditional construction, such as: 
23776 \begin_inset Flex Code
23777 status collapsed
23778
23779 \begin_layout Plain Layout
23780 {%volume%[[vol.
23781 \begin_inset space ~
23782 \end_inset
23783
23784 %volume%]]}
23785 \end_layout
23786
23787 \end_inset
23788
23789 .
23790  This says: If the 
23791 \begin_inset Flex Code
23792 status collapsed
23793
23794 \begin_layout Plain Layout
23795 volume
23796 \end_layout
23797
23798 \end_inset
23799
23800  key exists, then print 
23801 \begin_inset Quotes eld
23802 \end_inset
23803
23804 vol.
23805 \begin_inset space ~
23806 \end_inset
23807
23808
23809 \begin_inset Quotes erd
23810 \end_inset
23811
23812  followed by the volume key.
23813  It is also possible to have an else clause in the conditional, such as:
23814 \begin_inset Newline newline
23815 \end_inset
23816
23817
23818 \begin_inset Flex Code
23819 status collapsed
23820
23821 \begin_layout Plain Layout
23822 {%author%[[%author%]][[%editor%, ed.]]}
23823 \end_layout
23824
23825 \end_inset
23826
23827 .
23828 \begin_inset Newline newline
23829 \end_inset
23830
23831 Here, the 
23832 \begin_inset Flex Code
23833 status collapsed
23834
23835 \begin_layout Plain Layout
23836 author
23837 \end_layout
23838
23839 \end_inset
23840
23841  key is printed if it exists; otherwise, the editor key is printed, followed
23842  by 
23843 \begin_inset Quotes eld
23844 \end_inset
23845
23846 ,
23847 \begin_inset space ~
23848 \end_inset
23849
23850 ed.
23851 \begin_inset Quotes erd
23852 \end_inset
23853
23854  Note that the key is again enclosed in 
23855 \begin_inset Flex Code
23856 status collapsed
23857
23858 \begin_layout Plain Layout
23859 %
23860 \end_layout
23861
23862 \end_inset
23863
23864  signs; the entire conditional is enclosed in braces; and the if and else
23865  clauses are enclosed in double brackets, 
23866 \begin_inset Quotes eld
23867 \end_inset
23868
23869
23870 \begin_inset Flex Code
23871 status collapsed
23872
23873 \begin_layout Plain Layout
23874 [[
23875 \end_layout
23876
23877 \end_inset
23878
23879
23880 \begin_inset Quotes eld
23881 \end_inset
23882
23883  and 
23884 \begin_inset Quotes eld
23885 \end_inset
23886
23887
23888 \begin_inset Flex Code
23889 status collapsed
23890
23891 \begin_layout Plain Layout
23892 ]]
23893 \end_layout
23894
23895 \end_inset
23896
23897
23898 \begin_inset Quotes erd
23899 \end_inset
23900
23901 .
23902  There must be no space between any of these.
23903 \end_layout
23904
23905 \begin_layout Standard
23906 Next to the entry keys, there are some special keys that can be used for
23907  these conditionals:
23908 \end_layout
23909
23910 \begin_layout Itemize
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 {%dialog%[[true]][[false]]}
23916 \end_layout
23917
23918 \end_inset
23919
23920 : process the 
23921 \begin_inset Quotes eld
23922 \end_inset
23923
23924 true
23925 \begin_inset Quotes erd
23926 \end_inset
23927
23928  part for dialogs and menus, the 
23929 \begin_inset Quotes eld
23930 \end_inset
23931
23932 false
23933 \begin_inset Quotes erd
23934 \end_inset
23935
23936  part for other contexts (workarea, export)
23937 \end_layout
23938
23939 \begin_layout Itemize
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 {%export%[[true]][[false]]}
23945 \end_layout
23946
23947 \end_inset
23948
23949 : process the 
23950 \begin_inset Quotes eld
23951 \end_inset
23952
23953 true
23954 \begin_inset Quotes erd
23955 \end_inset
23956
23957  part for export and menus, the 
23958 \begin_inset Quotes eld
23959 \end_inset
23960
23961 false
23962 \begin_inset Quotes erd
23963 \end_inset
23964
23965  part for other contexts (workarea, dialog)
23966 \end_layout
23967
23968 \begin_layout Itemize
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 {%next%[[true]]}
23974 \end_layout
23975
23976 \end_inset
23977
23978 : process the 
23979 \begin_inset Quotes eld
23980 \end_inset
23981
23982 true
23983 \begin_inset Quotes erd
23984 \end_inset
23985
23986  part if another item follows (e.
23987 \begin_inset space \thinspace{}
23988 \end_inset
23989
23990 g., in a citation with multiple keys)
23991 \end_layout
23992
23993 \begin_layout Itemize
23994 \begin_inset Flex Code
23995 status collapsed
23996
23997 \begin_layout Plain Layout
23998 {%second%[[true]][[false]]}
23999 \end_layout
24000
24001 \end_inset
24002
24003 : process the 
24004 \begin_inset Quotes eld
24005 \end_inset
24006
24007 true
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011  if this is the second of multiple items, else the 
24012 \begin_inset Quotes eld
24013 \end_inset
24014
24015 false
24016 \begin_inset Quotes erd
24017 \end_inset
24018
24019  part
24020 \end_layout
24021
24022 \begin_layout Itemize
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 {%ifstar%[[true]][[false]]}
24028 \end_layout
24029
24030 \end_inset
24031
24032 : process the 
24033 \begin_inset Quotes eld
24034 \end_inset
24035
24036 true
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040  part for starred citation commands (such as 
24041 \begin_inset Flex Code
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045
24046 \backslash
24047 cite*
24048 \end_layout
24049
24050 \end_inset
24051
24052 ), the false part for unstarred
24053 \end_layout
24054
24055 \begin_layout Itemize
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 {%ifentrytype:<type>%[[true]][[false]]}
24061 \end_layout
24062
24063 \end_inset
24064
24065 : process the 
24066 \begin_inset Quotes eld
24067 \end_inset
24068
24069 true
24070 \begin_inset Quotes erd
24071 \end_inset
24072
24073  if the current entry type matches 
24074 \begin_inset Flex Code
24075 status collapsed
24076
24077 \begin_layout Plain Layout
24078 <type>
24079 \end_layout
24080
24081 \end_inset
24082
24083 , else the false part (e.g., in a citation definition: 
24084 \begin_inset Flex Code
24085 status collapsed
24086
24087 \begin_layout Plain Layout
24088 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24089 \end_layout
24090
24091 \end_inset
24092
24093 )
24094 \end_layout
24095
24096 \begin_layout Itemize
24097 \begin_inset Flex Code
24098 status collapsed
24099
24100 \begin_layout Plain Layout
24101 {%ifmultiple:<authortype>%[[true]][[false]]}
24102 \end_layout
24103
24104 \end_inset
24105
24106 : process the 
24107 \begin_inset Quotes eld
24108 \end_inset
24109
24110 true
24111 \begin_inset Quotes erd
24112 \end_inset
24113
24114  if the current author type (author, editor etc.) has multiple authors, else
24115  the false part (e.g., in a bibliography definition: 
24116 \begin_inset Flex Code
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 {%ifmultiple:editor%[[eds.]][[ed.]]}
24121 \end_layout
24122
24123 \end_inset
24124
24125 )
24126 \end_layout
24127
24128 \begin_layout Itemize
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133 {%ifqualified%[[true]][[false]]}
24134 \end_layout
24135
24136 \end_inset
24137
24138 : process the 
24139 \begin_inset Quotes eld
24140 \end_inset
24141
24142 true
24143 \begin_inset Quotes erd
24144 \end_inset
24145
24146  part if the current citation is a qualified citation list (a specific 
24147 \family sans
24148 Biblatex
24149 \family default
24150  format for multi-reference citations), the false part if this is not the
24151  case.
24152 \end_layout
24153
24154 \begin_layout Standard
24155 We said that 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 %author%
24161 \end_layout
24162
24163 \end_inset
24164
24165  prints the author key as it is recorded in the bibliography file.
24166  This might not be what you want, since it will result in a string such
24167  as 
24168 \begin_inset Quotes eld
24169 \end_inset
24170
24171 Miller, Peter and Smith, Mary and White, Jane
24172 \begin_inset Quotes erd
24173 \end_inset
24174
24175  (since 
24176 \begin_inset Quotes eld
24177 \end_inset
24178
24179 and
24180 \begin_inset Quotes erd
24181 \end_inset
24182
24183  is used by Bib\SpecialChar TeX
24184  to delimit authors).
24185  \SpecialChar LyX
24186  therefore provides some methods to get properly formatted name lists (which
24187  will also get translated).
24188  The following keys are provided:
24189 \end_layout
24190
24191 \begin_layout Enumerate
24192 For name lists with pre- and surname, suitable for the main authors/editors
24193  of a bibliography item.
24194  The 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 <nametype>
24200 \end_layout
24201
24202 \end_inset
24203
24204  part denotes the kind of list that is requested (e.g.
24205  
24206 \begin_inset Flex Code
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210 <nametype:author>
24211 \end_layout
24212
24213 \end_inset
24214
24215 ):
24216 \end_layout
24217
24218 \begin_deeper
24219 \begin_layout Itemize
24220 \begin_inset Flex Code
24221 status collapsed
24222
24223 \begin_layout Plain Layout
24224 %abbrvnames:<nametype>%
24225 \end_layout
24226
24227 \end_inset
24228
24229 : Provides a name list which is abbreviated (with 
24230 \begin_inset Quotes eld
24231 \end_inset
24232
24233 et al.
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237 ) when 
24238 \begin_inset Flex Code
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242 MaxCiteNames
24243 \end_layout
24244
24245 \end_inset
24246
24247  is reached.
24248 \end_layout
24249
24250 \begin_layout Itemize
24251 \begin_inset Flex Code
24252 status collapsed
24253
24254 \begin_layout Plain Layout
24255 %fullnames:<nametype>%
24256 \end_layout
24257
24258 \end_inset
24259
24260 : Provides a full name list (never abbreviated with 
24261 \begin_inset Quotes eld
24262 \end_inset
24263
24264 et al.
24265 \begin_inset Quotes erd
24266 \end_inset
24267
24268 ).
24269 \end_layout
24270
24271 \begin_layout Itemize
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 %forceabbrvnames:<nametype>%
24277 \end_layout
24278
24279 \end_inset
24280
24281 : Provides a name list which is always abbreviated (with 
24282 \begin_inset Quotes eld
24283 \end_inset
24284
24285 et al.
24286 \begin_inset Quotes erd
24287 \end_inset
24288
24289 ) irrespective of 
24290 \begin_inset Flex Code
24291 status collapsed
24292
24293 \begin_layout Plain Layout
24294 MaxCiteNames
24295 \end_layout
24296
24297 \end_inset
24298
24299 .
24300 \end_layout
24301
24302 \end_deeper
24303 \begin_layout Enumerate
24304 Alternative name lists with pre- and surname, if the order of pre- and surname
24305  inside the bibliography item differs (as in: 
24306 \begin_inset Quotes eld
24307 \end_inset
24308
24309 Miller, John: Some text, in: Mary Smith, ed.: A volume
24310 \begin_inset Quotes erd
24311 \end_inset
24312
24313 ):
24314 \end_layout
24315
24316 \begin_deeper
24317 \begin_layout Itemize
24318 \begin_inset Flex Code
24319 status collapsed
24320
24321 \begin_layout Plain Layout
24322 %abbrvbynames:<nametype>%
24323 \end_layout
24324
24325 \end_inset
24326
24327 : Provides a name list which is abbreviated (with 
24328 \begin_inset Quotes eld
24329 \end_inset
24330
24331 et al.
24332 \begin_inset Quotes erd
24333 \end_inset
24334
24335 ) when 
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340 MaxCiteNames
24341 \end_layout
24342
24343 \end_inset
24344
24345  is reached.
24346 \end_layout
24347
24348 \begin_layout Itemize
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 %fullbynames:<nametype>%
24354 \end_layout
24355
24356 \end_inset
24357
24358 : Provides a full name list (never abbreviated with 
24359 \begin_inset Quotes eld
24360 \end_inset
24361
24362 et al.
24363 \begin_inset Quotes erd
24364 \end_inset
24365
24366 ).
24367 \end_layout
24368
24369 \begin_layout Itemize
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374 %forceabbrvbynames:<nametype>%
24375 \end_layout
24376
24377 \end_inset
24378
24379 : Provides a name list which is always abbreviated (with 
24380 \begin_inset Quotes eld
24381 \end_inset
24382
24383 et al.
24384 \begin_inset Quotes erd
24385 \end_inset
24386
24387 ) irrespective of 
24388 \begin_inset Flex Code
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 MaxCiteNames
24393 \end_layout
24394
24395 \end_inset
24396
24397 .
24398 \end_layout
24399
24400 \end_deeper
24401 \begin_layout Enumerate
24402 And finally name lists which consist of family names only, as used in author-yea
24403 r citation labels.
24404  These do not take a 
24405 \begin_inset Flex Code
24406 status collapsed
24407
24408 \begin_layout Plain Layout
24409 <nametype>
24410 \end_layout
24411
24412 \end_inset
24413
24414  part, but always return either an author list or, if this does not exist,
24415  an editor list (as common in author-year labels):
24416 \end_layout
24417
24418 \begin_deeper
24419 \begin_layout Itemize
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 %abbrvciteauthor%
24425 \end_layout
24426
24427 \end_inset
24428
24429 : Provides a name list which is abbreviated (with 
24430 \begin_inset Quotes eld
24431 \end_inset
24432
24433 et al.
24434 \begin_inset Quotes erd
24435 \end_inset
24436
24437 ) when 
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442 MaxCiteNames
24443 \end_layout
24444
24445 \end_inset
24446
24447  is reached.
24448 \end_layout
24449
24450 \begin_layout Itemize
24451 \begin_inset Flex Code
24452 status collapsed
24453
24454 \begin_layout Plain Layout
24455 %fullciteauthor%
24456 \end_layout
24457
24458 \end_inset
24459
24460 : Provides a full name list (never abbreviated with 
24461 \begin_inset Quotes eld
24462 \end_inset
24463
24464 et al.
24465 \begin_inset Quotes erd
24466 \end_inset
24467
24468 ).
24469 \end_layout
24470
24471 \begin_layout Itemize
24472 \begin_inset Flex Code
24473 status collapsed
24474
24475 \begin_layout Plain Layout
24476 %forceabbrvciteauthor%
24477 \end_layout
24478
24479 \end_inset
24480
24481 : Provides a name list which is always abbreviated (with 
24482 \begin_inset Quotes eld
24483 \end_inset
24484
24485 et al.
24486 \begin_inset Quotes erd
24487 \end_inset
24488
24489 ) irrespective of 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 MaxCiteNames
24495 \end_layout
24496
24497 \end_inset
24498
24499 .
24500 \end_layout
24501
24502 \end_deeper
24503 \begin_layout Standard
24504 The order of pre- and surname in the former two lists can be adjusted by
24505  these macros:
24506 \end_layout
24507
24508 \begin_layout Itemize
24509 \begin_inset Flex Code
24510 status collapsed
24511
24512 \begin_layout Plain Layout
24513 !firstnameform %surname%, %prename%
24514 \end_layout
24515
24516 \end_inset
24517
24518  (first author in lists of type 1)
24519 \end_layout
24520
24521 \begin_layout Itemize
24522 \begin_inset Flex Code
24523 status collapsed
24524
24525 \begin_layout Plain Layout
24526 !othernameform %surname%, %prename%
24527 \end_layout
24528
24529 \end_inset
24530
24531  (other authors in lists of type 1)
24532 \end_layout
24533
24534 \begin_layout Itemize
24535 \begin_inset Flex Code
24536 status collapsed
24537
24538 \begin_layout Plain Layout
24539 !firstbynameform %prename% %surname%
24540 \end_layout
24541
24542 \end_inset
24543
24544  (first author in lists of type 2)
24545 \end_layout
24546
24547 \begin_layout Itemize
24548 \begin_inset Flex Code
24549 status collapsed
24550
24551 \begin_layout Plain Layout
24552 !otherbynameform %prename% %surname%
24553 \end_layout
24554
24555 \end_inset
24556
24557  (other authors in lists of type 2)
24558 \end_layout
24559
24560 \begin_layout Standard
24561 This allows you to configure namings like 
24562 \begin_inset Quotes eld
24563 \end_inset
24564
24565 Miller, Peter and Mary Smith: \SpecialChar ldots
24566 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24567
24568 \begin_inset Quotes erd
24569 \end_inset
24570
24571 .
24572 \end_layout
24573
24574 \begin_layout Standard
24575 There is one other piece of syntax available in definitions, which looks
24576  like this: 
24577 \begin_inset Flex Code
24578 status collapsed
24579
24580 \begin_layout Plain Layout
24581 {!<i>!}
24582 \end_layout
24583
24584 \end_inset
24585
24586 .
24587  This defines a piece of formatting information that is to be used when
24588  creating 
24589 \begin_inset Quotes eld
24590 \end_inset
24591
24592 rich text
24593 \begin_inset Quotes erd
24594 \end_inset
24595
24596 .
24597  Obviously, we do not want to output HTML tags when writing plain text,
24598  so they should be wrapped in 
24599 \begin_inset Quotes eld
24600 \end_inset
24601
24602 {!
24603 \begin_inset Quotes erd
24604 \end_inset
24605
24606  and 
24607 \begin_inset Quotes eld
24608 \end_inset
24609
24610 !}
24611 \begin_inset Quotes erd
24612 \end_inset
24613
24614 .
24615 \end_layout
24616
24617 \begin_layout Standard
24618 Two special sorts of definitions are also possible in a 
24619 \begin_inset Flex Code
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623 CiteFormat
24624 \end_layout
24625
24626 \end_inset
24627
24628  block.
24629  An example of the first would be:
24630 \end_layout
24631
24632 \begin_layout LyX-Code
24633 !quotetitle 
24634 \begin_inset Quotes eld
24635 \end_inset
24636
24637 %title%
24638 \begin_inset Quotes erd
24639 \end_inset
24640
24641
24642 \end_layout
24643
24644 \begin_layout Standard
24645 This is an abbreviation, or macro, and it can be used by treating it as
24646  if it were a key: 
24647 \begin_inset Flex Code
24648 status collapsed
24649
24650 \begin_layout Plain Layout
24651 %!quotetitle%
24652 \end_layout
24653
24654 \end_inset
24655
24656 .
24657  \SpecialChar LyX
24658  will treat 
24659 \begin_inset Flex Code
24660 status collapsed
24661
24662 \begin_layout Plain Layout
24663 %!quotetitle%
24664 \end_layout
24665
24666 \end_inset
24667
24668  exactly as it would treat its definition.
24669  So, let us issue the obvious 
24670 \emph on
24671 warning
24672 \emph default
24673 .
24674  Do not do this:
24675 \end_layout
24676
24677 \begin_layout LyX-Code
24678 !funfun %funfun%
24679 \end_layout
24680
24681 \begin_layout Standard
24682 or anything like it.
24683  \SpecialChar LyX
24684  shouldn't go into an infinite loop, but it may go into a long one before
24685  it gives up.
24686 \end_layout
24687
24688 \begin_layout Standard
24689 The second sort of special definition might look like this:
24690 \end_layout
24691
24692 \begin_layout LyX-Code
24693 B_pptext pp.
24694 \end_layout
24695
24696 \begin_layout Standard
24697 This defines a translatable piece of text, which allows relevant parts of
24698  the bibliography or citation to be translated.
24699  It can be included in a definition by treating it as a key: 
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 %B_pptext%
24705 \end_layout
24706
24707 \end_inset
24708
24709 .
24710  Note that there are two different translation paths: All definitions starting
24711  with 
24712 \begin_inset Flex Code
24713 status collapsed
24714
24715 \begin_layout Plain Layout
24716 B_
24717 \end_layout
24718
24719 \end_inset
24720
24721 , such as in the example above, will be translated to the currently active
24722  buffer language (so the translation will match the generated document).
24723  All definitions starting with underscore only will be translated to the
24724  GUI language.
24725  This is the proper translation for strings that only occur in the dialogs
24726  or on buttons, such as this one:
24727 \end_layout
24728
24729 \begin_layout LyX-Code
24730 _addtobib Add to bibliography only.
24731 \end_layout
24732
24733 \begin_layout Standard
24734 Several of these translatable strings are predefined in 
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 stdciteformats.inc
24740 \end_layout
24741
24742 \end_inset
24743
24744  and the diverse 
24745 \begin_inset Flex Code
24746 status collapsed
24747
24748 \begin_layout Plain Layout
24749 *.citeengine
24750 \end_layout
24751
24752 \end_inset
24753
24754  files.
24755  Note that these are not macros, in the sense just defined.
24756  They will not be expanded.
24757 \end_layout
24758
24759 \begin_layout Standard
24760 So here then is an example that uses several of these features:
24761 \begin_inset VSpace defskip
24762 \end_inset
24763
24764
24765 \end_layout
24766
24767 \begin_layout Standard
24768 \noindent
24769
24770 \family sans
24771 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24772 \end_layout
24773
24774 \begin_layout Standard
24775 \begin_inset VSpace defskip
24776 \end_inset
24777
24778 This defines a macro that prints the author, followed by a comma, if the
24779  
24780 \begin_inset Flex Code
24781 status collapsed
24782
24783 \begin_layout Plain Layout
24784 author
24785 \end_layout
24786
24787 \end_inset
24788
24789  key is defined, or else prints the name of the editor, followed by the
24790  
24791 \begin_inset Flex Code
24792 status collapsed
24793
24794 \begin_layout Plain Layout
24795 B_edtext
24796 \end_layout
24797
24798 \end_inset
24799
24800  or its translation (it is by default 
24801 \begin_inset Quotes eld
24802 \end_inset
24803
24804 ed.
24805 \begin_inset Quotes erd
24806 \end_inset
24807
24808 ), if the 
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813 editor
24814 \end_layout
24815
24816 \end_inset
24817
24818  key is defined.
24819  Note that this is in fact defined in 
24820 \begin_inset Flex Code
24821 status collapsed
24822
24823 \begin_layout Plain Layout
24824 stdciteformats.inc
24825 \end_layout
24826
24827 \end_inset
24828
24829 , so you can use it in your own definitions, or re-definitions, if you load
24830  that file first.
24831 \end_layout
24832
24833 \begin_layout Section
24834 \begin_inset CommandInset label
24835 LatexCommand label
24836 name "sec:Tags-for-XHTML"
24837
24838 \end_inset
24839
24840 Tags for XHTML output
24841 \end_layout
24842
24843 \begin_layout Standard
24844 As with \SpecialChar LaTeX
24845  or DocBook, the format of \SpecialChar LyX
24846 's XHTML output is also controlled by
24847  layout information.
24848  In general, \SpecialChar LyX
24849  provides sensible defaults and, as mentioned earlier, it will
24850  even construct default CSS style rules from the other layout tags.
24851  For example, \SpecialChar LyX
24852  will attempt to use the information provided in the 
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 Font
24858 \end_layout
24859
24860 \end_inset
24861
24862  declaration for the Chapter style to write CSS that will appropriately
24863  format chapter headings.
24864 \end_layout
24865
24866 \begin_layout Standard
24867 In many cases, then, you may not have to do anything at all to get acceptable
24868  XHTML output for your own environments, custom insets, and so forth.
24869  But in some cases you will, and so \SpecialChar LyX
24870  provides a number of layout tags that
24871  can be used to customize the XHTML and CSS that are generated.
24872 \end_layout
24873
24874 \begin_layout Standard
24875 Note that there are two tags, 
24876 \begin_inset Flex Code
24877 status collapsed
24878
24879 \begin_layout Plain Layout
24880 HTMLPreamble
24881 \end_layout
24882
24883 \end_inset
24884
24885  and 
24886 \begin_inset Flex Code
24887 status collapsed
24888
24889 \begin_layout Plain Layout
24890 AddToHTMLPreamble
24891 \end_layout
24892
24893 \end_inset
24894
24895  that may appear outside style and inset declarations.
24896  See 
24897 \begin_inset CommandInset ref
24898 LatexCommand ref
24899 reference "subsec:General-text-class"
24900
24901 \end_inset
24902
24903  for details on these.
24904 \end_layout
24905
24906 \begin_layout Subsection
24907 \begin_inset CommandInset label
24908 LatexCommand label
24909 name "subsec:Paragraph-Style-XHTML"
24910
24911 \end_inset
24912
24913 Paragraph styles
24914 \end_layout
24915
24916 \begin_layout Standard
24917 The sort of XHTML \SpecialChar LyX
24918  outputs for a paragraph depends upon whether we are dealing
24919  with a normal paragraph, a command, or an environment, where this is itself
24920  determined by the contents of the corresponding 
24921 \begin_inset Flex Code
24922 status collapsed
24923
24924 \begin_layout Plain Layout
24925 \SpecialChar LaTeX
24926 Type
24927 \end_layout
24928
24929 \end_inset
24930
24931  tag.
24932  
24933 \end_layout
24934
24935 \begin_layout Standard
24936 For a command or normal paragraph, the output XHTML has the following form:
24937 \end_layout
24938
24939 \begin_layout LyX-Code
24940
24941 \family sans
24942 <tag attr=
24943 \begin_inset Quotes erd
24944 \end_inset
24945
24946 value
24947 \begin_inset Quotes erd
24948 \end_inset
24949
24950 >
24951 \end_layout
24952
24953 \begin_layout LyX-Code
24954
24955 \family sans
24956 <labeltag attr=
24957 \begin_inset Quotes erd
24958 \end_inset
24959
24960 value
24961 \begin_inset Quotes erd
24962 \end_inset
24963
24964 >Label</labeltag>
24965 \end_layout
24966
24967 \begin_layout LyX-Code
24968
24969 \family sans
24970 Contents of the paragraph.
24971 \end_layout
24972
24973 \begin_layout LyX-Code
24974
24975 \family sans
24976 </tag>
24977 \end_layout
24978
24979 \begin_layout Standard
24980 The label tags are of course omitted if the paragraph does not have a label.
24981 \end_layout
24982
24983 \begin_layout Standard
24984 For an environment that is not some sort of list, the XHTML takes this form:
24985 \end_layout
24986
24987 \begin_layout LyX-Code
24988
24989 \family sans
24990 <tag attr=
24991 \begin_inset Quotes erd
24992 \end_inset
24993
24994 value
24995 \begin_inset Quotes erd
24996 \end_inset
24997
24998 >
24999 \end_layout
25000
25001 \begin_layout LyX-Code
25002
25003 \family sans
25004 <itemtag attr=
25005 \begin_inset Quotes erd
25006 \end_inset
25007
25008 value
25009 \begin_inset Quotes erd
25010 \end_inset
25011
25012 ><labeltag attr=
25013 \begin_inset Quotes erd
25014 \end_inset
25015
25016 value
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 >Environment Label</labeltag>First paragraph.</itemtag>
25021 \end_layout
25022
25023 \begin_layout LyX-Code
25024
25025 \family sans
25026 <itemtag>Second paragraph.</itemtag>
25027 \end_layout
25028
25029 \begin_layout LyX-Code
25030
25031 \family sans
25032 </tag>
25033 \end_layout
25034
25035 \begin_layout Standard
25036 Note that the label is output only for the first paragraph, as it should
25037  be for a theorem, for example.
25038  
25039 \end_layout
25040
25041 \begin_layout Standard
25042 For a list, we have one of these forms:
25043 \end_layout
25044
25045 \begin_layout LyX-Code
25046
25047 \family sans
25048 <tag attr=
25049 \begin_inset Quotes erd
25050 \end_inset
25051
25052 value
25053 \begin_inset Quotes erd
25054 \end_inset
25055
25056 >
25057 \end_layout
25058
25059 \begin_layout LyX-Code
25060
25061 \family sans
25062 <itemtag attr=
25063 \begin_inset Quotes erd
25064 \end_inset
25065
25066 value
25067 \begin_inset Quotes erd
25068 \end_inset
25069
25070 ><labeltag attr=
25071 \begin_inset Quotes erd
25072 \end_inset
25073
25074 value
25075 \begin_inset Quotes erd
25076 \end_inset
25077
25078 >List Label</labeltag>First item.</itemtag>
25079 \end_layout
25080
25081 \begin_layout LyX-Code
25082
25083 \family sans
25084 <itemtag attr=
25085 \begin_inset Quotes erd
25086 \end_inset
25087
25088 value
25089 \begin_inset Quotes erd
25090 \end_inset
25091
25092 ><labeltag attr=
25093 \begin_inset Quotes erd
25094 \end_inset
25095
25096 value
25097 \begin_inset Quotes erd
25098 \end_inset
25099
25100 >List Label</labeltag>Second item.</itemtag>
25101 \end_layout
25102
25103 \begin_layout LyX-Code
25104
25105 \family sans
25106 </tag>
25107 \end_layout
25108
25109 \begin_layout LyX-Code
25110
25111 \end_layout
25112
25113 \begin_layout LyX-Code
25114
25115 \family sans
25116 <tag attr=
25117 \begin_inset Quotes erd
25118 \end_inset
25119
25120 value
25121 \begin_inset Quotes erd
25122 \end_inset
25123
25124 >
25125 \end_layout
25126
25127 \begin_layout LyX-Code
25128
25129 \family sans
25130 <labeltag attr=
25131 \begin_inset Quotes erd
25132 \end_inset
25133
25134 value
25135 \begin_inset Quotes erd
25136 \end_inset
25137
25138 >List Label</labeltag><itemtag attr=
25139 \begin_inset Quotes erd
25140 \end_inset
25141
25142 value
25143 \begin_inset Quotes erd
25144 \end_inset
25145
25146 >First item.</itemtag>
25147 \end_layout
25148
25149 \begin_layout LyX-Code
25150
25151 \family sans
25152 <labeltag attr=
25153 \begin_inset Quotes erd
25154 \end_inset
25155
25156 value
25157 \begin_inset Quotes erd
25158 \end_inset
25159
25160 >List Label</labeltag><itemtag attr=
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164 value
25165 \begin_inset Quotes erd
25166 \end_inset
25167
25168 >Second item.</itemtag>
25169 \end_layout
25170
25171 \begin_layout LyX-Code
25172
25173 \family sans
25174 </tag>
25175 \end_layout
25176
25177 \begin_layout Standard
25178 Note the different orders of 
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183 labeltag
25184 \end_layout
25185
25186 \end_inset
25187
25188  and 
25189 \begin_inset Flex Code
25190 status collapsed
25191
25192 \begin_layout Plain Layout
25193 itemtag
25194 \end_layout
25195
25196 \end_inset
25197
25198 .
25199  Which order we get depends upon the setting of 
25200 \begin_inset Flex Code
25201 status collapsed
25202
25203 \begin_layout Plain Layout
25204 HTMLLabelFirst
25205 \end_layout
25206
25207 \end_inset
25208
25209 : If 
25210 \begin_inset Flex Code
25211 status collapsed
25212
25213 \begin_layout Plain Layout
25214 HTMLLabelFirst
25215 \end_layout
25216
25217 \end_inset
25218
25219  is false (the default), you get the first of these, with the label within
25220  the item; if true, you get the second, with the label outside the item.
25221 \end_layout
25222
25223 \begin_layout Standard
25224 The specific tags and attributes output for each paragraph type can be controlle
25225 d by means of the layout tags we are about to describe.
25226  As mentioned earlier, however, \SpecialChar LyX
25227  uses sensible defaults for many of these,
25228  so you often may not need to do very much to get good XHTML output.
25229  Think of the available tags as there so you can tweak things to your liking.
25230 \end_layout
25231
25232 \begin_layout Description
25233 \begin_inset Flex Code
25234 status collapsed
25235
25236 \begin_layout Plain Layout
25237 HTMLAttr
25238 \end_layout
25239
25240 \end_inset
25241
25242  [
25243 \begin_inset Flex Code
25244 status collapsed
25245
25246 \begin_layout Plain Layout
25247 string
25248 \end_layout
25249
25250 \end_inset
25251
25252 ] Specifies attribute information to be output with the main tag.
25253  For example, 
25254 \begin_inset Quotes eld
25255 \end_inset
25256
25257
25258 \begin_inset Flex Code
25259 status collapsed
25260
25261 \begin_layout Plain Layout
25262 class=`mydiv'
25263 \end_layout
25264
25265 \end_inset
25266
25267
25268 \begin_inset Quotes erd
25269 \end_inset
25270
25271 .
25272  By default, \SpecialChar LyX
25273  will output 
25274 \begin_inset Quotes eld
25275 \end_inset
25276
25277
25278 \begin_inset Flex Code
25279 status collapsed
25280
25281 \begin_layout Plain Layout
25282 class=`layoutname'
25283 \end_layout
25284
25285 \end_inset
25286
25287
25288 \begin_inset Quotes erd
25289 \end_inset
25290
25291 , where 
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 layoutname
25297 \end_layout
25298
25299 \end_inset
25300
25301  is the \SpecialChar LyX
25302  name of the layout, made lowercase, for example: chapter.
25303  This should 
25304 \emph on
25305 not
25306 \emph default
25307  contain any style information.
25308  Use 
25309 \begin_inset Flex Code
25310 status collapsed
25311
25312 \begin_layout Plain Layout
25313 HTMLStyle
25314 \end_layout
25315
25316 \end_inset
25317
25318  for that purpose.
25319 \end_layout
25320
25321 \begin_layout Description
25322 \begin_inset Flex Code
25323 status collapsed
25324
25325 \begin_layout Plain Layout
25326 HTMLForceCSS
25327 \end_layout
25328
25329 \end_inset
25330
25331  [
25332 \begin_inset Flex Code
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336
25337 \emph on
25338 0
25339 \emph default
25340 ,1
25341 \end_layout
25342
25343 \end_inset
25344
25345 ] Whether to output the default CSS information \SpecialChar LyX
25346  generates for this layout,
25347  even if additional information is explicitly provided via 
25348 \begin_inset Flex Code
25349 status collapsed
25350
25351 \begin_layout Plain Layout
25352 HTMLStyle
25353 \end_layout
25354
25355 \end_inset
25356
25357 .
25358  Setting this to 
25359 \begin_inset Flex Code
25360 status collapsed
25361
25362 \begin_layout Plain Layout
25363 1
25364 \end_layout
25365
25366 \end_inset
25367
25368  allows you to alter or augment the generated CSS, rather than to override
25369  it completely.
25370  Default is 
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 0
25376 \end_layout
25377
25378 \end_inset
25379
25380 .
25381 \end_layout
25382
25383 \begin_layout Description
25384 \begin_inset Flex Code
25385 status collapsed
25386
25387 \begin_layout Plain Layout
25388 HTMLItem
25389 \end_layout
25390
25391 \end_inset
25392
25393  [
25394 \begin_inset Flex Code
25395 status collapsed
25396
25397 \begin_layout Plain Layout
25398 string
25399 \end_layout
25400
25401 \end_inset
25402
25403 ] The tag to be used for individual paragraphs of environments, replacing
25404  
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 itemtag
25410 \end_layout
25411
25412 \end_inset
25413
25414  in the examples above.
25415  Defaults to 
25416 \begin_inset Flex Code
25417 status collapsed
25418
25419 \begin_layout Plain Layout
25420 div
25421 \end_layout
25422
25423 \end_inset
25424
25425 .
25426 \end_layout
25427
25428 \begin_layout Description
25429 \begin_inset Flex Code
25430 status collapsed
25431
25432 \begin_layout Plain Layout
25433 HTMLItemAttr
25434 \end_layout
25435
25436 \end_inset
25437
25438  [
25439 \begin_inset Flex Code
25440 status collapsed
25441
25442 \begin_layout Plain Layout
25443 string
25444 \end_layout
25445
25446 \end_inset
25447
25448 ] Attributes for the item tag.
25449  Defaults to
25450 \begin_inset Newline newline
25451 \end_inset
25452
25453
25454 \begin_inset Quotes eld
25455 \end_inset
25456
25457
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 class=`layoutname_item'
25463 \end_layout
25464
25465 \end_inset
25466
25467
25468 \begin_inset Quotes erd
25469 \end_inset
25470
25471 .
25472  This should 
25473 \emph on
25474 not
25475 \emph default
25476  contain any style information.
25477  Use 
25478 \begin_inset Flex Code
25479 status collapsed
25480
25481 \begin_layout Plain Layout
25482 HTMLStyle
25483 \end_layout
25484
25485 \end_inset
25486
25487  for that purpose.
25488 \end_layout
25489
25490 \begin_layout Description
25491 \begin_inset Flex Code
25492 status collapsed
25493
25494 \begin_layout Plain Layout
25495 HTMLLabel
25496 \end_layout
25497
25498 \end_inset
25499
25500  [
25501 \begin_inset Flex Code
25502 status collapsed
25503
25504 \begin_layout Plain Layout
25505 string
25506 \end_layout
25507
25508 \end_inset
25509
25510 ] The tag to be used for paragraph and item labels, replacing 
25511 \begin_inset Flex Code
25512 status collapsed
25513
25514 \begin_layout Plain Layout
25515 labeltag
25516 \end_layout
25517
25518 \end_inset
25519
25520  in the examples above.
25521  Defaults to 
25522 \begin_inset Flex Code
25523 status collapsed
25524
25525 \begin_layout Plain Layout
25526 span
25527 \end_layout
25528
25529 \end_inset
25530
25531 , unless 
25532 \begin_inset Flex Code
25533 status collapsed
25534
25535 \begin_layout Plain Layout
25536 LabelType
25537 \end_layout
25538
25539 \end_inset
25540
25541  is either 
25542 \begin_inset Flex Code
25543 status collapsed
25544
25545 \begin_layout Plain Layout
25546 Top_Environment
25547 \end_layout
25548
25549 \end_inset
25550
25551  or 
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556 Centered_Top_Environment
25557 \end_layout
25558
25559 \end_inset
25560
25561 , in which case it defaults to 
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 div
25567 \end_layout
25568
25569 \end_inset
25570
25571 .
25572 \end_layout
25573
25574 \begin_layout Description
25575 \begin_inset Flex Code
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579 HTMLLabelAttr
25580 \end_layout
25581
25582 \end_inset
25583
25584  [
25585 \begin_inset Flex Code
25586 status collapsed
25587
25588 \begin_layout Plain Layout
25589 string
25590 \end_layout
25591
25592 \end_inset
25593
25594 ] Attributes for the label tag.
25595  Defaults to
25596 \begin_inset Newline newline
25597 \end_inset
25598
25599
25600 \begin_inset Quotes eld
25601 \end_inset
25602
25603
25604 \begin_inset Flex Code
25605 status collapsed
25606
25607 \begin_layout Plain Layout
25608 class=`layoutname_label'
25609 \end_layout
25610
25611 \end_inset
25612
25613
25614 \begin_inset Quotes erd
25615 \end_inset
25616
25617 .
25618  This should 
25619 \emph on
25620 not
25621 \emph default
25622  contain any style information.
25623  Use 
25624 \begin_inset Flex Code
25625 status collapsed
25626
25627 \begin_layout Plain Layout
25628 HTMLStyle
25629 \end_layout
25630
25631 \end_inset
25632
25633  for that purpose.
25634 \end_layout
25635
25636 \begin_layout Description
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641 HTMLLabelFirst
25642 \end_layout
25643
25644 \end_inset
25645
25646  [
25647 \begin_inset Flex Code
25648 status collapsed
25649
25650 \begin_layout Plain Layout
25651
25652 \emph on
25653 0
25654 \emph default
25655 ,1
25656 \end_layout
25657
25658 \end_inset
25659
25660 ] Meaningful only for list-like environments, this tag controls whether
25661  the label tag is output before or inside the item tag.
25662  This is used, for example, in the description environment, where we want
25663  `
25664 \begin_inset Flex Code
25665 status collapsed
25666
25667 \begin_layout Plain Layout
25668 <dt>\SpecialChar ldots
25669 </dt><dd>\SpecialChar ldots
25670 </dd>
25671 \end_layout
25672
25673 \end_inset
25674
25675 .
25676  Default is 
25677 \begin_inset Flex Code
25678 status collapsed
25679
25680 \begin_layout Plain Layout
25681 0
25682 \end_layout
25683
25684 \end_inset
25685
25686 : The label tag is output inside the item tag.
25687 \end_layout
25688
25689 \begin_layout Description
25690 \begin_inset Flex Code
25691 status collapsed
25692
25693 \begin_layout Plain Layout
25694 HTMLPreamble
25695 \end_layout
25696
25697 \end_inset
25698
25699  Information to be output in the 
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 <head>
25705 \end_layout
25706
25707 \end_inset
25708
25709  section when this style is used.
25710  This might, for example, be used to include a 
25711 \begin_inset Flex Code
25712 status collapsed
25713
25714 \begin_layout Plain Layout
25715 <script>
25716 \end_layout
25717
25718 \end_inset
25719
25720  block defining an 
25721 \begin_inset Flex Code
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 onclick
25726 \end_layout
25727
25728 \end_inset
25729
25730  handler.
25731 \end_layout
25732
25733 \begin_layout Description
25734 \begin_inset Flex Code
25735 status collapsed
25736
25737 \begin_layout Plain Layout
25738 HTMLStyle
25739 \end_layout
25740
25741 \end_inset
25742
25743  CSS style information to be included when this style is used.
25744  Note that this will automatically be wrapped in a layout-generated 
25745 \begin_inset Flex Code
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 <style>
25750 \end_layout
25751
25752 \end_inset
25753
25754  block, so only the CSS itself need be included.
25755  Must end with 
25756 \begin_inset Flex Code
25757 status collapsed
25758
25759 \begin_layout Plain Layout
25760 EndHTMLStyle
25761 \end_layout
25762
25763 \end_inset
25764
25765 .
25766 \end_layout
25767
25768 \begin_layout Description
25769 \begin_inset Flex Code
25770 status collapsed
25771
25772 \begin_layout Plain Layout
25773 HTMLTag
25774 \end_layout
25775
25776 \end_inset
25777
25778  [
25779 \begin_inset Flex Code
25780 status collapsed
25781
25782 \begin_layout Plain Layout
25783 string
25784 \end_layout
25785
25786 \end_inset
25787
25788 ] The tag to be used for the main label, replacing 
25789 \begin_inset Flex Code
25790 status collapsed
25791
25792 \begin_layout Plain Layout
25793 tag
25794 \end_layout
25795
25796 \end_inset
25797
25798  in the examples above.
25799  Defaults to 
25800 \begin_inset Flex Code
25801 status collapsed
25802
25803 \begin_layout Plain Layout
25804 div
25805 \end_layout
25806
25807 \end_inset
25808
25809 .
25810 \end_layout
25811
25812 \begin_layout Description
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 HTMLTitle
25818 \end_layout
25819
25820 \end_inset
25821
25822  [
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827
25828 \emph on
25829 0
25830 \emph default
25831 ,1
25832 \end_layout
25833
25834 \end_inset
25835
25836 ] Marks this style as the one to be used to generate the 
25837 \begin_inset Flex Code
25838 status collapsed
25839
25840 \begin_layout Plain Layout
25841 <title>
25842 \end_layout
25843
25844 \end_inset
25845
25846  tag for the XHTML file.
25847  By default, it is false.
25848  The 
25849 \begin_inset Flex Code
25850 status collapsed
25851
25852 \begin_layout Plain Layout
25853 stdtitle.inc
25854 \end_layout
25855
25856 \end_inset
25857
25858  file sets it to true for the 
25859 \begin_inset Flex Code
25860 status collapsed
25861
25862 \begin_layout Plain Layout
25863 title
25864 \end_layout
25865
25866 \end_inset
25867
25868  environment.
25869  
25870 \end_layout
25871
25872 \begin_layout Subsection
25873 InsetLayout XHTML
25874 \end_layout
25875
25876 \begin_layout Standard
25877 The XHTML output of insets can also be controlled by information in layout
25878  files.
25879 \begin_inset Foot
25880 status collapsed
25881
25882 \begin_layout Plain Layout
25883 At present, this is true only for 
25884 \begin_inset Quotes eld
25885 \end_inset
25886
25887 text
25888 \begin_inset Quotes erd
25889 \end_inset
25890
25891  insets (insets you can type into) and is not true for 
25892 \begin_inset Quotes eld
25893 \end_inset
25894
25895 command
25896 \begin_inset Quotes erd
25897 \end_inset
25898
25899  insets (insets that are associated with dialog boxes).
25900 \end_layout
25901
25902 \end_inset
25903
25904  Here, too, \SpecialChar LyX
25905  tries to provide sensible defaults, and it constructs default
25906  CSS style rules.
25907  But everything can be customized.
25908 \end_layout
25909
25910 \begin_layout Standard
25911 The XHTML \SpecialChar LyX
25912  outputs for an inset has the following form:
25913 \end_layout
25914
25915 \begin_layout LyX-Code
25916 <tag attr=
25917 \begin_inset Quotes erd
25918 \end_inset
25919
25920 value
25921 \begin_inset Quotes erd
25922 \end_inset
25923
25924 >
25925 \end_layout
25926
25927 \begin_layout LyX-Code
25928 <labeltag>Label</labeltag>
25929 \end_layout
25930
25931 \begin_layout LyX-Code
25932 <innertag attr=
25933 \begin_inset Quotes erd
25934 \end_inset
25935
25936 value
25937 \begin_inset Quotes erd
25938 \end_inset
25939
25940 >Contents of the inset.</innertag>
25941 \end_layout
25942
25943 \begin_layout LyX-Code
25944 </tag>
25945 \end_layout
25946
25947 \begin_layout Standard
25948 If the inset permits multiple paragraphs—that is, if 
25949 \begin_inset Flex Code
25950 status collapsed
25951
25952 \begin_layout Plain Layout
25953 MultiPar
25954 \end_layout
25955
25956 \end_inset
25957
25958  is true—then the contents of the inset will itself be output as paragraphs
25959  formatted according to the styles used for those paragraphs (standard,
25960  quote, and the like).
25961  The label tag is of course omitted if the paragraph does not have a label
25962  and, at present, is always 
25963 \begin_inset Flex Code
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 span
25968 \end_layout
25969
25970 \end_inset
25971
25972 .
25973  The inner tag is optional and, by default, does not appear.
25974 \end_layout
25975
25976 \begin_layout Standard
25977 The specific tags and attributes output for each inset can be controlled
25978  by means of the following layout tags.
25979 \end_layout
25980
25981 \begin_layout Description
25982 \begin_inset Flex Code
25983 status collapsed
25984
25985 \begin_layout Plain Layout
25986 HTMLAttr
25987 \end_layout
25988
25989 \end_inset
25990
25991  [
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 string
25997 \end_layout
25998
25999 \end_inset
26000
26001 ] Specifies attribute information to be output with the main tag.
26002  For example, 
26003 \begin_inset Quotes eld
26004 \end_inset
26005
26006
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 class=`myinset' onclick=`\SpecialChar ldots
26012 '
26013 \end_layout
26014
26015 \end_inset
26016
26017
26018 \begin_inset Quotes erd
26019 \end_inset
26020
26021 .
26022  By default, \SpecialChar LyX
26023  will output 
26024 \begin_inset Quotes eld
26025 \end_inset
26026
26027
26028 \begin_inset Flex Code
26029 status collapsed
26030
26031 \begin_layout Plain Layout
26032 class=`insetname'
26033 \end_layout
26034
26035 \end_inset
26036
26037
26038 \begin_inset Quotes erd
26039 \end_inset
26040
26041 , where 
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 insetname
26047 \end_layout
26048
26049 \end_inset
26050
26051  is the \SpecialChar LyX
26052  name of the inset, made lowercase and with non-alphanumeric characters
26053  converted to underscores, for example: footnote.
26054 \end_layout
26055
26056 \begin_layout Description
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 HTMLForceCSS
26062 \end_layout
26063
26064 \end_inset
26065
26066  [
26067 \begin_inset Flex Code
26068 status collapsed
26069
26070 \begin_layout Plain Layout
26071
26072 \emph on
26073 0
26074 \emph default
26075 ,1
26076 \end_layout
26077
26078 \end_inset
26079
26080 ] Whether to output the default CSS information \SpecialChar LyX
26081  generates for this layout,
26082  even if additional information is explicitly provided via 
26083 \begin_inset Flex Code
26084 status collapsed
26085
26086 \begin_layout Plain Layout
26087 HTMLStyle
26088 \end_layout
26089
26090 \end_inset
26091
26092 .
26093  Setting this to 
26094 \begin_inset Flex Code
26095 status collapsed
26096
26097 \begin_layout Plain Layout
26098 1
26099 \end_layout
26100
26101 \end_inset
26102
26103  allows you to alter or augment the generated CSS, rather than to override
26104  it completely.
26105  Default is 0.
26106 \end_layout
26107
26108 \begin_layout Description
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113 HTMLInnerAttr
26114 \end_layout
26115
26116 \end_inset
26117
26118  [
26119 \begin_inset Flex Code
26120 status collapsed
26121
26122 \begin_layout Plain Layout
26123 string
26124 \end_layout
26125
26126 \end_inset
26127
26128 ] Attributes for the inner tag.
26129  Defaults to
26130 \begin_inset Newline newline
26131 \end_inset
26132
26133
26134 \begin_inset Quotes eld
26135 \end_inset
26136
26137
26138 \begin_inset Flex Code
26139 status collapsed
26140
26141 \begin_layout Plain Layout
26142 class=`insetname_inner'
26143 \end_layout
26144
26145 \end_inset
26146
26147
26148 \begin_inset Quotes erd
26149 \end_inset
26150
26151 .
26152 \end_layout
26153
26154 \begin_layout Description
26155 \begin_inset Flex Code
26156 status collapsed
26157
26158 \begin_layout Plain Layout
26159 HTMLInnerTag
26160 \end_layout
26161
26162 \end_inset
26163
26164  [
26165 \begin_inset Flex Code
26166 status collapsed
26167
26168 \begin_layout Plain Layout
26169 string
26170 \end_layout
26171
26172 \end_inset
26173
26174 ] The inner tag, replacing 
26175 \begin_inset Flex Code
26176 status collapsed
26177
26178 \begin_layout Plain Layout
26179 innertag
26180 \end_layout
26181
26182 \end_inset
26183
26184  in the examples above.
26185  By default, there is none.
26186 \end_layout
26187
26188 \begin_layout Description
26189 \begin_inset Flex Code
26190 status collapsed
26191
26192 \begin_layout Plain Layout
26193 HTMLIsBlock
26194 \end_layout
26195
26196 \end_inset
26197
26198  [
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 0,
26204 \emph on
26205 1
26206 \end_layout
26207
26208 \end_inset
26209
26210 ] Whether this inset represents a standalone block of text (such as a footnote)
26211  or instead represents material that is included in the surrounding text
26212  (such as a branch).
26213  Defaults to 1.
26214 \end_layout
26215
26216 \begin_layout Description
26217 \begin_inset Flex Code
26218 status collapsed
26219
26220 \begin_layout Plain Layout
26221 HTMLLabel
26222 \end_layout
26223
26224 \end_inset
26225
26226  [
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 string
26232 \end_layout
26233
26234 \end_inset
26235
26236 ] A label for this inset, possibly including a reference to a counter.
26237  For example, for footnote, it might be: 
26238 \begin_inset Flex Code
26239 status collapsed
26240
26241 \begin_layout Plain Layout
26242
26243 \backslash
26244 arabic{footnote}
26245 \end_layout
26246
26247 \end_inset
26248
26249 .
26250  This is optional, and there is no default.
26251 \end_layout
26252
26253 \begin_layout Description
26254 \begin_inset Flex Code
26255 status collapsed
26256
26257 \begin_layout Plain Layout
26258 HTMLPreamble
26259 \end_layout
26260
26261 \end_inset
26262
26263  Information to be output in the 
26264 \begin_inset Flex Code
26265 status collapsed
26266
26267 \begin_layout Plain Layout
26268 <head>
26269 \end_layout
26270
26271 \end_inset
26272
26273  section when this style is used.
26274  This might, for example, be used to include a 
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 <script>
26280 \end_layout
26281
26282 \end_inset
26283
26284  block defining an 
26285 \begin_inset Flex Code
26286 status collapsed
26287
26288 \begin_layout Plain Layout
26289 onclick
26290 \end_layout
26291
26292 \end_inset
26293
26294  handler.
26295 \end_layout
26296
26297 \begin_layout Description
26298 \begin_inset Flex Code
26299 status collapsed
26300
26301 \begin_layout Plain Layout
26302 HTMLStyle
26303 \end_layout
26304
26305 \end_inset
26306
26307  CSS style information to be included when this style is used.
26308  Note that this will automatically be wrapped in a layout-generated 
26309 \begin_inset Flex Code
26310 status collapsed
26311
26312 \begin_layout Plain Layout
26313 <style>
26314 \end_layout
26315
26316 \end_inset
26317
26318  block, so only the CSS itself need be included.
26319 \end_layout
26320
26321 \begin_layout Description
26322 \begin_inset Flex Code
26323 status collapsed
26324
26325 \begin_layout Plain Layout
26326 HTMLTag
26327 \end_layout
26328
26329 \end_inset
26330
26331  [
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336 string
26337 \end_layout
26338
26339 \end_inset
26340
26341 ] The tag to be used for the main label, replacing 
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 tag
26347 \end_layout
26348
26349 \end_inset
26350
26351  in the examples above.
26352  The default depends upon the setting of 
26353 \begin_inset Flex Code
26354 status collapsed
26355
26356 \begin_layout Plain Layout
26357 MultiPar
26358 \end_layout
26359
26360 \end_inset
26361
26362 : If 
26363 \begin_inset Flex Code
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 MultiPar
26368 \end_layout
26369
26370 \end_inset
26371
26372  is true, the default is 
26373 \begin_inset Flex Code
26374 status collapsed
26375
26376 \begin_layout Plain Layout
26377 div
26378 \end_layout
26379
26380 \end_inset
26381
26382 ; if it is false, the default is 
26383 \begin_inset Flex Code
26384 status collapsed
26385
26386 \begin_layout Plain Layout
26387 span
26388 \end_layout
26389
26390 \end_inset
26391
26392 .
26393 \end_layout
26394
26395 \begin_layout Subsection
26396 Float XHTML
26397 \end_layout
26398
26399 \begin_layout Standard
26400 The XHTML output for floats too can be controlled by layout information.
26401  The output has the following form:
26402 \end_layout
26403
26404 \begin_layout LyX-Code
26405 <tag attr=
26406 \begin_inset Quotes erd
26407 \end_inset
26408
26409 value
26410 \begin_inset Quotes erd
26411 \end_inset
26412
26413 >
26414 \end_layout
26415
26416 \begin_layout LyX-Code
26417 Contents of the float.
26418 \end_layout
26419
26420 \begin_layout LyX-Code
26421 </tag>
26422 \end_layout
26423
26424 \begin_layout Standard
26425 The caption, if there is one, is a separate inset and will be output as
26426  such.
26427  Its appearance can be controlled via the InsetLayout for caption insets.
26428  
26429 \end_layout
26430
26431 \begin_layout Description
26432 \begin_inset Flex Code
26433 status collapsed
26434
26435 \begin_layout Plain Layout
26436 HTMLAttr
26437 \end_layout
26438
26439 \end_inset
26440
26441  [
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 string
26447 \end_layout
26448
26449 \end_inset
26450
26451 ] Specifies attribute information to be output with the main tag.
26452  For example, 
26453 \begin_inset Quotes eld
26454 \end_inset
26455
26456
26457 \begin_inset Flex Code
26458 status collapsed
26459
26460 \begin_layout Plain Layout
26461 class=`myfloat' onclick=`\SpecialChar ldots
26462 '
26463 \end_layout
26464
26465 \end_inset
26466
26467
26468 \begin_inset Quotes erd
26469 \end_inset
26470
26471 .
26472  By default, \SpecialChar LyX
26473  will output 
26474 \begin_inset Quotes eld
26475 \end_inset
26476
26477
26478 \begin_inset Flex Code
26479 status collapsed
26480
26481 \begin_layout Plain Layout
26482 class=`float float-floattype'
26483 \end_layout
26484
26485 \end_inset
26486
26487
26488 \begin_inset Quotes erd
26489 \end_inset
26490
26491 , where 
26492 \begin_inset Flex Code
26493 status collapsed
26494
26495 \begin_layout Plain Layout
26496 floattype
26497 \end_layout
26498
26499 \end_inset
26500
26501  is \SpecialChar LyX
26502 's name for this type of float, as determined by the float declaration
26503  (see 
26504 \begin_inset CommandInset ref
26505 LatexCommand ref
26506 reference "subsec:Floats"
26507
26508 \end_inset
26509
26510 ), though made lowercase and with non-alphanumeric characters converted
26511  to underscores, for example: float-table.
26512 \end_layout
26513
26514 \begin_layout Description
26515 \begin_inset Flex Code
26516 status collapsed
26517
26518 \begin_layout Plain Layout
26519 HTMLStyle
26520 \end_layout
26521
26522 \end_inset
26523
26524  CSS style information to be included when this float is used.
26525  Note that this will automatically be wrapped in a layout-generated 
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 <style>
26531 \end_layout
26532
26533 \end_inset
26534
26535  block, so only the CSS itself need be included.
26536 \end_layout
26537
26538 \begin_layout Description
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 HTMLTag
26544 \end_layout
26545
26546 \end_inset
26547
26548  [
26549 \begin_inset Flex Code
26550 status collapsed
26551
26552 \begin_layout Plain Layout
26553 string
26554 \end_layout
26555
26556 \end_inset
26557
26558 ] The tag to be used for this float, replacing 
26559 \begin_inset Quotes eld
26560 \end_inset
26561
26562
26563 \begin_inset Flex Code
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 tag
26568 \end_layout
26569
26570 \end_inset
26571
26572
26573 \begin_inset Quotes erd
26574 \end_inset
26575
26576  in the example above.
26577  The default is 
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 div
26583 \end_layout
26584
26585 \end_inset
26586
26587  and will rarely need changing.
26588 \end_layout
26589
26590 \begin_layout Subsection
26591 Bibliography formatting
26592 \end_layout
26593
26594 \begin_layout Standard
26595 The bibliography can be formatted using 
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 CiteFormat
26601 \end_layout
26602
26603 \end_inset
26604
26605  blocks.
26606  See 
26607 \begin_inset CommandInset ref
26608 LatexCommand ref
26609 reference "subsec:Citation-format-description"
26610
26611 \end_inset
26612
26613  for the details.
26614 \end_layout
26615
26616 \begin_layout Subsection
26617 \SpecialChar LyX
26618 -generated CSS
26619 \end_layout
26620
26621 \begin_layout Standard
26622 We have several times mentioned that \SpecialChar LyX
26623  will generate default CSS style rules
26624  for both insets and paragraph styles, based upon the other layout information
26625  that is provided.
26626  In this section, we shall say a word about which layout information \SpecialChar LyX
26627  uses
26628  and how.
26629 \end_layout
26630
26631 \begin_layout Standard
26632 At present, \SpecialChar LyX
26633  auto-generates CSS only for font information, making use of
26634  the 
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639 Family
26640 \end_layout
26641
26642 \end_inset
26643
26644
26645 \begin_inset Flex Code
26646 status collapsed
26647
26648 \begin_layout Plain Layout
26649 Series
26650 \end_layout
26651
26652 \end_inset
26653
26654
26655 \begin_inset Flex Code
26656 status collapsed
26657
26658 \begin_layout Plain Layout
26659 Shape
26660 \end_layout
26661
26662 \end_inset
26663
26664 , and 
26665 \begin_inset Flex Code
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669 Size
26670 \end_layout
26671
26672 \end_inset
26673
26674  specified in the 
26675 \begin_inset Flex Code
26676 status collapsed
26677
26678 \begin_layout Plain Layout
26679 Font
26680 \end_layout
26681
26682 \end_inset
26683
26684  declaration (see 
26685 \begin_inset CommandInset ref
26686 LatexCommand ref
26687 reference "subsec:Font-description"
26688
26689 \end_inset
26690
26691 ).
26692  The translation is mostly straightforward and obvious.
26693  For example, 
26694 \begin_inset Quotes eld
26695 \end_inset
26696
26697
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702 Family Sans
26703 \end_layout
26704
26705 \end_inset
26706
26707
26708 \begin_inset Quotes erd
26709 \end_inset
26710
26711  becomes 
26712 \begin_inset Quotes eld
26713 \end_inset
26714
26715
26716 \begin_inset Flex Code
26717 status collapsed
26718
26719 \begin_layout Plain Layout
26720 font-family: sans-serif;
26721 \end_layout
26722
26723 \end_inset
26724
26725
26726 \begin_inset Quotes erd
26727 \end_inset
26728
26729 .
26730  The correspondence of \SpecialChar LyX
26731  sizes and CSS sizes is a little less obvious but
26732  nonetheless intuitive.
26733  See the 
26734 \begin_inset Flex Code
26735 status collapsed
26736
26737 \begin_layout Plain Layout
26738 getSizeCSS()
26739 \end_layout
26740
26741 \end_inset
26742
26743  function in 
26744 \begin_inset Flex URL
26745 status collapsed
26746
26747 \begin_layout Plain Layout
26748
26749 src/FontInfo.cpp
26750 \end_layout
26751
26752 \end_inset
26753
26754  for the details.
26755 \end_layout
26756
26757 \begin_layout Chapter
26758 Including External Material
26759 \begin_inset CommandInset label
26760 LatexCommand label
26761 name "chap:Including-External-Material"
26762
26763 \end_inset
26764
26765
26766 \end_layout
26767
26768 \begin_layout Standard
26769 \begin_inset Box Shadowbox
26770 position "t"
26771 hor_pos "c"
26772 has_inner_box 1
26773 inner_pos "t"
26774 use_parbox 0
26775 use_makebox 0
26776 width "100col%"
26777 special "none"
26778 height "1in"
26779 height_special "totalheight"
26780 thickness "0.4pt"
26781 separation "3pt"
26782 shadowsize "4pt"
26783 framecolor "black"
26784 backgroundcolor "none"
26785 status open
26786
26787 \begin_layout Plain Layout
26788 WARNING: This portion of the documentation has not been updated for some
26789  time.
26790  We certainly hope that it is still accurate, but there are no guarantees.
26791 \end_layout
26792
26793 \end_inset
26794
26795
26796 \end_layout
26797
26798 \begin_layout Standard
26799 The use of material from sources external to \SpecialChar LyX
26800  is covered in detail in the
26801  
26802 \emph on
26803 Embedded Objects
26804 \emph default
26805  manual.
26806  This part of the manual covers what needs to happen behind the scenes for
26807  new sorts of material to be included.
26808 \end_layout
26809
26810 \begin_layout Section
26811 How does it work?
26812 \end_layout
26813
26814 \begin_layout Standard
26815 The external material feature is based on the concept of a 
26816 \emph on
26817 template
26818 \emph default
26819 .
26820  A template is a specification of how \SpecialChar LyX
26821  should interface with a certain kind
26822  of material.
26823  As bundled, \SpecialChar LyX
26824  comes with predefined templates for Xfig figures, various
26825  raster format images, chess diagrams, and LilyPond music notation.
26826  You can check the actual list by using the menu 
26827 \begin_inset Flex Noun
26828 status collapsed
26829
26830 \begin_layout Plain Layout
26831 Insert\SpecialChar menuseparator
26832 File\SpecialChar menuseparator
26833 External Material
26834 \end_layout
26835
26836 \end_inset
26837
26838 .
26839  Furthermore, it is possible to roll your own template to support a specific
26840  kind of material.
26841  Later we'll describe in more detail what is involved, and hopefully you
26842  will submit all the templates you create so we can include them in a later
26843  \SpecialChar LyX
26844  version.
26845 \end_layout
26846
26847 \begin_layout Standard
26848 Another basic idea of the external material feature is to distinguish between
26849  the original file that serves as a base for final material and the produced
26850  file that is included in your exported or printed document.
26851  For example, consider the case of a figure produced with 
26852 \begin_inset Flex Code
26853 status collapsed
26854
26855 \begin_layout Plain Layout
26856 Xfig
26857 \end_layout
26858
26859 \end_inset
26860
26861 .
26862  The Xfig application itself works on an original file with 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  extension.
26873  Within Xfig, you create and change your figure, and when you are done,
26874  you save the 
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 fig
26880 \end_layout
26881
26882 \end_inset
26883
26884 -file.
26885  When you want to include the figure in your document, you invoke 
26886 \begin_inset Flex Code
26887 status collapsed
26888
26889 \begin_layout Plain Layout
26890 transfig
26891 \end_layout
26892
26893 \end_inset
26894
26895  in order to create a PostScript file that can readily be included in your
26896  \SpecialChar LaTeX
26897  file.
26898  In this case, the 
26899 \begin_inset Flex Code
26900 status collapsed
26901
26902 \begin_layout Plain Layout
26903 .fig
26904 \end_layout
26905
26906 \end_inset
26907
26908  file is the original file, and the PostScript file is the produced file.
26909 \end_layout
26910
26911 \begin_layout Standard
26912 This distinction is important in order to allow updating of the material
26913  while you are in the process of writing the document.
26914  Furthermore, it provides us with the flexibility that is needed to support
26915  multiple export formats.
26916  For instance, in the case of a plain text file, it is not exactly an award-winn
26917 ing idea to include the figure as raw PostScript.
26918  Instead, you would either prefer to just include a reference to the figure
26919  or try to invoke some graphics to ASCII converter to make the final result
26920  look similar to the real graphics.
26921  The external material management allows you to do this, because it is parametri
26922 zed on the different export formats that \SpecialChar LyX
26923  supports.
26924 \end_layout
26925
26926 \begin_layout Standard
26927 Besides supporting the production of different products according to the
26928  exported format, it supports tight integration with editing and viewing
26929  applications.
26930  In the case of an Xfig figure, you are able to invoke Xfig on the original
26931  file with a single click from within the external material dialog in \SpecialChar LyX
26932 ,
26933  and also preview the produced PostScript file with Ghostview with another
26934  click.
26935  No more fiddling around with the command line and/or file browsers to locate
26936  and manipulate the original or produced files.
26937  In this way, you are finally able to take full advantage of the many different
26938  applications that are relevant to use when you write your documents, and
26939  ultimately be more productive.
26940 \end_layout
26941
26942 \begin_layout Section
26943 The external template configuration files
26944 \end_layout
26945
26946 \begin_layout Standard
26947 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26948 .
26949  However, be aware that doing this in an careless manner most probably 
26950 \emph on
26951 will
26952 \emph default
26953  introduce an easily exploitable security hole.
26954  So before you do this, please read the discussion about security in 
26955 \begin_inset CommandInset ref
26956 LatexCommand ref
26957 reference "sec:Security-discussion"
26958
26959 \end_inset
26960
26961 .
26962 \end_layout
26963
26964 \begin_layout Standard
26965 Having said that, we encourage you to submit any interesting templates that
26966  you create.
26967  
26968 \end_layout
26969
26970 \begin_layout Standard
26971 The external templates are defined in the 
26972 \begin_inset Flex Code
26973 status collapsed
26974
26975 \begin_layout Plain Layout
26976 *.xtemplate
26977 \end_layout
26978
26979 \end_inset
26980
26981  files that are stored in the 
26982 \begin_inset Flex Code
26983 status collapsed
26984
26985 \begin_layout Plain Layout
26986 LyXDir/lib/xtemplates/
26987 \end_layout
26988
26989 \end_inset
26990
26991  directory.
26992  Each template is defined in a file of its own.
26993  You can place your own templates in 
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 UserDir/xtemplates/
26999 \end_layout
27000
27001 \end_inset
27002
27003  or copy existing templates to that directory in order to modify them.
27004 \end_layout
27005
27006 \begin_layout Standard
27007 A typical template looks like this:
27008 \end_layout
27009
27010 \begin_layout LyX-Code
27011 Template XFig
27012 \end_layout
27013
27014 \begin_layout LyX-Code
27015 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
27016 \end_layout
27017
27018 \begin_layout LyX-Code
27019 HelpText
27020 \end_layout
27021
27022 \begin_layout LyX-Code
27023 An XFig figure.
27024 \end_layout
27025
27026 \begin_layout LyX-Code
27027 HelpTextEnd
27028 \end_layout
27029
27030 \begin_layout LyX-Code
27031 InputFormat fig
27032 \end_layout
27033
27034 \begin_layout LyX-Code
27035 FileFilter "*.fig"
27036 \end_layout
27037
27038 \begin_layout LyX-Code
27039 AutomaticProduction true
27040 \end_layout
27041
27042 \begin_layout LyX-Code
27043 Transform Rotate
27044 \end_layout
27045
27046 \begin_layout LyX-Code
27047 Transform Resize
27048 \end_layout
27049
27050 \begin_layout LyX-Code
27051 Format LaTeX
27052 \end_layout
27053
27054 \begin_layout LyX-Code
27055 TransformCommand Rotate RotationLatexCommand
27056 \end_layout
27057
27058 \begin_layout LyX-Code
27059 TransformCommand Resize ResizeLatexCommand
27060 \end_layout
27061
27062 \begin_layout LyX-Code
27063 Product "$$RotateFront$$ResizeFront
27064 \end_layout
27065
27066 \begin_layout LyX-Code
27067          
27068 \backslash
27069
27070 \backslash
27071 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
27072 \end_layout
27073
27074 \begin_layout LyX-Code
27075          $$ResizeBack$$RotateBack"
27076 \end_layout
27077
27078 \begin_layout LyX-Code
27079 UpdateFormat pstex
27080 \end_layout
27081
27082 \begin_layout LyX-Code
27083 UpdateResult "$$AbsPath$$Basename.pstex_t"
27084 \end_layout
27085
27086 \begin_layout LyX-Code
27087 Requirement "graphicx"
27088 \end_layout
27089
27090 \begin_layout LyX-Code
27091 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27092 \end_layout
27093
27094 \begin_layout LyX-Code
27095 ReferencedFile latex "$$AbsPath$$Basename.eps"
27096 \end_layout
27097
27098 \begin_layout LyX-Code
27099 ReferencedFile dvi "$$AbsPath$$Basename.eps"
27100 \end_layout
27101
27102 \begin_layout LyX-Code
27103 FormatEnd
27104 \end_layout
27105
27106 \begin_layout LyX-Code
27107 Format PDFLaTeX
27108 \end_layout
27109
27110 \begin_layout LyX-Code
27111 TransformCommand Rotate RotationLatexCommand
27112 \end_layout
27113
27114 \begin_layout LyX-Code
27115 TransformCommand Resize ResizeLatexCommand
27116 \end_layout
27117
27118 \begin_layout LyX-Code
27119 Product "$$RotateFront$$ResizeFront
27120 \end_layout
27121
27122 \begin_layout LyX-Code
27123          
27124 \backslash
27125
27126 \backslash
27127 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
27128 \end_layout
27129
27130 \begin_layout LyX-Code
27131          $$ResizeBack$$RotateBack"
27132 \end_layout
27133
27134 \begin_layout LyX-Code
27135 UpdateFormat pdftex
27136 \end_layout
27137
27138 \begin_layout LyX-Code
27139 UpdateResult "$$AbsPath$$Basename.pdftex_t"
27140 \end_layout
27141
27142 \begin_layout LyX-Code
27143 Requirement "graphicx"
27144 \end_layout
27145
27146 \begin_layout LyX-Code
27147 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
27148 \end_layout
27149
27150 \begin_layout LyX-Code
27151 ReferencedFile latex "$$AbsPath$$Basename.pdf"
27152 \end_layout
27153
27154 \begin_layout LyX-Code
27155 FormatEnd
27156 \end_layout
27157
27158 \begin_layout LyX-Code
27159 Format Ascii
27160 \end_layout
27161
27162 \begin_layout LyX-Code
27163 Product "[XFig: $$FName]"
27164 \end_layout
27165
27166 \begin_layout LyX-Code
27167 FormatEnd
27168 \end_layout
27169
27170 \begin_layout LyX-Code
27171 Format DocBook
27172 \end_layout
27173
27174 \begin_layout LyX-Code
27175 Product "<graphic fileref=
27176 \backslash
27177 "$$AbsOrRelPathMaster$$Basename.eps
27178 \backslash
27179 ">
27180 \end_layout
27181
27182 \begin_layout LyX-Code
27183          </graphic>"
27184 \end_layout
27185
27186 \begin_layout LyX-Code
27187 UpdateFormat eps
27188 \end_layout
27189
27190 \begin_layout LyX-Code
27191 UpdateResult "$$AbsPath$$Basename.eps"
27192 \end_layout
27193
27194 \begin_layout LyX-Code
27195 ReferencedFile docbook "$$AbsPath$$Basename.eps"
27196 \end_layout
27197
27198 \begin_layout LyX-Code
27199 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
27200 \end_layout
27201
27202 \begin_layout LyX-Code
27203 FormatEnd
27204 \end_layout
27205
27206 \begin_layout LyX-Code
27207 TemplateEnd
27208 \end_layout
27209
27210 \begin_layout Standard
27211 As you can see, the template is enclosed in 
27212 \begin_inset Flex Code
27213 status collapsed
27214
27215 \begin_layout Plain Layout
27216 Template
27217 \end_layout
27218
27219 \end_inset
27220
27221  \SpecialChar ldots
27222  
27223 \begin_inset Flex Code
27224 status collapsed
27225
27226 \begin_layout Plain Layout
27227 TemplateEnd
27228 \end_layout
27229
27230 \end_inset
27231
27232 .
27233  It contains a header specifying some general settings and, for each supported
27234  primary document file format, a section 
27235 \begin_inset Flex Code
27236 status collapsed
27237
27238 \begin_layout Plain Layout
27239 Format
27240 \end_layout
27241
27242 \end_inset
27243
27244  \SpecialChar ldots
27245  
27246 \begin_inset Flex Code
27247 status collapsed
27248
27249 \begin_layout Plain Layout
27250 FormatEnd
27251 \end_layout
27252
27253 \end_inset
27254
27255 .
27256 \end_layout
27257
27258 \begin_layout Subsection
27259 The template header
27260 \end_layout
27261
27262 \begin_layout Description
27263 \begin_inset Flex Code
27264 status collapsed
27265
27266 \begin_layout Plain Layout
27267 AutomaticProduction
27268 \begin_inset space ~
27269 \end_inset
27270
27271 true|false
27272 \end_layout
27273
27274 \end_inset
27275
27276  Whether the file represented by the template must be generated by \SpecialChar LyX
27277 .
27278  This command must occur exactly once.
27279 \end_layout
27280
27281 \begin_layout Description
27282 \begin_inset Flex Code
27283 status collapsed
27284
27285 \begin_layout Plain Layout
27286 FileFilter
27287 \begin_inset space ~
27288 \end_inset
27289
27290 <pattern>
27291 \end_layout
27292
27293 \end_inset
27294
27295  A glob pattern that is used in the file dialog to filter out the desired
27296  files.
27297  If there is more than one possible file extension (e.
27298 \begin_inset space \thinspace{}
27299 \end_inset
27300
27301 g.
27302 \begin_inset space \space{}
27303 \end_inset
27304
27305 tgif has 
27306 \begin_inset Flex Code
27307 status collapsed
27308
27309 \begin_layout Plain Layout
27310 .obj
27311 \end_layout
27312
27313 \end_inset
27314
27315  and 
27316 \begin_inset Flex Code
27317 status collapsed
27318
27319 \begin_layout Plain Layout
27320 .tgo
27321 \end_layout
27322
27323 \end_inset
27324
27325 ), use something like 
27326 \begin_inset Flex Code
27327 status collapsed
27328
27329 \begin_layout Plain Layout
27330 "*.{obj,tgo}"
27331 \end_layout
27332
27333 \end_inset
27334
27335 .
27336  This command must occur exactly once.
27337 \end_layout
27338
27339 \begin_layout Description
27340 \begin_inset Flex Code
27341 status collapsed
27342
27343 \begin_layout Plain Layout
27344 GuiName
27345 \begin_inset space ~
27346 \end_inset
27347
27348 <guiname>
27349 \end_layout
27350
27351 \end_inset
27352
27353  The text that is displayed on the button.
27354  This command must occur exactly once.
27355 \end_layout
27356
27357 \begin_layout Description
27358 \begin_inset Flex Code
27359 status collapsed
27360
27361 \begin_layout Plain Layout
27362 HelpText
27363 \begin_inset space ~
27364 \end_inset
27365
27366 <text>
27367 \begin_inset space ~
27368 \end_inset
27369
27370 HelpTextEnd
27371 \end_layout
27372
27373 \end_inset
27374
27375  The help text that is used in the External dialog.
27376  Provide enough information to explain to the user just what the template
27377  can provide him with.
27378  This command must occur exactly once.
27379 \end_layout
27380
27381 \begin_layout Description
27382 \begin_inset Flex Code
27383 status collapsed
27384
27385 \begin_layout Plain Layout
27386 InputFormat
27387 \begin_inset space ~
27388 \end_inset
27389
27390 <format>
27391 \end_layout
27392
27393 \end_inset
27394
27395  The file format of the original file.
27396  This must be the name of a format that is known to \SpecialChar LyX
27397  (see 
27398 \begin_inset CommandInset ref
27399 LatexCommand ref
27400 reference "sec:Formats"
27401
27402 \end_inset
27403
27404 ).
27405  Use 
27406 \begin_inset Quotes eld
27407 \end_inset
27408
27409
27410 \begin_inset Flex Code
27411 status collapsed
27412
27413 \begin_layout Plain Layout
27414 *
27415 \end_layout
27416
27417 \end_inset
27418
27419
27420 \begin_inset Quotes erd
27421 \end_inset
27422
27423  if the template can handle original files of more than one format.
27424  \SpecialChar LyX
27425  will attempt to interrogate the file itself in order to deduce its format
27426  in this case.
27427  This command must occur exactly once.
27428 \end_layout
27429
27430 \begin_layout Description
27431 \begin_inset Flex Code
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435 Template
27436 \begin_inset space ~
27437 \end_inset
27438
27439 <id>
27440 \end_layout
27441
27442 \end_inset
27443
27444  A unique name for the template.
27445  It must not contain substitution macros (see below).
27446 \end_layout
27447
27448 \begin_layout Description
27449 \begin_inset Flex Code
27450 status collapsed
27451
27452 \begin_layout Plain Layout
27453 Transform
27454 \begin_inset space ~
27455 \end_inset
27456
27457 Rotate|Resize|Clip|Extra
27458 \end_layout
27459
27460 \end_inset
27461
27462  This command specifies which transformations are supported by this template.
27463  It may occur zero or more times.
27464  This command enables the corresponding tabs in the external dialog.
27465  Each 
27466 \begin_inset Flex Code
27467 status collapsed
27468
27469 \begin_layout Plain Layout
27470 Transform
27471 \end_layout
27472
27473 \end_inset
27474
27475  command must have either a corresponding 
27476 \begin_inset Flex Code
27477 status collapsed
27478
27479 \begin_layout Plain Layout
27480 TransformCommand
27481 \end_layout
27482
27483 \end_inset
27484
27485  or a 
27486 \begin_inset Flex Code
27487 status collapsed
27488
27489 \begin_layout Plain Layout
27490 TransformOption
27491 \end_layout
27492
27493 \end_inset
27494
27495  command in the 
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 Format
27501 \end_layout
27502
27503 \end_inset
27504
27505  section.
27506  Otherwise the transformation will not be supported by that format.
27507 \end_layout
27508
27509 \begin_layout Subsection
27510 The Format section
27511 \end_layout
27512
27513 \begin_layout Description
27514 \begin_inset Flex Code
27515 status collapsed
27516
27517 \begin_layout Plain Layout
27518 Format
27519 \begin_inset space ~
27520 \end_inset
27521
27522 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27523 \end_layout
27524
27525 \end_inset
27526
27527  The primary document file format that this format definition is for.
27528  Not every template has a sensible representation in all document file formats.
27529  Please define nevertheless a 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 Format
27535 \end_layout
27536
27537 \end_inset
27538
27539  section for all templates.
27540  Use a dummy text when no representation is available.
27541  Then you can at least see a reference to the external material in the exported
27542  document.
27543 \end_layout
27544
27545 \begin_layout Description
27546 \begin_inset Flex Code
27547 status collapsed
27548
27549 \begin_layout Plain Layout
27550 Option
27551 \begin_inset space ~
27552 \end_inset
27553
27554 <name>
27555 \begin_inset space ~
27556 \end_inset
27557
27558 <value>
27559 \end_layout
27560
27561 \end_inset
27562
27563  This command defines an additional macro 
27564 \begin_inset Flex Code
27565 status collapsed
27566
27567 \begin_layout Plain Layout
27568 $$<name>
27569 \end_layout
27570
27571 \end_inset
27572
27573  for substitution in 
27574 \begin_inset Flex Code
27575 status collapsed
27576
27577 \begin_layout Plain Layout
27578 Product
27579 \end_layout
27580
27581 \end_inset
27582
27583 .
27584  
27585 \begin_inset Flex Code
27586 status collapsed
27587
27588 \begin_layout Plain Layout
27589 <value>
27590 \end_layout
27591
27592 \end_inset
27593
27594  itself may contain substitution macros.
27595  The advantage over using 
27596 \begin_inset Flex Code
27597 status collapsed
27598
27599 \begin_layout Plain Layout
27600 <value>
27601 \end_layout
27602
27603 \end_inset
27604
27605  directly in 
27606 \begin_inset Flex Code
27607 status collapsed
27608
27609 \begin_layout Plain Layout
27610 Product
27611 \end_layout
27612
27613 \end_inset
27614
27615  is that the substituted value of 
27616 \begin_inset Flex Code
27617 status collapsed
27618
27619 \begin_layout Plain Layout
27620 $$<name>
27621 \end_layout
27622
27623 \end_inset
27624
27625  is sanitized so that it is a valid optional argument in the document format.
27626  This command may occur zero or more times.
27627 \end_layout
27628
27629 \begin_layout Description
27630 \begin_inset Flex Code
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 Product
27635 \begin_inset space ~
27636 \end_inset
27637
27638 <text>
27639 \end_layout
27640
27641 \end_inset
27642
27643  The text that is inserted in the exported document.
27644  This is actually the most important command and can be quite complex.
27645  This command must occur exactly once.
27646 \end_layout
27647
27648 \begin_layout Description
27649 \begin_inset Flex Code
27650 status collapsed
27651
27652 \begin_layout Plain Layout
27653 Preamble
27654 \begin_inset space ~
27655 \end_inset
27656
27657 <name>
27658 \end_layout
27659
27660 \end_inset
27661
27662  This command specifies a preamble snippet that will be included in the
27663  \SpecialChar LaTeX
27664  preamble.
27665  It has to be defined using 
27666 \begin_inset Flex Code
27667 status collapsed
27668
27669 \begin_layout Plain Layout
27670 PreambleDef
27671 \end_layout
27672
27673 \end_inset
27674
27675  \SpecialChar ldots
27676  
27677 \begin_inset Flex Code
27678 status collapsed
27679
27680 \begin_layout Plain Layout
27681 PreambleDefEnd
27682 \end_layout
27683
27684 \end_inset
27685
27686 .
27687  This command may occur zero or more times.
27688 \end_layout
27689
27690 \begin_layout Description
27691 \begin_inset Flex Code
27692 status collapsed
27693
27694 \begin_layout Plain Layout
27695 ReferencedFile
27696 \begin_inset space ~
27697 \end_inset
27698
27699 <format>
27700 \begin_inset space ~
27701 \end_inset
27702
27703 <filename>
27704 \end_layout
27705
27706 \end_inset
27707
27708  This command denotes files that are created by the conversion process and
27709  are needed for a particular export format.
27710  If the filename is relative, it is interpreted relative to the master document.
27711  This command may be given zero or more times.
27712 \end_layout
27713
27714 \begin_layout Description
27715 \begin_inset Flex Code
27716 status collapsed
27717
27718 \begin_layout Plain Layout
27719 Requirement
27720 \begin_inset space ~
27721 \end_inset
27722
27723 <package>
27724 \end_layout
27725
27726 \end_inset
27727
27728  The name of a required \SpecialChar LaTeX
27729  package.
27730  The package is included via 
27731 \begin_inset Flex Code
27732 status collapsed
27733
27734 \begin_layout Plain Layout
27735
27736 \backslash
27737 usepackage{}
27738 \end_layout
27739
27740 \end_inset
27741
27742  in the \SpecialChar LaTeX
27743  preamble.
27744  This command may occur zero or more times.
27745 \end_layout
27746
27747 \begin_layout Description
27748 \begin_inset Flex Code
27749 status collapsed
27750
27751 \begin_layout Plain Layout
27752 TransformCommand
27753 \begin_inset space ~
27754 \end_inset
27755
27756 Rotate
27757 \begin_inset space ~
27758 \end_inset
27759
27760 RotationLatexCommand
27761 \end_layout
27762
27763 \end_inset
27764
27765  This command specifies that the built in \SpecialChar LaTeX
27766  command should be used for rotation.
27767  This command may occur once or not at all.
27768 \end_layout
27769
27770 \begin_layout Description
27771 \begin_inset Flex Code
27772 status collapsed
27773
27774 \begin_layout Plain Layout
27775 TransformCommand
27776 \begin_inset space ~
27777 \end_inset
27778
27779 Resize
27780 \begin_inset space ~
27781 \end_inset
27782
27783 ResizeLatexCommand
27784 \end_layout
27785
27786 \end_inset
27787
27788  This command specifies that the built in \SpecialChar LaTeX
27789  command should be used for resizing.
27790  This command may occur once or not at all.
27791 \end_layout
27792
27793 \begin_layout Description
27794 \begin_inset Flex Code
27795 status collapsed
27796
27797 \begin_layout Plain Layout
27798 TransformOption
27799 \begin_inset space ~
27800 \end_inset
27801
27802 Rotate
27803 \begin_inset space ~
27804 \end_inset
27805
27806 RotationLatexOption
27807 \end_layout
27808
27809 \end_inset
27810
27811  This command specifies that rotation is done via an optional argument.
27812  This command may occur once or not at all.
27813 \end_layout
27814
27815 \begin_layout Description
27816 \begin_inset Flex Code
27817 status collapsed
27818
27819 \begin_layout Plain Layout
27820 TransformOption
27821 \begin_inset space ~
27822 \end_inset
27823
27824 Resize
27825 \begin_inset space ~
27826 \end_inset
27827
27828 ResizeLatexOption
27829 \end_layout
27830
27831 \end_inset
27832
27833  This command specifies that resizing is done via an optional argument.
27834  This command may occur once or not at all.
27835 \end_layout
27836
27837 \begin_layout Description
27838 \begin_inset Flex Code
27839 status collapsed
27840
27841 \begin_layout Plain Layout
27842 TransformOption
27843 \begin_inset space ~
27844 \end_inset
27845
27846 Clip
27847 \begin_inset space ~
27848 \end_inset
27849
27850 ClipLatexOption
27851 \end_layout
27852
27853 \end_inset
27854
27855  This command specifies that clipping is done via an optional argument.
27856  This command may occur once or not at all.
27857 \end_layout
27858
27859 \begin_layout Description
27860 \begin_inset Flex Code
27861 status collapsed
27862
27863 \begin_layout Plain Layout
27864 TransformOption
27865 \begin_inset space ~
27866 \end_inset
27867
27868 Extra
27869 \begin_inset space ~
27870 \end_inset
27871
27872 ExtraLatexOption
27873 \end_layout
27874
27875 \end_inset
27876
27877  This command specifies that an extra optional argument is used.
27878  This command may occur once or not at all.
27879 \end_layout
27880
27881 \begin_layout Description
27882 \begin_inset Flex Code
27883 status collapsed
27884
27885 \begin_layout Plain Layout
27886 UpdateFormat
27887 \begin_inset space ~
27888 \end_inset
27889
27890 <format>
27891 \end_layout
27892
27893 \end_inset
27894
27895  The file format of the converted file.
27896  This must be the name of a format that is known to \SpecialChar LyX
27897  (see the 
27898 \begin_inset Flex Noun
27899 status collapsed
27900
27901 \begin_layout Plain Layout
27902 Tools\SpecialChar menuseparator
27903 Preferences\SpecialChar menuseparator
27904 File Handling\SpecialChar menuseparator
27905 File Format
27906 \end_layout
27907
27908 \end_inset
27909
27910  dialog).
27911  This command must occur exactly once.
27912  If the resulting file format is PDF, you need to specify the format 
27913 \begin_inset Flex Code
27914 status collapsed
27915
27916 \begin_layout Plain Layout
27917 pdf6
27918 \end_layout
27919
27920 \end_inset
27921
27922 .
27923  This is the PDF format used for including graphics.
27924  The other defined PDF formats are for document export.
27925 \end_layout
27926
27927 \begin_layout Description
27928 \begin_inset Flex Code
27929 status collapsed
27930
27931 \begin_layout Plain Layout
27932 UpdateResult
27933 \begin_inset space ~
27934 \end_inset
27935
27936 <filename>
27937 \end_layout
27938
27939 \end_inset
27940
27941  The file name of the converted file.
27942  The file name must be absolute.
27943  This command must occur exactly once.
27944 \end_layout
27945
27946 \begin_layout Subsection
27947 Preamble definitions
27948 \end_layout
27949
27950 \begin_layout Standard
27951 The external template configuration file may contain additional preamble
27952  definitions enclosed by 
27953 \begin_inset Flex Code
27954 status collapsed
27955
27956 \begin_layout Plain Layout
27957 PreambleDef
27958 \end_layout
27959
27960 \end_inset
27961
27962  \SpecialChar ldots
27963  
27964 \begin_inset Flex Code
27965 status collapsed
27966
27967 \begin_layout Plain Layout
27968 PreambleDefEnd
27969 \end_layout
27970
27971 \end_inset
27972
27973 .
27974  They can be used by the templates in the 
27975 \begin_inset Flex Code
27976 status collapsed
27977
27978 \begin_layout Plain Layout
27979 Format
27980 \end_layout
27981
27982 \end_inset
27983
27984  section.
27985 \end_layout
27986
27987 \begin_layout Section
27988 The substitution mechanism
27989 \end_layout
27990
27991 \begin_layout Standard
27992 When the external material facility invokes an external program, it is done
27993  on the basis of a command defined in the template configuration file.
27994  These commands can contain various macros that are expanded before execution.
27995  Execution always take place in the directory of the containing document.
27996 \end_layout
27997
27998 \begin_layout Standard
27999 Also, whenever external material is to be displayed, the name will be produced
28000  by the substitution mechanism, and most other commands in the template
28001  definition support substitution as well.
28002 \end_layout
28003
28004 \begin_layout Standard
28005 The available macros are the following:
28006 \end_layout
28007
28008 \begin_layout Description
28009 \begin_inset Flex Code
28010 status collapsed
28011
28012 \begin_layout Plain Layout
28013 $$AbsOrRelPathMaster
28014 \end_layout
28015
28016 \end_inset
28017
28018  The file path, absolute or relative to the master \SpecialChar LyX
28019  document.
28020 \end_layout
28021
28022 \begin_layout Description
28023 \begin_inset Flex Code
28024 status collapsed
28025
28026 \begin_layout Plain Layout
28027 $$AbsOrRelPathParent
28028 \end_layout
28029
28030 \end_inset
28031
28032  The file path, absolute or relative to the \SpecialChar LyX
28033  document.
28034 \end_layout
28035
28036 \begin_layout Description
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 $$AbsPath
28042 \end_layout
28043
28044 \end_inset
28045
28046  The absolute file path.
28047 \end_layout
28048
28049 \begin_layout Description
28050 \begin_inset Flex Code
28051 status collapsed
28052
28053 \begin_layout Plain Layout
28054 $$Basename
28055 \end_layout
28056
28057 \end_inset
28058
28059  The filename without path and without the extension.
28060 \end_layout
28061
28062 \begin_layout Description
28063 \begin_inset Flex Code
28064 status collapsed
28065
28066 \begin_layout Plain Layout
28067 $$Contents(
28068 \begin_inset Quotes eld
28069 \end_inset
28070
28071 filename.ext
28072 \begin_inset Quotes erd
28073 \end_inset
28074
28075 )
28076 \end_layout
28077
28078 \end_inset
28079
28080  This macro will expand to the contents of the file with the name 
28081 \begin_inset Flex Code
28082 status collapsed
28083
28084 \begin_layout Plain Layout
28085 filename.ext
28086 \end_layout
28087
28088 \end_inset
28089
28090 .
28091 \end_layout
28092
28093 \begin_layout Description
28094 \begin_inset Flex Code
28095 status collapsed
28096
28097 \begin_layout Plain Layout
28098 $$Extension
28099 \end_layout
28100
28101 \end_inset
28102
28103  The file extension (including the dot).
28104 \end_layout
28105
28106 \begin_layout Description
28107 \begin_inset Flex Code
28108 status collapsed
28109
28110 \begin_layout Plain Layout
28111 $$pngOrjpg
28112 \end_layout
28113
28114 \end_inset
28115
28116  This will be the string 
28117 \begin_inset Quotes eld
28118 \end_inset
28119
28120 jpg
28121 \begin_inset Quotes erd
28122 \end_inset
28123
28124  if the file is in JPEG format, otherwise it will be the string 
28125 \begin_inset Quotes eld
28126 \end_inset
28127
28128 png
28129 \begin_inset Quotes erd
28130 \end_inset
28131
28132 .
28133  This is useful to avoid uneeded conversions for output formats that support
28134  both PNG and JPEG fomats.
28135  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
28136  output
28137  format.
28138 \end_layout
28139
28140 \begin_layout Description
28141 \begin_inset Flex Code
28142 status collapsed
28143
28144 \begin_layout Plain Layout
28145 $$FName
28146 \end_layout
28147
28148 \end_inset
28149
28150  The filename of the file specified in the external material dialog.
28151  This is either an absolute name, or it is relative to the \SpecialChar LyX
28152  document.
28153 \end_layout
28154
28155 \begin_layout Description
28156 \begin_inset Flex Code
28157 status collapsed
28158
28159 \begin_layout Plain Layout
28160 $$FPath
28161 \end_layout
28162
28163 \end_inset
28164
28165  The path part of 
28166 \begin_inset Flex Code
28167 status collapsed
28168
28169 \begin_layout Plain Layout
28170 $$FName
28171 \end_layout
28172
28173 \end_inset
28174
28175  (absolute name or relative to the \SpecialChar LyX
28176  document).
28177 \end_layout
28178
28179 \begin_layout Description
28180 \begin_inset Flex Code
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184 $$RelPathMaster
28185 \end_layout
28186
28187 \end_inset
28188
28189  The file path, relative to the master \SpecialChar LyX
28190  document.
28191 \end_layout
28192
28193 \begin_layout Description
28194 \begin_inset Flex Code
28195 status collapsed
28196
28197 \begin_layout Plain Layout
28198 $$RelPathParent
28199 \end_layout
28200
28201 \end_inset
28202
28203  The file path, relative to the \SpecialChar LyX
28204  document.
28205 \end_layout
28206
28207 \begin_layout Description
28208 \begin_inset Flex Code
28209 status collapsed
28210
28211 \begin_layout Plain Layout
28212 $$Sysdir
28213 \end_layout
28214
28215 \end_inset
28216
28217  This macro will expand to the absolute path of the system directory.
28218  This is typically used to point to the various helper scripts that are
28219  bundled with \SpecialChar LyX
28220 .
28221 \end_layout
28222
28223 \begin_layout Description
28224 \begin_inset Flex Code
28225 status collapsed
28226
28227 \begin_layout Plain Layout
28228 $$Tempname
28229 \end_layout
28230
28231 \end_inset
28232
28233  A name and full path to a temporary file which will be automatically deleted
28234  whenever the containing document is closed, or the external material insertion
28235  deleted.
28236 \end_layout
28237
28238 \begin_layout Standard
28239 All path macros contain a trailing directory separator, so you can construct
28240  e.
28241 \begin_inset space \thinspace{}
28242 \end_inset
28243
28244 g.
28245 \begin_inset space \space{}
28246 \end_inset
28247
28248 the absolute filename with 
28249 \begin_inset Flex Code
28250 status collapsed
28251
28252 \begin_layout Plain Layout
28253 $$AbsPath$$Basename$$Extension
28254 \end_layout
28255
28256 \end_inset
28257
28258 .
28259 \end_layout
28260
28261 \begin_layout Standard
28262 The macros above are substituted in all commands unless otherwise noted.
28263  The command 
28264 \begin_inset Flex Code
28265 status collapsed
28266
28267 \begin_layout Plain Layout
28268 Product
28269 \end_layout
28270
28271 \end_inset
28272
28273  supports additionally the following substitutions if they are enabled by
28274  the 
28275 \begin_inset Flex Code
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279 Transform
28280 \end_layout
28281
28282 \end_inset
28283
28284  and 
28285 \begin_inset Flex Code
28286 status collapsed
28287
28288 \begin_layout Plain Layout
28289 TransformCommand
28290 \end_layout
28291
28292 \end_inset
28293
28294  commands:
28295 \end_layout
28296
28297 \begin_layout Description
28298 \begin_inset Flex Code
28299 status collapsed
28300
28301 \begin_layout Plain Layout
28302 $$ResizeFront
28303 \end_layout
28304
28305 \end_inset
28306
28307  The front part of the resize command.
28308 \end_layout
28309
28310 \begin_layout Description
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 $$ResizeBack
28316 \end_layout
28317
28318 \end_inset
28319
28320  The back part of the resize command.
28321 \end_layout
28322
28323 \begin_layout Description
28324 \begin_inset Flex Code
28325 status collapsed
28326
28327 \begin_layout Plain Layout
28328 $$RotateFront
28329 \end_layout
28330
28331 \end_inset
28332
28333  The front part of the rotation command.
28334 \end_layout
28335
28336 \begin_layout Description
28337 \begin_inset Flex Code
28338 status collapsed
28339
28340 \begin_layout Plain Layout
28341 $$RotateBack
28342 \end_layout
28343
28344 \end_inset
28345
28346  The back part of the rotation command.
28347 \end_layout
28348
28349 \begin_layout Standard
28350 The value string of the 
28351 \begin_inset Flex Code
28352 status collapsed
28353
28354 \begin_layout Plain Layout
28355 Option
28356 \end_layout
28357
28358 \end_inset
28359
28360  command supports additionally the following substitutions if they are enabled
28361  by the 
28362 \begin_inset Flex Code
28363 status collapsed
28364
28365 \begin_layout Plain Layout
28366 Transform
28367 \end_layout
28368
28369 \end_inset
28370
28371  and 
28372 \begin_inset Flex Code
28373 status collapsed
28374
28375 \begin_layout Plain Layout
28376 TransformOption
28377 \end_layout
28378
28379 \end_inset
28380
28381  commands:
28382 \end_layout
28383
28384 \begin_layout Description
28385 \begin_inset Flex Code
28386 status collapsed
28387
28388 \begin_layout Plain Layout
28389 $$Clip
28390 \end_layout
28391
28392 \end_inset
28393
28394  The clip option.
28395 \end_layout
28396
28397 \begin_layout Description
28398 \begin_inset Flex Code
28399 status collapsed
28400
28401 \begin_layout Plain Layout
28402 $$Extra
28403 \end_layout
28404
28405 \end_inset
28406
28407  The extra option.
28408 \end_layout
28409
28410 \begin_layout Description
28411 \begin_inset Flex Code
28412 status collapsed
28413
28414 \begin_layout Plain Layout
28415 $$Resize
28416 \end_layout
28417
28418 \end_inset
28419
28420  The resize option.
28421 \end_layout
28422
28423 \begin_layout Description
28424 \begin_inset Flex Code
28425 status collapsed
28426
28427 \begin_layout Plain Layout
28428 $$Rotate
28429 \end_layout
28430
28431 \end_inset
28432
28433  The rotation option.
28434 \end_layout
28435
28436 \begin_layout Standard
28437 You may ask why there are so many path macros.
28438  There are mainly two reasons:
28439 \end_layout
28440
28441 \begin_layout Enumerate
28442 Relative and absolute file names should remain relative or absolute, respectivel
28443 y.
28444  Users may have reasons to prefer either form.
28445  Relative names are useful for portable documents that should work on different
28446  machines, for example.
28447  Absolute names may be required by some programs.
28448 \end_layout
28449
28450 \begin_layout Enumerate
28451 \SpecialChar LaTeX
28452  treats relative file names differently than \SpecialChar LyX
28453  and other programs in nested
28454  included files.
28455  For \SpecialChar LyX
28456 , a relative file name is always relative to the document that contains
28457  the file name.
28458  For \SpecialChar LaTeX
28459 , it is always relative to the master document.
28460  These two definitions are identical if you have only one document, but
28461  differ if you have a master document that includes part documents.
28462  That means that relative filenames must be transformed when presented to
28463  \SpecialChar LaTeX
28464 .
28465  Fortunately \SpecialChar LyX
28466  does this automatically for you if you choose the right macros.
28467 \end_layout
28468
28469 \begin_layout Standard
28470 So which path macro should be used in new template definitions? The rule
28471  is not difficult:
28472 \end_layout
28473
28474 \begin_layout Itemize
28475 Use 
28476 \begin_inset Flex Code
28477 status collapsed
28478
28479 \begin_layout Plain Layout
28480 $$AbsPath
28481 \end_layout
28482
28483 \end_inset
28484
28485  if an absolute path is required.
28486 \end_layout
28487
28488 \begin_layout Itemize
28489 Use 
28490 \begin_inset Flex Code
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494 $$AbsOrRelPathMaster
28495 \end_layout
28496
28497 \end_inset
28498
28499  if the substituted string is some kind of \SpecialChar LaTeX
28500  input.
28501 \end_layout
28502
28503 \begin_layout Itemize
28504 Else use 
28505 \begin_inset Flex Code
28506 status collapsed
28507
28508 \begin_layout Plain Layout
28509 $$AbsOrRelPathParent
28510 \end_layout
28511
28512 \end_inset
28513
28514  in order to preserve the user's choice.
28515 \end_layout
28516
28517 \begin_layout Standard
28518 There are special cases where this rule does not work and e.
28519 \begin_inset space \thinspace{}
28520 \end_inset
28521
28522 g.
28523 \begin_inset space \space{}
28524 \end_inset
28525
28526 relative names are needed, but normally it will work just fine.
28527  One example for such a case is the command 
28528 \begin_inset Flex Code
28529 status collapsed
28530
28531 \begin_layout Plain Layout
28532 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28533 \end_layout
28534
28535 \end_inset
28536
28537  in the XFig template above: We can't use the absolute name because the
28538  copier for 
28539 \begin_inset Flex Code
28540 status collapsed
28541
28542 \begin_layout Plain Layout
28543 .pstex_t
28544 \end_layout
28545
28546 \end_inset
28547
28548  files needs the relative name in order to rewrite the file content.
28549 \end_layout
28550
28551 \begin_layout Section
28552 Security discussion
28553 \begin_inset CommandInset label
28554 LatexCommand label
28555 name "sec:Security-discussion"
28556
28557 \end_inset
28558
28559
28560 \end_layout
28561
28562 \begin_layout Standard
28563 The external material feature interfaces with a lot of external programs
28564  and does so automatically, so we have to consider the security implications
28565  of this.
28566  In particular, since you have the option of including your own filenames
28567  and/or parameter strings and those are expanded into a command, it seems
28568  that it would be possible to create a malicious document which executes
28569  arbitrary commands when a user views or prints the document.
28570  This is something we definitely want to avoid.
28571 \end_layout
28572
28573 \begin_layout Standard
28574 However, since the external program commands are specified in the template
28575  configuration file only, there are no security issues if \SpecialChar LyX
28576  is properly configure
28577 d with safe templates only.
28578  This is so because the external programs are invoked with the 
28579 \begin_inset Flex Code
28580 status collapsed
28581
28582 \begin_layout Plain Layout
28583 execvp
28584 \end_layout
28585
28586 \end_inset
28587
28588 -system call rather than the 
28589 \begin_inset Flex Code
28590 status collapsed
28591
28592 \begin_layout Plain Layout
28593 system
28594 \end_layout
28595
28596 \end_inset
28597
28598  system-call, so it's not possible to execute arbitrary commands from the
28599  filename or parameter section via the shell.
28600 \end_layout
28601
28602 \begin_layout Standard
28603 This also implies that you are restricted in what command strings you can
28604  use in the external material templates.
28605  In particular, pipes and redirection are not readily available.
28606  This has to be so if \SpecialChar LyX
28607  should remain safe.
28608  If you want to use some of the shell features, you should write a safe
28609  script to do this in a controlled manner, and then invoke the script from
28610  the command string.
28611  
28612 \end_layout
28613
28614 \begin_layout Standard
28615 It is possible to design a template that interacts directly with the shell,
28616  but since this would allow a malicious user to execute arbitrary commands
28617  by writing clever filenames and/or parameters, we generally recommend that
28618  you only use safe scripts that work with the 
28619 \begin_inset Flex Code
28620 status collapsed
28621
28622 \begin_layout Plain Layout
28623 execvp
28624 \end_layout
28625
28626 \end_inset
28627
28628  system call in a controlled manner.
28629  Of course, for use in a controlled environment, it can be tempting to just
28630  fall back to use ordinary shell scripts.
28631  If you do so, be aware that you 
28632 \emph on
28633 will
28634 \emph default
28635  provide an easily exploitable security hole in your system.
28636  Of course it stands to reason that such unsafe templates will never be
28637  included in the standard \SpecialChar LyX
28638  distribution, although we do encourage people
28639  to submit new templates in the open source tradition.
28640  But \SpecialChar LyX
28641  as shipped from the official distribution channels will never have
28642  unsafe templates.
28643 \end_layout
28644
28645 \begin_layout Standard
28646 Including external material provides a lot of power, and you have to be
28647  careful not to introduce security hazards with this power.
28648  A subtle error in a single line in an innocent looking script can open
28649  the door to huge security problems.
28650  So if you do not fully understand the issues, we recommend that you consult
28651  a knowledgeable security professional or the \SpecialChar LyX
28652  development team if you have
28653  any questions about whether a given template is safe or not.
28654  And do this before you use it in an uncontrolled environment.
28655 \end_layout
28656
28657 \begin_layout Chapter
28658 \start_of_appendix
28659 List of supported \SpecialChar LyX
28660  functions to be used in layouts
28661 \begin_inset CommandInset label
28662 LatexCommand label
28663 name "chap:List-of-functions"
28664
28665 \end_inset
28666
28667
28668 \end_layout
28669
28670 \begin_layout Standard
28671 \align center
28672 \begin_inset Tabular
28673 <lyxtabular version="3" rows="11" columns="8">
28674 <features tabularvalignment="middle">
28675 <column alignment="left" valignment="top">
28676 <column alignment="left" valignment="top">
28677 <column alignment="left" valignment="top">
28678 <column alignment="left" valignment="top">
28679 <column alignment="left" valignment="top">
28680 <column alignment="left" valignment="top">
28681 <column alignment="left" valignment="top">
28682 <column alignment="left" valignment="top">
28683 <row>
28684 <cell alignment="left" valignment="top" usebox="none">
28685 \begin_inset Text
28686
28687 \begin_layout Plain Layout
28688 accents
28689 \end_layout
28690
28691 \end_inset
28692 </cell>
28693 <cell alignment="left" valignment="top" usebox="none">
28694 \begin_inset Text
28695
28696 \begin_layout Plain Layout
28697 booktabs
28698 \end_layout
28699
28700 \end_inset
28701 </cell>
28702 <cell alignment="left" valignment="top" usebox="none">
28703 \begin_inset Text
28704
28705 \begin_layout Plain Layout
28706 feyn
28707 \end_layout
28708
28709 \end_inset
28710 </cell>
28711 <cell alignment="left" valignment="top" usebox="none">
28712 \begin_inset Text
28713
28714 \begin_layout Plain Layout
28715 listings
28716 \end_layout
28717
28718 \end_inset
28719 </cell>
28720 <cell alignment="center" valignment="top" usebox="none">
28721 \begin_inset Text
28722
28723 \begin_layout Plain Layout
28724 natbib
28725 \end_layout
28726
28727 \end_inset
28728 </cell>
28729 <cell alignment="center" valignment="top" usebox="none">
28730 \begin_inset Text
28731
28732 \begin_layout Plain Layout
28733 rotfloat
28734 \end_layout
28735
28736 \end_inset
28737 </cell>
28738 <cell alignment="center" valignment="top" usebox="none">
28739 \begin_inset Text
28740
28741 \begin_layout Plain Layout
28742 tfrupee
28743 \end_layout
28744
28745 \end_inset
28746 </cell>
28747 <cell alignment="center" valignment="top" usebox="none">
28748 \begin_inset Text
28749
28750 \begin_layout Plain Layout
28751 wasysym
28752 \end_layout
28753
28754 \end_inset
28755 </cell>
28756 </row>
28757 <row>
28758 <cell alignment="left" valignment="top" usebox="none">
28759 \begin_inset Text
28760
28761 \begin_layout Plain Layout
28762 amsbsy
28763 \end_layout
28764
28765 \end_inset
28766 </cell>
28767 <cell alignment="left" valignment="top" usebox="none">
28768 \begin_inset Text
28769
28770 \begin_layout Plain Layout
28771 calc
28772 \end_layout
28773
28774 \end_inset
28775 </cell>
28776 <cell alignment="left" valignment="top" usebox="none">
28777 \begin_inset Text
28778
28779 \begin_layout Plain Layout
28780 fixltx2e
28781 \end_layout
28782
28783 \end_inset
28784 </cell>
28785 <cell alignment="left" valignment="top" usebox="none">
28786 \begin_inset Text
28787
28788 \begin_layout Plain Layout
28789 longtable
28790 \end_layout
28791
28792 \end_inset
28793 </cell>
28794 <cell alignment="center" valignment="top" usebox="none">
28795 \begin_inset Text
28796
28797 \begin_layout Plain Layout
28798 nomencl
28799 \end_layout
28800
28801 \end_inset
28802 </cell>
28803 <cell alignment="center" valignment="top" usebox="none">
28804 \begin_inset Text
28805
28806 \begin_layout Plain Layout
28807 rsphrase
28808 \end_layout
28809
28810 \end_inset
28811 </cell>
28812 <cell alignment="center" valignment="top" usebox="none">
28813 \begin_inset Text
28814
28815 \begin_layout Plain Layout
28816 tipa
28817 \end_layout
28818
28819 \end_inset
28820 </cell>
28821 <cell alignment="center" valignment="top" usebox="none">
28822 \begin_inset Text
28823
28824 \begin_layout Plain Layout
28825 wrapfig
28826 \end_layout
28827
28828 \end_inset
28829 </cell>
28830 </row>
28831 <row>
28832 <cell alignment="left" valignment="top" usebox="none">
28833 \begin_inset Text
28834
28835 \begin_layout Plain Layout
28836 amscd
28837 \end_layout
28838
28839 \end_inset
28840 </cell>
28841 <cell alignment="left" valignment="top" usebox="none">
28842 \begin_inset Text
28843
28844 \begin_layout Plain Layout
28845 CJK
28846 \end_layout
28847
28848 \end_inset
28849 </cell>
28850 <cell alignment="left" valignment="top" usebox="none">
28851 \begin_inset Text
28852
28853 \begin_layout Plain Layout
28854 float
28855 \end_layout
28856
28857 \end_inset
28858 </cell>
28859 <cell alignment="left" valignment="top" usebox="none">
28860 \begin_inset Text
28861
28862 \begin_layout Plain Layout
28863 lyxskak
28864 \end_layout
28865
28866 \end_inset
28867 </cell>
28868 <cell alignment="center" valignment="top" usebox="none">
28869 \begin_inset Text
28870
28871 \begin_layout Plain Layout
28872 pdfcolmk
28873 \end_layout
28874
28875 \end_inset
28876 </cell>
28877 <cell alignment="center" valignment="top" usebox="none">
28878 \begin_inset Text
28879
28880 \begin_layout Plain Layout
28881 setspace
28882 \end_layout
28883
28884 \end_inset
28885 </cell>
28886 <cell alignment="center" valignment="top" usebox="none">
28887 \begin_inset Text
28888
28889 \begin_layout Plain Layout
28890 tipx
28891 \end_layout
28892
28893 \end_inset
28894 </cell>
28895 <cell alignment="center" valignment="top" usebox="none">
28896 \begin_inset Text
28897
28898 \begin_layout Plain Layout
28899 xargs
28900 \end_layout
28901
28902 \end_inset
28903 </cell>
28904 </row>
28905 <row>
28906 <cell alignment="left" valignment="top" usebox="none">
28907 \begin_inset Text
28908
28909 \begin_layout Plain Layout
28910 amsmath
28911 \end_layout
28912
28913 \end_inset
28914 </cell>
28915 <cell alignment="left" valignment="top" usebox="none">
28916 \begin_inset Text
28917
28918 \begin_layout Plain Layout
28919 color
28920 \end_layout
28921
28922 \end_inset
28923 </cell>
28924 <cell alignment="left" valignment="top" usebox="none">
28925 \begin_inset Text
28926
28927 \begin_layout Plain Layout
28928 framed
28929 \end_layout
28930
28931 \end_inset
28932 </cell>
28933 <cell alignment="left" valignment="top" usebox="none">
28934 \begin_inset Text
28935
28936 \begin_layout Plain Layout
28937 makeidx
28938 \end_layout
28939
28940 \end_inset
28941 </cell>
28942 <cell alignment="center" valignment="top" usebox="none">
28943 \begin_inset Text
28944
28945 \begin_layout Plain Layout
28946 pdfpages
28947 \end_layout
28948
28949 \end_inset
28950 </cell>
28951 <cell alignment="center" valignment="top" usebox="none">
28952 \begin_inset Text
28953
28954 \begin_layout Plain Layout
28955 shapepar
28956 \end_layout
28957
28958 \end_inset
28959 </cell>
28960 <cell alignment="center" valignment="top" usebox="none">
28961 \begin_inset Text
28962
28963 \begin_layout Plain Layout
28964 tone
28965 \end_layout
28966
28967 \end_inset
28968 </cell>
28969 <cell alignment="center" valignment="top" usebox="none">
28970 \begin_inset Text
28971
28972 \begin_layout Plain Layout
28973 xcolor
28974 \end_layout
28975
28976 \end_inset
28977 </cell>
28978 </row>
28979 <row>
28980 <cell alignment="left" valignment="top" usebox="none">
28981 \begin_inset Text
28982
28983 \begin_layout Plain Layout
28984 amssymb
28985 \end_layout
28986
28987 \end_inset
28988 </cell>
28989 <cell alignment="left" valignment="top" usebox="none">
28990 \begin_inset Text
28991
28992 \begin_layout Plain Layout
28993 covington
28994 \end_layout
28995
28996 \end_inset
28997 </cell>
28998 <cell alignment="left" valignment="top" usebox="none">
28999 \begin_inset Text
29000
29001 \begin_layout Plain Layout
29002 graphicx
29003 \end_layout
29004
29005 \end_inset
29006 </cell>
29007 <cell alignment="left" valignment="top" usebox="none">
29008 \begin_inset Text
29009
29010 \begin_layout Plain Layout
29011 marvosym
29012 \end_layout
29013
29014 \end_inset
29015 </cell>
29016 <cell alignment="center" valignment="top" usebox="none">
29017 \begin_inset Text
29018
29019 \begin_layout Plain Layout
29020 pifont
29021 \end_layout
29022
29023 \end_inset
29024 </cell>
29025 <cell alignment="center" valignment="top" usebox="none">
29026 \begin_inset Text
29027
29028 \begin_layout Plain Layout
29029 slashed
29030 \end_layout
29031
29032 \end_inset
29033 </cell>
29034 <cell alignment="center" valignment="top" usebox="none">
29035 \begin_inset Text
29036
29037 \begin_layout Plain Layout
29038 txfonts
29039 \end_layout
29040
29041 \end_inset
29042 </cell>
29043 <cell alignment="center" valignment="top" usebox="none">
29044 \begin_inset Text
29045
29046 \begin_layout Plain Layout
29047 xy
29048 \end_layout
29049
29050 \end_inset
29051 </cell>
29052 </row>
29053 <row>
29054 <cell alignment="left" valignment="top" usebox="none">
29055 \begin_inset Text
29056
29057 \begin_layout Plain Layout
29058 amstext
29059 \end_layout
29060
29061 \end_inset
29062 </cell>
29063 <cell alignment="left" valignment="top" usebox="none">
29064 \begin_inset Text
29065
29066 \begin_layout Plain Layout
29067 csquotes
29068 \end_layout
29069
29070 \end_inset
29071 </cell>
29072 <cell alignment="left" valignment="top" usebox="none">
29073 \begin_inset Text
29074
29075 \begin_layout Plain Layout
29076 hhline
29077 \end_layout
29078
29079 \end_inset
29080 </cell>
29081 <cell alignment="left" valignment="top" usebox="none">
29082 \begin_inset Text
29083
29084 \begin_layout Plain Layout
29085 mathdesign
29086 \end_layout
29087
29088 \end_inset
29089 </cell>
29090 <cell alignment="center" valignment="top" usebox="none">
29091 \begin_inset Text
29092
29093 \begin_layout Plain Layout
29094 pmboxdraw
29095 \end_layout
29096
29097 \end_inset
29098 </cell>
29099 <cell alignment="center" valignment="top" usebox="none">
29100 \begin_inset Text
29101
29102 \begin_layout Plain Layout
29103 soul
29104 \end_layout
29105
29106 \end_inset
29107 </cell>
29108 <cell alignment="center" valignment="top" usebox="none">
29109 \begin_inset Text
29110
29111 \begin_layout Plain Layout
29112 ulem
29113 \end_layout
29114
29115 \end_inset
29116 </cell>
29117 <cell alignment="center" valignment="top" usebox="none">
29118 \begin_inset Text
29119
29120 \begin_layout Plain Layout
29121 yhmath
29122 \end_layout
29123
29124 \end_inset
29125 </cell>
29126 </row>
29127 <row>
29128 <cell alignment="left" valignment="top" usebox="none">
29129 \begin_inset Text
29130
29131 \begin_layout Plain Layout
29132 amsthm
29133 \end_layout
29134
29135 \end_inset
29136 </cell>
29137 <cell alignment="left" valignment="top" usebox="none">
29138 \begin_inset Text
29139
29140 \begin_layout Plain Layout
29141 dvipost
29142 \end_layout
29143
29144 \end_inset
29145 </cell>
29146 <cell alignment="left" valignment="top" usebox="none">
29147 \begin_inset Text
29148
29149 \begin_layout Plain Layout
29150 hyperref
29151 \end_layout
29152
29153 \end_inset
29154 </cell>
29155 <cell alignment="left" valignment="top" usebox="none">
29156 \begin_inset Text
29157
29158 \begin_layout Plain Layout
29159 mathdots
29160 \end_layout
29161
29162 \end_inset
29163 </cell>
29164 <cell alignment="center" valignment="top" usebox="none">
29165 \begin_inset Text
29166
29167 \begin_layout Plain Layout
29168 polyglossia
29169 \end_layout
29170
29171 \end_inset
29172 </cell>
29173 <cell alignment="center" valignment="top" usebox="none">
29174 \begin_inset Text
29175
29176 \begin_layout Plain Layout
29177 splitidx
29178 \end_layout
29179
29180 \end_inset
29181 </cell>
29182 <cell alignment="center" valignment="top" usebox="none">
29183 \begin_inset Text
29184
29185 \begin_layout Plain Layout
29186 undertilde
29187 \end_layout
29188
29189 \end_inset
29190 </cell>
29191 <cell alignment="center" valignment="top" usebox="none">
29192 \begin_inset Text
29193
29194 \begin_layout Plain Layout
29195
29196 \end_layout
29197
29198 \end_inset
29199 </cell>
29200 </row>
29201 <row>
29202 <cell alignment="left" valignment="top" usebox="none">
29203 \begin_inset Text
29204
29205 \begin_layout Plain Layout
29206 array
29207 \end_layout
29208
29209 \end_inset
29210 </cell>
29211 <cell alignment="left" valignment="top" usebox="none">
29212 \begin_inset Text
29213
29214 \begin_layout Plain Layout
29215 endnotes
29216 \end_layout
29217
29218 \end_inset
29219 </cell>
29220 <cell alignment="left" valignment="top" usebox="none">
29221 \begin_inset Text
29222
29223 \begin_layout Plain Layout
29224 ifsym
29225 \end_layout
29226
29227 \end_inset
29228 </cell>
29229 <cell alignment="left" valignment="top" usebox="none">
29230 \begin_inset Text
29231
29232 \begin_layout Plain Layout
29233 mathrsfs
29234 \end_layout
29235
29236 \end_inset
29237 </cell>
29238 <cell alignment="center" valignment="top" usebox="none">
29239 \begin_inset Text
29240
29241 \begin_layout Plain Layout
29242 prettyref
29243 \end_layout
29244
29245 \end_inset
29246 </cell>
29247 <cell alignment="center" valignment="top" usebox="none">
29248 \begin_inset Text
29249
29250 \begin_layout Plain Layout
29251 subfig
29252 \end_layout
29253
29254 \end_inset
29255 </cell>
29256 <cell alignment="center" valignment="top" usebox="none">
29257 \begin_inset Text
29258
29259 \begin_layout Plain Layout
29260 units
29261 \end_layout
29262
29263 \end_inset
29264 </cell>
29265 <cell alignment="center" valignment="top" usebox="none">
29266 \begin_inset Text
29267
29268 \begin_layout Plain Layout
29269
29270 \end_layout
29271
29272 \end_inset
29273 </cell>
29274 </row>
29275 <row>
29276 <cell alignment="left" valignment="top" usebox="none">
29277 \begin_inset Text
29278
29279 \begin_layout Plain Layout
29280 ascii
29281 \end_layout
29282
29283 \end_inset
29284 </cell>
29285 <cell alignment="left" valignment="top" usebox="none">
29286 \begin_inset Text
29287
29288 \begin_layout Plain Layout
29289 enumitem
29290 \end_layout
29291
29292 \end_inset
29293 </cell>
29294 <cell alignment="left" valignment="top" usebox="none">
29295 \begin_inset Text
29296
29297 \begin_layout Plain Layout
29298 ifthen
29299 \end_layout
29300
29301 \end_inset
29302 </cell>
29303 <cell alignment="left" valignment="top" usebox="none">
29304 \begin_inset Text
29305
29306 \begin_layout Plain Layout
29307 mhchem
29308 \end_layout
29309
29310 \end_inset
29311 </cell>
29312 <cell alignment="center" valignment="top" usebox="none">
29313 \begin_inset Text
29314
29315 \begin_layout Plain Layout
29316 pxfonts
29317 \end_layout
29318
29319 \end_inset
29320 </cell>
29321 <cell alignment="center" valignment="top" usebox="none">
29322 \begin_inset Text
29323
29324 \begin_layout Plain Layout
29325 subscript
29326 \end_layout
29327
29328 \end_inset
29329 </cell>
29330 <cell alignment="center" valignment="top" usebox="none">
29331 \begin_inset Text
29332
29333 \begin_layout Plain Layout
29334 url
29335 \end_layout
29336
29337 \end_inset
29338 </cell>
29339 <cell alignment="center" valignment="top" usebox="none">
29340 \begin_inset Text
29341
29342 \begin_layout Plain Layout
29343
29344 \end_layout
29345
29346 \end_inset
29347 </cell>
29348 </row>
29349 <row>
29350 <cell alignment="left" valignment="top" usebox="none">
29351 \begin_inset Text
29352
29353 \begin_layout Plain Layout
29354 bbding
29355 \end_layout
29356
29357 \end_inset
29358 </cell>
29359 <cell alignment="left" valignment="top" usebox="none">
29360 \begin_inset Text
29361
29362 \begin_layout Plain Layout
29363 esint
29364 \end_layout
29365
29366 \end_inset
29367 </cell>
29368 <cell alignment="left" valignment="top" usebox="none">
29369 \begin_inset Text
29370
29371 \begin_layout Plain Layout
29372 jurabib
29373 \end_layout
29374
29375 \end_inset
29376 </cell>
29377 <cell alignment="left" valignment="top" usebox="none">
29378 \begin_inset Text
29379
29380 \begin_layout Plain Layout
29381 multicol
29382 \end_layout
29383
29384 \end_inset
29385 </cell>
29386 <cell alignment="center" valignment="top" usebox="none">
29387 \begin_inset Text
29388
29389 \begin_layout Plain Layout
29390 refstyle
29391 \end_layout
29392
29393 \end_inset
29394 </cell>
29395 <cell alignment="center" valignment="top" usebox="none">
29396 \begin_inset Text
29397
29398 \begin_layout Plain Layout
29399 textcomp
29400 \end_layout
29401
29402 \end_inset
29403 </cell>
29404 <cell alignment="center" valignment="top" usebox="none">
29405 \begin_inset Text
29406
29407 \begin_layout Plain Layout
29408 varioref
29409 \end_layout
29410
29411 \end_inset
29412 </cell>
29413 <cell alignment="center" valignment="top" usebox="none">
29414 \begin_inset Text
29415
29416 \begin_layout Plain Layout
29417
29418 \end_layout
29419
29420 \end_inset
29421 </cell>
29422 </row>
29423 <row>
29424 <cell alignment="center" valignment="top" usebox="none">
29425 \begin_inset Text
29426
29427 \begin_layout Plain Layout
29428 bm
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 fancybox
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 latexsym
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 multirow
29456 \end_layout
29457
29458 \end_inset
29459 </cell>
29460 <cell alignment="center" valignment="top" usebox="none">
29461 \begin_inset Text
29462
29463 \begin_layout Plain Layout
29464 rotating
29465 \end_layout
29466
29467 \end_inset
29468 </cell>
29469 <cell alignment="center" valignment="top" usebox="none">
29470 \begin_inset Text
29471
29472 \begin_layout Plain Layout
29473 textgreek
29474 \end_layout
29475
29476 \end_inset
29477 </cell>
29478 <cell alignment="center" valignment="top" usebox="none">
29479 \begin_inset Text
29480
29481 \begin_layout Plain Layout
29482 verbatim
29483 \end_layout
29484
29485 \end_inset
29486 </cell>
29487 <cell alignment="center" valignment="top" usebox="none">
29488 \begin_inset Text
29489
29490 \begin_layout Plain Layout
29491
29492 \end_layout
29493
29494 \end_inset
29495 </cell>
29496 </row>
29497 </lyxtabular>
29498
29499 \end_inset
29500
29501
29502 \end_layout
29503
29504 \begin_layout Chapter
29505 Names of available colors to be used in layouts
29506 \begin_inset CommandInset label
29507 LatexCommand label
29508 name "chap:Names-of-colors"
29509
29510 \end_inset
29511
29512
29513 \end_layout
29514
29515 \begin_layout Standard
29516 The colors listed below are the standard colors and those that you can adjust
29517  in the \SpecialChar LyX
29518  preferences.
29519 \end_layout
29520
29521 \begin_layout Section
29522 Color functions
29523 \end_layout
29524
29525 \begin_layout Standard
29526 The following are no real colors, but rather act on color definitions:
29527 \end_layout
29528
29529 \begin_layout Description
29530 ignore The color is ignored
29531 \end_layout
29532
29533 \begin_layout Description
29534 inherit The color is inherited
29535 \end_layout
29536
29537 \begin_layout Description
29538 none
29539 \family roman
29540 \series medium
29541 \shape up
29542 \size normal
29543 \emph off
29544 \bar no
29545 \strikeout off
29546 \uuline off
29547 \uwave off
29548 \noun off
29549 \color none
29550  No particular color – clear or default
29551 \end_layout
29552
29553 \begin_layout Section
29554 Static colors
29555 \end_layout
29556
29557 \begin_layout Standard
29558 These are fixed colors that cannot be customized:
29559 \end_layout
29560
29561 \begin_layout Description
29562 black
29563 \end_layout
29564
29565 \begin_layout Description
29566 white
29567 \end_layout
29568
29569 \begin_layout Description
29570 blue
29571 \end_layout
29572
29573 \begin_layout Description
29574 brown
29575 \end_layout
29576
29577 \begin_layout Description
29578 cyan
29579 \end_layout
29580
29581 \begin_layout Description
29582 darkgray
29583 \end_layout
29584
29585 \begin_layout Description
29586 gray
29587 \end_layout
29588
29589 \begin_layout Description
29590 green
29591 \end_layout
29592
29593 \begin_layout Description
29594 lightgray
29595 \end_layout
29596
29597 \begin_layout Description
29598 lime
29599 \end_layout
29600
29601 \begin_layout Description
29602 magenta
29603 \end_layout
29604
29605 \begin_layout Description
29606 olive
29607 \end_layout
29608
29609 \begin_layout Description
29610 orange
29611 \end_layout
29612
29613 \begin_layout Description
29614 pink
29615 \end_layout
29616
29617 \begin_layout Description
29618 purple
29619 \end_layout
29620
29621 \begin_layout Description
29622 red
29623 \end_layout
29624
29625 \begin_layout Description
29626 teal
29627 \end_layout
29628
29629 \begin_layout Description
29630 violet
29631 \end_layout
29632
29633 \begin_layout Description
29634 yellow
29635 \end_layout
29636
29637 \begin_layout Section
29638 Dynamic colors
29639 \end_layout
29640
29641 \begin_layout Standard
29642 These are the colors allocated to specific elements in 
29643 \begin_inset Info
29644 type  "menu"
29645 arg   "dialog-show prefs"
29646 \end_inset
29647
29648 :
29649 \end_layout
29650
29651 \begin_layout Description
29652 added_space Added space color
29653 \end_layout
29654
29655 \begin_layout Description
29656 addedtext Added text color
29657 \end_layout
29658
29659 \begin_layout Description
29660 appendix Appendix marker color
29661 \end_layout
29662
29663 \begin_layout Description
29664 background Background color
29665 \end_layout
29666
29667 \begin_layout Description
29668 bottomarea Bottom area color
29669 \end_layout
29670
29671 \begin_layout Description
29672 branchlabel Label color for branches
29673 \end_layout
29674
29675 \begin_layout Description
29676 buttonbg Color used for button background
29677 \end_layout
29678
29679 \begin_layout Description
29680 buttonframe Color for inset button frames
29681 \end_layout
29682
29683 \begin_layout Description
29684 buttonhoverbg Color used for button background under focus
29685 \end_layout
29686
29687 \begin_layout Description
29688 changebar Changebar color
29689 \end_layout
29690
29691 \begin_layout Description
29692 changedtextauthor1 Changed text color author 1
29693 \end_layout
29694
29695 \begin_layout Description
29696 changedtextauthor2 Changed text color author 2
29697 \end_layout
29698
29699 \begin_layout Description
29700 changedtextauthor3 Changed text color author 3
29701 \end_layout
29702
29703 \begin_layout Description
29704 changedtextauthor4 Changed text color author 4
29705 \end_layout
29706
29707 \begin_layout Description
29708 changedtextauthor5 Changed text color author 5
29709 \end_layout
29710
29711 \begin_layout Description
29712 collapsible Collapsible insets text color
29713 \end_layout
29714
29715 \begin_layout Description
29716 collapsibleframe Collapsible insets framecolor
29717 \end_layout
29718
29719 \begin_layout Description
29720 command Text color for command insets
29721 \end_layout
29722
29723 \begin_layout Description
29724 commandbg Background color for command insets
29725 \end_layout
29726
29727 \begin_layout Description
29728 commandframe Frame color for command insets
29729 \end_layout
29730
29731 \begin_layout Description
29732 comment Label color for comments
29733 \end_layout
29734
29735 \begin_layout Description
29736 commentbg Background color of comments
29737 \end_layout
29738
29739 \begin_layout Description
29740 cursor Cursor color
29741 \end_layout
29742
29743 \begin_layout Description
29744 deletedtext Deleted text color
29745 \end_layout
29746
29747 \begin_layout Description
29748 deletedtextmodifier Deleted text modifying color
29749 \end_layout
29750
29751 \begin_layout Description
29752 depthbar Color for the depth bars in the margin
29753 \end_layout
29754
29755 \begin_layout Description
29756 eolmarker End of line marker color
29757 \end_layout
29758
29759 \begin_layout Description
29760 error Color of the \SpecialChar LaTeX
29761  error box
29762 \end_layout
29763
29764 \begin_layout Description
29765 footlabel Label color for footnotes
29766 \end_layout
29767
29768 \begin_layout Description
29769 foreground Foreground color
29770 \end_layout
29771
29772 \begin_layout Description
29773 graphicsbg Graphics inset background color
29774 \end_layout
29775
29776 \begin_layout Description
29777 greyedoutbg Background color of greyedout inset
29778 \end_layout
29779
29780 \begin_layout Description
29781 greyedoutlabel Label color for greyedout insets
29782 \end_layout
29783
29784 \begin_layout Description
29785 greyedouttext Color for greyedout inset text
29786 \end_layout
29787
29788 \begin_layout Description
29789 indexlabel Label color for index insets
29790 \end_layout
29791
29792 \begin_layout Description
29793 inlinecompletion Inline completion color
29794 \end_layout
29795
29796 \begin_layout Description
29797 insetbg Inset marker background color
29798 \end_layout
29799
29800 \begin_layout Description
29801 insetframe Inset marker frame color
29802 \end_layout
29803
29804 \begin_layout Description
29805 language Color for marking foreign language words
29806 \end_layout
29807
29808 \begin_layout Description
29809 latex Text color in \SpecialChar LaTeX
29810  mode
29811 \end_layout
29812
29813 \begin_layout Description
29814 listingsbg Background color of listings inset
29815 \end_layout
29816
29817 \begin_layout Description
29818 marginlabel Label color for margin notes
29819 \end_layout
29820
29821 \begin_layout Description
29822 math Math inset text color
29823 \end_layout
29824
29825 \begin_layout Description
29826 mathbg Math inset background color
29827 \end_layout
29828
29829 \begin_layout Description
29830 mathcorners Math inset frame color not under focus
29831 \end_layout
29832
29833 \begin_layout Description
29834 mathframe Math inset frame color under focus
29835 \end_layout
29836
29837 \begin_layout Description
29838 mathline Math line color
29839 \end_layout
29840
29841 \begin_layout Description
29842 mathmacrobg Macro math inset background color
29843 \end_layout
29844
29845 \begin_layout Description
29846 mathmacroblend Macro math blended color
29847 \end_layout
29848
29849 \begin_layout Description
29850 mathmacroframe Macro math frame color
29851 \end_layout
29852
29853 \begin_layout Description
29854 mathmacrohoverbg Macro math inset background color hovered
29855 \end_layout
29856
29857 \begin_layout Description
29858 mathmacrolabel Macro math label color
29859 \end_layout
29860
29861 \begin_layout Description
29862 mathmacronewarg Macro template color for new parameters
29863 \end_layout
29864
29865 \begin_layout Description
29866 mathmacrooldarg Macro template color for old parameters
29867 \end_layout
29868
29869 \begin_layout Description
29870 newpage New page color
29871 \end_layout
29872
29873 \begin_layout Description
29874 nonunique_inlinecompletion Inline completion color for the non-unique part
29875 \end_layout
29876
29877 \begin_layout Description
29878 note Label color for notes
29879 \end_layout
29880
29881 \begin_layout Description
29882 notebg Background color of notes
29883 \end_layout
29884
29885 \begin_layout Description
29886 pagebreak Page break/line break color
29887 \end_layout
29888
29889 \begin_layout Description
29890 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29891 \end_layout
29892
29893 \begin_layout Description
29894 phantomtext Text color for phantom insets
29895 \end_layout
29896
29897 \begin_layout Description
29898 preview The color used for previews
29899 \end_layout
29900
29901 \begin_layout Description
29902 previewframe Preview frame color
29903 \end_layout
29904
29905 \begin_layout Description
29906 regexpframe Color for regexp frame
29907 \end_layout
29908
29909 \begin_layout Description
29910 scroll Color that indicates when a row can be scrolled 
29911 \end_layout
29912
29913 \begin_layout Description
29914 selection Background color of selected text
29915 \end_layout
29916
29917 \begin_layout Description
29918 selectiontext Foreground color of selected text
29919 \end_layout
29920
29921 \begin_layout Description
29922 shadedbg Background color of shaded box
29923 \end_layout
29924
29925 \begin_layout Description
29926 special Special chars text color
29927 \end_layout
29928
29929 \begin_layout Description
29930 tabularline Table line color
29931 \end_layout
29932
29933 \begin_layout Description
29934 tabularonoffline Table line color
29935 \end_layout
29936
29937 \begin_layout Description
29938 urllabel Label color for URL insets
29939 \end_layout
29940
29941 \begin_layout Description
29942 urltext Color for URL inset text
29943 \end_layout
29944
29945 \end_body
29946 \end_document