]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
50388eb215da65d8e22f1c863d4955e919c33616
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 569
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
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_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tablestyle default
128 \tracking_changes true
129 \output_changes false
130 \html_math_output 0
131 \html_css_as_file 0
132 \html_be_strict true
133 \author -712698321 "Jürgen Spitzmüller"
134 \author -495245474 "Jean-Marc Lasgouttes"
135 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
136 \end_header
137
138 \begin_body
139
140 \begin_layout Title
141 Customizing \SpecialChar LyX
142 : Features for the Advanced User
143 \end_layout
144
145 \begin_layout Author
146 by the \SpecialChar LyX
147  Team
148 \begin_inset Foot
149 status collapsed
150
151 \begin_layout Plain Layout
152 \noindent
153 If you have comments or error corrections, please send them to the \SpecialChar LyX
154  Documentatio
155 n mailing list, 
156 \begin_inset CommandInset href
157 LatexCommand href
158 target "lyx-docs@lists.lyx.org"
159 type "mailto:"
160 literal "false"
161
162 \end_inset
163
164 .
165  Include 
166 \begin_inset Quotes eld
167 \end_inset
168
169 [Customization]
170 \begin_inset Quotes erd
171 \end_inset
172
173  in the subject header, and please cc the current maintainer of this file,
174  Richard Heck <rgheck@comcast.net>.
175 \end_layout
176
177 \end_inset
178
179
180 \begin_inset Newline newline
181 \end_inset
182
183
184 \begin_inset Newline newline
185 \end_inset
186
187 Version 2.3.x 
188 \end_layout
189
190 \begin_layout Standard
191 \begin_inset CommandInset toc
192 LatexCommand tableofcontents
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset Note Note
201 status open
202
203 \begin_layout Plain Layout
204 Please use change tracking when modifying this document.
205  This makes it easier for our translators to recognize things that have
206  been changed, and it helps the maintainer keep up-to-date with what's been
207  done.
208 \end_layout
209
210 \end_inset
211
212
213 \end_layout
214
215 \begin_layout Chapter
216 Introduction
217 \end_layout
218
219 \begin_layout Standard
220 This manual covers the customization features present in \SpecialChar LyX
221 .
222  In it, we discuss issues like keyboard shortcuts, screen previewing options,
223  printer options, sending commands to \SpecialChar LyX
224  via the \SpecialChar LyX
225  Server, internationalization,
226  installing new \SpecialChar LaTeX
227  classes and \SpecialChar LyX
228  layouts, etc.
229  We can't possibly hope to touch on everything you can change—our developers
230  add new features faster than we can document them—but we will explain the
231  most common customizations and hopefully point you in the right direction
232  for some of the more obscure ones.
233 \end_layout
234
235 \begin_layout Standard
236 \begin_inset Branch OutDated
237 inverted 0
238 status collapsed
239
240 \begin_layout Standard
241 Information from previous versions of this document that now seems to be
242  outdated is contained in the OutDated branch of this document.
243  By default, this information will not appear in the \SpecialChar LaTeX
244  output.
245 \end_layout
246
247 \end_inset
248
249
250 \end_layout
251
252 \begin_layout Chapter
253 \SpecialChar LyX
254  configuration files
255 \end_layout
256
257 \begin_layout Standard
258 This chapter aims to help you to find your way through the \SpecialChar LyX
259  configuration
260  files.
261  Before continuing to read this chapter, you should find out where your
262  \SpecialChar LyX
263  library and user directories are by using 
264 \begin_inset Flex Noun
265 status collapsed
266
267 \begin_layout Plain Layout
268 Help\SpecialChar menuseparator
269 About
270 \begin_inset space ~
271 \end_inset
272
273 LyX
274 \end_layout
275
276 \end_inset
277
278 .
279  The library directory is the place where \SpecialChar LyX
280  places its system-wide configuration
281  files; the user directory is where you can place your modified versions.
282  We will call the former 
283 \begin_inset Flex Code
284 status collapsed
285
286 \begin_layout Plain Layout
287 LyXDir
288 \end_layout
289
290 \end_inset
291
292  and the latter 
293 \begin_inset Flex Noun
294 status collapsed
295
296 \begin_layout Plain Layout
297 UserDir
298 \end_layout
299
300 \end_inset
301
302  in the remainder of this document.
303  
304 \end_layout
305
306 \begin_layout Section
307 What's in 
308 \begin_inset Flex Code
309 status collapsed
310
311 \begin_layout Plain Layout
312 LyXDir
313 \end_layout
314
315 \end_inset
316
317 ?
318 \end_layout
319
320 \begin_layout Standard
321 \begin_inset Flex Code
322 status collapsed
323
324 \begin_layout Plain Layout
325 LyXDir
326 \end_layout
327
328 \end_inset
329
330  and its sub-directories contain a number of files and that can be used
331  to customize \SpecialChar LyX
332 's behavior.
333  You can change many of these files from within \SpecialChar LyX
334  itself through the 
335 \begin_inset Flex Noun
336 status collapsed
337
338 \begin_layout Plain Layout
339 Tools\SpecialChar menuseparator
340 Preferences
341 \end_layout
342
343 \end_inset
344
345  dialog.
346  Most customization that you will want to do in \SpecialChar LyX
347  is possible through this
348  dialog.
349  However, many other inner aspects of \SpecialChar LyX
350  can be customized by modifying the
351  files in 
352 \begin_inset Flex Code
353 status collapsed
354
355 \begin_layout Plain Layout
356 LyXDir
357 \end_layout
358
359 \end_inset
360
361 .
362  These files fall in different categories, described in the following subsection
363 s.
364 \end_layout
365
366 \begin_layout Subsection
367 Automatically generated files
368 \end_layout
369
370 \begin_layout Standard
371 The files, which are to be found in 
372 \begin_inset Flex Noun
373 status collapsed
374
375 \begin_layout Plain Layout
376 UserDir
377 \end_layout
378
379 \end_inset
380
381 , are generated when you configure \SpecialChar LyX
382 .
383  They contain various default values that are guessed by inspection.
384  In general, it is not a good idea to modify them, since they might be overwritt
385 en at any time.
386 \end_layout
387
388 \begin_layout Labeling
389 \labelwidthstring 00.00.0000
390 \begin_inset Flex Code
391 status collapsed
392
393 \begin_layout Plain Layout
394 lyxrc.defaults
395 \end_layout
396
397 \end_inset
398
399  contains defaults for various commands.
400 \end_layout
401
402 \begin_layout Labeling
403 \labelwidthstring 00.00.0000
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 packages.lst
409 \end_layout
410
411 \end_inset
412
413  contains the list of packages that have been recognized by \SpecialChar LyX
414 .
415  It is currently unused by the \SpecialChar LyX
416  program itself, but the information extracted,
417  and more, is made available with 
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 Help\SpecialChar menuseparator
423 \SpecialChar LaTeX
424
425 \begin_inset space ~
426 \end_inset
427
428 Configuration
429 \end_layout
430
431 \end_inset
432
433 .
434 \end_layout
435
436 \begin_layout Labeling
437 \labelwidthstring 00.00.0000
438 \begin_inset Flex Code
439 status collapsed
440
441 \begin_layout Plain Layout
442 textclass.lst
443 \end_layout
444
445 \end_inset
446
447  the list of text classes that have been found in your 
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 layout/
453 \end_layout
454
455 \end_inset
456
457  directories, along with the associated \SpecialChar LaTeX
458  document class and their description.
459 \end_layout
460
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 lyxmodules.lst
468 \end_layout
469
470 \end_inset
471
472  the list of layout modules found in your 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 layout/
478 \end_layout
479
480 \end_inset
481
482  directories
483 \end_layout
484
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 *files.lst
492 \end_layout
493
494 \end_inset
495
496  lists of various sorts of \SpecialChar LaTeX
497 -related files found on your system
498 \end_layout
499
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506 doc/\SpecialChar LaTeX
507 Config.lyx
508 \end_layout
509
510 \end_inset
511
512  is automatically generated during configuration from the file 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 \SpecialChar LaTeX
518 Config.lyx.in
519 \end_layout
520
521 \end_inset
522
523 .
524  It contains information on your \SpecialChar LaTeX
525  configuration.
526 \end_layout
527
528 \begin_layout Subsection
529 Directories
530 \end_layout
531
532 \begin_layout Standard
533 These directories are duplicated between 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 LyXDir
539 \end_layout
540
541 \end_inset
542
543  and 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 UserDir
549 \end_layout
550
551 \end_inset
552
553 .
554  If a particular files exists in both places, the one in 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 UserDir
560 \end_layout
561
562 \end_inset
563
564  will be used.
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 bind/
574 \end_layout
575
576 \end_inset
577
578  this directory contains files with the extension 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 .bind
584 \end_layout
585
586 \end_inset
587
588  that define the keybindings used in \SpecialChar LyX
589 .
590  If there exists an internationalized version of the bind file named 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 $LANG_xxx.bind
596 \end_layout
597
598 \end_inset
599
600 , that will be used first.
601 \end_layout
602
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 citeengines/
610 \end_layout
611
612 \end_inset
613
614  contains files with the extension 
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 .citeengine
620 \end_layout
621
622 \end_inset
623
624  which define the diverse citation possibilities (natbib, biblatex etc.).
625  See 
626 \begin_inset CommandInset ref
627 LatexCommand ref
628 reference "subsec:Cite-Engine-Files"
629 plural "false"
630 caps "false"
631 noprefix "false"
632
633 \end_inset
634
635  for details.
636 \end_layout
637
638 \begin_layout Labeling
639 \labelwidthstring 00.00.0000
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 clipart/
645 \end_layout
646
647 \end_inset
648
649  contains graphics files that can be included in documents.
650  
651 \end_layout
652
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 doc/
660 \end_layout
661
662 \end_inset
663
664  contains \SpecialChar LyX
665  documentation files (including the one you are currently reading).
666  The file 
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 \SpecialChar LaTeX
672 Config.lyx
673 \end_layout
674
675 \end_inset
676
677  deserves special attention, as noted above.
678  The internationalized help docs are in subdirectories 
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683 doc/xx
684 \end_layout
685
686 \end_inset
687
688  where 
689 \begin_inset Quotes eld
690 \end_inset
691
692 xx
693 \begin_inset Quotes erd
694 \end_inset
695
696  is the ISO language code.
697  See 
698 \begin_inset CommandInset ref
699 LatexCommand ref
700 reference "cha:Internationalizing-LyX"
701
702 \end_inset
703
704  for details.
705 \end_layout
706
707 \begin_layout Labeling
708 \labelwidthstring 00.00.0000
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713 examples/
714 \end_layout
715
716 \end_inset
717
718  contains example files that explain how to use some features.
719  In the file browser, press the 
720 \begin_inset Flex Noun
721 status collapsed
722
723 \begin_layout Plain Layout
724 Examples
725 \end_layout
726
727 \end_inset
728
729  button to get there.
730 \end_layout
731
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
735 status collapsed
736
737 \begin_layout Plain Layout
738 images/
739 \end_layout
740
741 \end_inset
742
743  contains image files that are used by the 
744 \begin_inset Flex Noun
745 status collapsed
746
747 \begin_layout Plain Layout
748 Document
749 \end_layout
750
751 \end_inset
752
753  dialog.
754  In addition, it also contains the individual icons used in the toolbar
755  and the banners that can be shown when \SpecialChar LyX
756  is launched.
757 \end_layout
758
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 kbd/
766 \end_layout
767
768 \end_inset
769
770  contains keyboard keymapping files.
771  See 
772 \begin_inset CommandInset ref
773 LatexCommand ref
774 reference "sec:International-Keymap-Stuff"
775
776 \end_inset
777
778  for details.
779 \end_layout
780
781 \begin_layout Labeling
782 \labelwidthstring 00.00.0000
783 \begin_inset Flex Code
784 status collapsed
785
786 \begin_layout Plain Layout
787 layouts/
788 \end_layout
789
790 \end_inset
791
792  contains the text class and module files described in 
793 \begin_inset CommandInset ref
794 LatexCommand ref
795 reference "cha:Installing-New-Document"
796
797 \end_inset
798
799 .
800 \end_layout
801
802 \begin_layout Labeling
803 \labelwidthstring 00.00.0000
804 \begin_inset Flex Code
805 status collapsed
806
807 \begin_layout Plain Layout
808 lyx2lyx
809 \end_layout
810
811 \end_inset
812
813  contains the 
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 lyx2lyx
819 \end_layout
820
821 \end_inset
822
823  Python scripts used to convert between \SpecialChar LyX
824  versions.
825  These can be run from the command line if, say, you want to batch-convert
826  files.
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 scripts/
836 \end_layout
837
838 \end_inset
839
840  contains some files that demonstrate the capabilities of the 
841 \begin_inset Flex Noun
842 status collapsed
843
844 \begin_layout Plain Layout
845 External
846 \begin_inset space ~
847 \end_inset
848
849 Template
850 \end_layout
851
852 \end_inset
853
854  feature.
855  Also contains some scripts used by \SpecialChar LyX
856  itself.
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 templates/
866 \end_layout
867
868 \end_inset
869
870  contains the standard \SpecialChar LyX
871  template files described in 
872 \begin_inset CommandInset ref
873 LatexCommand ref
874 reference "subsec:Creating-Templates"
875
876 \end_inset
877
878 .
879 \end_layout
880
881 \begin_layout Labeling
882 \labelwidthstring 00.00.0000
883 \begin_inset Flex Code
884 status collapsed
885
886 \begin_layout Plain Layout
887 ui/
888 \end_layout
889
890 \end_inset
891
892  contains files with the extension 
893 \begin_inset Flex Code
894 status collapsed
895
896 \begin_layout Plain Layout
897 .ui
898 \end_layout
899
900 \end_inset
901
902  that define the user interface to \SpecialChar LyX
903 .
904  That is, the files define which items appear in which menus and the items
905  appearing on the toolbar.
906 \end_layout
907
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
911 status collapsed
912
913 \begin_layout Plain Layout
914 xtemplates/
915 \end_layout
916
917 \end_inset
918
919  contains files with the extension 
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 .xtemplate
925 \end_layout
926
927 \end_inset
928
929  which define the templates for the insertion of external material to a
930  \SpecialChar LyX
931  document; see 
932 \begin_inset CommandInset ref
933 LatexCommand ref
934 reference "chap:Including-External-Material"
935
936 \end_inset
937
938 .
939 \end_layout
940
941 \begin_layout Subsection
942 Files you don't want to modify
943 \end_layout
944
945 \begin_layout Standard
946 These files are used internally by \SpecialChar LyX
947  and you generally do not need to modify
948  them unless you are a developer.
949 \end_layout
950
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 CREDITS
958 \end_layout
959
960 \end_inset
961
962  this file contains the list of \SpecialChar LyX
963  developers.
964  The contents are displayed with the menu entry 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Help\SpecialChar menuseparator
970 About
971 \begin_inset space ~
972 \end_inset
973
974 LyX
975 \end_layout
976
977 \end_inset
978
979 .
980 \end_layout
981
982 \begin_layout Labeling
983 \labelwidthstring 00.00.0000
984 \begin_inset Flex Code
985 status collapsed
986
987 \begin_layout Plain Layout
988 chkconfig.ltx
989 \end_layout
990
991 \end_inset
992
993  this is a \SpecialChar LaTeX
994  script used during the configuration process.
995  Do not run directly.
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 configure.py
1005 \end_layout
1006
1007 \end_inset
1008
1009  this is a Python script that is used to re-configure \SpecialChar LyX
1010 .
1011  It creates configuration files in the directory it was run from.
1012 \end_layout
1013
1014 \begin_layout Subsection
1015 Other files needing a line or two
1016 \end_layout
1017
1018 \begin_layout Labeling
1019 \labelwidthstring 00.00.0000
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 encodings
1025 \end_layout
1026
1027 \end_inset
1028
1029  this contains tables describing how different character encodings can be
1030  mapped to Unicode
1031 \end_layout
1032
1033 \begin_layout Labeling
1034 \labelwidthstring 00.00.0000
1035 \begin_inset Flex Code
1036 status collapsed
1037
1038 \begin_layout Plain Layout
1039 languages
1040 \end_layout
1041
1042 \end_inset
1043
1044  this file contains a list of all the languages currently supported by \SpecialChar LyX
1045 .
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 latexfonts
1055 \end_layout
1056
1057 \end_inset
1058
1059  contains information about the supported fonts.
1060 \end_layout
1061
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 layouttranslations
1069 \end_layout
1070
1071 \end_inset
1072
1073  this file contains translations for internationalized paragraph styles
1074  (see 
1075 \begin_inset CommandInset ref
1076 LatexCommand ref
1077 reference "subsec:I18n"
1078
1079 \end_inset
1080
1081 ).
1082 \end_layout
1083
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 unicodesymbols
1091 \end_layout
1092
1093 \end_inset
1094
1095  this file contains information about Unicode-encoded glyphs and the way
1096  they are supported by \SpecialChar LyX
1097  via \SpecialChar LaTeX
1098 .
1099 \end_layout
1100
1101 \begin_layout Section
1102 Your local configuration directory
1103 \end_layout
1104
1105 \begin_layout Standard
1106 Even if you are using \SpecialChar LyX
1107  as an unprivileged user, you might want to change
1108  \SpecialChar LyX
1109  configuration for your own use.
1110  The 
1111 \begin_inset Flex Code
1112 status collapsed
1113
1114 \begin_layout Plain Layout
1115 UserDir
1116 \end_layout
1117
1118 \end_inset
1119
1120  directory contains all your personal configuration files.
1121  This is the directory described as 
1122 \begin_inset Quotes eld
1123 \end_inset
1124
1125 user directory
1126 \begin_inset Quotes erd
1127 \end_inset
1128
1129  in 
1130 \begin_inset Flex Noun
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 Help\SpecialChar menuseparator
1135 About
1136 \begin_inset space ~
1137 \end_inset
1138
1139 LyX
1140 \end_layout
1141
1142 \end_inset
1143
1144 .
1145  This directory is used as a mirror of 
1146 \begin_inset Flex Code
1147 status collapsed
1148
1149 \begin_layout Plain Layout
1150 LyXDir
1151 \end_layout
1152
1153 \end_inset
1154
1155 , which means that every file in 
1156 \begin_inset Flex Code
1157 status collapsed
1158
1159 \begin_layout Plain Layout
1160 UserDir
1161 \end_layout
1162
1163 \end_inset
1164
1165  is a replacement for the corresponding file in 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170 LyXDir
1171 \end_layout
1172
1173 \end_inset
1174
1175 .
1176  Any configuration file described in the above sections can be placed either
1177  in the system-wide directory, in which case it will affect all users, or
1178  in your local directory for your own use.
1179 \end_layout
1180
1181 \begin_layout Standard
1182 To make things clearer, let's provide a few examples:
1183 \end_layout
1184
1185 \begin_layout Itemize
1186 The preferences set in the 
1187 \begin_inset Flex Noun
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191 Tools\SpecialChar menuseparator
1192 Preferences
1193 \end_layout
1194
1195 \end_inset
1196
1197  dialog are saved to a file 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 preferences
1203 \end_layout
1204
1205 \end_inset
1206
1207  in 
1208 \begin_inset Flex Code
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 UserDir
1213 \end_layout
1214
1215 \end_inset
1216
1217 .
1218 \end_layout
1219
1220 \begin_layout Itemize
1221 When you reconfigure using 
1222 \begin_inset Flex Noun
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 Tools\SpecialChar menuseparator
1227 Reconfigure
1228 \end_layout
1229
1230 \end_inset
1231
1232 , \SpecialChar LyX
1233  runs the 
1234 \begin_inset Flex Code
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238 configure.py
1239 \end_layout
1240
1241 \end_inset
1242
1243  script, and the resulting files are written in your local configuration
1244  directory.
1245  This means that any additional text class file that you might have added
1246  in 
1247 \begin_inset Flex Code
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 UserDir/layouts
1252 \end_layout
1253
1254 \end_inset
1255
1256  will be added to the list of classes in the 
1257 \begin_inset Flex Noun
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 Document\SpecialChar menuseparator
1262 Settings
1263 \end_layout
1264
1265 \end_inset
1266
1267  dialog.
1268 \end_layout
1269
1270 \begin_layout Itemize
1271 If you get some updated documentation from \SpecialChar LyX
1272  ftp site and cannot install
1273  it because you do not have sysadmin rights on your system, you can just
1274  copy the files in 
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 UserDir/doc/
1280 \end_layout
1281
1282 \end_inset
1283
1284  and the items in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Help
1290 \end_layout
1291
1292 \end_inset
1293
1294  menu will open them!
1295 \end_layout
1296
1297 \begin_layout Section
1298 Running \SpecialChar LyX
1299  with multiple configurations
1300 \end_layout
1301
1302 \begin_layout Standard
1303 The configuration freedom of the local configuration directory may not suffice
1304  if you want to have more than one configuration at your disposal.
1305  For example, you may want to be use different key bindings or printer settings
1306  at different times.
1307  You can achieve this by having several such directories.
1308  You then specify which directory to use at run-time.
1309 \end_layout
1310
1311 \begin_layout Standard
1312 Invoking \SpecialChar LyX
1313  with the command line switch 
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 -userdir
1319 \end_layout
1320
1321 \end_inset
1322
1323  
1324 \emph on
1325 <some directory>
1326 \emph default
1327  instructs the program to read the configuration from that directory, and
1328  not from the default directory.
1329  (You can determine the default directory by running \SpecialChar LyX
1330  without the 
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 -userdir
1336 \end_layout
1337
1338 \end_inset
1339
1340  switch.) If the specified directory does not exist, \SpecialChar LyX
1341  offers to create it
1342  for you, just like it does for the default directory on the first time
1343  you run the program.
1344  You can modify the configuration options in this additional user directory
1345  exactly as you would for the default directory.
1346  These directories are completely independent (but read on).
1347  Note that setting the environment variable 
1348 \begin_inset Flex Code
1349 status collapsed
1350
1351 \begin_layout Plain Layout
1352 LYX_USERDIR_VER
1353 \end_layout
1354
1355 \end_inset
1356
1357  to some value has exactly the same effect.
1358 \end_layout
1359
1360 \begin_layout Standard
1361 Having several configurations also requires more maintenance: if you want
1362  to add a new layout to 
1363 \begin_inset Flex Code
1364 status collapsed
1365
1366 \begin_layout Plain Layout
1367 NewUserDir/layouts
1368 \end_layout
1369
1370 \end_inset
1371
1372  which you want available from all your configurations, you must add it
1373  to each directory separately.
1374  You can avoid this with the following trick: after \SpecialChar LyX
1375  creates the additional
1376  directory, most of the subdirectories (see above) are empty.
1377  If you want the new configuration to mirror an existing one, replace the
1378  empty subdirectory with a symbolic link to the matching subdirectory in
1379  the existing configuration.
1380  Take care with the 
1381 \begin_inset Flex Code
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385 doc/
1386 \end_layout
1387
1388 \end_inset
1389
1390  subdirectory, however, since it contains a file written by the configuration
1391  script (also accessible through 
1392 \begin_inset Flex Noun
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 Tools\SpecialChar menuseparator
1397 Reconfigure
1398 \end_layout
1399
1400 \end_inset
1401
1402 ) which is configuration-specific.
1403 \end_layout
1404
1405 \begin_layout Chapter
1406 The Preferences dialog
1407 \end_layout
1408
1409 \begin_layout Standard
1410 All options of the preferences dialog are described in the Appendix 
1411 \emph on
1412 The Preferences Dialog
1413 \emph default
1414  in the 
1415 \emph on
1416 User's Guide
1417 \emph default
1418 .
1419  For some options you might find here more details.
1420 \end_layout
1421
1422 \begin_layout Section
1423 Formats
1424 \begin_inset CommandInset label
1425 LatexCommand label
1426 name "sec:Formats"
1427
1428 \end_inset
1429
1430
1431 \end_layout
1432
1433 \begin_layout Standard
1434 The first step is to define your file formats if they are not already defined.
1435  To do so, open the 
1436 \begin_inset Flex Noun
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 Tools\SpecialChar menuseparator
1441 Preferences
1442 \end_layout
1443
1444 \end_inset
1445
1446  dialog.
1447  Under 
1448 \begin_inset Flex Noun
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 File Handling\SpecialChar menuseparator
1453 File formats
1454 \end_layout
1455
1456 \end_inset
1457
1458  press the 
1459 \begin_inset Flex Noun
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 New
1464 \end_layout
1465
1466 \end_inset
1467
1468  button to define your new format.
1469  The 
1470 \begin_inset Flex Noun
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474 Format
1475 \end_layout
1476
1477 \end_inset
1478
1479  field contains the name used to identify the format in the GUI.
1480  The 
1481 \begin_inset Flex Noun
1482 status collapsed
1483
1484 \begin_layout Plain Layout
1485 Short Name
1486 \end_layout
1487
1488 \end_inset
1489
1490  is used to identify the format internally.
1491  You will also need to enter a file extension.
1492  These are all required.
1493  The optional 
1494 \begin_inset Flex Noun
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 Shortcut
1499 \end_layout
1500
1501 \end_inset
1502
1503  field is used to provide a keyboard shortcut on the menus.
1504  (For example, pressing 
1505 \begin_inset Flex Noun
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 Ctrl+D
1510 \end_layout
1511
1512 \end_inset
1513
1514  will 
1515 \begin_inset Flex Noun
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 Document\SpecialChar menuseparator
1520 View (Other Formats)\SpecialChar menuseparator
1521 DVI
1522 \end_layout
1523
1524 \end_inset
1525
1526 .) 
1527 \end_layout
1528
1529 \begin_layout Standard
1530 A Format can have a 
1531 \begin_inset Flex Noun
1532 status collapsed
1533
1534 \begin_layout Plain Layout
1535 Viewer
1536 \end_layout
1537
1538 \end_inset
1539
1540  and an 
1541 \begin_inset Flex Noun
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 Editor
1546 \end_layout
1547
1548 \end_inset
1549
1550  associated with it.
1551  For example, you might want to use 
1552 \begin_inset Flex Noun
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 Ghostview
1557 \end_layout
1558
1559 \end_inset
1560
1561  to view PostScript files.
1562  You can enter the command needed to start the program in the corresponding
1563  fields.
1564  In defining this command, you can use the four variables listed in the
1565  next section.
1566  The viewer is launched when you view an image in \SpecialChar LyX
1567  or use the 
1568 \begin_inset Flex Noun
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 Document\SpecialChar menuseparator
1573 View
1574 \end_layout
1575
1576 \end_inset
1577
1578  menu.
1579  The editor is for example launched when you right-click on an image and
1580  choose 
1581 \begin_inset Flex Noun
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 Edit externally
1586 \end_layout
1587
1588 \end_inset
1589
1590  in the appearing context menu.
1591 \end_layout
1592
1593 \begin_layout Standard
1594 The 
1595 \begin_inset Flex Noun
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 MIME
1600 \end_layout
1601
1602 \end_inset
1603
1604  type of a format is optional, but if it is specified, it must be unique
1605  across all formats.
1606  It is used to detect files of this format from the file contents.
1607  For some important file formats there is no MIME type officially registered
1608  with the 
1609 \begin_inset CommandInset href
1610 LatexCommand href
1611 name "IANA"
1612 target "http://www.iana.org/assignments/media-types/"
1613 literal "false"
1614
1615 \end_inset
1616
1617 .
1618  Therefore \SpecialChar LyX
1619  uses the extended list of MIME types as specified by 
1620 \begin_inset CommandInset href
1621 LatexCommand href
1622 name "freedesktop.org"
1623 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1624 literal "false"
1625
1626 \end_inset
1627
1628 .
1629 \end_layout
1630
1631 \begin_layout Standard
1632 The 
1633 \begin_inset Flex Noun
1634 status collapsed
1635
1636 \begin_layout Plain Layout
1637 Document format
1638 \end_layout
1639
1640 \end_inset
1641
1642  option tells \SpecialChar LyX
1643  that a format is suitable for document export.
1644  If this is set and if a suitable conversion route exists (see 
1645 \begin_inset CommandInset ref
1646 LatexCommand ref
1647 reference "sec:Converters"
1648
1649 \end_inset
1650
1651 ), the format will appear in the 
1652 \begin_inset Flex Noun
1653 status collapsed
1654
1655 \begin_layout Plain Layout
1656 File\SpecialChar menuseparator
1657 Export
1658 \end_layout
1659
1660 \end_inset
1661
1662  menu.
1663  The format will also appear in the 
1664 \begin_inset Flex Noun
1665 status collapsed
1666
1667 \begin_layout Plain Layout
1668 Document\SpecialChar menuseparator
1669 View
1670 \end_layout
1671
1672 \end_inset
1673
1674  menu if a viewer is specified for the format.
1675  Pure image formats, such as 
1676 \begin_inset Flex Code
1677 status collapsed
1678
1679 \begin_layout Plain Layout
1680 png
1681 \end_layout
1682
1683 \end_inset
1684
1685 , should not use this option.
1686  Formats that can both represent vector graphics and documents like 
1687 \begin_inset Flex Code
1688 status collapsed
1689
1690 \begin_layout Plain Layout
1691 pdf
1692 \end_layout
1693
1694 \end_inset
1695
1696  should use it.
1697 \end_layout
1698
1699 \begin_layout Standard
1700 The option 
1701 \begin_inset Flex Noun
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 Vector graphics format
1706 \end_layout
1707
1708 \end_inset
1709
1710  tells \SpecialChar LyX
1711  that a format can contain vector graphics.
1712  This information is used to determine the target format of included graphics
1713  for 
1714 \begin_inset Flex Noun
1715 status collapsed
1716
1717 \begin_layout Plain Layout
1718 pdflatex
1719 \end_layout
1720
1721 \end_inset
1722
1723  export.
1724  Included graphics may need to be converted to either 
1725 \begin_inset Flex Noun
1726 status collapsed
1727
1728 \begin_layout Plain Layout
1729 pdf
1730 \end_layout
1731
1732 \end_inset
1733
1734
1735 \begin_inset Flex Noun
1736 status collapsed
1737
1738 \begin_layout Plain Layout
1739 png
1740 \end_layout
1741
1742 \end_inset
1743
1744 , or 
1745 \begin_inset Flex Noun
1746 status collapsed
1747
1748 \begin_layout Plain Layout
1749 jpg
1750 \end_layout
1751
1752 \end_inset
1753
1754 , since 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 pdflatex
1760 \end_layout
1761
1762 \end_inset
1763
1764  cannot handle other image formats.
1765  If an included graphic is not already in 
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 pdf
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 png
1781 \end_layout
1782
1783 \end_inset
1784
1785 , or 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 jpg
1791 \end_layout
1792
1793 \end_inset
1794
1795  format, it is converted to 
1796 \begin_inset Flex Noun
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 pdf
1801 \end_layout
1802
1803 \end_inset
1804
1805  if the vector format option is set, and otherwise to 
1806 \begin_inset Flex Noun
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 png
1811 \end_layout
1812
1813 \end_inset
1814
1815 .
1816 \end_layout
1817
1818 \begin_layout Section
1819 Copiers
1820 \end_layout
1821
1822 \begin_layout Standard
1823 Since all conversions from one format to another take place in \SpecialChar LyX
1824 's temporary
1825  directory, it is sometimes necessary to modify a file before copying it
1826  to the temporary directory in order that the conversion may be performed.
1827 \begin_inset Foot
1828 status collapsed
1829
1830 \begin_layout Plain Layout
1831 For example, the file may refer to other files—images, for example—using
1832  relative file names, and these may become invalid when the file is copied
1833  to the temporary directory.
1834 \end_layout
1835
1836 \end_inset
1837
1838  This is done by a Copier: It copies a file to (or from) the temporary directory
1839  and may modify it in the process.
1840 \end_layout
1841
1842 \begin_layout Standard
1843 The definitions of the copiers may use eight variables:
1844 \end_layout
1845
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Flex Code
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 $$s
1853 \end_layout
1854
1855 \end_inset
1856
1857  The \SpecialChar LyX
1858  system directory (e.
1859 \begin_inset space \thinspace{}
1860 \end_inset
1861
1862 g.
1863 \begin_inset space \space{}
1864 \end_inset
1865
1866
1867 \begin_inset Flex Noun
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 /usr/share/lyx
1872 \end_layout
1873
1874 \end_inset
1875
1876 ).
1877 \end_layout
1878
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 $$i
1886 \end_layout
1887
1888 \end_inset
1889
1890  The input file
1891 \end_layout
1892
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Flex Code
1896 status collapsed
1897
1898 \begin_layout Plain Layout
1899 $$o
1900 \end_layout
1901
1902 \end_inset
1903
1904  The output file
1905 \end_layout
1906
1907 \begin_layout Labeling
1908 \labelwidthstring 00.00.0000
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 $$b
1914 \end_layout
1915
1916 \end_inset
1917
1918  The base name (without filename extension) in the \SpecialChar LyX
1919  temporary directory
1920 \end_layout
1921
1922 \begin_layout Labeling
1923 \labelwidthstring 00.00.0000
1924 \begin_inset Flex Code
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 $$p
1929 \end_layout
1930
1931 \end_inset
1932
1933  The full directory path of the \SpecialChar LyX
1934  temporary directory
1935 \end_layout
1936
1937 \begin_layout Labeling
1938 \labelwidthstring 00.00.0000
1939 \begin_inset Flex Code
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 $$r
1944 \end_layout
1945
1946 \end_inset
1947
1948  The full pathname to the original \SpecialChar LyX
1949  file being processed
1950 \end_layout
1951
1952 \begin_layout Labeling
1953 \labelwidthstring 00.00.0000
1954 \begin_inset Flex Code
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 $$f
1959 \end_layout
1960
1961 \end_inset
1962
1963  The filename (without any directory path) of the \SpecialChar LyX
1964  file.
1965 \end_layout
1966
1967 \begin_layout Labeling
1968 \labelwidthstring 00.00.0000
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973 $$l
1974 \end_layout
1975
1976 \end_inset
1977
1978  The `\SpecialChar LaTeX
1979  name'
1980 \end_layout
1981
1982 \begin_layout Standard
1983 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1984 's 
1985 \series bold
1986
1987 \backslash
1988 include
1989 \series default
1990  command.
1991  It is relevant only when exporting files suitable for such inclusion.
1992 \end_layout
1993
1994 \begin_layout Standard
1995 Copiers can be used to do almost anything with output files.
1996  For example, suppose you want generated pdf files to be copied to a special
1997  directory, 
1998 \begin_inset Flex Code
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 /home/you/pdf/
2003 \end_layout
2004
2005 \end_inset
2006
2007 .
2008  Then you could write a shell script such as this one:
2009 \end_layout
2010
2011 \begin_layout Standard
2012 \begin_inset listings
2013 inline false
2014 status open
2015
2016 \begin_layout Plain Layout
2017
2018 #!/bin/bash
2019 \end_layout
2020
2021 \begin_layout Plain Layout
2022
2023 FROMFILE=$1
2024 \end_layout
2025
2026 \begin_layout Plain Layout
2027
2028 TOFILE=`basename $2`
2029 \end_layout
2030
2031 \begin_layout Plain Layout
2032
2033 cp $FROMFILE /home/you/pdf/$TOFILE
2034 \end_layout
2035
2036 \end_inset
2037
2038 Save it in your local \SpecialChar LyX
2039  directory—say, 
2040 \begin_inset Flex Code
2041 status collapsed
2042
2043 \begin_layout Plain Layout
2044 /home/you/.lyx/scripts/pdfcopier.sh
2045 \end_layout
2046
2047 \end_inset
2048
2049 —and make it executable, if you need to do so on your platform.
2050  Then, in the 
2051 \begin_inset Flex Noun
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 Tools\SpecialChar menuseparator
2056 Preferences
2057 \end_layout
2058
2059 \end_inset
2060
2061  dialog, select under 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 File Handling\SpecialChar menuseparator
2067 File formats
2068 \end_layout
2069
2070 \end_inset
2071
2072  the 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 PDF(pdflatex)
2078 \end_layout
2079
2080 \end_inset
2081
2082  format—or one of the other pdf formats—and enter 
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 pdfcopier.sh $$i $$o
2088 \end_layout
2089
2090 \end_inset
2091
2092  into the 
2093 \begin_inset Flex Noun
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097 Copier
2098 \end_layout
2099
2100 \end_inset
2101
2102  field.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 Copiers are used by \SpecialChar LyX
2108  in various of its own conversions.
2109  For example, if appropriate programs are found, \SpecialChar LyX
2110  will automatically install
2111  copiers for the 
2112 \begin_inset Flex Noun
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 HTML
2117 \end_layout
2118
2119 \end_inset
2120
2121  and 
2122 \begin_inset Flex Noun
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 HTML
2127 \begin_inset space ~
2128 \end_inset
2129
2130 (MS Word)
2131 \end_layout
2132
2133 \end_inset
2134
2135  formats.
2136  When these formats are exported, the copier sees that not just the main
2137  HTML file but various associated files (style files, images, etc.) are also
2138  copied.
2139  All these files are written to a subdirectory of the directory in which
2140  the original \SpecialChar LyX
2141  file was found.
2142 \begin_inset Foot
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 This copier can be customized.
2147  The optional 
2148 \begin_inset Quotes eld
2149 \end_inset
2150
2151 -e
2152 \begin_inset Quotes erd
2153 \end_inset
2154
2155  argument takes a comma-separated list of extensions to be copied; if it
2156  is omitted, all files will be copied.
2157  The 
2158 \begin_inset Quotes eld
2159 \end_inset
2160
2161 -t
2162 \begin_inset Quotes erd
2163 \end_inset
2164
2165  argument determines the extension added to the generated directory.
2166  By default, it is 
2167 \begin_inset Quotes eld
2168 \end_inset
2169
2170
2171 \begin_inset Flex Noun
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 LyXconv
2176 \end_layout
2177
2178 \end_inset
2179
2180
2181 \begin_inset Quotes erd
2182 \end_inset
2183
2184 , so HTML generated from 
2185 \begin_inset Flex Noun
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 /path/to/filename.lyx
2190 \end_layout
2191
2192 \end_inset
2193
2194  will end up in 
2195 \begin_inset Flex Noun
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 /path/to/filename.html.LyXconv
2200 \end_layout
2201
2202 \end_inset
2203
2204 .
2205  
2206 \end_layout
2207
2208 \end_inset
2209
2210
2211 \end_layout
2212
2213 \begin_layout Section
2214 Converters
2215 \begin_inset CommandInset label
2216 LatexCommand label
2217 name "sec:Converters"
2218
2219 \end_inset
2220
2221
2222 \end_layout
2223
2224 \begin_layout Standard
2225 You can define your own Converters to convert files between different formats.
2226  This is done in the 
2227 \begin_inset Flex Noun
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 Tools\SpecialChar menuseparator
2232 Preferences\SpecialChar menuseparator
2233 File Handling\SpecialChar menuseparator
2234 Converters
2235 \end_layout
2236
2237 \end_inset
2238
2239  dialog.
2240 \end_layout
2241
2242 \begin_layout Standard
2243 To define a new converter, select the 
2244 \begin_inset Flex Noun
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 From
2249 \begin_inset space ~
2250 \end_inset
2251
2252 format
2253 \end_layout
2254
2255 \end_inset
2256
2257  and 
2258 \begin_inset Flex Noun
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 To
2263 \begin_inset space ~
2264 \end_inset
2265
2266 format
2267 \end_layout
2268
2269 \end_inset
2270
2271  from the drop-down lists, enter the command needed for the conversion,
2272  and then press the 
2273 \begin_inset Flex Noun
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277 Add
2278 \end_layout
2279
2280 \end_inset
2281
2282  button.
2283  Several variables can be used in the definition of converters:
2284 \end_layout
2285
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Flex Code
2289 status collapsed
2290
2291 \begin_layout Plain Layout
2292 $$s
2293 \end_layout
2294
2295 \end_inset
2296
2297  The \SpecialChar LyX
2298  system directory
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 $$i
2308 \end_layout
2309
2310 \end_inset
2311
2312  The input file
2313 \end_layout
2314
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Flex Code
2318 status collapsed
2319
2320 \begin_layout Plain Layout
2321 $$o
2322 \end_layout
2323
2324 \end_inset
2325
2326  The output file
2327 \end_layout
2328
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Flex Code
2332 status collapsed
2333
2334 \begin_layout Plain Layout
2335 $$b
2336 \end_layout
2337
2338 \end_inset
2339
2340  The base filename of the input file (i.
2341 \begin_inset space \thinspace{}
2342 \end_inset
2343
2344 g., without the extension)
2345 \end_layout
2346
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Flex Code
2350 status collapsed
2351
2352 \begin_layout Plain Layout
2353 $$p
2354 \end_layout
2355
2356 \end_inset
2357
2358  The path to the input file
2359 \end_layout
2360
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Flex Code
2364 status collapsed
2365
2366 \begin_layout Plain Layout
2367 $$r
2368 \end_layout
2369
2370 \end_inset
2371
2372  The path to the original input file (this is different from $$p when a
2373  chain of converters is called)
2374 \end_layout
2375
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 $$e
2383 \end_layout
2384
2385 \end_inset
2386
2387  The iconv name for the encoding of the document.
2388 \end_layout
2389
2390 \begin_layout Standard
2391 In the 
2392 \begin_inset Flex Noun
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 Extra
2397 \begin_inset space ~
2398 \end_inset
2399
2400 Flag
2401 \end_layout
2402
2403 \end_inset
2404
2405  field you can enter the following flags, separated by commas:
2406 \end_layout
2407
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 latex
2415 \change_inserted -712698321 1524656940
2416 =flavor
2417 \change_unchanged
2418
2419 \end_layout
2420
2421 \end_inset
2422
2423  This converter runs some form of \SpecialChar LaTeX
2424 .
2425  This will make \SpecialChar LyX
2426 's \SpecialChar LaTeX
2427  error logs available.
2428
2429 \change_inserted -712698321 1524657018
2430  The optional 
2431 \begin_inset Flex Code
2432 status open
2433
2434 \begin_layout Plain Layout
2435
2436 \change_inserted -712698321 1524657012
2437 flavor
2438 \change_unchanged
2439
2440 \end_layout
2441
2442 \end_inset
2443
2444  value specifies the form of \SpecialChar LaTeX
2445  that is run (
2446 \begin_inset Flex Code
2447 status open
2448
2449 \begin_layout Plain Layout
2450
2451 \change_inserted -712698321 1524657005
2452 latex, pdflatex, platex, xetex, luatex
2453 \change_unchanged
2454
2455 \end_layout
2456
2457 \end_inset
2458
2459 ).
2460  If no value is specified, 
2461 \begin_inset Flex Code
2462 status open
2463
2464 \begin_layout Plain Layout
2465
2466 \change_inserted -712698321 1524657018
2467 latex
2468 \change_unchanged
2469
2470 \end_layout
2471
2472 \end_inset
2473
2474  is used.
2475 \change_unchanged
2476
2477 \end_layout
2478
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Flex Code
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485 needaux
2486 \change_inserted -712698321 1524656935
2487 =flavor
2488 \change_unchanged
2489
2490 \end_layout
2491
2492 \end_inset
2493
2494  Needs the \SpecialChar LaTeX
2495  
2496 \begin_inset Flex Noun
2497 status collapsed
2498
2499 \begin_layout Plain Layout
2500 .aux
2501 \end_layout
2502
2503 \end_inset
2504
2505  file for the conversion.
2506
2507 \change_inserted -712698321 1524657047
2508  The optional 
2509 \begin_inset Flex Code
2510 status open
2511
2512 \begin_layout Plain Layout
2513
2514 \change_inserted -712698321 1524657030
2515 flavor
2516 \end_layout
2517
2518 \end_inset
2519
2520  value specifies the form of \SpecialChar LaTeX
2521  that is run in order to generate the 
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526
2527 \change_inserted -712698321 1524657047
2528 .aux
2529 \end_layout
2530
2531 \end_inset
2532
2533  file (
2534 \begin_inset Flex Code
2535 status open
2536
2537 \begin_layout Plain Layout
2538
2539 \change_inserted -712698321 1524657030
2540 latex, pdflatex, platex, xetex, luatex
2541 \end_layout
2542
2543 \end_inset
2544
2545 ).
2546  If no value is specified, 
2547 \begin_inset Flex Code
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 \change_inserted -712698321 1524657030
2553 latex
2554 \end_layout
2555
2556 \end_inset
2557
2558  is used.
2559 \change_unchanged
2560
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 nice
2570 \end_layout
2571
2572 \end_inset
2573
2574  Needs a 
2575 \begin_inset Quotes eld
2576 \end_inset
2577
2578 nice
2579 \begin_inset Quotes erd
2580 \end_inset
2581
2582  file from the backend, which in practice means a \SpecialChar LaTeX
2583  file like the one we
2584  would export, without 
2585 \begin_inset Flex Code
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 input@path
2590 \end_layout
2591
2592 \end_inset
2593
2594 .
2595 \end_layout
2596
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2599 \begin_inset Flex Code
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 xml
2604 \end_layout
2605
2606 \end_inset
2607
2608  Output is XML.
2609 \end_layout
2610
2611 \begin_layout Standard
2612 The following three flags are not really flags at all because they take
2613  an argument in the 
2614 \begin_inset Flex Noun
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 key
2619 \begin_inset space ~
2620 \end_inset
2621
2622 =
2623 \begin_inset space ~
2624 \end_inset
2625
2626 value
2627 \end_layout
2628
2629 \end_inset
2630
2631  format:
2632 \end_layout
2633
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2636
2637 \change_inserted -712698321 1523206314
2638 \begin_inset Flex Code
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642
2643 \change_inserted -712698321 1523206193
2644 hyperref-driver
2645 \end_layout
2646
2647 \end_inset
2648
2649  The name of the driver that needs to be loaded with the 
2650 \family sans
2651 hyperref
2652 \family default
2653  package for this converter.
2654  The loading of the correct driver is necessary to get some PDF-specific
2655  features.
2656  See the 
2657 \family sans
2658 hyperref
2659 \family default
2660  manual for details.
2661 \end_layout
2662
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 parselog
2670 \end_layout
2671
2672 \end_inset
2673
2674  If set, the converter's standard error will be redirected to a file 
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 infile.out
2680 \end_layout
2681
2682 \end_inset
2683
2684 , and the script given as argument will be run as: 
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 script < infile.out > infile.log
2690 \end_layout
2691
2692 \end_inset
2693
2694 .
2695  The argument may contain 
2696 \begin_inset Flex Code
2697 status collapsed
2698
2699 \begin_layout Plain Layout
2700 $$s
2701 \end_layout
2702
2703 \end_inset
2704
2705 .
2706 \end_layout
2707
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 resultdir
2715 \end_layout
2716
2717 \end_inset
2718
2719  The name of the directory in which the converter will dump the generated
2720  files.
2721  \SpecialChar LyX
2722  will not create this directory, and it does not copy anything into it,
2723  though it will copy this directory to the destination.
2724  The argument may contain 
2725 \begin_inset Flex Code
2726 status collapsed
2727
2728 \begin_layout Plain Layout
2729 $$b
2730 \end_layout
2731
2732 \end_inset
2733
2734 , which will be replaced by the base name of the input and output files,
2735  respectively, when the directory is copied.
2736 \begin_inset Newline newline
2737 \end_inset
2738
2739 Note that resultdir and usetempdir make no sense together.
2740  The latter will be ignored if the former is given.
2741 \end_layout
2742
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2745 \begin_inset Flex Code
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 resultfile
2750 \end_layout
2751
2752 \end_inset
2753
2754  Determines the output file name and may, contain 
2755 \begin_inset Flex Code
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 $$b
2760 \end_layout
2761
2762 \end_inset
2763
2764 .
2765  Sensible only with resultdir and optional even then; if not given, it defaults
2766  to `index'.
2767 \end_layout
2768
2769 \begin_layout Standard
2770
2771 \change_inserted -712698321 1523206384
2772 A suitable hyperref-driver is set for some converters that are installed
2773  with \SpecialChar LyX
2774 .
2775  
2776 \change_deleted -712698321 1523206388
2777 None of these
2778 \change_inserted -712698321 1523206389
2779 The
2780 \change_unchanged
2781  last three
2782 \change_inserted -712698321 1523206400
2783  flags, however,
2784 \change_unchanged
2785  are presently 
2786 \change_inserted -712698321 1523206407
2787 not 
2788 \change_unchanged
2789 used in any of the 
2790 \change_inserted -712698321 1523206437
2791 pre-installed 
2792 \change_unchanged
2793 converters
2794 \change_deleted -712698321 1523206442
2795  that are installed with \SpecialChar LyX
2796
2797 \change_unchanged
2798 .
2799  
2800 \end_layout
2801
2802 \begin_layout Standard
2803 You do not have to define converters for all formats between which you want
2804  to convert.
2805  For example, you will note that there is no `\SpecialChar LyX
2806  to PostScript' converter,
2807  but \SpecialChar LyX
2808  will export PostScript.
2809  It does so by first creating a \SpecialChar LaTeX
2810  file (no converter needs to be defined
2811  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2812  to DVI' converter,
2813  and finally converting the resulting DVI file to PostScript.
2814  \SpecialChar LyX
2815  finds such `chains' of converters automatically, and it will always choose
2816  the shortest possible chain.
2817  You can, though, still define multiple conversion methods between file
2818  formats.
2819  For example, the standard \SpecialChar LyX
2820  configuration provides five ways to convert
2821  \SpecialChar LaTeX
2822  to PDF:
2823 \end_layout
2824
2825 \begin_layout Enumerate
2826 Directly, using 
2827 \begin_inset Flex Noun
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 pdflatex
2832 \end_layout
2833
2834 \end_inset
2835
2836
2837 \end_layout
2838
2839 \begin_layout Enumerate
2840 via (DVI and) PostScript, using 
2841 \begin_inset Flex Noun
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 ps2pdf
2846 \end_layout
2847
2848 \end_inset
2849
2850
2851 \end_layout
2852
2853 \begin_layout Enumerate
2854 via DVI, using 
2855 \begin_inset Flex Noun
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 dvipdfm
2860 \end_layout
2861
2862 \end_inset
2863
2864
2865 \end_layout
2866
2867 \begin_layout Enumerate
2868 directly using 
2869 \begin_inset Flex Noun
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 Xe\SpecialChar TeX
2874
2875 \end_layout
2876
2877 \end_inset
2878
2879
2880 \end_layout
2881
2882 \begin_layout Enumerate
2883 directly using 
2884 \begin_inset Flex Noun
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 Lua\SpecialChar TeX
2889
2890 \end_layout
2891
2892 \end_inset
2893
2894
2895 \end_layout
2896
2897 \begin_layout Standard
2898 To define such alternate chains, you must define multiple target `file formats',
2899  as described in 
2900 \begin_inset CommandInset ref
2901 LatexCommand ref
2902 reference "sec:Formats"
2903
2904 \end_inset
2905
2906 .
2907  For example, in the standard configuration, the formats named 
2908 \begin_inset Flex Noun
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 pdf
2913 \end_layout
2914
2915 \end_inset
2916
2917  (for 
2918 \begin_inset Flex Noun
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 ps2pdf
2923 \end_layout
2924
2925 \end_inset
2926
2927 ), 
2928 \begin_inset Flex Noun
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 pdf2
2933 \end_layout
2934
2935 \end_inset
2936
2937  (for 
2938 \begin_inset Flex Noun
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 pdflatex
2943 \end_layout
2944
2945 \end_inset
2946
2947 ), 
2948 \begin_inset Flex Noun
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 pdf3
2953 \end_layout
2954
2955 \end_inset
2956
2957  (for 
2958 \begin_inset Flex Noun
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 dvipdfm
2963 \end_layout
2964
2965 \end_inset
2966
2967 ), 
2968 \begin_inset Flex Noun
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 pdf4
2973 \end_layout
2974
2975 \end_inset
2976
2977  (for 
2978 \begin_inset Flex Noun
2979 status collapsed
2980
2981 \begin_layout Plain Layout
2982 Xe\SpecialChar TeX
2983
2984 \end_layout
2985
2986 \end_inset
2987
2988 ), and 
2989 \begin_inset Flex Noun
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993 pdf5
2994 \end_layout
2995
2996 \end_inset
2997
2998  (for 
2999 \begin_inset Flex Noun
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 Lua\SpecialChar TeX
3004
3005 \end_layout
3006
3007 \end_inset
3008
3009 ) are defined, all of which share the extension 
3010 \begin_inset Flex Noun
3011 status collapsed
3012
3013 \begin_layout Plain Layout
3014 .pdf
3015 \end_layout
3016
3017 \end_inset
3018
3019 , and which correspond to the conversion methods just mentioned.
3020 \end_layout
3021
3022 \begin_layout Chapter
3023 Internationalizing \SpecialChar LyX
3024
3025 \begin_inset CommandInset label
3026 LatexCommand label
3027 name "cha:Internationalizing-LyX"
3028
3029 \end_inset
3030
3031
3032 \end_layout
3033
3034 \begin_layout Standard
3035 \SpecialChar LyX
3036  supports using a translated interface.
3037  Last time we checked, \SpecialChar LyX
3038  provided text in thirty languages.
3039  The language of choice is called your 
3040 \emph on
3041 locale
3042 \emph default
3043 .
3044  (For further reading on locale settings, see also the documentation for
3045  locale that comes with your operating system.
3046  For Linux, the manual page for 
3047 \begin_inset Flex Code
3048 status collapsed
3049
3050 \begin_layout Plain Layout
3051 locale(5)
3052 \end_layout
3053
3054 \end_inset
3055
3056  could be a good place to start).
3057 \end_layout
3058
3059 \begin_layout Standard
3060 Notice that these translations will work, but do contain a few flaws.
3061  In particular, all dialogs have been designed with the English text in
3062  mind, which means that some of the translated text will be too large to
3063  fit within the space allocated.
3064  This is only a display problem and will not cause any harm.
3065  Also, you will find that some of the translations do not define shortcut
3066  keys for everything.
3067  Sometimes, there are simply not enough free letters to do it.
3068  Other times, the translator just hasn't got around to doing it yet.
3069  Our localization team, which you may wish to join,
3070 \begin_inset Foot
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 If you are a fluent speaker of a language other than English, joining these
3075  teams is a great way to give back to the \SpecialChar LyX
3076  community!
3077 \end_layout
3078
3079 \end_inset
3080
3081  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3082 .
3083 \end_layout
3084
3085 \begin_layout Section
3086 Translating \SpecialChar LyX
3087
3088 \end_layout
3089
3090 \begin_layout Subsection
3091 Translating the graphical user interface (text messages).
3092 \end_layout
3093
3094 \begin_layout Standard
3095 \SpecialChar LyX
3096  uses the GNU 
3097 \begin_inset Flex Code
3098 status collapsed
3099
3100 \begin_layout Plain Layout
3101 gettext
3102 \end_layout
3103
3104 \end_inset
3105
3106  library to handle the internationalization of the interface.
3107  To have \SpecialChar LyX
3108  speak your favorite language in all menus and dialogs, you need
3109  a 
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 po
3115 \end_layout
3116
3117 \end_inset
3118
3119 -file for that language.
3120  When this is available, you'll have to generate a 
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 mo
3126 \end_layout
3127
3128 \end_inset
3129
3130 -file from it and install the 
3131 \begin_inset Flex Code
3132 status collapsed
3133
3134 \begin_layout Plain Layout
3135 mo
3136 \end_layout
3137
3138 \end_inset
3139
3140 -file.
3141  The process of doing all of this is explained in the documentation for
3142  GNU 
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 .
3153  It is possible to do this just for yourself, but if you're going to do
3154  it, you might as well share the results of your labors with the rest of
3155  the \SpecialChar LyX
3156  community.
3157  Send a message to the \SpecialChar LyX
3158  developers' list for more information about how
3159  to proceed.
3160 \end_layout
3161
3162 \begin_layout Standard
3163 In short, this is what you should do (xx denotes the language code):
3164 \end_layout
3165
3166 \begin_layout Itemize
3167 Check out the \SpecialChar LyX
3168  source code.
3169  (See the 
3170 \begin_inset CommandInset href
3171 LatexCommand href
3172 name "information on the web"
3173 target "https://www.lyx.org/HowToUseGIT"
3174 literal "false"
3175
3176 \end_inset
3177
3178 .)
3179 \end_layout
3180
3181 \begin_layout Itemize
3182 Copy the file 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 lyx.pot
3188 \end_layout
3189
3190 \end_inset
3191
3192  to the folder of the 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 **.po
3198 \end_layout
3199
3200 \end_inset
3201
3202  files.
3203  Then rename it to 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 xx.po
3209 \end_layout
3210
3211 \end_inset
3212
3213 .
3214  (If 
3215 \begin_inset Flex Code
3216 status collapsed
3217
3218 \begin_layout Plain Layout
3219 lyx.pot
3220 \end_layout
3221
3222 \end_inset
3223
3224  doesn't exist anywhere, it can be remade with the console command 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 make lyx.pot
3230 \end_layout
3231
3232 \end_inset
3233
3234  in that directory, or you can use an existing po-file for some other language
3235  as a template).
3236 \end_layout
3237
3238 \begin_layout Itemize
3239 Edit 
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 xx.po
3245 \end_layout
3246
3247 \end_inset
3248
3249 .
3250 \begin_inset Foot
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 This is just a text file, so it can be edited in any text editor.
3255  But there are also specialized programs that support such editing, such
3256  as 
3257 \family typewriter
3258 Poedit
3259 \family default
3260  (for all platforms) or 
3261 \family typewriter
3262 KBabel
3263 \family default
3264  (for KDE).
3265  
3266 \family typewriter
3267 Emacs
3268 \family default
3269  contains a `mode' for editing 
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 po
3275 \end_layout
3276
3277 \end_inset
3278
3279  files, as well, see 
3280 \begin_inset Flex URL
3281 status open
3282
3283 \begin_layout Plain Layout
3284
3285 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3286 \end_layout
3287
3288 \end_inset
3289
3290 .
3291 \end_layout
3292
3293 \end_inset
3294
3295  For some menu- and widget-labels, there are also shortcut keys that should
3296  be translated.
3297  Those keys are marked after a `|', and should be translated according to
3298  the words and phrases of the language.
3299  You should also fill also out the information at the beginning of the new
3300  
3301 \begin_inset Flex Code
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 po
3306 \end_layout
3307
3308 \end_inset
3309
3310 -file with your email-address, etc., so people know where to reach you with
3311  suggestions and entertaining flames.
3312 \end_layout
3313
3314 \begin_layout Standard
3315 If you are just doing this on your own, then:
3316 \end_layout
3317
3318 \begin_layout Itemize
3319 Generate 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 xx.mo
3325 \end_layout
3326
3327 \end_inset
3328
3329 .
3330  This can be done with 
3331 \begin_inset Flex Code
3332 status collapsed
3333
3334 \begin_layout Plain Layout
3335 msgfmt -o xx.mo < xx.po
3336 \end_layout
3337
3338 \end_inset
3339
3340 .
3341 \end_layout
3342
3343 \begin_layout Itemize
3344 Copy the 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 mo
3350 \end_layout
3351
3352 \end_inset
3353
3354 -file to your locale-tree, at the correct directory for application messages
3355  for the language
3356 \series bold
3357  
3358 \series default
3359 xx, and under the name 
3360 \begin_inset Flex Code
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364 lyx.mo
3365 \end_layout
3366
3367 \end_inset
3368
3369  (e.
3370 \begin_inset space \thinspace{}
3371 \end_inset
3372
3373 g.
3374 \begin_inset space \space{}
3375 \end_inset
3376
3377
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3383 \end_layout
3384
3385 \end_inset
3386
3387
3388 \series bold
3389 .
3390 \end_layout
3391
3392 \begin_layout Standard
3393 As said, however, it would be best if the new 
3394 \begin_inset Flex Code
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 po
3399 \end_layout
3400
3401 \end_inset
3402
3403  file could be added to the \SpecialChar LyX
3404  distribution, so others can use it.
3405  Adding it involves making additional changes to \SpecialChar LyX
3406 .
3407  So send an email to the developers' mailing list if you're interested in
3408  doing that.
3409 \end_layout
3410
3411 \begin_layout Subsubsection
3412 Ambiguous messages
3413 \end_layout
3414
3415 \begin_layout Standard
3416 Sometimes it turns out that one English message needs to be translated into
3417  different messages in the target language.
3418  One example is the message 
3419 \begin_inset Flex Code
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 To
3424 \end_layout
3425
3426 \end_inset
3427
3428  which has the German translation 
3429 \lang german
3430 Nach
3431 \lang english
3432  or 
3433 \lang german
3434 Bis
3435 \lang english
3436 , depending upon exactly what the English 
3437 \begin_inset Quotes eld
3438 \end_inset
3439
3440 to
3441 \begin_inset Quotes erd
3442 \end_inset
3443
3444  means.
3445  GNU 
3446 \begin_inset Flex Code
3447 status collapsed
3448
3449 \begin_layout Plain Layout
3450 gettext
3451 \end_layout
3452
3453 \end_inset
3454
3455  does not handle such ambiguous translations.
3456  Therefore you have to add some context information to the message: Instead
3457  of 
3458 \begin_inset Flex Code
3459 status collapsed
3460
3461 \begin_layout Plain Layout
3462 To
3463 \end_layout
3464
3465 \end_inset
3466
3467  it becomes 
3468 \begin_inset Flex Code
3469 status collapsed
3470
3471 \begin_layout Plain Layout
3472 To[[as in 'From format x to format y']]
3473 \end_layout
3474
3475 \end_inset
3476
3477  and 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482 To[[as in 'From page x to page y']].
3483 \end_layout
3484
3485 \end_inset
3486
3487  Now the two occurrences of 
3488 \begin_inset Flex Code
3489 status collapsed
3490
3491 \begin_layout Plain Layout
3492 To
3493 \end_layout
3494
3495 \end_inset
3496
3497  are different for 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 gettext
3503 \end_layout
3504
3505 \end_inset
3506
3507  and can be translated correctly to 
3508 \lang german
3509 Nach
3510 \lang english
3511  and 
3512 \lang german
3513 Bis
3514 \lang english
3515 , respectively.
3516 \end_layout
3517
3518 \begin_layout Standard
3519 Of course the context information needs to be stripped off the original
3520  message when no translation is used.
3521  Therefore you have to put it in double square brackets at the end of the
3522  message (see the example above).
3523  The translation mechanism of \SpecialChar LyX
3524  ensures that everything in double square
3525  brackets at the end of messages is removed before displaying the message.
3526 \end_layout
3527
3528 \begin_layout Subsection
3529 Translating the documentation.
3530 \end_layout
3531
3532 \begin_layout Standard
3533 The online documentation (in the 
3534 \begin_inset Flex Noun
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 Help
3539 \end_layout
3540
3541 \end_inset
3542
3543 -menu) can (and should!) be translated.
3544  If there are translated versions of the documentation available
3545 \begin_inset Foot
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 As of March 2008, at least some of the documents have been translated into
3550  fourteen languages, with the Tutorial available in a few more.
3551 \end_layout
3552
3553 \end_inset
3554
3555  and the locale is set accordingly, these will be used automagically by
3556  \SpecialChar LyX
3557 .
3558  \SpecialChar LyX
3559  looks for translated versions as 
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 LyXDir/doc/xx/DocName.lyx
3565 \end_layout
3566
3567 \end_inset
3568
3569 , where 
3570 \begin_inset Flex Code
3571 status collapsed
3572
3573 \begin_layout Plain Layout
3574 xx
3575 \end_layout
3576
3577 \end_inset
3578
3579  is the code for the language currently in use.
3580  If there are no translated documents, the default English versions will
3581  be displayed.
3582  Note that the translated versions must have the same filenames (
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587 DocName
3588 \end_layout
3589
3590 \end_inset
3591
3592  above) as the original.
3593  If you feel up to translating the documentation (an excellent way to proof-read
3594  the original documentation by the way!), there are a few things you should
3595  do right away:
3596 \end_layout
3597
3598 \begin_layout Itemize
3599 Check out the documentation translation web page at 
3600 \begin_inset CommandInset href
3601 LatexCommand href
3602 name "https://www.lyx.org/Translation"
3603 target "https://www.lyx.org/Translation"
3604 literal "false"
3605
3606 \end_inset
3607
3608 .
3609  That way, you can find out which (if any) documents have already been translate
3610 d into your language.
3611  You can also find out who (if anyone) is organizing the effort to translate
3612  the documentation into your language.
3613  If no one is organizing the effort, please let us know that you're interested.
3614 \end_layout
3615
3616 \begin_layout Standard
3617 Once you get to actually translating, here's a few hints for you that may
3618  save you trouble:
3619 \end_layout
3620
3621 \begin_layout Itemize
3622 Join the documentation team! There is information on how to do that in 
3623 \begin_inset Flex Code
3624 status collapsed
3625
3626 \begin_layout Plain Layout
3627 Intro.lyx
3628 \end_layout
3629
3630 \end_inset
3631
3632  (
3633 \begin_inset Flex Noun
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 Help\SpecialChar menuseparator
3638 Introduction
3639 \end_layout
3640
3641 \end_inset
3642
3643 ), which by the way is the first document you should translate.
3644 \end_layout
3645
3646 \begin_layout Itemize
3647 Learn the typographic conventions for the language you are translating to.
3648  Typography is an ancient art and over the centuries, a great variety of
3649  conventions have developed throughout different parts of the world.
3650  Also study the professional terminology amongst typographers in your country.
3651  Inventing your own terminology will only confuse the users.
3652  
3653 \emph on
3654 (Warning! Typography is addictive!)
3655 \end_layout
3656
3657 \begin_layout Itemize
3658 Make a copy of the document.
3659  This will be your working copy.
3660  You can use this as your personal translated help-file by placing it in
3661  your 
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 UserDir/doc/xx/
3667 \end_layout
3668
3669 \end_inset
3670
3671  directory.
3672 \begin_inset Note Greyedout
3673 status open
3674
3675 \begin_layout Plain Layout
3676
3677 \series bold
3678 Note:
3679 \series default
3680  For a complex document with external material (images, etc.), if you make
3681  a copy e.
3682 \begin_inset space \thinspace{}
3683 \end_inset
3684
3685 g.
3686 \begin_inset space \space{}
3687 \end_inset
3688
3689 in a temp dir, beware that the links to external material may be broken
3690  when the document is moved to a different place.
3691  The best way is to retrieve the \SpecialChar LyX
3692  tree from git (see 
3693 \begin_inset Flex URL
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697
3698 https://www.lyx.org/HowToUseGIT
3699 \end_layout
3700
3701 \end_inset
3702
3703 ) and to edit the doc file in place.
3704 \end_layout
3705
3706 \end_inset
3707
3708
3709 \end_layout
3710
3711 \begin_layout Itemize
3712 Sometimes the original document (from the \SpecialChar LyX
3713  team) will be updated.
3714  Use the source viewer at 
3715 \begin_inset CommandInset href
3716 LatexCommand href
3717 name "https://www.lyx.org/trac/timeline"
3718 target "https://www.lyx.org/trac/timeline"
3719 literal "false"
3720
3721 \end_inset
3722
3723  to see what has been changed.
3724  That way you can easily see which parts of the translated document need
3725  to be updated.
3726 \end_layout
3727
3728 \begin_layout Standard
3729 If you ever find an error in the original document, fix it and notify the
3730  rest of the documentation team of the changes! (You didn't forget to join
3731  the documentation team, did you?)
3732 \end_layout
3733
3734 \begin_layout Standard
3735 \begin_inset Branch OutDated
3736 inverted 0
3737 status collapsed
3738
3739 \begin_layout Section
3740 International Keyboard Support
3741 \end_layout
3742
3743 \begin_layout Standard
3744
3745 \emph on
3746 [Editor's Note: The following section is by
3747 \emph default
3748  
3749 \shape smallcaps
3750 \emph on
3751 Ivan Schreter
3752 \shape default
3753 .
3754  It needs to be fixed to conform to the new Documentation Style sheet and
3755  to make use of the new v1.0 features.
3756  The whole thing also needs to be merged with the section following it.-jw
3757  It may also be badly out of date.-rh (2008)]
3758 \end_layout
3759
3760 \begin_layout Subsection
3761 Defining Own Keymaps: Keymap File Format
3762 \end_layout
3763
3764 \begin_layout Standard
3765 Let's look at a keyboard definition file a little closer.
3766  It is a plain text file defining
3767 \end_layout
3768
3769 \begin_layout Itemize
3770 key-to-key or key-to-string translations
3771 \end_layout
3772
3773 \begin_layout Itemize
3774 dead keys
3775 \end_layout
3776
3777 \begin_layout Itemize
3778 dead keys exceptions
3779 \end_layout
3780
3781 \begin_layout Standard
3782 To define key-to-key or key-to-string translation, use this command:
3783 \end_layout
3784
3785 \begin_layout Quotation
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790
3791 \backslash
3792 kmap
3793 \end_layout
3794
3795 \end_inset
3796
3797  
3798 \begin_inset Flex Code
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802 key
3803 \end_layout
3804
3805 \end_inset
3806
3807  outstring 
3808 \end_layout
3809
3810 \begin_layout Standard
3811 where 
3812 \begin_inset Flex Code
3813 status collapsed
3814
3815 \begin_layout Plain Layout
3816 key
3817 \end_layout
3818
3819 \end_inset
3820
3821  is the key to be translated and 
3822 \begin_inset Flex Code
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826 outstring
3827 \end_layout
3828
3829 \end_inset
3830
3831  is the string to be inserted into the document.
3832  To define dead keys, use:
3833 \end_layout
3834
3835 \begin_layout Quotation
3836 \begin_inset Flex Code
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840
3841 \backslash
3842 kmod
3843 \end_layout
3844
3845 \end_inset
3846
3847  
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852 key
3853 \end_layout
3854
3855 \end_inset
3856
3857  deadkey
3858 \end_layout
3859
3860 \begin_layout Standard
3861 where 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 key
3867 \end_layout
3868
3869 \end_inset
3870
3871  is a keyboard key and 
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 deadkey
3877 \end_layout
3878
3879 \end_inset
3880
3881  is dead key name.
3882  The following dead keys are supported (shortcut name is in parentheses):
3883 \end_layout
3884
3885 \begin_layout Quotation
3886
3887 \emph on
3888 Name
3889 \begin_inset space \hfill{}
3890 \end_inset
3891
3892 Example
3893 \end_layout
3894
3895 \begin_layout Quotation
3896 acute (acu)
3897 \begin_inset space \hfill{}
3898 \end_inset
3899
3900 áéíóú
3901 \end_layout
3902
3903 \begin_layout Quotation
3904 grave (gra)
3905 \begin_inset space \hfill{}
3906 \end_inset
3907
3908 àèìòù
3909 \end_layout
3910
3911 \begin_layout Quotation
3912 macron (mac)
3913 \begin_inset space \hfill{}
3914 \end_inset
3915
3916  ō
3917 \end_layout
3918
3919 \begin_layout Quotation
3920 tilde (til)
3921 \begin_inset space \hfill{}
3922 \end_inset
3923
3924 ñÑ
3925 \end_layout
3926
3927 \begin_layout Quotation
3928 underbar (underb)
3929 \begin_inset space \hfill{}
3930 \end_inset
3931
3932
3933 \begin_inset ERT
3934 status open
3935
3936 \begin_layout Plain Layout
3937
3938
3939 \backslash
3940 b o
3941 \end_layout
3942
3943 \end_inset
3944
3945
3946 \end_layout
3947
3948 \begin_layout Quotation
3949 cedilla (ced)
3950 \begin_inset space \hfill{}
3951 \end_inset
3952
3953 çÇ
3954 \end_layout
3955
3956 \begin_layout Quotation
3957 underdot (underd)
3958 \begin_inset space \hfill{}
3959 \end_inset
3960
3961
3962 \begin_inset ERT
3963 status open
3964
3965 \begin_layout Plain Layout
3966
3967
3968 \backslash
3969 d o
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \end_layout
3976
3977 \begin_layout Quotation
3978 circumflex (circu)
3979 \begin_inset space \hfill{}
3980 \end_inset
3981
3982 âêîôû
3983 \end_layout
3984
3985 \begin_layout Quotation
3986 circle (circl)
3987 \begin_inset space \hfill{}
3988 \end_inset
3989
3990 ÅůŮ
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 tie (tie)
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998
3999 \begin_inset ERT
4000 status open
4001
4002 \begin_layout Plain Layout
4003
4004
4005 \backslash
4006 t o
4007 \end_layout
4008
4009 \end_inset
4010
4011
4012 \end_layout
4013
4014 \begin_layout Quotation
4015 breve (bre)
4016 \begin_inset space \hfill{}
4017 \end_inset
4018
4019 ă
4020 \begin_inset ERT
4021 status open
4022
4023 \begin_layout Plain Layout
4024
4025
4026 \backslash
4027 u o
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \end_layout
4034
4035 \begin_layout Quotation
4036 caron (car)
4037 \begin_inset space \hfill{}
4038 \end_inset
4039
4040 čšž
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 hungarian umlaut (hug)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048 őű
4049 \end_layout
4050
4051 \begin_layout Quotation
4052 umlaut (uml)
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056 äöü
4057 \end_layout
4058
4059 \begin_layout Quotation
4060 dot (dot)
4061 \begin_inset space \hfill{}
4062 \end_inset
4063
4064 ż
4065 \begin_inset ERT
4066 status open
4067
4068 \begin_layout Plain Layout
4069
4070
4071 \backslash
4072 .s
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \end_layout
4079
4080 \begin_layout Standard
4081 Since in many international keyboards there are exceptions to what some
4082  dead keys should do, you can define them using
4083 \end_layout
4084
4085 \begin_layout Quotation
4086 \begin_inset Flex Code
4087 status collapsed
4088
4089 \begin_layout Plain Layout
4090
4091 \backslash
4092 kxmod
4093 \end_layout
4094
4095 \end_inset
4096
4097  deadkey key outstring
4098 \end_layout
4099
4100 \begin_layout Standard
4101 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4102 , so you put in
4103 \end_layout
4104
4105 \begin_layout Quotation
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110
4111 \backslash
4112 kxmod
4113 \end_layout
4114
4115 \end_inset
4116
4117  caron o "
4118 \backslash
4119 ^o"
4120 \end_layout
4121
4122 \begin_layout Standard
4123 to make it work correctly.
4124  Also, you have to define as exceptions dead keys over i and j, to remove
4125  the dot from them before inserting an accent mark.
4126  I will change this when the time comes, but so far I haven't had time.
4127 \end_layout
4128
4129 \begin_layout Standard
4130 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4131  double backslash.
4132  Also, quotes and 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 #
4138 \end_layout
4139
4140 \end_inset
4141
4142  have different meaning.
4143  
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 #
4149 \end_layout
4150
4151 \end_inset
4152
4153  marks comments, quotes start and end \SpecialChar LaTeX
4154 -style commands.
4155  To enter quote, you'll need to use 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \backslash
4162 "
4163 \end_layout
4164
4165 \end_inset
4166
4167 , to enter 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172 #
4173 \end_layout
4174
4175 \end_inset
4176
4177 , use 
4178 \begin_inset Flex Code
4179 status collapsed
4180
4181 \begin_layout Plain Layout
4182
4183 \backslash
4184 #
4185 \end_layout
4186
4187 \end_inset
4188
4189 .
4190 \end_layout
4191
4192 \begin_layout Standard
4193 If you make a keyboard description file that works for your language, please
4194  mail it to me, so I can include it in the next keymap distribution.
4195 \end_layout
4196
4197 \begin_layout Standard
4198 More keywords will be supported in keymap configuration file in future,
4199  like
4200 \end_layout
4201
4202 \begin_layout Itemize
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207
4208 \backslash
4209 kinclude filename
4210 \end_layout
4211
4212 \end_inset
4213
4214
4215 \emph on
4216
4217 \begin_inset space \hfill{}
4218 \end_inset
4219
4220
4221 \begin_inset Flex Code
4222 status collapsed
4223
4224 \begin_layout Plain Layout
4225 include
4226 \end_layout
4227
4228 \end_inset
4229
4230  another file
4231 \end_layout
4232
4233 \begin_layout Itemize
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238
4239 \backslash
4240 kprog program
4241 \end_layout
4242
4243 \end_inset
4244
4245
4246 \emph on
4247
4248 \begin_inset space \hfill{}
4249 \end_inset
4250
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 define
4257 \end_layout
4258
4259 \end_inset
4260
4261  an external keymap translation program 
4262 \end_layout
4263
4264 \begin_layout Standard
4265 Also, it should look into 
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270 lyxrc
4271 \end_layout
4272
4273 \end_inset
4274
4275  file for defaults, too (for example, a 
4276 \begin_inset Flex Code
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280
4281 \backslash
4282 kinclude
4283 \end_layout
4284
4285 \end_inset
4286
4287  option to include default keyboard).
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Section
4296 International Keymap Stuff
4297 \begin_inset CommandInset label
4298 LatexCommand label
4299 name "sec:International-Keymap-Stuff"
4300
4301 \end_inset
4302
4303
4304 \end_layout
4305
4306 \begin_layout Standard
4307 \begin_inset Note Note
4308 status open
4309
4310 \begin_layout Plain Layout
4311 In doing the revisions on this document in March 2008, I did not look over
4312  this stuff, as I do not understand it.
4313  It would be good if someone else could do so.
4314  (RH)
4315 \end_layout
4316
4317 \end_inset
4318
4319
4320 \end_layout
4321
4322 \begin_layout Standard
4323 The next two sections describe the 
4324 \begin_inset Flex Code
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328
4329 \shape up
4330 .kmap
4331 \end_layout
4332
4333 \end_inset
4334
4335  and 
4336 \begin_inset Flex Code
4337 status collapsed
4338
4339 \begin_layout Plain Layout
4340
4341 \shape up
4342 .cdef
4343 \end_layout
4344
4345 \end_inset
4346
4347  file syntax in detail.
4348  These sections should help you design your own key map if the ones provided
4349  do not meet your needs.
4350 \end_layout
4351
4352 \begin_layout Subsection
4353 The .kmap File
4354 \end_layout
4355
4356 \begin_layout Standard
4357
4358 \shape up
4359 .
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 kmap
4365 \end_layout
4366
4367 \end_inset
4368
4369  file maps keystrokes to characters or strings.
4370  As the name suggests, it sets a keyboard mapping.
4371  The 
4372 \begin_inset Flex Code
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376 .kmap
4377 \end_layout
4378
4379 \end_inset
4380
4381
4382 \shape default
4383  file keywords 
4384 \shape up
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \shape up
4392 kmap
4393 \end_layout
4394
4395 \end_inset
4396
4397
4398 \shape default
4399 ,
4400 \shape up
4401  
4402 \shape default
4403
4404 \begin_inset Flex Code
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408
4409 \shape up
4410 kmod
4411 \end_layout
4412
4413 \end_inset
4414
4415 ,
4416 \shape up
4417  
4418 \shape default
4419
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424
4425 \shape up
4426 kxmod
4427 \end_layout
4428
4429 \end_inset
4430
4431 , and 
4432 \begin_inset Flex Code
4433 status collapsed
4434
4435 \begin_layout Plain Layout
4436
4437 \shape up
4438 kcomb
4439 \end_layout
4440
4441 \end_inset
4442
4443  are described in this section.
4444 \end_layout
4445
4446 \begin_layout Labeling
4447 \labelwidthstring 00.00.0000
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452
4453 \shape up
4454 kmap
4455 \end_layout
4456
4457 \end_inset
4458
4459  Map a character to a string
4460 \end_layout
4461
4462 \begin_layout LyX-Code
4463
4464 \backslash
4465 kmap 
4466 \family roman
4467 \emph on
4468 char
4469 \family default
4470 \emph default
4471  
4472 \family roman
4473 \emph on
4474 string
4475 \end_layout
4476
4477 \begin_layout Standard
4478 This will ma
4479 \family roman
4480 p
4481 \family default
4482  
4483 \family roman
4484 \emph on
4485 char
4486 \family default
4487 \emph default
4488  
4489 \family roman
4490 to
4491 \family default
4492  
4493 \family roman
4494 \emph on
4495 string
4496 \emph default
4497 .
4498  Note that in
4499 \family default
4500  
4501 \family roman
4502 \emph on
4503 string
4504 \emph default
4505 ,
4506 \family default
4507  
4508 \family roman
4509 \shape up
4510 the double-quote (")
4511 \family default
4512 \shape default
4513  
4514 \family roman
4515 and
4516 \family default
4517  
4518 \family roman
4519 \shape up
4520 the backslash (
4521 \backslash
4522 )
4523 \family default
4524 \shape default
4525  
4526 \family roman
4527 must be escaped with a preceding backslash (
4528 \shape up
4529
4530 \backslash
4531
4532 \shape default
4533 )
4534 \family default
4535 .
4536 \end_layout
4537
4538 \begin_layout Standard
4539 An example of a 
4540 \begin_inset Flex Noun
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544
4545 \shape up
4546 kmap
4547 \end_layout
4548
4549 \end_inset
4550
4551  statement to cause the symbol 
4552 \begin_inset Flex Noun
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556
4557 \shape up
4558 /
4559 \end_layout
4560
4561 \end_inset
4562
4563  to be output for the keystroke 
4564 \begin_inset Flex Noun
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568
4569 \shape up
4570 &
4571 \end_layout
4572
4573 \end_inset
4574
4575  is:
4576 \end_layout
4577
4578 \begin_layout LyX-Code
4579
4580 \backslash
4581 kmap & /
4582 \end_layout
4583
4584 \begin_layout Labeling
4585 \labelwidthstring 00.00.0000
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \shape up
4592 kmod
4593 \end_layout
4594
4595 \end_inset
4596
4597  Specify an accent character
4598 \end_layout
4599
4600 \begin_layout LyX-Code
4601
4602 \backslash
4603 kmod 
4604 \family roman
4605 \emph on
4606 char accent allowed
4607 \end_layout
4608
4609 \begin_layout Standard
4610 This will make the cha
4611 \family roman
4612 racter
4613 \family default
4614  
4615 \family roman
4616 \emph on
4617 char
4618 \family default
4619 \emph default
4620  
4621 \family roman
4622 \shape up
4623 \emph on
4624 be an accent
4625 \family default
4626 \shape default
4627 \emph default
4628  
4629 \family roman
4630 \shape up
4631 on the
4632 \family default
4633 \shape default
4634  
4635 \family roman
4636 \shape up
4637 \emph on
4638 allowed
4639 \family default
4640 \shape default
4641 \emph default
4642  
4643 \family roman
4644 \shape up
4645 cha
4646 \family default
4647 racter(s).
4648  This is the dead key
4649 \begin_inset Foot
4650 status collapsed
4651
4652 \begin_layout Plain Layout
4653 The term 
4654 \family roman
4655 \emph on
4656 dead key
4657 \family default
4658 \emph default
4659  refers to a key that does not produce a character by itself, but when followed
4660  with another key, produces the desired accent character.
4661  For example, a German characte
4662 \family roman
4663 r with an umlaut like
4664 \family default
4665  
4666 \family roman
4667 \emph on
4668 ä
4669 \family default
4670 \emph default
4671  
4672 \family roman
4673 can be produced in this manner.
4674 \end_layout
4675
4676 \end_inset
4677
4678  mechanism.
4679  
4680 \end_layout
4681
4682 \begin_layout Standard
4683 If you 
4684 \family roman
4685 hit
4686 \family default
4687  
4688 \family roman
4689 \emph on
4690 char
4691 \family default
4692 \emph default
4693  
4694 \family roman
4695 and then another key not in
4696 \family default
4697  
4698 \family roman
4699 \emph on
4700 allowed
4701 \emph default
4702 , you will get a
4703 \family default
4704  
4705 \family roman
4706 \emph on
4707 char
4708 \family default
4709 \emph default
4710  
4711 \family roman
4712 followed by the other, not allowed key, as output.
4713
4714 \family default
4715  Note that a 
4716 \begin_inset Flex Noun
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720
4721 \shape up
4722 Backspace
4723 \end_layout
4724
4725 \end_inset
4726
4727  cancels a dead key, so if 
4728 \family roman
4729 you hit
4730 \family default
4731  
4732 \family roman
4733 \emph on
4734 char
4735 \family default
4736 \emph default
4737  
4738 \begin_inset Flex Noun
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742
4743 \shape up
4744 \emph on
4745 Backspace
4746 \end_layout
4747
4748 \end_inset
4749
4750 , the cursor will not go one position backwards but will instead cancel
4751  the effect t
4752 \family roman
4753 hat
4754 \family default
4755  
4756 \family roman
4757 \shape up
4758 \emph on
4759 char
4760 \family default
4761 \shape default
4762 \emph default
4763  
4764 \family roman
4765 \shape up
4766 might have had on the next keystroke.
4767  
4768 \end_layout
4769
4770 \begin_layout Standard
4771 The following example specifies that the character ' is to be an acute accent,
4772  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4773 \end_layout
4774
4775 \begin_layout LyX-Code
4776
4777 \backslash
4778 kmod ' acute aeiouAEIOU
4779 \end_layout
4780
4781 \begin_layout Labeling
4782 \labelwidthstring 00.00.0000
4783 \begin_inset Flex Code
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 kxmod
4788 \end_layout
4789
4790 \end_inset
4791
4792  Specify an exception to the accent character
4793 \end_layout
4794
4795 \begin_layout LyX-Code
4796
4797 \backslash
4798 kxmod  
4799 \family roman
4800 \emph on
4801 accent char result
4802 \end_layout
4803
4804 \begin_layout Standard
4805 This defines an exce
4806 \family roman
4807 ption for
4808 \family default
4809  
4810 \family roman
4811 \emph on
4812 accent
4813 \family default
4814 \emph default
4815  
4816 \family roman
4817 on
4818 \family default
4819  
4820 \family roman
4821 \emph on
4822 char
4823 \emph default
4824 .
4825  T
4826 \shape up
4827 he
4828 \family default
4829 \shape default
4830  
4831 \family roman
4832 \shape up
4833 \emph on
4834 accent
4835 \family default
4836 \shape default
4837 \emph default
4838  
4839 \family roman
4840 \shape up
4841 must
4842 \family default
4843 \shape default
4844  
4845 \shape up
4846 have been assigned a keystroke with a previous
4847 \shape default
4848  
4849 \begin_inset Flex Code
4850 status collapsed
4851
4852 \begin_layout Plain Layout
4853
4854 \shape up
4855
4856 \backslash
4857 kmo
4858 \shape default
4859 d
4860 \end_layout
4861
4862 \end_inset
4863
4864  declar
4865 \family roman
4866 ation and
4867 \family default
4868  
4869 \family roman
4870 \emph on
4871 char
4872 \family default
4873 \emph default
4874  
4875 \family roman
4876 must not belong in the
4877 \family default
4878  
4879 \family roman
4880 \emph on
4881 allowed
4882 \family default
4883 \emph default
4884  
4885 \family roman
4886 set of
4887 \family default
4888  
4889 \family roman
4890 \emph on
4891 accent
4892 \emph default
4893 .
4894  When
4895 \family default
4896  
4897 \family roman
4898 \shape up
4899 you enter the
4900 \family default
4901 \shape default
4902  
4903 \family roman
4904 \shape up
4905 \emph on
4906 accent char
4907 \family default
4908 \shape default
4909 \emph default
4910  
4911 \family roman
4912 \shape up
4913 sequence,
4914 \family default
4915 \shape default
4916  
4917 \family roman
4918 \shape up
4919 \emph on
4920 result
4921 \emph default
4922  is produced.
4923  If such a declaration does not exist in
4924 \family default
4925 \shape default
4926  
4927 \shape up
4928 the
4929 \shape default
4930  
4931 \begin_inset Flex Code
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935
4936 \shape up
4937 .kmap
4938 \end_layout
4939
4940 \end_inset
4941
4942  file and yo
4943 \family roman
4944 u enter
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 accent char
4950 \emph default
4951 , you get
4952 \family default
4953  
4954 \family roman
4955 \emph on
4956 accent_key char
4957 \emph default
4958  where
4959 \family default
4960  
4961 \family roman
4962 \emph on
4963 accent_key
4964 \emph default
4965  is the first arg
4966 \family default
4967 ument of the 
4968 \begin_inset Flex Code
4969 status collapsed
4970
4971 \begin_layout Plain Layout
4972
4973 \shape up
4974
4975 \backslash
4976 kmod
4977 \end_layout
4978
4979 \end_inset
4980
4981  declaration.
4982  
4983 \end_layout
4984
4985 \begin_layout Standard
4986 The following command produces causes äi to be produced when you enter acute-i
4987  ('i):
4988 \end_layout
4989
4990 \begin_layout LyX-Code
4991
4992 \backslash
4993 kxmod acute i "
4994 \backslash
4995
4996 \backslash
4997 '{
4998 \backslash
4999
5000 \backslash
5001 i}"
5002 \end_layout
5003
5004 \begin_layout Labeling
5005 \labelwidthstring 00.00.0000
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 kcomb
5011 \end_layout
5012
5013 \end_inset
5014
5015  Combine two accent characters
5016 \end_layout
5017
5018 \begin_layout LyX-Code
5019
5020 \backslash
5021 kcomb 
5022 \family roman
5023 \emph on
5024 accent1 accent2 allowed
5025 \end_layout
5026
5027 \begin_layout Standard
5028 This one is getting pretty esoteric.
5029  It allows you to combine the effect 
5030 \family roman
5031 of
5032 \family default
5033  
5034 \family roman
5035 \emph on
5036 accent1
5037 \family default
5038 \emph default
5039  
5040 \family roman
5041 and
5042 \family default
5043  
5044 \family roman
5045 \emph on
5046 accent2
5047 \family default
5048 \emph default
5049  
5050 \family roman
5051 (in that order!) on
5052 \family default
5053  
5054 \family roman
5055 \emph on
5056 allowed
5057 \family default
5058 \emph default
5059  
5060 \family roman
5061 chars.
5062  The keystrokes for
5063 \family default
5064  
5065 \family roman
5066 \emph on
5067 accent1
5068 \family default
5069 \emph default
5070  
5071 \family roman
5072 and
5073 \family default
5074  
5075 \family roman
5076 \emph on
5077 accent2
5078 \family default
5079 \emph default
5080  
5081 \family roman
5082 must have be
5083 \family default
5084 en set with a 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \shape up
5091
5092 \backslash
5093 kmod
5094 \end_layout
5095
5096 \end_inset
5097
5098  command at 
5099 \family roman
5100 a
5101 \family default
5102  
5103 \family roman
5104 \emph on
5105 previous
5106 \family default
5107 \emph default
5108  
5109 \family roman
5110 point in the
5111 \family default
5112  file.
5113  
5114 \end_layout
5115
5116 \begin_layout Standard
5117 Consider this example from the 
5118 \begin_inset Flex Code
5119 status collapsed
5120
5121 \begin_layout Plain Layout
5122
5123 \shape up
5124 greek.kmap
5125 \end_layout
5126
5127 \end_inset
5128
5129  file:
5130 \end_layout
5131
5132 \begin_layout LyX-Code
5133
5134 \backslash
5135 kmod ; acute aeioyvhAEIOYVH 
5136 \backslash
5137 kmod : umlaut iyIY 
5138 \backslash
5139 kcomb acute umlaut iyIY
5140 \end_layout
5141
5142 \begin_layout Standard
5143 This allows you to press 
5144 \begin_inset Flex Noun
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148
5149 \shape up
5150 ;:i
5151 \end_layout
5152
5153 \end_inset
5154
5155  and get the effect of 
5156 \begin_inset Flex Code
5157 status collapsed
5158
5159 \begin_layout Plain Layout
5160
5161 \shape up
5162
5163 \backslash
5164 '{
5165 \backslash
5166 "{i}}
5167 \end_layout
5168
5169 \end_inset
5170
5171 .
5172  
5173 \family roman
5174 \shape up
5175 A backspace
5176 \family default
5177 \shape default
5178  in this case cancels the last dead key, so if you press 
5179 \begin_inset Flex Noun
5180 status collapsed
5181
5182 \begin_layout Plain Layout
5183
5184 \shape up
5185 ;: Backspace i
5186 \end_layout
5187
5188 \end_inset
5189
5190  you get 
5191 \begin_inset Flex Code
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195
5196 \shape up
5197
5198 \backslash
5199 '{i}
5200 \end_layout
5201
5202 \end_inset
5203
5204 .
5205 \end_layout
5206
5207 \begin_layout Subsection
5208 The .cdef File
5209 \end_layout
5210
5211 \begin_layout Standard
5212 After the 
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \shape up
5219 .kmap
5220 \end_layout
5221
5222 \end_inset
5223
5224  mapping is performed, a 
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 \shape up
5231 .cde
5232 \shape default
5233 f
5234 \end_layout
5235
5236 \end_inset
5237
5238  file maps the strings that the symbols generate to characters in the current
5239  font.
5240  The \SpecialChar LyX
5241  distribution currently includes at least the 
5242 \begin_inset Flex Code
5243 status collapsed
5244
5245 \begin_layout Plain Layout
5246
5247 \shape up
5248 iso8859-1.cdef
5249 \end_layout
5250
5251 \end_inset
5252
5253  and 
5254 \begin_inset Flex Code
5255 status collapsed
5256
5257 \begin_layout Plain Layout
5258
5259 \shape up
5260 iso8859-2.cdef
5261 \end_layout
5262
5263 \end_inset
5264
5265  files.
5266 \end_layout
5267
5268 \begin_layout Standard
5269 In general the 
5270 \begin_inset Flex Code
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274
5275 \shape up
5276 .cdef
5277 \end_layout
5278
5279 \end_inset
5280
5281  file is a sequence of declarations of the form
5282 \end_layout
5283
5284 \begin_layout LyX-Code
5285
5286 \family roman
5287 \emph on
5288 char_index_in_set
5289 \family default
5290 \emph default
5291  
5292 \family roman
5293 \emph on
5294  string
5295 \end_layout
5296
5297 \begin_layout Standard
5298 For example, in order to map 
5299 \begin_inset Flex Noun
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303
5304 \shape up
5305
5306 \backslash
5307 '{e}
5308 \end_layout
5309
5310 \end_inset
5311
5312  to the corresponding character in the iso-8859-1 set (233), the following
5313  declaration is used
5314 \end_layout
5315
5316 \begin_layout LyX-Code
5317 233 "
5318 \backslash
5319
5320 \backslash
5321 '{e}"
5322 \end_layout
5323
5324 \begin_layout Standard
5325 with 
5326 \begin_inset Flex Code
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330
5331 \backslash
5332
5333 \end_layout
5334
5335 \end_inset
5336
5337  and 
5338 \begin_inset Flex Code
5339 status collapsed
5340
5341 \begin_layout Plain Layout
5342 "
5343 \end_layout
5344
5345 \end_inset
5346
5347  being escap
5348 \family roman
5349 ed in
5350 \family default
5351  
5352 \family roman
5353 \emph on
5354 string
5355 \emph default
5356 .
5357  Note that
5358 \family default
5359  the same character can apply to more than one string.
5360  In the 
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 i
5366 \shape up
5367 so-8859-7.cdef
5368 \end_layout
5369
5370 \end_inset
5371
5372  file you have
5373 \end_layout
5374
5375 \begin_layout LyX-Code
5376 192 "
5377 \backslash
5378
5379 \backslash
5380 '{
5381 \backslash
5382
5383 \backslash
5384
5385 \backslash
5386 "{i}}"
5387 \begin_inset Newline newline
5388 \end_inset
5389
5390 192 "
5391 \backslash
5392
5393 \backslash
5394
5395 \backslash
5396 "{
5397 \backslash
5398
5399 \backslash
5400 '{i}}"
5401 \end_layout
5402
5403 \begin_layout Standard
5404 If \SpecialChar LyX
5405  cannot find a mapping for the string produced by the keystroke or a
5406  deadkey sequence, it will check if it looks like an accented char and try
5407  to draw an accent over the character on screen.
5408 \end_layout
5409
5410 \begin_layout Subsection
5411 Dead Keys
5412 \end_layout
5413
5414 \begin_layout Standard
5415 There is a second way to add support for international characters through
5416  so-called dead-keys.
5417  A dead-key works in combination with a letter to produce an accented character.
5418  Here, we'll explain how to create a really simple dead-key to illustrate
5419  how they work.
5420 \end_layout
5421
5422 \begin_layout Standard
5423 Suppose you happen to need the circumflex character, 
5424 \begin_inset Quotes eld
5425 \end_inset
5426
5427  ̂
5428 \begin_inset Quotes erd
5429 \end_inset
5430
5431 .
5432  You could bind the 
5433 \begin_inset Flex Noun
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 ^
5438 \end_layout
5439
5440 \end_inset
5441
5442 -key [a.k.a.
5443 \begin_inset space ~
5444 \end_inset
5445
5446
5447 \begin_inset Flex Noun
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 Shift-6
5452 \end_layout
5453
5454 \end_inset
5455
5456 ] to the \SpecialChar LyX
5457  command 
5458 \begin_inset Flex Code
5459 status collapsed
5460
5461 \begin_layout Plain Layout
5462 accent-circumflex
5463 \end_layout
5464
5465 \end_inset
5466
5467  in your 
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 lyxrc
5473 \end_layout
5474
5475 \end_inset
5476
5477  file.
5478  Now, whenever you type the 
5479 \begin_inset Flex Noun
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 ^
5484 \end_layout
5485
5486 \end_inset
5487
5488 -key followed by a letter, that letter will have a circumflex accent on
5489  it.
5490  For example, the sequence 
5491 \begin_inset Quotes eld
5492 \end_inset
5493
5494
5495 \begin_inset Flex Noun
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 ^e
5500 \end_layout
5501
5502 \end_inset
5503
5504
5505 \begin_inset Quotes erd
5506 \end_inset
5507
5508  produces the letter: 
5509 \begin_inset Quotes eld
5510 \end_inset
5511
5512 ê
5513 \begin_inset Quotes erd
5514 \end_inset
5515
5516 .
5517  If you tried to type 
5518 \begin_inset Quotes eld
5519 \end_inset
5520
5521
5522 \begin_inset Flex Noun
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 ^t
5527 \end_layout
5528
5529 \end_inset
5530
5531
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535 , however, \SpecialChar LyX
5536  will complain with a beep, since a 
5537 \begin_inset Quotes eld
5538 \end_inset
5539
5540
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 t
5546 \end_layout
5547
5548 \end_inset
5549
5550
5551 \begin_inset Quotes erd
5552 \end_inset
5553
5554  never takes a circumflex accent.
5555  Hitting 
5556 \begin_inset Flex Noun
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 Space
5561 \end_layout
5562
5563 \end_inset
5564
5565  after a dead-key produces the bare-accent.
5566  Please note this last point! If you bind a key to a dead-key, you'll need
5567  to rebind the character on that key to yet another key.
5568  Binding the 
5569 \begin_inset Flex Noun
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 ,-key
5574 \end_layout
5575
5576 \end_inset
5577
5578  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5579 \end_layout
5580
5581 \begin_layout Standard
5582 One common way to bind dead-keys is to use 
5583 \begin_inset Flex Noun
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 Meta-
5588 \end_layout
5589
5590 \end_inset
5591
5592
5593 \begin_inset Flex Noun
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 Ctrl-
5598 \end_layout
5599
5600 \end_inset
5601
5602 , and 
5603 \begin_inset Flex Noun
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 Shift-
5608 \end_layout
5609
5610 \end_inset
5611
5612  in combination with an accent, like 
5613 \begin_inset Quotes eld
5614 \end_inset
5615
5616
5617 \begin_inset Flex Noun
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 ~
5622 \end_layout
5623
5624 \end_inset
5625
5626
5627 \begin_inset Quotes erd
5628 \end_inset
5629
5630  or 
5631 \begin_inset Quotes eld
5632 \end_inset
5633
5634
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 ,
5640 \end_layout
5641
5642 \end_inset
5643
5644
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  or 
5649 \begin_inset Quotes eld
5650 \end_inset
5651
5652
5653 \begin_inset Flex Noun
5654 status collapsed
5655
5656 \begin_layout Plain Layout
5657 ^
5658 \end_layout
5659
5660 \end_inset
5661
5662
5663 \begin_inset Quotes erd
5664 \end_inset
5665
5666 .
5667  Another way involves using 
5668 \begin_inset Flex Code
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672 xmodmap
5673 \end_layout
5674
5675 \end_inset
5676
5677  and 
5678 \begin_inset Flex Code
5679 status collapsed
5680
5681 \begin_layout Plain Layout
5682 xkeycaps
5683 \end_layout
5684
5685 \end_inset
5686
5687  to set up the special 
5688 \begin_inset Flex Code
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692 Mode_Switch
5693 \end_layout
5694
5695 \end_inset
5696
5697  key.
5698  The 
5699 \begin_inset Flex Code
5700 status collapsed
5701
5702 \begin_layout Plain Layout
5703 Mode_Switch
5704 \end_layout
5705
5706 \end_inset
5707
5708  acts in some ways just like 
5709 \begin_inset Flex Noun
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 Shift
5714 \end_layout
5715
5716 \end_inset
5717
5718  and permits you to bind keys to accented characters.
5719  You can also turn keys into dead-keys by binding them to something like
5720  
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 usldead_cedilla
5726 \end_layout
5727
5728 \end_inset
5729
5730  and then binding this symbolic key to the corresponding \SpecialChar LyX
5731  command.
5732 \begin_inset Foot
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 Note from 
5737 \noun on
5738 John Weiss
5739 \noun default
5740 : This is exactly what I do in my 
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 ~/.lyx/lyxrc
5746 \end_layout
5747
5748 \end_inset
5749
5750  and my 
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 ~/.xmodmap
5756 \end_layout
5757
5758 \end_inset
5759
5760  files.
5761  I have my 
5762 \begin_inset Flex Noun
5763 status collapsed
5764
5765 \begin_layout Plain Layout
5766 Scroll
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Lock
5771 \end_layout
5772
5773 \end_inset
5774
5775  key set up as 
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 Mode_Shift
5781 \end_layout
5782
5783 \end_inset
5784
5785  and a bunch of these 
5786 \begin_inset Quotes eld
5787 \end_inset
5788
5789
5790 \begin_inset Flex Code
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 usldead_*
5795 \end_layout
5796
5797 \end_inset
5798
5799
5800 \begin_inset Quotes erd
5801 \end_inset
5802
5803  symbolic keys bound such things as 
5804 \begin_inset Flex Noun
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 Scroll
5809 \begin_inset space ~
5810 \end_inset
5811
5812 Lock-^
5813 \end_layout
5814
5815 \end_inset
5816
5817  and 
5818 \begin_inset Flex Noun
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 Scroll
5823 \begin_inset space ~
5824 \end_inset
5825
5826 Lock-~
5827 \end_layout
5828
5829 \end_inset
5830
5831 .
5832  This is how I produce my accented characters.
5833 \end_layout
5834
5835 \end_inset
5836
5837  You can make just about anything into the 
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 Mode_Switch
5843 \end_layout
5844
5845 \end_inset
5846
5847  key: One of the 
5848 \begin_inset Flex Noun
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 Ctrl-
5853 \end_layout
5854
5855 \end_inset
5856
5857  keys, a spare function key, etc.
5858  As for the \SpecialChar LyX
5859  commands that produce accents, check the entry for 
5860 \begin_inset Flex Code
5861 status collapsed
5862
5863 \begin_layout Plain Layout
5864 accent-acute
5865 \end_layout
5866
5867 \end_inset
5868
5869  in the 
5870 \emph on
5871 Reference Manual
5872 \emph default
5873 .
5874  You'll find the complete list there.
5875 \end_layout
5876
5877 \begin_layout Subsection
5878 Saving your Language Configuration
5879 \end_layout
5880
5881 \begin_layout Standard
5882 You can edit your preferences so that your desired language environment
5883  is automatically configured when \SpecialChar LyX
5884  starts up, via the 
5885 \begin_inset Flex Noun
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 Edit\SpecialChar menuseparator
5890 Preferences
5891 \end_layout
5892
5893 \end_inset
5894
5895  dialog.
5896 \end_layout
5897
5898 \begin_layout Chapter
5899 Installing New Document Classes, Layouts, and Templates
5900 \begin_inset CommandInset label
5901 LatexCommand label
5902 name "cha:Installing-New-Document"
5903
5904 \end_inset
5905
5906
5907 \begin_inset Argument 1
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911 Installing New Document Classes
5912 \end_layout
5913
5914 \end_inset
5915
5916
5917 \end_layout
5918
5919 \begin_layout Standard
5920 In this chapter, we describe the procedures for creating and installing
5921  new \SpecialChar LyX
5922  layout and template files, as well as offer a refresher on correctly
5923  installing new \SpecialChar LaTeX
5924  document classes.
5925  
5926 \end_layout
5927
5928 \begin_layout Standard
5929 First, let us a say a few words about how one ought to think about the relation
5930  between \SpecialChar LyX
5931  and \SpecialChar LaTeX
5932 .
5933  The thing to understand is that, in a certain sense, \SpecialChar LyX
5934  doesn't know anything
5935  about \SpecialChar LaTeX
5936 .
5937  Indeed, from \SpecialChar LyX
5938 's point of view, \SpecialChar LaTeX
5939  is just one of several 
5940 \begin_inset Quotes eld
5941 \end_inset
5942
5943 backend formats
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947  in which it is capable of producing output.
5948  Other such formats are DocBook, plaintext, and XHTML.
5949  \SpecialChar LaTeX
5950  is, of course, a particularly important format, but very little of the
5951  information \SpecialChar LyX
5952  has about \SpecialChar LaTeX
5953  is actually contained in the program itself.
5954 \begin_inset Foot
5955 status collapsed
5956
5957 \begin_layout Plain Layout
5958 Some commands are sufficiently complex that they are 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 hardcoded
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  into \SpecialChar LyX
5967 .
5968  But the developers generally regard this as a Bad Thing.
5969 \end_layout
5970
5971 \end_inset
5972
5973  Rather, that information, even for the standard classes like 
5974 \begin_inset Flex Code
5975 status collapsed
5976
5977 \begin_layout Plain Layout
5978 article.cls
5979 \end_layout
5980
5981 \end_inset
5982
5983 , is contained in `layout files'.
5984  Similarly, \SpecialChar LyX
5985  itself does not know much about DocBook or XHTML.
5986  What it knows is contained in layout files.
5987 \end_layout
5988
5989 \begin_layout Standard
5990 You can think of the layout file for a given document class as a translation
5991  manual between \SpecialChar LyX
5992  constructs—paragraphs with their corresponding styles,
5993  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5994 , DocBook, or XHTML
5995  constructs.
5996  Almost everything \SpecialChar LyX
5997  knows about 
5998 \begin_inset Flex Code
5999 status collapsed
6000
6001 \begin_layout Plain Layout
6002 article.cls
6003 \end_layout
6004
6005 \end_inset
6006
6007 , for example, is contained in the file 
6008 \begin_inset Flex Code
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 article.layout
6013 \end_layout
6014
6015 \end_inset
6016
6017  and in various other files it includes.
6018  For this reason, anyone intending to write layout files should plan to
6019  study the existing files.
6020  A good place to start is with 
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 stdsections.inc
6026 \end_layout
6027
6028 \end_inset
6029
6030 , which is included in 
6031 \begin_inset Flex Code
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 article.layout
6036 \end_layout
6037
6038 \end_inset
6039
6040
6041 \begin_inset Flex Code
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 book.layout
6046 \end_layout
6047
6048 \end_inset
6049
6050 , and many of the other layout files for document classes.
6051  This file is where sections and the like are defined: 
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 stdsections.inc
6057 \end_layout
6058
6059 \end_inset
6060
6061  tells \SpecialChar LyX
6062  how paragraphs that are marked with the Section, Subsection, etc,
6063  styles can be translated into corresponding \SpecialChar LaTeX
6064 , DocBook, and XHTML commands
6065  and tags.
6066  The 
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 article.layout
6072 \end_layout
6073
6074 \end_inset
6075
6076  file basically just includes several of these 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 std*.inc
6082 \end_layout
6083
6084 \end_inset
6085
6086  files.
6087 \end_layout
6088
6089 \begin_layout Standard
6090 Defining the \SpecialChar LyX
6091 –\SpecialChar LaTeX
6092  correspondence is not the only thing layout files do, though.
6093  Their other job is to define how the \SpecialChar LyX
6094  constructs themselves will appear
6095  on-screen.
6096  The fact that layout files have these two jobs is often a source of confusion,
6097  because they are completely separate.
6098  Telling \SpecialChar LyX
6099  how to translate a certain paragraph style into \SpecialChar LaTeX
6100  does not tell
6101  \SpecialChar LyX
6102  how to display it; conversely, telling \SpecialChar LyX
6103  how to display a certain paragraph
6104  style does not tell \SpecialChar LyX
6105  how to translate it into \SpecialChar LaTeX
6106  (let alone tell \SpecialChar LaTeX
6107  how to
6108  display it).
6109  So, in general, when you define a new \SpecialChar LyX
6110  construct, you must always do two
6111  quite separate things: (i)
6112 \begin_inset space ~
6113 \end_inset
6114
6115 tell \SpecialChar LyX
6116  how to translate it into \SpecialChar LaTeX
6117  and (ii)
6118 \begin_inset space ~
6119 \end_inset
6120
6121 tell \SpecialChar LyX
6122  how to display it.
6123 \end_layout
6124
6125 \begin_layout Standard
6126 Much the same is true, of course, as regards \SpecialChar LyX
6127 's other backend formats, though
6128  XHTML is in some ways different, because in that case \SpecialChar LyX
6129  
6130 \emph on
6131 is
6132 \emph default
6133  able, to some extent, to use information about how it should display a
6134  paragraph on the screen to output information (in the form of CSS) about
6135  how the paragraph should be displayed in a browser.
6136  Even in this case, however, the distinction between what \SpecialChar LyX
6137  does internally
6138  and how things are rendered externally remains in force, and the two can
6139  be controlled separately.
6140  See 
6141 \begin_inset CommandInset ref
6142 LatexCommand ref
6143 reference "sec:Tags-for-XHTML"
6144
6145 \end_inset
6146
6147  for the details.
6148 \end_layout
6149
6150 \begin_layout Section
6151 Installing new \SpecialChar LaTeX
6152  files
6153 \end_layout
6154
6155 \begin_layout Standard
6156 Some installations may not include a \SpecialChar LaTeX
6157  package or class file that you would
6158  like to use within \SpecialChar LyX
6159 .
6160  For example, you might need Foil\SpecialChar TeX
6161 , a package for preparing slides for overhead
6162  projectors.
6163  Modern \SpecialChar LaTeX
6164  distributions like \SpecialChar TeX
6165 Live (2008 or newer) or MiK\SpecialChar TeX
6166  provide a user interface
6167  for installing such packages.
6168  For example, with MiK\SpecialChar TeX
6169 , you start the program 
6170 \begin_inset Quotes eld
6171 \end_inset
6172
6173 Package
6174 \begin_inset space ~
6175 \end_inset
6176
6177 Manager
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181  to get a list of available packages.
6182  To install one of them, right click on it or use the corresponding toolbar
6183  button.
6184 \end_layout
6185
6186 \begin_layout Standard
6187 If your \SpecialChar LaTeX
6188  distribution does not provide such a `package manager', or if the
6189  package is not available from your distribution, then follow these steps
6190  to install it manually:
6191 \end_layout
6192
6193 \begin_layout Enumerate
6194 Get the package from 
6195 \begin_inset CommandInset href
6196 LatexCommand href
6197 name "CTAN"
6198 target "http://www.ctan.org/"
6199 literal "false"
6200
6201 \end_inset
6202
6203  or wherever.
6204 \end_layout
6205
6206 \begin_layout Enumerate
6207 If the package contains a file with the ending 
6208 \begin_inset Quotes eld
6209 \end_inset
6210
6211
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 .ins
6217 \end_layout
6218
6219 \end_inset
6220
6221
6222 \begin_inset Quotes erd
6223 \end_inset
6224
6225  (is the case for Foil\SpecialChar TeX
6226 ) then open a console, change to the folder of this
6227  file and execute the command 
6228 \begin_inset Flex Code
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 latex foiltex.ins
6233 \end_layout
6234
6235 \end_inset
6236
6237 .
6238  You have now unpacked the package and have all files to install it.
6239  Most \SpecialChar LaTeX
6240 -packages are not packed and you can skip this step.
6241 \end_layout
6242
6243 \begin_layout Enumerate
6244 Now you need to decide if the package should be available for all users
6245  or only for you.
6246 \end_layout
6247
6248 \begin_deeper
6249 \begin_layout Enumerate
6250 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6251  for all users on your system, then install it in your `local' \SpecialChar TeX
6252  tree, otherwise
6253  install it in your own `user' \SpecialChar TeX
6254  tree.
6255  Where these trees should be created, if they do not already exist, depends
6256  on your system.
6257  To find this out, look in the file 
6258 \begin_inset Flex Code
6259 status collapsed
6260
6261 \begin_layout Plain Layout
6262 texmf.cnf
6263 \end_layout
6264
6265 \end_inset
6266
6267 .
6268 \begin_inset Foot
6269 status collapsed
6270
6271 \begin_layout Plain Layout
6272 This is usually in the directory 
6273 \begin_inset Flex Code
6274 status collapsed
6275
6276 \begin_layout Plain Layout
6277 $TEXMF/web2c
6278 \end_layout
6279
6280 \end_inset
6281
6282 , though you can execute the command 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 kpsewhich texmf.cnf
6288 \end_layout
6289
6290 \end_inset
6291
6292  to locate it.
6293 \end_layout
6294
6295 \end_inset
6296
6297  The location of the `local' \SpecialChar TeX
6298  tree is defined by the 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 TEXMFLOCAL
6304 \end_layout
6305
6306 \end_inset
6307
6308  variable; this is usually somewhere like 
6309 \begin_inset Flex Code
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 /usr/local/share/texmf
6314 \end_layout
6315
6316 \end_inset
6317
6318  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6319 Live
6320  distribution.
6321  The location of the `user' \SpecialChar TeX
6322  tree is defined by 
6323 \begin_inset Flex Code
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 TEXMFHOME
6328 \end_layout
6329
6330 \end_inset
6331
6332  and is commonly 
6333 \begin_inset Flex Code
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 $HOME/texmf
6338 \end_layout
6339
6340 \end_inset
6341
6342  or 
6343 \begin_inset Flex Code
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347
6348 \family sans
6349 $HOME/.texliveXXXX
6350 \end_layout
6351
6352 \end_inset
6353
6354 .
6355  (If these variables are not predefined, you have to define them.) You'll
6356  probably need root permissions to create or modify the `local' tree, but
6357  not for your `user' tree.
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361 In general, it is recommended to install in the user tree because your user
6362  will not be modified or even overwritten when you upgrade your system.
6363  It will typically also be backed up together with everything else when
6364  you backup your home directory (which, of course, you do on a regular basis).
6365 \end_layout
6366
6367 \begin_layout Enumerate
6368 On Windows, if you want the new package to be available for all users on
6369  your system, change to the folder where \SpecialChar LaTeX
6370  is installed and then change to
6371  the subfolder 
6372 \begin_inset Flex Code
6373 status collapsed
6374
6375 \begin_layout Plain Layout
6376 ~
6377 \backslash
6378 tex
6379 \backslash
6380 latex
6381 \end_layout
6382
6383 \end_inset
6384
6385 .
6386  (For MiK\SpecialChar TeX
6387 , this would be by default the folder 
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 ~:
6393 \backslash
6394 Programs
6395 \backslash
6396 MiKTeX
6397 \backslash
6398 tex
6399 \backslash
6400 latex
6401 \end_layout
6402
6403 \end_inset
6404
6405 .)
6406 \begin_inset Foot
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410 Note that this will be the correct path only on English installations.
6411  On a German one, it would be 
6412 \begin_inset Flex Code
6413 status collapsed
6414
6415 \begin_layout Plain Layout
6416 ~:
6417 \backslash
6418 Programme
6419 \backslash
6420 MiKTeX
6421 \backslash
6422 tex
6423 \backslash
6424 latex
6425 \end_layout
6426
6427 \end_inset
6428
6429 , and similarly for other languages.
6430 \end_layout
6431
6432 \end_inset
6433
6434  Create there a new folder 
6435 \begin_inset Flex Code
6436 status collapsed
6437
6438 \begin_layout Plain Layout
6439 foiltex
6440 \end_layout
6441
6442 \end_inset
6443
6444  and copy all files of the package into it.
6445  
6446 \begin_inset Newline newline
6447 \end_inset
6448
6449 If the package should only available for you or you don't have admin permissions
6450 , do the same, but in the local \SpecialChar LaTeX
6451  folder.
6452  E.
6453 \begin_inset space \thinspace{}
6454 \end_inset
6455
6456 g., for MiK\SpecialChar TeX
6457
6458 \begin_inset space ~
6459 \end_inset
6460
6461 2.8 under Windows XP, this would be the folder:
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465
6466 \family sans
6467
6468 \begin_inset Flex Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 ~:
6473 \backslash
6474 Documents and Settings
6475 \backslash
6476 <username>
6477 \backslash
6478 Application Data
6479 \backslash
6480
6481 \end_layout
6482
6483 \end_inset
6484
6485
6486 \begin_inset Newline newline
6487 \end_inset
6488
6489
6490 \family default
6491
6492 \begin_inset Phantom HPhantom
6493 status open
6494
6495 \begin_layout Plain Layout
6496
6497 \family sans
6498 ~:
6499 \backslash
6500
6501 \end_layout
6502
6503 \end_inset
6504
6505
6506 \begin_inset Flex Code
6507 status collapsed
6508
6509 \begin_layout Plain Layout
6510 MiKTeX
6511 \backslash
6512 2.8
6513 \backslash
6514 tex
6515 \backslash
6516 latex
6517 \end_layout
6518
6519 \end_inset
6520
6521
6522 \begin_inset Newline newline
6523 \end_inset
6524
6525 On Vista, it would be:
6526 \begin_inset Newline newline
6527 \end_inset
6528
6529
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 ~:
6535 \backslash
6536 Users
6537 \backslash
6538 <username>
6539 \backslash
6540 AppData
6541 \backslash
6542 Roaming
6543 \backslash
6544 2.8
6545 \backslash
6546 MiKTeX
6547 \backslash
6548 tex
6549 \backslash
6550 latex
6551 \end_layout
6552
6553 \end_inset
6554
6555
6556 \end_layout
6557
6558 \end_deeper
6559 \begin_layout Enumerate
6560 Now one only need to tell \SpecialChar LaTeX
6561  that there are new files.
6562  This depends on the used \SpecialChar LaTeX
6563 -Distribution:
6564 \end_layout
6565
6566 \begin_deeper
6567 \begin_layout Enumerate
6568 For \SpecialChar TeX
6569 Live execute the command 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 texhash
6575 \end_layout
6576
6577 \end_inset
6578
6579  from a console.
6580  If you installed the package for all users, then you will probably need
6581  to have root permissions for that.
6582 \end_layout
6583
6584 \begin_layout Enumerate
6585 For MiK\SpecialChar TeX
6586 , if you have installed the package for all users, start the program
6587  
6588 \begin_inset Quotes eld
6589 \end_inset
6590
6591 Settings
6592 \begin_inset space ~
6593 \end_inset
6594
6595 (Admin)
6596 \begin_inset Quotes erd
6597 \end_inset
6598
6599  and press the button marked 
6600 \begin_inset Quotes eld
6601 \end_inset
6602
6603 Refresh FNDB
6604 \begin_inset Quotes erd
6605 \end_inset
6606
6607 .
6608  Otherwise start the program 
6609 \begin_inset Quotes eld
6610 \end_inset
6611
6612 Settings
6613 \begin_inset Quotes erd
6614 \end_inset
6615
6616  and do the same.
6617 \end_layout
6618
6619 \end_deeper
6620 \begin_layout Enumerate
6621 Finally, you need to tell \SpecialChar LyX
6622  that there are new packages available.
6623  So, in \SpecialChar LyX
6624 , use the menu 
6625 \begin_inset Flex Noun
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 Tools
6630 \family sans
6631 \SpecialChar menuseparator
6632 Reconfigure
6633 \end_layout
6634
6635 \end_inset
6636
6637  and then restart \SpecialChar LyX
6638 .
6639 \end_layout
6640
6641 \begin_layout Standard
6642 Now the package is installed.
6643  In our example, the document class 
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 FoilTex
6649 \end_layout
6650
6651 \end_inset
6652
6653  will now be available under 
6654 \begin_inset Flex Noun
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 Document\SpecialChar menuseparator
6659 Settings\SpecialChar menuseparator
6660 Document Class
6661 \end_layout
6662
6663 \end_inset
6664
6665  (in the 
6666 \begin_inset Quotes eld
6667 \end_inset
6668
6669 Presentations
6670 \begin_inset Quotes erd
6671 \end_inset
6672
6673  category).
6674  
6675 \end_layout
6676
6677 \begin_layout Standard
6678 If you would like to use a \SpecialChar LaTeX
6679  document class that is not even listed in the
6680  menu 
6681 \begin_inset Flex Noun
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 Document\SpecialChar menuseparator
6686 Settings\SpecialChar menuseparator
6687 Document Class
6688 \end_layout
6689
6690 \end_inset
6691
6692 , then you need to create a `layout' file for it.
6693  That is the topic of the next section.
6694 \end_layout
6695
6696 \begin_layout Section
6697 Types of layout files
6698 \end_layout
6699
6700 \begin_layout Standard
6701 This section describes the various sorts of \SpecialChar LyX
6702  files that contain layout informati
6703 on.
6704  These files describe various paragraph and character styles, determining
6705  how \SpecialChar LyX
6706  should display them and how they should be translated into \SpecialChar LaTeX
6707 , DocBook,
6708  XHTML, or whatever output format is being used.
6709  
6710 \end_layout
6711
6712 \begin_layout Standard
6713 We shall try to provide a thorough description of the process of writing
6714  layout files here.
6715  However, there are so many different types of documents supported even
6716  by just \SpecialChar LaTeX
6717  that we can't hope to cover every different possibility or problem
6718  you might encounter.
6719  The \SpecialChar LyX
6720  users' list is frequented by people with lots of experience with layout
6721  design who are willing to share what they've learned, so please feel free
6722  to ask questions there.
6723 \end_layout
6724
6725 \begin_layout Standard
6726 As you prepare to write a new layout, it is extremely helpful to look at
6727  the layouts distributed with \SpecialChar LyX
6728 .
6729  If you write a \SpecialChar LyX
6730  layout for a \SpecialChar LaTeX
6731  document class that might also be used by
6732  others, or write a module that might be useful to others, then you should
6733  consider posting your layout to the 
6734 \begin_inset CommandInset href
6735 LatexCommand href
6736 name "layout section on the LyX wiki"
6737 target "https://wiki.lyx.org/Layouts/Layouts"
6738 literal "false"
6739
6740 \end_inset
6741
6742  or even to the \SpecialChar LyX
6743  developers' list, so that it might be included in \SpecialChar LyX
6744  itself.
6745 \begin_inset Foot
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749 Note that \SpecialChar LyX
6750  is licensed under the General Public License, so any material
6751  that is contributed to \SpecialChar LyX
6752  must be similarly licensed.
6753 \end_layout
6754
6755 \end_inset
6756
6757
6758 \end_layout
6759
6760 \begin_layout Subsection
6761 Layout modules
6762 \begin_inset CommandInset label
6763 LatexCommand label
6764 name "subsec:Layout-modules"
6765
6766 \end_inset
6767
6768
6769 \end_layout
6770
6771 \begin_layout Standard
6772 We have spoken to this point about `layout files'.
6773  But there are different sorts of files that contain layout information.
6774  Layout files, strictly so called, have the 
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 .layout
6780 \end_layout
6781
6782 \end_inset
6783
6784  extension and provide \SpecialChar LyX
6785  with information about document classes.
6786  Since \SpecialChar LyX
6787  1.6 layout information can also be contained in layout 
6788 \emph on
6789 modules
6790 \emph default
6791 , which have the 
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 .module
6797 \end_layout
6798
6799 \end_inset
6800
6801  extension.
6802  Modules are to \SpecialChar LaTeX
6803  packages much as layouts are to \SpecialChar LaTeX
6804  classes, and some modules—such
6805  as the 
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 endnotes
6811 \end_layout
6812
6813 \end_inset
6814
6815  module—specifically provide support for one package.
6816  In a sense, layout modules are similar to included
6817 \begin_inset Foot
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 These can have any extension, but by convention have the 
6822 \begin_inset Flex Code
6823 status collapsed
6824
6825 \begin_layout Plain Layout
6826 .inc
6827 \end_layout
6828
6829 \end_inset
6830
6831  extension.
6832 \end_layout
6833
6834 \end_inset
6835
6836  files—files like 
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 stdsections.inc
6842 \end_layout
6843
6844 \end_inset
6845
6846 —in that modules are not specific to a given document class but may be used
6847  with many different classes.
6848  The difference is that using an included file with 
6849 \begin_inset Flex Code
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 article.cls
6854 \end_layout
6855
6856 \end_inset
6857
6858  requires editing that file.
6859  Modules, by contrast, are selected in the 
6860 \begin_inset Flex Noun
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 Document\SpecialChar menuseparator
6865 Settings
6866 \end_layout
6867
6868 \end_inset
6869
6870  dialog.
6871 \end_layout
6872
6873 \begin_layout Standard
6874 Building modules is the easiest way to get started with layout editing,
6875  since it can be as simple as adding a single new paragraph style or flex
6876  inset.
6877  But modules may, in principle, contain anything a layout file can contain.
6878 \end_layout
6879
6880 \begin_layout Standard
6881 After creating a new module and copying it to the 
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 layouts/
6887 \end_layout
6888
6889 \end_inset
6890
6891  folder, you will need to reconfigure and then restart \SpecialChar LyX
6892  for the module to
6893  appear in the menu.
6894  However, changes you make to the module will be seen immediately, if you
6895  open 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Document\SpecialChar menuseparator
6901 Settings
6902 \end_layout
6903
6904 \end_inset
6905
6906 , highlight something, and then hit 
6907 \begin_inset Quotes eld
6908 \end_inset
6909
6910 OK
6911 \begin_inset Quotes erd
6912 \end_inset
6913
6914 .
6915  
6916 \emph on
6917 It is strongly recommended that you save your work before doing this
6918 \emph default
6919 .
6920  In fact, 
6921 \emph on
6922 it is strongly recommended that you not attempt to edit modules while simultaneo
6923 usly working on actual documents
6924 \emph default
6925 .
6926  Though of course the developers strive to keep \SpecialChar LyX
6927  stable in such situations,
6928  syntax errors and the like in your module file could cause strange behavior.
6929 \end_layout
6930
6931 \begin_layout Subsubsection
6932 Local Layout
6933 \end_layout
6934
6935 \begin_layout Standard
6936 Modules are to \SpecialChar LyX
6937  as packages are to \SpecialChar LaTeX
6938 .
6939  Sometimes, however, you find yourself wanting a specific inset or character
6940  style just for one document and writing a module that will also be available
6941  to other documents makes little sense.
6942  What you need is \SpecialChar LyX
6943 's 
6944 \begin_inset Quotes eld
6945 \end_inset
6946
6947 Local Layout
6948 \begin_inset Quotes erd
6949 \end_inset
6950
6951 .
6952 \end_layout
6953
6954 \begin_layout Standard
6955 You will find it under 
6956 \family sans
6957 Document\SpecialChar menuseparator
6958 Settings\SpecialChar menuseparator
6959 Local Layout
6960 \family default
6961 .
6962  The large text box allows you to enter anything that you might enter in
6963  a layout file or module.
6964  You can think of a document's local layout, in fact, as a module that belongs
6965  just to it.
6966  So, in particular, you must enter a 
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 Format
6972 \end_layout
6973
6974 \end_inset
6975
6976  tag.
6977  Any format is acceptable, but one would normally use the format current
6978  at the time.
6979  (In \SpecialChar LyX
6980  
6981 \begin_inset Info
6982 type  "lyxinfo"
6983 arg   "version"
6984 \end_inset
6985
6986 , the current layout format is 
6987 \begin_inset Info
6988 type  "lyxinfo"
6989 arg   "layoutformat"
6990 \end_inset
6991
6992 .)
6993 \end_layout
6994
6995 \begin_layout Standard
6996 When you have entered something in the 
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 Local Layout
7002 \end_layout
7003
7004 \end_inset
7005
7006  pane, \SpecialChar LyX
7007  will enable the 
7008 \begin_inset Quotes eld
7009 \end_inset
7010
7011 Validate
7012 \begin_inset Quotes erd
7013 \end_inset
7014
7015  button at the bottom.
7016  Clicking this button will cause \SpecialChar LyX
7017  to determine whether what you have entered
7018  is valid layout information for the chosen format.
7019  \SpecialChar LyX
7020  will report the result but, unfortunately, will not tell you what errors
7021  there might have been.
7022  These will be written to the terminal, however, if \SpecialChar LyX
7023  is started from a terminal.
7024  You will not be permitted to save your local layout until you have entered
7025  something valid.
7026 \end_layout
7027
7028 \begin_layout Standard
7029 The warnings at the end of the previous section apply here, too.
7030  Do not play with local layout while you are actually working, especially
7031  if you have not saved your document.
7032  That said, using local layout with a test document can be a very convenient
7033  way to try out layout ideas, or even to start developing a module.
7034 \end_layout
7035
7036 \begin_layout Subsection
7037 Layout for 
7038 \begin_inset Flex Noun
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 .sty
7043 \end_layout
7044
7045 \end_inset
7046
7047  files
7048 \end_layout
7049
7050 \begin_layout Standard
7051 There are two situations you are likely to encounter when wanting to support
7052  a new \SpecialChar LaTeX
7053  document class, involving style (
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 .sty
7059 \end_layout
7060
7061 \end_inset
7062
7063 ) files and \SpecialChar LaTeX2e
7064  class (
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 .cls
7070 \end_layout
7071
7072 \end_inset
7073
7074 ) .
7075  Supporting a style file is usually fairly easy.
7076  Supporting a new class file is a bit harder.
7077  We'll discuss the former in this section and the latter in the next.
7078  Similar remarks apply, of course, if you want to support a new DocBook
7079  DTD.
7080 \end_layout
7081
7082 \begin_layout Standard
7083 The easier case is the one in which your new document class is provided
7084  as a style file that is to be used in conjunction with an already supported
7085  document class.
7086  For the sake of the example, we'll assume that the style file is called
7087  
7088 \begin_inset Flex Noun
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 myclass.sty
7093 \end_layout
7094
7095 \end_inset
7096
7097  and that it is meant to be used with 
7098 \begin_inset Flex Noun
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 report.cls
7103 \end_layout
7104
7105 \end_inset
7106
7107 , which is a standard class.
7108  
7109 \end_layout
7110
7111 \begin_layout Standard
7112 Start by copying the existing class's layout file into your local directory:
7113 \begin_inset Foot
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 Of course, which directory is your local directory will vary by platform,
7118  and \SpecialChar LyX
7119  allows you to specify your local directory on startup, too, using
7120  the 
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 -userdir
7126 \end_layout
7127
7128 \end_inset
7129
7130  option.
7131 \end_layout
7132
7133 \end_inset
7134
7135
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 cp report.layout ~/.lyx/layouts/myclass.layout
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Then edit 
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.layout
7149 \end_layout
7150
7151 \end_inset
7152
7153  and change the line: 
7154 \end_layout
7155
7156 \begin_layout LyX-Code
7157
7158 \backslash
7159 DeclareLaTeXClass{Report (Standard Class)}
7160 \end_layout
7161
7162 \begin_layout Standard
7163 to read
7164 \end_layout
7165
7166 \begin_layout LyX-Code
7167
7168 \backslash
7169 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7170 \end_layout
7171
7172 \begin_layout Standard
7173 Then add:
7174 \end_layout
7175
7176 \begin_layout LyX-Code
7177 Preamble 
7178 \begin_inset Newline newline
7179 \end_inset
7180
7181     
7182 \backslash
7183 usepackage{myclass}
7184 \begin_inset Newline newline
7185 \end_inset
7186
7187 EndPreamble
7188 \end_layout
7189
7190 \begin_layout Standard
7191 near the top of the file.
7192 \end_layout
7193
7194 \begin_layout Standard
7195 Start \SpecialChar LyX
7196  and select 
7197 \begin_inset Flex Noun
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 Tools\SpecialChar menuseparator
7202 Reconfigure
7203 \end_layout
7204
7205 \end_inset
7206
7207 .
7208  Then restart \SpecialChar LyX
7209  and try creating a new document.
7210  You should see "
7211 \begin_inset Flex Noun
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 Report (My Class)
7216 \end_layout
7217
7218 \end_inset
7219
7220 " as a document class option in the 
7221 \begin_inset Flex Noun
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 Document\SpecialChar menuseparator
7226 Settings
7227 \end_layout
7228
7229 \end_inset
7230
7231  dialog.
7232  It is likely that some of the sectioning commands and such in your new
7233  class will work differently from how they worked in the base class—
7234 \begin_inset Flex Code
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 report
7239 \end_layout
7240
7241 \end_inset
7242
7243  in this example—so you can fiddle around with the settings for the different
7244  sections if you wish.
7245  The layout information for sections is contained in 
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 stdsections.inc
7251 \end_layout
7252
7253 \end_inset
7254
7255 , but you do not need to copy and change this file.
7256  Instead, you can simply add your changes to your layout file, after the
7257  line 
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 Input stdclass.inc
7263 \end_layout
7264
7265 \end_inset
7266
7267 , which itself includes 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 stdsections.inc
7273 \end_layout
7274
7275 \end_inset
7276
7277 .
7278  For example, you might add these lines:
7279 \end_layout
7280
7281 \begin_layout LyX-Code
7282 Style Chapter
7283 \end_layout
7284
7285 \begin_layout LyX-Code
7286     Font
7287 \end_layout
7288
7289 \begin_layout LyX-Code
7290         Family Sans
7291 \end_layout
7292
7293 \begin_layout LyX-Code
7294     EndFont
7295 \end_layout
7296
7297 \begin_layout LyX-Code
7298 End
7299 \end_layout
7300
7301 \begin_layout Standard
7302 to change the font for chapter headings to sans-serif.
7303  This will override (or, in this case, add to) the existing declaration
7304  for the Chapter style.
7305  
7306 \end_layout
7307
7308 \begin_layout Standard
7309 Your new package may also provide commands or environments not present in
7310  the base class.
7311  In this case, you will want to add these to the layout file.
7312  See 
7313 \begin_inset CommandInset ref
7314 LatexCommand ref
7315 reference "sec:TextClass"
7316
7317 \end_inset
7318
7319  for information on how to do so.
7320 \end_layout
7321
7322 \begin_layout Standard
7323 If 
7324 \begin_inset Flex Noun
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 myclass.sty
7329 \end_layout
7330
7331 \end_inset
7332
7333  can be used with several different document classes, and even if it cannot,
7334  you might find it easiest just to write a module that you can load with
7335  the base class.
7336  The simplest possible such module would be:
7337 \end_layout
7338
7339 \begin_layout LyX-Code
7340 #
7341 \backslash
7342 DeclareLyXModule{My Class} 
7343 \end_layout
7344
7345 \begin_layout LyX-Code
7346 #DescriptionBegin 
7347 \end_layout
7348
7349 \begin_layout LyX-Code
7350 #Support for myclass.sty.
7351 \end_layout
7352
7353 \begin_layout LyX-Code
7354 #DescriptionEnd
7355 \begin_inset Newline newline
7356 \end_inset
7357
7358
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362 Format 
7363 \begin_inset Info
7364 type  "lyxinfo"
7365 arg   "layoutformat"
7366 \end_inset
7367
7368
7369 \begin_inset Newline newline
7370 \end_inset
7371
7372
7373 \end_layout
7374
7375 \begin_layout LyX-Code
7376 Preamble
7377 \begin_inset Newline newline
7378 \end_inset
7379
7380     
7381 \backslash
7382 usepackage{myclass}
7383 \begin_inset Newline newline
7384 \end_inset
7385
7386 EndPreamble
7387 \end_layout
7388
7389 \begin_layout Standard
7390 A more complex module might modify the behavior of some existing constructs
7391  or define some new ones.
7392  Again, see 
7393 \begin_inset CommandInset ref
7394 LatexCommand ref
7395 reference "sec:TextClass"
7396
7397 \end_inset
7398
7399  for discussion.
7400 \end_layout
7401
7402 \begin_layout Subsection
7403 Layout for 
7404 \begin_inset Flex Noun
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 .cls
7409 \end_layout
7410
7411 \end_inset
7412
7413  files
7414 \end_layout
7415
7416 \begin_layout Standard
7417 There are two possibilities here.
7418  One is that the class file is itself based upon an existing document class.
7419  For example, many thesis classes are based upon 
7420 \begin_inset Flex Noun
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 book.cls
7425 \end_layout
7426
7427 \end_inset
7428
7429 .
7430  To see whether yours is, look for a line like
7431 \end_layout
7432
7433 \begin_layout LyX-Code
7434
7435 \backslash
7436 LoadClass{book}
7437 \end_layout
7438
7439 \begin_layout Standard
7440 in the file.
7441  If so, then you may proceed largely as in the previous section, though
7442  the 
7443 \begin_inset Flex Code
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 Declare\SpecialChar LaTeX
7448 Class
7449 \end_layout
7450
7451 \end_inset
7452
7453  line will be different.
7454  If your new class is 
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 thesis
7460 \end_layout
7461
7462 \end_inset
7463
7464  and it is based upon 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 book
7470 \end_layout
7471
7472 \end_inset
7473
7474 , then the line should read:
7475 \begin_inset Foot
7476 status collapsed
7477
7478 \begin_layout Plain Layout
7479 And it will be easiest if you save the file to 
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 thesis.layout
7485 \end_layout
7486
7487 \end_inset
7488
7489 : \SpecialChar LyX
7490  assumes that the document class has the same name as the layout file.
7491  
7492 \end_layout
7493
7494 \end_inset
7495
7496
7497 \end_layout
7498
7499 \begin_layout LyX-Code
7500
7501 \backslash
7502 DeclareLaTeXClass[thesis,book]{thesis}
7503 \end_layout
7504
7505 \begin_layout Standard
7506 If, on the other hand, the new class is not based upon an existing class,
7507  you will probably have to 
7508 \begin_inset Quotes eld
7509 \end_inset
7510
7511 roll your own
7512 \begin_inset Quotes erd
7513 \end_inset
7514
7515  layout.
7516  We strongly suggest copying an existing layout file which uses a similar
7517  \SpecialChar LaTeX
7518  class and then modifying it, if you can do so.
7519  At least use an existing file as a starting point so you can find out what
7520  items you need to worry about.
7521  Again, the specifics are covered below.
7522 \end_layout
7523
7524 \begin_layout Subsection
7525 Creating templates
7526 \begin_inset CommandInset label
7527 LatexCommand label
7528 name "subsec:Creating-Templates"
7529
7530 \end_inset
7531
7532
7533 \end_layout
7534
7535 \begin_layout Standard
7536 Once you have written a layout file for a new document class, you might
7537  want to consider writing a 
7538 \emph on
7539 template
7540 \emph default
7541  for it, too.
7542  A template acts as a kind of tutorial for your layout, showing how it might
7543  be used, though containing dummy content.
7544  You can of course look at the various templates included with \SpecialChar LyX
7545  for ideas.
7546 \end_layout
7547
7548 \begin_layout Standard
7549 Templates are created just like usual documents: using \SpecialChar LyX
7550 .
7551  The only difference is that usual documents contain all possible settings,
7552  including the font scheme and the paper size.
7553  Usually a user doesn't want a template to overwrite his preferred settings
7554  for such parameters.
7555  For that reason, the designer of a template should remove the corresponding
7556  commands like 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561
7562 \backslash
7563 font_roman
7564 \end_layout
7565
7566 \end_inset
7567
7568  or 
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573
7574 \backslash
7575 papersize
7576 \end_layout
7577
7578 \end_inset
7579
7580  from the template \SpecialChar LyX
7581  file.
7582  This can be done with any simple text-editor, for example 
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 vi
7588 \end_layout
7589
7590 \end_inset
7591
7592  or 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 notepad
7598 \end_layout
7599
7600 \end_inset
7601
7602 .
7603 \end_layout
7604
7605 \begin_layout Standard
7606 Put the edited template files you create in 
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 UserDir/templates/
7612 \end_layout
7613
7614 \end_inset
7615
7616 , copy the ones you use from the global template directory in 
7617 \begin_inset Flex Code
7618 status collapsed
7619
7620 \begin_layout Plain Layout
7621 LyXDir/templates/
7622 \end_layout
7623
7624 \end_inset
7625
7626  to the same place, and redefine the template path in the 
7627 \begin_inset Flex Noun
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 Tools\SpecialChar menuseparator
7632 Preferences\SpecialChar menuseparator
7633 Paths
7634 \end_layout
7635
7636 \end_inset
7637
7638  dialog.
7639 \end_layout
7640
7641 \begin_layout Standard
7642 Note, by the way, that there is a template which has a particular meaning:
7643 \begin_inset Newline linebreak
7644 \end_inset
7645
7646
7647 \begin_inset Flex Code
7648 status collapsed
7649
7650 \begin_layout Plain Layout
7651 defaults.lyx
7652 \end_layout
7653
7654 \end_inset
7655
7656 .
7657  This template is loaded every time you create a new document with 
7658 \begin_inset Flex Noun
7659 status collapsed
7660
7661 \begin_layout Plain Layout
7662 File\SpecialChar menuseparator
7663 New
7664 \end_layout
7665
7666 \end_inset
7667
7668  in order to provide useful defaults.
7669  To create this template from inside \SpecialChar LyX
7670 , all you have to do is to open a document
7671  with the correct settings, and use the 
7672 \begin_inset Flex Noun
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 Save as Document Defaults
7677 \end_layout
7678
7679 \end_inset
7680
7681  button.
7682 \end_layout
7683
7684 \begin_layout Subsection
7685 Upgrading old layout files
7686 \end_layout
7687
7688 \begin_layout Standard
7689 The format of layout files changes with each \SpecialChar LyX
7690  release, so old layout files
7691  need to be converted to the new format.
7692  If \SpecialChar LyX
7693  reads a layout file in an older format, it automatically calls the
7694  script 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 layout2layout.py
7700 \end_layout
7701
7702 \end_inset
7703
7704  to convert it to a temporary file in current format.
7705  The original file is left untouched.
7706  If you use the layout file often, then, you may want to convert it permanently,
7707  so that \SpecialChar LyX
7708  does not have to do so itself every time.
7709  To do this, you can call the converter manually:
7710 \end_layout
7711
7712 \begin_layout Enumerate
7713 rename the file 
7714 \begin_inset Flex Code
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718 myclass.layout
7719 \end_layout
7720
7721 \end_inset
7722
7723  to 
7724 \begin_inset Flex Code
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728 myclass.old
7729 \end_layout
7730
7731 \end_inset
7732
7733
7734 \end_layout
7735
7736 \begin_layout Enumerate
7737 Call the command
7738 \begin_inset Newline newline
7739 \end_inset
7740
7741
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7747 \end_layout
7748
7749 \end_inset
7750
7751
7752 \begin_inset Newline newline
7753 \end_inset
7754
7755 where 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 LyXDir
7761 \end_layout
7762
7763 \end_inset
7764
7765  is the name of your \SpecialChar LyX
7766  system directory.
7767 \end_layout
7768
7769 \begin_layout Standard
7770 Note that manual conversion does not affect included files, so these will
7771  have to be converted separately.
7772 \end_layout
7773
7774 \begin_layout Subsection
7775 \begin_inset CommandInset label
7776 LatexCommand label
7777 name "subsec:Cite-Engine-Files"
7778
7779 \end_inset
7780
7781 Cite engine files
7782 \end_layout
7783
7784 \begin_layout Standard
7785 A specific form of layout files are the so-called 
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 *.citeengine
7791 \end_layout
7792
7793 \end_inset
7794
7795  files that are located in the 
7796 \begin_inset Flex Code
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 citeengines/
7801 \end_layout
7802
7803 \end_inset
7804
7805  sub-directory.
7806  Their purpose is to define the specifics of \SpecialChar LaTeX
7807  packages aimed at bibliography
7808  generation, such as 
7809 \family sans
7810 natbib
7811 \family default
7812 ,
7813 \family sans
7814  jurabib
7815 \family default
7816  or 
7817 \family sans
7818 biblatex
7819 \family default
7820 , but also the way how normal Bib\SpecialChar TeX
7821  citations (without additional packages)
7822  are handled in \SpecialChar LyX
7823  is defined in such a file.
7824  
7825 \end_layout
7826
7827 \begin_layout Standard
7828 More specifically, it is defined which packages \SpecialChar LyX
7829  needs to load, which citation
7830  commands are available, how these are to be displayed in \SpecialChar LyX
7831  (in the workarea,
7832  the dialogs, the context menus) as well as in the XHTML and plain text
7833  output.
7834  Furthermore, the files specify available style variants (author-year, numerical
7835 , etc.) and their specifics.
7836  The cite engine files are also used to generate the options that are available
7837  in 
7838 \family sans
7839 Document\SpecialChar menuseparator
7840 Settings\SpecialChar menuseparator
7841 Bibliography\SpecialChar menuseparator
7842 Style engine
7843 \family default
7844 .
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Even though a cite engine file is essentially a normal layout file that
7849  could theoretically include any layout information, it usually primarily
7850  includes some specific parameters such as 
7851 \begin_inset Flex Code
7852 status collapsed
7853
7854 \begin_layout Plain Layout
7855 MaxCiteNames
7856 \end_layout
7857
7858 \end_inset
7859
7860
7861 \begin_inset Flex Code
7862 status collapsed
7863
7864 \begin_layout Plain Layout
7865 CiteFramework
7866 \end_layout
7867
7868 \end_inset
7869
7870
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 CiteEngine
7876 \end_layout
7877
7878 \end_inset
7879
7880  and 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 CiteFormat
7886 \end_layout
7887
7888 \end_inset
7889
7890  blocks.
7891  The syntax of the latter two is described in 
7892 \begin_inset CommandInset ref
7893 LatexCommand ref
7894 reference "subsec:Citation-engine-description"
7895 plural "false"
7896 caps "false"
7897 noprefix "false"
7898
7899 \end_inset
7900
7901  and 
7902 \begin_inset CommandInset ref
7903 LatexCommand ref
7904 reference "subsec:Citation-format-description"
7905
7906 \end_inset
7907
7908 , as well as in the files themselves.
7909 \end_layout
7910
7911 \begin_layout Section
7912 \begin_inset CommandInset label
7913 LatexCommand label
7914 name "sec:TextClass"
7915
7916 \end_inset
7917
7918 The layout file format
7919 \end_layout
7920
7921 \begin_layout Standard
7922 The following sections describe how layout files are structured and written.
7923  Our advice is to go slowly, save and test often.
7924  It is really not that hard, except that the multitude of options can become
7925  overwhelming, especially if you try to check out too many at once.
7926  It becomes easier if you use existing layouts of \SpecialChar LyX
7927  as examples/reference
7928  or if you modify an existing layout to your needs.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 Note that all the tags used in layout files are case-insensitive.
7933  This means that 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 Style
7939 \end_layout
7940
7941 \end_inset
7942
7943
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 style
7949 \end_layout
7950
7951 \end_inset
7952
7953  and 
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 StYlE
7959 \end_layout
7960
7961 \end_inset
7962
7963  are really the same tag.
7964  The possible arguments are printed in brackets after the tag's name.
7965  The default argument is typeset 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970
7971 \emph on
7972 emphasized
7973 \end_layout
7974
7975 \end_inset
7976
7977 .
7978  If the argument has a data type like 
7979 \begin_inset Quotes eld
7980 \end_inset
7981
7982 string
7983 \begin_inset Quotes erd
7984 \end_inset
7985
7986  or 
7987 \begin_inset Quotes eld
7988 \end_inset
7989
7990 float
7991 \begin_inset Quotes erd
7992 \end_inset
7993
7994 , the default is shown like this: 
7995 \begin_inset Flex Code
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 float=
8000 \emph on
8001 default
8002 \end_layout
8003
8004 \end_inset
8005
8006 .
8007 \end_layout
8008
8009 \begin_layout Subsection
8010 The document class declaration and classification
8011 \end_layout
8012
8013 \begin_layout Standard
8014 Lines in a layout file which begin with 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 #
8020 \end_layout
8021
8022 \end_inset
8023
8024  are comments.
8025  There is one exception to this rule.
8026  All 
8027 \begin_inset Flex Code
8028 status collapsed
8029
8030 \begin_layout Plain Layout
8031 *.layout
8032 \end_layout
8033
8034 \end_inset
8035
8036  files should begin with lines like:
8037 \end_layout
8038
8039 \begin_layout LyX-Code
8040
8041 \size small
8042 #% Do not delete the line below; configure depends on this 
8043 \end_layout
8044
8045 \begin_layout LyX-Code
8046
8047 \size small
8048 #  
8049 \backslash
8050 DeclareLaTeXClass{Article (Standard Class)}
8051 \end_layout
8052
8053 \begin_layout LyX-Code
8054
8055 \size small
8056 #  
8057 \backslash
8058 DeclareCategory{Articles}
8059 \end_layout
8060
8061 \begin_layout Standard
8062 The second and third lines are used when you (re)configure \SpecialChar LyX
8063 .
8064  The layout file is read by the \SpecialChar LaTeX
8065  script 
8066 \begin_inset Flex Code
8067 status collapsed
8068
8069 \begin_layout Plain Layout
8070 chkconfig.ltx
8071 \end_layout
8072
8073 \end_inset
8074
8075 , in a special mode where 
8076 \begin_inset Flex Code
8077 status collapsed
8078
8079 \begin_layout Plain Layout
8080 #
8081 \end_layout
8082
8083 \end_inset
8084
8085  is ignored.
8086  The first line is just a \SpecialChar LaTeX
8087  comment, the second one contains the mandatory
8088  declaration of the text class and the third line contains the optional
8089  classification of the class.
8090  If these lines appear in a file named 
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 article.layout
8096 \end_layout
8097
8098 \end_inset
8099
8100 , then they define a text class of name 
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 article
8106 \end_layout
8107
8108 \end_inset
8109
8110  (the name of the layout file) which uses the \SpecialChar LaTeX
8111  document class 
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 article.cls
8117 \end_layout
8118
8119 \end_inset
8120
8121  (the default is to use the same name as the layout).
8122  The string 
8123 \begin_inset Quotes eld
8124 \end_inset
8125
8126 Article (Standard Class)
8127 \begin_inset Quotes erd
8128 \end_inset
8129
8130  that appears above is used as a description of the text class in the 
8131 \begin_inset Flex Noun
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135 Document\SpecialChar menuseparator
8136 Settings
8137 \end_layout
8138
8139 \end_inset
8140
8141  dialog.
8142  The category (
8143 \begin_inset Quotes eld
8144 \end_inset
8145
8146 Articles
8147 \begin_inset Quotes erd
8148 \end_inset
8149
8150  in the example) is also used in the 
8151 \begin_inset Flex Noun
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 Document\SpecialChar menuseparator
8156 Settings
8157 \end_layout
8158
8159 \end_inset
8160
8161  dialog: the text classes are grouped by these categories (which are usually
8162  genres, so typical categories are 
8163 \begin_inset Quotes eld
8164 \end_inset
8165
8166 Articles
8167 \begin_inset Quotes erd
8168 \end_inset
8169
8170
8171 \begin_inset Quotes eld
8172 \end_inset
8173
8174 Books
8175 \begin_inset Quotes erd
8176 \end_inset
8177
8178
8179 \begin_inset Quotes eld
8180 \end_inset
8181
8182 Reports
8183 \begin_inset Quotes erd
8184 \end_inset
8185
8186
8187 \begin_inset Quotes eld
8188 \end_inset
8189
8190 Letters
8191 \begin_inset Quotes erd
8192 \end_inset
8193
8194
8195 \begin_inset Quotes eld
8196 \end_inset
8197
8198 Presentations
8199 \begin_inset Quotes erd
8200 \end_inset
8201
8202
8203 \begin_inset Quotes eld
8204 \end_inset
8205
8206 Curricula Vitae
8207 \begin_inset Quotes erd
8208 \end_inset
8209
8210  etc.).
8211  If no category has been declared, the class will be put in the 
8212 \begin_inset Quotes eld
8213 \end_inset
8214
8215 Uncategorized
8216 \begin_inset Quotes erd
8217 \end_inset
8218
8219  group.
8220 \end_layout
8221
8222 \begin_layout Standard
8223 Let's assume that you wrote your own text class that uses the 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 article.cls
8229 \end_layout
8230
8231 \end_inset
8232
8233  document class, but where you changed the appearance of the section headings.
8234  If you put it in a file 
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 myarticle.layout
8240 \end_layout
8241
8242 \end_inset
8243
8244 , the header of this file should be:
8245 \end_layout
8246
8247 \begin_layout LyX-Code
8248
8249 \size small
8250 #% Do not delete the line below; configure depends on this 
8251 \end_layout
8252
8253 \begin_layout LyX-Code
8254
8255 \size small
8256 #  
8257 \backslash
8258 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8259 \end_layout
8260
8261 \begin_layout LyX-Code
8262
8263 \size small
8264 #  
8265 \backslash
8266 DeclareCategory{Articles}
8267 \end_layout
8268
8269 \begin_layout Standard
8270 This declares a text class 
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 myarticle
8276 \end_layout
8277
8278 \end_inset
8279
8280 , associated with the \SpecialChar LaTeX
8281  document class 
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 article.cls
8287 \end_layout
8288
8289 \end_inset
8290
8291  and described as 
8292 \begin_inset Quotes eld
8293 \end_inset
8294
8295 Article (with My Own Headings)
8296 \begin_inset Quotes erd
8297 \end_inset
8298
8299 .
8300  If your text class depends on several packages, you can declare it as:
8301 \end_layout
8302
8303 \begin_layout LyX-Code
8304
8305 \size small
8306 #% Do not delete the line below; configure depends on this 
8307 \end_layout
8308
8309 \begin_layout LyX-Code
8310
8311 \size small
8312 #  
8313 \backslash
8314 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8315 \end_layout
8316
8317 \begin_layout LyX-Code
8318
8319 \size small
8320 #  
8321 \backslash
8322 DeclareCategory{Articles}
8323 \end_layout
8324
8325 \begin_layout Standard
8326 This indicates that your text class uses the 
8327 \begin_inset Flex Code
8328 status collapsed
8329
8330 \begin_layout Plain Layout
8331 foo.sty
8332 \end_layout
8333
8334 \end_inset
8335
8336  package.
8337  Finally, it is also possible to declare classes for DocBook code.
8338  Typical declarations will look like:
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #% Do not delete the line below; configure depends on this 
8345 \end_layout
8346
8347 \begin_layout LyX-Code
8348
8349 \size small
8350
8351 \backslash
8352 DeclareDocBookClass[article]{SGML (DocBook Article)}
8353 \end_layout
8354
8355 \begin_layout LyX-Code
8356
8357 \size small
8358
8359 \backslash
8360 DeclareCategory{Articles (DocBook)}
8361 \end_layout
8362
8363 \begin_layout Standard
8364 Note that these declarations can also be given an optional parameter declaring
8365  the name of the document class (but not a list).
8366 \end_layout
8367
8368 \begin_layout Standard
8369 So, to be as explicit as possible, the form of the layout declaration is:
8370 \end_layout
8371
8372 \begin_layout LyX-Code
8373
8374 \size small
8375 #  
8376 \backslash
8377 DeclareLaTeXClass[class,package.sty]{layout description}
8378 \end_layout
8379
8380 \begin_layout LyX-Code
8381
8382 \size small
8383 #  
8384 \backslash
8385 DeclareCategory{category}
8386 \end_layout
8387
8388 \begin_layout Standard
8389 The class need only be specified if the name of the \SpecialChar LaTeX
8390  class file and the
8391  name of the layout file are different or if there are packages to load.
8392  If the name of the class file is not specified, then \SpecialChar LyX
8393  will simply assume
8394  that it is the same as the name of the layout file.
8395 \end_layout
8396
8397 \begin_layout Standard
8398 When the text class has been modified to your taste, all you have to do
8399  is to copy it either to 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 LyXDir/layouts/
8405 \end_layout
8406
8407 \end_inset
8408
8409  or to 
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 UserDir/layouts
8415 \end_layout
8416
8417 \end_inset
8418
8419 , run 
8420 \begin_inset Flex Noun
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 Tools\SpecialChar menuseparator
8425 Reconfigure
8426 \end_layout
8427
8428 \end_inset
8429
8430 , exit \SpecialChar LyX
8431  and restart.
8432  Then your new text class should be available along with the others.
8433 \end_layout
8434
8435 \begin_layout Standard
8436 Once the layout file is installed, you can edit it and see your changes
8437  without having to reconfigure or to restart \SpecialChar LyX
8438 .
8439 \begin_inset Foot
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 In versions of \SpecialChar LyX
8444  prior to 1.6, this was not true.
8445  As a result, editing layout files was very time consuming, since you had
8446  constantly to restart \SpecialChar LyX
8447  to see changes.
8448 \end_layout
8449
8450 \end_inset
8451
8452  You can force a reload of the current layout by using the \SpecialChar LyX
8453  function 
8454 \begin_inset Flex Noun
8455 status collapsed
8456
8457 \begin_layout Plain Layout
8458 layout-reload
8459 \end_layout
8460
8461 \end_inset
8462
8463 .
8464  There is no default binding for this function—though, of course, you can
8465  bind it to a key yourself.
8466  But you will normally use this function simply by entering it in the mini-buffe
8467 r.
8468  
8469 \end_layout
8470
8471 \begin_layout Standard
8472
8473 \emph on
8474 Warning
8475 \emph default
8476
8477 \begin_inset Flex Noun
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 layout-reload
8482 \end_layout
8483
8484 \end_inset
8485
8486  is very much an `advanced feature'.
8487  It is 
8488 \emph on
8489 strongly
8490 \emph default
8491  recommended that you save your work before using this function.
8492  In fact, it is 
8493 \emph on
8494 strongly
8495 \emph default
8496  recommended that you not attempt to edit layout information while simultaneousl
8497 y working on a document that you care about.
8498  Use a test document.
8499  Syntax errors and the like in your layout file could cause peculiar behavior.
8500  In particular, such errors could cause \SpecialChar LyX
8501  to regard the current layout as
8502  invalid and to attempt to switch to some other layout.
8503 \begin_inset Foot
8504 status collapsed
8505
8506 \begin_layout Plain Layout
8507 Really bad syntax errors may even caused \SpecialChar LyX
8508  to exit.
8509  This is because certain sorts of errors may make \SpecialChar LyX
8510  unable to read 
8511 \emph on
8512 any
8513 \emph default
8514  layout information.
8515  Please be careful.
8516 \end_layout
8517
8518 \end_inset
8519
8520  The \SpecialChar LyX
8521  team strives to keep \SpecialChar LyX
8522  stable in such situations, but safe is better
8523  than sorry.
8524 \begin_inset Foot
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 While we're giving advice: make regular backups.
8529  And be nice to your mother.
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Subsection
8538 The Module declaration
8539 \end_layout
8540
8541 \begin_layout Standard
8542 A module must begin with a line like the following:
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546 #
8547 \backslash
8548 DeclareLyXModule[endnotes.sty]{Endnotes} 
8549 \end_layout
8550
8551 \begin_layout Standard
8552 The mandatory argument, in curly brackets, is the name of the module, as
8553  it should appear in 
8554 \begin_inset Flex Noun
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 Document\SpecialChar menuseparator
8559 Settings\SpecialChar menuseparator
8560 Modules
8561 \end_layout
8562
8563 \end_inset
8564
8565 .
8566  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8567  packages
8568  on which the module depends.
8569  It is also possible to use the form 
8570 \begin_inset Flex Noun
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 from->to
8575 \end_layout
8576
8577 \end_inset
8578
8579  as an optional argument, which declares that the module can only be used
8580  when there exists a conversion chain between the formats `
8581 \begin_inset Flex Code
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 from
8586 \end_layout
8587
8588 \end_inset
8589
8590 ' and `
8591 \begin_inset Flex Code
8592 status collapsed
8593
8594 \begin_layout Plain Layout
8595 to
8596 \end_layout
8597
8598 \end_inset
8599
8600 '.
8601 \end_layout
8602
8603 \begin_layout Standard
8604 The module declaration should then be followed by lines like the following:
8605 \begin_inset Foot
8606 status collapsed
8607
8608 \begin_layout Plain Layout
8609 Preferably in English if the module should be published with \SpecialChar LyX
8610 .
8611  This description will appear in the list of messages to be translated and
8612  will be thus translated with the next interface update.
8613 \end_layout
8614
8615 \end_inset
8616
8617
8618 \end_layout
8619
8620 \begin_layout LyX-Code
8621 #DescriptionBegin 
8622 \end_layout
8623
8624 \begin_layout LyX-Code
8625 #Adds an endnote command, in addition to footnotes.
8626  
8627 \end_layout
8628
8629 \begin_layout LyX-Code
8630 #You will need to add  
8631 \backslash
8632 theendnotes in TeX code where you 
8633 \end_layout
8634
8635 \begin_layout LyX-Code
8636 #want the endnotes to appear.
8637  
8638 \end_layout
8639
8640 \begin_layout LyX-Code
8641 #DescriptionEnd 
8642 \end_layout
8643
8644 \begin_layout LyX-Code
8645 #Requires: somemodule | othermodule
8646 \end_layout
8647
8648 \begin_layout LyX-Code
8649 #Excludes: badmodule
8650 \end_layout
8651
8652 \begin_layout Standard
8653 The description is used in 
8654 \begin_inset Flex Noun
8655 status collapsed
8656
8657 \begin_layout Plain Layout
8658 Document\SpecialChar menuseparator
8659 Settings\SpecialChar menuseparator
8660 Modules
8661 \end_layout
8662
8663 \end_inset
8664
8665  to provide the user with information about what the module does.
8666  The 
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 Requires
8672 \end_layout
8673
8674 \end_inset
8675
8676  line is used to identify other modules with which this one must be used;
8677  the 
8678 \begin_inset Flex Code
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682 Excludes
8683 \end_layout
8684
8685 \end_inset
8686
8687  line is used to identify modules with which this one may not be used.
8688  Both are optional, and, as shown, multiple modules should be separated
8689  with the pipe symbol: |.
8690  Note that the required modules are treated disjunctively: 
8691 \emph on
8692 at least one
8693 \emph default
8694  of the required modules must be used.
8695  Similarly, 
8696 \emph on
8697 no
8698 \emph default
8699  excluded module may be used.
8700  Note that modules are identified here by their filenames without the 
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 .module
8706 \end_layout
8707
8708 \end_inset
8709
8710  extension.
8711  So 
8712 \begin_inset Flex Code
8713 status collapsed
8714
8715 \begin_layout Plain Layout
8716 somemodule
8717 \end_layout
8718
8719 \end_inset
8720
8721  is really 
8722 \begin_inset Flex Code
8723 status collapsed
8724
8725 \begin_layout Plain Layout
8726 somemodule.module
8727 \end_layout
8728
8729 \end_inset
8730
8731 .
8732 \end_layout
8733
8734 \begin_layout Subsection
8735 The CiteEngine file declaration
8736 \end_layout
8737
8738 \begin_layout Standard
8739 A cite engine file must begin with a line like the following:
8740 \end_layout
8741
8742 \begin_layout LyX-Code
8743 #
8744 \backslash
8745 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8746 \end_layout
8747
8748 \begin_layout Standard
8749 The mandatory argument, in curly brackets, is the name of the cite style,
8750  as it should appear in 
8751 \begin_inset Flex Noun
8752 status collapsed
8753
8754 \begin_layout Plain Layout
8755 Document\SpecialChar menuseparator
8756 Settings\SpecialChar menuseparator
8757 Bibliography
8758 \end_layout
8759
8760 \end_inset
8761
8762 .
8763  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8764  packages
8765  on which the cite engine depends.
8766 \end_layout
8767
8768 \begin_layout Standard
8769 The cite engine declaration should then be followed by lines like the following:
8770 \begin_inset Foot
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 Preferably in English if the module should be published with \SpecialChar LyX
8775 .
8776  This description will appear in the list of messages to be translated and
8777  will be thus translated with the next interface update.
8778 \end_layout
8779
8780 \end_inset
8781
8782
8783 \end_layout
8784
8785 \begin_layout LyX-Code
8786 # DescriptionBegin
8787 \end_layout
8788
8789 \begin_layout LyX-Code
8790 #   Biblatex supports many author-year and numerical styles.
8791 \end_layout
8792
8793 \begin_layout LyX-Code
8794 #   It is mainly aimed at the Humanities.
8795  It is highly
8796 \end_layout
8797
8798 \begin_layout LyX-Code
8799 #   customizable, fully localized and provides many features
8800 \end_layout
8801
8802 \begin_layout LyX-Code
8803 #   that are not possible with BibTeX.
8804  The use of 'biber' as
8805 \end_layout
8806
8807 \begin_layout LyX-Code
8808 #   bibliography processor is advised.
8809 \end_layout
8810
8811 \begin_layout LyX-Code
8812 # DescriptionEnd
8813 \end_layout
8814
8815 \begin_layout Standard
8816 The description is used in 
8817 \begin_inset Flex Noun
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 Document\SpecialChar menuseparator
8822 Settings\SpecialChar menuseparator
8823 Bibliography
8824 \end_layout
8825
8826 \end_inset
8827
8828  to provide the user with information about the cite engine.
8829 \end_layout
8830
8831 \begin_layout Subsection
8832 Format number
8833 \end_layout
8834
8835 \begin_layout Standard
8836 The first non-comment line of any layout file, included file, or module
8837  
8838 \emph on
8839 must
8840 \emph default
8841  contain the file format number:
8842 \end_layout
8843
8844 \begin_layout Description
8845 \begin_inset Flex Code
8846 status collapsed
8847
8848 \begin_layout Plain Layout
8849 Format
8850 \end_layout
8851
8852 \end_inset
8853
8854  [
8855 \begin_inset Flex Code
8856 status collapsed
8857
8858 \begin_layout Plain Layout
8859 int
8860 \end_layout
8861
8862 \end_inset
8863
8864 ] The format number of the layout file.
8865 \end_layout
8866
8867 \begin_layout Standard
8868 This tag was introduced with \SpecialChar LyX
8869
8870 \begin_inset space ~
8871 \end_inset
8872
8873 1.4.0.
8874  Layout files from older \SpecialChar LyX
8875  versions do not have an explicit file format and
8876  are considered to have 
8877 \begin_inset Flex Code
8878 status collapsed
8879
8880 \begin_layout Plain Layout
8881 Format
8882 \begin_inset space ~
8883 \end_inset
8884
8885 1
8886 \end_layout
8887
8888 \end_inset
8889
8890 .
8891  The format for the present version of \SpecialChar LyX
8892  is format 60.
8893  But each version of \SpecialChar LyX
8894  is capable of reading earlier versions' layout files,
8895  just as they are capable of reading files produced by earlier versions
8896  of \SpecialChar LyX
8897 .
8898  There is, however, no provision for converting to earlier formats.
8899 \end_layout
8900
8901 \begin_layout Subsection
8902 \begin_inset CommandInset label
8903 LatexCommand label
8904 name "subsec:General-text-class"
8905
8906 \end_inset
8907
8908 General text class parameters
8909 \end_layout
8910
8911 \begin_layout Standard
8912 These are general parameters that govern the behavior of an entire document
8913  class.
8914  (This does 
8915 \emph on
8916 not
8917 \emph default
8918  mean that they must appear in 
8919 \begin_inset Flex Code
8920 status collapsed
8921
8922 \begin_layout Plain Layout
8923 .layout
8924 \end_layout
8925
8926 \end_inset
8927
8928  files rather than in modules.
8929  A module can contain any layout tag.)
8930 \end_layout
8931
8932 \begin_layout Description
8933
8934 \change_inserted -712698321 1526899478
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939
8940 \change_inserted -712698321 1526898610
8941 AddToCiteEngine <engine>
8942 \end_layout
8943
8944 \end_inset
8945
8946  Extends the possibilities for displaying citation references.
8947  See 
8948 \begin_inset CommandInset ref
8949 LatexCommand ref
8950 reference "subsec:Citation-engine-description"
8951 plural "false"
8952 caps "false"
8953 noprefix "false"
8954
8955 \end_inset
8956
8957  for details.
8958  Must end with 
8959 \begin_inset Flex Code
8960 status collapsed
8961
8962 \begin_layout Plain Layout
8963
8964 \change_inserted -712698321 1526898823
8965 End
8966 \change_unchanged
8967
8968 \end_layout
8969
8970 \end_inset
8971
8972 .
8973 \end_layout
8974
8975 \begin_layout Description
8976 \begin_inset Flex Code
8977 status collapsed
8978
8979 \begin_layout Plain Layout
8980 AddToHTMLPreamble
8981 \end_layout
8982
8983 \end_inset
8984
8985  Adds information that will be output in the 
8986 \begin_inset Flex Code
8987 status collapsed
8988
8989 \begin_layout Plain Layout
8990 <head>
8991 \end_layout
8992
8993 \end_inset
8994
8995  block when the document is output to XHTML.
8996  Typically, this would be used to output CSS style information, but it can
8997  be used for anything that can appear in 
8998 \begin_inset Flex Code
8999 status collapsed
9000
9001 \begin_layout Plain Layout
9002 <head>
9003 \end_layout
9004
9005 \end_inset
9006
9007 .
9008  Must end with 
9009 \begin_inset Quotes eld
9010 \end_inset
9011
9012
9013 \begin_inset Flex Code
9014 status collapsed
9015
9016 \begin_layout Plain Layout
9017 EndPreamble
9018 \end_layout
9019
9020 \end_inset
9021
9022
9023 \begin_inset Quotes erd
9024 \end_inset
9025
9026 .
9027 \end_layout
9028
9029 \begin_layout Description
9030 \begin_inset Flex Code
9031 status collapsed
9032
9033 \begin_layout Plain Layout
9034 AddToPreamble
9035 \end_layout
9036
9037 \end_inset
9038
9039  Adds information to the document preamble.
9040  Must end with
9041 \begin_inset Newline newline
9042 \end_inset
9043
9044
9045 \begin_inset Quotes eld
9046 \end_inset
9047
9048
9049 \begin_inset Flex Code
9050 status collapsed
9051
9052 \begin_layout Plain Layout
9053 EndPreamble
9054 \end_layout
9055
9056 \end_inset
9057
9058
9059 \begin_inset Quotes erd
9060 \end_inset
9061
9062 .
9063 \end_layout
9064
9065 \begin_layout Description
9066 \begin_inset Flex Code
9067 status collapsed
9068
9069 \begin_layout Plain Layout
9070 CiteEngine <engine>
9071 \end_layout
9072
9073 \end_inset
9074
9075  Defines the possibilities for displaying citation references.
9076  See 
9077 \begin_inset CommandInset ref
9078 LatexCommand ref
9079 reference "subsec:Citation-engine-description"
9080 plural "false"
9081 caps "false"
9082 noprefix "false"
9083
9084 \end_inset
9085
9086  for details.
9087  Must end with 
9088 \begin_inset Quotes eld
9089 \end_inset
9090
9091
9092 \begin_inset Flex Code
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 End
9097 \end_layout
9098
9099 \end_inset
9100
9101
9102 \begin_inset Quotes erd
9103 \end_inset
9104
9105 .
9106  Primarily used in cite engine files (see 
9107 \begin_inset CommandInset ref
9108 LatexCommand ref
9109 reference "subsec:Cite-Engine-Files"
9110 plural "false"
9111 caps "false"
9112 noprefix "false"
9113
9114 \end_inset
9115
9116 ).
9117
9118 \change_inserted -712698321 1526898530
9119  Note that if you specify this in a layout file or module, any cite engine
9120  definition will be overridden.
9121  Also see 
9122 \begin_inset Flex Code
9123 status collapsed
9124
9125 \begin_layout Plain Layout
9126
9127 \change_inserted -712698321 1526898530
9128 AddToCiteEngine
9129 \change_unchanged
9130
9131 \end_layout
9132
9133 \end_inset
9134
9135 .
9136 \change_unchanged
9137
9138 \end_layout
9139
9140 \begin_layout Description
9141 \begin_inset Flex Code
9142 status collapsed
9143
9144 \begin_layout Plain Layout
9145 CiteFormat
9146 \end_layout
9147
9148 \end_inset
9149
9150  Defines formats for use in the display of bibliographic information.
9151  See 
9152 \begin_inset CommandInset ref
9153 LatexCommand ref
9154 reference "subsec:Citation-format-description"
9155
9156 \end_inset
9157
9158  for details.
9159  Must end with 
9160 \begin_inset Quotes eld
9161 \end_inset
9162
9163
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 End
9169 \end_layout
9170
9171 \end_inset
9172
9173
9174 \begin_inset Quotes erd
9175 \end_inset
9176
9177 .
9178  Primarily used in cite engine files (see 
9179 \begin_inset CommandInset ref
9180 LatexCommand ref
9181 reference "subsec:Cite-Engine-Files"
9182 plural "false"
9183 caps "false"
9184 noprefix "false"
9185
9186 \end_inset
9187
9188 ).
9189
9190 \change_inserted -712698321 1526898585
9191  A cite format defined in a layout or module will override the cite engine
9192  definition.
9193 \change_unchanged
9194
9195 \end_layout
9196
9197 \begin_layout Description
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 CiteFramework
9203 \end_layout
9204
9205 \end_inset
9206
9207  [
9208 \begin_inset Flex Code
9209 status collapsed
9210
9211 \begin_layout Plain Layout
9212
9213 \emph on
9214 bibtex
9215 \end_layout
9216
9217 \end_inset
9218
9219 ,
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 biblatex
9225 \end_layout
9226
9227 \end_inset
9228
9229 ] Determines whether 
9230 \family sans
9231 Biblatex
9232 \family default
9233  or Bib\SpecialChar TeX
9234  is used to generate a Bibliography.
9235  Primarily used in cite engine files (see 
9236 \begin_inset CommandInset ref
9237 LatexCommand ref
9238 reference "subsec:Cite-Engine-Files"
9239 plural "false"
9240 caps "false"
9241 noprefix "false"
9242
9243 \end_inset
9244
9245 ).
9246 \end_layout
9247
9248 \begin_layout Description
9249 \begin_inset Flex Code
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253 ClassOptions
9254 \end_layout
9255
9256 \end_inset
9257
9258  Describes various global options supported by the document class.
9259  See 
9260 \begin_inset CommandInset ref
9261 LatexCommand ref
9262 reference "subsec:ClassOptions"
9263
9264 \end_inset
9265
9266  for a description.
9267  Must end with 
9268 \begin_inset Quotes eld
9269 \end_inset
9270
9271
9272 \begin_inset Flex Code
9273 status collapsed
9274
9275 \begin_layout Plain Layout
9276 End
9277 \end_layout
9278
9279 \end_inset
9280
9281
9282 \begin_inset Quotes erd
9283 \end_inset
9284
9285 .
9286 \end_layout
9287
9288 \begin_layout Description
9289 \begin_inset Flex Code
9290 status collapsed
9291
9292 \begin_layout Plain Layout
9293 Columns
9294 \end_layout
9295
9296 \end_inset
9297
9298  [
9299 \begin_inset Flex Code
9300 status collapsed
9301
9302 \begin_layout Plain Layout
9303
9304 \emph on
9305 1
9306 \end_layout
9307
9308 \end_inset
9309
9310 ,
9311 \begin_inset space \thinspace{}
9312 \end_inset
9313
9314
9315 \begin_inset Flex Code
9316 status collapsed
9317
9318 \begin_layout Plain Layout
9319 2
9320 \end_layout
9321
9322 \end_inset
9323
9324 ] Whether the class should 
9325 \emph on
9326 default
9327 \emph default
9328  to having one or two columns.
9329  Can be changed in the 
9330 \begin_inset Flex Noun
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 Document\SpecialChar menuseparator
9335 Settings
9336 \end_layout
9337
9338 \end_inset
9339
9340  dialog.
9341 \end_layout
9342
9343 \begin_layout Description
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 Counter
9349 \end_layout
9350
9351 \end_inset
9352
9353  [
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 string
9359 \end_layout
9360
9361 \end_inset
9362
9363 ] This sequence defines the properties for a counter.
9364  If the counter does not yet exist, it is created; if it does exist, it
9365  is modified.
9366  Must end with 
9367 \begin_inset Quotes eld
9368 \end_inset
9369
9370
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 End
9376 \end_layout
9377
9378 \end_inset
9379
9380
9381 \begin_inset Quotes erd
9382 \end_inset
9383
9384 .
9385 \begin_inset Newline newline
9386 \end_inset
9387
9388 See 
9389 \begin_inset CommandInset ref
9390 LatexCommand ref
9391 reference "subsec:Counters"
9392
9393 \end_inset
9394
9395  for details on counters.
9396 \end_layout
9397
9398 \begin_layout Description
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 DefaultFont
9404 \end_layout
9405
9406 \end_inset
9407
9408  Sets the default font used to display the document.
9409  See 
9410 \begin_inset CommandInset ref
9411 LatexCommand ref
9412 reference "subsec:Font-description"
9413
9414 \end_inset
9415
9416  for how to declare fonts.
9417  Must end with 
9418 \begin_inset Quotes eld
9419 \end_inset
9420
9421
9422 \begin_inset Flex Code
9423 status collapsed
9424
9425 \begin_layout Plain Layout
9426 EndFont
9427 \end_layout
9428
9429 \end_inset
9430
9431
9432 \begin_inset Quotes erd
9433 \end_inset
9434
9435 .
9436 \end_layout
9437
9438 \begin_layout Description
9439 \begin_inset Flex Code
9440 status collapsed
9441
9442 \begin_layout Plain Layout
9443 DefaultModule
9444 \end_layout
9445
9446 \end_inset
9447
9448  [
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 <module>
9454 \end_layout
9455
9456 \end_inset
9457
9458 ] Specifies a module to be included by default with this document class.
9459  The module is specified as filename without the 
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464 .module
9465 \end_layout
9466
9467 \end_inset
9468
9469  extension.
9470  The user can still remove the module, but it will be active at the outset.
9471  (This applies only when new files are created, or when this class is chosen
9472  for an existing document.)
9473 \end_layout
9474
9475 \begin_layout Description
9476 \begin_inset Flex Code
9477 status collapsed
9478
9479 \begin_layout Plain Layout
9480 DefaultStyle
9481 \end_layout
9482
9483 \end_inset
9484
9485  [
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 <style>
9491 \end_layout
9492
9493 \end_inset
9494
9495 ] This is the style that will be assigned to new paragraphs, usually 
9496 \begin_inset Flex Noun
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 Standard
9501 \end_layout
9502
9503 \end_inset
9504
9505 .
9506  This will default to the first defined style if not given, but you are
9507  encouraged to use this directive.
9508 \end_layout
9509
9510 \begin_layout Description
9511 \begin_inset Flex Code
9512 status collapsed
9513
9514 \begin_layout Plain Layout
9515 ExcludesModule
9516 \end_layout
9517
9518 \end_inset
9519
9520  [
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 <module>
9526 \end_layout
9527
9528 \end_inset
9529
9530 ] This tag indicates that the module (which is specified by filename without
9531  the 
9532 \begin_inset Flex Code
9533 status collapsed
9534
9535 \begin_layout Plain Layout
9536 .module
9537 \end_layout
9538
9539 \end_inset
9540
9541  extension) cannot be used with this document class.
9542  This might be used in a journal-specific layout file to prevent, say, the
9543  use of the 
9544 \begin_inset Flex Code
9545 status collapsed
9546
9547 \begin_layout Plain Layout
9548 theorems-sec
9549 \end_layout
9550
9551 \end_inset
9552
9553  module that numbers theorems by section.
9554  This tag may 
9555 \emph on
9556 not
9557 \emph default
9558  be used in a module.
9559  Modules have their own way of excluding other modules (see 
9560 \begin_inset CommandInset ref
9561 LatexCommand ref
9562 reference "subsec:Layout-modules"
9563
9564 \end_inset
9565
9566 ).
9567 \end_layout
9568
9569 \begin_layout Description
9570 \begin_inset Flex Code
9571 status collapsed
9572
9573 \begin_layout Plain Layout
9574 Float
9575 \end_layout
9576
9577 \end_inset
9578
9579  Defines a new float.
9580  See 
9581 \begin_inset CommandInset ref
9582 LatexCommand ref
9583 reference "subsec:Floats"
9584
9585 \end_inset
9586
9587  for details.
9588  Must end with 
9589 \begin_inset Quotes eld
9590 \end_inset
9591
9592
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 End
9598 \end_layout
9599
9600 \end_inset
9601
9602
9603 \begin_inset Quotes erd
9604 \end_inset
9605
9606 .
9607 \end_layout
9608
9609 \begin_layout Description
9610 \begin_inset Flex Code
9611 status collapsed
9612
9613 \begin_layout Plain Layout
9614 HTMLPreamble
9615 \end_layout
9616
9617 \end_inset
9618
9619  Sets the information that will be output in the 
9620 \begin_inset Flex Code
9621 status collapsed
9622
9623 \begin_layout Plain Layout
9624 <head>
9625 \end_layout
9626
9627 \end_inset
9628
9629  block when this document class is output to XHTML.
9630  Note that this will completely override any prior 
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 HTMLPreamble
9636 \end_layout
9637
9638 \end_inset
9639
9640  or 
9641 \begin_inset Flex Code
9642 status collapsed
9643
9644 \begin_layout Plain Layout
9645 AddToHTMLPreamble
9646 \end_layout
9647
9648 \end_inset
9649
9650  declarations.
9651  (Use
9652 \begin_inset Newline newline
9653 \end_inset
9654
9655
9656 \begin_inset Flex Code
9657 status collapsed
9658
9659 \begin_layout Plain Layout
9660 AddToHTMLPreamble
9661 \end_layout
9662
9663 \end_inset
9664
9665  if you just want to add material to the preamble.) Must end with 
9666 \begin_inset Quotes eld
9667 \end_inset
9668
9669
9670 \begin_inset Flex Code
9671 status collapsed
9672
9673 \begin_layout Plain Layout
9674 EndPreamble
9675 \end_layout
9676
9677 \end_inset
9678
9679
9680 \begin_inset Quotes erd
9681 \end_inset
9682
9683 .
9684 \end_layout
9685
9686 \begin_layout Description
9687 \begin_inset Flex Code
9688 status collapsed
9689
9690 \begin_layout Plain Layout
9691 HTMLTOCSection
9692 \end_layout
9693
9694 \end_inset
9695
9696  [
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 <style>
9702 \end_layout
9703
9704 \end_inset
9705
9706 ] The style to use for the table of contents, bibliography, and so forth,
9707  when the document is output to HTML.
9708  For articles, this should normally be 
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 Section
9714 \end_layout
9715
9716 \end_inset
9717
9718 ; for books 
9719 \begin_inset Flex Code
9720 status collapsed
9721
9722 \begin_layout Plain Layout
9723 Chapter
9724 \end_layout
9725
9726 \end_inset
9727
9728 .
9729  If it is not given, then \SpecialChar LyX
9730  will attempt to figure out which layout to use.
9731 \end_layout
9732
9733 \begin_layout Description
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 IfCounter
9739 \end_layout
9740
9741 \end_inset
9742
9743  [
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 <counter>
9749 \end_layout
9750
9751 \end_inset
9752
9753 ] Modifies the properties of the given counter.
9754  If the counter does not exist, the statement is ignored.
9755  Must end with 
9756 \begin_inset Quotes eld
9757 \end_inset
9758
9759
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 End
9765 \end_layout
9766
9767 \end_inset
9768
9769
9770 \begin_inset Quotes erd
9771 \end_inset
9772
9773 .
9774 \begin_inset Newline newline
9775 \end_inset
9776
9777 See 
9778 \begin_inset CommandInset ref
9779 LatexCommand ref
9780 reference "subsec:Counters"
9781
9782 \end_inset
9783
9784  for details on counters.
9785 \end_layout
9786
9787 \begin_layout Description
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 Input
9793 \end_layout
9794
9795 \end_inset
9796
9797  [
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 <filename>
9803 \end_layout
9804
9805 \end_inset
9806
9807 ] This allows you to include another layout definition file within yours
9808  to avoid duplicating commands.
9809  Common examples are the standard layout files, for example, 
9810 \begin_inset Flex Code
9811 status collapsed
9812
9813 \begin_layout Plain Layout
9814 stdclass.inc
9815 \end_layout
9816
9817 \end_inset
9818
9819 , which contains most of the basic layouts.
9820 \end_layout
9821
9822 \begin_layout Description
9823 \begin_inset Flex Code
9824 status collapsed
9825
9826 \begin_layout Plain Layout
9827 InsetLayout
9828 \end_layout
9829
9830 \end_inset
9831
9832  [
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 <type>
9838 \end_layout
9839
9840 \end_inset
9841
9842 ] This section (re-)defines the layout of an inset.
9843  It can be applied to an existing inset or to a new, user-defined inset,
9844  e.g., a new character style.
9845  Must end with 
9846 \begin_inset Quotes eld
9847 \end_inset
9848
9849
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 End
9855 \end_layout
9856
9857 \end_inset
9858
9859
9860 \begin_inset Quotes erd
9861 \end_inset
9862
9863 .
9864 \begin_inset Newline newline
9865 \end_inset
9866
9867 See 
9868 \begin_inset CommandInset ref
9869 LatexCommand ref
9870 reference "subsec:Flex-insets-and"
9871
9872 \end_inset
9873
9874  for more information.
9875  
9876 \end_layout
9877
9878 \begin_layout Description
9879 \begin_inset Flex Code
9880 status collapsed
9881
9882 \begin_layout Plain Layout
9883 LeftMargin
9884 \end_layout
9885
9886 \end_inset
9887
9888  [
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 string
9894 \end_layout
9895
9896 \end_inset
9897
9898 ] A string that indicates the width of the left margin on the screen, for
9899  example, 
9900 \begin_inset Quotes eld
9901 \end_inset
9902
9903
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 MMMMM
9909 \end_layout
9910
9911 \end_inset
9912
9913
9914 \begin_inset Quotes erd
9915 \end_inset
9916
9917 .
9918  (Note that this is not a `length', like 
9919 \begin_inset Quotes eld
9920 \end_inset
9921
9922 2ex
9923 \begin_inset Quotes erd
9924 \end_inset
9925
9926 .)
9927 \end_layout
9928
9929 \begin_layout Description
9930 \begin_inset Flex Code
9931 status collapsed
9932
9933 \begin_layout Plain Layout
9934 MaxCiteNames
9935 \end_layout
9936
9937 \end_inset
9938
9939  [
9940 \begin_inset Flex Code
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944 integer
9945 \end_layout
9946
9947 \end_inset
9948
9949 ] An integer that determines the maximal number of names displayed in an
9950  author-year citation before the citation switches to 
9951 \begin_inset Quotes eld
9952 \end_inset
9953
9954 FirstAuthor et al.
9955 \begin_inset Quotes erd
9956 \end_inset
9957
9958 .
9959  Primarily used in cite engine files (see 
9960 \begin_inset CommandInset ref
9961 LatexCommand ref
9962 reference "subsec:Cite-Engine-Files"
9963 plural "false"
9964 caps "false"
9965 noprefix "false"
9966
9967 \end_inset
9968
9969 ).
9970 \end_layout
9971
9972 \begin_layout Description
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 ModifyStyle
9978 \end_layout
9979
9980 \end_inset
9981
9982  [
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987 <style>
9988 \end_layout
9989
9990 \end_inset
9991
9992 ] Modifies the properties of the given paragraph style.
9993  If the style does not exist, this section is ignored.
9994  Must end with 
9995 \begin_inset Quotes eld
9996 \end_inset
9997
9998
9999 \begin_inset Flex Code
10000 status collapsed
10001
10002 \begin_layout Plain Layout
10003 End
10004 \end_layout
10005
10006 \end_inset
10007
10008
10009 \begin_inset Quotes erd
10010 \end_inset
10011
10012 .
10013 \end_layout
10014
10015 \begin_layout Description
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 NoCounter
10021 \end_layout
10022
10023 \end_inset
10024
10025  [
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 <counter>
10031 \end_layout
10032
10033 \end_inset
10034
10035 ] Deletes an existing counter, usually one defined in an included file.
10036 \end_layout
10037
10038 \begin_layout Description
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 NoFloat
10044 \end_layout
10045
10046 \end_inset
10047
10048  [
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 <float>
10054 \end_layout
10055
10056 \end_inset
10057
10058 ] Deletes an existing float.
10059  This is particularly useful when you want to suppress a float that has
10060  been defined in an input file.
10061 \end_layout
10062
10063 \begin_layout Description
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 NoStyle
10069 \end_layout
10070
10071 \end_inset
10072
10073  [
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 <style>
10079 \end_layout
10080
10081 \end_inset
10082
10083 ] Deletes an existing style.
10084 \end_layout
10085
10086 \begin_layout Description
10087 \begin_inset Flex Code
10088 status collapsed
10089
10090 \begin_layout Plain Layout
10091 OutlinerName
10092 \end_layout
10093
10094 \end_inset
10095
10096  [
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 <type>
10102 \end_layout
10103
10104 \end_inset
10105
10106 ] [
10107 \begin_inset Flex Code
10108 status collapsed
10109
10110 \begin_layout Plain Layout
10111 <string>
10112 \end_layout
10113
10114 \end_inset
10115
10116 ] Define a new table of contents with type 
10117 \begin_inset Flex Code
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121 <type>
10122 \end_layout
10123
10124 \end_inset
10125
10126  and name 
10127 \begin_inset Flex Code
10128 status collapsed
10129
10130 \begin_layout Plain Layout
10131 <string>
10132 \end_layout
10133
10134 \end_inset
10135
10136 .
10137  See also the AddToToc commands.
10138 \end_layout
10139
10140 \begin_layout Description
10141 \begin_inset Flex Code
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145 OutputFormat
10146 \end_layout
10147
10148 \end_inset
10149
10150  [
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 <format>
10156 \end_layout
10157
10158 \end_inset
10159
10160 ] The file format (as defined in the \SpecialChar LyX
10161  preferences) produced by this document
10162  class.
10163  It is mainly useful when 
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 OutputType
10169 \end_layout
10170
10171 \end_inset
10172
10173  is 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 literate
10179 \end_layout
10180
10181 \end_inset
10182
10183  and one wants to define a new type of literate document.
10184  The format is reset to 
10185 \begin_inset Quotes eld
10186 \end_inset
10187
10188
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 docbook
10194 \end_layout
10195
10196 \end_inset
10197
10198
10199 \begin_inset Quotes erd
10200 \end_inset
10201
10202  or 
10203 \begin_inset Quotes eld
10204 \end_inset
10205
10206
10207 \begin_inset Flex Code
10208 status collapsed
10209
10210 \begin_layout Plain Layout
10211 latex
10212 \end_layout
10213
10214 \end_inset
10215
10216
10217 \begin_inset Quotes erd
10218 \end_inset
10219
10220  when the corresponding 
10221 \begin_inset Flex Code
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 OutputType
10226 \end_layout
10227
10228 \end_inset
10229
10230  parameter is encountered.
10231 \end_layout
10232
10233 \begin_layout Description
10234 \begin_inset Flex Code
10235 status collapsed
10236
10237 \begin_layout Plain Layout
10238 OutputType
10239 \end_layout
10240
10241 \end_inset
10242
10243  [
10244 \begin_inset Flex Code
10245 status collapsed
10246
10247 \begin_layout Plain Layout
10248
10249 \emph on
10250 lat
10251 \emph default
10252 ex
10253 \end_layout
10254
10255 \end_inset
10256
10257
10258 \begin_inset Flex Code
10259 status collapsed
10260
10261 \begin_layout Plain Layout
10262 docbook
10263 \end_layout
10264
10265 \end_inset
10266
10267
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 literate
10273 \end_layout
10274
10275 \end_inset
10276
10277 ] Specifies what sort of output documents using this class will produce.
10278 \end_layout
10279
10280 \begin_layout Description
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 PackageOptions
10286 \end_layout
10287
10288 \end_inset
10289
10290  [
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 string
10296 \end_layout
10297
10298 \end_inset
10299
10300  
10301 \begin_inset Flex Code
10302 status collapsed
10303
10304 \begin_layout Plain Layout
10305 string
10306 \end_layout
10307
10308 \end_inset
10309
10310 ] Specifies options, given in the second string, for the package named by
10311  the first string.
10312  For example, 
10313 \begin_inset Quotes eld
10314 \end_inset
10315
10316
10317 \begin_inset Flex Code
10318 status collapsed
10319
10320 \begin_layout Plain Layout
10321 PackageOptions natbib square
10322 \end_layout
10323
10324 \end_inset
10325
10326
10327 \begin_inset Quotes erd
10328 \end_inset
10329
10330  will cause 
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 natbib
10336 \end_layout
10337
10338 \end_inset
10339
10340  to be loaded with the 
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 square
10346 \end_layout
10347
10348 \end_inset
10349
10350  option.
10351  (For \SpecialChar TeX
10352 perts, this causes \SpecialChar LyX
10353  to output: 
10354 \begin_inset Flex Code
10355 status collapsed
10356
10357 \begin_layout Plain Layout
10358
10359 \backslash
10360 PassOptionsToPackage{natbib}{square}
10361 \end_layout
10362
10363 \end_inset
10364
10365  prior to loading 
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 natbib
10371 \end_layout
10372
10373 \end_inset
10374
10375 .)
10376 \end_layout
10377
10378 \begin_layout Description
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 PageStyle
10384 \end_layout
10385
10386 \end_inset
10387
10388  [
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393
10394 \emph on
10395 plain
10396 \end_layout
10397
10398 \end_inset
10399
10400
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 empty
10406 \end_layout
10407
10408 \end_inset
10409
10410
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 headings
10416 \end_layout
10417
10418 \end_inset
10419
10420 ] The default pagestyle.
10421  Can be changed in the 
10422 \begin_inset Flex Noun
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426 Document\SpecialChar menuseparator
10427 Settings
10428 \end_layout
10429
10430 \end_inset
10431
10432  dialog.
10433 \end_layout
10434
10435 \begin_layout Description
10436 \begin_inset Flex Code
10437 status collapsed
10438
10439 \begin_layout Plain Layout
10440 Preamble
10441 \end_layout
10442
10443 \end_inset
10444
10445  Sets the preamble for the \SpecialChar LaTeX
10446  document.
10447  Note that this will completely override any prior 
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 Preamble
10453 \end_layout
10454
10455 \end_inset
10456
10457  or 
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 AddToPreamble
10463 \end_layout
10464
10465 \end_inset
10466
10467  declarations.
10468  (Use 
10469 \begin_inset Flex Code
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 AddToPreamble
10474 \end_layout
10475
10476 \end_inset
10477
10478  if you just want to add material to the preamble.) Must end with 
10479 \begin_inset Quotes eld
10480 \end_inset
10481
10482
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 EndPreamble
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Quotes erd
10494 \end_inset
10495
10496 .
10497 \end_layout
10498
10499 \begin_layout Description
10500 \begin_inset Flex Code
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 Provides
10505 \end_layout
10506
10507 \end_inset
10508
10509  [
10510 \begin_inset Flex Code
10511 status collapsed
10512
10513 \begin_layout Plain Layout
10514 string
10515 \end_layout
10516
10517 \end_inset
10518
10519 ] [
10520 \begin_inset Flex Code
10521 status collapsed
10522
10523 \begin_layout Plain Layout
10524
10525 \emph on
10526 0
10527 \end_layout
10528
10529 \end_inset
10530
10531 ,
10532 \begin_inset space \thinspace{}
10533 \end_inset
10534
10535
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 1
10541 \end_layout
10542
10543 \end_inset
10544
10545 ] Whether the class already provides the feature 
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 string
10551 \end_layout
10552
10553 \end_inset
10554
10555 .
10556  A feature is in general the name of a package (e.
10557 \begin_inset space \thinspace{}
10558 \end_inset
10559
10560 g.
10561 \begin_inset space \space{}
10562 \end_inset
10563
10564
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 amsmath
10570 \end_layout
10571
10572 \end_inset
10573
10574  or 
10575 \begin_inset Flex Code
10576 status collapsed
10577
10578 \begin_layout Plain Layout
10579 makeidx
10580 \end_layout
10581
10582 \end_inset
10583
10584 ) or a macro (e.
10585 \begin_inset space \thinspace{}
10586 \end_inset
10587
10588 g.
10589 \begin_inset space \space{}
10590 \end_inset
10591
10592
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 url
10598 \end_layout
10599
10600 \end_inset
10601
10602  or 
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 boldsymbol
10608 \end_layout
10609
10610 \end_inset
10611
10612 ).
10613  See 
10614 \begin_inset CommandInset ref
10615 LatexCommand ref
10616 reference "chap:List-of-functions"
10617
10618 \end_inset
10619
10620  for the list of features.
10621 \end_layout
10622
10623 \begin_layout Description
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 ProvidesModule
10629 \end_layout
10630
10631 \end_inset
10632
10633  [
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638 string
10639 \end_layout
10640
10641 \end_inset
10642
10643 ] Indicates that this layout provides the functionality of the module mentioned,
10644  which should be specified by the filename without the 
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 .module
10650 \end_layout
10651
10652 \end_inset
10653
10654  extension.
10655  This will typically be used if the layout includes the module directly,
10656  rather than using the 
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 DefaultModule
10662 \end_layout
10663
10664 \end_inset
10665
10666  tag to indicate that it ought to be used.
10667  It could also be used in a module that provided an alternate implementation
10668  of the same functionality.
10669 \end_layout
10670
10671 \begin_layout Description
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 ProvideStyle
10677 \end_layout
10678
10679 \end_inset
10680
10681  [
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 <style>
10687 \end_layout
10688
10689 \end_inset
10690
10691 ] Creates a new paragraph style if it does not already exist.
10692  If the style does exist, this section is ignored.
10693  Must end with 
10694 \begin_inset Quotes eld
10695 \end_inset
10696
10697
10698 \begin_inset Flex Code
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 End
10703 \end_layout
10704
10705 \end_inset
10706
10707
10708 \begin_inset Quotes erd
10709 \end_inset
10710
10711 .
10712 \end_layout
10713
10714 \begin_layout Description
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 Requires
10720 \end_layout
10721
10722 \end_inset
10723
10724  [
10725 \begin_inset Flex Code
10726 status collapsed
10727
10728 \begin_layout Plain Layout
10729 string
10730 \end_layout
10731
10732 \end_inset
10733
10734 ] Whether the class requires the feature 
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 string
10740 \end_layout
10741
10742 \end_inset
10743
10744 .
10745  Multiple features must be separated by commas.
10746  Note that you can only request supported features.
10747  (See 
10748 \begin_inset CommandInset ref
10749 LatexCommand ref
10750 reference "chap:List-of-functions"
10751
10752 \end_inset
10753
10754  for the list of features.).
10755  If you require a package with specific options, you can additionally use
10756  
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 PackageOptions
10762 \end_layout
10763
10764 \end_inset
10765
10766 .
10767 \end_layout
10768
10769 \begin_layout Description
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 RightMargin
10775 \end_layout
10776
10777 \end_inset
10778
10779  [
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 string
10785 \end_layout
10786
10787 \end_inset
10788
10789 ] A string that indicates the width of the right margin on the screen, for
10790  example, 
10791 \begin_inset Quotes eld
10792 \end_inset
10793
10794
10795 \begin_inset Flex Code
10796 status collapsed
10797
10798 \begin_layout Plain Layout
10799 MMMMM
10800 \end_layout
10801
10802 \end_inset
10803
10804
10805 \begin_inset Quotes erd
10806 \end_inset
10807
10808 .
10809 \end_layout
10810
10811 \begin_layout Description
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 SecNumDepth
10817 \end_layout
10818
10819 \end_inset
10820
10821  [
10822 \begin_inset Flex Code
10823 status collapsed
10824
10825 \begin_layout Plain Layout
10826 int=3
10827 \end_layout
10828
10829 \end_inset
10830
10831 ] Sets which divisions get numbered.
10832  Corresponds to the
10833 \begin_inset Newline newline
10834 \end_inset
10835
10836
10837 \begin_inset Flex Code
10838 status collapsed
10839
10840 \begin_layout Plain Layout
10841 secnumdepth
10842 \end_layout
10843
10844 \end_inset
10845
10846  counter in \SpecialChar LaTeX
10847 .
10848 \end_layout
10849
10850 \begin_layout Description
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 Sides
10856 \end_layout
10857
10858 \end_inset
10859
10860  [
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865
10866 \emph on
10867 1
10868 \end_layout
10869
10870 \end_inset
10871
10872 ,
10873 \begin_inset space \thinspace{}
10874 \end_inset
10875
10876
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 2
10882 \end_layout
10883
10884 \end_inset
10885
10886 ] Whether the class-default should be printing on one or both sides of the
10887  paper.
10888  Can be changed in the 
10889 \begin_inset Flex Noun
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 Document\SpecialChar menuseparator
10894 Settings
10895 \end_layout
10896
10897 \end_inset
10898
10899  dialog.
10900 \end_layout
10901
10902 \begin_layout Description
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 Style
10908 \end_layout
10909
10910 \end_inset
10911
10912  [
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 <name>
10918 \end_layout
10919
10920 \end_inset
10921
10922 ] This sequence defines a paragraph style.
10923  If the style does not yet exist, it is created; if it does exist, its parameter
10924 s are modified.
10925  Must end with 
10926 \begin_inset Quotes eld
10927 \end_inset
10928
10929
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934 End
10935 \end_layout
10936
10937 \end_inset
10938
10939
10940 \begin_inset Quotes erd
10941 \end_inset
10942
10943 .
10944 \begin_inset Newline newline
10945 \end_inset
10946
10947 See 
10948 \begin_inset CommandInset ref
10949 LatexCommand ref
10950 reference "subsec:Paragraph-Styles"
10951
10952 \end_inset
10953
10954  for details on paragraph styles.
10955 \change_inserted -712698321 1553617804
10956
10957 \end_layout
10958
10959 \begin_layout Description
10960
10961 \change_inserted -712698321 1553617862
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966
10967 \change_inserted -712698321 1553617809
10968 TableStyle
10969 \end_layout
10970
10971 \end_inset
10972
10973  [
10974 \begin_inset Flex Code
10975 status collapsed
10976
10977 \begin_layout Plain Layout
10978
10979 \change_inserted -712698321 1553617805
10980 <name>
10981 \end_layout
10982
10983 \end_inset
10984
10985 ] defines the default table style that is used when inserting a table.
10986  The following styles are available:
10987 \end_layout
10988
10989 \begin_deeper
10990 \begin_layout Itemize
10991
10992 \change_inserted -712698321 1553617929
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997
10998 \change_inserted -712698321 1553617920
10999 Formal
11000 \change_unchanged
11001
11002 \end_layout
11003
11004 \end_inset
11005
11006 : formal (
11007 \begin_inset Quotes eld
11008 \end_inset
11009
11010 booktabs
11011 \begin_inset Quotes erd
11012 \end_inset
11013
11014 ) style with horizontal lines only and a bold top and bottom line.
11015 \end_layout
11016
11017 \begin_layout Itemize
11018
11019 \change_inserted -712698321 1553618031
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024
11025 \change_inserted -712698321 1553618006
11026 Simple_Grid
11027 \end_layout
11028
11029 \end_inset
11030
11031 : Simple table lines.
11032 \end_layout
11033
11034 \begin_layout Itemize
11035
11036 \change_inserted -712698321 1553618309
11037 \begin_inset Flex Code
11038 status collapsed
11039
11040 \begin_layout Plain Layout
11041
11042 \change_inserted -712698321 1553618031
11043 Grid_with_Head
11044 \end_layout
11045
11046 \end_inset
11047
11048 : Like 
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053
11054 \change_inserted -712698321 1553618043
11055 Simple_Grid
11056 \end_layout
11057
11058 \end_inset
11059
11060 , but with the header column offset with a second horizontal line.
11061  This is also the default style of \SpecialChar LyX
11062 .
11063 \end_layout
11064
11065 \begin_layout Itemize
11066
11067 \change_inserted -712698321 1553618280
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072
11073 \change_inserted -712698321 1553618261
11074 No_Borders
11075 \end_layout
11076
11077 \end_inset
11078
11079 : Table without lines.
11080 \change_unchanged
11081
11082 \end_layout
11083
11084 \end_deeper
11085 \begin_layout Description
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 TitleLatexName
11091 \end_layout
11092
11093 \end_inset
11094
11095  [
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 string="maketitle"
11101 \end_layout
11102
11103 \end_inset
11104
11105 ] The name of the command or environment to be used with 
11106 \begin_inset Flex Code
11107 status collapsed
11108
11109 \begin_layout Plain Layout
11110 TitleLatexType
11111 \end_layout
11112
11113 \end_inset
11114
11115 .
11116 \end_layout
11117
11118 \begin_layout Description
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 TitleLatexType
11124 \end_layout
11125
11126 \end_inset
11127
11128  [
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133
11134 \emph on
11135 CommandAfter
11136 \end_layout
11137
11138 \end_inset
11139
11140
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 Environment
11146 \end_layout
11147
11148 \end_inset
11149
11150 ] Indicates what kind of markup is used to define the title of a document.
11151  
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 CommandAfter
11157 \end_layout
11158
11159 \end_inset
11160
11161  means that the macro with name 
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 TitleLatexName
11167 \end_layout
11168
11169 \end_inset
11170
11171  will be inserted after the last layout which has 
11172 \begin_inset Quotes eld
11173 \end_inset
11174
11175
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 InTitle
11181 \begin_inset space ~
11182 \end_inset
11183
11184 1
11185 \end_layout
11186
11187 \end_inset
11188
11189
11190 \begin_inset Quotes erd
11191 \end_inset
11192
11193 .
11194  
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 Environment
11200 \end_layout
11201
11202 \end_inset
11203
11204  corresponds to the case where all layouts which have 
11205 \begin_inset Quotes eld
11206 \end_inset
11207
11208
11209 \begin_inset Flex Code
11210 status collapsed
11211
11212 \begin_layout Plain Layout
11213 InTitle
11214 \begin_inset space ~
11215 \end_inset
11216
11217 1
11218 \end_layout
11219
11220 \end_inset
11221
11222
11223 \begin_inset Quotes erd
11224 \end_inset
11225
11226  should be enclosed into the 
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 TitleLatexName
11232 \end_layout
11233
11234 \end_inset
11235
11236  environment.
11237 \end_layout
11238
11239 \begin_layout Description
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 TocDepth
11245 \end_layout
11246
11247 \end_inset
11248
11249  [
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 int=3
11255 \end_layout
11256
11257 \end_inset
11258
11259 ] Sets which divisions are included in the table of contents.
11260  Corresponds to the 
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 tocdepth
11266 \end_layout
11267
11268 \end_inset
11269
11270  counter in \SpecialChar LaTeX
11271 .
11272 \end_layout
11273
11274 \begin_layout Subsection
11275 \begin_inset Flex Code
11276 status collapsed
11277
11278 \begin_layout Plain Layout
11279 ClassOptions
11280 \end_layout
11281
11282 \end_inset
11283
11284  section
11285 \begin_inset CommandInset label
11286 LatexCommand label
11287 name "subsec:ClassOptions"
11288
11289 \end_inset
11290
11291
11292 \end_layout
11293
11294 \begin_layout Standard
11295 The 
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300 ClassOptions
11301 \end_layout
11302
11303 \end_inset
11304
11305  section can contain the following entries:
11306 \end_layout
11307
11308 \begin_layout Description
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 FontSize
11314 \end_layout
11315
11316 \end_inset
11317
11318  [
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 string="10|11|12"
11324 \end_layout
11325
11326 \end_inset
11327
11328 ] The list of available font sizes for the document's main font, separated
11329  by 
11330 \begin_inset Quotes eld
11331 \end_inset
11332
11333
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 |
11339 \end_layout
11340
11341 \end_inset
11342
11343
11344 \begin_inset Quotes erd
11345 \end_inset
11346
11347 .
11348 \end_layout
11349
11350 \begin_layout Description
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355 Header
11356 \end_layout
11357
11358 \end_inset
11359
11360  Used to set the DTD line with XML-based output classes.
11361  E.
11362 \begin_inset space \thinspace{}
11363 \end_inset
11364
11365 g.: PUBLIC 
11366 \begin_inset Quotes eld
11367 \end_inset
11368
11369 -//OASIS//DTD DocBook V4.2//EN
11370 \begin_inset Quotes erd
11371 \end_inset
11372
11373 .
11374 \end_layout
11375
11376 \begin_layout Description
11377 \begin_inset Flex Code
11378 status collapsed
11379
11380 \begin_layout Plain Layout
11381 PageStyle
11382 \end_layout
11383
11384 \end_inset
11385
11386  [
11387 \begin_inset Flex Code
11388 status collapsed
11389
11390 \begin_layout Plain Layout
11391 string="empty|plain|headings|fancy"
11392 \end_layout
11393
11394 \end_inset
11395
11396 ] The list of available page sty\SpecialChar softhyphen
11397 les, separated by 
11398 \begin_inset Quotes eld
11399 \end_inset
11400
11401
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 |
11407 \end_layout
11408
11409 \end_inset
11410
11411
11412 \begin_inset Quotes erd
11413 \end_inset
11414
11415 .
11416 \end_layout
11417
11418 \begin_layout Description
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 Other
11424 \end_layout
11425
11426 \end_inset
11427
11428  [
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 string=""
11434 \end_layout
11435
11436 \end_inset
11437
11438 ] Some document class options, separated by a comma, that will be added
11439  to the optional part of the 
11440 \begin_inset Flex Code
11441 status collapsed
11442
11443 \begin_layout Plain Layout
11444
11445 \backslash
11446 documentclass
11447 \end_layout
11448
11449 \end_inset
11450
11451  command.
11452 \end_layout
11453
11454 \begin_layout Standard
11455 The 
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 ClassOptions
11461 \end_layout
11462
11463 \end_inset
11464
11465  section must end with 
11466 \begin_inset Quotes eld
11467 \end_inset
11468
11469
11470 \begin_inset Flex Code
11471 status collapsed
11472
11473 \begin_layout Plain Layout
11474 End
11475 \end_layout
11476
11477 \end_inset
11478
11479
11480 \begin_inset Quotes erd
11481 \end_inset
11482
11483 .
11484 \end_layout
11485
11486 \begin_layout Subsection
11487 Paragraph styles
11488 \begin_inset CommandInset label
11489 LatexCommand label
11490 name "subsec:Paragraph-Styles"
11491
11492 \end_inset
11493
11494
11495 \end_layout
11496
11497 \begin_layout Standard
11498 A paragraph style description looks like this:
11499 \begin_inset Foot
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 Note that this will either define a new style or modify an existing one.
11504 \end_layout
11505
11506 \end_inset
11507
11508
11509 \end_layout
11510
11511 \begin_layout LyX-Code
11512 Style 
11513 \family roman
11514 \emph on
11515 name
11516 \end_layout
11517
11518 \begin_layout LyX-Code
11519  ...
11520 \end_layout
11521
11522 \begin_layout LyX-Code
11523 End
11524 \end_layout
11525
11526 \begin_layout Standard
11527 where the following commands are allowed:
11528 \end_layout
11529
11530 \begin_layout Description
11531 \begin_inset Flex Code
11532 status collapsed
11533
11534 \begin_layout Plain Layout
11535 AddToToc
11536 \end_layout
11537
11538 \end_inset
11539
11540  [
11541 \begin_inset Flex Code
11542 status collapsed
11543
11544 \begin_layout Plain Layout
11545 string
11546 \end_layout
11547
11548 \end_inset
11549
11550 =""] This paragraph will appear in the table of contents of the given type.
11551  An empty string disables.
11552  See also the OutlinerName and the IsTocCaption commands.
11553  Default: disabled.
11554 \end_layout
11555
11556 \begin_layout Description
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561 Align
11562 \end_layout
11563
11564 \end_inset
11565
11566  [
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571
11572 \emph on
11573 block
11574 \emph default
11575 , left, right, center
11576 \end_layout
11577
11578 \end_inset
11579
11580 ] Paragraph alignment.
11581 \end_layout
11582
11583 \begin_layout Description
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588 AlignPossible
11589 \end_layout
11590
11591 \end_inset
11592
11593  [
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598
11599 \emph on
11600 block
11601 \emph default
11602 , left, right, center
11603 \end_layout
11604
11605 \end_inset
11606
11607 ] A comma separated list of permitted alignments.
11608  (Some \SpecialChar LaTeX
11609  styles prohibit certain alignments, since those wouldn't make sense.
11610  For example a right-aligned or centered enumeration isn't possible.)
11611 \end_layout
11612
11613 \begin_layout Description
11614 \begin_inset Flex Code
11615 status collapsed
11616
11617 \begin_layout Plain Layout
11618 Argument
11619 \end_layout
11620
11621 \end_inset
11622
11623  [
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 int
11629 \end_layout
11630
11631 \end_inset
11632
11633 ] Defines argument number <int> of a command\SpecialChar breakableslash
11634 environment associated with
11635  the current style.
11636  This is useful for things like section headings, and only makes sense with
11637  \SpecialChar LaTeX
11638 .
11639  Every (optional or required) argument of a command or environment – except
11640  for the required argument that is associated with the content of the paragraph
11641  itself – has a separate definition, where the number specifies the order
11642  of the arguments.
11643  The definition must end with 
11644 \begin_inset Flex Code
11645 status collapsed
11646
11647 \begin_layout Plain Layout
11648 EndArgument
11649 \end_layout
11650
11651 \end_inset
11652
11653 .
11654  So a command with two optional arguments has:
11655 \end_layout
11656
11657 \begin_deeper
11658 \begin_layout Quote
11659
11660 \family typewriter
11661 Argument 1
11662 \end_layout
11663
11664 \begin_layout Quote
11665
11666 \family typewriter
11667 ...
11668 \end_layout
11669
11670 \begin_layout Quote
11671
11672 \family typewriter
11673 EndArgument
11674 \end_layout
11675
11676 \begin_layout Quote
11677
11678 \family typewriter
11679 Argument 2
11680 \end_layout
11681
11682 \begin_layout Quote
11683
11684 \family typewriter
11685 ...
11686 \end_layout
11687
11688 \begin_layout Quote
11689
11690 \family typewriter
11691 EndArgument
11692 \end_layout
11693
11694 \begin_layout Standard
11695 Inside the 
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 Argument
11701 \end_layout
11702
11703 \end_inset
11704
11705  definition, the following specifications are possible:
11706 \end_layout
11707
11708 \begin_layout Itemize
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 LabelString
11714 \end_layout
11715
11716 \end_inset
11717
11718  
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 [string]
11724 \end_layout
11725
11726 \end_inset
11727
11728  The string that will appear both in the menu (to insert this argument)
11729  and on the argument inset button (unless you also specify a separate 
11730 \begin_inset Flex Code
11731 status collapsed
11732
11733 \begin_layout Plain Layout
11734 MenuString
11735 \end_layout
11736
11737 \end_inset
11738
11739 ).
11740  For the menu, you can define an accelerator by appending the respective
11741  character to the string, divided by 
11742 \begin_inset Quotes eld
11743 \end_inset
11744
11745 |
11746 \begin_inset Quotes erd
11747 \end_inset
11748
11749  (e.
11750 \begin_inset space \thinspace{}
11751 \end_inset
11752
11753 g.
11754 \begin_inset space \space{}
11755 \end_inset
11756
11757
11758 \begin_inset Quotes eld
11759 \end_inset
11760
11761
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 Short Title|S
11767 \end_layout
11768
11769 \end_inset
11770
11771
11772 \begin_inset Quotes erd
11773 \end_inset
11774
11775 ).
11776 \end_layout
11777
11778 \begin_layout Itemize
11779 \begin_inset Flex Code
11780 status collapsed
11781
11782 \begin_layout Plain Layout
11783 MenuString
11784 \end_layout
11785
11786 \end_inset
11787
11788  
11789 \begin_inset Flex Code
11790 status collapsed
11791
11792 \begin_layout Plain Layout
11793 [string]
11794 \end_layout
11795
11796 \end_inset
11797
11798  A separate string for the menu.
11799  You can define an accelerator by appending the respective character to
11800  the string, divided by 
11801 \begin_inset Quotes eld
11802 \end_inset
11803
11804 |
11805 \begin_inset Quotes erd
11806 \end_inset
11807
11808  (e.
11809 \begin_inset space \thinspace{}
11810 \end_inset
11811
11812 g.
11813 \begin_inset space \space{}
11814 \end_inset
11815
11816
11817 \begin_inset Quotes eld
11818 \end_inset
11819
11820
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 Short Title|S
11826 \end_layout
11827
11828 \end_inset
11829
11830
11831 \begin_inset Quotes erd
11832 \end_inset
11833
11834 ).
11835  This specification is optional.
11836  If it is not given the 
11837 \begin_inset Flex Code
11838 status collapsed
11839
11840 \begin_layout Plain Layout
11841 LabelString
11842 \end_layout
11843
11844 \end_inset
11845
11846  will be used instead for the menu.
11847 \end_layout
11848
11849 \begin_layout Itemize
11850 \begin_inset Flex Code
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 Tooltip
11855 \end_layout
11856
11857 \end_inset
11858
11859  
11860 \begin_inset Flex Code
11861 status collapsed
11862
11863 \begin_layout Plain Layout
11864 [string]
11865 \end_layout
11866
11867 \end_inset
11868
11869  A longer explanatory text that appears in the tooltip when hovering over
11870  the argument inset.
11871 \end_layout
11872
11873 \begin_layout Itemize
11874 \begin_inset Flex Code
11875 status collapsed
11876
11877 \begin_layout Plain Layout
11878 Mandatory
11879 \end_layout
11880
11881 \end_inset
11882
11883  [
11884 \begin_inset Flex Code
11885 status collapsed
11886
11887 \begin_layout Plain Layout
11888
11889 \emph on
11890 0
11891 \end_layout
11892
11893 \end_inset
11894
11895 ,
11896 \begin_inset space \thinspace{}
11897 \end_inset
11898
11899
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 1
11905 \end_layout
11906
11907 \end_inset
11908
11909 ] Declare if this is a mandatory (1) or an optional (0) argument.
11910  Mandatory arguments will be output empty if not given, while optional arguments
11911  will not be output at all.
11912  By default, mandatory arguments are delimited by 
11913 \begin_inset Flex Code
11914 status collapsed
11915
11916 \begin_layout Plain Layout
11917 {...}
11918 \end_layout
11919
11920 \end_inset
11921
11922 , while optional arguments are delimited by 
11923 \begin_inset Flex Code
11924 status collapsed
11925
11926 \begin_layout Plain Layout
11927 [...]
11928 \end_layout
11929
11930 \end_inset
11931
11932
11933 \end_layout
11934
11935 \begin_layout Itemize
11936 \begin_inset Flex Code
11937 status collapsed
11938
11939 \begin_layout Plain Layout
11940 Requires
11941 \end_layout
11942
11943 \end_inset
11944
11945  
11946 \begin_inset Flex Code
11947 status collapsed
11948
11949 \begin_layout Plain Layout
11950 [int=0]
11951 \end_layout
11952
11953 \end_inset
11954
11955  defines another argument (by its number) which this argument requires to
11956  be output if it is itself output.
11957  E.
11958 \begin_inset space \thinspace{}
11959 \end_inset
11960
11961 g., in \SpecialChar LaTeX
11962  commands, optional arguments often require previous optional arguments
11963  to be output (at least empty), as in 
11964 \begin_inset Flex Code
11965 status collapsed
11966
11967 \begin_layout Plain Layout
11968
11969 \backslash
11970 command[][argument]{text}
11971 \end_layout
11972
11973 \end_inset
11974
11975 .
11976  This can be achieved by the statement 
11977 \begin_inset Flex Code
11978 status collapsed
11979
11980 \begin_layout Plain Layout
11981 Requires 1
11982 \end_layout
11983
11984 \end_inset
11985
11986  within 
11987 \begin_inset Flex Code
11988 status collapsed
11989
11990 \begin_layout Plain Layout
11991 Argument 2
11992 \end_layout
11993
11994 \end_inset
11995
11996 .
11997 \end_layout
11998
11999 \begin_layout Itemize
12000 \begin_inset Flex Code
12001 status collapsed
12002
12003 \begin_layout Plain Layout
12004 LeftDelim
12005 \end_layout
12006
12007 \end_inset
12008
12009  
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014 [string]
12015 \end_layout
12016
12017 \end_inset
12018
12019  defines a custom left delimiter (instead of 
12020 \begin_inset Flex Code
12021 status collapsed
12022
12023 \begin_layout Plain Layout
12024 {
12025 \end_layout
12026
12027 \end_inset
12028
12029  or 
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 [
12035 \end_layout
12036
12037 \end_inset
12038
12039 ).
12040  A line break in the output can be indicated by 
12041 \begin_inset Flex Code
12042 status collapsed
12043
12044 \begin_layout Plain Layout
12045 <br/>
12046 \end_layout
12047
12048 \end_inset
12049
12050 .
12051 \end_layout
12052
12053 \begin_layout Itemize
12054 \begin_inset Flex Code
12055 status collapsed
12056
12057 \begin_layout Plain Layout
12058 RightDelim
12059 \end_layout
12060
12061 \end_inset
12062
12063  
12064 \begin_inset Flex Code
12065 status collapsed
12066
12067 \begin_layout Plain Layout
12068 [string]
12069 \end_layout
12070
12071 \end_inset
12072
12073  defines a custom right delimiter (instead of 
12074 \begin_inset Flex Code
12075 status collapsed
12076
12077 \begin_layout Plain Layout
12078 }
12079 \end_layout
12080
12081 \end_inset
12082
12083  or 
12084 \begin_inset Flex Code
12085 status collapsed
12086
12087 \begin_layout Plain Layout
12088 ]
12089 \end_layout
12090
12091 \end_inset
12092
12093 ).
12094  A line break in the output can be indicated by 
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 <br/>
12100 \end_layout
12101
12102 \end_inset
12103
12104 .
12105 \end_layout
12106
12107 \begin_layout Itemize
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112 DefaultArg
12113 \end_layout
12114
12115 \end_inset
12116
12117  
12118 \begin_inset Flex Code
12119 status collapsed
12120
12121 \begin_layout Plain Layout
12122 [string]
12123 \end_layout
12124
12125 \end_inset
12126
12127  defines an argument that is inserted if and only if no user-specified arguments
12128  were given, i.
12129 \begin_inset space \thinspace{}
12130 \end_inset
12131
12132 e.
12133 \begin_inset space \space{}
12134 \end_inset
12135
12136 if no argument inset has been inserted (note that also an empty argument
12137  inset omits the DefaultArg).
12138  Multiple arguments need to be separated by comma.
12139 \end_layout
12140
12141 \begin_layout Itemize
12142 \begin_inset Flex Code
12143 status collapsed
12144
12145 \begin_layout Plain Layout
12146 PresetArg
12147 \end_layout
12148
12149 \end_inset
12150
12151  
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156 [string]
12157 \end_layout
12158
12159 \end_inset
12160
12161  defines an argument that is inserted in any case (alone or in addition
12162  to user-specified arguments).
12163  Multiple arguments need to be separated by comma.
12164 \end_layout
12165
12166 \begin_layout Itemize
12167 \begin_inset Flex Code
12168 status collapsed
12169
12170 \begin_layout Plain Layout
12171 Font
12172 \end_layout
12173
12174 \end_inset
12175
12176  The font used for the argument content, see 
12177 \begin_inset CommandInset ref
12178 LatexCommand ref
12179 reference "subsec:Font-description"
12180
12181 \end_inset
12182
12183 .
12184 \end_layout
12185
12186 \begin_layout Itemize
12187 \begin_inset Flex Code
12188 status collapsed
12189
12190 \begin_layout Plain Layout
12191 LabelFont
12192 \end_layout
12193
12194 \end_inset
12195
12196  The font used for the label; see 
12197 \begin_inset CommandInset ref
12198 LatexCommand ref
12199 reference "subsec:Font-description"
12200
12201 \end_inset
12202
12203 .
12204 \end_layout
12205
12206 \begin_layout Itemize
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211 Decoration
12212 \end_layout
12213
12214 \end_inset
12215
12216  [
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221
12222 \emph on
12223 Classic
12224 \emph default
12225 , Minimalistic, Conglomerate
12226 \end_layout
12227
12228 \end_inset
12229
12230 ] describes the rendering style used for the inset's frame and buttons.
12231 \end_layout
12232
12233 \begin_layout Itemize
12234 \begin_inset Flex Code
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238 AutoInsert
12239 \end_layout
12240
12241 \end_inset
12242
12243  
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 [int=0]
12249 \end_layout
12250
12251 \end_inset
12252
12253  If this is set to 
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 1
12259 \end_layout
12260
12261 \end_inset
12262
12263 , this argument is automatically inserted when the respective style is selected.
12264  Currently, only one argument per style\SpecialChar breakableslash
12265 layout can be automatically inserted.
12266 \end_layout
12267
12268 \begin_layout Itemize
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 InsertCotext
12274 \end_layout
12275
12276 \end_inset
12277
12278  
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283 [int=0]
12284 \end_layout
12285
12286 \end_inset
12287
12288  If this is set to 
12289 \begin_inset Flex Code
12290 status collapsed
12291
12292 \begin_layout Plain Layout
12293 1
12294 \end_layout
12295
12296 \end_inset
12297
12298 , this argument will be inserted with a copy of the co-text (either selected
12299  text or the whole paragraph) as content.
12300 \end_layout
12301
12302 \begin_layout Itemize
12303 \begin_inset Flex Code
12304 status collapsed
12305
12306 \begin_layout Plain Layout
12307 PassThru
12308 \end_layout
12309
12310 \end_inset
12311
12312  [
12313 \begin_inset Flex Code
12314 status collapsed
12315
12316 \begin_layout Plain Layout
12317
12318 \emph on
12319 inherited
12320 \emph default
12321 , true, false
12322 \end_layout
12323
12324 \end_inset
12325
12326 ] Whether the contents of this argument should be output in raw form, meaning
12327  without special translations that \SpecialChar LaTeX
12328  would require.
12329  By default, the 
12330 \begin_inset Flex Code
12331 status collapsed
12332
12333 \begin_layout Plain Layout
12334 PassThru
12335 \end_layout
12336
12337 \end_inset
12338
12339  status is inherited by the inset or paragraph layout the argument belongs
12340  to, true and false change the status for the given argument only.
12341 \end_layout
12342
12343 \begin_layout Itemize
12344 \begin_inset Flex Code
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 PassThruChars
12349 \end_layout
12350
12351 \end_inset
12352
12353  [
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358 string of characters
12359 \end_layout
12360
12361 \end_inset
12362
12363 ]
12364 \family typewriter
12365  
12366 \family default
12367 Defines individual characters
12368 \begin_inset Newline linebreak
12369 \end_inset
12370
12371 that should be output in raw form, meaning without special translations
12372  that \SpecialChar LaTeX
12373  would require.
12374  Note that, contrary to PassThru, this needs to be explicitly defined for
12375  arguments.
12376  That is, arguments do not inherit PassThruChars from their parent inset
12377  or layout.
12378 \end_layout
12379
12380 \begin_layout Itemize
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 IsTocCaption
12386 \end_layout
12387
12388 \end_inset
12389
12390  [
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395
12396 \emph on
12397 0
12398 \end_layout
12399
12400 \end_inset
12401
12402 ,
12403 \begin_inset space \thinspace{}
12404 \end_inset
12405
12406
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 1
12412 \end_layout
12413
12414 \end_inset
12415
12416 ] If this is set to 1, the argument will output its content in the corresponding
12417  item in the table of contents.
12418  See AddToToc.
12419 \end_layout
12420
12421 \begin_layout Standard
12422 By default, the text entered in the \SpecialChar LyX
12423  workarea in the respective layout is
12424  the last (mandatory) argument of a command if the 
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 LatexType
12430 \end_layout
12431
12432 \end_inset
12433
12434  is 
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 Command
12440 \end_layout
12441
12442 \end_inset
12443
12444 .
12445  However, arguments with the prefix 
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 post:
12451 \end_layout
12452
12453 \end_inset
12454
12455  are output after this workarea argument.
12456  Note that post-argument numbering restarts at 1, so the first argument
12457  following the workarea argument is 
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 post:1
12463 \end_layout
12464
12465 \end_inset
12466
12467 .
12468  Post-arguments are ignored in any other 
12469 \begin_inset Flex Code
12470 status collapsed
12471
12472 \begin_layout Plain Layout
12473 LatexType
12474 \end_layout
12475
12476 \end_inset
12477
12478  than 
12479 \begin_inset Flex Code
12480 status collapsed
12481
12482 \begin_layout Plain Layout
12483 Command
12484 \end_layout
12485
12486 \end_inset
12487
12488 .
12489 \end_layout
12490
12491 \begin_layout Standard
12492 Arguments for list 
12493 \begin_inset Flex Code
12494 status collapsed
12495
12496 \begin_layout Plain Layout
12497
12498 \backslash
12499 item
12500 \end_layout
12501
12502 \end_inset
12503
12504 s (as in 
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509
12510 \backslash
12511 item[foo]
12512 \end_layout
12513
12514 \end_inset
12515
12516 ) have the prefix 
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 item:
12522 \end_layout
12523
12524 \end_inset
12525
12526  followed by the number (e.
12527 \begin_inset space \thinspace{}
12528 \end_inset
12529
12530 g.
12531 \begin_inset space \space{}
12532 \end_inset
12533
12534
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 Argument item:1
12540 \end_layout
12541
12542 \end_inset
12543
12544 ).
12545 \change_inserted -712698321 1534487781
12546
12547 \end_layout
12548
12549 \begin_layout Standard
12550
12551 \change_inserted -712698321 1534488561
12552 Finally, there is a special argument type with the prefix 
12553 \begin_inset Flex Code
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557
12558 \change_inserted -712698321 1534487844
12559 listpreamble:
12560 \change_unchanged
12561
12562 \end_layout
12563
12564 \end_inset
12565
12566 .
12567  It is not really an argument, but uses the argument interface (thus, the
12568  prefix is also followed by a number, e.
12569 \begin_inset space \thinspace{}
12570 \end_inset
12571
12572 g.
12573  
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578
12579 \change_inserted -712698321 1534488412
12580 Argument listpreamble:1
12581 \end_layout
12582
12583 \end_inset
12584
12585 ).
12586  As the name implies, it is targeted at lists such as 
12587 \family sans
12588 Itemize
12589 \family default
12590
12591 \family sans
12592 Enumerate
12593 \family default
12594
12595 \family sans
12596 Description
12597 \family default
12598 , or 
12599 \family sans
12600 Bibliography
12601 \family default
12602 .
12603  Its content will be output at the list start, before the first 
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608
12609 \change_inserted -712698321 1534488058
12610
12611 \backslash
12612 item
12613 \change_unchanged
12614
12615 \end_layout
12616
12617 \end_inset
12618
12619 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12620 ).
12621  This way, users can insert redefinitions (of lengths etc.) to individual
12622  lists.
12623  By default, these arguments do not have a delimiter.
12624 \change_unchanged
12625
12626 \end_layout
12627
12628 \end_deeper
12629 \begin_layout Description
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634 AutoNests
12635 \end_layout
12636
12637 \end_inset
12638
12639  Includes a comma-separated list of layouts that should be nested in and
12640  after the current layout.
12641  Only makes sense for nestable layouts (such as environments).
12642  Must be ended by 
12643 \begin_inset Quotes eld
12644 \end_inset
12645
12646
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 EndAutoNests
12652 \end_layout
12653
12654 \end_inset
12655
12656
12657 \begin_inset Quotes erd
12658 \end_inset
12659
12660 .
12661  See also 
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666 IsAutoNestedBy
12667 \end_layout
12668
12669 \end_inset
12670
12671 .
12672 \end_layout
12673
12674 \begin_layout Description
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 BabelPreamble
12680 \end_layout
12681
12682 \end_inset
12683
12684  Note that this will completely override any prior 
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 BabelPreamble
12690 \end_layout
12691
12692 \end_inset
12693
12694  declaration for this style.
12695  Must end with 
12696 \begin_inset Quotes eld
12697 \end_inset
12698
12699
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 EndBabelPreamble
12705 \end_layout
12706
12707 \end_inset
12708
12709
12710 \begin_inset Quotes erd
12711 \end_inset
12712
12713 .
12714  See 
12715 \begin_inset CommandInset ref
12716 LatexCommand ref
12717 reference "subsec:I18n"
12718
12719 \end_inset
12720
12721  for details on its use.
12722 \end_layout
12723
12724 \begin_layout Description
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 BottomSep
12730 \end_layout
12731
12732 \end_inset
12733
12734  [
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 float=0
12740 \end_layout
12741
12742 \end_inset
12743
12744 ]
12745 \begin_inset Foot
12746 status collapsed
12747
12748 \begin_layout Plain Layout
12749 Note that a `float' here is a real number, such as: 1.5.
12750 \end_layout
12751
12752 \end_inset
12753
12754  The vertical space with which the last of a chain of paragraphs with this
12755  style is separated from the following paragraph.
12756  If the next paragraph has another style, the separations are not simply
12757  added, but the maximum is taken.
12758 \end_layout
12759
12760 \begin_layout Description
12761 \begin_inset Flex Code
12762 status collapsed
12763
12764 \begin_layout Plain Layout
12765 Category
12766 \end_layout
12767
12768 \end_inset
12769
12770  [
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 string
12776 \end_layout
12777
12778 \end_inset
12779
12780 ] The category for this style.
12781  This is used to group related styles in the style combobox on the toolbar.
12782  Any string can be used, but you may want to use existing categories with
12783  your own styles.
12784  
12785 \end_layout
12786
12787 \begin_layout Description
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792 CommandDepth
12793 \end_layout
12794
12795 \end_inset
12796
12797  Depth of XML command.
12798  Used only with XML-type formats.
12799 \end_layout
12800
12801 \begin_layout Description
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 CopyStyle
12807 \end_layout
12808
12809 \end_inset
12810
12811  [
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816 string
12817 \end_layout
12818
12819 \end_inset
12820
12821 ] Copies all the features of an existing style into the current one.
12822  
12823 \end_layout
12824
12825 \begin_layout Description
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 DependsOn
12831 \end_layout
12832
12833 \end_inset
12834
12835  [
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840 <name>
12841 \end_layout
12842
12843 \end_inset
12844
12845 ] The name of a style whose preamble should be output 
12846 \emph on
12847 before
12848 \emph default
12849  this one.
12850  This allows to ensure some ordering of the preamble snippets when macros
12851  definitions depend on one another.
12852 \begin_inset Foot
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 Note that, besides that functionality, there is no way to ensure any ordering
12857  of preambles.
12858  The ordering that you see in a given version of \SpecialChar LyX
12859  may change without warning
12860  in later versions.
12861 \end_layout
12862
12863 \end_inset
12864
12865
12866 \end_layout
12867
12868 \begin_layout Description
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873 EndLabeltype
12874 \end_layout
12875
12876 \end_inset
12877
12878  [
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883
12884 \emph on
12885 No_Label
12886 \emph default
12887 , Box, Filled_Box, Static
12888 \end_layout
12889
12890 \end_inset
12891
12892 ] The type of label that stands at the end of the paragraph (or sequence
12893  of paragraphs if 
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 LatexType
12899 \end_layout
12900
12901 \end_inset
12902
12903  is
12904 \begin_inset Newline newline
12905 \end_inset
12906
12907
12908 \begin_inset Flex Code
12909 status collapsed
12910
12911 \begin_layout Plain Layout
12912 Environment
12913 \end_layout
12914
12915 \end_inset
12916
12917
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922 Item_Environment
12923 \end_layout
12924
12925 \end_inset
12926
12927  or 
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 List_Environment
12933 \end_layout
12934
12935 \end_inset
12936
12937 ).
12938  
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 No_Label
12944 \end_layout
12945
12946 \end_inset
12947
12948  means 
12949 \begin_inset Quotes eld
12950 \end_inset
12951
12952 nothing
12953 \begin_inset Quotes erd
12954 \end_inset
12955
12956
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 Box
12962 \end_layout
12963
12964 \end_inset
12965
12966  (resp.
12967 \begin_inset space \space{}
12968 \end_inset
12969
12970
12971 \begin_inset Flex Code
12972 status collapsed
12973
12974 \begin_layout Plain Layout
12975 Filled_Box
12976 \end_layout
12977
12978 \end_inset
12979
12980 ) is a white (resp.
12981 \begin_inset space ~
12982 \end_inset
12983
12984 black) square suitable for end of proof markers, 
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989 Static
12990 \end_layout
12991
12992 \end_inset
12993
12994  is an explicit text string.
12995 \end_layout
12996
12997 \begin_layout Description
12998 \begin_inset Flex Code
12999 status collapsed
13000
13001 \begin_layout Plain Layout
13002 EndLabelString
13003 \end_layout
13004
13005 \end_inset
13006
13007  [
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 string=""
13013 \end_layout
13014
13015 \end_inset
13016
13017 ] The string used for a label with a 
13018 \begin_inset Flex Code
13019 status collapsed
13020
13021 \begin_layout Plain Layout
13022 Static
13023 \end_layout
13024
13025 \end_inset
13026
13027
13028 \begin_inset Newline newline
13029 \end_inset
13030
13031
13032 \begin_inset Flex Code
13033 status collapsed
13034
13035 \begin_layout Plain Layout
13036 EndLabelType
13037 \end_layout
13038
13039 \end_inset
13040
13041 .
13042  
13043 \end_layout
13044
13045 \begin_layout Description
13046 \begin_inset Flex Code
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 Font
13051 \end_layout
13052
13053 \end_inset
13054
13055  The font used for both the text body 
13056 \emph on
13057 and
13058 \emph default
13059  the label.
13060  See 
13061 \begin_inset CommandInset ref
13062 LatexCommand ref
13063 reference "subsec:Font-description"
13064
13065 \end_inset
13066
13067 .
13068  Note that defining this font automatically defines the 
13069 \begin_inset Flex Code
13070 status collapsed
13071
13072 \begin_layout Plain Layout
13073 LabelFont
13074 \end_layout
13075
13076 \end_inset
13077
13078  to the same value.
13079  So you should define this one first if you also want to define 
13080 \begin_inset Flex Code
13081 status collapsed
13082
13083 \begin_layout Plain Layout
13084 LabelFont
13085 \end_layout
13086
13087 \end_inset
13088
13089 .
13090 \end_layout
13091
13092 \begin_layout Description
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 ForceLocal
13098 \end_layout
13099
13100 \end_inset
13101
13102  [
13103 \begin_inset Flex Code
13104 status collapsed
13105
13106 \begin_layout Plain Layout
13107 int=0
13108 \end_layout
13109
13110 \end_inset
13111
13112 ] Used for backporting new styles to stable \SpecialChar LyX
13113  versions.
13114  The first stable version that supports this tag is \SpecialChar LyX
13115  2.1.0.
13116  The argument is a number which may either be 0, -1 or any value greater
13117  than zero.
13118  If the 
13119 \begin_inset Flex Code
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123 ForceLocal
13124 \end_layout
13125
13126 \end_inset
13127
13128  flag of a style is greater than zero, it will always be written to the
13129  document header.
13130  If a .lyx file is read, the style definitions from the document header are
13131  added to the document class.
13132  Therefore even older \SpecialChar LyX
13133  versions can handle the style.
13134  The argument of 
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 ForceLocal
13140 \end_layout
13141
13142 \end_inset
13143
13144  is a version number: if the style is read, and the version number is less
13145  than the version number of the already existing style in the document class,
13146  the new style is ignored.
13147  If the version number is greater, the new style replaces the existing style.
13148  A value of -1 means an infinite version number, i.
13149 \begin_inset space \thinspace{}
13150 \end_inset
13151
13152 e.
13153 \begin_inset space \space{}
13154 \end_inset
13155
13156 the style is always used.
13157 \end_layout
13158
13159 \begin_layout Description
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 FreeSpacing
13165 \end_layout
13166
13167 \end_inset
13168
13169  [
13170 \begin_inset Flex Code
13171 status collapsed
13172
13173 \begin_layout Plain Layout
13174
13175 \emph on
13176 0
13177 \end_layout
13178
13179 \end_inset
13180
13181 ,
13182 \begin_inset space \thinspace{}
13183 \end_inset
13184
13185
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190 1
13191 \end_layout
13192
13193 \end_inset
13194
13195 ] Usually \SpecialChar LyX
13196  does not allow you to insert more than one space between words,
13197  since a space is considered as the separation between two words, not a
13198  character or symbol of its own.
13199  This is a very fine thing but sometimes annoying, for example, when typing
13200  program code or plain \SpecialChar LaTeX
13201  code.
13202  For this reason, 
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 FreeSpacing
13208 \end_layout
13209
13210 \end_inset
13211
13212  can be enabled.
13213  
13214 \change_deleted -495245474 1550490105
13215 Note that 
13216 \change_unchanged
13217 \SpecialChar LyX
13218  will create protected blanks for the additional blanks when in 
13219 \change_inserted -495245474 1550490096
13220
13221 \begin_inset Flex Code
13222 status collapsed
13223
13224 \begin_layout Plain Layout
13225
13226 \change_inserted -495245474 1550490089
13227 Passthru 1
13228 \end_layout
13229
13230 \end_inset
13231
13232  is not specified.
13233 \change_deleted -495245474 1550490116
13234 another mode than \SpecialChar LaTeX
13235 -mode.
13236
13237 \change_inserted -495245474 1550247760
13238  Note that 
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243
13244 \change_inserted -495245474 1550247736
13245 FreeSpacing
13246 \end_layout
13247
13248 \end_inset
13249
13250  implies 
13251 \begin_inset Flex Code
13252 status collapsed
13253
13254 \begin_layout Plain Layout
13255
13256 \change_inserted -495245474 1550247755
13257 KeepEmpty
13258 \end_layout
13259
13260 \end_inset
13261
13262 .
13263 \change_unchanged
13264
13265 \end_layout
13266
13267 \begin_layout Description
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272 HTML*
13273 \end_layout
13274
13275 \end_inset
13276
13277  These tags are used with XHTML output.
13278  See 
13279 \begin_inset CommandInset ref
13280 LatexCommand ref
13281 reference "subsec:Paragraph-Style-XHTML"
13282
13283 \end_inset
13284
13285 .
13286 \end_layout
13287
13288 \begin_layout Description
13289 \begin_inset Flex Code
13290 status collapsed
13291
13292 \begin_layout Plain Layout
13293 InnerTag
13294 \end_layout
13295
13296 \end_inset
13297
13298  [FIXME] (Used only with XML-type formats.)
13299 \end_layout
13300
13301 \begin_layout Description
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 InPreamble
13307 \end_layout
13308
13309 \end_inset
13310
13311  [
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316
13317 \emph on
13318 0
13319 \end_layout
13320
13321 \end_inset
13322
13323 ,
13324 \begin_inset space \thinspace{}
13325 \end_inset
13326
13327
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 1
13333 \end_layout
13334
13335 \end_inset
13336
13337 ] If 
13338 \begin_inset Flex Code
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342 1
13343 \end_layout
13344
13345 \end_inset
13346
13347 , marks the style as to be included in the document preamble and not in
13348  the document body.
13349  This is useful for document classes that want such information as the title
13350  and author to appear in the preamble.
13351  Note that this works only for styles for which the 
13352 \begin_inset Flex Code
13353 status collapsed
13354
13355 \begin_layout Plain Layout
13356 LatexType
13357 \end_layout
13358
13359 \end_inset
13360
13361  is 
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366 Command
13367 \end_layout
13368
13369 \end_inset
13370
13371  or 
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376 Paragraph
13377 \end_layout
13378
13379 \end_inset
13380
13381 .
13382 \end_layout
13383
13384 \begin_layout Description
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 InTitle
13390 \end_layout
13391
13392 \end_inset
13393
13394  [
13395 \begin_inset Flex Code
13396 status collapsed
13397
13398 \begin_layout Plain Layout
13399
13400 \emph on
13401 0
13402 \end_layout
13403
13404 \end_inset
13405
13406 ,
13407 \begin_inset space \thinspace{}
13408 \end_inset
13409
13410
13411 \begin_inset Flex Code
13412 status collapsed
13413
13414 \begin_layout Plain Layout
13415 1
13416 \end_layout
13417
13418 \end_inset
13419
13420 ] If 
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425 1
13426 \end_layout
13427
13428 \end_inset
13429
13430 , marks the style as being part of a title block (see also the 
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 TitleLatexType
13436 \end_layout
13437
13438 \end_inset
13439
13440  and 
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 TitleLatexName
13446 \end_layout
13447
13448 \end_inset
13449
13450  global entries).
13451 \end_layout
13452
13453 \begin_layout Description
13454 \begin_inset Flex Code
13455 status collapsed
13456
13457 \begin_layout Plain Layout
13458 IsAutoNestedBy
13459 \end_layout
13460
13461 \end_inset
13462
13463  Includes a comma-separated list of layouts after which this one should
13464  be nested.
13465  Only makes sense with regard to nestable layouts (such as environments).
13466  Must be ended by 
13467 \begin_inset Quotes eld
13468 \end_inset
13469
13470
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 EndIsAutoNestedBy
13476 \end_layout
13477
13478 \end_inset
13479
13480
13481 \begin_inset Quotes erd
13482 \end_inset
13483
13484 .
13485  See also 
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 AutoNests
13491 \end_layout
13492
13493 \end_inset
13494
13495 .
13496 \end_layout
13497
13498 \begin_layout Description
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 IsTocCaption
13504 \end_layout
13505
13506 \end_inset
13507
13508  [
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513
13514 \emph on
13515 0
13516 \end_layout
13517
13518 \end_inset
13519
13520 ,
13521 \begin_inset space \thinspace{}
13522 \end_inset
13523
13524
13525 \begin_inset Flex Code
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529 1
13530 \end_layout
13531
13532 \end_inset
13533
13534 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13535  of its contents in its item in the table of contents.
13536  Otherwise, only the label, if it exists, appears.
13537 \end_layout
13538
13539 \begin_layout Description
13540 \begin_inset Flex Code
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544 ItemCommand
13545 \end_layout
13546
13547 \end_inset
13548
13549  [
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 string="item"
13555 \end_layout
13556
13557 \end_inset
13558
13559 ] The \SpecialChar LaTeX
13560  command sequence declaring an item in a list.
13561  The command is to be defined without the preceding backslash (the default
13562  is 
13563 \begin_inset Quotes eld
13564 \end_inset
13565
13566 item
13567 \begin_inset Quotes erd
13568 \end_inset
13569
13570 , resulting in 
13571 \begin_inset Flex Code
13572 status collapsed
13573
13574 \begin_layout Plain Layout
13575
13576 \backslash
13577 item
13578 \end_layout
13579
13580 \end_inset
13581
13582  in the \SpecialChar LaTeX
13583  output).
13584 \end_layout
13585
13586 \begin_layout Description
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591 ItemSep
13592 \end_layout
13593
13594 \end_inset
13595
13596  [
13597 \begin_inset Flex Code
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601 float=0
13602 \end_layout
13603
13604 \end_inset
13605
13606 ] This provides extra space between paragraphs that have the same style.
13607  If you put other styles into an environment, each is separated with the
13608  environment's 
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613 ParSep
13614 \end_layout
13615
13616 \end_inset
13617
13618 .
13619  But the whole items of the environment are additionally separated with
13620  this 
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 ItemSep
13626 \end_layout
13627
13628 \end_inset
13629
13630 .
13631  Note that this is a
13632 \emph on
13633  multiplier.
13634 \end_layout
13635
13636 \begin_layout Description
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641 ItemTag
13642 \end_layout
13643
13644 \end_inset
13645
13646  [FIXME] (Used only with XML-type formats.)
13647 \end_layout
13648
13649 \begin_layout Description
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 KeepEmpty
13655 \end_layout
13656
13657 \end_inset
13658
13659  [
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664
13665 \emph on
13666 0
13667 \end_layout
13668
13669 \end_inset
13670
13671 ,
13672 \begin_inset space \thinspace{}
13673 \end_inset
13674
13675
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 1
13681 \end_layout
13682
13683 \end_inset
13684
13685 ] Usually \SpecialChar LyX
13686  does not allow you to leave a paragraph empty, since it would
13687  lead to empty \SpecialChar LaTeX
13688  output.
13689  There are some cases where this could be desirable however: in a letter
13690  template, the required fields can be provided as empty fields, so that
13691  people do not forget them; in some special classes, a style can be used
13692  as some kind of break, which does not contain actual text.
13693 \end_layout
13694
13695 \begin_layout Description
13696 \begin_inset Flex Code
13697 status collapsed
13698
13699 \begin_layout Plain Layout
13700 LabelBottomsep
13701 \end_layout
13702
13703 \end_inset
13704
13705  [
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 float=0
13711 \end_layout
13712
13713 \end_inset
13714
13715 ] The vertical space between the label and the text body.
13716  Only used for labels that are above the text body (
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 Top_Environment
13722 \end_layout
13723
13724 \end_inset
13725
13726  and
13727 \begin_inset Newline newline
13728 \end_inset
13729
13730
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 Centered_Top_Environment
13736 \end_layout
13737
13738 \end_inset
13739
13740 ).
13741 \end_layout
13742
13743 \begin_layout Description
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 LabelCounter
13749 \end_layout
13750
13751 \end_inset
13752
13753  [
13754 \begin_inset Flex Code
13755 status collapsed
13756
13757 \begin_layout Plain Layout
13758 string=""
13759 \end_layout
13760
13761 \end_inset
13762
13763 ] The name of the counter for automatic numbering.
13764  In order to have the counter appear with your label, you will need to reference
13765  it in the 
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770
13771 \family typewriter
13772 LabelString
13773 \end_layout
13774
13775 \end_inset
13776
13777 .
13778  This will work with 
13779 \begin_inset Flex Code
13780 status collapsed
13781
13782 \begin_layout Plain Layout
13783 LabelType
13784 \end_layout
13785
13786 \end_inset
13787
13788 s, 
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793 Static
13794 \end_layout
13795
13796 \end_inset
13797
13798
13799 \begin_inset Flex Code
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 Above
13804 \end_layout
13805
13806 \end_inset
13807
13808  and 
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813 Centered
13814 \end_layout
13815
13816 \end_inset
13817
13818 , at least.
13819 \begin_inset Newline newline
13820 \end_inset
13821
13822 This 
13823 \emph on
13824 may
13825 \emph default
13826  also be given if 
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 LabelType
13832 \end_layout
13833
13834 \end_inset
13835
13836  is 
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841 Enumerate
13842 \end_layout
13843
13844 \end_inset
13845
13846 , though this case is a bit complicated.
13847  Suppose you declare 
13848 \begin_inset Quotes eld
13849 \end_inset
13850
13851
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 LabelCounter myenum
13857 \end_layout
13858
13859 \end_inset
13860
13861
13862 \begin_inset Quotes erd
13863 \end_inset
13864
13865 .
13866  Then the actual counters used are 
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 myenumi
13872 \end_layout
13873
13874 \end_inset
13875
13876
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 myenumii
13882 \end_layout
13883
13884 \end_inset
13885
13886
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 myenumiii
13892 \end_layout
13893
13894 \end_inset
13895
13896  and 
13897 \begin_inset Flex Code
13898 status collapsed
13899
13900 \begin_layout Plain Layout
13901 myenumiv
13902 \end_layout
13903
13904 \end_inset
13905
13906 , much as in \SpecialChar LaTeX
13907 .
13908  These counters must all be declared separately.
13909 \begin_inset Newline newline
13910 \end_inset
13911
13912 See 
13913 \begin_inset CommandInset ref
13914 LatexCommand ref
13915 reference "subsec:Counters"
13916
13917 \end_inset
13918
13919  for details on counters.
13920 \end_layout
13921
13922 \begin_layout Description
13923 \begin_inset Flex Code
13924 status collapsed
13925
13926 \begin_layout Plain Layout
13927 LabelFont
13928 \end_layout
13929
13930 \end_inset
13931
13932  The font used for the label.
13933  See 
13934 \begin_inset CommandInset ref
13935 LatexCommand ref
13936 reference "subsec:Font-description"
13937
13938 \end_inset
13939
13940 .
13941 \end_layout
13942
13943 \begin_layout Description
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948 LabelIndent
13949 \end_layout
13950
13951 \end_inset
13952
13953  [
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 string=""
13959 \end_layout
13960
13961 \end_inset
13962
13963 ] Text that indicates how far a label should be indented.
13964 \end_layout
13965
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LabelSep
13972 \end_layout
13973
13974 \end_inset
13975
13976  [
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981 string=""
13982 \end_layout
13983
13984 \end_inset
13985
13986 ] Text that indicates the amount of horizontal space between the label and
13987  the text body.
13988  Only used for labels that are not above the text body.
13989 \end_layout
13990
13991 \begin_layout Description
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 LabelString
13997 \end_layout
13998
13999 \end_inset
14000
14001  [
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 string=""
14007 \end_layout
14008
14009 \end_inset
14010
14011 ] The string used for the label.
14012  When 
14013 \begin_inset Flex Code
14014 status collapsed
14015
14016 \begin_layout Plain Layout
14017 LabelCounter
14018 \end_layout
14019
14020 \end_inset
14021
14022  is set, this string can be contain the special formatting commands described
14023  in 
14024 \begin_inset CommandInset ref
14025 LatexCommand ref
14026 reference "subsec:Counters"
14027
14028 \end_inset
14029
14030 .
14031 \end_layout
14032
14033 \begin_layout Description
14034 \begin_inset Flex Code
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038 LabelStringAppendix
14039 \end_layout
14040
14041 \end_inset
14042
14043  [
14044 \begin_inset Flex Code
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048 string=""
14049 \end_layout
14050
14051 \end_inset
14052
14053 ] This is used inside the appendix instead of
14054 \begin_inset Newline newline
14055 \end_inset
14056
14057
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 LabelString
14063 \end_layout
14064
14065 \end_inset
14066
14067 .
14068  Note that every 
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 LabelString
14074 \end_layout
14075
14076 \end_inset
14077
14078  statement resets
14079 \begin_inset Newline newline
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 LabelStringAppendix
14088 \end_layout
14089
14090 \end_inset
14091
14092  too.
14093 \end_layout
14094
14095 \begin_layout Description
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 LabelTag
14101 \end_layout
14102
14103 \end_inset
14104
14105  [FIXME] (Used only with XML-type formats.)
14106 \end_layout
14107
14108 \begin_layout Description
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 LabelType
14114 \end_layout
14115
14116 \end_inset
14117
14118  [
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123
14124 \emph on
14125 No_Label
14126 \emph default
14127 , Manual, Static, Above, 
14128 \begin_inset Newline newline
14129 \end_inset
14130
14131 Centered, Sensitive, Enumerate,
14132 \begin_inset Newline newline
14133 \end_inset
14134
14135 Itemize, Bibliography
14136 \end_layout
14137
14138 \end_inset
14139
14140 ]
14141 \end_layout
14142
14143 \begin_deeper
14144 \begin_layout Description
14145 \begin_inset Flex Code
14146 status collapsed
14147
14148 \begin_layout Plain Layout
14149 Manual
14150 \end_layout
14151
14152 \end_inset
14153
14154  means the label is the very first word (up to the first real blank).
14155  Use protected spaces if you want more than one word as the label.
14156  
14157 \end_layout
14158
14159 \begin_layout Description
14160 \begin_inset Flex Code
14161 status collapsed
14162
14163 \begin_layout Plain Layout
14164 Static
14165 \end_layout
14166
14167 \end_inset
14168
14169  means the label is simply what is declared as 
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 LabelString
14175 \end_layout
14176
14177 \end_inset
14178
14179 .
14180  This will be displayed 
14181 \begin_inset Quotes eld
14182 \end_inset
14183
14184 inline
14185 \begin_inset Quotes erd
14186 \end_inset
14187
14188 , at the beginning of the paragraph.
14189  If the 
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 LatexType
14195 \end_layout
14196
14197 \end_inset
14198
14199  is 
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 Environment
14205 \end_layout
14206
14207 \end_inset
14208
14209 , then it will be displayed only in the first paragraph of any sequence
14210  of paragraphs with the same 
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 Style
14216 \end_layout
14217
14218 \end_inset
14219
14220 .
14221 \end_layout
14222
14223 \begin_layout Description
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 Above
14229 \end_layout
14230
14231 \end_inset
14232
14233
14234 \begin_inset space ~
14235 \end_inset
14236
14237 and
14238 \begin_inset space ~
14239 \end_inset
14240
14241
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 Centered
14247 \end_layout
14248
14249 \end_inset
14250
14251  are special cases of 
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 Static
14257 \end_layout
14258
14259 \end_inset
14260
14261 .
14262  The label will be printed above the paragraph either at the beginning of
14263  the line or centered.
14264 \end_layout
14265
14266 \begin_layout Description
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 Sensitive
14272 \end_layout
14273
14274 \end_inset
14275
14276  is a special case for the caption-labels 
14277 \begin_inset Quotes eld
14278 \end_inset
14279
14280 Figure
14281 \begin_inset Quotes erd
14282 \end_inset
14283
14284  and 
14285 \begin_inset Quotes eld
14286 \end_inset
14287
14288 Table
14289 \begin_inset Quotes erd
14290 \end_inset
14291
14292 .
14293 \begin_inset Newline newline
14294 \end_inset
14295
14296
14297 \begin_inset Flex Code
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301 Sensitive
14302 \end_layout
14303
14304 \end_inset
14305
14306  means the (hardcoded) label string depends on the kind of float: It is
14307  hardcoded to be `FloatType N', where N is the value of the counter associated
14308  with the float.
14309  For the case that a caption is inserted outside of a float the 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 LabelString
14315 \end_layout
14316
14317 \end_inset
14318
14319  will appear as 
14320 \begin_inset Quotes eld
14321 \end_inset
14322
14323 Senseless!
14324 \begin_inset Quotes erd
14325 \end_inset
14326
14327 .
14328 \end_layout
14329
14330 \begin_layout Description
14331 \begin_inset Flex Code
14332 status collapsed
14333
14334 \begin_layout Plain Layout
14335 Enumerate
14336 \end_layout
14337
14338 \end_inset
14339
14340  produces the usual sort of enumeration labels.
14341  The number type needs to be set in the 
14342 \family sans
14343 Counter
14344 \family default
14345 , see 
14346 \begin_inset CommandInset ref
14347 LatexCommand ref
14348 reference "subsec:Counters"
14349
14350 \end_inset
14351
14352 .
14353 \end_layout
14354
14355 \begin_layout Description
14356 \begin_inset Flex Code
14357 status collapsed
14358
14359 \begin_layout Plain Layout
14360 Itemize
14361 \end_layout
14362
14363 \end_inset
14364
14365  produces various bullets at the different levels.
14366  The bullet types displayed can be set via 
14367 \begin_inset Flex Noun
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371 Document\SpecialChar menuseparator
14372 Settings\SpecialChar menuseparator
14373 Bullets
14374 \end_layout
14375
14376 \end_inset
14377
14378 .
14379 \end_layout
14380
14381 \begin_layout Description
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 Bibliography
14387 \end_layout
14388
14389 \end_inset
14390
14391  should be used only with 
14392 \begin_inset Flex Code
14393 status collapsed
14394
14395 \begin_layout Plain Layout
14396 LatexType BibEnvironment
14397 \end_layout
14398
14399 \end_inset
14400
14401 .
14402 \end_layout
14403
14404 \end_deeper
14405 \begin_layout Description
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 LangPreamble
14411 \end_layout
14412
14413 \end_inset
14414
14415  Note that this will completely override any prior 
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 LangPreamble
14421 \end_layout
14422
14423 \end_inset
14424
14425  declaration for this style.
14426  Must end with 
14427 \begin_inset Quotes eld
14428 \end_inset
14429
14430
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 EndLangPreamble
14436 \end_layout
14437
14438 \end_inset
14439
14440
14441 \begin_inset Quotes erd
14442 \end_inset
14443
14444 .
14445  See 
14446 \begin_inset CommandInset ref
14447 LatexCommand ref
14448 reference "subsec:I18n"
14449
14450 \end_inset
14451
14452  for details on its use.
14453 \end_layout
14454
14455 \begin_layout Description
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460 LatexName
14461 \end_layout
14462
14463 \end_inset
14464
14465  [
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470 <name>
14471 \end_layout
14472
14473 \end_inset
14474
14475 ] The name of the corresponding \SpecialChar LaTeX
14476  stuff.
14477  Either the environment or command name.
14478 \end_layout
14479
14480 \begin_layout Description
14481 \begin_inset Flex Code
14482 status collapsed
14483
14484 \begin_layout Plain Layout
14485 LatexParam
14486 \end_layout
14487
14488 \end_inset
14489
14490  [
14491 \begin_inset Flex Code
14492 status collapsed
14493
14494 \begin_layout Plain Layout
14495 <parameter>
14496 \end_layout
14497
14498 \end_inset
14499
14500 ] An optional parameter for the corresponding 
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 LatexName
14506 \end_layout
14507
14508 \end_inset
14509
14510  stuff.
14511  This parameter cannot be changed from within \SpecialChar LyX
14512  (use 
14513 \begin_inset Flex Code
14514 status collapsed
14515
14516 \begin_layout Plain Layout
14517 Argument
14518 \end_layout
14519
14520 \end_inset
14521
14522  for customizable parameters).
14523  This will be output as is after all \SpecialChar LaTeX
14524  
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 Argument
14530 \end_layout
14531
14532 \end_inset
14533
14534 s.
14535 \end_layout
14536
14537 \begin_layout Description
14538 \begin_inset Flex Code
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542 LatexType
14543 \end_layout
14544
14545 \end_inset
14546
14547  [
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552
14553 \emph on
14554 Paragraph
14555 \emph default
14556 , Command, Environment, Item_Environment,
14557 \begin_inset Newline newline
14558 \end_inset
14559
14560 List_Environment, Bib_Environment
14561 \end_layout
14562
14563 \end_inset
14564
14565 ] How the style should be translated into \SpecialChar LaTeX
14566 .
14567 \begin_inset Foot
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 LatexType
14576 \end_layout
14577
14578 \end_inset
14579
14580  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14581  Visit the SGML class files for specific examples.
14582 \end_layout
14583
14584 \end_inset
14585
14586
14587 \end_layout
14588
14589 \begin_deeper
14590 \begin_layout Description
14591 \begin_inset Flex Code
14592 status collapsed
14593
14594 \begin_layout Plain Layout
14595 Paragraph
14596 \end_layout
14597
14598 \end_inset
14599
14600  means nothing special.
14601 \end_layout
14602
14603 \begin_layout Description
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Command
14609 \end_layout
14610
14611 \end_inset
14612
14613  means 
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618
14619 \backslash
14620
14621 \emph on
14622 LatexName
14623 \emph default
14624 {\SpecialChar ldots
14625 }
14626 \end_layout
14627
14628 \end_inset
14629
14630 .
14631 \end_layout
14632
14633 \begin_layout Description
14634 \begin_inset Flex Code
14635 status collapsed
14636
14637 \begin_layout Plain Layout
14638 Environment
14639 \end_layout
14640
14641 \end_inset
14642
14643  means 
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648
14649 \backslash
14650 begin{
14651 \emph on
14652 LatexName
14653 \emph default
14654 }\SpecialChar ldots
14655
14656 \backslash
14657 end{
14658 \emph on
14659 LatexName
14660 \emph default
14661 }
14662 \end_layout
14663
14664 \end_inset
14665
14666 .
14667  
14668 \end_layout
14669
14670 \begin_layout Description
14671 \begin_inset Flex Code
14672 status collapsed
14673
14674 \begin_layout Plain Layout
14675 Item_Environment
14676 \end_layout
14677
14678 \end_inset
14679
14680  is the same as 
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 Environment
14686 \end_layout
14687
14688 \end_inset
14689
14690 , except that an 
14691 \begin_inset Flex Code
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695
14696 \backslash
14697 item
14698 \end_layout
14699
14700 \end_inset
14701
14702  is generated for each paragraph of this environment.
14703  
14704 \end_layout
14705
14706 \begin_layout Description
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711 List_Environment
14712 \end_layout
14713
14714 \end_inset
14715
14716  is the same as 
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721 Item_Environment
14722 \end_layout
14723
14724 \end_inset
14725
14726 , except that
14727 \begin_inset Newline newline
14728 \end_inset
14729
14730
14731 \begin_inset Flex Code
14732 status collapsed
14733
14734 \begin_layout Plain Layout
14735 LabelWidthString
14736 \end_layout
14737
14738 \end_inset
14739
14740  is passed as an argument to the environment.
14741 \begin_inset Newline newline
14742 \end_inset
14743
14744
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 LabelWidthString
14750 \end_layout
14751
14752 \end_inset
14753
14754  can be defined in the 
14755 \begin_inset Flex Noun
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759 Edit\SpecialChar menuseparator
14760 Paragraph
14761 \begin_inset space ~
14762 \end_inset
14763
14764 settings
14765 \end_layout
14766
14767 \end_inset
14768
14769  dialog.
14770 \end_layout
14771
14772 \begin_layout Description
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 Bib_Environment
14778 \end_layout
14779
14780 \end_inset
14781
14782  is like 
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 Environment
14788 \end_layout
14789
14790 \end_inset
14791
14792  but adds the necessary mandatory argument (the longest label) to the begin
14793  statement of the bibliography environment:
14794 \begin_inset Newline newline
14795 \end_inset
14796
14797
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802
14803 \backslash
14804 begin{thebibliography}{99}
14805 \end_layout
14806
14807 \end_inset
14808
14809 .
14810  It is therefore only useful for bibliography environments.
14811  The default longest label 
14812 \begin_inset Quotes eld
14813 \end_inset
14814
14815 99
14816 \begin_inset Quotes erd
14817 \end_inset
14818
14819  can be changed by the user in the paragraph settings of a bibliography
14820  item.
14821 \end_layout
14822
14823 \begin_layout Standard
14824 Putting the last few things together, the \SpecialChar LaTeX
14825  output will be either: 
14826 \end_layout
14827
14828 \begin_layout LyX-Code
14829
14830 \backslash
14831 LatexName[LatexParam]{\SpecialChar ldots
14832 }
14833 \end_layout
14834
14835 \begin_layout Standard
14836 or: 
14837 \end_layout
14838
14839 \begin_layout LyX-Code
14840
14841 \backslash
14842 begin{LatexName}[LatexParam] \SpecialChar ldots
14843  
14844 \backslash
14845 end{LatexName}.
14846 \end_layout
14847
14848 \begin_layout Standard
14849 depending upon the \SpecialChar LaTeX
14850  type.
14851 \end_layout
14852
14853 \end_deeper
14854 \begin_layout Description
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 LeftDelim
14860 \end_layout
14861
14862 \end_inset
14863
14864  [
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 string
14870 \end_layout
14871
14872 \end_inset
14873
14874 ] A string that is put at the beginning of the style content.
14875  A line break in the output can be indicated by 
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 <br/>
14881 \end_layout
14882
14883 \end_inset
14884
14885 .
14886 \end_layout
14887
14888 \begin_layout Description
14889 \begin_inset Flex Code
14890 status collapsed
14891
14892 \begin_layout Plain Layout
14893 LeftMargin
14894 \end_layout
14895
14896 \end_inset
14897
14898  [
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903 string=""
14904 \end_layout
14905
14906 \end_inset
14907
14908 ] If you put styles into environments, the different 
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 LeftMargin
14914 \end_layout
14915
14916 \end_inset
14917
14918  are not simply added, but added with a factor 
14919 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14920 \end_inset
14921
14922 .
14923  Note that this parameter is also used when 
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 Margin
14929 \end_layout
14930
14931 \end_inset
14932
14933  is defined as 
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 Manual
14939 \end_layout
14940
14941 \end_inset
14942
14943  or 
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 Dynamic
14949 \end_layout
14950
14951 \end_inset
14952
14953 .
14954  Then it is added to the manual or dynamic margin.
14955 \begin_inset Newline newline
14956 \end_inset
14957
14958 For example 
14959 \begin_inset Quotes eld
14960 \end_inset
14961
14962
14963 \begin_inset Flex Code
14964 status collapsed
14965
14966 \begin_layout Plain Layout
14967 MM
14968 \end_layout
14969
14970 \end_inset
14971
14972
14973 \begin_inset Quotes erd
14974 \end_inset
14975
14976  means that the paragraph is indented with the width of 
14977 \begin_inset Quotes eld
14978 \end_inset
14979
14980
14981 \begin_inset Flex Code
14982 status collapsed
14983
14984 \begin_layout Plain Layout
14985 MM
14986 \end_layout
14987
14988 \end_inset
14989
14990
14991 \begin_inset Quotes erd
14992 \end_inset
14993
14994  in the normal font.
14995  You can get a negative width by prefixing the string with 
14996 \begin_inset Quotes eld
14997 \end_inset
14998
14999
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 -
15005 \end_layout
15006
15007 \end_inset
15008
15009
15010 \begin_inset Quotes erd
15011 \end_inset
15012
15013 .
15014  This way was chosen so that the look is the same with each used screen
15015  font.
15016 \end_layout
15017
15018 \begin_layout Description
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 Margin
15024 \end_layout
15025
15026 \end_inset
15027
15028  [
15029 \begin_inset Flex Code
15030 status collapsed
15031
15032 \begin_layout Plain Layout
15033
15034 \emph on
15035 Static
15036 \emph default
15037 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15038 \end_layout
15039
15040 \end_inset
15041
15042
15043 \begin_inset Newline newline
15044 \end_inset
15045
15046 The kind of margin that the style has on the left side.
15047 \end_layout
15048
15049 \begin_deeper
15050 \begin_layout Description
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 Static
15056 \end_layout
15057
15058 \end_inset
15059
15060  just means a fixed margin.
15061 \end_layout
15062
15063 \begin_layout Description
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068 Manual
15069 \end_layout
15070
15071 \end_inset
15072
15073  means that the left margin depends on the string entered in the 
15074 \begin_inset Flex Noun
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 Edit\SpecialChar menuseparator
15079 Paragraph
15080 \begin_inset space ~
15081 \end_inset
15082
15083 Settings
15084 \end_layout
15085
15086 \end_inset
15087
15088  dialog.
15089  This is used to typeset nice lists without tabulators.
15090 \end_layout
15091
15092 \begin_layout Description
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097 Dynamic
15098 \end_layout
15099
15100 \end_inset
15101
15102  means that the margin depends on the size of the label.
15103  This is used for automatic enumerated headlines.
15104  It is obvious that the headline 
15105 \begin_inset Quotes eld
15106 \end_inset
15107
15108 5.4.3.2.1 Very long headline
15109 \begin_inset Quotes erd
15110 \end_inset
15111
15112  must have a wider left margin (as wide as 
15113 \begin_inset Quotes eld
15114 \end_inset
15115
15116 5.4.3.2.1
15117 \begin_inset Quotes erd
15118 \end_inset
15119
15120  plus the space) than 
15121 \begin_inset Quotes eld
15122 \end_inset
15123
15124 3.2 Very long headline
15125 \begin_inset Quotes erd
15126 \end_inset
15127
15128 , even if standard 
15129 \begin_inset Quotes eld
15130 \end_inset
15131
15132 word processors
15133 \begin_inset Quotes erd
15134 \end_inset
15135
15136  are not able to do this.
15137 \end_layout
15138
15139 \begin_layout Description
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 First_Dynamic
15145 \end_layout
15146
15147 \end_inset
15148
15149  is similar, but only the very first row of the paragraph is dynamic, while
15150  the others are static; this is used, for example, for descriptions.
15151 \end_layout
15152
15153 \begin_layout Description
15154 \begin_inset Flex Code
15155 status collapsed
15156
15157 \begin_layout Plain Layout
15158 Right_Address_Box
15159 \end_layout
15160
15161 \end_inset
15162
15163  means the margin is chosen in a way that the longest row of this paragraph
15164  fits to the right margin.
15165  This is used to typeset an address on the right edge of the page.
15166 \end_layout
15167
15168 \end_deeper
15169 \begin_layout Description
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 NeedProtect
15175 \end_layout
15176
15177 \end_inset
15178
15179  [
15180 \begin_inset Flex Code
15181 status collapsed
15182
15183 \begin_layout Plain Layout
15184
15185 \emph on
15186 0
15187 \end_layout
15188
15189 \end_inset
15190
15191 ,
15192 \begin_inset space \thinspace{}
15193 \end_inset
15194
15195
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200 1
15201 \end_layout
15202
15203 \end_inset
15204
15205 ] Whether fragile commands in this style should be 
15206 \begin_inset Flex Code
15207 status collapsed
15208
15209 \begin_layout Plain Layout
15210
15211 \backslash
15212 protect
15213 \end_layout
15214
15215 \end_inset
15216
15217 'ed.
15218  (Note: This is 
15219 \emph on
15220 not
15221 \emph default
15222  whether this command should itself be protected.)
15223 \change_inserted -712698321 1523696949
15224
15225 \end_layout
15226
15227 \begin_layout Description
15228
15229 \change_inserted -712698321 1552395557
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234
15235 \change_inserted -712698321 1523696950
15236 NeedCProtect
15237 \end_layout
15238
15239 \end_inset
15240
15241  [
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246
15247 \change_inserted -712698321 1523696950
15248
15249 \emph on
15250 0
15251 \end_layout
15252
15253 \end_inset
15254
15255 ,
15256 \begin_inset space \thinspace{}
15257 \end_inset
15258
15259
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264
15265 \change_inserted -712698321 1523696950
15266 1
15267 \end_layout
15268
15269 \end_inset
15270
15271 ] This causes macros that contain this layout to be protected with 
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276
15277 \change_inserted -712698321 1523696950
15278
15279 \backslash
15280 cprotect
15281 \end_layout
15282
15283 \end_inset
15284
15285  (cf.
15286  package 
15287 \family sans
15288 cprotect
15289 \family default
15290 ) if necessary and thus allows (some) verbatim stuff in macros.
15291 \end_layout
15292
15293 \begin_layout Description
15294
15295 \change_inserted -712698321 1552395844
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300
15301 \change_inserted -712698321 1552395561
15302 NeedMBoxProtect
15303 \end_layout
15304
15305 \end_inset
15306
15307  [
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312
15313 \change_inserted -712698321 1552395557
15314
15315 \emph on
15316 0
15317 \end_layout
15318
15319 \end_inset
15320
15321 ,
15322 \begin_inset space \thinspace{}
15323 \end_inset
15324
15325
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330
15331 \change_inserted -712698321 1552395557
15332 1
15333 \end_layout
15334
15335 \end_inset
15336
15337 ] Whether specific commands in this style (such as 
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342
15343 \change_inserted -712698321 1552395655
15344
15345 \backslash
15346 cite
15347 \change_unchanged
15348
15349 \end_layout
15350
15351 \end_inset
15352
15353  and 
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358
15359 \change_inserted -712698321 1552395661
15360
15361 \backslash
15362 ref
15363 \change_unchanged
15364
15365 \end_layout
15366
15367 \end_inset
15368
15369 ) should be protected in an 
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374
15375 \change_inserted -712698321 1552395631
15376
15377 \backslash
15378 mbox
15379 \change_unchanged
15380
15381 \end_layout
15382
15383 \end_inset
15384
15385 .
15386  This is particularly needed for styles that draw on 
15387 \family sans
15388 ulem
15389 \family default
15390  or 
15391 \family sans
15392 soul
15393 \family default
15394  commands which parse their content in complex ways.
15395 \change_unchanged
15396
15397 \end_layout
15398
15399 \begin_layout Description
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 Newline
15405 \end_layout
15406
15407 \end_inset
15408
15409  [
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 0
15415 \end_layout
15416
15417 \end_inset
15418
15419 ,
15420 \begin_inset space \thinspace{}
15421 \end_inset
15422
15423
15424 \begin_inset Flex Code
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428
15429 \emph on
15430 1
15431 \end_layout
15432
15433 \end_inset
15434
15435 ] Whether newlines are translated into \SpecialChar LaTeX
15436  newlines (
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441
15442 \backslash
15443
15444 \backslash
15445
15446 \end_layout
15447
15448 \end_inset
15449
15450 ) or not.
15451  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15452  editing
15453  inside \SpecialChar LyX
15454 .
15455 \end_layout
15456
15457 \begin_layout Description
15458 \begin_inset Flex Code
15459 status collapsed
15460
15461 \begin_layout Plain Layout
15462 NextNoIndent
15463 \end_layout
15464
15465 \end_inset
15466
15467  [
15468 \begin_inset Flex Code
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472
15473 \emph on
15474 0
15475 \end_layout
15476
15477 \end_inset
15478
15479 ,
15480 \begin_inset space \thinspace{}
15481 \end_inset
15482
15483
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 1
15489 \end_layout
15490
15491 \end_inset
15492
15493 ] If set to true, and if 
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 DefaultStyle
15499 \end_layout
15500
15501 \end_inset
15502
15503  (usually 
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508 Standard
15509 \end_layout
15510
15511 \end_inset
15512
15513 ) paragraphs are being indented, then the indentation of such a paragraph
15514  following one of this type will be suppressed.
15515  (So this will not affect the display of non-default paragraphs.)
15516 \end_layout
15517
15518 \begin_layout Description
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 ObsoletedBy
15524 \end_layout
15525
15526 \end_inset
15527
15528  [
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 <name>
15534 \end_layout
15535
15536 \end_inset
15537
15538 ] Name of a style that has replaced this style.
15539  This is used to rename a style, while keeping backward compatibility.
15540 \end_layout
15541
15542 \begin_layout Description
15543 \begin_inset Flex Code
15544 status collapsed
15545
15546 \begin_layout Plain Layout
15547 ParagraphGroup
15548 \end_layout
15549
15550 \end_inset
15551
15552  [
15553 \begin_inset Flex Code
15554 status collapsed
15555
15556 \begin_layout Plain Layout
15557 0
15558 \end_layout
15559
15560 \end_inset
15561
15562 ,
15563 \begin_inset space \thinspace{}
15564 \end_inset
15565
15566
15567 \begin_inset Flex Code
15568 status collapsed
15569
15570 \begin_layout Plain Layout
15571 1
15572 \end_layout
15573
15574 \end_inset
15575
15576 ] Determines whether consecutive paragraphs of the same type are treated
15577  as belonging together.
15578  This has the effect that the 
15579 \begin_inset Flex Code
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 GuiLabel
15584 \end_layout
15585
15586 \end_inset
15587
15588  is only printed once before such a group.
15589  By default, this is true for 
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 LaTeXType
15595 \end_layout
15596
15597 \end_inset
15598
15599  
15600 \begin_inset Flex Code
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604 Environment
15605 \end_layout
15606
15607 \end_inset
15608
15609  and 
15610 \begin_inset Flex Code
15611 status collapsed
15612
15613 \begin_layout Plain Layout
15614 Bib_Environment
15615 \end_layout
15616
15617 \end_inset
15618
15619  and false for all other types.
15620 \end_layout
15621
15622 \begin_layout Description
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 ParbreakIsNewline
15628 \end_layout
15629
15630 \end_inset
15631
15632  [
15633 \begin_inset Flex Code
15634 status collapsed
15635
15636 \begin_layout Plain Layout
15637
15638 \emph on
15639 0
15640 \end_layout
15641
15642 \end_inset
15643
15644 ,
15645 \begin_inset space \thinspace{}
15646 \end_inset
15647
15648
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653 1
15654 \end_layout
15655
15656 \end_inset
15657
15658 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15659  output,
15660  but only by a line break; together with 
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 PassThru 1
15666 \end_layout
15667
15668 \end_inset
15669
15670 , this allows to emulate a plain text editor (like the ERT inset).
15671 \end_layout
15672
15673 \begin_layout Description
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 ParIndent
15679 \end_layout
15680
15681 \end_inset
15682
15683  [
15684 \begin_inset Flex Code
15685 status collapsed
15686
15687 \begin_layout Plain Layout
15688 string=""
15689 \end_layout
15690
15691 \end_inset
15692
15693 ] The indent of the very first line of a paragraph.
15694  The
15695 \begin_inset Newline newline
15696 \end_inset
15697
15698
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 Parindent
15704 \end_layout
15705
15706 \end_inset
15707
15708  will be fixed for a certain style.
15709  The exception is the default style, since the indentation for these paragraphs
15710  can be prohibited with 
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 NextNoIndent
15716 \end_layout
15717
15718 \end_inset
15719
15720 .
15721  Also, 
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 Standard
15727 \end_layout
15728
15729 \end_inset
15730
15731  style paragraphs inside environments use the 
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 Parindent
15737 \end_layout
15738
15739 \end_inset
15740
15741  of the environment, not their native one.
15742  For example, 
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747 Standard
15748 \end_layout
15749
15750 \end_inset
15751
15752  paragraphs inside an enumeration are not indented.
15753 \end_layout
15754
15755 \begin_layout Description
15756 \begin_inset Flex Code
15757 status collapsed
15758
15759 \begin_layout Plain Layout
15760 ParSep
15761 \end_layout
15762
15763 \end_inset
15764
15765  [
15766 \begin_inset Flex Code
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770 float=0
15771 \end_layout
15772
15773 \end_inset
15774
15775 ] The vertical space between two paragraphs of this style.
15776 \end_layout
15777
15778 \begin_layout Description
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 Parskip
15784 \end_layout
15785
15786 \end_inset
15787
15788  [
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 float=0
15794 \end_layout
15795
15796 \end_inset
15797
15798 ] \SpecialChar LyX
15799  allows the user to choose either 
15800 \begin_inset Quotes eld
15801 \end_inset
15802
15803 indent
15804 \begin_inset Quotes erd
15805 \end_inset
15806
15807  or 
15808 \begin_inset Quotes eld
15809 \end_inset
15810
15811 skip
15812 \begin_inset Quotes erd
15813 \end_inset
15814
15815  to separate paragraphs.
15816  When 
15817 \begin_inset Quotes eld
15818 \end_inset
15819
15820 indent
15821 \begin_inset Quotes erd
15822 \end_inset
15823
15824  is chosen, 
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 Parskip
15830 \end_layout
15831
15832 \end_inset
15833
15834  is ignored.
15835  When 
15836 \begin_inset Quotes eld
15837 \end_inset
15838
15839 skip
15840 \begin_inset Quotes erd
15841 \end_inset
15842
15843  is chosen, 
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 ParIndent
15849 \end_layout
15850
15851 \end_inset
15852
15853  is ignored and all paragraphs are separated by the 
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 Parskip
15859 \end_layout
15860
15861 \end_inset
15862
15863  argument.
15864  The vertical space is calculated with 
15865 \begin_inset Flex Code
15866 status collapsed
15867
15868 \begin_layout Plain Layout
15869 Parskip
15870 \begin_inset space ~
15871 \end_inset
15872
15873 * DefaultHeight
15874 \end_layout
15875
15876 \end_inset
15877
15878  where 
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 DefaultHeight
15884 \end_layout
15885
15886 \end_inset
15887
15888  is the height of a row with the normal font.
15889  This way, the look stays the same with different screen fonts.
15890 \end_layout
15891
15892 \begin_layout Description
15893 \begin_inset Flex Code
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 PassThru
15898 \end_layout
15899
15900 \end_inset
15901
15902  [
15903 \begin_inset Flex Code
15904 status collapsed
15905
15906 \begin_layout Plain Layout
15907
15908 \emph on
15909 0
15910 \end_layout
15911
15912 \end_inset
15913
15914 ,
15915 \begin_inset space \thinspace{}
15916 \end_inset
15917
15918
15919 \begin_inset Flex Code
15920 status collapsed
15921
15922 \begin_layout Plain Layout
15923 1
15924 \end_layout
15925
15926 \end_inset
15927
15928 ] Whether the contents of this paragraph should be output in raw form, meaning
15929  without special translations that \SpecialChar LaTeX
15930  would require.
15931 \end_layout
15932
15933 \begin_layout Description
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 PassThruChars
15939 \end_layout
15940
15941 \end_inset
15942
15943  [
15944 \begin_inset Flex Code
15945 status collapsed
15946
15947 \begin_layout Plain Layout
15948 string
15949 \end_layout
15950
15951 \end_inset
15952
15953 ]
15954 \family typewriter
15955  
15956 \family default
15957 Defines individual characters that should be output in raw form, meaning
15958  without special translations that \SpecialChar LaTeX
15959  would require.
15960 \end_layout
15961
15962 \begin_layout Description
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 Preamble
15968 \end_layout
15969
15970 \end_inset
15971
15972  Information to be included in the \SpecialChar LaTeX
15973  preamble when this style is used.
15974  Used to define macros, load packages, etc., required by this particular
15975  style.
15976  Must end with 
15977 \begin_inset Quotes eld
15978 \end_inset
15979
15980
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 EndPreamble
15986 \end_layout
15987
15988 \end_inset
15989
15990
15991 \begin_inset Quotes erd
15992 \end_inset
15993
15994 .
15995 \end_layout
15996
15997 \begin_layout Description
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 RefPrefix
16003 \end_layout
16004
16005 \end_inset
16006
16007  [
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012 string
16013 \end_layout
16014
16015 \end_inset
16016
16017 ] The prefix to use when creating labels referring to paragraphs of this
16018  type.
16019  This allows the use of formatted references.
16020 \end_layout
16021
16022 \begin_layout Description
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 Requires 
16028 \end_layout
16029
16030 \end_inset
16031
16032  [
16033 \begin_inset Flex Code
16034 status collapsed
16035
16036 \begin_layout Plain Layout
16037 string
16038 \end_layout
16039
16040 \end_inset
16041
16042 ] Whether the style requires the feature 
16043 \begin_inset Flex Code
16044 status collapsed
16045
16046 \begin_layout Plain Layout
16047 string
16048 \end_layout
16049
16050 \end_inset
16051
16052  (see 
16053 \begin_inset CommandInset ref
16054 LatexCommand ref
16055 reference "chap:List-of-functions"
16056
16057 \end_inset
16058
16059  for the list of features).
16060  If you require a package with specific options, you can additionally use
16061  
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 PackageOptions
16067 \end_layout
16068
16069 \end_inset
16070
16071  as a general text class parameter (see 
16072 \begin_inset CommandInset ref
16073 LatexCommand ref
16074 reference "subsec:General-text-class"
16075
16076 \end_inset
16077
16078 ).
16079 \end_layout
16080
16081 \begin_layout Description
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086 ResetArgs
16087 \end_layout
16088
16089 \end_inset
16090
16091  [
16092 \begin_inset Flex Code
16093 status collapsed
16094
16095 \begin_layout Plain Layout
16096
16097 \emph on
16098 0
16099 \end_layout
16100
16101 \end_inset
16102
16103 ,
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 1
16109 \end_layout
16110
16111 \end_inset
16112
16113 ] Resets the \SpecialChar LaTeX
16114  arguments of this style (as defined via the 
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 Argument
16120 \end_layout
16121
16122 \end_inset
16123
16124  tag).
16125  This is useful if you have copied a style via 
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 CopyStyle
16131 \end_layout
16132
16133 \end_inset
16134
16135 , but you do not want to inherit its (required and optional) arguments.
16136 \end_layout
16137
16138 \begin_layout Description
16139 \begin_inset Flex Code
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143 ResumeCounter
16144 \end_layout
16145
16146 \end_inset
16147
16148  [
16149 \begin_inset Flex Code
16150 status collapsed
16151
16152 \begin_layout Plain Layout
16153
16154 \emph on
16155 0
16156 \end_layout
16157
16158 \end_inset
16159
16160 ,
16161 \begin_inset Flex Code
16162 status collapsed
16163
16164 \begin_layout Plain Layout
16165 1
16166 \end_layout
16167
16168 \end_inset
16169
16170 ] Resumes a counter that is usually reset at each new sequence of layouts.
16171  This is currently only useful when 
16172 \begin_inset Flex Code
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 LabelType
16177 \end_layout
16178
16179 \end_inset
16180
16181  is 
16182 \begin_inset Flex Code
16183 status collapsed
16184
16185 \begin_layout Plain Layout
16186 Enumerate
16187 \end_layout
16188
16189 \end_inset
16190
16191 .
16192 \end_layout
16193
16194 \begin_layout Description
16195 \begin_inset Flex Code
16196 status collapsed
16197
16198 \begin_layout Plain Layout
16199 RightDelim
16200 \end_layout
16201
16202 \end_inset
16203
16204  [
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 string
16210 \end_layout
16211
16212 \end_inset
16213
16214 ] A string that is put at the end of the layout content.
16215  A line break in the output can be indicated by 
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 <br/>
16221 \end_layout
16222
16223 \end_inset
16224
16225 .
16226 \end_layout
16227
16228 \begin_layout Description
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 RightMargin
16234 \end_layout
16235
16236 \end_inset
16237
16238  [
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243 string=""
16244 \end_layout
16245
16246 \end_inset
16247
16248 ] Similar to 
16249 \begin_inset Flex Code
16250 status collapsed
16251
16252 \begin_layout Plain Layout
16253 LeftMargin
16254 \end_layout
16255
16256 \end_inset
16257
16258 .
16259 \end_layout
16260
16261 \begin_layout Description
16262 \begin_inset Flex Code
16263 status collapsed
16264
16265 \begin_layout Plain Layout
16266 Spacing
16267 \end_layout
16268
16269 \end_inset
16270
16271  [
16272 \begin_inset Flex Code
16273 status collapsed
16274
16275 \begin_layout Plain Layout
16276
16277 \emph on
16278 single
16279 \end_layout
16280
16281 \end_inset
16282
16283
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 onehalf
16289 \end_layout
16290
16291 \end_inset
16292
16293
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 double
16299 \end_layout
16300
16301 \end_inset
16302
16303
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 other
16309 \begin_inset space ~
16310 \end_inset
16311
16312 <value>
16313 \end_layout
16314
16315 \end_inset
16316
16317 ] This defines what the default spacing should be in the style.
16318  The arguments 
16319 \begin_inset Flex Code
16320 status collapsed
16321
16322 \begin_layout Plain Layout
16323 single
16324 \end_layout
16325
16326 \end_inset
16327
16328
16329 \begin_inset Flex Code
16330 status collapsed
16331
16332 \begin_layout Plain Layout
16333 onehalf
16334 \end_layout
16335
16336 \end_inset
16337
16338  and 
16339 \begin_inset Flex Code
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343 double
16344 \end_layout
16345
16346 \end_inset
16347
16348  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16349  If you specify the argument 
16350 \begin_inset Flex Code
16351 status collapsed
16352
16353 \begin_layout Plain Layout
16354 other
16355 \end_layout
16356
16357 \end_inset
16358
16359 , then you must also provide a value argument which will be the actual multiplie
16360 r value.
16361  Note that, contrary to other parameters, 
16362 \begin_inset Flex Code
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366 Spacing
16367 \end_layout
16368
16369 \end_inset
16370
16371  implies the generation of specific \SpecialChar LaTeX
16372  code, using the \SpecialChar LaTeX
16373  package 
16374 \family roman
16375
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 setspace
16381 \end_layout
16382
16383 \end_inset
16384
16385 .
16386 \end_layout
16387
16388 \begin_layout Description
16389 \begin_inset Flex Code
16390 status collapsed
16391
16392 \begin_layout Plain Layout
16393 Spellcheck
16394 \end_layout
16395
16396 \end_inset
16397
16398  [
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 0
16404 \end_layout
16405
16406 \end_inset
16407
16408 ,
16409 \begin_inset space \thinspace{}
16410 \end_inset
16411
16412
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417
16418 \emph on
16419 1
16420 \end_layout
16421
16422 \end_inset
16423
16424 ] Allow spell-checking paragraphs of this style.
16425  Default is true.
16426 \end_layout
16427
16428 \begin_layout Description
16429 \begin_inset Flex Code
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433 StepMasterCounter
16434 \end_layout
16435
16436 \end_inset
16437
16438  [
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443
16444 \emph on
16445 0
16446 \end_layout
16447
16448 \end_inset
16449
16450 ,
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455 1
16456 \end_layout
16457
16458 \end_inset
16459
16460 ] Steps the master counter of a given counter at the beginning of a new
16461  sequence of layouts.
16462  This is currently only useful when 
16463 \begin_inset Flex Code
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 LabelType
16468 \end_layout
16469
16470 \end_inset
16471
16472  is 
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 Enumerate
16478 \end_layout
16479
16480 \end_inset
16481
16482 .
16483 \end_layout
16484
16485 \begin_layout Description
16486 \begin_inset Flex Code
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 TextFont
16491 \end_layout
16492
16493 \end_inset
16494
16495  The font used for the text body .
16496  See 
16497 \begin_inset CommandInset ref
16498 LatexCommand ref
16499 reference "subsec:Font-description"
16500
16501 \end_inset
16502
16503 .
16504 \end_layout
16505
16506 \begin_layout Description
16507 \begin_inset Flex Code
16508 status collapsed
16509
16510 \begin_layout Plain Layout
16511 TocLevel
16512 \end_layout
16513
16514 \end_inset
16515
16516
16517 \series medium
16518  [
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523
16524 \series medium
16525 int=3
16526 \end_layout
16527
16528 \end_inset
16529
16530 ]
16531 \series default
16532  The level of the style in the table of contents.
16533  This is used for automatic numbering of section headings.
16534 \end_layout
16535
16536 \begin_layout Description
16537 \begin_inset Flex Code
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 ToggleIndent
16542 \end_layout
16543
16544 \end_inset
16545
16546  [
16547 \emph on
16548
16549 \begin_inset Flex Code
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553
16554 \emph on
16555 default
16556 \end_layout
16557
16558 \end_inset
16559
16560
16561 \emph default
16562
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 always
16568 \end_layout
16569
16570 \end_inset
16571
16572
16573 \begin_inset Flex Code
16574 status collapsed
16575
16576 \begin_layout Plain Layout
16577 never
16578 \end_layout
16579
16580 \end_inset
16581
16582 ] This tag determines whether the first line indentation of this paragraph
16583  can be toggled via the Paragraph settings dialog.
16584  If 
16585 \emph on
16586
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591
16592 \emph off
16593 default
16594 \end_layout
16595
16596 \end_inset
16597
16598
16599 \emph default
16600  is set, indentation can be toggled if the document settings use 
16601 \begin_inset Quotes eld
16602 \end_inset
16603
16604 indent
16605 \begin_inset Quotes erd
16606 \end_inset
16607
16608  paragraph style, with 
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 always
16614 \end_layout
16615
16616 \end_inset
16617
16618 , indentation can always be toggled, notwithstanding the document settings,
16619  with 
16620 \begin_inset Flex Code
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624 never
16625 \end_layout
16626
16627 \end_inset
16628
16629 , indentation can never be toggled.
16630 \end_layout
16631
16632 \begin_layout Description
16633 \begin_inset Flex Code
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 TopSep
16638 \end_layout
16639
16640 \end_inset
16641
16642  [
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 float=0
16648 \end_layout
16649
16650 \end_inset
16651
16652 ] The vertical space with which the very first of a chain of paragraphs
16653  with this style is separated from the previous paragraph.
16654  If the previous paragraph has another style, the separations are not simply
16655  added, but the maximum is taken.
16656 \end_layout
16657
16658 \begin_layout Subsection
16659 \begin_inset CommandInset label
16660 LatexCommand label
16661 name "subsec:I18n"
16662
16663 \end_inset
16664
16665 Internationalization of Paragraph Styles
16666 \end_layout
16667
16668 \begin_layout Standard
16669 \SpecialChar LyX
16670  has long supported internationalization of layout information, but, until
16671  version 2.0, this applied only to the user interface and not to, say, PDF
16672  output.
16673  Thus, French authors were forced to resort to ugly hacks if they wanted
16674  `
16675 \lang french
16676 Théorème
16677 \lang english
16678  1' instead of `Theorem 1'.
16679  Thanks to Georg Baum, that is no longer the case.
16680 \end_layout
16681
16682 \begin_layout Standard
16683 If a 
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 Style
16689 \end_layout
16690
16691 \end_inset
16692
16693  defines text that is to appear in the typeset document, it may use 
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 LangPreamble
16699 \end_layout
16700
16701 \end_inset
16702
16703  and 
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708 BabelPreamble
16709 \end_layout
16710
16711 \end_inset
16712
16713  to support non-English and even multi-language documents correctly.
16714  The following excerpt (from the 
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 theorems-ams.inc
16720 \end_layout
16721
16722 \end_inset
16723
16724  file) shows how this works:
16725 \end_layout
16726
16727 \begin_layout LyX-Code
16728 Preamble
16729 \end_layout
16730
16731 \begin_deeper
16732 \begin_layout LyX-Code
16733   
16734 \backslash
16735 theoremstyle{remark}
16736 \end_layout
16737
16738 \begin_layout LyX-Code
16739   
16740 \backslash
16741 newtheorem{claim}[thm]{
16742 \backslash
16743 protect
16744 \backslash
16745 claimname}
16746 \end_layout
16747
16748 \begin_layout LyX-Code
16749 EndPreamble
16750 \end_layout
16751
16752 \begin_layout LyX-Code
16753 LangPreamble
16754 \end_layout
16755
16756 \begin_layout LyX-Code
16757   
16758 \backslash
16759 providecommand{
16760 \backslash
16761 claimname}{_(Claim)}
16762 \end_layout
16763
16764 \begin_layout LyX-Code
16765 EndLangPreamble
16766 \end_layout
16767
16768 \begin_layout LyX-Code
16769 BabelPreamble
16770 \end_layout
16771
16772 \begin_layout LyX-Code
16773     
16774 \backslash
16775 addto
16776 \backslash
16777 captions$$lang{
16778 \backslash
16779 renewcommand{
16780 \backslash
16781 claimname}{_(Claim)}}
16782 \end_layout
16783
16784 \begin_layout LyX-Code
16785 EndBabelPreamble
16786 \end_layout
16787
16788 \end_deeper
16789 \begin_layout Standard
16790 In principle, any legal \SpecialChar LaTeX
16791  may appear in the 
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 LangPreamble
16797 \end_layout
16798
16799 \end_inset
16800
16801  and 
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 BabelPreamble
16807 \end_layout
16808
16809 \end_inset
16810
16811  tags, but in practice they will typically look as they do here.
16812  The key to correct translation of the typeset text is the definition of
16813  the \SpecialChar LaTeX
16814  command 
16815 \begin_inset Flex Code
16816 status collapsed
16817
16818 \begin_layout Plain Layout
16819
16820 \backslash
16821 claimname
16822 \end_layout
16823
16824 \end_inset
16825
16826  and its use in 
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831
16832 \backslash
16833 newtheorem
16834 \end_layout
16835
16836 \end_inset
16837
16838 .
16839  
16840 \end_layout
16841
16842 \begin_layout Standard
16843 The 
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 LangPreamble
16849 \end_layout
16850
16851 \end_inset
16852
16853  tag provides for internationalization based upon the overall language of
16854  the document.
16855  The contents of the tag will be included in the preamble, just as with
16856  the 
16857 \begin_inset Flex Code
16858 status collapsed
16859
16860 \begin_layout Plain Layout
16861 Preamble
16862 \end_layout
16863
16864 \end_inset
16865
16866  tag.
16867  What makes it special is the use of the 
16868 \begin_inset Quotes eld
16869 \end_inset
16870
16871 function
16872 \begin_inset Quotes erd
16873 \end_inset
16874
16875  
16876 \begin_inset Flex Code
16877 status collapsed
16878
16879 \begin_layout Plain Layout
16880 _()
16881 \end_layout
16882
16883 \end_inset
16884
16885 , which will be replaced, when \SpecialChar LyX
16886  produces \SpecialChar LaTeX
16887  output, with the translation of
16888  its argument into the document language.
16889 \end_layout
16890
16891 \begin_layout Standard
16892 The 
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 BabelPreamble
16898 \end_layout
16899
16900 \end_inset
16901
16902  tag is more complex, since it is meant to provide support for multi-language
16903  documents and so offers an interface to the 
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 babel
16909 \end_layout
16910
16911 \end_inset
16912
16913  package.
16914  Its contents will be added to the preamble once for each language that
16915  appears in the document.
16916  In this case, the argument to 
16917 \begin_inset Flex Code
16918 status collapsed
16919
16920 \begin_layout Plain Layout
16921 _()
16922 \end_layout
16923
16924 \end_inset
16925
16926  will be replaced with its translation into the language in question; the
16927  expression 
16928 \begin_inset Flex Code
16929 status collapsed
16930
16931 \begin_layout Plain Layout
16932 $$lang
16933 \end_layout
16934
16935 \end_inset
16936
16937  is replaced by the language name (as used by the babel package).
16938 \end_layout
16939
16940 \begin_layout Standard
16941 A German document that also included a French section would thus have the
16942  following in the preamble:
16943 \end_layout
16944
16945 \begin_layout LyX-Code
16946
16947 \backslash
16948 addto
16949 \backslash
16950 captionsfrench{
16951 \backslash
16952 renewcommand{
16953 \backslash
16954 claimname}{Affirmation}}
16955 \begin_inset Newline newline
16956 \end_inset
16957
16958
16959 \backslash
16960 addto
16961 \backslash
16962 captionsngerman{
16963 \backslash
16964 renewcommand{
16965 \backslash
16966 claimname}{Behauptung}}
16967 \begin_inset Newline newline
16968 \end_inset
16969
16970
16971 \backslash
16972 providecommand{
16973 \backslash
16974 claimname}{Behauptung}
16975 \end_layout
16976
16977 \begin_layout Standard
16978 \SpecialChar LaTeX
16979  and 
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 babel
16985 \end_layout
16986
16987 \end_inset
16988
16989  will then conspire to produce the correct text in the output.
16990 \end_layout
16991
16992 \begin_layout Standard
16993 One important point to note here is that the translations are provided by
16994  \SpecialChar LyX
16995  itself, through the file 
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 layouttranslations
17001 \end_layout
17002
17003 \end_inset
17004
17005 .
17006  This means, in effect, that 
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 LangPreamble
17012 \end_layout
17013
17014 \end_inset
17015
17016  and 
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 BabelPreamble
17022 \end_layout
17023
17024 \end_inset
17025
17026  are really only of use in layout files that are provided with \SpecialChar LyX
17027 , since text
17028  entered in user-created layout files will not be seen by \SpecialChar LyX
17029 's internationalizatio
17030 n routines unless the 
17031 \begin_inset Flex Code
17032 status collapsed
17033
17034 \begin_layout Plain Layout
17035 layouttranslations
17036 \end_layout
17037
17038 \end_inset
17039
17040  file is modified accordingly.
17041  That said, however, any layout created with the intention that it will
17042  be included with \SpecialChar LyX
17043  should use these tags where appropriate.
17044  Please note that the paragraph style translations provided by \SpecialChar LyX
17045  will never
17046  change with a minor update (e.
17047 \begin_inset space \thinspace{}
17048 \end_inset
17049
17050 g.
17051 \begin_inset space \space{}
17052 \end_inset
17053
17054 from version 2.1.x to 2.1.y).
17055  It is however quite likely that a major update (e.
17056 \begin_inset space \thinspace{}
17057 \end_inset
17058
17059 g.
17060 \begin_inset space \space{}
17061 \end_inset
17062
17063 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17064 \end_layout
17065
17066 \begin_layout Subsection
17067 Floats
17068 \begin_inset CommandInset label
17069 LatexCommand label
17070 name "subsec:Floats"
17071
17072 \end_inset
17073
17074
17075 \end_layout
17076
17077 \begin_layout Standard
17078 It is necessary to define the floats (
17079 \begin_inset Flex Noun
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 figure
17084 \end_layout
17085
17086 \end_inset
17087
17088
17089 \begin_inset Flex Noun
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 table
17094 \end_layout
17095
17096 \end_inset
17097
17098 , \SpecialChar ldots
17099 ) in the text class itself.
17100  Standard floats are included in the file 
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105 stdfloats.inc
17106 \end_layout
17107
17108 \end_inset
17109
17110 , so you may have to do no more than add
17111 \end_layout
17112
17113 \begin_layout LyX-Code
17114 Input stdfloats.inc
17115 \end_layout
17116
17117 \begin_layout Standard
17118 to your layout file.
17119  If you want to implement a text class that proposes some other float types
17120  (like the AGU class bundled with \SpecialChar LyX
17121 ), the information below will hopefully
17122  help you:
17123 \end_layout
17124
17125 \begin_layout Description
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 AllowedPlacement
17131 \end_layout
17132
17133 \end_inset
17134
17135  [
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 string
17141 \end_layout
17142
17143 \end_inset
17144
17145 =!htbpH] Allowed placement options for this float type.
17146  The value is a string of placement characters.
17147  Possible characters include: 
17148 \emph on
17149 h
17150 \emph default
17151  (
17152 \begin_inset Quotes eld
17153 \end_inset
17154
17155 here if possible
17156 \begin_inset Quotes erd
17157 \end_inset
17158
17159 ), 
17160 \emph on
17161 t
17162 \emph default
17163  (
17164 \begin_inset Quotes eld
17165 \end_inset
17166
17167 top of page
17168 \begin_inset Quotes erd
17169 \end_inset
17170
17171 ), 
17172 \emph on
17173 b
17174 \emph default
17175  (
17176 \begin_inset Quotes eld
17177 \end_inset
17178
17179 bottom of page
17180 \begin_inset Quotes erd
17181 \end_inset
17182
17183 ), 
17184 \emph on
17185 p
17186 \emph default
17187  (
17188 \begin_inset Quotes eld
17189 \end_inset
17190
17191 page of floats
17192 \begin_inset Quotes erd
17193 \end_inset
17194
17195 ), 
17196 \emph on
17197 H
17198 \emph default
17199  (
17200 \begin_inset Quotes eld
17201 \end_inset
17202
17203 here definitely
17204 \begin_inset Quotes erd
17205 \end_inset
17206
17207 ) and 
17208 \emph on
17209 !
17210 \emph default
17211  (
17212 \begin_inset Quotes eld
17213 \end_inset
17214
17215 ignore LaTeX rules
17216 \begin_inset Quotes erd
17217 \end_inset
17218
17219 ).
17220  The order of the characters in the string does not matter.
17221  If no placement options are allowed, use the string 
17222 \emph on
17223 none
17224 \emph default
17225 .
17226 \end_layout
17227
17228 \begin_layout Description
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 AllowsSideways
17234 \end_layout
17235
17236 \end_inset
17237
17238  [
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243
17244 \emph off
17245 0
17246 \end_layout
17247
17248 \end_inset
17249
17250 ,
17251 \begin_inset space \thinspace{}
17252 \end_inset
17253
17254
17255 \emph on
17256
17257 \begin_inset Flex Code
17258 status collapsed
17259
17260 \begin_layout Plain Layout
17261
17262 \emph on
17263 1
17264 \end_layout
17265
17266 \end_inset
17267
17268
17269 \emph default
17270 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17271 -package 
17272 \family typewriter
17273 rotfloat
17274 \family default
17275  (sidewaysfloat).
17276  Set to 
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 0
17282 \end_layout
17283
17284 \end_inset
17285
17286  if the float does not support this feature.
17287 \end_layout
17288
17289 \begin_layout Description
17290 \begin_inset Flex Code
17291 status collapsed
17292
17293 \begin_layout Plain Layout
17294 AllowsWide
17295 \end_layout
17296
17297 \end_inset
17298
17299  [
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304
17305 \emph off
17306 0
17307 \end_layout
17308
17309 \end_inset
17310
17311 ,
17312 \begin_inset space \thinspace{}
17313 \end_inset
17314
17315
17316 \emph on
17317
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322
17323 \emph on
17324 1
17325 \end_layout
17326
17327 \end_inset
17328
17329
17330 \emph default
17331 ] Defines whether the float has a starred variant that spans columns in
17332  a two column paragraph.
17333  Set to 
17334 \begin_inset Flex Code
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338 0
17339 \end_layout
17340
17341 \end_inset
17342
17343  if the float does not support this feature.
17344 \end_layout
17345
17346 \begin_layout Description
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351 Extension
17352 \end_layout
17353
17354 \end_inset
17355
17356  [
17357 \begin_inset Flex Code
17358 status collapsed
17359
17360 \begin_layout Plain Layout
17361 string
17362 \end_layout
17363
17364 \end_inset
17365
17366 =
17367 \begin_inset Quotes erd
17368 \end_inset
17369
17370
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374 ] The file name extension of an auxiliary file for the list of figures (or
17375  whatever).
17376  \SpecialChar LaTeX
17377  writes the captions to this file.
17378 \end_layout
17379
17380 \begin_layout Description
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385 GuiName
17386 \end_layout
17387
17388 \end_inset
17389
17390  [
17391 \begin_inset Flex Code
17392 status collapsed
17393
17394 \begin_layout Plain Layout
17395 string
17396 \end_layout
17397
17398 \end_inset
17399
17400 =
17401 \begin_inset Quotes erd
17402 \end_inset
17403
17404
17405 \begin_inset Quotes erd
17406 \end_inset
17407
17408 ] The string that will be used in the menus and also for the caption.
17409  This is translated to the current language if babel is used.
17410 \end_layout
17411
17412 \begin_layout Description
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 HTML*
17418 \end_layout
17419
17420 \end_inset
17421
17422  These tags control the XHTML output.
17423  See 
17424 \begin_inset CommandInset ref
17425 LatexCommand ref
17426 reference "sec:Tags-for-XHTML"
17427
17428 \end_inset
17429
17430 .
17431 \end_layout
17432
17433 \begin_layout Description
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438 IsPredefined
17439 \end_layout
17440
17441 \end_inset
17442
17443  [
17444 \emph on
17445
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 0
17451 \end_layout
17452
17453 \end_inset
17454
17455
17456 \emph default
17457 ,
17458 \begin_inset space \thinspace{}
17459 \end_inset
17460
17461
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 1
17467 \end_layout
17468
17469 \end_inset
17470
17471 ] Indicates whether the float is already defined in the document class or
17472  if instead the \SpecialChar LaTeX
17473  package 
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478 float
17479 \end_layout
17480
17481 \end_inset
17482
17483  needs to be loaded to define it on-the-fly.
17484  The default is 
17485 \begin_inset Flex Code
17486 status collapsed
17487
17488 \begin_layout Plain Layout
17489 0
17490 \end_layout
17491
17492 \end_inset
17493
17494 , which means: 
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 float
17500 \end_layout
17501
17502 \end_inset
17503
17504  is used.
17505  It should be set to 
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 1
17511 \end_layout
17512
17513 \end_inset
17514
17515  if the float is already defined by the \SpecialChar LaTeX
17516  document class.
17517 \end_layout
17518
17519 \begin_layout Description
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524 ListCommand
17525 \end_layout
17526
17527 \end_inset
17528
17529  [
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 string
17535 \end_layout
17536
17537 \end_inset
17538
17539 =
17540 \begin_inset Quotes erd
17541 \end_inset
17542
17543
17544 \begin_inset Quotes erd
17545 \end_inset
17546
17547 ] The command used to generate a list of floats of this type; the leading
17548  `
17549 \backslash
17550 ' must be omitted.
17551  This 
17552 \emph on
17553 must
17554 \emph default
17555  be given if 
17556 \begin_inset Flex Code
17557 status collapsed
17558
17559 \begin_layout Plain Layout
17560 UsesFloatPkg
17561 \end_layout
17562
17563 \end_inset
17564
17565  is false, since there is no standard way to generate this command.
17566  It is ignored if 
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 UsesFloatPkg
17572 \end_layout
17573
17574 \end_inset
17575
17576  is true, since in that case there is a standard way to define the command.
17577 \end_layout
17578
17579 \begin_layout Description
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 ListName
17585 \end_layout
17586
17587 \end_inset
17588
17589  [
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 string
17595 \end_layout
17596
17597 \end_inset
17598
17599 =
17600 \begin_inset Quotes erd
17601 \end_inset
17602
17603
17604 \begin_inset Quotes erd
17605 \end_inset
17606
17607 ] A title for a list of floats of this kind (list of figures, tables, or
17608  whatever).
17609  It is used for the screen label within \SpecialChar LyX
17610 , it is used by \SpecialChar LaTeX
17611  for the title and
17612  it is used as the title in the XHTML output.
17613  It will be translated to the document language.
17614 \end_layout
17615
17616 \begin_layout Description
17617 \begin_inset Flex Code
17618 status collapsed
17619
17620 \begin_layout Plain Layout
17621 NumberWithin
17622 \end_layout
17623
17624 \end_inset
17625
17626  [
17627 \begin_inset Flex Code
17628 status collapsed
17629
17630 \begin_layout Plain Layout
17631 string
17632 \end_layout
17633
17634 \end_inset
17635
17636 =
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640
17641 \begin_inset Quotes erd
17642 \end_inset
17643
17644 ] This (optional) argument determines whether floats of this class will
17645  be numbered within some sectional unit of the document.
17646  For example, if 
17647 \begin_inset Flex Code
17648 status collapsed
17649
17650 \begin_layout Plain Layout
17651 NumberWithin
17652 \end_layout
17653
17654 \end_inset
17655
17656  is set to 
17657 \begin_inset Quotes eld
17658 \end_inset
17659
17660
17661 \begin_inset Flex Code
17662 status collapsed
17663
17664 \begin_layout Plain Layout
17665 chapter
17666 \end_layout
17667
17668 \end_inset
17669
17670
17671 \begin_inset Quotes erd
17672 \end_inset
17673
17674 , the floats will be numbered within chapters.
17675  
17676 \end_layout
17677
17678 \begin_layout Description
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 Placement
17684 \end_layout
17685
17686 \end_inset
17687
17688  [
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 string
17694 \end_layout
17695
17696 \end_inset
17697
17698 =
17699 \begin_inset Quotes erd
17700 \end_inset
17701
17702
17703 \begin_inset Quotes erd
17704 \end_inset
17705
17706 ] The default placement for the given class of floats.
17707  The string should be as in standard \SpecialChar LaTeX
17708
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 t
17714 \end_layout
17715
17716 \end_inset
17717
17718
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 b
17724 \end_layout
17725
17726 \end_inset
17727
17728
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 p
17734 \end_layout
17735
17736 \end_inset
17737
17738  and 
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743 h
17744 \end_layout
17745
17746 \end_inset
17747
17748  for top, bottom, page, and here, respectively.
17749 \begin_inset Foot
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 Note that the order of these letters in the string is irrelevant, like in
17754  \SpecialChar LaTeX
17755 .
17756 \end_layout
17757
17758 \end_inset
17759
17760  On top of that there is a new type, 
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 H
17766 \end_layout
17767
17768 \end_inset
17769
17770 , which does not really correspond to a float, since it means: put it 
17771 \begin_inset Quotes eld
17772 \end_inset
17773
17774 here
17775 \begin_inset Quotes erd
17776 \end_inset
17777
17778  and nowhere else.
17779  Note however that the 
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 H
17785 \end_layout
17786
17787 \end_inset
17788
17789  specifier is special and, because of implementation details, cannot be
17790  used in non-built in float types.
17791  If you do not understand what this means, just use 
17792 \begin_inset Quotes eld
17793 \end_inset
17794
17795
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 tbp
17801 \end_layout
17802
17803 \end_inset
17804
17805
17806 \begin_inset Quotes erd
17807 \end_inset
17808
17809 .
17810 \end_layout
17811
17812 \begin_layout Description
17813 \begin_inset Flex Code
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817 RefPrefix
17818 \end_layout
17819
17820 \end_inset
17821
17822  [
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827 string
17828 \end_layout
17829
17830 \end_inset
17831
17832 ] The prefix to use when creating labels referring to floats of this type.
17833  This allows the use of formatted references.
17834  Note that you can remove any 
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 RefPrefix
17840 \end_layout
17841
17842 \end_inset
17843
17844  set by a copied style by using the special value 
17845 \begin_inset Quotes eld
17846 \end_inset
17847
17848 OFF
17849 \begin_inset Quotes erd
17850 \end_inset
17851
17852 , which must be all caps.
17853 \end_layout
17854
17855 \begin_layout Description
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860 Style
17861 \end_layout
17862
17863 \end_inset
17864
17865  [
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870 string
17871 \end_layout
17872
17873 \end_inset
17874
17875 =
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879
17880 \begin_inset Quotes erd
17881 \end_inset
17882
17883 ] The style used when defining the float using 
17884 \begin_inset Flex Code
17885 status collapsed
17886
17887 \begin_layout Plain Layout
17888
17889 \backslash
17890 newfloat
17891 \end_layout
17892
17893 \end_inset
17894
17895 .
17896 \end_layout
17897
17898 \begin_layout Description
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903 Type
17904 \end_layout
17905
17906 \end_inset
17907
17908  [
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913 string
17914 \end_layout
17915
17916 \end_inset
17917
17918 =
17919 \begin_inset Quotes erd
17920 \end_inset
17921
17922
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926 ] The 
17927 \begin_inset Quotes eld
17928 \end_inset
17929
17930 type
17931 \begin_inset Quotes erd
17932 \end_inset
17933
17934  of the new class of floats, like program or algorithm.
17935  After the appropriate 
17936 \begin_inset Flex Code
17937 status collapsed
17938
17939 \begin_layout Plain Layout
17940
17941 \backslash
17942 newfloat
17943 \end_layout
17944
17945 \end_inset
17946
17947 , commands such as 
17948 \begin_inset Flex Code
17949 status collapsed
17950
17951 \begin_layout Plain Layout
17952
17953 \backslash
17954 begin{program}
17955 \end_layout
17956
17957 \end_inset
17958
17959  or 
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964
17965 \backslash
17966 end{algorithm*}
17967 \end_layout
17968
17969 \end_inset
17970
17971  will be available.
17972 \end_layout
17973
17974 \begin_layout Description
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 UsesFloatPkg
17980 \end_layout
17981
17982 \end_inset
17983
17984  [
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 0
17990 \end_layout
17991
17992 \end_inset
17993
17994 ,
17995 \begin_inset space \thinspace{}
17996 \end_inset
17997
17998
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003
18004 \emph on
18005 1
18006 \end_layout
18007
18008 \end_inset
18009
18010 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18011  package 
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 float
18017 \end_layout
18018
18019 \end_inset
18020
18021 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18022  itself.
18023 \end_layout
18024
18025 \begin_layout Standard
18026 Note that defining a float with type 
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031
18032 \emph on
18033 type
18034 \end_layout
18035
18036 \end_inset
18037
18038  automatically defines the corresponding counter with name 
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043
18044 \emph on
18045 type
18046 \end_layout
18047
18048 \end_inset
18049
18050 .
18051 \end_layout
18052
18053 \begin_layout Subsection
18054 Flex insets and InsetLayout
18055 \begin_inset CommandInset label
18056 LatexCommand label
18057 name "subsec:Flex-insets-and"
18058
18059 \end_inset
18060
18061
18062 \end_layout
18063
18064 \begin_layout Standard
18065 Flex insets come in three different kinds: 
18066 \end_layout
18067
18068 \begin_layout Itemize
18069 character style (
18070 \begin_inset Flex Code
18071 status collapsed
18072
18073 \begin_layout Plain Layout
18074 CharStyle
18075 \end_layout
18076
18077 \end_inset
18078
18079 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18080  commands as 
18081 \begin_inset Flex Code
18082 status collapsed
18083
18084 \begin_layout Plain Layout
18085
18086 \backslash
18087 noun
18088 \end_layout
18089
18090 \end_inset
18091
18092  and 
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097
18098 \backslash
18099 code
18100 \end_layout
18101
18102 \end_inset
18103
18104 .
18105 \end_layout
18106
18107 \begin_layout Itemize
18108 user custom (
18109 \begin_inset Flex Code
18110 status collapsed
18111
18112 \begin_layout Plain Layout
18113 Custom
18114 \end_layout
18115
18116 \end_inset
18117
18118 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18119  code,
18120  footnote, and the like.
18121  An obvious example is an endnote inset, which is defined in the 
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 endnote
18127 \end_layout
18128
18129 \end_inset
18130
18131  module.
18132 \end_layout
18133
18134 \begin_layout Itemize
18135 XML elements (
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 Element
18141 \end_layout
18142
18143 \end_inset
18144
18145 ): For use with DocBook classes.
18146 \end_layout
18147
18148 \begin_layout Standard
18149 Flex insets are defined using the 
18150 \begin_inset Flex Code
18151 status collapsed
18152
18153 \begin_layout Plain Layout
18154 InsetLayout
18155 \end_layout
18156
18157 \end_inset
18158
18159  tag, which shall be explained in a moment.
18160 \end_layout
18161
18162 \begin_layout Standard
18163 The 
18164 \begin_inset Flex Code
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168 InsetLayout
18169 \end_layout
18170
18171 \end_inset
18172
18173  tag also serves another function: It can be used to customize the general
18174  layout of many different types of insets.
18175  Currently, 
18176 \begin_inset Flex Code
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180 InsetLayout
18181 \end_layout
18182
18183 \end_inset
18184
18185  can be used to customize the layout parameters for footnotes, marginal
18186  notes, note insets, \SpecialChar TeX
18187  code (ERT) insets, branches, listings, indexes, boxes,
18188  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18189 \end_layout
18190
18191 \begin_layout Standard
18192 The 
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 InsetLayout
18198 \end_layout
18199
18200 \end_inset
18201
18202  definition must begin with a line of the form:
18203 \end_layout
18204
18205 \begin_layout LyX-Code
18206 InsetLayout <type>
18207 \end_layout
18208
18209 \begin_layout Standard
18210 Here 
18211 \begin_inset Flex Code
18212 status collapsed
18213
18214 \begin_layout Plain Layout
18215 <Type>
18216 \end_layout
18217
18218 \end_inset
18219
18220  indicates the inset whose layout is being defined, and here there are four
18221  cases.
18222 \end_layout
18223
18224 \begin_layout Enumerate
18225 The layout for a pre-existing inset is being modified.
18226  In this case, can be 
18227 \begin_inset Flex Code
18228 status collapsed
18229
18230 \begin_layout Plain Layout
18231 <Type>
18232 \end_layout
18233
18234 \end_inset
18235
18236  any one of the following: 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 Algorithm
18242 \end_layout
18243
18244 \end_inset
18245
18246
18247 \begin_inset Flex Code
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251 Branch
18252 \end_layout
18253
18254 \end_inset
18255
18256
18257 \begin_inset Flex Code
18258 status collapsed
18259
18260 \begin_layout Plain Layout
18261 Box
18262 \end_layout
18263
18264 \end_inset
18265
18266
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 Box:shaded
18272 \end_layout
18273
18274 \end_inset
18275
18276
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 Caption:Standard
18282 \end_layout
18283
18284 \end_inset
18285
18286
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 ERT
18292 \end_layout
18293
18294 \end_inset
18295
18296
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 Figure
18302 \end_layout
18303
18304 \end_inset
18305
18306
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 Foot
18312 \end_layout
18313
18314 \end_inset
18315
18316
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 Index
18322 \end_layout
18323
18324 \end_inset
18325
18326
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331 Info
18332 \end_layout
18333
18334 \end_inset
18335
18336
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 Info:menu
18342 \end_layout
18343
18344 \end_inset
18345
18346
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 Info:shortcut
18352 \end_layout
18353
18354 \end_inset
18355
18356
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 Info:shortcuts
18362 \end_layout
18363
18364 \end_inset
18365
18366
18367 \begin_inset Flex Code
18368 status collapsed
18369
18370 \begin_layout Plain Layout
18371 Listings
18372 \end_layout
18373
18374 \end_inset
18375
18376
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381 Marginal
18382 \end_layout
18383
18384 \end_inset
18385
18386
18387 \begin_inset Flex Code
18388 status collapsed
18389
18390 \begin_layout Plain Layout
18391 Note:Comment
18392 \end_layout
18393
18394 \end_inset
18395
18396
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 Note:Note
18402 \end_layout
18403
18404 \end_inset
18405
18406
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 Note:Greyedout
18412 \end_layout
18413
18414 \end_inset
18415
18416
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 Table
18422 \end_layout
18423
18424 \end_inset
18425
18426 , or 
18427 \begin_inset Flex Code
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 URL
18432 \end_layout
18433
18434 \end_inset
18435
18436 .
18437 \end_layout
18438
18439 \begin_layout Enumerate
18440 The layout for a Flex inset is being defined.
18441  In this case, 
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 <Type>
18447 \end_layout
18448
18449 \end_inset
18450
18451  must be of the form 
18452 \begin_inset Quotes eld
18453 \end_inset
18454
18455
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 Flex:<name>
18461 \end_layout
18462
18463 \end_inset
18464
18465
18466 \begin_inset Quotes erd
18467 \end_inset
18468
18469 , where 
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 name
18475 \end_layout
18476
18477 \end_inset
18478
18479  may be be any valid identifier not used by a pre-existing Flex inset.
18480  The identifier may include spaces, but in that case the whole thing must
18481  be wrapped in quotes.
18482  Note that the definition of a flex inset 
18483 \emph on
18484 must 
18485 \emph default
18486 also include a 
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491 LyXType
18492 \end_layout
18493
18494 \end_inset
18495
18496  entry, declaring which type of inset it defines.
18497 \end_layout
18498
18499 \begin_layout Enumerate
18500 The layout for user specific branch is being defined.
18501  In this case, 
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 <Type>
18507 \end_layout
18508
18509 \end_inset
18510
18511  must be of the form 
18512 \begin_inset Quotes eld
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 Branch:<name>
18521 \end_layout
18522
18523 \end_inset
18524
18525
18526 \begin_inset Quotes erd
18527 \end_inset
18528
18529 , where 
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534 name
18535 \end_layout
18536
18537 \end_inset
18538
18539  may be be any valid identifier of branch defined in user's document.
18540  The identifier may include spaces, but in that case the whole thing must
18541  be wrapped in quotes.
18542  The main purpose of this feature is to allow \SpecialChar LaTeX
18543  wrapping around specific
18544  branches as user needs.
18545 \end_layout
18546
18547 \begin_layout Enumerate
18548 The layout of a user (or class) specific caption is being defined.
18549  In this case, 
18550 \begin_inset Flex Code
18551 status collapsed
18552
18553 \begin_layout Plain Layout
18554 <Type>
18555 \end_layout
18556
18557 \end_inset
18558
18559  must be of the form 
18560 \begin_inset Quotes eld
18561 \end_inset
18562
18563
18564 \begin_inset Flex Code
18565 status collapsed
18566
18567 \begin_layout Plain Layout
18568 Caption:<name>
18569 \end_layout
18570
18571 \end_inset
18572
18573
18574 \begin_inset Quotes erd
18575 \end_inset
18576
18577 , where 
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 name
18583 \end_layout
18584
18585 \end_inset
18586
18587  specifies the name of the caption as it appears in the menu.
18588  Have a look at the standard caption (
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 Caption:Standard
18594 \end_layout
18595
18596 \end_inset
18597
18598 ), the specific captions of the KOMA-Script classes (
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603 Caption:Above
18604 \end_layout
18605
18606 \end_inset
18607
18608
18609 \begin_inset Flex Code
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 Caption:Below
18614 \end_layout
18615
18616 \end_inset
18617
18618 ) or the module 
18619 \family sans
18620 Multilingual
18621 \begin_inset space ~
18622 \end_inset
18623
18624 Captions
18625 \begin_inset Newline linebreak
18626 \end_inset
18627
18628
18629 \family default
18630 (
18631 \begin_inset Flex Code
18632 status collapsed
18633
18634 \begin_layout Plain Layout
18635 Caption:Bicaption
18636 \end_layout
18637
18638 \end_inset
18639
18640 ) for applications.
18641 \end_layout
18642
18643 \begin_layout Standard
18644 The 
18645 \begin_inset Flex Code
18646 status collapsed
18647
18648 \begin_layout Plain Layout
18649 InsetLayout
18650 \end_layout
18651
18652 \end_inset
18653
18654  definition can contain the following entries:
18655 \end_layout
18656
18657 \begin_layout Description
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 AddToToc
18663 \end_layout
18664
18665 \end_inset
18666
18667  [
18668 \begin_inset Flex Code
18669 status collapsed
18670
18671 \begin_layout Plain Layout
18672 string
18673 \end_layout
18674
18675 \end_inset
18676
18677 =""] This inset will appear in the table of contents of the given type.
18678  An empty string disables.
18679  See also the OutlinerName and the IsTocCaption commands.
18680  This is only implemented for Flex insets.
18681  Default: disabled.
18682 \end_layout
18683
18684 \begin_layout Description
18685 \begin_inset Flex Code
18686 status collapsed
18687
18688 \begin_layout Plain Layout
18689 Argument
18690 \end_layout
18691
18692 \end_inset
18693
18694  [
18695 \begin_inset Flex Code
18696 status collapsed
18697
18698 \begin_layout Plain Layout
18699 int
18700 \end_layout
18701
18702 \end_inset
18703
18704 ] Defines argument number of a command\SpecialChar breakableslash
18705 environment associated with the current
18706  layout.
18707  The definition must end with 
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 EndArgument
18713 \end_layout
18714
18715 \end_inset
18716
18717 .
18718  See 
18719 \begin_inset CommandInset ref
18720 LatexCommand ref
18721 reference "subsec:Paragraph-Styles"
18722
18723 \end_inset
18724
18725  for details.
18726 \end_layout
18727
18728 \begin_layout Description
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 BabelPreamble
18734 \end_layout
18735
18736 \end_inset
18737
18738  Preamble for changing language commands; see 
18739 \begin_inset CommandInset ref
18740 LatexCommand ref
18741 reference "subsec:I18n"
18742
18743 \end_inset
18744
18745 .
18746 \end_layout
18747
18748 \begin_layout Description
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 BgColor
18754 \end_layout
18755
18756 \end_inset
18757
18758  [
18759 \begin_inset Flex Code
18760 status collapsed
18761
18762 \begin_layout Plain Layout
18763 <name>
18764 \end_layout
18765
18766 \end_inset
18767
18768 ] The color for the inset's background.
18769  See 
18770 \begin_inset CommandInset ref
18771 LatexCommand ref
18772 reference "chap:Names-of-colors"
18773
18774 \end_inset
18775
18776  for a list of the available color names.
18777 \end_layout
18778
18779 \begin_layout Description
18780 \begin_inset Flex Code
18781 status collapsed
18782
18783 \begin_layout Plain Layout
18784 ContentAsLabel
18785 \end_layout
18786
18787 \end_inset
18788
18789  [
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794
18795 \emph on
18796 0
18797 \end_layout
18798
18799 \end_inset
18800
18801 ,
18802 \begin_inset space \thinspace{}
18803 \end_inset
18804
18805
18806 \begin_inset Flex Code
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 1
18811 \end_layout
18812
18813 \end_inset
18814
18815 ] Whether to use the content of the inset as the label, when the inset is
18816  closed.
18817  Default is false.
18818 \end_layout
18819
18820 \begin_layout Description
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 CopyStyle
18826 \end_layout
18827
18828 \end_inset
18829
18830  [
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 <type>
18836 \end_layout
18837
18838 \end_inset
18839
18840 ] As with paragraph styles, see 
18841 \begin_inset CommandInset ref
18842 LatexCommand ref
18843 reference "subsec:Paragraph-Styles"
18844
18845 \end_inset
18846
18847 .
18848  Note that you need to specify the complete type, e.
18849 \begin_inset space \thinspace{}
18850 \end_inset
18851
18852 g.
18853 \begin_inset space ~
18854 \end_inset
18855
18856
18857 \begin_inset Flex Code
18858 status collapsed
18859
18860 \begin_layout Plain Layout
18861 CopyStyle Flex:<name>
18862 \end_layout
18863
18864 \end_inset
18865
18866 .
18867 \end_layout
18868
18869 \begin_layout Description
18870 \begin_inset Flex Code
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874 CustomPars
18875 \end_layout
18876
18877 \end_inset
18878
18879  [
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884
18885 \emph on
18886 0
18887 \end_layout
18888
18889 \end_inset
18890
18891 ,
18892 \begin_inset space \thinspace{}
18893 \end_inset
18894
18895
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 1
18901 \end_layout
18902
18903 \end_inset
18904
18905 ] Indicates whether the user may employ the Paragraph Settings dialog to
18906  customize the paragraph.
18907 \end_layout
18908
18909 \begin_layout Description
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914 Decoration
18915 \end_layout
18916
18917 \end_inset
18918
18919  can be 
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 Classic
18925 \end_layout
18926
18927 \end_inset
18928
18929
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 Minimalistic
18935 \end_layout
18936
18937 \end_inset
18938
18939 , or 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 Conglomerate
18945 \end_layout
18946
18947 \end_inset
18948
18949 , describing the rendering style used for the inset's frame and buttons.
18950  Footnotes generally use 
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 Classic
18956 \end_layout
18957
18958 \end_inset
18959
18960 , ERT insets generally 
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 Minimalistic
18966 \end_layout
18967
18968 \end_inset
18969
18970 , and character styles 
18971 \begin_inset Flex Code
18972 status collapsed
18973
18974 \begin_layout Plain Layout
18975 Conglomerate
18976 \end_layout
18977
18978 \end_inset
18979
18980 .
18981 \end_layout
18982
18983 \begin_layout Description
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 Display
18989 \end_layout
18990
18991 \end_inset
18992
18993  [
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 0
18999 \end_layout
19000
19001 \end_inset
19002
19003 ,
19004 \emph on
19005
19006 \begin_inset space \thinspace{}
19007 \end_inset
19008
19009
19010 \emph default
19011
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016
19017 \emph on
19018 1
19019 \end_layout
19020
19021 \end_inset
19022
19023 ] Only useful if 
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 LatexType
19029 \end_layout
19030
19031 \end_inset
19032
19033  is 
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 Environment
19039 \end_layout
19040
19041 \end_inset
19042
19043 .
19044  Indicates whether the environment will stand on its own in the output or
19045  will appear inline with the surrounding text.
19046  If set to false, it is supposed that the \SpecialChar LaTeX
19047  environment ignores white space
19048  (including one newline character) after the 
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053
19054 \backslash
19055 begin{
19056 \emph on
19057 LatexName
19058 \emph default
19059 }
19060 \end_layout
19061
19062 \end_inset
19063
19064  and 
19065 \begin_inset Flex Code
19066 status collapsed
19067
19068 \begin_layout Plain Layout
19069
19070 \backslash
19071 end{
19072 \emph on
19073 LatexName
19074 \emph default
19075 }
19076 \end_layout
19077
19078 \end_inset
19079
19080  tags.
19081  Default is true.
19082 \change_inserted 731793113 1538674858
19083
19084 \end_layout
19085
19086 \begin_layout Description
19087
19088 \change_inserted 731793113 1538674891
19089 \begin_inset Flex Code
19090 status open
19091
19092 \begin_layout Plain Layout
19093
19094 \change_inserted 731793113 1538674863
19095 EditExternal
19096 \change_unchanged
19097
19098 \end_layout
19099
19100 \end_inset
19101
19102  [
19103 \emph on
19104 0
19105 \emph default
19106 ,1] Allow the contents of the inset to be edited externally (using whatever
19107  editor is defined for the document's output format).
19108 \change_unchanged
19109
19110 \end_layout
19111
19112 \begin_layout Description
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 End
19118 \end_layout
19119
19120 \end_inset
19121
19122  Required at the end of the 
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 InsetLayout
19128 \end_layout
19129
19130 \end_inset
19131
19132  declarations.
19133 \end_layout
19134
19135 \begin_layout Description
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 Font
19141 \end_layout
19142
19143 \end_inset
19144
19145  The font used for both the text body 
19146 \emph on
19147 and
19148 \emph default
19149  the label.
19150  See 
19151 \begin_inset CommandInset ref
19152 LatexCommand ref
19153 reference "subsec:Font-description"
19154
19155 \end_inset
19156
19157 .
19158  Note that defining this font automatically defines the 
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 LabelFont
19164 \end_layout
19165
19166 \end_inset
19167
19168  to the same value, so define this first and define 
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 LabelFont
19174 \end_layout
19175
19176 \end_inset
19177
19178  later if you want them to be different.
19179 \end_layout
19180
19181 \begin_layout Description
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 FixedWidthPreambleEncoding
19187 \end_layout
19188
19189 \end_inset
19190
19191  [
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196
19197 \emph on
19198 0
19199 \end_layout
19200
19201 \end_inset
19202
19203 ,
19204 \begin_inset space \thinspace{}
19205 \end_inset
19206
19207
19208 \begin_inset Flex Code
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 1
19213 \end_layout
19214
19215 \end_inset
19216
19217 ] Force a fixed width encoding for the translated contents of 
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 BabelPreamble
19223 \end_layout
19224
19225 \end_inset
19226
19227  and 
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 LangPreamble
19233 \end_layout
19234
19235 \end_inset
19236
19237  code generated by this layout.
19238  This is needed for special \SpecialChar LaTeX
19239 -packages like 
19240 \family typewriter
19241 listings
19242 \family default
19243  that do not work with variable width encodings such as 
19244 \family sans
19245 utf8
19246 \family default
19247 .
19248  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19249  backends such as Xe\SpecialChar TeX
19250  or
19251  Lua\SpecialChar TeX
19252  are used.
19253 \end_layout
19254
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 ForceLocalFontSwitch
19261 \end_layout
19262
19263 \end_inset
19264
19265  [
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270
19271 \emph on
19272 0
19273 \end_layout
19274
19275 \end_inset
19276
19277 ,
19278 \begin_inset space \thinspace{}
19279 \end_inset
19280
19281
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 1
19287 \end_layout
19288
19289 \end_inset
19290
19291 ] When using babel, always use a local font switch (
19292 \begin_inset Flex Code
19293 status collapsed
19294
19295 \begin_layout Plain Layout
19296
19297 \backslash
19298 foreignlanguage
19299 \end_layout
19300
19301 \end_inset
19302
19303 ), never a global one (such as 
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308
19309 \backslash
19310 selectlanguage
19311 \end_layout
19312
19313 \end_inset
19314
19315 ).
19316 \end_layout
19317
19318 \begin_layout Description
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 ForceLTR
19324 \end_layout
19325
19326 \end_inset
19327
19328  [
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333
19334 \emph on
19335 0
19336 \end_layout
19337
19338 \end_inset
19339
19340 ,
19341 \begin_inset space \thinspace{}
19342 \end_inset
19343
19344
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 1
19350 \end_layout
19351
19352 \end_inset
19353
19354 ] Force the 
19355 \begin_inset Quotes eld
19356 \end_inset
19357
19358 latex
19359 \begin_inset Quotes erd
19360 \end_inset
19361
19362  language, leading to Left-to-Right (Latin) output, e.
19363 \begin_inset space \thinspace{}
19364 \end_inset
19365
19366 g.
19367 \begin_inset space \space{}
19368 \end_inset
19369
19370 in \SpecialChar TeX
19371  code or URL.
19372  A kludge.
19373 \end_layout
19374
19375 \begin_layout Description
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 ForceOwnlines
19381 \end_layout
19382
19383 \end_inset
19384
19385  [
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390
19391 \emph on
19392 0
19393 \end_layout
19394
19395 \end_inset
19396
19397 ,
19398 \begin_inset space \thinspace{}
19399 \end_inset
19400
19401
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 1
19407 \end_layout
19408
19409 \end_inset
19410
19411 ] Force a a line break in the \SpecialChar LaTeX
19412  output before the inset starts and after
19413  the inset ends.
19414  This assures the inset itself is output on its own lines, for parsing purposes.
19415 \end_layout
19416
19417 \begin_layout Description
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 ForcePlain
19423 \end_layout
19424
19425 \end_inset
19426
19427  [
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432
19433 \emph on
19434 0
19435 \end_layout
19436
19437 \end_inset
19438
19439 ,
19440 \begin_inset space \thinspace{}
19441 \end_inset
19442
19443
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 1
19449 \end_layout
19450
19451 \end_inset
19452
19453 ] Indicates whether the 
19454 \begin_inset Flex Code
19455 status collapsed
19456
19457 \begin_layout Plain Layout
19458 PlainLayout
19459 \end_layout
19460
19461 \end_inset
19462
19463  should be used or, instead, the user can change the paragraph style used
19464  in the inset.
19465  Default is false.
19466 \end_layout
19467
19468 \begin_layout Description
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 FreeSpacing
19474 \end_layout
19475
19476 \end_inset
19477
19478  [
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483
19484 \emph on
19485 0
19486 \end_layout
19487
19488 \end_inset
19489
19490 ,
19491 \begin_inset space \thinspace{}
19492 \end_inset
19493
19494
19495 \begin_inset Flex Code
19496 status collapsed
19497
19498 \begin_layout Plain Layout
19499 1
19500 \end_layout
19501
19502 \end_inset
19503
19504 ] As with paragraph styles, see 
19505 \begin_inset CommandInset ref
19506 LatexCommand ref
19507 reference "subsec:Paragraph-Styles"
19508
19509 \end_inset
19510
19511 .
19512 \end_layout
19513
19514 \begin_layout Description
19515 \begin_inset Flex Code
19516 status collapsed
19517
19518 \begin_layout Plain Layout
19519 HTML*
19520 \end_layout
19521
19522 \end_inset
19523
19524  These tags control the XHTML output.
19525  See 
19526 \begin_inset CommandInset ref
19527 LatexCommand ref
19528 reference "sec:Tags-for-XHTML"
19529
19530 \end_inset
19531
19532 .
19533 \end_layout
19534
19535 \begin_layout Description
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 InToc
19541 \end_layout
19542
19543 \end_inset
19544
19545  [
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550
19551 \emph on
19552 0
19553 \end_layout
19554
19555 \end_inset
19556
19557 ,
19558 \begin_inset space \thinspace{}
19559 \end_inset
19560
19561
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 1
19567 \end_layout
19568
19569 \end_inset
19570
19571 ] Whether to include the contents of this inset in the strings generated
19572  for the `Outline' pane for all table of contents, regardless of the AddToToc
19573  setting.
19574  One would not, for example, want the content of a footnote in a section
19575  header to be included in the TOC displayed in the outline, but one would
19576  normally want the content of a character style displayed.
19577  Default is false: not to include.
19578 \end_layout
19579
19580 \begin_layout Description
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 IsTocCaption
19586 \end_layout
19587
19588 \end_inset
19589
19590  [
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595
19596 \emph on
19597 0
19598 \end_layout
19599
19600 \end_inset
19601
19602 ,
19603 \begin_inset space \thinspace{}
19604 \end_inset
19605
19606
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611 1
19612 \end_layout
19613
19614 \end_inset
19615
19616 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19617  of its contents in its item in the table of contents.
19618  Otherwise, only the label appears.
19619 \end_layout
19620
19621 \begin_layout Description
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 KeepEmpty
19627 \end_layout
19628
19629 \end_inset
19630
19631  [
19632 \emph on
19633
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 0
19639 \end_layout
19640
19641 \end_inset
19642
19643
19644 \emph default
19645 ,
19646 \begin_inset space \thinspace{}
19647 \end_inset
19648
19649
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 1
19655 \end_layout
19656
19657 \end_inset
19658
19659 ] As with paragraph styles, see 
19660 \begin_inset CommandInset ref
19661 LatexCommand ref
19662 reference "subsec:Paragraph-Styles"
19663
19664 \end_inset
19665
19666 .
19667 \end_layout
19668
19669 \begin_layout Description
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 LabelFont
19675 \end_layout
19676
19677 \end_inset
19678
19679  The font used for the label.
19680  See 
19681 \begin_inset CommandInset ref
19682 LatexCommand ref
19683 reference "subsec:Font-description"
19684
19685 \end_inset
19686
19687 .
19688  Note that this definition can never appear before 
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 Font
19694 \end_layout
19695
19696 \end_inset
19697
19698 , lest it be ineffective.
19699 \end_layout
19700
19701 \begin_layout Description
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 LabelString
19707 \end_layout
19708
19709 \end_inset
19710
19711  [
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 string
19717 \end_layout
19718
19719 \end_inset
19720
19721 =
19722 \begin_inset Quotes erd
19723 \end_inset
19724
19725
19726 \begin_inset Quotes erd
19727 \end_inset
19728
19729 ] What will be displayed on the button or elsewhere as the inset label.
19730  Some inset types (
19731 \begin_inset Flex Code
19732 status collapsed
19733
19734 \begin_layout Plain Layout
19735 \SpecialChar TeX
19736  code
19737 \end_layout
19738
19739 \end_inset
19740
19741  and 
19742 \begin_inset Flex Code
19743 status collapsed
19744
19745 \begin_layout Plain Layout
19746 Branch
19747 \end_layout
19748
19749 \end_inset
19750
19751 ) modify this label on the fly.
19752 \end_layout
19753
19754 \begin_layout Description
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 LangPreamble
19760 \end_layout
19761
19762 \end_inset
19763
19764  Language dependent preamble; see 
19765 \begin_inset CommandInset ref
19766 LatexCommand ref
19767 reference "subsec:I18n"
19768
19769 \end_inset
19770
19771 .
19772 \end_layout
19773
19774 \begin_layout Description
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 LatexName
19780 \end_layout
19781
19782 \end_inset
19783
19784  [
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 <name>
19790 \end_layout
19791
19792 \end_inset
19793
19794 ] The name of the corresponding \SpecialChar LaTeX
19795  stuff.
19796  Either the environment or command name.
19797 \end_layout
19798
19799 \begin_layout Description
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 LatexParam
19805 \end_layout
19806
19807 \end_inset
19808
19809  [
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 <parameter>
19815 \end_layout
19816
19817 \end_inset
19818
19819 ] The optional parameter for the corresponding 
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 LatexName
19825 \end_layout
19826
19827 \end_inset
19828
19829  stuff, including possible bracket pairs like 
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 []
19835 \end_layout
19836
19837 \end_inset
19838
19839 .
19840  This parameter cannot be changed from within \SpecialChar LyX
19841  (use 
19842 \begin_inset Flex Code
19843 status collapsed
19844
19845 \begin_layout Plain Layout
19846 Argument
19847 \end_layout
19848
19849 \end_inset
19850
19851  for customizable parameters).
19852  It will be output as is after all \SpecialChar LaTeX
19853  
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 Argument
19859 \end_layout
19860
19861 \end_inset
19862
19863 s.
19864 \end_layout
19865
19866 \begin_layout Description
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 LatexType
19872 \end_layout
19873
19874 \end_inset
19875
19876  [
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 Command, Environment, None
19882 \end_layout
19883
19884 \end_inset
19885
19886 ] How the style should be translated into \SpecialChar LaTeX
19887 .
19888 \begin_inset Foot
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 LatexType
19897 \end_layout
19898
19899 \end_inset
19900
19901  is perhaps a bit misleading, since these rules apply to SGML classes too.
19902  Visit the SGML class files for specific examples.
19903 \end_layout
19904
19905 \end_inset
19906
19907
19908 \end_layout
19909
19910 \begin_deeper
19911 \begin_layout Description
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916 None
19917 \end_layout
19918
19919 \end_inset
19920
19921  means nothing special
19922 \end_layout
19923
19924 \begin_layout Description
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 Command
19930 \end_layout
19931
19932 \end_inset
19933
19934  means 
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939
19940 \backslash
19941
19942 \emph on
19943 LatexName
19944 \emph default
19945 {\SpecialChar ldots
19946 }
19947 \end_layout
19948
19949 \end_inset
19950
19951
19952 \end_layout
19953
19954 \begin_layout Description
19955 \begin_inset Flex Code
19956 status collapsed
19957
19958 \begin_layout Plain Layout
19959 Environment
19960 \end_layout
19961
19962 \end_inset
19963
19964  means 
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969
19970 \backslash
19971 begin{
19972 \emph on
19973 LatexName
19974 \emph default
19975 }\SpecialChar ldots
19976
19977 \backslash
19978 end{
19979 \emph on
19980 LatexName
19981 \emph default
19982 }
19983 \end_layout
19984
19985 \end_inset
19986
19987
19988 \end_layout
19989
19990 \begin_layout Standard
19991 Putting the last few things together, the \SpecialChar LaTeX
19992  output will be either: 
19993 \end_layout
19994
19995 \begin_layout LyX-Code
19996
19997 \backslash
19998 LatexName[LatexParam]{\SpecialChar ldots
19999 }
20000 \end_layout
20001
20002 \begin_layout Standard
20003 or: 
20004 \end_layout
20005
20006 \begin_layout LyX-Code
20007
20008 \backslash
20009 begin{LatexName}[LatexParam] \SpecialChar ldots
20010  
20011 \backslash
20012 end{LatexName}
20013 \end_layout
20014
20015 \begin_layout Standard
20016 depending upon the \SpecialChar LaTeX
20017  type.
20018 \end_layout
20019
20020 \end_deeper
20021 \begin_layout Description
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 LeftDelim
20027 \end_layout
20028
20029 \end_inset
20030
20031  [
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 string
20037 \end_layout
20038
20039 \end_inset
20040
20041 ] A string that is put at the beginning of the layout content.
20042  A line break in the output can be indicated by 
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 <br/>
20048 \end_layout
20049
20050 \end_inset
20051
20052 .
20053 \end_layout
20054
20055 \begin_layout Description
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 LyxType
20061 \end_layout
20062
20063 \end_inset
20064
20065  Can be 
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 charstyle
20071 \end_layout
20072
20073 \end_inset
20074
20075
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 custom
20081 \end_layout
20082
20083 \end_inset
20084
20085
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 element
20091 \end_layout
20092
20093 \end_inset
20094
20095  or 
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 end
20101 \end_layout
20102
20103 \end_inset
20104
20105  (indicating a dummy definition ending definitions of charstyles, etc).
20106  This entry is required in and is only meaningful for Flex insets.
20107  Among other things, it determines on which menu this inset will appear.
20108  Setting 
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 LyxType
20114 \end_layout
20115
20116 \end_inset
20117
20118  to 
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 charstyle
20124 \end_layout
20125
20126 \end_inset
20127
20128  will automatically set 
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 MultiPar
20134 \end_layout
20135
20136 \end_inset
20137
20138  to false and 
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 ForcePlain
20144 \end_layout
20145
20146 \end_inset
20147
20148  to true.
20149  
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 MultiPar
20155 \end_layout
20156
20157 \end_inset
20158
20159  can be set to true, or 
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 ForcePlain
20165 \end_layout
20166
20167 \end_inset
20168
20169  to false, for 
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 charstyle
20175 \end_layout
20176
20177 \end_inset
20178
20179  insets by setting it 
20180 \emph on
20181 after
20182 \emph default
20183  you set the 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 LyxType
20189 \end_layout
20190
20191 \end_inset
20192
20193 .
20194 \end_layout
20195
20196 \begin_layout Description
20197 \begin_inset Flex Code
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201 MultiPar
20202 \end_layout
20203
20204 \end_inset
20205
20206  [
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211
20212 \emph on
20213 0
20214 \end_layout
20215
20216 \end_inset
20217
20218 ,
20219 \begin_inset space \thinspace{}
20220 \end_inset
20221
20222
20223 \begin_inset Flex Code
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227 1
20228 \end_layout
20229
20230 \end_inset
20231
20232 ] Whether multiple paragraphs are permitted in this inset.
20233  This will also set 
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 CustomPars
20239 \end_layout
20240
20241 \end_inset
20242
20243  to the same value and 
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248 ForcePlain
20249 \end_layout
20250
20251 \end_inset
20252
20253  to the opposite value.
20254  These can be reset to other values, if they are used 
20255 \emph on
20256 after
20257 \emph default
20258  
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 MultiPar
20264 \end_layout
20265
20266 \end_inset
20267
20268 .
20269  Default is true.
20270 \end_layout
20271
20272 \begin_layout Description
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 NeedProtect
20278 \end_layout
20279
20280 \end_inset
20281
20282  [
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287
20288 \emph on
20289 0
20290 \end_layout
20291
20292 \end_inset
20293
20294 ,
20295 \begin_inset space \thinspace{}
20296 \end_inset
20297
20298
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 1
20304 \end_layout
20305
20306 \end_inset
20307
20308 ] Whether fragile commands in this inset should be 
20309 \begin_inset Flex Code
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313
20314 \backslash
20315 protect
20316 \end_layout
20317
20318 \end_inset
20319
20320 'ed.
20321  (Note: This is 
20322 \emph on
20323 not
20324 \emph default
20325  whether the command should itself be protected.) Default is false.
20326 \change_inserted -712698321 1523633958
20327
20328 \end_layout
20329
20330 \begin_layout Description
20331
20332 \change_inserted -712698321 1552395786
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337
20338 \change_inserted -712698321 1523633961
20339 NeedCProtect
20340 \end_layout
20341
20342 \end_inset
20343
20344  [
20345 \begin_inset Flex Code
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349
20350 \change_inserted -712698321 1523633958
20351
20352 \emph on
20353 0
20354 \end_layout
20355
20356 \end_inset
20357
20358 ,
20359 \begin_inset space \thinspace{}
20360 \end_inset
20361
20362
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367
20368 \change_inserted -712698321 1523633958
20369 1
20370 \end_layout
20371
20372 \end_inset
20373
20374 ] This causes macros that contain this inset to be protected with 
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379
20380 \change_inserted -712698321 1523634038
20381
20382 \backslash
20383 cprotect
20384 \change_unchanged
20385
20386 \end_layout
20387
20388 \end_inset
20389
20390  (cf.
20391  package 
20392 \family sans
20393 cprotect
20394 \family default
20395 ) if necessary and thus allows (some) verbatim stuff in macros.
20396  Default is false.
20397 \end_layout
20398
20399 \begin_layout Description
20400
20401 \change_inserted -712698321 1552395824
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406
20407 \change_inserted -712698321 1552395787
20408 NeedMBoxProtect
20409 \end_layout
20410
20411 \end_inset
20412
20413  [
20414 \begin_inset Flex Code
20415 status collapsed
20416
20417 \begin_layout Plain Layout
20418
20419 \change_inserted -712698321 1552395787
20420
20421 \emph on
20422 0
20423 \end_layout
20424
20425 \end_inset
20426
20427 ,
20428 \begin_inset space \thinspace{}
20429 \end_inset
20430
20431
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436
20437 \change_inserted -712698321 1552395787
20438 1
20439 \end_layout
20440
20441 \end_inset
20442
20443 ] Whether specific commands in this inset (such as 
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448
20449 \change_inserted -712698321 1552395787
20450
20451 \backslash
20452 cite
20453 \end_layout
20454
20455 \end_inset
20456
20457  and 
20458 \begin_inset Flex Code
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462
20463 \change_inserted -712698321 1552395787
20464
20465 \backslash
20466 ref
20467 \end_layout
20468
20469 \end_inset
20470
20471 ) should be protected in an 
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476
20477 \change_inserted -712698321 1552395787
20478
20479 \backslash
20480 mbox
20481 \end_layout
20482
20483 \end_inset
20484
20485 .
20486  This is particularly needed for insets that draw on 
20487 \family sans
20488 ulem
20489 \family default
20490  or 
20491 \family sans
20492 soul
20493 \family default
20494  commands which parse their content in complex ways.
20495  Default is false.
20496 \change_unchanged
20497
20498 \end_layout
20499
20500 \begin_layout Description
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 NoInsetLayout
20506 \end_layout
20507
20508 \end_inset
20509
20510  [
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 <layout>
20516 \end_layout
20517
20518 \end_inset
20519
20520 ] Deletes an existing 
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 InsetLayout
20526 \end_layout
20527
20528 \end_inset
20529
20530 .
20531 \end_layout
20532
20533 \begin_layout Description
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 ObsoletedBy
20539 \end_layout
20540
20541 \end_inset
20542
20543  [
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548 <layout>
20549 \end_layout
20550
20551 \end_inset
20552
20553 ] Name of an 
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 InsetLayout
20559 \end_layout
20560
20561 \end_inset
20562
20563  that has replaced this 
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 InsetLayout
20569 \end_layout
20570
20571 \end_inset
20572
20573 .
20574  This is used to rename an 
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 InsetLayout
20580 \end_layout
20581
20582 \end_inset
20583
20584 , while keeping backward compatibility.
20585 \end_layout
20586
20587 \begin_layout Description
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 ParbreakIsNewline
20593 \end_layout
20594
20595 \end_inset
20596
20597  [
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602
20603 \emph on
20604 0
20605 \end_layout
20606
20607 \end_inset
20608
20609 ,
20610 \begin_inset space \thinspace{}
20611 \end_inset
20612
20613
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 1
20619 \end_layout
20620
20621 \end_inset
20622
20623 ] As with paragraph styles, see 
20624 \begin_inset CommandInset ref
20625 LatexCommand ref
20626 reference "subsec:Paragraph-Styles"
20627
20628 \end_inset
20629
20630 .
20631  Default is false.
20632 \end_layout
20633
20634 \begin_layout Description
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 PassThru
20640 \end_layout
20641
20642 \end_inset
20643
20644  [
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649
20650 \emph on
20651 0
20652 \end_layout
20653
20654 \end_inset
20655
20656 ,
20657 \begin_inset space \thinspace{}
20658 \end_inset
20659
20660
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 1
20666 \end_layout
20667
20668 \end_inset
20669
20670 ] As with paragraph styles, see 
20671 \begin_inset CommandInset ref
20672 LatexCommand ref
20673 reference "subsec:Paragraph-Styles"
20674
20675 \end_inset
20676
20677 .
20678  Default is false.
20679 \end_layout
20680
20681 \begin_layout Description
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686 Preamble
20687 \end_layout
20688
20689 \end_inset
20690
20691  As with paragraph styles, see 
20692 \begin_inset CommandInset ref
20693 LatexCommand ref
20694 reference "subsec:Paragraph-Styles"
20695
20696 \end_inset
20697
20698 .
20699 \end_layout
20700
20701 \begin_layout Description
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706 RefPrefix
20707 \end_layout
20708
20709 \end_inset
20710
20711  [
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 string
20717 \end_layout
20718
20719 \end_inset
20720
20721 ] The prefix to use when creating labels referring to insets of this type.
20722  This allows the use of formatted references.
20723 \end_layout
20724
20725 \begin_layout Description
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 Requires
20731 \end_layout
20732
20733 \end_inset
20734
20735  [
20736 \begin_inset Flex Code
20737 status collapsed
20738
20739 \begin_layout Plain Layout
20740 string
20741 \end_layout
20742
20743 \end_inset
20744
20745 ] As with paragraph styles, see 
20746 \begin_inset CommandInset ref
20747 LatexCommand ref
20748 reference "subsec:Paragraph-Styles"
20749
20750 \end_inset
20751
20752 .
20753 \end_layout
20754
20755 \begin_layout Description
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 ResetArgs
20761 \end_layout
20762
20763 \end_inset
20764
20765  [
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770
20771 \emph on
20772 0
20773 \end_layout
20774
20775 \end_inset
20776
20777 ,
20778 \begin_inset space \thinspace{}
20779 \end_inset
20780
20781
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 1
20787 \end_layout
20788
20789 \end_inset
20790
20791 ] Resets the \SpecialChar LaTeX
20792  arguments of this layout (as defined via the 
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 Argument
20798 \end_layout
20799
20800 \end_inset
20801
20802  tag).
20803  This is useful if you have copied a style via 
20804 \begin_inset Flex Code
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808 CopyStyle
20809 \end_layout
20810
20811 \end_inset
20812
20813 , but you do not want to inherit its (required and optional) arguments.
20814 \end_layout
20815
20816 \begin_layout Description
20817 \begin_inset Flex Code
20818 status collapsed
20819
20820 \begin_layout Plain Layout
20821 ResetsFont
20822 \end_layout
20823
20824 \end_inset
20825
20826  [
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 0
20832 \end_layout
20833
20834 \end_inset
20835
20836 ,
20837 \begin_inset space \thinspace{}
20838 \end_inset
20839
20840
20841 \begin_inset Flex Code
20842 status collapsed
20843
20844 \begin_layout Plain Layout
20845
20846 \emph on
20847 1
20848 \end_layout
20849
20850 \end_inset
20851
20852 ] Whether this inset should use the font of its surrounding environment
20853  or uses its own.
20854  Default is false: use the font of the surrounding environment.
20855 \end_layout
20856
20857 \begin_layout Description
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 RightDelim
20863 \end_layout
20864
20865 \end_inset
20866
20867  [
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 string
20873 \end_layout
20874
20875 \end_inset
20876
20877 ] A string that is put at the end of the layout content.
20878  A line break in the output can be indicated by 
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 <br/>
20884 \end_layout
20885
20886 \end_inset
20887
20888 .
20889 \end_layout
20890
20891 \begin_layout Description
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 Spellcheck
20897 \end_layout
20898
20899 \end_inset
20900
20901  [
20902 \begin_inset Flex Code
20903 status collapsed
20904
20905 \begin_layout Plain Layout
20906 0
20907 \end_layout
20908
20909 \end_inset
20910
20911 ,
20912 \begin_inset space \thinspace{}
20913 \end_inset
20914
20915
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920
20921 \emph on
20922 1
20923 \end_layout
20924
20925 \end_inset
20926
20927 ] Allow spell-checking the contents of this inset.
20928  Default is true.
20929 \end_layout
20930
20931 \begin_layout Subsection
20932 Counters
20933 \begin_inset CommandInset label
20934 LatexCommand label
20935 name "subsec:Counters"
20936
20937 \end_inset
20938
20939
20940 \end_layout
20941
20942 \begin_layout Standard
20943 It is necessary to define the counters (
20944 \begin_inset Flex Noun
20945 status collapsed
20946
20947 \begin_layout Plain Layout
20948 chapter
20949 \end_layout
20950
20951 \end_inset
20952
20953
20954 \begin_inset Flex Noun
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 figure
20959 \end_layout
20960
20961 \end_inset
20962
20963 , \SpecialChar ldots
20964 ) in the text class itself.
20965  The standard counters are defined in the file 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 stdcounters.inc
20971 \end_layout
20972
20973 \end_inset
20974
20975 , so you may have to do no more than add
20976 \end_layout
20977
20978 \begin_layout LyX-Code
20979 Input stdcounters.inc
20980 \end_layout
20981
20982 \begin_layout Standard
20983 to your layout file to get them to work.
20984  But if you want to define custom counters, then you can do so.
20985  The counter declaration must begin with:
20986 \end_layout
20987
20988 \begin_layout LyX-Code
20989 Counter CounterName
20990 \end_layout
20991
20992 \begin_layout Standard
20993 where of course `
20994 \begin_inset Flex Code
20995 status collapsed
20996
20997 \begin_layout Plain Layout
20998 CounterName
20999 \end_layout
21000
21001 \end_inset
21002
21003 ' is replaced by the name of the counter.
21004  And it must end with 
21005 \begin_inset Quotes eld
21006 \end_inset
21007
21008
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 End
21014 \end_layout
21015
21016 \end_inset
21017
21018
21019 \begin_inset Quotes erd
21020 \end_inset
21021
21022 .
21023  The following parameters can also be used:
21024 \end_layout
21025
21026 \begin_layout Description
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 InitialValue
21032 \end_layout
21033
21034 \end_inset
21035
21036  [
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 int=1
21042 \end_layout
21043
21044 \end_inset
21045
21046 ] Sets the initial value for the counter, to which it will be reset whenever
21047  that happens.
21048  Normally, one will want the default, 1.
21049 \end_layout
21050
21051 \begin_layout Description
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 LabelString
21057 \end_layout
21058
21059 \end_inset
21060
21061  [
21062 \begin_inset Flex Code
21063 status collapsed
21064
21065 \begin_layout Plain Layout
21066 string
21067 \end_layout
21068
21069 \end_inset
21070
21071 =
21072 \begin_inset Quotes erd
21073 \end_inset
21074
21075
21076 \begin_inset Quotes erd
21077 \end_inset
21078
21079 ] When defined, this string defines how the counter is displayed.
21080  Setting this value sets 
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 LabelStringAppendix
21086 \end_layout
21087
21088 \end_inset
21089
21090  to the same value.
21091  The following special constructs can be used in the string:
21092 \end_layout
21093
21094 \begin_deeper
21095 \begin_layout Itemize
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100
21101 \backslash
21102 thecounter
21103 \end_layout
21104
21105 \end_inset
21106
21107  will be replaced by the expansion of the 
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 LabelString
21113 \end_layout
21114
21115 \end_inset
21116
21117  (or 
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 LabelStringAppendix
21123 \end_layout
21124
21125 \end_inset
21126
21127 ) of the counter 
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 counter
21133 \end_layout
21134
21135 \end_inset
21136
21137 .
21138  
21139 \end_layout
21140
21141 \begin_layout Itemize
21142 counter values can be expressed using \SpecialChar LaTeX
21143 -like macros
21144 \begin_inset Newline newline
21145 \end_inset
21146
21147
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152
21153 \backslash
21154
21155 \emph on
21156 numbertype
21157 \emph default
21158 {
21159 \emph on
21160 counter
21161 \emph default
21162 }
21163 \end_layout
21164
21165 \end_inset
21166
21167 , where 
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172
21173 \emph on
21174 numbertype
21175 \end_layout
21176
21177 \end_inset
21178
21179  can be:
21180 \begin_inset Foot
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184
21185 \family roman
21186 \series medium
21187 \shape up
21188 \size normal
21189 \emph off
21190 \bar no
21191 \noun off
21192 \color none
21193 Actually, the situation is a bit more complicated: any
21194 \family default
21195 \series default
21196 \shape default
21197 \emph default
21198 \bar default
21199  
21200 \size default
21201 \emph on
21202 \noun default
21203 \color inherit
21204 numbertype
21205 \family roman
21206 \series medium
21207 \shape up
21208 \size normal
21209 \emph off
21210 \bar no
21211 \noun off
21212  other than those described below will produce arabic numerals.
21213  It would not be surprising to see this change in the future.
21214 \end_layout
21215
21216 \end_inset
21217
21218  
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 arabic
21224 \end_layout
21225
21226 \end_inset
21227
21228 : 1, 2, 3,\SpecialChar ldots
21229
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 alph
21235 \end_layout
21236
21237 \end_inset
21238
21239  for lower-case letters: a, b, c, \SpecialChar ldots
21240
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 Alph
21246 \end_layout
21247
21248 \end_inset
21249
21250  for upper-case letters: A, B, C, \SpecialChar ldots
21251
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 roman
21257 \end_layout
21258
21259 \end_inset
21260
21261  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21262
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 Roman
21268 \end_layout
21269
21270 \end_inset
21271
21272  for upper-case roman numerals: I, II, III\SpecialChar ldots
21273
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 hebrew
21279 \end_layout
21280
21281 \end_inset
21282
21283  for hebrew numerals.
21284 \end_layout
21285
21286 \end_deeper
21287 \begin_layout Standard
21288 If LabelString is not defined, a default value is constructed as follows:
21289  if the counter has a master counter 
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 master
21295 \end_layout
21296
21297 \end_inset
21298
21299  (defined via 
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 Within
21305 \end_layout
21306
21307 \end_inset
21308
21309 ), the string
21310 \begin_inset Newline newline
21311 \end_inset
21312
21313
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318
21319 \backslash
21320 themaster.
21321 \backslash
21322 arabic{counter}
21323 \end_layout
21324
21325 \end_inset
21326
21327  is used; otherwise the string 
21328 \begin_inset Flex Code
21329 status collapsed
21330
21331 \begin_layout Plain Layout
21332
21333 \backslash
21334 arabic{counter}
21335 \end_layout
21336
21337 \end_inset
21338
21339  is used.
21340 \end_layout
21341
21342 \begin_layout Description
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 LabelStringAppendix
21348 \end_layout
21349
21350 \end_inset
21351
21352  [
21353 \begin_inset Flex Code
21354 status collapsed
21355
21356 \begin_layout Plain Layout
21357 string
21358 \end_layout
21359
21360 \end_inset
21361
21362 =
21363 \begin_inset Quotes erd
21364 \end_inset
21365
21366
21367 \begin_inset Quotes erd
21368 \end_inset
21369
21370 ] Same as 
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 LabelString
21376 \end_layout
21377
21378 \end_inset
21379
21380 , but for use in the Appendix.
21381 \end_layout
21382
21383 \begin_layout Description
21384 \begin_inset Flex Code
21385 status collapsed
21386
21387 \begin_layout Plain Layout
21388 PrettyFormat
21389 \end_layout
21390
21391 \end_inset
21392
21393  [
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 string
21399 \end_layout
21400
21401 \end_inset
21402
21403 =
21404 \begin_inset Quotes erd
21405 \end_inset
21406
21407
21408 \begin_inset Quotes erd
21409 \end_inset
21410
21411 ] A format for use with formatted references to this counter.
21412  For example, one might want to have references to section numbers appear
21413  as 
21414 \begin_inset Quotes eld
21415 \end_inset
21416
21417 Section 2.4
21418 \begin_inset Quotes erd
21419 \end_inset
21420
21421 .
21422  The string should contain 
21423 \begin_inset Quotes eld
21424 \end_inset
21425
21426 ##
21427 \begin_inset Quotes erd
21428 \end_inset
21429
21430 .
21431  This will be replaced by the counter number itself.
21432  So, for sections, it would be: Section ##.
21433 \end_layout
21434
21435 \begin_layout Description
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 Within
21441 \end_layout
21442
21443 \end_inset
21444
21445  [
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 string
21451 \end_layout
21452
21453 \end_inset
21454
21455 =
21456 \begin_inset Quotes erd
21457 \end_inset
21458
21459
21460 \begin_inset Quotes erd
21461 \end_inset
21462
21463 ] If this is set to the name of another counter, the present counter will
21464  be reset every time the other one is increased.
21465  For example, 
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 subsection
21471 \end_layout
21472
21473 \end_inset
21474
21475  is numbered inside 
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 section
21481 \end_layout
21482
21483 \end_inset
21484
21485 .
21486 \end_layout
21487
21488 \begin_layout Subsection
21489 Font description
21490 \begin_inset CommandInset label
21491 LatexCommand label
21492 name "subsec:Font-description"
21493
21494 \end_inset
21495
21496
21497 \end_layout
21498
21499 \begin_layout Standard
21500 A font description looks like this:
21501 \end_layout
21502
21503 \begin_layout LyX-Code
21504 Font 
21505 \family roman
21506 \emph on
21507 or
21508 \family default
21509 \emph default
21510  LabelFont
21511 \emph on
21512  
21513 \family roman
21514 or
21515 \family default
21516 \emph default
21517  DefaultFont
21518 \end_layout
21519
21520 \begin_layout LyX-Code
21521  ...
21522 \end_layout
21523
21524 \begin_layout LyX-Code
21525 EndFont
21526 \end_layout
21527
21528 \begin_layout Standard
21529 The following commands are available:
21530 \end_layout
21531
21532 \begin_layout Description
21533 \begin_inset Flex Code
21534 status collapsed
21535
21536 \begin_layout Plain Layout
21537 Color
21538 \end_layout
21539
21540 \end_inset
21541
21542  [
21543 \begin_inset Flex Code
21544 status collapsed
21545
21546 \begin_layout Plain Layout
21547
21548 \emph on
21549 none
21550 \end_layout
21551
21552 \end_inset
21553
21554
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 black
21560 \end_layout
21561
21562 \end_inset
21563
21564
21565 \begin_inset Flex Code
21566 status collapsed
21567
21568 \begin_layout Plain Layout
21569 white
21570 \end_layout
21571
21572 \end_inset
21573
21574
21575 \begin_inset Flex Code
21576 status collapsed
21577
21578 \begin_layout Plain Layout
21579 red
21580 \end_layout
21581
21582 \end_inset
21583
21584
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589 green
21590 \end_layout
21591
21592 \end_inset
21593
21594
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 blue
21600 \end_layout
21601
21602 \end_inset
21603
21604
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609 cyan
21610 \end_layout
21611
21612 \end_inset
21613
21614
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 magenta
21620 \end_layout
21621
21622 \end_inset
21623
21624
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 yellow
21630 \end_layout
21631
21632 \end_inset
21633
21634
21635 \begin_inset Flex Code
21636 status collapsed
21637
21638 \begin_layout Plain Layout
21639 brown
21640 \end_layout
21641
21642 \end_inset
21643
21644
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 darkgray
21650 \end_layout
21651
21652 \end_inset
21653
21654
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 gray
21660 \end_layout
21661
21662 \end_inset
21663
21664
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 lightgray
21670 \end_layout
21671
21672 \end_inset
21673
21674
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 lime
21680 \end_layout
21681
21682 \end_inset
21683
21684
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 orange
21690 \end_layout
21691
21692 \end_inset
21693
21694
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 olive
21700 \end_layout
21701
21702 \end_inset
21703
21704
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 pink
21710 \end_layout
21711
21712 \end_inset
21713
21714
21715 \begin_inset Flex Code
21716 status collapsed
21717
21718 \begin_layout Plain Layout
21719 purple
21720 \end_layout
21721
21722 \end_inset
21723
21724
21725 \begin_inset Flex Code
21726 status collapsed
21727
21728 \begin_layout Plain Layout
21729 teal
21730 \end_layout
21731
21732 \end_inset
21733
21734
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739 violet
21740 \end_layout
21741
21742 \end_inset
21743
21744 ]
21745 \end_layout
21746
21747 \begin_layout Description
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 Family
21753 \end_layout
21754
21755 \end_inset
21756
21757  [
21758 \begin_inset Flex Code
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762
21763 \emph on
21764 Roman
21765 \end_layout
21766
21767 \end_inset
21768
21769
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 Sans
21775 \end_layout
21776
21777 \end_inset
21778
21779
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784 Typewriter
21785 \end_layout
21786
21787 \end_inset
21788
21789 ]
21790 \end_layout
21791
21792 \begin_layout Description
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 Misc
21798 \end_layout
21799
21800 \end_inset
21801
21802  [
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807 string
21808 \end_layout
21809
21810 \end_inset
21811
21812 ] Valid arguments are: 
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 emph
21818 \end_layout
21819
21820 \end_inset
21821
21822
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 noun
21828 \end_layout
21829
21830 \end_inset
21831
21832
21833 \begin_inset Flex Code
21834 status collapsed
21835
21836 \begin_layout Plain Layout
21837 strikeout
21838 \end_layout
21839
21840 \end_inset
21841
21842
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 underbar
21848 \end_layout
21849
21850 \end_inset
21851
21852
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 uuline
21858 \end_layout
21859
21860 \end_inset
21861
21862
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 uwave
21868 \end_layout
21869
21870 \end_inset
21871
21872
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 no_emph
21878 \end_layout
21879
21880 \end_inset
21881
21882
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 no_noun
21888 \end_layout
21889
21890 \end_inset
21891
21892
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897 no_strikeout
21898 \end_layout
21899
21900 \end_inset
21901
21902
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 no_bar
21908 \end_layout
21909
21910 \end_inset
21911
21912
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 no_uuline
21918 \end_layout
21919
21920 \end_inset
21921
21922  and 
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 no_uwave
21928 \end_layout
21929
21930 \end_inset
21931
21932 .
21933  Each of these turns on or off the corresponding attribute.
21934  For example, 
21935 \begin_inset Flex Code
21936 status collapsed
21937
21938 \begin_layout Plain Layout
21939 emph
21940 \end_layout
21941
21942 \end_inset
21943
21944  turns on emphasis, and 
21945 \begin_inset Flex Code
21946 status collapsed
21947
21948 \begin_layout Plain Layout
21949 no_emph
21950 \end_layout
21951
21952 \end_inset
21953
21954  turns it off.
21955  
21956 \begin_inset Newline newline
21957 \end_inset
21958
21959 If the latter seems puzzling, remember that the font settings for the present
21960  context are generally inherited from the surrounding context.
21961  So 
21962 \begin_inset Flex Code
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966 no_emph
21967 \end_layout
21968
21969 \end_inset
21970
21971  would turn off the emphasis that was anyway in effect, say, in a theorem
21972  environment.
21973 \end_layout
21974
21975 \begin_layout Description
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 Series
21981 \end_layout
21982
21983 \end_inset
21984
21985  [
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990
21991 \emph on
21992 Medium
21993 \end_layout
21994
21995 \end_inset
21996
21997
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002 Bold
22003 \end_layout
22004
22005 \end_inset
22006
22007
22008 \end_layout
22009
22010 \begin_layout Description
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 Shape
22016 \end_layout
22017
22018 \end_inset
22019
22020  [
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025
22026 \emph on
22027 Up
22028 \end_layout
22029
22030 \end_inset
22031
22032
22033 \begin_inset Flex Code
22034 status collapsed
22035
22036 \begin_layout Plain Layout
22037 Italic
22038 \end_layout
22039
22040 \end_inset
22041
22042
22043 \begin_inset Flex Code
22044 status collapsed
22045
22046 \begin_layout Plain Layout
22047 SmallCaps
22048 \end_layout
22049
22050 \end_inset
22051
22052
22053 \begin_inset Flex Code
22054 status collapsed
22055
22056 \begin_layout Plain Layout
22057 Slanted
22058 \end_layout
22059
22060 \end_inset
22061
22062
22063 \end_layout
22064
22065 \begin_layout Description
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 Size
22071 \end_layout
22072
22073 \end_inset
22074
22075  [
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 tiny
22081 \end_layout
22082
22083 \end_inset
22084
22085
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 small
22091 \end_layout
22092
22093 \end_inset
22094
22095
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100
22101 \emph on
22102 normal
22103 \end_layout
22104
22105 \end_inset
22106
22107
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 large
22113 \end_layout
22114
22115 \end_inset
22116
22117
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 larger
22123 \end_layout
22124
22125 \end_inset
22126
22127
22128 \begin_inset Flex Code
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 largest
22133 \end_layout
22134
22135 \end_inset
22136
22137
22138 \begin_inset Flex Code
22139 status collapsed
22140
22141 \begin_layout Plain Layout
22142 huge
22143 \end_layout
22144
22145 \end_inset
22146
22147
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 giant
22153 \end_layout
22154
22155 \end_inset
22156
22157 ]
22158 \end_layout
22159
22160 \begin_layout Subsection
22161 \begin_inset CommandInset label
22162 LatexCommand label
22163 name "subsec:Citation-engine-description"
22164
22165 \end_inset
22166
22167 Cite engine description
22168 \end_layout
22169
22170 \begin_layout Standard
22171 The 
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 CiteEngine
22177 \end_layout
22178
22179 \end_inset
22180
22181  blocks, as used mainly in cite engine files (see 
22182 \begin_inset CommandInset ref
22183 LatexCommand ref
22184 reference "subsec:Cite-Engine-Files"
22185 plural "false"
22186 caps "false"
22187 noprefix "false"
22188
22189 \end_inset
22190
22191 ), define the citation commands provided by a specific 
22192 \begin_inset Quotes eld
22193 \end_inset
22194
22195 cite engine
22196 \begin_inset Quotes erd
22197 \end_inset
22198
22199 .
22200  A cite engine, in \SpecialChar LyX
22201  terms, is way specific way to format citations, using
22202  numbers, author names and/or years.
22203  Currently, \SpecialChar LyX
22204  supports three such engine types, namely:
22205 \end_layout
22206
22207 \begin_layout Enumerate
22208 \begin_inset Flex Code
22209 status collapsed
22210
22211 \begin_layout Plain Layout
22212 default
22213 \end_layout
22214
22215 \end_inset
22216
22217 : the default Bib\SpecialChar TeX
22218  way to format citations, a simple numeric style (e.
22219 \begin_inset space \thinspace{}
22220 \end_inset
22221
22222 g., 
22223 \begin_inset Quotes eld
22224 \end_inset
22225
22226 [1]
22227 \begin_inset Quotes erd
22228 \end_inset
22229
22230 )
22231 \end_layout
22232
22233 \begin_layout Enumerate
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 authoryear
22239 \end_layout
22240
22241 \end_inset
22242
22243 : Harvard-styled citations using author names and publication year (e.
22244 \begin_inset space \thinspace{}
22245 \end_inset
22246
22247 g., 
22248 \begin_inset Quotes eld
22249 \end_inset
22250
22251 Smith and Miller (2017b)
22252 \begin_inset Quotes erd
22253 \end_inset
22254
22255 )
22256 \end_layout
22257
22258 \begin_layout Enumerate
22259 \begin_inset Flex Code
22260 status collapsed
22261
22262 \begin_layout Plain Layout
22263 numerical
22264 \end_layout
22265
22266 \end_inset
22267
22268 : extended numerical citations that also allow for author or title next
22269  to the number (e.
22270 \begin_inset space \thinspace{}
22271 \end_inset
22272
22273 g., 
22274 \begin_inset Quotes eld
22275 \end_inset
22276
22277 Smith and Miller [1]
22278 \begin_inset Quotes erd
22279 \end_inset
22280
22281 )
22282 \end_layout
22283
22284 \begin_layout Standard
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289 CiteEngine
22290 \end_layout
22291
22292 \end_inset
22293
22294  blocks look like this:
22295 \end_layout
22296
22297 \begin_layout LyX-Code
22298 CiteEngine default
22299 \end_layout
22300
22301 \begin_layout LyX-Code
22302  cite
22303 \end_layout
22304
22305 \begin_layout LyX-Code
22306  Citep*[][]
22307 \end_layout
22308
22309 \begin_layout LyX-Code
22310  citeyearpar[][]=parencite*
22311 \end_layout
22312
22313 \begin_layout LyX-Code
22314  ...
22315 \end_layout
22316
22317 \begin_layout LyX-Code
22318 End
22319 \end_layout
22320
22321 \begin_layout Standard
22322 The tag following 
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 CiteEngine
22328 \end_layout
22329
22330 \end_inset
22331
22332  denotes the engine.
22333  The individual lines respectively define a cite command or cite command
22334  paradigm supported by this engine.
22335  The line can be as simple as a cite command that is used both to name the
22336  respective \SpecialChar LyX
22337  command and the \SpecialChar LaTeX
22338  output or more complex in order to differentiate
22339  things.
22340  The full syntax is:
22341 \end_layout
22342
22343 \begin_layout LyX-Code
22344 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22345 \end_layout
22346
22347 \begin_layout Itemize
22348 \begin_inset Flex Code
22349 status collapsed
22350
22351 \begin_layout Plain Layout
22352 LyXName
22353 \end_layout
22354
22355 \end_inset
22356
22357 : The name as used in the 
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 *.lyx
22363 \end_layout
22364
22365 \end_inset
22366
22367  file.
22368 \end_layout
22369
22370 \begin_deeper
22371 \begin_layout Standard
22372 For portability reasons, we try to use the same name for same-formatted
22373  commands in different cite packages (thus many names stem from natbib,
22374  and thus we need to differentiate a 
22375 \begin_inset Flex Code
22376 status collapsed
22377
22378 \begin_layout Plain Layout
22379 latexcmd
22380 \end_layout
22381
22382 \end_inset
22383
22384  sometimes, if the \SpecialChar LaTeX
22385  command names differ).
22386 \end_layout
22387
22388 \end_deeper
22389 \begin_layout Itemize
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 alias
22395 \end_layout
22396
22397 \end_inset
22398
22399 : a (comma-separated) list of commands that fall back to the given 
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404 LyXName
22405 \end_layout
22406
22407 \end_inset
22408
22409  in the current engine.
22410  This eases the switch of citation packages and engines.
22411  The 
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 alias
22417 \end_layout
22418
22419 \end_inset
22420
22421  can be compared to 
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426 ObsoletedBy
22427 \end_layout
22428
22429 \end_inset
22430
22431  in layout definitions.
22432 \end_layout
22433
22434 \begin_layout Itemize
22435 \begin_inset Flex Code
22436 status collapsed
22437
22438 \begin_layout Plain Layout
22439 latexcmd
22440 \end_layout
22441
22442 \end_inset
22443
22444 : The actual \SpecialChar LaTeX
22445  command that is output.
22446  
22447 \end_layout
22448
22449 \begin_layout Standard
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 Alias
22455 \end_layout
22456
22457 \end_inset
22458
22459  and 
22460 \begin_inset Flex Code
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 latexcmd
22465 \end_layout
22466
22467 \end_inset
22468
22469  are optional.
22470  If no 
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 latexcmd
22476 \end_layout
22477
22478 \end_inset
22479
22480  is given, the 
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 LyXName
22486 \end_layout
22487
22488 \end_inset
22489
22490  will be output to \SpecialChar LaTeX
22491 .
22492 \end_layout
22493
22494 \begin_layout Standard
22495 Note further:
22496 \end_layout
22497
22498 \begin_layout Itemize
22499 Capitalization indicates that the command also has a capitalized form (
22500 \begin_inset Flex Code
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504
22505 \backslash
22506 Latexcmd
22507 \end_layout
22508
22509 \end_inset
22510
22511  vs.
22512  
22513 \begin_inset Flex Code
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517
22518 \backslash
22519 latexcmd
22520 \end_layout
22521
22522 \end_inset
22523
22524 ).
22525  These usually enforce up-casing of name prefixes (
22526 \emph on
22527 von Goethe
22528 \emph default
22529  
22530 \begin_inset Formula $\Rightarrow$
22531 \end_inset
22532
22533  
22534 \emph on
22535 Von Goethe
22536 \emph default
22537 ).
22538 \end_layout
22539
22540 \begin_layout Itemize
22541 Brackets 
22542 \begin_inset Flex Code
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 []
22547 \end_layout
22548
22549 \end_inset
22550
22551  indicate the number of optional arguments (there can be 0–2).
22552 \end_layout
22553
22554 \begin_layout Itemize
22555 A star 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 *
22561 \end_layout
22562
22563 \end_inset
22564
22565  indicates there is a starred version of the command (
22566 \begin_inset Flex Code
22567 status collapsed
22568
22569 \begin_layout Plain Layout
22570
22571 \backslash
22572 latexcmd*
22573 \end_layout
22574
22575 \end_inset
22576
22577  vs.
22578  
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583
22584 \backslash
22585 latexcmd
22586 \end_layout
22587
22588 \end_inset
22589
22590 ).
22591  
22592 \end_layout
22593
22594 \begin_deeper
22595 \begin_layout Standard
22596 By default, the starred version means: Output all authors even if it should
22597  be shortened with 
22598 \begin_inset Quotes eld
22599 \end_inset
22600
22601 et al.
22602 \begin_inset Quotes erd
22603 \end_inset
22604
22605  due to the 
22606 \begin_inset Flex Code
22607 status collapsed
22608
22609 \begin_layout Plain Layout
22610 MaxCiteNames
22611 \end_layout
22612
22613 \end_inset
22614
22615  threshold.
22616 \end_layout
22617
22618 \begin_layout Standard
22619 If the star has a different meaning for a given command, it can be specified
22620  in angle brackets: 
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 <!_stardesc!_stardesctooltip>
22626 \end_layout
22627
22628 \end_inset
22629
22630 .
22631  Maximal two translatable macro keywords, marked by the prefix 
22632 \begin_inset Flex Code
22633 status collapsed
22634
22635 \begin_layout Plain Layout
22636 !_
22637 \end_layout
22638
22639 \end_inset
22640
22641 , can be given.
22642  The first points to the string that replaces the 
22643 \begin_inset Quotes eld
22644 \end_inset
22645
22646 Full aut&hor list
22647 \begin_inset Quotes erd
22648 \end_inset
22649
22650  checkbox label in the citation dialog, the second one to an optional tool
22651  tip for this checkbox.
22652  
22653 \end_layout
22654
22655 \begin_layout Standard
22656 Note that these two macros have to be defined in a 
22657 \begin_inset Flex Code
22658 status collapsed
22659
22660 \begin_layout Plain Layout
22661 CiteFormat
22662 \end_layout
22663
22664 \end_inset
22665
22666  (see next section), dropping the 
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671 !
22672 \end_layout
22673
22674 \end_inset
22675
22676  from the prefix, like this: 
22677 \end_layout
22678
22679 \begin_layout LyX-Code
22680 _stardesc Sta&rred command label
22681 \end_layout
22682
22683 \begin_layout LyX-Code
22684 _stardesctooltip Tooltip for the starred command checkbox.
22685 \end_layout
22686
22687 \end_deeper
22688 \begin_layout Itemize
22689 A dollar sign 
22690 \begin_inset Flex Code
22691 status collapsed
22692
22693 \begin_layout Plain Layout
22694 $
22695 \end_layout
22696
22697 \end_inset
22698
22699  indicates that this command features 
22700 \begin_inset Quotes eld
22701 \end_inset
22702
22703 qualified citation lists
22704 \begin_inset Quotes erd
22705 \end_inset
22706
22707 .
22708  This is a 
22709 \family sans
22710 Biblatex
22711 \family default
22712 -specific feature for multi-reference citations where an individual pre-
22713  and postnote can be given to each reference in the list.
22714  Please refer to the 
22715 \family sans
22716 Biblatex
22717 \family default
22718  manual for details.
22719 \change_inserted -712698321 1526898670
22720
22721 \end_layout
22722
22723 \begin_layout Standard
22724
22725 \change_inserted -712698321 1526899524
22726 If you want to add a cite command to a cite engine (e.
22727 \begin_inset space \thinspace{}
22728 \end_inset
22729
22730 g., add a specific command provided by a class), you can use 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735
22736 \change_inserted -712698321 1526898768
22737 AddToCiteEngine <engine type> \SpecialChar ldots
22738  End
22739 \change_unchanged
22740
22741 \end_layout
22742
22743 \end_inset
22744
22745 .
22746  Note that only cite commands that do not exist yet are added.
22747 \change_unchanged
22748
22749 \end_layout
22750
22751 \begin_layout Subsection
22752 \begin_inset CommandInset label
22753 LatexCommand label
22754 name "subsec:Citation-format-description"
22755
22756 \end_inset
22757
22758 Cite format description
22759 \end_layout
22760
22761 \begin_layout Standard
22762 The 
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 CiteFormat
22768 \end_layout
22769
22770 \end_inset
22771
22772  blocks are used to describe how bibliographic information should be displayed,
22773  both within \SpecialChar LyX
22774  itself (in the citation dialog and in tooltips, for example)
22775  and in XHTML output.
22776  Such a block might look like this:
22777 \end_layout
22778
22779 \begin_layout LyX-Code
22780 CiteFormat
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784  article ...
22785 \end_layout
22786
22787 \begin_layout LyX-Code
22788  book ...
22789 \end_layout
22790
22791 \begin_layout LyX-Code
22792 End
22793 \end_layout
22794
22795 \begin_layout Standard
22796 or
22797 \end_layout
22798
22799 \begin_layout LyX-Code
22800 CiteFormat
22801 \end_layout
22802
22803 \begin_layout LyX-Code
22804  cite ...
22805 \end_layout
22806
22807 \begin_layout LyX-Code
22808  citet*[][] ...
22809 \end_layout
22810
22811 \begin_layout LyX-Code
22812 End
22813 \end_layout
22814
22815 \begin_layout Standard
22816 In the first case, the individual lines define how the bibliographic information
22817  associated with an article or book, respectively, is to be displayed, and
22818  such a definition can be given for any 
22819 \begin_inset Quotes els
22820 \end_inset
22821
22822 entry type
22823 \begin_inset Quotes ers
22824 \end_inset
22825
22826  that might be present in a Bib\SpecialChar TeX
22827  file.
22828  \SpecialChar LyX
22829  defines a default format in the source code that will be used if no specific
22830  definition has been given.
22831  \SpecialChar LyX
22832  predefines several formats in the file 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 stdciteformats.inc
22838 \end_layout
22839
22840 \end_inset
22841
22842 , which is included in most of \SpecialChar LyX
22843 's document classes.
22844 \end_layout
22845
22846 \begin_layout Standard
22847 In the second case, the lines define how a specific citation command (in
22848  the example 
22849 \begin_inset Flex Code
22850 status collapsed
22851
22852 \begin_layout Plain Layout
22853
22854 \backslash
22855 cite
22856 \end_layout
22857
22858 \end_inset
22859
22860
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865
22866 \backslash
22867 citet
22868 \end_layout
22869
22870 \end_inset
22871
22872 ) is to be displayed on the citation inset label, in the citation dialog,
22873  menu or XHTML output.
22874  \SpecialChar LyX
22875  defines such formats for the citation style variants it supports via 
22876 \family sans
22877 Document\SpecialChar menuseparator
22878 Setting\SpecialChar menuseparator
22879 Bibliography\SpecialChar ldots
22880
22881 \family default
22882  in specific 
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887 *.citeengine
22888 \end_layout
22889
22890 \end_inset
22891
22892  files that are shipped with \SpecialChar LyX
22893  (see 
22894 \begin_inset CommandInset ref
22895 LatexCommand ref
22896 reference "subsec:Cite-Engine-Files"
22897 plural "false"
22898 caps "false"
22899 noprefix "false"
22900
22901 \end_inset
22902
22903 ).
22904 \end_layout
22905
22906 \begin_layout Standard
22907 The definitions use a simple language that allows Bib\SpecialChar TeX
22908  keys to be replaced
22909  with their values.
22910  Keys should be enclosed in 
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 %
22916 \end_layout
22917
22918 \end_inset
22919
22920  signs, e.g.: 
22921 \begin_inset Flex Code
22922 status collapsed
22923
22924 \begin_layout Plain Layout
22925 %author%
22926 \end_layout
22927
22928 \end_inset
22929
22930 .
22931  So a simple definition might look like this:
22932 \end_layout
22933
22934 \begin_layout LyX-Code
22935 misc %author%, 
22936 \begin_inset Quotes eld
22937 \end_inset
22938
22939 %title%
22940 \begin_inset Quotes erd
22941 \end_inset
22942
22943 .
22944 \end_layout
22945
22946 \begin_layout Standard
22947 This would print the author, followed by a comma, followed by the title,
22948  in quotes, followed by a period.
22949 \end_layout
22950
22951 \begin_layout Standard
22952 Of course, sometimes you may want to print a key only if it exists.
22953  This can be done by using a conditional construction, such as: 
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 {%volume%[[vol.
22959 \begin_inset space ~
22960 \end_inset
22961
22962 %volume%]]}
22963 \end_layout
22964
22965 \end_inset
22966
22967 .
22968  This says: If the 
22969 \begin_inset Flex Code
22970 status collapsed
22971
22972 \begin_layout Plain Layout
22973 volume
22974 \end_layout
22975
22976 \end_inset
22977
22978  key exists, then print 
22979 \begin_inset Quotes eld
22980 \end_inset
22981
22982 vol.
22983 \begin_inset space ~
22984 \end_inset
22985
22986
22987 \begin_inset Quotes erd
22988 \end_inset
22989
22990  followed by the volume key.
22991  It is also possible to have an else clause in the conditional, such as:
22992 \begin_inset Newline newline
22993 \end_inset
22994
22995
22996 \begin_inset Flex Code
22997 status collapsed
22998
22999 \begin_layout Plain Layout
23000 {%author%[[%author%]][[%editor%, ed.]]}
23001 \end_layout
23002
23003 \end_inset
23004
23005 .
23006 \begin_inset Newline newline
23007 \end_inset
23008
23009 Here, the 
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 author
23015 \end_layout
23016
23017 \end_inset
23018
23019  key is printed if it exists; otherwise, the editor key is printed, followed
23020  by 
23021 \begin_inset Quotes eld
23022 \end_inset
23023
23024 ,
23025 \begin_inset space ~
23026 \end_inset
23027
23028 ed.
23029 \begin_inset Quotes erd
23030 \end_inset
23031
23032  Note that the key is again enclosed in 
23033 \begin_inset Flex Code
23034 status collapsed
23035
23036 \begin_layout Plain Layout
23037 %
23038 \end_layout
23039
23040 \end_inset
23041
23042  signs; the entire conditional is enclosed in braces; and the if and else
23043  clauses are enclosed in double brackets, 
23044 \begin_inset Quotes eld
23045 \end_inset
23046
23047
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 [[
23053 \end_layout
23054
23055 \end_inset
23056
23057
23058 \begin_inset Quotes eld
23059 \end_inset
23060
23061  and 
23062 \begin_inset Quotes eld
23063 \end_inset
23064
23065
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 ]]
23071 \end_layout
23072
23073 \end_inset
23074
23075
23076 \begin_inset Quotes erd
23077 \end_inset
23078
23079 .
23080  There must be no space between any of these.
23081 \end_layout
23082
23083 \begin_layout Standard
23084 Next to the entry keys, there are some special keys that can be used for
23085  these conditionals:
23086 \end_layout
23087
23088 \begin_layout Itemize
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 {%dialog%[[true]][[false]]}
23094 \end_layout
23095
23096 \end_inset
23097
23098 : process the 
23099 \begin_inset Quotes eld
23100 \end_inset
23101
23102 true
23103 \begin_inset Quotes erd
23104 \end_inset
23105
23106  part for dialogs and menus, the 
23107 \begin_inset Quotes eld
23108 \end_inset
23109
23110 false
23111 \begin_inset Quotes erd
23112 \end_inset
23113
23114  part for other contexts (workarea, export)
23115 \end_layout
23116
23117 \begin_layout Itemize
23118 \begin_inset Flex Code
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 {%export%[[true]][[false]]}
23123 \end_layout
23124
23125 \end_inset
23126
23127 : process the 
23128 \begin_inset Quotes eld
23129 \end_inset
23130
23131 true
23132 \begin_inset Quotes erd
23133 \end_inset
23134
23135  part for export and menus, the 
23136 \begin_inset Quotes eld
23137 \end_inset
23138
23139 false
23140 \begin_inset Quotes erd
23141 \end_inset
23142
23143  part for other contexts (workarea, dialog)
23144 \end_layout
23145
23146 \begin_layout Itemize
23147 \begin_inset Flex Code
23148 status collapsed
23149
23150 \begin_layout Plain Layout
23151 {%next%[[true]]}
23152 \end_layout
23153
23154 \end_inset
23155
23156 : process the 
23157 \begin_inset Quotes eld
23158 \end_inset
23159
23160 true
23161 \begin_inset Quotes erd
23162 \end_inset
23163
23164  part if another item follows (e.
23165 \begin_inset space \thinspace{}
23166 \end_inset
23167
23168 g., in a citation with multiple keys)
23169 \end_layout
23170
23171 \begin_layout Itemize
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176 {%second%[[true]][[false]]}
23177 \end_layout
23178
23179 \end_inset
23180
23181 : process the 
23182 \begin_inset Quotes eld
23183 \end_inset
23184
23185 true
23186 \begin_inset Quotes erd
23187 \end_inset
23188
23189  if this is the second of multiple items, else the 
23190 \begin_inset Quotes eld
23191 \end_inset
23192
23193 false
23194 \begin_inset Quotes erd
23195 \end_inset
23196
23197  part
23198 \end_layout
23199
23200 \begin_layout Itemize
23201 \begin_inset Flex Code
23202 status collapsed
23203
23204 \begin_layout Plain Layout
23205 {%ifstar%[[true]][[false]]}
23206 \end_layout
23207
23208 \end_inset
23209
23210 : process the 
23211 \begin_inset Quotes eld
23212 \end_inset
23213
23214 true
23215 \begin_inset Quotes erd
23216 \end_inset
23217
23218  part for starred citation commands (such as 
23219 \begin_inset Flex Code
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223
23224 \backslash
23225 cite*
23226 \end_layout
23227
23228 \end_inset
23229
23230 ), the false part for unstarred
23231 \end_layout
23232
23233 \begin_layout Itemize
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 {%ifentrytype:<type>%[[true]][[false]]}
23239 \end_layout
23240
23241 \end_inset
23242
23243 : process the 
23244 \begin_inset Quotes eld
23245 \end_inset
23246
23247 true
23248 \begin_inset Quotes erd
23249 \end_inset
23250
23251  if the current entry type matches 
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256 <type>
23257 \end_layout
23258
23259 \end_inset
23260
23261 , else the false part (e.g., in a citation definition: 
23262 \begin_inset Flex Code
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23267 \end_layout
23268
23269 \end_inset
23270
23271 )
23272 \end_layout
23273
23274 \begin_layout Itemize
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 {%ifmultiple:<authortype>%[[true]][[false]]}
23280 \end_layout
23281
23282 \end_inset
23283
23284 : process the 
23285 \begin_inset Quotes eld
23286 \end_inset
23287
23288 true
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292  if the current author type (author, editor etc.) has multiple authors, else
23293  the false part (e.g., in a bibliography definition: 
23294 \begin_inset Flex Code
23295 status collapsed
23296
23297 \begin_layout Plain Layout
23298 {%ifmultiple:editor%[[eds.]][[ed.]]}
23299 \end_layout
23300
23301 \end_inset
23302
23303 )
23304 \end_layout
23305
23306 \begin_layout Itemize
23307 \begin_inset Flex Code
23308 status collapsed
23309
23310 \begin_layout Plain Layout
23311 {%ifqualified%[[true]][[false]]}
23312 \end_layout
23313
23314 \end_inset
23315
23316 : process the 
23317 \begin_inset Quotes eld
23318 \end_inset
23319
23320 true
23321 \begin_inset Quotes erd
23322 \end_inset
23323
23324  part if the current citation is a qualified citation list (a specific 
23325 \family sans
23326 Biblatex
23327 \family default
23328  format for multi-reference citations), the false part if this is not the
23329  case.
23330 \end_layout
23331
23332 \begin_layout Standard
23333 We said that 
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338 %author%
23339 \end_layout
23340
23341 \end_inset
23342
23343  prints the author key as it is recorded in the bibliography file.
23344  This might not be what you want, since it will result in a string such
23345  as 
23346 \begin_inset Quotes eld
23347 \end_inset
23348
23349 Miller, Peter and Smith, Mary and White, Jane
23350 \begin_inset Quotes erd
23351 \end_inset
23352
23353  (since 
23354 \begin_inset Quotes eld
23355 \end_inset
23356
23357 and
23358 \begin_inset Quotes erd
23359 \end_inset
23360
23361  is used by Bib\SpecialChar TeX
23362  to delimit authors).
23363  \SpecialChar LyX
23364  therefore provides some methods to get properly formatted name lists (which
23365  will also get translated).
23366  The following keys are provided:
23367 \end_layout
23368
23369 \begin_layout Enumerate
23370 For name lists with pre- and surname, suitable for the main authors/editors
23371  of a bibliography item.
23372  The 
23373 \begin_inset Flex Code
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377 <nametype>
23378 \end_layout
23379
23380 \end_inset
23381
23382  part denotes the kind of list that is requested (e.g.
23383  
23384 \begin_inset Flex Code
23385 status collapsed
23386
23387 \begin_layout Plain Layout
23388 <nametype:author>
23389 \end_layout
23390
23391 \end_inset
23392
23393 ):
23394 \end_layout
23395
23396 \begin_deeper
23397 \begin_layout Itemize
23398 \begin_inset Flex Code
23399 status collapsed
23400
23401 \begin_layout Plain Layout
23402 %abbrvnames:<nametype>%
23403 \end_layout
23404
23405 \end_inset
23406
23407 : Provides a name list which is abbreviated (with 
23408 \begin_inset Quotes eld
23409 \end_inset
23410
23411 et al.
23412 \begin_inset Quotes erd
23413 \end_inset
23414
23415 ) when 
23416 \begin_inset Flex Code
23417 status collapsed
23418
23419 \begin_layout Plain Layout
23420 MaxCiteNames
23421 \end_layout
23422
23423 \end_inset
23424
23425  is reached.
23426 \end_layout
23427
23428 \begin_layout Itemize
23429 \begin_inset Flex Code
23430 status collapsed
23431
23432 \begin_layout Plain Layout
23433 %fullnames:<nametype>%
23434 \end_layout
23435
23436 \end_inset
23437
23438 : Provides a full name list (never abbreviated with 
23439 \begin_inset Quotes eld
23440 \end_inset
23441
23442 et al.
23443 \begin_inset Quotes erd
23444 \end_inset
23445
23446 ).
23447 \end_layout
23448
23449 \begin_layout Itemize
23450 \begin_inset Flex Code
23451 status collapsed
23452
23453 \begin_layout Plain Layout
23454 %forceabbrvnames:<nametype>%
23455 \end_layout
23456
23457 \end_inset
23458
23459 : Provides a name list which is always abbreviated (with 
23460 \begin_inset Quotes eld
23461 \end_inset
23462
23463 et al.
23464 \begin_inset Quotes erd
23465 \end_inset
23466
23467 ) irrespective of 
23468 \begin_inset Flex Code
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 MaxCiteNames
23473 \end_layout
23474
23475 \end_inset
23476
23477 .
23478 \end_layout
23479
23480 \end_deeper
23481 \begin_layout Enumerate
23482 Alternative name lists with pre- and surname, if the order of pre- and surname
23483  inside the bibliography item differs (as in: 
23484 \begin_inset Quotes eld
23485 \end_inset
23486
23487 Miller, John: Some text, in: Mary Smith, ed.: A volume
23488 \begin_inset Quotes erd
23489 \end_inset
23490
23491 ):
23492 \end_layout
23493
23494 \begin_deeper
23495 \begin_layout Itemize
23496 \begin_inset Flex Code
23497 status collapsed
23498
23499 \begin_layout Plain Layout
23500 %abbrvbynames:<nametype>%
23501 \end_layout
23502
23503 \end_inset
23504
23505 : Provides a name list which is abbreviated (with 
23506 \begin_inset Quotes eld
23507 \end_inset
23508
23509 et al.
23510 \begin_inset Quotes erd
23511 \end_inset
23512
23513 ) when 
23514 \begin_inset Flex Code
23515 status collapsed
23516
23517 \begin_layout Plain Layout
23518 MaxCiteNames
23519 \end_layout
23520
23521 \end_inset
23522
23523  is reached.
23524 \end_layout
23525
23526 \begin_layout Itemize
23527 \begin_inset Flex Code
23528 status collapsed
23529
23530 \begin_layout Plain Layout
23531 %fullbynames:<nametype>%
23532 \end_layout
23533
23534 \end_inset
23535
23536 : Provides a full name list (never abbreviated with 
23537 \begin_inset Quotes eld
23538 \end_inset
23539
23540 et al.
23541 \begin_inset Quotes erd
23542 \end_inset
23543
23544 ).
23545 \end_layout
23546
23547 \begin_layout Itemize
23548 \begin_inset Flex Code
23549 status collapsed
23550
23551 \begin_layout Plain Layout
23552 %forceabbrvbynames:<nametype>%
23553 \end_layout
23554
23555 \end_inset
23556
23557 : Provides a name list which is always abbreviated (with 
23558 \begin_inset Quotes eld
23559 \end_inset
23560
23561 et al.
23562 \begin_inset Quotes erd
23563 \end_inset
23564
23565 ) irrespective of 
23566 \begin_inset Flex Code
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570 MaxCiteNames
23571 \end_layout
23572
23573 \end_inset
23574
23575 .
23576 \end_layout
23577
23578 \end_deeper
23579 \begin_layout Enumerate
23580 And finally name lists which consist of family names only, as used in author-yea
23581 r citation labels.
23582  These do not take a 
23583 \begin_inset Flex Code
23584 status collapsed
23585
23586 \begin_layout Plain Layout
23587 <nametype>
23588 \end_layout
23589
23590 \end_inset
23591
23592  part, but always return either an author list or, if this does not exist,
23593  an editor list (as common in author-year labels):
23594 \end_layout
23595
23596 \begin_deeper
23597 \begin_layout Itemize
23598 \begin_inset Flex Code
23599 status collapsed
23600
23601 \begin_layout Plain Layout
23602 %abbrvciteauthor%
23603 \end_layout
23604
23605 \end_inset
23606
23607 : Provides a name list which is abbreviated (with 
23608 \begin_inset Quotes eld
23609 \end_inset
23610
23611 et al.
23612 \begin_inset Quotes erd
23613 \end_inset
23614
23615 ) when 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 MaxCiteNames
23621 \end_layout
23622
23623 \end_inset
23624
23625  is reached.
23626 \end_layout
23627
23628 \begin_layout Itemize
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 %fullciteauthor%
23634 \end_layout
23635
23636 \end_inset
23637
23638 : Provides a full name list (never abbreviated with 
23639 \begin_inset Quotes eld
23640 \end_inset
23641
23642 et al.
23643 \begin_inset Quotes erd
23644 \end_inset
23645
23646 ).
23647 \end_layout
23648
23649 \begin_layout Itemize
23650 \begin_inset Flex Code
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654 %forceabbrvciteauthor%
23655 \end_layout
23656
23657 \end_inset
23658
23659 : Provides a name list which is always abbreviated (with 
23660 \begin_inset Quotes eld
23661 \end_inset
23662
23663 et al.
23664 \begin_inset Quotes erd
23665 \end_inset
23666
23667 ) irrespective of 
23668 \begin_inset Flex Code
23669 status collapsed
23670
23671 \begin_layout Plain Layout
23672 MaxCiteNames
23673 \end_layout
23674
23675 \end_inset
23676
23677 .
23678 \end_layout
23679
23680 \end_deeper
23681 \begin_layout Standard
23682 The order of pre- and surname in the former two lists can be adjusted by
23683  these macros:
23684 \end_layout
23685
23686 \begin_layout Itemize
23687 \begin_inset Flex Code
23688 status collapsed
23689
23690 \begin_layout Plain Layout
23691 !firstnameform %surname%, %prename%
23692 \end_layout
23693
23694 \end_inset
23695
23696  (first author in lists of type 1)
23697 \end_layout
23698
23699 \begin_layout Itemize
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 !othernameform %surname%, %prename%
23705 \end_layout
23706
23707 \end_inset
23708
23709  (other authors in lists of type 1)
23710 \end_layout
23711
23712 \begin_layout Itemize
23713 \begin_inset Flex Code
23714 status collapsed
23715
23716 \begin_layout Plain Layout
23717 !firstbynameform %prename% %surname%
23718 \end_layout
23719
23720 \end_inset
23721
23722  (first author in lists of type 2)
23723 \end_layout
23724
23725 \begin_layout Itemize
23726 \begin_inset Flex Code
23727 status collapsed
23728
23729 \begin_layout Plain Layout
23730 !otherbynameform %prename% %surname%
23731 \end_layout
23732
23733 \end_inset
23734
23735  (other authors in lists of type 2)
23736 \end_layout
23737
23738 \begin_layout Standard
23739 This allows you to configure namings like 
23740 \begin_inset Quotes eld
23741 \end_inset
23742
23743 Miller, Peter and Mary Smith: \SpecialChar ldots
23744 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23745
23746 \begin_inset Quotes erd
23747 \end_inset
23748
23749 .
23750 \end_layout
23751
23752 \begin_layout Standard
23753 There is one other piece of syntax available in definitions, which looks
23754  like this: 
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 {!<i>!}
23760 \end_layout
23761
23762 \end_inset
23763
23764 .
23765  This defines a piece of formatting information that is to be used when
23766  creating 
23767 \begin_inset Quotes eld
23768 \end_inset
23769
23770 rich text
23771 \begin_inset Quotes erd
23772 \end_inset
23773
23774 .
23775  Obviously, we do not want to output HTML tags when writing plain text,
23776  so they should be wrapped in 
23777 \begin_inset Quotes eld
23778 \end_inset
23779
23780 {!
23781 \begin_inset Quotes erd
23782 \end_inset
23783
23784  and 
23785 \begin_inset Quotes eld
23786 \end_inset
23787
23788 !}
23789 \begin_inset Quotes erd
23790 \end_inset
23791
23792 .
23793 \end_layout
23794
23795 \begin_layout Standard
23796 Two special sorts of definitions are also possible in a 
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 CiteFormat
23802 \end_layout
23803
23804 \end_inset
23805
23806  block.
23807  An example of the first would be:
23808 \end_layout
23809
23810 \begin_layout LyX-Code
23811 !quotetitle 
23812 \begin_inset Quotes eld
23813 \end_inset
23814
23815 %title%
23816 \begin_inset Quotes erd
23817 \end_inset
23818
23819
23820 \end_layout
23821
23822 \begin_layout Standard
23823 This is an abbreviation, or macro, and it can be used by treating it as
23824  if it were a key: 
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 %!quotetitle%
23830 \end_layout
23831
23832 \end_inset
23833
23834 .
23835  \SpecialChar LyX
23836  will treat 
23837 \begin_inset Flex Code
23838 status collapsed
23839
23840 \begin_layout Plain Layout
23841 %!quotetitle%
23842 \end_layout
23843
23844 \end_inset
23845
23846  exactly as it would treat its definition.
23847  So, let us issue the obvious 
23848 \emph on
23849 warning
23850 \emph default
23851 .
23852  Do not do this:
23853 \end_layout
23854
23855 \begin_layout LyX-Code
23856 !funfun %funfun%
23857 \end_layout
23858
23859 \begin_layout Standard
23860 or anything like it.
23861  \SpecialChar LyX
23862  shouldn't go into an infinite loop, but it may go into a long one before
23863  it gives up.
23864 \end_layout
23865
23866 \begin_layout Standard
23867 The second sort of special definition might look like this:
23868 \end_layout
23869
23870 \begin_layout LyX-Code
23871 B_pptext pp.
23872 \end_layout
23873
23874 \begin_layout Standard
23875 This defines a translatable piece of text, which allows relevant parts of
23876  the bibliography or citation to be translated.
23877  It can be included in a definition by treating it as a key: 
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882 %B_pptext%
23883 \end_layout
23884
23885 \end_inset
23886
23887 .
23888  Note that there are two different translation paths: All definitions starting
23889  with 
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 B_
23895 \end_layout
23896
23897 \end_inset
23898
23899 , such as in the example above, will be translated to the currently active
23900  buffer language (so the translation will match the generated document).
23901  All definitions starting with underscore only will be translated to the
23902  GUI language.
23903  This is the proper translation for strings that only occur in the dialogs
23904  or on buttons, such as this one:
23905 \end_layout
23906
23907 \begin_layout LyX-Code
23908 _addtobib Add to bibliography only.
23909 \end_layout
23910
23911 \begin_layout Standard
23912 Several of these translatable strings are predefined in 
23913 \begin_inset Flex Code
23914 status collapsed
23915
23916 \begin_layout Plain Layout
23917 stdciteformats.inc
23918 \end_layout
23919
23920 \end_inset
23921
23922  and the diverse 
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 *.citeengine
23928 \end_layout
23929
23930 \end_inset
23931
23932  files.
23933  Note that these are not macros, in the sense just defined.
23934  They will not be expanded.
23935 \end_layout
23936
23937 \begin_layout Standard
23938 So here then is an example that uses several of these features:
23939 \begin_inset VSpace defskip
23940 \end_inset
23941
23942
23943 \end_layout
23944
23945 \begin_layout Standard
23946 \noindent
23947
23948 \family sans
23949 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23950 \end_layout
23951
23952 \begin_layout Standard
23953 \begin_inset VSpace defskip
23954 \end_inset
23955
23956 This defines a macro that prints the author, followed by a comma, if the
23957  
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 author
23963 \end_layout
23964
23965 \end_inset
23966
23967  key is defined, or else prints the name of the editor, followed by the
23968  
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 B_edtext
23974 \end_layout
23975
23976 \end_inset
23977
23978  or its translation (it is by default 
23979 \begin_inset Quotes eld
23980 \end_inset
23981
23982 ed.
23983 \begin_inset Quotes erd
23984 \end_inset
23985
23986 ), if the 
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991 editor
23992 \end_layout
23993
23994 \end_inset
23995
23996  key is defined.
23997  Note that this is in fact defined in 
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 stdciteformats.inc
24003 \end_layout
24004
24005 \end_inset
24006
24007 , so you can use it in your own definitions, or re-definitions, if you load
24008  that file first.
24009 \end_layout
24010
24011 \begin_layout Section
24012 \begin_inset CommandInset label
24013 LatexCommand label
24014 name "sec:Tags-for-XHTML"
24015
24016 \end_inset
24017
24018 Tags for XHTML output
24019 \end_layout
24020
24021 \begin_layout Standard
24022 As with \SpecialChar LaTeX
24023  or DocBook, the format of \SpecialChar LyX
24024 's XHTML output is also controlled by
24025  layout information.
24026  In general, \SpecialChar LyX
24027  provides sensible defaults and, as mentioned earlier, it will
24028  even construct default CSS style rules from the other layout tags.
24029  For example, \SpecialChar LyX
24030  will attempt to use the information provided in the 
24031 \begin_inset Flex Code
24032 status collapsed
24033
24034 \begin_layout Plain Layout
24035 Font
24036 \end_layout
24037
24038 \end_inset
24039
24040  declaration for the Chapter style to write CSS that will appropriately
24041  format chapter headings.
24042 \end_layout
24043
24044 \begin_layout Standard
24045 In many cases, then, you may not have to do anything at all to get acceptable
24046  XHTML output for your own environments, custom insets, and so forth.
24047  But in some cases you will, and so \SpecialChar LyX
24048  provides a number of layout tags that
24049  can be used to customize the XHTML and CSS that are generated.
24050 \end_layout
24051
24052 \begin_layout Standard
24053 Note that there are two tags, 
24054 \begin_inset Flex Code
24055 status collapsed
24056
24057 \begin_layout Plain Layout
24058 HTMLPreamble
24059 \end_layout
24060
24061 \end_inset
24062
24063  and 
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068 AddToHTMLPreamble
24069 \end_layout
24070
24071 \end_inset
24072
24073  that may appear outside style and inset declarations.
24074  See 
24075 \begin_inset CommandInset ref
24076 LatexCommand ref
24077 reference "subsec:General-text-class"
24078
24079 \end_inset
24080
24081  for details on these.
24082 \end_layout
24083
24084 \begin_layout Subsection
24085 \begin_inset CommandInset label
24086 LatexCommand label
24087 name "subsec:Paragraph-Style-XHTML"
24088
24089 \end_inset
24090
24091 Paragraph styles
24092 \end_layout
24093
24094 \begin_layout Standard
24095 The sort of XHTML \SpecialChar LyX
24096  outputs for a paragraph depends upon whether we are dealing
24097  with a normal paragraph, a command, or an environment, where this is itself
24098  determined by the contents of the corresponding 
24099 \begin_inset Flex Code
24100 status collapsed
24101
24102 \begin_layout Plain Layout
24103 \SpecialChar LaTeX
24104 Type
24105 \end_layout
24106
24107 \end_inset
24108
24109  tag.
24110  
24111 \end_layout
24112
24113 \begin_layout Standard
24114 For a command or normal paragraph, the output XHTML has the following form:
24115 \end_layout
24116
24117 \begin_layout LyX-Code
24118
24119 \family sans
24120 <tag attr=
24121 \begin_inset Quotes erd
24122 \end_inset
24123
24124 value
24125 \begin_inset Quotes erd
24126 \end_inset
24127
24128 >
24129 \end_layout
24130
24131 \begin_layout LyX-Code
24132
24133 \family sans
24134 <labeltag attr=
24135 \begin_inset Quotes erd
24136 \end_inset
24137
24138 value
24139 \begin_inset Quotes erd
24140 \end_inset
24141
24142 >Label</labeltag>
24143 \end_layout
24144
24145 \begin_layout LyX-Code
24146
24147 \family sans
24148 Contents of the paragraph.
24149 \end_layout
24150
24151 \begin_layout LyX-Code
24152
24153 \family sans
24154 </tag>
24155 \end_layout
24156
24157 \begin_layout Standard
24158 The label tags are of course omitted if the paragraph does not have a label.
24159 \end_layout
24160
24161 \begin_layout Standard
24162 For an environment that is not some sort of list, the XHTML takes this form:
24163 \end_layout
24164
24165 \begin_layout LyX-Code
24166
24167 \family sans
24168 <tag attr=
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172 value
24173 \begin_inset Quotes erd
24174 \end_inset
24175
24176 >
24177 \end_layout
24178
24179 \begin_layout LyX-Code
24180
24181 \family sans
24182 <itemtag attr=
24183 \begin_inset Quotes erd
24184 \end_inset
24185
24186 value
24187 \begin_inset Quotes erd
24188 \end_inset
24189
24190 ><labeltag attr=
24191 \begin_inset Quotes erd
24192 \end_inset
24193
24194 value
24195 \begin_inset Quotes erd
24196 \end_inset
24197
24198 >Environment Label</labeltag>First paragraph.</itemtag>
24199 \end_layout
24200
24201 \begin_layout LyX-Code
24202
24203 \family sans
24204 <itemtag>Second paragraph.</itemtag>
24205 \end_layout
24206
24207 \begin_layout LyX-Code
24208
24209 \family sans
24210 </tag>
24211 \end_layout
24212
24213 \begin_layout Standard
24214 Note that the label is output only for the first paragraph, as it should
24215  be for a theorem, for example.
24216  
24217 \end_layout
24218
24219 \begin_layout Standard
24220 For a list, we have one of these forms:
24221 \end_layout
24222
24223 \begin_layout LyX-Code
24224
24225 \family sans
24226 <tag attr=
24227 \begin_inset Quotes erd
24228 \end_inset
24229
24230 value
24231 \begin_inset Quotes erd
24232 \end_inset
24233
24234 >
24235 \end_layout
24236
24237 \begin_layout LyX-Code
24238
24239 \family sans
24240 <itemtag attr=
24241 \begin_inset Quotes erd
24242 \end_inset
24243
24244 value
24245 \begin_inset Quotes erd
24246 \end_inset
24247
24248 ><labeltag attr=
24249 \begin_inset Quotes erd
24250 \end_inset
24251
24252 value
24253 \begin_inset Quotes erd
24254 \end_inset
24255
24256 >List Label</labeltag>First item.</itemtag>
24257 \end_layout
24258
24259 \begin_layout LyX-Code
24260
24261 \family sans
24262 <itemtag attr=
24263 \begin_inset Quotes erd
24264 \end_inset
24265
24266 value
24267 \begin_inset Quotes erd
24268 \end_inset
24269
24270 ><labeltag attr=
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274 value
24275 \begin_inset Quotes erd
24276 \end_inset
24277
24278 >List Label</labeltag>Second item.</itemtag>
24279 \end_layout
24280
24281 \begin_layout LyX-Code
24282
24283 \family sans
24284 </tag>
24285 \end_layout
24286
24287 \begin_layout LyX-Code
24288
24289 \end_layout
24290
24291 \begin_layout LyX-Code
24292
24293 \family sans
24294 <tag attr=
24295 \begin_inset Quotes erd
24296 \end_inset
24297
24298 value
24299 \begin_inset Quotes erd
24300 \end_inset
24301
24302 >
24303 \end_layout
24304
24305 \begin_layout LyX-Code
24306
24307 \family sans
24308 <labeltag attr=
24309 \begin_inset Quotes erd
24310 \end_inset
24311
24312 value
24313 \begin_inset Quotes erd
24314 \end_inset
24315
24316 >List Label</labeltag><itemtag attr=
24317 \begin_inset Quotes erd
24318 \end_inset
24319
24320 value
24321 \begin_inset Quotes erd
24322 \end_inset
24323
24324 >First item.</itemtag>
24325 \end_layout
24326
24327 \begin_layout LyX-Code
24328
24329 \family sans
24330 <labeltag attr=
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334 value
24335 \begin_inset Quotes erd
24336 \end_inset
24337
24338 >List Label</labeltag><itemtag attr=
24339 \begin_inset Quotes erd
24340 \end_inset
24341
24342 value
24343 \begin_inset Quotes erd
24344 \end_inset
24345
24346 >Second item.</itemtag>
24347 \end_layout
24348
24349 \begin_layout LyX-Code
24350
24351 \family sans
24352 </tag>
24353 \end_layout
24354
24355 \begin_layout Standard
24356 Note the different orders of 
24357 \begin_inset Flex Code
24358 status collapsed
24359
24360 \begin_layout Plain Layout
24361 labeltag
24362 \end_layout
24363
24364 \end_inset
24365
24366  and 
24367 \begin_inset Flex Code
24368 status collapsed
24369
24370 \begin_layout Plain Layout
24371 itemtag
24372 \end_layout
24373
24374 \end_inset
24375
24376 .
24377  Which order we get depends upon the setting of 
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 HTMLLabelFirst
24383 \end_layout
24384
24385 \end_inset
24386
24387 : If 
24388 \begin_inset Flex Code
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 HTMLLabelFirst
24393 \end_layout
24394
24395 \end_inset
24396
24397  is false (the default), you get the first of these, with the label within
24398  the item; if true, you get the second, with the label outside the item.
24399 \end_layout
24400
24401 \begin_layout Standard
24402 The specific tags and attributes output for each paragraph type can be controlle
24403 d by means of the layout tags we are about to describe.
24404  As mentioned earlier, however, \SpecialChar LyX
24405  uses sensible defaults for many of these,
24406  so you often may not need to do very much to get good XHTML output.
24407  Think of the available tags as there so you can tweak things to your liking.
24408 \end_layout
24409
24410 \begin_layout Description
24411 \begin_inset Flex Code
24412 status collapsed
24413
24414 \begin_layout Plain Layout
24415 HTMLAttr
24416 \end_layout
24417
24418 \end_inset
24419
24420  [
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 string
24426 \end_layout
24427
24428 \end_inset
24429
24430 ] Specifies attribute information to be output with the main tag.
24431  For example, 
24432 \begin_inset Quotes eld
24433 \end_inset
24434
24435
24436 \begin_inset Flex Code
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440 class=`mydiv'
24441 \end_layout
24442
24443 \end_inset
24444
24445
24446 \begin_inset Quotes erd
24447 \end_inset
24448
24449 .
24450  By default, \SpecialChar LyX
24451  will output 
24452 \begin_inset Quotes eld
24453 \end_inset
24454
24455
24456 \begin_inset Flex Code
24457 status collapsed
24458
24459 \begin_layout Plain Layout
24460 class=`layoutname'
24461 \end_layout
24462
24463 \end_inset
24464
24465
24466 \begin_inset Quotes erd
24467 \end_inset
24468
24469 , where 
24470 \begin_inset Flex Code
24471 status collapsed
24472
24473 \begin_layout Plain Layout
24474 layoutname
24475 \end_layout
24476
24477 \end_inset
24478
24479  is the \SpecialChar LyX
24480  name of the layout, made lowercase, for example: chapter.
24481  This should 
24482 \emph on
24483 not
24484 \emph default
24485  contain any style information.
24486  Use 
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 HTMLStyle
24492 \end_layout
24493
24494 \end_inset
24495
24496  for that purpose.
24497 \end_layout
24498
24499 \begin_layout Description
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 HTMLForceCSS
24505 \end_layout
24506
24507 \end_inset
24508
24509  [
24510 \begin_inset Flex Code
24511 status collapsed
24512
24513 \begin_layout Plain Layout
24514
24515 \emph on
24516 0
24517 \emph default
24518 ,1
24519 \end_layout
24520
24521 \end_inset
24522
24523 ] Whether to output the default CSS information \SpecialChar LyX
24524  generates for this layout,
24525  even if additional information is explicitly provided via 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 HTMLStyle
24531 \end_layout
24532
24533 \end_inset
24534
24535 .
24536  Setting this to 
24537 \begin_inset Flex Code
24538 status collapsed
24539
24540 \begin_layout Plain Layout
24541 1
24542 \end_layout
24543
24544 \end_inset
24545
24546  allows you to alter or augment the generated CSS, rather than to override
24547  it completely.
24548  Default is 
24549 \begin_inset Flex Code
24550 status collapsed
24551
24552 \begin_layout Plain Layout
24553 0
24554 \end_layout
24555
24556 \end_inset
24557
24558 .
24559 \end_layout
24560
24561 \begin_layout Description
24562 \begin_inset Flex Code
24563 status collapsed
24564
24565 \begin_layout Plain Layout
24566 HTMLItem
24567 \end_layout
24568
24569 \end_inset
24570
24571  [
24572 \begin_inset Flex Code
24573 status collapsed
24574
24575 \begin_layout Plain Layout
24576 string
24577 \end_layout
24578
24579 \end_inset
24580
24581 ] The tag to be used for individual paragraphs of environments, replacing
24582  
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 itemtag
24588 \end_layout
24589
24590 \end_inset
24591
24592  in the examples above.
24593  Defaults to 
24594 \begin_inset Flex Code
24595 status collapsed
24596
24597 \begin_layout Plain Layout
24598 div
24599 \end_layout
24600
24601 \end_inset
24602
24603 .
24604 \end_layout
24605
24606 \begin_layout Description
24607 \begin_inset Flex Code
24608 status collapsed
24609
24610 \begin_layout Plain Layout
24611 HTMLItemAttr
24612 \end_layout
24613
24614 \end_inset
24615
24616  [
24617 \begin_inset Flex Code
24618 status collapsed
24619
24620 \begin_layout Plain Layout
24621 string
24622 \end_layout
24623
24624 \end_inset
24625
24626 ] Attributes for the item tag.
24627  Defaults to
24628 \begin_inset Newline newline
24629 \end_inset
24630
24631
24632 \begin_inset Quotes eld
24633 \end_inset
24634
24635
24636 \begin_inset Flex Code
24637 status collapsed
24638
24639 \begin_layout Plain Layout
24640 class=`layoutname_item'
24641 \end_layout
24642
24643 \end_inset
24644
24645
24646 \begin_inset Quotes erd
24647 \end_inset
24648
24649 .
24650  This should 
24651 \emph on
24652 not
24653 \emph default
24654  contain any style information.
24655  Use 
24656 \begin_inset Flex Code
24657 status collapsed
24658
24659 \begin_layout Plain Layout
24660 HTMLStyle
24661 \end_layout
24662
24663 \end_inset
24664
24665  for that purpose.
24666 \end_layout
24667
24668 \begin_layout Description
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 HTMLLabel
24674 \end_layout
24675
24676 \end_inset
24677
24678  [
24679 \begin_inset Flex Code
24680 status collapsed
24681
24682 \begin_layout Plain Layout
24683 string
24684 \end_layout
24685
24686 \end_inset
24687
24688 ] The tag to be used for paragraph and item labels, replacing 
24689 \begin_inset Flex Code
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693 labeltag
24694 \end_layout
24695
24696 \end_inset
24697
24698  in the examples above.
24699  Defaults to 
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 span
24705 \end_layout
24706
24707 \end_inset
24708
24709 , unless 
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714 LabelType
24715 \end_layout
24716
24717 \end_inset
24718
24719  is either 
24720 \begin_inset Flex Code
24721 status collapsed
24722
24723 \begin_layout Plain Layout
24724 Top_Environment
24725 \end_layout
24726
24727 \end_inset
24728
24729  or 
24730 \begin_inset Flex Code
24731 status collapsed
24732
24733 \begin_layout Plain Layout
24734 Centered_Top_Environment
24735 \end_layout
24736
24737 \end_inset
24738
24739 , in which case it defaults to 
24740 \begin_inset Flex Code
24741 status collapsed
24742
24743 \begin_layout Plain Layout
24744 div
24745 \end_layout
24746
24747 \end_inset
24748
24749 .
24750 \end_layout
24751
24752 \begin_layout Description
24753 \begin_inset Flex Code
24754 status collapsed
24755
24756 \begin_layout Plain Layout
24757 HTMLLabelAttr
24758 \end_layout
24759
24760 \end_inset
24761
24762  [
24763 \begin_inset Flex Code
24764 status collapsed
24765
24766 \begin_layout Plain Layout
24767 string
24768 \end_layout
24769
24770 \end_inset
24771
24772 ] Attributes for the label tag.
24773  Defaults to
24774 \begin_inset Newline newline
24775 \end_inset
24776
24777
24778 \begin_inset Quotes eld
24779 \end_inset
24780
24781
24782 \begin_inset Flex Code
24783 status collapsed
24784
24785 \begin_layout Plain Layout
24786 class=`layoutname_label'
24787 \end_layout
24788
24789 \end_inset
24790
24791
24792 \begin_inset Quotes erd
24793 \end_inset
24794
24795 .
24796  This should 
24797 \emph on
24798 not
24799 \emph default
24800  contain any style information.
24801  Use 
24802 \begin_inset Flex Code
24803 status collapsed
24804
24805 \begin_layout Plain Layout
24806 HTMLStyle
24807 \end_layout
24808
24809 \end_inset
24810
24811  for that purpose.
24812 \end_layout
24813
24814 \begin_layout Description
24815 \begin_inset Flex Code
24816 status collapsed
24817
24818 \begin_layout Plain Layout
24819 HTMLLabelFirst
24820 \end_layout
24821
24822 \end_inset
24823
24824  [
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829
24830 \emph on
24831 0
24832 \emph default
24833 ,1
24834 \end_layout
24835
24836 \end_inset
24837
24838 ] Meaningful only for list-like environments, this tag controls whether
24839  the label tag is output before or inside the item tag.
24840  This is used, for example, in the description environment, where we want
24841  `
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 <dt>\SpecialChar ldots
24847 </dt><dd>\SpecialChar ldots
24848 </dd>
24849 \end_layout
24850
24851 \end_inset
24852
24853 .
24854  Default is 
24855 \begin_inset Flex Code
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859 0
24860 \end_layout
24861
24862 \end_inset
24863
24864 : The label tag is output inside the item tag.
24865 \end_layout
24866
24867 \begin_layout Description
24868 \begin_inset Flex Code
24869 status collapsed
24870
24871 \begin_layout Plain Layout
24872 HTMLPreamble
24873 \end_layout
24874
24875 \end_inset
24876
24877  Information to be output in the 
24878 \begin_inset Flex Code
24879 status collapsed
24880
24881 \begin_layout Plain Layout
24882 <head>
24883 \end_layout
24884
24885 \end_inset
24886
24887  section when this style is used.
24888  This might, for example, be used to include a 
24889 \begin_inset Flex Code
24890 status collapsed
24891
24892 \begin_layout Plain Layout
24893 <script>
24894 \end_layout
24895
24896 \end_inset
24897
24898  block defining an 
24899 \begin_inset Flex Code
24900 status collapsed
24901
24902 \begin_layout Plain Layout
24903 onclick
24904 \end_layout
24905
24906 \end_inset
24907
24908  handler.
24909 \end_layout
24910
24911 \begin_layout Description
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 HTMLStyle
24917 \end_layout
24918
24919 \end_inset
24920
24921  CSS style information to be included when this style is used.
24922  Note that this will automatically be wrapped in a layout-generated 
24923 \begin_inset Flex Code
24924 status collapsed
24925
24926 \begin_layout Plain Layout
24927 <style>
24928 \end_layout
24929
24930 \end_inset
24931
24932  block, so only the CSS itself need be included.
24933  Must end with 
24934 \begin_inset Flex Code
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938 EndHTMLStyle
24939 \end_layout
24940
24941 \end_inset
24942
24943 .
24944 \end_layout
24945
24946 \begin_layout Description
24947 \begin_inset Flex Code
24948 status collapsed
24949
24950 \begin_layout Plain Layout
24951 HTMLTag
24952 \end_layout
24953
24954 \end_inset
24955
24956  [
24957 \begin_inset Flex Code
24958 status collapsed
24959
24960 \begin_layout Plain Layout
24961 string
24962 \end_layout
24963
24964 \end_inset
24965
24966 ] The tag to be used for the main label, replacing 
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971 tag
24972 \end_layout
24973
24974 \end_inset
24975
24976  in the examples above.
24977  Defaults to 
24978 \begin_inset Flex Code
24979 status collapsed
24980
24981 \begin_layout Plain Layout
24982 div
24983 \end_layout
24984
24985 \end_inset
24986
24987 .
24988 \end_layout
24989
24990 \begin_layout Description
24991 \begin_inset Flex Code
24992 status collapsed
24993
24994 \begin_layout Plain Layout
24995 HTMLTitle
24996 \end_layout
24997
24998 \end_inset
24999
25000  [
25001 \begin_inset Flex Code
25002 status collapsed
25003
25004 \begin_layout Plain Layout
25005
25006 \emph on
25007 0
25008 \emph default
25009 ,1
25010 \end_layout
25011
25012 \end_inset
25013
25014 ] Marks this style as the one to be used to generate the 
25015 \begin_inset Flex Code
25016 status collapsed
25017
25018 \begin_layout Plain Layout
25019 <title>
25020 \end_layout
25021
25022 \end_inset
25023
25024  tag for the XHTML file.
25025  By default, it is false.
25026  The 
25027 \begin_inset Flex Code
25028 status collapsed
25029
25030 \begin_layout Plain Layout
25031 stdtitle.inc
25032 \end_layout
25033
25034 \end_inset
25035
25036  file sets it to true for the 
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041 title
25042 \end_layout
25043
25044 \end_inset
25045
25046  environment.
25047  
25048 \end_layout
25049
25050 \begin_layout Subsection
25051 InsetLayout XHTML
25052 \end_layout
25053
25054 \begin_layout Standard
25055 The XHTML output of insets can also be controlled by information in layout
25056  files.
25057 \begin_inset Foot
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061 At present, this is true only for 
25062 \begin_inset Quotes eld
25063 \end_inset
25064
25065 text
25066 \begin_inset Quotes erd
25067 \end_inset
25068
25069  insets (insets you can type into) and is not true for 
25070 \begin_inset Quotes eld
25071 \end_inset
25072
25073 command
25074 \begin_inset Quotes erd
25075 \end_inset
25076
25077  insets (insets that are associated with dialog boxes).
25078 \end_layout
25079
25080 \end_inset
25081
25082  Here, too, \SpecialChar LyX
25083  tries to provide sensible defaults, and it constructs default
25084  CSS style rules.
25085  But everything can be customized.
25086 \end_layout
25087
25088 \begin_layout Standard
25089 The XHTML \SpecialChar LyX
25090  outputs for an inset has the following form:
25091 \end_layout
25092
25093 \begin_layout LyX-Code
25094 <tag attr=
25095 \begin_inset Quotes erd
25096 \end_inset
25097
25098 value
25099 \begin_inset Quotes erd
25100 \end_inset
25101
25102 >
25103 \end_layout
25104
25105 \begin_layout LyX-Code
25106 <labeltag>Label</labeltag>
25107 \end_layout
25108
25109 \begin_layout LyX-Code
25110 <innertag attr=
25111 \begin_inset Quotes erd
25112 \end_inset
25113
25114 value
25115 \begin_inset Quotes erd
25116 \end_inset
25117
25118 >Contents of the inset.</innertag>
25119 \end_layout
25120
25121 \begin_layout LyX-Code
25122 </tag>
25123 \end_layout
25124
25125 \begin_layout Standard
25126 If the inset permits multiple paragraphs—that is, if 
25127 \begin_inset Flex Code
25128 status collapsed
25129
25130 \begin_layout Plain Layout
25131 MultiPar
25132 \end_layout
25133
25134 \end_inset
25135
25136  is true—then the contents of the inset will itself be output as paragraphs
25137  formatted according to the styles used for those paragraphs (standard,
25138  quote, and the like).
25139  The label tag is of course omitted if the paragraph does not have a label
25140  and, at present, is always 
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145 span
25146 \end_layout
25147
25148 \end_inset
25149
25150 .
25151  The inner tag is optional and, by default, does not appear.
25152 \end_layout
25153
25154 \begin_layout Standard
25155 The specific tags and attributes output for each inset can be controlled
25156  by means of the following layout tags.
25157 \end_layout
25158
25159 \begin_layout Description
25160 \begin_inset Flex Code
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164 HTMLAttr
25165 \end_layout
25166
25167 \end_inset
25168
25169  [
25170 \begin_inset Flex Code
25171 status collapsed
25172
25173 \begin_layout Plain Layout
25174 string
25175 \end_layout
25176
25177 \end_inset
25178
25179 ] Specifies attribute information to be output with the main tag.
25180  For example, 
25181 \begin_inset Quotes eld
25182 \end_inset
25183
25184
25185 \begin_inset Flex Code
25186 status collapsed
25187
25188 \begin_layout Plain Layout
25189 class=`myinset' onclick=`\SpecialChar ldots
25190 '
25191 \end_layout
25192
25193 \end_inset
25194
25195
25196 \begin_inset Quotes erd
25197 \end_inset
25198
25199 .
25200  By default, \SpecialChar LyX
25201  will output 
25202 \begin_inset Quotes eld
25203 \end_inset
25204
25205
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 class=`insetname'
25211 \end_layout
25212
25213 \end_inset
25214
25215
25216 \begin_inset Quotes erd
25217 \end_inset
25218
25219 , where 
25220 \begin_inset Flex Code
25221 status collapsed
25222
25223 \begin_layout Plain Layout
25224 insetname
25225 \end_layout
25226
25227 \end_inset
25228
25229  is the \SpecialChar LyX
25230  name of the inset, made lowercase and with non-alphanumeric characters
25231  converted to underscores, for example: footnote.
25232 \end_layout
25233
25234 \begin_layout Description
25235 \begin_inset Flex Code
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 HTMLForceCSS
25240 \end_layout
25241
25242 \end_inset
25243
25244  [
25245 \begin_inset Flex Code
25246 status collapsed
25247
25248 \begin_layout Plain Layout
25249
25250 \emph on
25251 0
25252 \emph default
25253 ,1
25254 \end_layout
25255
25256 \end_inset
25257
25258 ] Whether to output the default CSS information \SpecialChar LyX
25259  generates for this layout,
25260  even if additional information is explicitly provided via 
25261 \begin_inset Flex Code
25262 status collapsed
25263
25264 \begin_layout Plain Layout
25265 HTMLStyle
25266 \end_layout
25267
25268 \end_inset
25269
25270 .
25271  Setting this to 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 1
25277 \end_layout
25278
25279 \end_inset
25280
25281  allows you to alter or augment the generated CSS, rather than to override
25282  it completely.
25283  Default is 0.
25284 \end_layout
25285
25286 \begin_layout Description
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291 HTMLInnerAttr
25292 \end_layout
25293
25294 \end_inset
25295
25296  [
25297 \begin_inset Flex Code
25298 status collapsed
25299
25300 \begin_layout Plain Layout
25301 string
25302 \end_layout
25303
25304 \end_inset
25305
25306 ] Attributes for the inner tag.
25307  Defaults to
25308 \begin_inset Newline newline
25309 \end_inset
25310
25311
25312 \begin_inset Quotes eld
25313 \end_inset
25314
25315
25316 \begin_inset Flex Code
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320 class=`insetname_inner'
25321 \end_layout
25322
25323 \end_inset
25324
25325
25326 \begin_inset Quotes erd
25327 \end_inset
25328
25329 .
25330 \end_layout
25331
25332 \begin_layout Description
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 HTMLInnerTag
25338 \end_layout
25339
25340 \end_inset
25341
25342  [
25343 \begin_inset Flex Code
25344 status collapsed
25345
25346 \begin_layout Plain Layout
25347 string
25348 \end_layout
25349
25350 \end_inset
25351
25352 ] The inner tag, replacing 
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 innertag
25358 \end_layout
25359
25360 \end_inset
25361
25362  in the examples above.
25363  By default, there is none.
25364 \end_layout
25365
25366 \begin_layout Description
25367 \begin_inset Flex Code
25368 status collapsed
25369
25370 \begin_layout Plain Layout
25371 HTMLIsBlock
25372 \end_layout
25373
25374 \end_inset
25375
25376  [
25377 \begin_inset Flex Code
25378 status collapsed
25379
25380 \begin_layout Plain Layout
25381 0,
25382 \emph on
25383 1
25384 \end_layout
25385
25386 \end_inset
25387
25388 ] Whether this inset represents a standalone block of text (such as a footnote)
25389  or instead represents material that is included in the surrounding text
25390  (such as a branch).
25391  Defaults to 1.
25392 \end_layout
25393
25394 \begin_layout Description
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 HTMLLabel
25400 \end_layout
25401
25402 \end_inset
25403
25404  [
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 string
25410 \end_layout
25411
25412 \end_inset
25413
25414 ] A label for this inset, possibly including a reference to a counter.
25415  For example, for footnote, it might be: 
25416 \begin_inset Flex Code
25417 status collapsed
25418
25419 \begin_layout Plain Layout
25420
25421 \backslash
25422 arabic{footnote}
25423 \end_layout
25424
25425 \end_inset
25426
25427 .
25428  This is optional, and there is no default.
25429 \end_layout
25430
25431 \begin_layout Description
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 HTMLPreamble
25437 \end_layout
25438
25439 \end_inset
25440
25441  Information to be output in the 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 <head>
25447 \end_layout
25448
25449 \end_inset
25450
25451  section when this style is used.
25452  This might, for example, be used to include a 
25453 \begin_inset Flex Code
25454 status collapsed
25455
25456 \begin_layout Plain Layout
25457 <script>
25458 \end_layout
25459
25460 \end_inset
25461
25462  block defining an 
25463 \begin_inset Flex Code
25464 status collapsed
25465
25466 \begin_layout Plain Layout
25467 onclick
25468 \end_layout
25469
25470 \end_inset
25471
25472  handler.
25473 \end_layout
25474
25475 \begin_layout Description
25476 \begin_inset Flex Code
25477 status collapsed
25478
25479 \begin_layout Plain Layout
25480 HTMLStyle
25481 \end_layout
25482
25483 \end_inset
25484
25485  CSS style information to be included when this style is used.
25486  Note that this will automatically be wrapped in a layout-generated 
25487 \begin_inset Flex Code
25488 status collapsed
25489
25490 \begin_layout Plain Layout
25491 <style>
25492 \end_layout
25493
25494 \end_inset
25495
25496  block, so only the CSS itself need be included.
25497 \end_layout
25498
25499 \begin_layout Description
25500 \begin_inset Flex Code
25501 status collapsed
25502
25503 \begin_layout Plain Layout
25504 HTMLTag
25505 \end_layout
25506
25507 \end_inset
25508
25509  [
25510 \begin_inset Flex Code
25511 status collapsed
25512
25513 \begin_layout Plain Layout
25514 string
25515 \end_layout
25516
25517 \end_inset
25518
25519 ] The tag to be used for the main label, replacing 
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 tag
25525 \end_layout
25526
25527 \end_inset
25528
25529  in the examples above.
25530  The default depends upon the setting of 
25531 \begin_inset Flex Code
25532 status collapsed
25533
25534 \begin_layout Plain Layout
25535 MultiPar
25536 \end_layout
25537
25538 \end_inset
25539
25540 : If 
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 MultiPar
25546 \end_layout
25547
25548 \end_inset
25549
25550  is true, the default is 
25551 \begin_inset Flex Code
25552 status collapsed
25553
25554 \begin_layout Plain Layout
25555 div
25556 \end_layout
25557
25558 \end_inset
25559
25560 ; if it is false, the default is 
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 span
25566 \end_layout
25567
25568 \end_inset
25569
25570 .
25571 \end_layout
25572
25573 \begin_layout Subsection
25574 Float XHTML
25575 \end_layout
25576
25577 \begin_layout Standard
25578 The XHTML output for floats too can be controlled by layout information.
25579  The output has the following form:
25580 \end_layout
25581
25582 \begin_layout LyX-Code
25583 <tag attr=
25584 \begin_inset Quotes erd
25585 \end_inset
25586
25587 value
25588 \begin_inset Quotes erd
25589 \end_inset
25590
25591 >
25592 \end_layout
25593
25594 \begin_layout LyX-Code
25595 Contents of the float.
25596 \end_layout
25597
25598 \begin_layout LyX-Code
25599 </tag>
25600 \end_layout
25601
25602 \begin_layout Standard
25603 The caption, if there is one, is a separate inset and will be output as
25604  such.
25605  Its appearance can be controlled via the InsetLayout for caption insets.
25606  
25607 \end_layout
25608
25609 \begin_layout Description
25610 \begin_inset Flex Code
25611 status collapsed
25612
25613 \begin_layout Plain Layout
25614 HTMLAttr
25615 \end_layout
25616
25617 \end_inset
25618
25619  [
25620 \begin_inset Flex Code
25621 status collapsed
25622
25623 \begin_layout Plain Layout
25624 string
25625 \end_layout
25626
25627 \end_inset
25628
25629 ] Specifies attribute information to be output with the main tag.
25630  For example, 
25631 \begin_inset Quotes eld
25632 \end_inset
25633
25634
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 class=`myfloat' onclick=`\SpecialChar ldots
25640 '
25641 \end_layout
25642
25643 \end_inset
25644
25645
25646 \begin_inset Quotes erd
25647 \end_inset
25648
25649 .
25650  By default, \SpecialChar LyX
25651  will output 
25652 \begin_inset Quotes eld
25653 \end_inset
25654
25655
25656 \begin_inset Flex Code
25657 status collapsed
25658
25659 \begin_layout Plain Layout
25660 class=`float float-floattype'
25661 \end_layout
25662
25663 \end_inset
25664
25665
25666 \begin_inset Quotes erd
25667 \end_inset
25668
25669 , where 
25670 \begin_inset Flex Code
25671 status collapsed
25672
25673 \begin_layout Plain Layout
25674 floattype
25675 \end_layout
25676
25677 \end_inset
25678
25679  is \SpecialChar LyX
25680 's name for this type of float, as determined by the float declaration
25681  (see 
25682 \begin_inset CommandInset ref
25683 LatexCommand ref
25684 reference "subsec:Floats"
25685
25686 \end_inset
25687
25688 ), though made lowercase and with non-alphanumeric characters converted
25689  to underscores, for example: float-table.
25690 \end_layout
25691
25692 \begin_layout Description
25693 \begin_inset Flex Code
25694 status collapsed
25695
25696 \begin_layout Plain Layout
25697 HTMLStyle
25698 \end_layout
25699
25700 \end_inset
25701
25702  CSS style information to be included when this float is used.
25703  Note that this will automatically be wrapped in a layout-generated 
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708 <style>
25709 \end_layout
25710
25711 \end_inset
25712
25713  block, so only the CSS itself need be included.
25714 \end_layout
25715
25716 \begin_layout Description
25717 \begin_inset Flex Code
25718 status collapsed
25719
25720 \begin_layout Plain Layout
25721 HTMLTag
25722 \end_layout
25723
25724 \end_inset
25725
25726  [
25727 \begin_inset Flex Code
25728 status collapsed
25729
25730 \begin_layout Plain Layout
25731 string
25732 \end_layout
25733
25734 \end_inset
25735
25736 ] The tag to be used for this float, replacing 
25737 \begin_inset Quotes eld
25738 \end_inset
25739
25740
25741 \begin_inset Flex Code
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745 tag
25746 \end_layout
25747
25748 \end_inset
25749
25750
25751 \begin_inset Quotes erd
25752 \end_inset
25753
25754  in the example above.
25755  The default is 
25756 \begin_inset Flex Code
25757 status collapsed
25758
25759 \begin_layout Plain Layout
25760 div
25761 \end_layout
25762
25763 \end_inset
25764
25765  and will rarely need changing.
25766 \end_layout
25767
25768 \begin_layout Subsection
25769 Bibliography formatting
25770 \end_layout
25771
25772 \begin_layout Standard
25773 The bibliography can be formatted using 
25774 \begin_inset Flex Code
25775 status collapsed
25776
25777 \begin_layout Plain Layout
25778 CiteFormat
25779 \end_layout
25780
25781 \end_inset
25782
25783  blocks.
25784  See 
25785 \begin_inset CommandInset ref
25786 LatexCommand ref
25787 reference "subsec:Citation-format-description"
25788
25789 \end_inset
25790
25791  for the details.
25792 \end_layout
25793
25794 \begin_layout Subsection
25795 \SpecialChar LyX
25796 -generated CSS
25797 \end_layout
25798
25799 \begin_layout Standard
25800 We have several times mentioned that \SpecialChar LyX
25801  will generate default CSS style rules
25802  for both insets and paragraph styles, based upon the other layout information
25803  that is provided.
25804  In this section, we shall say a word about which layout information \SpecialChar LyX
25805  uses
25806  and how.
25807 \end_layout
25808
25809 \begin_layout Standard
25810 At present, \SpecialChar LyX
25811  auto-generates CSS only for font information, making use of
25812  the 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 Family
25818 \end_layout
25819
25820 \end_inset
25821
25822
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827 Series
25828 \end_layout
25829
25830 \end_inset
25831
25832
25833 \begin_inset Flex Code
25834 status collapsed
25835
25836 \begin_layout Plain Layout
25837 Shape
25838 \end_layout
25839
25840 \end_inset
25841
25842 , and 
25843 \begin_inset Flex Code
25844 status collapsed
25845
25846 \begin_layout Plain Layout
25847 Size
25848 \end_layout
25849
25850 \end_inset
25851
25852  specified in the 
25853 \begin_inset Flex Code
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 Font
25858 \end_layout
25859
25860 \end_inset
25861
25862  declaration (see 
25863 \begin_inset CommandInset ref
25864 LatexCommand ref
25865 reference "subsec:Font-description"
25866
25867 \end_inset
25868
25869 ).
25870  The translation is mostly straightforward and obvious.
25871  For example, 
25872 \begin_inset Quotes eld
25873 \end_inset
25874
25875
25876 \begin_inset Flex Code
25877 status collapsed
25878
25879 \begin_layout Plain Layout
25880 Family Sans
25881 \end_layout
25882
25883 \end_inset
25884
25885
25886 \begin_inset Quotes erd
25887 \end_inset
25888
25889  becomes 
25890 \begin_inset Quotes eld
25891 \end_inset
25892
25893
25894 \begin_inset Flex Code
25895 status collapsed
25896
25897 \begin_layout Plain Layout
25898 font-family: sans-serif;
25899 \end_layout
25900
25901 \end_inset
25902
25903
25904 \begin_inset Quotes erd
25905 \end_inset
25906
25907 .
25908  The correspondence of \SpecialChar LyX
25909  sizes and CSS sizes is a little less obvious but
25910  nonetheless intuitive.
25911  See the 
25912 \begin_inset Flex Code
25913 status collapsed
25914
25915 \begin_layout Plain Layout
25916 getSizeCSS()
25917 \end_layout
25918
25919 \end_inset
25920
25921  function in 
25922 \begin_inset Flex URL
25923 status collapsed
25924
25925 \begin_layout Plain Layout
25926
25927 src/FontInfo.cpp
25928 \end_layout
25929
25930 \end_inset
25931
25932  for the details.
25933 \end_layout
25934
25935 \begin_layout Chapter
25936 Including External Material
25937 \begin_inset CommandInset label
25938 LatexCommand label
25939 name "chap:Including-External-Material"
25940
25941 \end_inset
25942
25943
25944 \end_layout
25945
25946 \begin_layout Standard
25947 \begin_inset Box Shadowbox
25948 position "t"
25949 hor_pos "c"
25950 has_inner_box 1
25951 inner_pos "t"
25952 use_parbox 0
25953 use_makebox 0
25954 width "100col%"
25955 special "none"
25956 height "1in"
25957 height_special "totalheight"
25958 thickness "0.4pt"
25959 separation "3pt"
25960 shadowsize "4pt"
25961 framecolor "black"
25962 backgroundcolor "none"
25963 status open
25964
25965 \begin_layout Plain Layout
25966 WARNING: This portion of the documentation has not been updated for some
25967  time.
25968  We certainly hope that it is still accurate, but there are no guarantees.
25969 \end_layout
25970
25971 \end_inset
25972
25973
25974 \end_layout
25975
25976 \begin_layout Standard
25977 The use of material from sources external to \SpecialChar LyX
25978  is covered in detail in the
25979  
25980 \emph on
25981 Embedded Objects
25982 \emph default
25983  manual.
25984  This part of the manual covers what needs to happen behind the scenes for
25985  new sorts of material to be included.
25986 \end_layout
25987
25988 \begin_layout Section
25989 How does it work?
25990 \end_layout
25991
25992 \begin_layout Standard
25993 The external material feature is based on the concept of a 
25994 \emph on
25995 template
25996 \emph default
25997 .
25998  A template is a specification of how \SpecialChar LyX
25999  should interface with a certain kind
26000  of material.
26001  As bundled, \SpecialChar LyX
26002  comes with predefined templates for Xfig figures, various
26003  raster format images, chess diagrams, and LilyPond music notation.
26004  You can check the actual list by using the menu 
26005 \begin_inset Flex Noun
26006 status collapsed
26007
26008 \begin_layout Plain Layout
26009 Insert\SpecialChar menuseparator
26010 File\SpecialChar menuseparator
26011 External Material
26012 \end_layout
26013
26014 \end_inset
26015
26016 .
26017  Furthermore, it is possible to roll your own template to support a specific
26018  kind of material.
26019  Later we'll describe in more detail what is involved, and hopefully you
26020  will submit all the templates you create so we can include them in a later
26021  \SpecialChar LyX
26022  version.
26023 \end_layout
26024
26025 \begin_layout Standard
26026 Another basic idea of the external material feature is to distinguish between
26027  the original file that serves as a base for final material and the produced
26028  file that is included in your exported or printed document.
26029  For example, consider the case of a figure produced with 
26030 \begin_inset Flex Code
26031 status collapsed
26032
26033 \begin_layout Plain Layout
26034 Xfig
26035 \end_layout
26036
26037 \end_inset
26038
26039 .
26040  The Xfig application itself works on an original file with the 
26041 \begin_inset Flex Code
26042 status collapsed
26043
26044 \begin_layout Plain Layout
26045 .fig
26046 \end_layout
26047
26048 \end_inset
26049
26050  extension.
26051  Within Xfig, you create and change your figure, and when you are done,
26052  you save the 
26053 \begin_inset Flex Code
26054 status collapsed
26055
26056 \begin_layout Plain Layout
26057 fig
26058 \end_layout
26059
26060 \end_inset
26061
26062 -file.
26063  When you want to include the figure in your document, you invoke 
26064 \begin_inset Flex Code
26065 status collapsed
26066
26067 \begin_layout Plain Layout
26068 transfig
26069 \end_layout
26070
26071 \end_inset
26072
26073  in order to create a PostScript file that can readily be included in your
26074  \SpecialChar LaTeX
26075  file.
26076  In this case, the 
26077 \begin_inset Flex Code
26078 status collapsed
26079
26080 \begin_layout Plain Layout
26081 .fig
26082 \end_layout
26083
26084 \end_inset
26085
26086  file is the original file, and the PostScript file is the produced file.
26087 \end_layout
26088
26089 \begin_layout Standard
26090 This distinction is important in order to allow updating of the material
26091  while you are in the process of writing the document.
26092  Furthermore, it provides us with the flexibility that is needed to support
26093  multiple export formats.
26094  For instance, in the case of a plain text file, it is not exactly an award-winn
26095 ing idea to include the figure as raw PostScript.
26096  Instead, you would either prefer to just include a reference to the figure
26097  or try to invoke some graphics to ASCII converter to make the final result
26098  look similar to the real graphics.
26099  The external material management allows you to do this, because it is parametri
26100 zed on the different export formats that \SpecialChar LyX
26101  supports.
26102 \end_layout
26103
26104 \begin_layout Standard
26105 Besides supporting the production of different products according to the
26106  exported format, it supports tight integration with editing and viewing
26107  applications.
26108  In the case of an Xfig figure, you are able to invoke Xfig on the original
26109  file with a single click from within the external material dialog in \SpecialChar LyX
26110 ,
26111  and also preview the produced PostScript file with Ghostview with another
26112  click.
26113  No more fiddling around with the command line and/or file browsers to locate
26114  and manipulate the original or produced files.
26115  In this way, you are finally able to take full advantage of the many different
26116  applications that are relevant to use when you write your documents, and
26117  ultimately be more productive.
26118 \end_layout
26119
26120 \begin_layout Section
26121 The external template configuration files
26122 \end_layout
26123
26124 \begin_layout Standard
26125 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26126 .
26127  However, be aware that doing this in an careless manner most probably 
26128 \emph on
26129 will
26130 \emph default
26131  introduce an easily exploitable security hole.
26132  So before you do this, please read the discussion about security in 
26133 \begin_inset CommandInset ref
26134 LatexCommand ref
26135 reference "sec:Security-discussion"
26136
26137 \end_inset
26138
26139 .
26140 \end_layout
26141
26142 \begin_layout Standard
26143 Having said that, we encourage you to submit any interesting templates that
26144  you create.
26145  
26146 \end_layout
26147
26148 \begin_layout Standard
26149 The external templates are defined in the 
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 *.xtemplate
26155 \end_layout
26156
26157 \end_inset
26158
26159  files that are stored in the 
26160 \begin_inset Flex Code
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 LyXDir/lib/xtemplates/
26165 \end_layout
26166
26167 \end_inset
26168
26169  directory.
26170  Each template is defined in a file of its own.
26171  You can place your own templates in 
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176 UserDir/xtemplates/
26177 \end_layout
26178
26179 \end_inset
26180
26181  or copy existing templates to that directory in order to modify them.
26182 \end_layout
26183
26184 \begin_layout Standard
26185 A typical template looks like this:
26186 \end_layout
26187
26188 \begin_layout LyX-Code
26189 Template XFig
26190 \end_layout
26191
26192 \begin_layout LyX-Code
26193 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26194 \end_layout
26195
26196 \begin_layout LyX-Code
26197 HelpText
26198 \end_layout
26199
26200 \begin_layout LyX-Code
26201 An XFig figure.
26202 \end_layout
26203
26204 \begin_layout LyX-Code
26205 HelpTextEnd
26206 \end_layout
26207
26208 \begin_layout LyX-Code
26209 InputFormat fig
26210 \end_layout
26211
26212 \begin_layout LyX-Code
26213 FileFilter "*.fig"
26214 \end_layout
26215
26216 \begin_layout LyX-Code
26217 AutomaticProduction true
26218 \end_layout
26219
26220 \begin_layout LyX-Code
26221 Transform Rotate
26222 \end_layout
26223
26224 \begin_layout LyX-Code
26225 Transform Resize
26226 \end_layout
26227
26228 \begin_layout LyX-Code
26229 Format LaTeX
26230 \end_layout
26231
26232 \begin_layout LyX-Code
26233 TransformCommand Rotate RotationLatexCommand
26234 \end_layout
26235
26236 \begin_layout LyX-Code
26237 TransformCommand Resize ResizeLatexCommand
26238 \end_layout
26239
26240 \begin_layout LyX-Code
26241 Product "$$RotateFront$$ResizeFront
26242 \end_layout
26243
26244 \begin_layout LyX-Code
26245          
26246 \backslash
26247
26248 \backslash
26249 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26250 \end_layout
26251
26252 \begin_layout LyX-Code
26253          $$ResizeBack$$RotateBack"
26254 \end_layout
26255
26256 \begin_layout LyX-Code
26257 UpdateFormat pstex
26258 \end_layout
26259
26260 \begin_layout LyX-Code
26261 UpdateResult "$$AbsPath$$Basename.pstex_t"
26262 \end_layout
26263
26264 \begin_layout LyX-Code
26265 Requirement "graphicx"
26266 \end_layout
26267
26268 \begin_layout LyX-Code
26269 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26270 \end_layout
26271
26272 \begin_layout LyX-Code
26273 ReferencedFile latex "$$AbsPath$$Basename.eps"
26274 \end_layout
26275
26276 \begin_layout LyX-Code
26277 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26278 \end_layout
26279
26280 \begin_layout LyX-Code
26281 FormatEnd
26282 \end_layout
26283
26284 \begin_layout LyX-Code
26285 Format PDFLaTeX
26286 \end_layout
26287
26288 \begin_layout LyX-Code
26289 TransformCommand Rotate RotationLatexCommand
26290 \end_layout
26291
26292 \begin_layout LyX-Code
26293 TransformCommand Resize ResizeLatexCommand
26294 \end_layout
26295
26296 \begin_layout LyX-Code
26297 Product "$$RotateFront$$ResizeFront
26298 \end_layout
26299
26300 \begin_layout LyX-Code
26301          
26302 \backslash
26303
26304 \backslash
26305 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26306 \end_layout
26307
26308 \begin_layout LyX-Code
26309          $$ResizeBack$$RotateBack"
26310 \end_layout
26311
26312 \begin_layout LyX-Code
26313 UpdateFormat pdftex
26314 \end_layout
26315
26316 \begin_layout LyX-Code
26317 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26318 \end_layout
26319
26320 \begin_layout LyX-Code
26321 Requirement "graphicx"
26322 \end_layout
26323
26324 \begin_layout LyX-Code
26325 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26326 \end_layout
26327
26328 \begin_layout LyX-Code
26329 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26330 \end_layout
26331
26332 \begin_layout LyX-Code
26333 FormatEnd
26334 \end_layout
26335
26336 \begin_layout LyX-Code
26337 Format Ascii
26338 \end_layout
26339
26340 \begin_layout LyX-Code
26341 Product "[XFig: $$FName]"
26342 \end_layout
26343
26344 \begin_layout LyX-Code
26345 FormatEnd
26346 \end_layout
26347
26348 \begin_layout LyX-Code
26349 Format DocBook
26350 \end_layout
26351
26352 \begin_layout LyX-Code
26353 Product "<graphic fileref=
26354 \backslash
26355 "$$AbsOrRelPathMaster$$Basename.eps
26356 \backslash
26357 ">
26358 \end_layout
26359
26360 \begin_layout LyX-Code
26361          </graphic>"
26362 \end_layout
26363
26364 \begin_layout LyX-Code
26365 UpdateFormat eps
26366 \end_layout
26367
26368 \begin_layout LyX-Code
26369 UpdateResult "$$AbsPath$$Basename.eps"
26370 \end_layout
26371
26372 \begin_layout LyX-Code
26373 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26374 \end_layout
26375
26376 \begin_layout LyX-Code
26377 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26378 \end_layout
26379
26380 \begin_layout LyX-Code
26381 FormatEnd
26382 \end_layout
26383
26384 \begin_layout LyX-Code
26385 TemplateEnd
26386 \end_layout
26387
26388 \begin_layout Standard
26389 As you can see, the template is enclosed in 
26390 \begin_inset Flex Code
26391 status collapsed
26392
26393 \begin_layout Plain Layout
26394 Template
26395 \end_layout
26396
26397 \end_inset
26398
26399  \SpecialChar ldots
26400  
26401 \begin_inset Flex Code
26402 status collapsed
26403
26404 \begin_layout Plain Layout
26405 TemplateEnd
26406 \end_layout
26407
26408 \end_inset
26409
26410 .
26411  It contains a header specifying some general settings and, for each supported
26412  primary document file format, a section 
26413 \begin_inset Flex Code
26414 status collapsed
26415
26416 \begin_layout Plain Layout
26417 Format
26418 \end_layout
26419
26420 \end_inset
26421
26422  \SpecialChar ldots
26423  
26424 \begin_inset Flex Code
26425 status collapsed
26426
26427 \begin_layout Plain Layout
26428 FormatEnd
26429 \end_layout
26430
26431 \end_inset
26432
26433 .
26434 \end_layout
26435
26436 \begin_layout Subsection
26437 The template header
26438 \end_layout
26439
26440 \begin_layout Description
26441 \begin_inset Flex Code
26442 status collapsed
26443
26444 \begin_layout Plain Layout
26445 AutomaticProduction
26446 \begin_inset space ~
26447 \end_inset
26448
26449 true|false
26450 \end_layout
26451
26452 \end_inset
26453
26454  Whether the file represented by the template must be generated by \SpecialChar LyX
26455 .
26456  This command must occur exactly once.
26457 \end_layout
26458
26459 \begin_layout Description
26460 \begin_inset Flex Code
26461 status collapsed
26462
26463 \begin_layout Plain Layout
26464 FileFilter
26465 \begin_inset space ~
26466 \end_inset
26467
26468 <pattern>
26469 \end_layout
26470
26471 \end_inset
26472
26473  A glob pattern that is used in the file dialog to filter out the desired
26474  files.
26475  If there is more than one possible file extension (e.
26476 \begin_inset space \thinspace{}
26477 \end_inset
26478
26479 g.
26480 \begin_inset space \space{}
26481 \end_inset
26482
26483 tgif has 
26484 \begin_inset Flex Code
26485 status collapsed
26486
26487 \begin_layout Plain Layout
26488 .obj
26489 \end_layout
26490
26491 \end_inset
26492
26493  and 
26494 \begin_inset Flex Code
26495 status collapsed
26496
26497 \begin_layout Plain Layout
26498 .tgo
26499 \end_layout
26500
26501 \end_inset
26502
26503 ), use something like 
26504 \begin_inset Flex Code
26505 status collapsed
26506
26507 \begin_layout Plain Layout
26508 "*.{obj,tgo}"
26509 \end_layout
26510
26511 \end_inset
26512
26513 .
26514  This command must occur exactly once.
26515 \end_layout
26516
26517 \begin_layout Description
26518 \begin_inset Flex Code
26519 status collapsed
26520
26521 \begin_layout Plain Layout
26522 GuiName
26523 \begin_inset space ~
26524 \end_inset
26525
26526 <guiname>
26527 \end_layout
26528
26529 \end_inset
26530
26531  The text that is displayed on the button.
26532  This command must occur exactly once.
26533 \end_layout
26534
26535 \begin_layout Description
26536 \begin_inset Flex Code
26537 status collapsed
26538
26539 \begin_layout Plain Layout
26540 HelpText
26541 \begin_inset space ~
26542 \end_inset
26543
26544 <text>
26545 \begin_inset space ~
26546 \end_inset
26547
26548 HelpTextEnd
26549 \end_layout
26550
26551 \end_inset
26552
26553  The help text that is used in the External dialog.
26554  Provide enough information to explain to the user just what the template
26555  can provide him with.
26556  This command must occur exactly once.
26557 \end_layout
26558
26559 \begin_layout Description
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 InputFormat
26565 \begin_inset space ~
26566 \end_inset
26567
26568 <format>
26569 \end_layout
26570
26571 \end_inset
26572
26573  The file format of the original file.
26574  This must be the name of a format that is known to \SpecialChar LyX
26575  (see 
26576 \begin_inset CommandInset ref
26577 LatexCommand ref
26578 reference "sec:Formats"
26579
26580 \end_inset
26581
26582 ).
26583  Use 
26584 \begin_inset Quotes eld
26585 \end_inset
26586
26587
26588 \begin_inset Flex Code
26589 status collapsed
26590
26591 \begin_layout Plain Layout
26592 *
26593 \end_layout
26594
26595 \end_inset
26596
26597
26598 \begin_inset Quotes erd
26599 \end_inset
26600
26601  if the template can handle original files of more than one format.
26602  \SpecialChar LyX
26603  will attempt to interrogate the file itself in order to deduce its format
26604  in this case.
26605  This command must occur exactly once.
26606 \end_layout
26607
26608 \begin_layout Description
26609 \begin_inset Flex Code
26610 status collapsed
26611
26612 \begin_layout Plain Layout
26613 Template
26614 \begin_inset space ~
26615 \end_inset
26616
26617 <id>
26618 \end_layout
26619
26620 \end_inset
26621
26622  A unique name for the template.
26623  It must not contain substitution macros (see below).
26624 \end_layout
26625
26626 \begin_layout Description
26627 \begin_inset Flex Code
26628 status collapsed
26629
26630 \begin_layout Plain Layout
26631 Transform
26632 \begin_inset space ~
26633 \end_inset
26634
26635 Rotate|Resize|Clip|Extra
26636 \end_layout
26637
26638 \end_inset
26639
26640  This command specifies which transformations are supported by this template.
26641  It may occur zero or more times.
26642  This command enables the corresponding tabs in the external dialog.
26643  Each 
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 Transform
26649 \end_layout
26650
26651 \end_inset
26652
26653  command must have either a corresponding 
26654 \begin_inset Flex Code
26655 status collapsed
26656
26657 \begin_layout Plain Layout
26658 TransformCommand
26659 \end_layout
26660
26661 \end_inset
26662
26663  or a 
26664 \begin_inset Flex Code
26665 status collapsed
26666
26667 \begin_layout Plain Layout
26668 TransformOption
26669 \end_layout
26670
26671 \end_inset
26672
26673  command in the 
26674 \begin_inset Flex Code
26675 status collapsed
26676
26677 \begin_layout Plain Layout
26678 Format
26679 \end_layout
26680
26681 \end_inset
26682
26683  section.
26684  Otherwise the transformation will not be supported by that format.
26685 \end_layout
26686
26687 \begin_layout Subsection
26688 The Format section
26689 \end_layout
26690
26691 \begin_layout Description
26692 \begin_inset Flex Code
26693 status collapsed
26694
26695 \begin_layout Plain Layout
26696 Format
26697 \begin_inset space ~
26698 \end_inset
26699
26700 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26701 \end_layout
26702
26703 \end_inset
26704
26705  The primary document file format that this format definition is for.
26706  Not every template has a sensible representation in all document file formats.
26707  Please define nevertheless a 
26708 \begin_inset Flex Code
26709 status collapsed
26710
26711 \begin_layout Plain Layout
26712 Format
26713 \end_layout
26714
26715 \end_inset
26716
26717  section for all templates.
26718  Use a dummy text when no representation is available.
26719  Then you can at least see a reference to the external material in the exported
26720  document.
26721 \end_layout
26722
26723 \begin_layout Description
26724 \begin_inset Flex Code
26725 status collapsed
26726
26727 \begin_layout Plain Layout
26728 Option
26729 \begin_inset space ~
26730 \end_inset
26731
26732 <name>
26733 \begin_inset space ~
26734 \end_inset
26735
26736 <value>
26737 \end_layout
26738
26739 \end_inset
26740
26741  This command defines an additional macro 
26742 \begin_inset Flex Code
26743 status collapsed
26744
26745 \begin_layout Plain Layout
26746 $$<name>
26747 \end_layout
26748
26749 \end_inset
26750
26751  for substitution in 
26752 \begin_inset Flex Code
26753 status collapsed
26754
26755 \begin_layout Plain Layout
26756 Product
26757 \end_layout
26758
26759 \end_inset
26760
26761 .
26762  
26763 \begin_inset Flex Code
26764 status collapsed
26765
26766 \begin_layout Plain Layout
26767 <value>
26768 \end_layout
26769
26770 \end_inset
26771
26772  itself may contain substitution macros.
26773  The advantage over using 
26774 \begin_inset Flex Code
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 <value>
26779 \end_layout
26780
26781 \end_inset
26782
26783  directly in 
26784 \begin_inset Flex Code
26785 status collapsed
26786
26787 \begin_layout Plain Layout
26788 Product
26789 \end_layout
26790
26791 \end_inset
26792
26793  is that the substituted value of 
26794 \begin_inset Flex Code
26795 status collapsed
26796
26797 \begin_layout Plain Layout
26798 $$<name>
26799 \end_layout
26800
26801 \end_inset
26802
26803  is sanitized so that it is a valid optional argument in the document format.
26804  This command may occur zero or more times.
26805 \end_layout
26806
26807 \begin_layout Description
26808 \begin_inset Flex Code
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812 Product
26813 \begin_inset space ~
26814 \end_inset
26815
26816 <text>
26817 \end_layout
26818
26819 \end_inset
26820
26821  The text that is inserted in the exported document.
26822  This is actually the most important command and can be quite complex.
26823  This command must occur exactly once.
26824 \end_layout
26825
26826 \begin_layout Description
26827 \begin_inset Flex Code
26828 status collapsed
26829
26830 \begin_layout Plain Layout
26831 Preamble
26832 \begin_inset space ~
26833 \end_inset
26834
26835 <name>
26836 \end_layout
26837
26838 \end_inset
26839
26840  This command specifies a preamble snippet that will be included in the
26841  \SpecialChar LaTeX
26842  preamble.
26843  It has to be defined using 
26844 \begin_inset Flex Code
26845 status collapsed
26846
26847 \begin_layout Plain Layout
26848 PreambleDef
26849 \end_layout
26850
26851 \end_inset
26852
26853  \SpecialChar ldots
26854  
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 PreambleDefEnd
26860 \end_layout
26861
26862 \end_inset
26863
26864 .
26865  This command may occur zero or more times.
26866 \end_layout
26867
26868 \begin_layout Description
26869 \begin_inset Flex Code
26870 status collapsed
26871
26872 \begin_layout Plain Layout
26873 ReferencedFile
26874 \begin_inset space ~
26875 \end_inset
26876
26877 <format>
26878 \begin_inset space ~
26879 \end_inset
26880
26881 <filename>
26882 \end_layout
26883
26884 \end_inset
26885
26886  This command denotes files that are created by the conversion process and
26887  are needed for a particular export format.
26888  If the filename is relative, it is interpreted relative to the master document.
26889  This command may be given zero or more times.
26890 \end_layout
26891
26892 \begin_layout Description
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 Requirement
26898 \begin_inset space ~
26899 \end_inset
26900
26901 <package>
26902 \end_layout
26903
26904 \end_inset
26905
26906  The name of a required \SpecialChar LaTeX
26907  package.
26908  The package is included via 
26909 \begin_inset Flex Code
26910 status collapsed
26911
26912 \begin_layout Plain Layout
26913
26914 \backslash
26915 usepackage{}
26916 \end_layout
26917
26918 \end_inset
26919
26920  in the \SpecialChar LaTeX
26921  preamble.
26922  This command may occur zero or more times.
26923 \end_layout
26924
26925 \begin_layout Description
26926 \begin_inset Flex Code
26927 status collapsed
26928
26929 \begin_layout Plain Layout
26930 TransformCommand
26931 \begin_inset space ~
26932 \end_inset
26933
26934 Rotate
26935 \begin_inset space ~
26936 \end_inset
26937
26938 RotationLatexCommand
26939 \end_layout
26940
26941 \end_inset
26942
26943  This command specifies that the built in \SpecialChar LaTeX
26944  command should be used for rotation.
26945  This command may occur once or not at all.
26946 \end_layout
26947
26948 \begin_layout Description
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953 TransformCommand
26954 \begin_inset space ~
26955 \end_inset
26956
26957 Resize
26958 \begin_inset space ~
26959 \end_inset
26960
26961 ResizeLatexCommand
26962 \end_layout
26963
26964 \end_inset
26965
26966  This command specifies that the built in \SpecialChar LaTeX
26967  command should be used for resizing.
26968  This command may occur once or not at all.
26969 \end_layout
26970
26971 \begin_layout Description
26972 \begin_inset Flex Code
26973 status collapsed
26974
26975 \begin_layout Plain Layout
26976 TransformOption
26977 \begin_inset space ~
26978 \end_inset
26979
26980 Rotate
26981 \begin_inset space ~
26982 \end_inset
26983
26984 RotationLatexOption
26985 \end_layout
26986
26987 \end_inset
26988
26989  This command specifies that rotation is done via an optional argument.
26990  This command may occur once or not at all.
26991 \end_layout
26992
26993 \begin_layout Description
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 TransformOption
26999 \begin_inset space ~
27000 \end_inset
27001
27002 Resize
27003 \begin_inset space ~
27004 \end_inset
27005
27006 ResizeLatexOption
27007 \end_layout
27008
27009 \end_inset
27010
27011  This command specifies that resizing is done via an optional argument.
27012  This command may occur once or not at all.
27013 \end_layout
27014
27015 \begin_layout Description
27016 \begin_inset Flex Code
27017 status collapsed
27018
27019 \begin_layout Plain Layout
27020 TransformOption
27021 \begin_inset space ~
27022 \end_inset
27023
27024 Clip
27025 \begin_inset space ~
27026 \end_inset
27027
27028 ClipLatexOption
27029 \end_layout
27030
27031 \end_inset
27032
27033  This command specifies that clipping is done via an optional argument.
27034  This command may occur once or not at all.
27035 \end_layout
27036
27037 \begin_layout Description
27038 \begin_inset Flex Code
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042 TransformOption
27043 \begin_inset space ~
27044 \end_inset
27045
27046 Extra
27047 \begin_inset space ~
27048 \end_inset
27049
27050 ExtraLatexOption
27051 \end_layout
27052
27053 \end_inset
27054
27055  This command specifies that an extra optional argument is used.
27056  This command may occur once or not at all.
27057 \end_layout
27058
27059 \begin_layout Description
27060 \begin_inset Flex Code
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 UpdateFormat
27065 \begin_inset space ~
27066 \end_inset
27067
27068 <format>
27069 \end_layout
27070
27071 \end_inset
27072
27073  The file format of the converted file.
27074  This must be the name of a format that is known to \SpecialChar LyX
27075  (see the 
27076 \begin_inset Flex Noun
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080 Tools\SpecialChar menuseparator
27081 Preferences\SpecialChar menuseparator
27082 File Handling\SpecialChar menuseparator
27083 File Format
27084 \end_layout
27085
27086 \end_inset
27087
27088  dialog).
27089  This command must occur exactly once.
27090  If the resulting file format is PDF, you need to specify the format 
27091 \begin_inset Flex Code
27092 status collapsed
27093
27094 \begin_layout Plain Layout
27095 pdf6
27096 \end_layout
27097
27098 \end_inset
27099
27100 .
27101  This is the PDF format used for including graphics.
27102  The other defined PDF formats are for document export.
27103 \end_layout
27104
27105 \begin_layout Description
27106 \begin_inset Flex Code
27107 status collapsed
27108
27109 \begin_layout Plain Layout
27110 UpdateResult
27111 \begin_inset space ~
27112 \end_inset
27113
27114 <filename>
27115 \end_layout
27116
27117 \end_inset
27118
27119  The file name of the converted file.
27120  The file name must be absolute.
27121  This command must occur exactly once.
27122 \end_layout
27123
27124 \begin_layout Subsection
27125 Preamble definitions
27126 \end_layout
27127
27128 \begin_layout Standard
27129 The external template configuration file may contain additional preamble
27130  definitions enclosed by 
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 PreambleDef
27136 \end_layout
27137
27138 \end_inset
27139
27140  \SpecialChar ldots
27141  
27142 \begin_inset Flex Code
27143 status collapsed
27144
27145 \begin_layout Plain Layout
27146 PreambleDefEnd
27147 \end_layout
27148
27149 \end_inset
27150
27151 .
27152  They can be used by the templates in the 
27153 \begin_inset Flex Code
27154 status collapsed
27155
27156 \begin_layout Plain Layout
27157 Format
27158 \end_layout
27159
27160 \end_inset
27161
27162  section.
27163 \end_layout
27164
27165 \begin_layout Section
27166 The substitution mechanism
27167 \end_layout
27168
27169 \begin_layout Standard
27170 When the external material facility invokes an external program, it is done
27171  on the basis of a command defined in the template configuration file.
27172  These commands can contain various macros that are expanded before execution.
27173  Execution always take place in the directory of the containing document.
27174 \end_layout
27175
27176 \begin_layout Standard
27177 Also, whenever external material is to be displayed, the name will be produced
27178  by the substitution mechanism, and most other commands in the template
27179  definition support substitution as well.
27180 \end_layout
27181
27182 \begin_layout Standard
27183 The available macros are the following:
27184 \end_layout
27185
27186 \begin_layout Description
27187 \begin_inset Flex Code
27188 status collapsed
27189
27190 \begin_layout Plain Layout
27191 $$AbsOrRelPathMaster
27192 \end_layout
27193
27194 \end_inset
27195
27196  The file path, absolute or relative to the master \SpecialChar LyX
27197  document.
27198 \end_layout
27199
27200 \begin_layout Description
27201 \begin_inset Flex Code
27202 status collapsed
27203
27204 \begin_layout Plain Layout
27205 $$AbsOrRelPathParent
27206 \end_layout
27207
27208 \end_inset
27209
27210  The file path, absolute or relative to the \SpecialChar LyX
27211  document.
27212 \end_layout
27213
27214 \begin_layout Description
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 $$AbsPath
27220 \end_layout
27221
27222 \end_inset
27223
27224  The absolute file path.
27225 \end_layout
27226
27227 \begin_layout Description
27228 \begin_inset Flex Code
27229 status collapsed
27230
27231 \begin_layout Plain Layout
27232 $$Basename
27233 \end_layout
27234
27235 \end_inset
27236
27237  The filename without path and without the extension.
27238 \end_layout
27239
27240 \begin_layout Description
27241 \begin_inset Flex Code
27242 status collapsed
27243
27244 \begin_layout Plain Layout
27245 $$Contents(
27246 \begin_inset Quotes eld
27247 \end_inset
27248
27249 filename.ext
27250 \begin_inset Quotes erd
27251 \end_inset
27252
27253 )
27254 \end_layout
27255
27256 \end_inset
27257
27258  This macro will expand to the contents of the file with the name 
27259 \begin_inset Flex Code
27260 status collapsed
27261
27262 \begin_layout Plain Layout
27263 filename.ext
27264 \end_layout
27265
27266 \end_inset
27267
27268 .
27269 \end_layout
27270
27271 \begin_layout Description
27272 \begin_inset Flex Code
27273 status collapsed
27274
27275 \begin_layout Plain Layout
27276 $$Extension
27277 \end_layout
27278
27279 \end_inset
27280
27281  The file extension (including the dot).
27282 \end_layout
27283
27284 \begin_layout Description
27285 \begin_inset Flex Code
27286 status collapsed
27287
27288 \begin_layout Plain Layout
27289 $$pngOrjpg
27290 \end_layout
27291
27292 \end_inset
27293
27294  This will be the string 
27295 \begin_inset Quotes eld
27296 \end_inset
27297
27298 jpg
27299 \begin_inset Quotes erd
27300 \end_inset
27301
27302  if the file is in JPEG format, otherwise it will be the string 
27303 \begin_inset Quotes eld
27304 \end_inset
27305
27306 png
27307 \begin_inset Quotes erd
27308 \end_inset
27309
27310 .
27311  This is useful to avoid uneeded conversions for output formats that support
27312  both PNG and JPEG fomats.
27313  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27314  output
27315  format.
27316 \end_layout
27317
27318 \begin_layout Description
27319 \begin_inset Flex Code
27320 status collapsed
27321
27322 \begin_layout Plain Layout
27323 $$FName
27324 \end_layout
27325
27326 \end_inset
27327
27328  The filename of the file specified in the external material dialog.
27329  This is either an absolute name, or it is relative to the \SpecialChar LyX
27330  document.
27331 \end_layout
27332
27333 \begin_layout Description
27334 \begin_inset Flex Code
27335 status collapsed
27336
27337 \begin_layout Plain Layout
27338 $$FPath
27339 \end_layout
27340
27341 \end_inset
27342
27343  The path part of 
27344 \begin_inset Flex Code
27345 status collapsed
27346
27347 \begin_layout Plain Layout
27348 $$FName
27349 \end_layout
27350
27351 \end_inset
27352
27353  (absolute name or relative to the \SpecialChar LyX
27354  document).
27355 \end_layout
27356
27357 \begin_layout Description
27358 \begin_inset Flex Code
27359 status collapsed
27360
27361 \begin_layout Plain Layout
27362 $$RelPathMaster
27363 \end_layout
27364
27365 \end_inset
27366
27367  The file path, relative to the master \SpecialChar LyX
27368  document.
27369 \end_layout
27370
27371 \begin_layout Description
27372 \begin_inset Flex Code
27373 status collapsed
27374
27375 \begin_layout Plain Layout
27376 $$RelPathParent
27377 \end_layout
27378
27379 \end_inset
27380
27381  The file path, relative to the \SpecialChar LyX
27382  document.
27383 \end_layout
27384
27385 \begin_layout Description
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 $$Sysdir
27391 \end_layout
27392
27393 \end_inset
27394
27395  This macro will expand to the absolute path of the system directory.
27396  This is typically used to point to the various helper scripts that are
27397  bundled with \SpecialChar LyX
27398 .
27399 \end_layout
27400
27401 \begin_layout Description
27402 \begin_inset Flex Code
27403 status collapsed
27404
27405 \begin_layout Plain Layout
27406 $$Tempname
27407 \end_layout
27408
27409 \end_inset
27410
27411  A name and full path to a temporary file which will be automatically deleted
27412  whenever the containing document is closed, or the external material insertion
27413  deleted.
27414 \end_layout
27415
27416 \begin_layout Standard
27417 All path macros contain a trailing directory separator, so you can construct
27418  e.
27419 \begin_inset space \thinspace{}
27420 \end_inset
27421
27422 g.
27423 \begin_inset space \space{}
27424 \end_inset
27425
27426 the absolute filename with 
27427 \begin_inset Flex Code
27428 status collapsed
27429
27430 \begin_layout Plain Layout
27431 $$AbsPath$$Basename$$Extension
27432 \end_layout
27433
27434 \end_inset
27435
27436 .
27437 \end_layout
27438
27439 \begin_layout Standard
27440 The macros above are substituted in all commands unless otherwise noted.
27441  The command 
27442 \begin_inset Flex Code
27443 status collapsed
27444
27445 \begin_layout Plain Layout
27446 Product
27447 \end_layout
27448
27449 \end_inset
27450
27451  supports additionally the following substitutions if they are enabled by
27452  the 
27453 \begin_inset Flex Code
27454 status collapsed
27455
27456 \begin_layout Plain Layout
27457 Transform
27458 \end_layout
27459
27460 \end_inset
27461
27462  and 
27463 \begin_inset Flex Code
27464 status collapsed
27465
27466 \begin_layout Plain Layout
27467 TransformCommand
27468 \end_layout
27469
27470 \end_inset
27471
27472  commands:
27473 \end_layout
27474
27475 \begin_layout Description
27476 \begin_inset Flex Code
27477 status collapsed
27478
27479 \begin_layout Plain Layout
27480 $$ResizeFront
27481 \end_layout
27482
27483 \end_inset
27484
27485  The front part of the resize command.
27486 \end_layout
27487
27488 \begin_layout Description
27489 \begin_inset Flex Code
27490 status collapsed
27491
27492 \begin_layout Plain Layout
27493 $$ResizeBack
27494 \end_layout
27495
27496 \end_inset
27497
27498  The back part of the resize command.
27499 \end_layout
27500
27501 \begin_layout Description
27502 \begin_inset Flex Code
27503 status collapsed
27504
27505 \begin_layout Plain Layout
27506 $$RotateFront
27507 \end_layout
27508
27509 \end_inset
27510
27511  The front part of the rotation command.
27512 \end_layout
27513
27514 \begin_layout Description
27515 \begin_inset Flex Code
27516 status collapsed
27517
27518 \begin_layout Plain Layout
27519 $$RotateBack
27520 \end_layout
27521
27522 \end_inset
27523
27524  The back part of the rotation command.
27525 \end_layout
27526
27527 \begin_layout Standard
27528 The value string of the 
27529 \begin_inset Flex Code
27530 status collapsed
27531
27532 \begin_layout Plain Layout
27533 Option
27534 \end_layout
27535
27536 \end_inset
27537
27538  command supports additionally the following substitutions if they are enabled
27539  by the 
27540 \begin_inset Flex Code
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544 Transform
27545 \end_layout
27546
27547 \end_inset
27548
27549  and 
27550 \begin_inset Flex Code
27551 status collapsed
27552
27553 \begin_layout Plain Layout
27554 TransformOption
27555 \end_layout
27556
27557 \end_inset
27558
27559  commands:
27560 \end_layout
27561
27562 \begin_layout Description
27563 \begin_inset Flex Code
27564 status collapsed
27565
27566 \begin_layout Plain Layout
27567 $$Clip
27568 \end_layout
27569
27570 \end_inset
27571
27572  The clip option.
27573 \end_layout
27574
27575 \begin_layout Description
27576 \begin_inset Flex Code
27577 status collapsed
27578
27579 \begin_layout Plain Layout
27580 $$Extra
27581 \end_layout
27582
27583 \end_inset
27584
27585  The extra option.
27586 \end_layout
27587
27588 \begin_layout Description
27589 \begin_inset Flex Code
27590 status collapsed
27591
27592 \begin_layout Plain Layout
27593 $$Resize
27594 \end_layout
27595
27596 \end_inset
27597
27598  The resize option.
27599 \end_layout
27600
27601 \begin_layout Description
27602 \begin_inset Flex Code
27603 status collapsed
27604
27605 \begin_layout Plain Layout
27606 $$Rotate
27607 \end_layout
27608
27609 \end_inset
27610
27611  The rotation option.
27612 \end_layout
27613
27614 \begin_layout Standard
27615 You may ask why there are so many path macros.
27616  There are mainly two reasons:
27617 \end_layout
27618
27619 \begin_layout Enumerate
27620 Relative and absolute file names should remain relative or absolute, respectivel
27621 y.
27622  Users may have reasons to prefer either form.
27623  Relative names are useful for portable documents that should work on different
27624  machines, for example.
27625  Absolute names may be required by some programs.
27626 \end_layout
27627
27628 \begin_layout Enumerate
27629 \SpecialChar LaTeX
27630  treats relative file names differently than \SpecialChar LyX
27631  and other programs in nested
27632  included files.
27633  For \SpecialChar LyX
27634 , a relative file name is always relative to the document that contains
27635  the file name.
27636  For \SpecialChar LaTeX
27637 , it is always relative to the master document.
27638  These two definitions are identical if you have only one document, but
27639  differ if you have a master document that includes part documents.
27640  That means that relative filenames must be transformed when presented to
27641  \SpecialChar LaTeX
27642 .
27643  Fortunately \SpecialChar LyX
27644  does this automatically for you if you choose the right macros.
27645 \end_layout
27646
27647 \begin_layout Standard
27648 So which path macro should be used in new template definitions? The rule
27649  is not difficult:
27650 \end_layout
27651
27652 \begin_layout Itemize
27653 Use 
27654 \begin_inset Flex Code
27655 status collapsed
27656
27657 \begin_layout Plain Layout
27658 $$AbsPath
27659 \end_layout
27660
27661 \end_inset
27662
27663  if an absolute path is required.
27664 \end_layout
27665
27666 \begin_layout Itemize
27667 Use 
27668 \begin_inset Flex Code
27669 status collapsed
27670
27671 \begin_layout Plain Layout
27672 $$AbsOrRelPathMaster
27673 \end_layout
27674
27675 \end_inset
27676
27677  if the substituted string is some kind of \SpecialChar LaTeX
27678  input.
27679 \end_layout
27680
27681 \begin_layout Itemize
27682 Else use 
27683 \begin_inset Flex Code
27684 status collapsed
27685
27686 \begin_layout Plain Layout
27687 $$AbsOrRelPathParent
27688 \end_layout
27689
27690 \end_inset
27691
27692  in order to preserve the user's choice.
27693 \end_layout
27694
27695 \begin_layout Standard
27696 There are special cases where this rule does not work and e.
27697 \begin_inset space \thinspace{}
27698 \end_inset
27699
27700 g.
27701 \begin_inset space \space{}
27702 \end_inset
27703
27704 relative names are needed, but normally it will work just fine.
27705  One example for such a case is the command 
27706 \begin_inset Flex Code
27707 status collapsed
27708
27709 \begin_layout Plain Layout
27710 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27711 \end_layout
27712
27713 \end_inset
27714
27715  in the XFig template above: We can't use the absolute name because the
27716  copier for 
27717 \begin_inset Flex Code
27718 status collapsed
27719
27720 \begin_layout Plain Layout
27721 .pstex_t
27722 \end_layout
27723
27724 \end_inset
27725
27726  files needs the relative name in order to rewrite the file content.
27727 \end_layout
27728
27729 \begin_layout Section
27730 Security discussion
27731 \begin_inset CommandInset label
27732 LatexCommand label
27733 name "sec:Security-discussion"
27734
27735 \end_inset
27736
27737
27738 \end_layout
27739
27740 \begin_layout Standard
27741 The external material feature interfaces with a lot of external programs
27742  and does so automatically, so we have to consider the security implications
27743  of this.
27744  In particular, since you have the option of including your own filenames
27745  and/or parameter strings and those are expanded into a command, it seems
27746  that it would be possible to create a malicious document which executes
27747  arbitrary commands when a user views or prints the document.
27748  This is something we definitely want to avoid.
27749 \end_layout
27750
27751 \begin_layout Standard
27752 However, since the external program commands are specified in the template
27753  configuration file only, there are no security issues if \SpecialChar LyX
27754  is properly configure
27755 d with safe templates only.
27756  This is so because the external programs are invoked with the 
27757 \begin_inset Flex Code
27758 status collapsed
27759
27760 \begin_layout Plain Layout
27761 execvp
27762 \end_layout
27763
27764 \end_inset
27765
27766 -system call rather than the 
27767 \begin_inset Flex Code
27768 status collapsed
27769
27770 \begin_layout Plain Layout
27771 system
27772 \end_layout
27773
27774 \end_inset
27775
27776  system-call, so it's not possible to execute arbitrary commands from the
27777  filename or parameter section via the shell.
27778 \end_layout
27779
27780 \begin_layout Standard
27781 This also implies that you are restricted in what command strings you can
27782  use in the external material templates.
27783  In particular, pipes and redirection are not readily available.
27784  This has to be so if \SpecialChar LyX
27785  should remain safe.
27786  If you want to use some of the shell features, you should write a safe
27787  script to do this in a controlled manner, and then invoke the script from
27788  the command string.
27789  
27790 \end_layout
27791
27792 \begin_layout Standard
27793 It is possible to design a template that interacts directly with the shell,
27794  but since this would allow a malicious user to execute arbitrary commands
27795  by writing clever filenames and/or parameters, we generally recommend that
27796  you only use safe scripts that work with the 
27797 \begin_inset Flex Code
27798 status collapsed
27799
27800 \begin_layout Plain Layout
27801 execvp
27802 \end_layout
27803
27804 \end_inset
27805
27806  system call in a controlled manner.
27807  Of course, for use in a controlled environment, it can be tempting to just
27808  fall back to use ordinary shell scripts.
27809  If you do so, be aware that you 
27810 \emph on
27811 will
27812 \emph default
27813  provide an easily exploitable security hole in your system.
27814  Of course it stands to reason that such unsafe templates will never be
27815  included in the standard \SpecialChar LyX
27816  distribution, although we do encourage people
27817  to submit new templates in the open source tradition.
27818  But \SpecialChar LyX
27819  as shipped from the official distribution channels will never have
27820  unsafe templates.
27821 \end_layout
27822
27823 \begin_layout Standard
27824 Including external material provides a lot of power, and you have to be
27825  careful not to introduce security hazards with this power.
27826  A subtle error in a single line in an innocent looking script can open
27827  the door to huge security problems.
27828  So if you do not fully understand the issues, we recommend that you consult
27829  a knowledgeable security professional or the \SpecialChar LyX
27830  development team if you have
27831  any questions about whether a given template is safe or not.
27832  And do this before you use it in an uncontrolled environment.
27833 \end_layout
27834
27835 \begin_layout Chapter
27836 \start_of_appendix
27837 List of supported \SpecialChar LyX
27838  functions to be used in layouts
27839 \begin_inset CommandInset label
27840 LatexCommand label
27841 name "chap:List-of-functions"
27842
27843 \end_inset
27844
27845
27846 \end_layout
27847
27848 \begin_layout Standard
27849 \align center
27850 \begin_inset Tabular
27851 <lyxtabular version="3" rows="11" columns="8">
27852 <features tabularvalignment="middle">
27853 <column alignment="left" valignment="top">
27854 <column alignment="left" valignment="top">
27855 <column alignment="left" valignment="top">
27856 <column alignment="left" valignment="top">
27857 <column alignment="left" valignment="top">
27858 <column alignment="left" valignment="top">
27859 <column alignment="left" valignment="top">
27860 <column alignment="left" valignment="top">
27861 <row>
27862 <cell alignment="left" valignment="top" usebox="none">
27863 \begin_inset Text
27864
27865 \begin_layout Plain Layout
27866 accents
27867 \end_layout
27868
27869 \end_inset
27870 </cell>
27871 <cell alignment="left" valignment="top" usebox="none">
27872 \begin_inset Text
27873
27874 \begin_layout Plain Layout
27875 booktabs
27876 \end_layout
27877
27878 \end_inset
27879 </cell>
27880 <cell alignment="left" valignment="top" usebox="none">
27881 \begin_inset Text
27882
27883 \begin_layout Plain Layout
27884 feyn
27885 \end_layout
27886
27887 \end_inset
27888 </cell>
27889 <cell alignment="left" valignment="top" usebox="none">
27890 \begin_inset Text
27891
27892 \begin_layout Plain Layout
27893 listings
27894 \end_layout
27895
27896 \end_inset
27897 </cell>
27898 <cell alignment="center" valignment="top" usebox="none">
27899 \begin_inset Text
27900
27901 \begin_layout Plain Layout
27902 natbib
27903 \end_layout
27904
27905 \end_inset
27906 </cell>
27907 <cell alignment="center" valignment="top" usebox="none">
27908 \begin_inset Text
27909
27910 \begin_layout Plain Layout
27911 rotfloat
27912 \end_layout
27913
27914 \end_inset
27915 </cell>
27916 <cell alignment="center" valignment="top" usebox="none">
27917 \begin_inset Text
27918
27919 \begin_layout Plain Layout
27920 tfrupee
27921 \end_layout
27922
27923 \end_inset
27924 </cell>
27925 <cell alignment="center" valignment="top" usebox="none">
27926 \begin_inset Text
27927
27928 \begin_layout Plain Layout
27929 wasysym
27930 \end_layout
27931
27932 \end_inset
27933 </cell>
27934 </row>
27935 <row>
27936 <cell alignment="left" valignment="top" usebox="none">
27937 \begin_inset Text
27938
27939 \begin_layout Plain Layout
27940 amsbsy
27941 \end_layout
27942
27943 \end_inset
27944 </cell>
27945 <cell alignment="left" valignment="top" usebox="none">
27946 \begin_inset Text
27947
27948 \begin_layout Plain Layout
27949 calc
27950 \end_layout
27951
27952 \end_inset
27953 </cell>
27954 <cell alignment="left" valignment="top" usebox="none">
27955 \begin_inset Text
27956
27957 \begin_layout Plain Layout
27958 fixltx2e
27959 \end_layout
27960
27961 \end_inset
27962 </cell>
27963 <cell alignment="left" valignment="top" usebox="none">
27964 \begin_inset Text
27965
27966 \begin_layout Plain Layout
27967 longtable
27968 \end_layout
27969
27970 \end_inset
27971 </cell>
27972 <cell alignment="center" valignment="top" usebox="none">
27973 \begin_inset Text
27974
27975 \begin_layout Plain Layout
27976 nomencl
27977 \end_layout
27978
27979 \end_inset
27980 </cell>
27981 <cell alignment="center" valignment="top" usebox="none">
27982 \begin_inset Text
27983
27984 \begin_layout Plain Layout
27985 rsphrase
27986 \end_layout
27987
27988 \end_inset
27989 </cell>
27990 <cell alignment="center" valignment="top" usebox="none">
27991 \begin_inset Text
27992
27993 \begin_layout Plain Layout
27994 tipa
27995 \end_layout
27996
27997 \end_inset
27998 </cell>
27999 <cell alignment="center" valignment="top" usebox="none">
28000 \begin_inset Text
28001
28002 \begin_layout Plain Layout
28003 wrapfig
28004 \end_layout
28005
28006 \end_inset
28007 </cell>
28008 </row>
28009 <row>
28010 <cell alignment="left" valignment="top" usebox="none">
28011 \begin_inset Text
28012
28013 \begin_layout Plain Layout
28014 amscd
28015 \end_layout
28016
28017 \end_inset
28018 </cell>
28019 <cell alignment="left" valignment="top" usebox="none">
28020 \begin_inset Text
28021
28022 \begin_layout Plain Layout
28023 CJK
28024 \end_layout
28025
28026 \end_inset
28027 </cell>
28028 <cell alignment="left" valignment="top" usebox="none">
28029 \begin_inset Text
28030
28031 \begin_layout Plain Layout
28032 float
28033 \end_layout
28034
28035 \end_inset
28036 </cell>
28037 <cell alignment="left" valignment="top" usebox="none">
28038 \begin_inset Text
28039
28040 \begin_layout Plain Layout
28041 lyxskak
28042 \end_layout
28043
28044 \end_inset
28045 </cell>
28046 <cell alignment="center" valignment="top" usebox="none">
28047 \begin_inset Text
28048
28049 \begin_layout Plain Layout
28050 pdfcolmk
28051 \end_layout
28052
28053 \end_inset
28054 </cell>
28055 <cell alignment="center" valignment="top" usebox="none">
28056 \begin_inset Text
28057
28058 \begin_layout Plain Layout
28059 setspace
28060 \end_layout
28061
28062 \end_inset
28063 </cell>
28064 <cell alignment="center" valignment="top" usebox="none">
28065 \begin_inset Text
28066
28067 \begin_layout Plain Layout
28068 tipx
28069 \end_layout
28070
28071 \end_inset
28072 </cell>
28073 <cell alignment="center" valignment="top" usebox="none">
28074 \begin_inset Text
28075
28076 \begin_layout Plain Layout
28077 xargs
28078 \end_layout
28079
28080 \end_inset
28081 </cell>
28082 </row>
28083 <row>
28084 <cell alignment="left" valignment="top" usebox="none">
28085 \begin_inset Text
28086
28087 \begin_layout Plain Layout
28088 amsmath
28089 \end_layout
28090
28091 \end_inset
28092 </cell>
28093 <cell alignment="left" valignment="top" usebox="none">
28094 \begin_inset Text
28095
28096 \begin_layout Plain Layout
28097 color
28098 \end_layout
28099
28100 \end_inset
28101 </cell>
28102 <cell alignment="left" valignment="top" usebox="none">
28103 \begin_inset Text
28104
28105 \begin_layout Plain Layout
28106 framed
28107 \end_layout
28108
28109 \end_inset
28110 </cell>
28111 <cell alignment="left" valignment="top" usebox="none">
28112 \begin_inset Text
28113
28114 \begin_layout Plain Layout
28115 makeidx
28116 \end_layout
28117
28118 \end_inset
28119 </cell>
28120 <cell alignment="center" valignment="top" usebox="none">
28121 \begin_inset Text
28122
28123 \begin_layout Plain Layout
28124 pdfpages
28125 \end_layout
28126
28127 \end_inset
28128 </cell>
28129 <cell alignment="center" valignment="top" usebox="none">
28130 \begin_inset Text
28131
28132 \begin_layout Plain Layout
28133 shapepar
28134 \end_layout
28135
28136 \end_inset
28137 </cell>
28138 <cell alignment="center" valignment="top" usebox="none">
28139 \begin_inset Text
28140
28141 \begin_layout Plain Layout
28142 tone
28143 \end_layout
28144
28145 \end_inset
28146 </cell>
28147 <cell alignment="center" valignment="top" usebox="none">
28148 \begin_inset Text
28149
28150 \begin_layout Plain Layout
28151 xcolor
28152 \end_layout
28153
28154 \end_inset
28155 </cell>
28156 </row>
28157 <row>
28158 <cell alignment="left" valignment="top" usebox="none">
28159 \begin_inset Text
28160
28161 \begin_layout Plain Layout
28162 amssymb
28163 \end_layout
28164
28165 \end_inset
28166 </cell>
28167 <cell alignment="left" valignment="top" usebox="none">
28168 \begin_inset Text
28169
28170 \begin_layout Plain Layout
28171 covington
28172 \end_layout
28173
28174 \end_inset
28175 </cell>
28176 <cell alignment="left" valignment="top" usebox="none">
28177 \begin_inset Text
28178
28179 \begin_layout Plain Layout
28180 graphicx
28181 \end_layout
28182
28183 \end_inset
28184 </cell>
28185 <cell alignment="left" valignment="top" usebox="none">
28186 \begin_inset Text
28187
28188 \begin_layout Plain Layout
28189 marvosym
28190 \end_layout
28191
28192 \end_inset
28193 </cell>
28194 <cell alignment="center" valignment="top" usebox="none">
28195 \begin_inset Text
28196
28197 \begin_layout Plain Layout
28198 pifont
28199 \end_layout
28200
28201 \end_inset
28202 </cell>
28203 <cell alignment="center" valignment="top" usebox="none">
28204 \begin_inset Text
28205
28206 \begin_layout Plain Layout
28207 slashed
28208 \end_layout
28209
28210 \end_inset
28211 </cell>
28212 <cell alignment="center" valignment="top" usebox="none">
28213 \begin_inset Text
28214
28215 \begin_layout Plain Layout
28216 txfonts
28217 \end_layout
28218
28219 \end_inset
28220 </cell>
28221 <cell alignment="center" valignment="top" usebox="none">
28222 \begin_inset Text
28223
28224 \begin_layout Plain Layout
28225 xy
28226 \end_layout
28227
28228 \end_inset
28229 </cell>
28230 </row>
28231 <row>
28232 <cell alignment="left" valignment="top" usebox="none">
28233 \begin_inset Text
28234
28235 \begin_layout Plain Layout
28236 amstext
28237 \end_layout
28238
28239 \end_inset
28240 </cell>
28241 <cell alignment="left" valignment="top" usebox="none">
28242 \begin_inset Text
28243
28244 \begin_layout Plain Layout
28245 csquotes
28246 \end_layout
28247
28248 \end_inset
28249 </cell>
28250 <cell alignment="left" valignment="top" usebox="none">
28251 \begin_inset Text
28252
28253 \begin_layout Plain Layout
28254 hhline
28255 \end_layout
28256
28257 \end_inset
28258 </cell>
28259 <cell alignment="left" valignment="top" usebox="none">
28260 \begin_inset Text
28261
28262 \begin_layout Plain Layout
28263 mathdesign
28264 \end_layout
28265
28266 \end_inset
28267 </cell>
28268 <cell alignment="center" valignment="top" usebox="none">
28269 \begin_inset Text
28270
28271 \begin_layout Plain Layout
28272 pmboxdraw
28273 \end_layout
28274
28275 \end_inset
28276 </cell>
28277 <cell alignment="center" valignment="top" usebox="none">
28278 \begin_inset Text
28279
28280 \begin_layout Plain Layout
28281 soul
28282 \end_layout
28283
28284 \end_inset
28285 </cell>
28286 <cell alignment="center" valignment="top" usebox="none">
28287 \begin_inset Text
28288
28289 \begin_layout Plain Layout
28290 ulem
28291 \end_layout
28292
28293 \end_inset
28294 </cell>
28295 <cell alignment="center" valignment="top" usebox="none">
28296 \begin_inset Text
28297
28298 \begin_layout Plain Layout
28299 yhmath
28300 \end_layout
28301
28302 \end_inset
28303 </cell>
28304 </row>
28305 <row>
28306 <cell alignment="left" valignment="top" usebox="none">
28307 \begin_inset Text
28308
28309 \begin_layout Plain Layout
28310 amsthm
28311 \end_layout
28312
28313 \end_inset
28314 </cell>
28315 <cell alignment="left" valignment="top" usebox="none">
28316 \begin_inset Text
28317
28318 \begin_layout Plain Layout
28319 dvipost
28320 \end_layout
28321
28322 \end_inset
28323 </cell>
28324 <cell alignment="left" valignment="top" usebox="none">
28325 \begin_inset Text
28326
28327 \begin_layout Plain Layout
28328 hyperref
28329 \end_layout
28330
28331 \end_inset
28332 </cell>
28333 <cell alignment="left" valignment="top" usebox="none">
28334 \begin_inset Text
28335
28336 \begin_layout Plain Layout
28337 mathdots
28338 \end_layout
28339
28340 \end_inset
28341 </cell>
28342 <cell alignment="center" valignment="top" usebox="none">
28343 \begin_inset Text
28344
28345 \begin_layout Plain Layout
28346 polyglossia
28347 \end_layout
28348
28349 \end_inset
28350 </cell>
28351 <cell alignment="center" valignment="top" usebox="none">
28352 \begin_inset Text
28353
28354 \begin_layout Plain Layout
28355 splitidx
28356 \end_layout
28357
28358 \end_inset
28359 </cell>
28360 <cell alignment="center" valignment="top" usebox="none">
28361 \begin_inset Text
28362
28363 \begin_layout Plain Layout
28364 undertilde
28365 \end_layout
28366
28367 \end_inset
28368 </cell>
28369 <cell alignment="center" valignment="top" usebox="none">
28370 \begin_inset Text
28371
28372 \begin_layout Plain Layout
28373
28374 \end_layout
28375
28376 \end_inset
28377 </cell>
28378 </row>
28379 <row>
28380 <cell alignment="left" valignment="top" usebox="none">
28381 \begin_inset Text
28382
28383 \begin_layout Plain Layout
28384 array
28385 \end_layout
28386
28387 \end_inset
28388 </cell>
28389 <cell alignment="left" valignment="top" usebox="none">
28390 \begin_inset Text
28391
28392 \begin_layout Plain Layout
28393 endnotes
28394 \end_layout
28395
28396 \end_inset
28397 </cell>
28398 <cell alignment="left" valignment="top" usebox="none">
28399 \begin_inset Text
28400
28401 \begin_layout Plain Layout
28402 ifsym
28403 \end_layout
28404
28405 \end_inset
28406 </cell>
28407 <cell alignment="left" valignment="top" usebox="none">
28408 \begin_inset Text
28409
28410 \begin_layout Plain Layout
28411 mathrsfs
28412 \end_layout
28413
28414 \end_inset
28415 </cell>
28416 <cell alignment="center" valignment="top" usebox="none">
28417 \begin_inset Text
28418
28419 \begin_layout Plain Layout
28420 prettyref
28421 \end_layout
28422
28423 \end_inset
28424 </cell>
28425 <cell alignment="center" valignment="top" usebox="none">
28426 \begin_inset Text
28427
28428 \begin_layout Plain Layout
28429 subfig
28430 \end_layout
28431
28432 \end_inset
28433 </cell>
28434 <cell alignment="center" valignment="top" usebox="none">
28435 \begin_inset Text
28436
28437 \begin_layout Plain Layout
28438 units
28439 \end_layout
28440
28441 \end_inset
28442 </cell>
28443 <cell alignment="center" valignment="top" usebox="none">
28444 \begin_inset Text
28445
28446 \begin_layout Plain Layout
28447
28448 \end_layout
28449
28450 \end_inset
28451 </cell>
28452 </row>
28453 <row>
28454 <cell alignment="left" valignment="top" usebox="none">
28455 \begin_inset Text
28456
28457 \begin_layout Plain Layout
28458 ascii
28459 \end_layout
28460
28461 \end_inset
28462 </cell>
28463 <cell alignment="left" valignment="top" usebox="none">
28464 \begin_inset Text
28465
28466 \begin_layout Plain Layout
28467 enumitem
28468 \end_layout
28469
28470 \end_inset
28471 </cell>
28472 <cell alignment="left" valignment="top" usebox="none">
28473 \begin_inset Text
28474
28475 \begin_layout Plain Layout
28476 ifthen
28477 \end_layout
28478
28479 \end_inset
28480 </cell>
28481 <cell alignment="left" valignment="top" usebox="none">
28482 \begin_inset Text
28483
28484 \begin_layout Plain Layout
28485 mhchem
28486 \end_layout
28487
28488 \end_inset
28489 </cell>
28490 <cell alignment="center" valignment="top" usebox="none">
28491 \begin_inset Text
28492
28493 \begin_layout Plain Layout
28494 pxfonts
28495 \end_layout
28496
28497 \end_inset
28498 </cell>
28499 <cell alignment="center" valignment="top" usebox="none">
28500 \begin_inset Text
28501
28502 \begin_layout Plain Layout
28503 subscript
28504 \end_layout
28505
28506 \end_inset
28507 </cell>
28508 <cell alignment="center" valignment="top" usebox="none">
28509 \begin_inset Text
28510
28511 \begin_layout Plain Layout
28512 url
28513 \end_layout
28514
28515 \end_inset
28516 </cell>
28517 <cell alignment="center" valignment="top" usebox="none">
28518 \begin_inset Text
28519
28520 \begin_layout Plain Layout
28521
28522 \end_layout
28523
28524 \end_inset
28525 </cell>
28526 </row>
28527 <row>
28528 <cell alignment="left" valignment="top" usebox="none">
28529 \begin_inset Text
28530
28531 \begin_layout Plain Layout
28532 bbding
28533 \end_layout
28534
28535 \end_inset
28536 </cell>
28537 <cell alignment="left" valignment="top" usebox="none">
28538 \begin_inset Text
28539
28540 \begin_layout Plain Layout
28541 esint
28542 \end_layout
28543
28544 \end_inset
28545 </cell>
28546 <cell alignment="left" valignment="top" usebox="none">
28547 \begin_inset Text
28548
28549 \begin_layout Plain Layout
28550 jurabib
28551 \end_layout
28552
28553 \end_inset
28554 </cell>
28555 <cell alignment="left" valignment="top" usebox="none">
28556 \begin_inset Text
28557
28558 \begin_layout Plain Layout
28559 multicol
28560 \end_layout
28561
28562 \end_inset
28563 </cell>
28564 <cell alignment="center" valignment="top" usebox="none">
28565 \begin_inset Text
28566
28567 \begin_layout Plain Layout
28568 refstyle
28569 \end_layout
28570
28571 \end_inset
28572 </cell>
28573 <cell alignment="center" valignment="top" usebox="none">
28574 \begin_inset Text
28575
28576 \begin_layout Plain Layout
28577 textcomp
28578 \end_layout
28579
28580 \end_inset
28581 </cell>
28582 <cell alignment="center" valignment="top" usebox="none">
28583 \begin_inset Text
28584
28585 \begin_layout Plain Layout
28586 varioref
28587 \end_layout
28588
28589 \end_inset
28590 </cell>
28591 <cell alignment="center" valignment="top" usebox="none">
28592 \begin_inset Text
28593
28594 \begin_layout Plain Layout
28595
28596 \end_layout
28597
28598 \end_inset
28599 </cell>
28600 </row>
28601 <row>
28602 <cell alignment="center" valignment="top" usebox="none">
28603 \begin_inset Text
28604
28605 \begin_layout Plain Layout
28606 bm
28607 \end_layout
28608
28609 \end_inset
28610 </cell>
28611 <cell alignment="center" valignment="top" usebox="none">
28612 \begin_inset Text
28613
28614 \begin_layout Plain Layout
28615 fancybox
28616 \end_layout
28617
28618 \end_inset
28619 </cell>
28620 <cell alignment="center" valignment="top" usebox="none">
28621 \begin_inset Text
28622
28623 \begin_layout Plain Layout
28624 latexsym
28625 \end_layout
28626
28627 \end_inset
28628 </cell>
28629 <cell alignment="center" valignment="top" usebox="none">
28630 \begin_inset Text
28631
28632 \begin_layout Plain Layout
28633 multirow
28634 \end_layout
28635
28636 \end_inset
28637 </cell>
28638 <cell alignment="center" valignment="top" usebox="none">
28639 \begin_inset Text
28640
28641 \begin_layout Plain Layout
28642 rotating
28643 \end_layout
28644
28645 \end_inset
28646 </cell>
28647 <cell alignment="center" valignment="top" usebox="none">
28648 \begin_inset Text
28649
28650 \begin_layout Plain Layout
28651 textgreek
28652 \end_layout
28653
28654 \end_inset
28655 </cell>
28656 <cell alignment="center" valignment="top" usebox="none">
28657 \begin_inset Text
28658
28659 \begin_layout Plain Layout
28660 verbatim
28661 \end_layout
28662
28663 \end_inset
28664 </cell>
28665 <cell alignment="center" valignment="top" usebox="none">
28666 \begin_inset Text
28667
28668 \begin_layout Plain Layout
28669
28670 \end_layout
28671
28672 \end_inset
28673 </cell>
28674 </row>
28675 </lyxtabular>
28676
28677 \end_inset
28678
28679
28680 \end_layout
28681
28682 \begin_layout Chapter
28683 Names of available colors to be used in layouts
28684 \begin_inset CommandInset label
28685 LatexCommand label
28686 name "chap:Names-of-colors"
28687
28688 \end_inset
28689
28690
28691 \end_layout
28692
28693 \begin_layout Standard
28694 The colors listed below are the standard colors and those that you can adjust
28695  in the \SpecialChar LyX
28696  preferences.
28697 \end_layout
28698
28699 \begin_layout Section
28700 Color functions
28701 \end_layout
28702
28703 \begin_layout Standard
28704 The following are no real colors, but rather act on color definitions:
28705 \end_layout
28706
28707 \begin_layout Description
28708 ignore The color is ignored
28709 \end_layout
28710
28711 \begin_layout Description
28712 inherit The color is inherited
28713 \end_layout
28714
28715 \begin_layout Description
28716 none
28717 \family roman
28718 \series medium
28719 \shape up
28720 \size normal
28721 \emph off
28722 \bar no
28723 \strikeout off
28724 \uuline off
28725 \uwave off
28726 \noun off
28727 \color none
28728  No particular color – clear or default
28729 \end_layout
28730
28731 \begin_layout Section
28732 Static colors
28733 \end_layout
28734
28735 \begin_layout Standard
28736 These are fixed colors that cannot me customized:
28737 \end_layout
28738
28739 \begin_layout Description
28740 black
28741 \end_layout
28742
28743 \begin_layout Description
28744 white
28745 \end_layout
28746
28747 \begin_layout Description
28748 blue
28749 \end_layout
28750
28751 \begin_layout Description
28752 brown
28753 \end_layout
28754
28755 \begin_layout Description
28756 cyan
28757 \end_layout
28758
28759 \begin_layout Description
28760 darkgray
28761 \end_layout
28762
28763 \begin_layout Description
28764 gray
28765 \end_layout
28766
28767 \begin_layout Description
28768 green
28769 \end_layout
28770
28771 \begin_layout Description
28772 lightgray
28773 \end_layout
28774
28775 \begin_layout Description
28776 lime
28777 \end_layout
28778
28779 \begin_layout Description
28780 magenta
28781 \end_layout
28782
28783 \begin_layout Description
28784 olive
28785 \end_layout
28786
28787 \begin_layout Description
28788 orange
28789 \end_layout
28790
28791 \begin_layout Description
28792 pink
28793 \end_layout
28794
28795 \begin_layout Description
28796 purple
28797 \end_layout
28798
28799 \begin_layout Description
28800 red
28801 \end_layout
28802
28803 \begin_layout Description
28804 teal
28805 \end_layout
28806
28807 \begin_layout Description
28808 violet
28809 \end_layout
28810
28811 \begin_layout Description
28812 yellow
28813 \end_layout
28814
28815 \begin_layout Section
28816 Dynamic colors
28817 \end_layout
28818
28819 \begin_layout Standard
28820 These are the colors allocated to specific elements in 
28821 \begin_inset Info
28822 type  "menu"
28823 arg   "dialog-show prefs"
28824 \end_inset
28825
28826 :
28827 \end_layout
28828
28829 \begin_layout Description
28830 added_space Added space color
28831 \end_layout
28832
28833 \begin_layout Description
28834 addedtext Added text color
28835 \end_layout
28836
28837 \begin_layout Description
28838 appendix Appendix marker color
28839 \end_layout
28840
28841 \begin_layout Description
28842 background Background color
28843 \end_layout
28844
28845 \begin_layout Description
28846 bottomarea Bottom area color
28847 \end_layout
28848
28849 \begin_layout Description
28850 branchlabel Label color for branches
28851 \end_layout
28852
28853 \begin_layout Description
28854 buttonbg Color used for button background
28855 \end_layout
28856
28857 \begin_layout Description
28858 buttonframe Color for inset button frames
28859 \end_layout
28860
28861 \begin_layout Description
28862 buttonhoverbg Color used for button background under focus
28863 \end_layout
28864
28865 \begin_layout Description
28866 changebar Changebar color
28867 \end_layout
28868
28869 \begin_layout Description
28870 changedtextauthor1 Changed text color author 1
28871 \end_layout
28872
28873 \begin_layout Description
28874 changedtextauthor2 Changed text color author 2
28875 \end_layout
28876
28877 \begin_layout Description
28878 changedtextauthor3 Changed text color author 3
28879 \end_layout
28880
28881 \begin_layout Description
28882 changedtextauthor4 Changed text color author 4
28883 \end_layout
28884
28885 \begin_layout Description
28886 changedtextauthor5 Changed text color author 5
28887 \end_layout
28888
28889 \begin_layout Description
28890 collapsible Collapsible insets text color
28891 \end_layout
28892
28893 \begin_layout Description
28894 collapsibleframe Collapsible insets framecolor
28895 \end_layout
28896
28897 \begin_layout Description
28898 command Text color for command insets
28899 \end_layout
28900
28901 \begin_layout Description
28902 commandbg Background color for command insets
28903 \end_layout
28904
28905 \begin_layout Description
28906 commandframe Frame color for command insets
28907 \end_layout
28908
28909 \begin_layout Description
28910 comment Label color for comments
28911 \end_layout
28912
28913 \begin_layout Description
28914 commentbg Background color of comments
28915 \end_layout
28916
28917 \begin_layout Description
28918 cursor Cursor color
28919 \end_layout
28920
28921 \begin_layout Description
28922 deletedtext Deleted text color
28923 \end_layout
28924
28925 \begin_layout Description
28926 deletedtextmodifier Deleted text modifying color
28927 \end_layout
28928
28929 \begin_layout Description
28930 depthbar Color for the depth bars in the margin
28931 \end_layout
28932
28933 \begin_layout Description
28934 eolmarker End of line marker color
28935 \end_layout
28936
28937 \begin_layout Description
28938 error Color of the \SpecialChar LaTeX
28939  error box
28940 \end_layout
28941
28942 \begin_layout Description
28943 footlabel Label color for footnotes
28944 \end_layout
28945
28946 \begin_layout Description
28947 foreground Foreground color
28948 \end_layout
28949
28950 \begin_layout Description
28951 graphicsbg Graphics inset background color
28952 \end_layout
28953
28954 \begin_layout Description
28955 greyedoutbg Background color of greyedout inset
28956 \end_layout
28957
28958 \begin_layout Description
28959 greyedoutlabel Label color for greyedout insets
28960 \end_layout
28961
28962 \begin_layout Description
28963 greyedouttext Color for greyedout inset text
28964 \end_layout
28965
28966 \begin_layout Description
28967 indexlabel Label color for index insets
28968 \end_layout
28969
28970 \begin_layout Description
28971 inlinecompletion Inline completion color
28972 \end_layout
28973
28974 \begin_layout Description
28975 insetbg Inset marker background color
28976 \end_layout
28977
28978 \begin_layout Description
28979 insetframe Inset marker frame color
28980 \end_layout
28981
28982 \begin_layout Description
28983 language Color for marking foreign language words
28984 \end_layout
28985
28986 \begin_layout Description
28987 latex Text color in \SpecialChar LaTeX
28988  mode
28989 \end_layout
28990
28991 \begin_layout Description
28992 listingsbg Background color of listings inset
28993 \end_layout
28994
28995 \begin_layout Description
28996 marginlabel Label color for margin notes
28997 \end_layout
28998
28999 \begin_layout Description
29000 math Math inset text color
29001 \end_layout
29002
29003 \begin_layout Description
29004 mathbg Math inset background color
29005 \end_layout
29006
29007 \begin_layout Description
29008 mathcorners Math inset frame color not under focus
29009 \end_layout
29010
29011 \begin_layout Description
29012 mathframe Math inset frame color under focus
29013 \end_layout
29014
29015 \begin_layout Description
29016 mathline Math line color
29017 \end_layout
29018
29019 \begin_layout Description
29020 mathmacrobg Macro math inset background color
29021 \end_layout
29022
29023 \begin_layout Description
29024 mathmacroblend Macro math blended color
29025 \end_layout
29026
29027 \begin_layout Description
29028 mathmacroframe Macro math frame color
29029 \end_layout
29030
29031 \begin_layout Description
29032 mathmacrohoverbg Macro math inset background color hovered
29033 \end_layout
29034
29035 \begin_layout Description
29036 mathmacrolabel Macro math label color
29037 \end_layout
29038
29039 \begin_layout Description
29040 mathmacronewarg Macro template color for new parameters
29041 \end_layout
29042
29043 \begin_layout Description
29044 mathmacrooldarg Macro template color for old parameters
29045 \end_layout
29046
29047 \begin_layout Description
29048 newpage New page color
29049 \end_layout
29050
29051 \begin_layout Description
29052 nonunique_inlinecompletion Inline completion color for the non-unique part
29053 \end_layout
29054
29055 \begin_layout Description
29056 note Label color for notes
29057 \end_layout
29058
29059 \begin_layout Description
29060 notebg Background color of notes
29061 \end_layout
29062
29063 \begin_layout Description
29064 pagebreak Page break/line break color
29065 \end_layout
29066
29067 \begin_layout Description
29068 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29069 \end_layout
29070
29071 \begin_layout Description
29072 phantomtext Text color for phantom insets
29073 \end_layout
29074
29075 \begin_layout Description
29076 preview The color used for previews
29077 \end_layout
29078
29079 \begin_layout Description
29080 previewframe Preview frame color
29081 \end_layout
29082
29083 \begin_layout Description
29084 regexpframe Color for regexp frame
29085 \end_layout
29086
29087 \begin_layout Description
29088 scroll Color that indicates when a row can be scrolled 
29089 \end_layout
29090
29091 \begin_layout Description
29092 selection Background color of selected text
29093 \end_layout
29094
29095 \begin_layout Description
29096 selectiontext Foreground color of selected text
29097 \end_layout
29098
29099 \begin_layout Description
29100 shadedbg Background color of shaded box
29101 \end_layout
29102
29103 \begin_layout Description
29104 special Special chars text color
29105 \end_layout
29106
29107 \begin_layout Description
29108 tabularline Table line color
29109 \end_layout
29110
29111 \begin_layout Description
29112 tabularonoffline Table line color
29113 \end_layout
29114
29115 \begin_layout Description
29116 urllabel Label color for URL insets
29117 \end_layout
29118
29119 \begin_layout Description
29120 urltext Color for URL inset text
29121 \end_layout
29122
29123 \end_body
29124 \end_document