]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Update \origin specifications
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 567
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /buildlyxdir/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 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \author -495245474 "Jean-Marc Lasgouttes"
134 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 Customizing \SpecialChar LyX
141 : Features for the Advanced User
142 \end_layout
143
144 \begin_layout Author
145 by the \SpecialChar LyX
146  Team
147 \begin_inset Foot
148 status collapsed
149
150 \begin_layout Plain Layout
151 \noindent
152 If you have comments or error corrections, please send them to the \SpecialChar LyX
153  Documentatio
154 n mailing list, 
155 \begin_inset CommandInset href
156 LatexCommand href
157 target "lyx-docs@lists.lyx.org"
158 type "mailto:"
159 literal "false"
160
161 \end_inset
162
163 .
164  Include 
165 \begin_inset Quotes eld
166 \end_inset
167
168 [Customization]
169 \begin_inset Quotes erd
170 \end_inset
171
172  in the subject header, and please cc the current maintainer of this file,
173  Richard Heck <rgheck@comcast.net>.
174 \end_layout
175
176 \end_inset
177
178
179 \begin_inset Newline newline
180 \end_inset
181
182
183 \begin_inset Newline newline
184 \end_inset
185
186 Version 2.3.x 
187 \end_layout
188
189 \begin_layout Standard
190 \begin_inset CommandInset toc
191 LatexCommand tableofcontents
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset Note Note
200 status open
201
202 \begin_layout Plain Layout
203 Please use change tracking when modifying this document.
204  This makes it easier for our translators to recognize things that have
205  been changed, and it helps the maintainer keep up-to-date with what's been
206  done.
207 \end_layout
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 Introduction
216 \end_layout
217
218 \begin_layout Standard
219 This manual covers the customization features present in \SpecialChar LyX
220 .
221  In it, we discuss issues like keyboard shortcuts, screen previewing options,
222  printer options, sending commands to \SpecialChar LyX
223  via the \SpecialChar LyX
224  Server, internationalization,
225  installing new \SpecialChar LaTeX
226  classes and \SpecialChar LyX
227  layouts, etc.
228  We can't possibly hope to touch on everything you can change—our developers
229  add new features faster than we can document them—but we will explain the
230  most common customizations and hopefully point you in the right direction
231  for some of the more obscure ones.
232 \end_layout
233
234 \begin_layout Standard
235 \begin_inset Branch OutDated
236 inverted 0
237 status collapsed
238
239 \begin_layout Standard
240 Information from previous versions of this document that now seems to be
241  outdated is contained in the OutDated branch of this document.
242  By default, this information will not appear in the \SpecialChar LaTeX
243  output.
244 \end_layout
245
246 \end_inset
247
248
249 \end_layout
250
251 \begin_layout Chapter
252 \SpecialChar LyX
253  configuration files
254 \end_layout
255
256 \begin_layout Standard
257 This chapter aims to help you to find your way through the \SpecialChar LyX
258  configuration
259  files.
260  Before continuing to read this chapter, you should find out where your
261  \SpecialChar LyX
262  library and user directories are by using 
263 \begin_inset Flex Noun
264 status collapsed
265
266 \begin_layout Plain Layout
267 Help\SpecialChar menuseparator
268 About
269 \begin_inset space ~
270 \end_inset
271
272 LyX
273 \end_layout
274
275 \end_inset
276
277 .
278  The library directory is the place where \SpecialChar LyX
279  places its system-wide configuration
280  files; the user directory is where you can place your modified versions.
281  We will call the former 
282 \begin_inset Flex Code
283 status collapsed
284
285 \begin_layout Plain Layout
286 LyXDir
287 \end_layout
288
289 \end_inset
290
291  and the latter 
292 \begin_inset Flex Noun
293 status collapsed
294
295 \begin_layout Plain Layout
296 UserDir
297 \end_layout
298
299 \end_inset
300
301  in the remainder of this document.
302  
303 \end_layout
304
305 \begin_layout Section
306 What's in 
307 \begin_inset Flex Code
308 status collapsed
309
310 \begin_layout Plain Layout
311 LyXDir
312 \end_layout
313
314 \end_inset
315
316 ?
317 \end_layout
318
319 \begin_layout Standard
320 \begin_inset Flex Code
321 status collapsed
322
323 \begin_layout Plain Layout
324 LyXDir
325 \end_layout
326
327 \end_inset
328
329  and its sub-directories contain a number of files and that can be used
330  to customize \SpecialChar LyX
331 's behavior.
332  You can change many of these files from within \SpecialChar LyX
333  itself through the 
334 \begin_inset Flex Noun
335 status collapsed
336
337 \begin_layout Plain Layout
338 Tools\SpecialChar menuseparator
339 Preferences
340 \end_layout
341
342 \end_inset
343
344  dialog.
345  Most customization that you will want to do in \SpecialChar LyX
346  is possible through this
347  dialog.
348  However, many other inner aspects of \SpecialChar LyX
349  can be customized by modifying the
350  files in 
351 \begin_inset Flex Code
352 status collapsed
353
354 \begin_layout Plain Layout
355 LyXDir
356 \end_layout
357
358 \end_inset
359
360 .
361  These files fall in different categories, described in the following subsection
362 s.
363 \end_layout
364
365 \begin_layout Subsection
366 Automatically generated files
367 \end_layout
368
369 \begin_layout Standard
370 The files, which are to be found in 
371 \begin_inset Flex Noun
372 status collapsed
373
374 \begin_layout Plain Layout
375 UserDir
376 \end_layout
377
378 \end_inset
379
380 , are generated when you configure \SpecialChar LyX
381 .
382  They contain various default values that are guessed by inspection.
383  In general, it is not a good idea to modify them, since they might be overwritt
384 en at any time.
385 \end_layout
386
387 \begin_layout Labeling
388 \labelwidthstring 00.00.0000
389 \begin_inset Flex Code
390 status collapsed
391
392 \begin_layout Plain Layout
393 lyxrc.defaults
394 \end_layout
395
396 \end_inset
397
398  contains defaults for various commands.
399 \end_layout
400
401 \begin_layout Labeling
402 \labelwidthstring 00.00.0000
403 \begin_inset Flex Code
404 status collapsed
405
406 \begin_layout Plain Layout
407 packages.lst
408 \end_layout
409
410 \end_inset
411
412  contains the list of packages that have been recognized by \SpecialChar LyX
413 .
414  It is currently unused by the \SpecialChar LyX
415  program itself, but the information extracted,
416  and more, is made available with 
417 \begin_inset Flex Noun
418 status collapsed
419
420 \begin_layout Plain Layout
421 Help\SpecialChar menuseparator
422 \SpecialChar LaTeX
423
424 \begin_inset space ~
425 \end_inset
426
427 Configuration
428 \end_layout
429
430 \end_inset
431
432 .
433 \end_layout
434
435 \begin_layout Labeling
436 \labelwidthstring 00.00.0000
437 \begin_inset Flex Code
438 status collapsed
439
440 \begin_layout Plain Layout
441 textclass.lst
442 \end_layout
443
444 \end_inset
445
446  the list of text classes that have been found in your 
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 layout/
452 \end_layout
453
454 \end_inset
455
456  directories, along with the associated \SpecialChar LaTeX
457  document class and their description.
458 \end_layout
459
460 \begin_layout Labeling
461 \labelwidthstring 00.00.0000
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 lyxmodules.lst
467 \end_layout
468
469 \end_inset
470
471  the list of layout modules found in your 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 layout/
477 \end_layout
478
479 \end_inset
480
481  directories
482 \end_layout
483
484 \begin_layout Labeling
485 \labelwidthstring 00.00.0000
486 \begin_inset Flex Code
487 status collapsed
488
489 \begin_layout Plain Layout
490 *files.lst
491 \end_layout
492
493 \end_inset
494
495  lists of various sorts of \SpecialChar LaTeX
496 -related files found on your system
497 \end_layout
498
499 \begin_layout Labeling
500 \labelwidthstring 00.00.0000
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505 doc/\SpecialChar LaTeX
506 Config.lyx
507 \end_layout
508
509 \end_inset
510
511  is automatically generated during configuration from the file 
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 \SpecialChar LaTeX
517 Config.lyx.in
518 \end_layout
519
520 \end_inset
521
522 .
523  It contains information on your \SpecialChar LaTeX
524  configuration.
525 \end_layout
526
527 \begin_layout Subsection
528 Directories
529 \end_layout
530
531 \begin_layout Standard
532 These directories are duplicated between 
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 LyXDir
538 \end_layout
539
540 \end_inset
541
542  and 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 UserDir
548 \end_layout
549
550 \end_inset
551
552 .
553  If a particular files exists in both places, the one in 
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 UserDir
559 \end_layout
560
561 \end_inset
562
563  will be used.
564 \end_layout
565
566 \begin_layout Labeling
567 \labelwidthstring 00.00.0000
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 bind/
573 \end_layout
574
575 \end_inset
576
577  this directory contains files with the extension 
578 \begin_inset Flex Code
579 status collapsed
580
581 \begin_layout Plain Layout
582 .bind
583 \end_layout
584
585 \end_inset
586
587  that define the keybindings used in \SpecialChar LyX
588 .
589  If there exists an internationalized version of the bind file named 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 $LANG_xxx.bind
595 \end_layout
596
597 \end_inset
598
599 , that will be used first.
600 \end_layout
601
602 \begin_layout Labeling
603 \labelwidthstring 00.00.0000
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608 citeengines/
609 \end_layout
610
611 \end_inset
612
613  contains files with the extension 
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618 .citeengine
619 \end_layout
620
621 \end_inset
622
623  which define the diverse citation possibilities (natbib, biblatex etc.).
624  See 
625 \begin_inset CommandInset ref
626 LatexCommand ref
627 reference "subsec:Cite-Engine-Files"
628 plural "false"
629 caps "false"
630 noprefix "false"
631
632 \end_inset
633
634  for details.
635 \end_layout
636
637 \begin_layout Labeling
638 \labelwidthstring 00.00.0000
639 \begin_inset Flex Code
640 status collapsed
641
642 \begin_layout Plain Layout
643 clipart/
644 \end_layout
645
646 \end_inset
647
648  contains graphics files that can be included in documents.
649  
650 \end_layout
651
652 \begin_layout Labeling
653 \labelwidthstring 00.00.0000
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 doc/
659 \end_layout
660
661 \end_inset
662
663  contains \SpecialChar LyX
664  documentation files (including the one you are currently reading).
665  The file 
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 \SpecialChar LaTeX
671 Config.lyx
672 \end_layout
673
674 \end_inset
675
676  deserves special attention, as noted above.
677  The internationalized help docs are in subdirectories 
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/xx
683 \end_layout
684
685 \end_inset
686
687  where 
688 \begin_inset Quotes eld
689 \end_inset
690
691 xx
692 \begin_inset Quotes erd
693 \end_inset
694
695  is the ISO language code.
696  See 
697 \begin_inset CommandInset ref
698 LatexCommand ref
699 reference "cha:Internationalizing-LyX"
700
701 \end_inset
702
703  for details.
704 \end_layout
705
706 \begin_layout Labeling
707 \labelwidthstring 00.00.0000
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712 examples/
713 \end_layout
714
715 \end_inset
716
717  contains example files that explain how to use some features.
718  In the file browser, press the 
719 \begin_inset Flex Noun
720 status collapsed
721
722 \begin_layout Plain Layout
723 Examples
724 \end_layout
725
726 \end_inset
727
728  button to get there.
729 \end_layout
730
731 \begin_layout Labeling
732 \labelwidthstring 00.00.0000
733 \begin_inset Flex Code
734 status collapsed
735
736 \begin_layout Plain Layout
737 images/
738 \end_layout
739
740 \end_inset
741
742  contains image files that are used by the 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Document
748 \end_layout
749
750 \end_inset
751
752  dialog.
753  In addition, it also contains the individual icons used in the toolbar
754  and the banners that can be shown when \SpecialChar LyX
755  is launched.
756 \end_layout
757
758 \begin_layout Labeling
759 \labelwidthstring 00.00.0000
760 \begin_inset Flex Code
761 status collapsed
762
763 \begin_layout Plain Layout
764 kbd/
765 \end_layout
766
767 \end_inset
768
769  contains keyboard keymapping files.
770  See 
771 \begin_inset CommandInset ref
772 LatexCommand ref
773 reference "sec:International-Keymap-Stuff"
774
775 \end_inset
776
777  for details.
778 \end_layout
779
780 \begin_layout Labeling
781 \labelwidthstring 00.00.0000
782 \begin_inset Flex Code
783 status collapsed
784
785 \begin_layout Plain Layout
786 layouts/
787 \end_layout
788
789 \end_inset
790
791  contains the text class and module files described in 
792 \begin_inset CommandInset ref
793 LatexCommand ref
794 reference "cha:Installing-New-Document"
795
796 \end_inset
797
798 .
799 \end_layout
800
801 \begin_layout Labeling
802 \labelwidthstring 00.00.0000
803 \begin_inset Flex Code
804 status collapsed
805
806 \begin_layout Plain Layout
807 lyx2lyx
808 \end_layout
809
810 \end_inset
811
812  contains the 
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 lyx2lyx
818 \end_layout
819
820 \end_inset
821
822  Python scripts used to convert between \SpecialChar LyX
823  versions.
824  These can be run from the command line if, say, you want to batch-convert
825  files.
826 \end_layout
827
828 \begin_layout Labeling
829 \labelwidthstring 00.00.0000
830 \begin_inset Flex Code
831 status collapsed
832
833 \begin_layout Plain Layout
834 scripts/
835 \end_layout
836
837 \end_inset
838
839  contains some files that demonstrate the capabilities of the 
840 \begin_inset Flex Noun
841 status collapsed
842
843 \begin_layout Plain Layout
844 External
845 \begin_inset space ~
846 \end_inset
847
848 Template
849 \end_layout
850
851 \end_inset
852
853  feature.
854  Also contains some scripts used by \SpecialChar LyX
855  itself.
856 \end_layout
857
858 \begin_layout Labeling
859 \labelwidthstring 00.00.0000
860 \begin_inset Flex Code
861 status collapsed
862
863 \begin_layout Plain Layout
864 templates/
865 \end_layout
866
867 \end_inset
868
869  contains the standard \SpecialChar LyX
870  template files described in 
871 \begin_inset CommandInset ref
872 LatexCommand ref
873 reference "subsec:Creating-Templates"
874
875 \end_inset
876
877 .
878 \end_layout
879
880 \begin_layout Labeling
881 \labelwidthstring 00.00.0000
882 \begin_inset Flex Code
883 status collapsed
884
885 \begin_layout Plain Layout
886 ui/
887 \end_layout
888
889 \end_inset
890
891  contains files with the extension 
892 \begin_inset Flex Code
893 status collapsed
894
895 \begin_layout Plain Layout
896 .ui
897 \end_layout
898
899 \end_inset
900
901  that define the user interface to \SpecialChar LyX
902 .
903  That is, the files define which items appear in which menus and the items
904  appearing on the toolbar.
905 \end_layout
906
907 \begin_layout Labeling
908 \labelwidthstring 00.00.0000
909 \begin_inset Flex Code
910 status collapsed
911
912 \begin_layout Plain Layout
913 xtemplates/
914 \end_layout
915
916 \end_inset
917
918  contains files with the extension 
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 .xtemplate
924 \end_layout
925
926 \end_inset
927
928  which define the templates for the insertion of external material to a
929  \SpecialChar LyX
930  document; see 
931 \begin_inset CommandInset ref
932 LatexCommand ref
933 reference "chap:Including-External-Material"
934
935 \end_inset
936
937 .
938 \end_layout
939
940 \begin_layout Subsection
941 Files you don't want to modify
942 \end_layout
943
944 \begin_layout Standard
945 These files are used internally by \SpecialChar LyX
946  and you generally do not need to modify
947  them unless you are a developer.
948 \end_layout
949
950 \begin_layout Labeling
951 \labelwidthstring 00.00.0000
952 \begin_inset Flex Code
953 status collapsed
954
955 \begin_layout Plain Layout
956 CREDITS
957 \end_layout
958
959 \end_inset
960
961  this file contains the list of \SpecialChar LyX
962  developers.
963  The contents are displayed with the menu entry 
964 \begin_inset Flex Noun
965 status collapsed
966
967 \begin_layout Plain Layout
968 Help\SpecialChar menuseparator
969 About
970 \begin_inset space ~
971 \end_inset
972
973 LyX
974 \end_layout
975
976 \end_inset
977
978 .
979 \end_layout
980
981 \begin_layout Labeling
982 \labelwidthstring 00.00.0000
983 \begin_inset Flex Code
984 status collapsed
985
986 \begin_layout Plain Layout
987 chkconfig.ltx
988 \end_layout
989
990 \end_inset
991
992  this is a \SpecialChar LaTeX
993  script used during the configuration process.
994  Do not run directly.
995 \end_layout
996
997 \begin_layout Labeling
998 \labelwidthstring 00.00.0000
999 \begin_inset Flex Code
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003 configure.py
1004 \end_layout
1005
1006 \end_inset
1007
1008  this is a Python script that is used to re-configure \SpecialChar LyX
1009 .
1010  It creates configuration files in the directory it was run from.
1011 \end_layout
1012
1013 \begin_layout Subsection
1014 Other files needing a line or two
1015 \end_layout
1016
1017 \begin_layout Labeling
1018 \labelwidthstring 00.00.0000
1019 \begin_inset Flex Code
1020 status collapsed
1021
1022 \begin_layout Plain Layout
1023 encodings
1024 \end_layout
1025
1026 \end_inset
1027
1028  this contains tables describing how different character encodings can be
1029  mapped to Unicode
1030 \end_layout
1031
1032 \begin_layout Labeling
1033 \labelwidthstring 00.00.0000
1034 \begin_inset Flex Code
1035 status collapsed
1036
1037 \begin_layout Plain Layout
1038 languages
1039 \end_layout
1040
1041 \end_inset
1042
1043  this file contains a list of all the languages currently supported by \SpecialChar LyX
1044 .
1045 \end_layout
1046
1047 \begin_layout Labeling
1048 \labelwidthstring 00.00.0000
1049 \begin_inset Flex Code
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 latexfonts
1054 \end_layout
1055
1056 \end_inset
1057
1058  contains information about the supported fonts.
1059 \end_layout
1060
1061 \begin_layout Labeling
1062 \labelwidthstring 00.00.0000
1063 \begin_inset Flex Code
1064 status collapsed
1065
1066 \begin_layout Plain Layout
1067 layouttranslations
1068 \end_layout
1069
1070 \end_inset
1071
1072  this file contains translations for internationalized paragraph styles
1073  (see 
1074 \begin_inset CommandInset ref
1075 LatexCommand ref
1076 reference "subsec:I18n"
1077
1078 \end_inset
1079
1080 ).
1081 \end_layout
1082
1083 \begin_layout Labeling
1084 \labelwidthstring 00.00.0000
1085 \begin_inset Flex Code
1086 status collapsed
1087
1088 \begin_layout Plain Layout
1089 unicodesymbols
1090 \end_layout
1091
1092 \end_inset
1093
1094  this file contains information about Unicode-encoded glyphs and the way
1095  they are supported by \SpecialChar LyX
1096  via \SpecialChar LaTeX
1097 .
1098 \end_layout
1099
1100 \begin_layout Section
1101 Your local configuration directory
1102 \end_layout
1103
1104 \begin_layout Standard
1105 Even if you are using \SpecialChar LyX
1106  as an unprivileged user, you might want to change
1107  \SpecialChar LyX
1108  configuration for your own use.
1109  The 
1110 \begin_inset Flex Code
1111 status collapsed
1112
1113 \begin_layout Plain Layout
1114 UserDir
1115 \end_layout
1116
1117 \end_inset
1118
1119  directory contains all your personal configuration files.
1120  This is the directory described as 
1121 \begin_inset Quotes eld
1122 \end_inset
1123
1124 user directory
1125 \begin_inset Quotes erd
1126 \end_inset
1127
1128  in 
1129 \begin_inset Flex Noun
1130 status collapsed
1131
1132 \begin_layout Plain Layout
1133 Help\SpecialChar menuseparator
1134 About
1135 \begin_inset space ~
1136 \end_inset
1137
1138 LyX
1139 \end_layout
1140
1141 \end_inset
1142
1143 .
1144  This directory is used as a mirror of 
1145 \begin_inset Flex Code
1146 status collapsed
1147
1148 \begin_layout Plain Layout
1149 LyXDir
1150 \end_layout
1151
1152 \end_inset
1153
1154 , which means that every file in 
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 UserDir
1160 \end_layout
1161
1162 \end_inset
1163
1164  is a replacement for the corresponding file in 
1165 \begin_inset Flex Code
1166 status collapsed
1167
1168 \begin_layout Plain Layout
1169 LyXDir
1170 \end_layout
1171
1172 \end_inset
1173
1174 .
1175  Any configuration file described in the above sections can be placed either
1176  in the system-wide directory, in which case it will affect all users, or
1177  in your local directory for your own use.
1178 \end_layout
1179
1180 \begin_layout Standard
1181 To make things clearer, let's provide a few examples:
1182 \end_layout
1183
1184 \begin_layout Itemize
1185 The preferences set in the 
1186 \begin_inset Flex Noun
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 Tools\SpecialChar menuseparator
1191 Preferences
1192 \end_layout
1193
1194 \end_inset
1195
1196  dialog are saved to a file 
1197 \begin_inset Flex Code
1198 status collapsed
1199
1200 \begin_layout Plain Layout
1201 preferences
1202 \end_layout
1203
1204 \end_inset
1205
1206  in 
1207 \begin_inset Flex Code
1208 status collapsed
1209
1210 \begin_layout Plain Layout
1211 UserDir
1212 \end_layout
1213
1214 \end_inset
1215
1216 .
1217 \end_layout
1218
1219 \begin_layout Itemize
1220 When you reconfigure using 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 Tools\SpecialChar menuseparator
1226 Reconfigure
1227 \end_layout
1228
1229 \end_inset
1230
1231 , \SpecialChar LyX
1232  runs the 
1233 \begin_inset Flex Code
1234 status collapsed
1235
1236 \begin_layout Plain Layout
1237 configure.py
1238 \end_layout
1239
1240 \end_inset
1241
1242  script, and the resulting files are written in your local configuration
1243  directory.
1244  This means that any additional text class file that you might have added
1245  in 
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 UserDir/layouts
1251 \end_layout
1252
1253 \end_inset
1254
1255  will be added to the list of classes in the 
1256 \begin_inset Flex Noun
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 Document\SpecialChar menuseparator
1261 Settings
1262 \end_layout
1263
1264 \end_inset
1265
1266  dialog.
1267 \end_layout
1268
1269 \begin_layout Itemize
1270 If you get some updated documentation from \SpecialChar LyX
1271  ftp site and cannot install
1272  it because you do not have sysadmin rights on your system, you can just
1273  copy the files in 
1274 \begin_inset Flex Code
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 UserDir/doc/
1279 \end_layout
1280
1281 \end_inset
1282
1283  and the items in the 
1284 \begin_inset Flex Noun
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 Help
1289 \end_layout
1290
1291 \end_inset
1292
1293  menu will open them!
1294 \end_layout
1295
1296 \begin_layout Section
1297 Running \SpecialChar LyX
1298  with multiple configurations
1299 \end_layout
1300
1301 \begin_layout Standard
1302 The configuration freedom of the local configuration directory may not suffice
1303  if you want to have more than one configuration at your disposal.
1304  For example, you may want to be use different key bindings or printer settings
1305  at different times.
1306  You can achieve this by having several such directories.
1307  You then specify which directory to use at run-time.
1308 \end_layout
1309
1310 \begin_layout Standard
1311 Invoking \SpecialChar LyX
1312  with the command line switch 
1313 \begin_inset Flex Code
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 -userdir
1318 \end_layout
1319
1320 \end_inset
1321
1322  
1323 \emph on
1324 <some directory>
1325 \emph default
1326  instructs the program to read the configuration from that directory, and
1327  not from the default directory.
1328  (You can determine the default directory by running \SpecialChar LyX
1329  without the 
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 -userdir
1335 \end_layout
1336
1337 \end_inset
1338
1339  switch.) If the specified directory does not exist, \SpecialChar LyX
1340  offers to create it
1341  for you, just like it does for the default directory on the first time
1342  you run the program.
1343  You can modify the configuration options in this additional user directory
1344  exactly as you would for the default directory.
1345  These directories are completely independent (but read on).
1346  Note that setting the environment variable 
1347 \begin_inset Flex Code
1348 status collapsed
1349
1350 \begin_layout Plain Layout
1351 LYX_USERDIR_VER
1352 \end_layout
1353
1354 \end_inset
1355
1356  to some value has exactly the same effect.
1357 \end_layout
1358
1359 \begin_layout Standard
1360 Having several configurations also requires more maintenance: if you want
1361  to add a new layout to 
1362 \begin_inset Flex Code
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366 NewUserDir/layouts
1367 \end_layout
1368
1369 \end_inset
1370
1371  which you want available from all your configurations, you must add it
1372  to each directory separately.
1373  You can avoid this with the following trick: after \SpecialChar LyX
1374  creates the additional
1375  directory, most of the subdirectories (see above) are empty.
1376  If you want the new configuration to mirror an existing one, replace the
1377  empty subdirectory with a symbolic link to the matching subdirectory in
1378  the existing configuration.
1379  Take care with the 
1380 \begin_inset Flex Code
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 doc/
1385 \end_layout
1386
1387 \end_inset
1388
1389  subdirectory, however, since it contains a file written by the configuration
1390  script (also accessible through 
1391 \begin_inset Flex Noun
1392 status collapsed
1393
1394 \begin_layout Plain Layout
1395 Tools\SpecialChar menuseparator
1396 Reconfigure
1397 \end_layout
1398
1399 \end_inset
1400
1401 ) which is configuration-specific.
1402 \end_layout
1403
1404 \begin_layout Chapter
1405 The Preferences dialog
1406 \end_layout
1407
1408 \begin_layout Standard
1409 All options of the preferences dialog are described in the Appendix 
1410 \emph on
1411 The Preferences Dialog
1412 \emph default
1413  in the 
1414 \emph on
1415 User's Guide
1416 \emph default
1417 .
1418  For some options you might find here more details.
1419 \end_layout
1420
1421 \begin_layout Section
1422 Formats
1423 \begin_inset CommandInset label
1424 LatexCommand label
1425 name "sec:Formats"
1426
1427 \end_inset
1428
1429
1430 \end_layout
1431
1432 \begin_layout Standard
1433 The first step is to define your file formats if they are not already defined.
1434  To do so, open the 
1435 \begin_inset Flex Noun
1436 status collapsed
1437
1438 \begin_layout Plain Layout
1439 Tools\SpecialChar menuseparator
1440 Preferences
1441 \end_layout
1442
1443 \end_inset
1444
1445  dialog.
1446  Under 
1447 \begin_inset Flex Noun
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 File Handling\SpecialChar menuseparator
1452 File formats
1453 \end_layout
1454
1455 \end_inset
1456
1457  press the 
1458 \begin_inset Flex Noun
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 New
1463 \end_layout
1464
1465 \end_inset
1466
1467  button to define your new format.
1468  The 
1469 \begin_inset Flex Noun
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 Format
1474 \end_layout
1475
1476 \end_inset
1477
1478  field contains the name used to identify the format in the GUI.
1479  The 
1480 \begin_inset Flex Noun
1481 status collapsed
1482
1483 \begin_layout Plain Layout
1484 Short Name
1485 \end_layout
1486
1487 \end_inset
1488
1489  is used to identify the format internally.
1490  You will also need to enter a file extension.
1491  These are all required.
1492  The optional 
1493 \begin_inset Flex Noun
1494 status collapsed
1495
1496 \begin_layout Plain Layout
1497 Shortcut
1498 \end_layout
1499
1500 \end_inset
1501
1502  field is used to provide a keyboard shortcut on the menus.
1503  (For example, pressing 
1504 \begin_inset Flex Noun
1505 status collapsed
1506
1507 \begin_layout Plain Layout
1508 Ctrl+D
1509 \end_layout
1510
1511 \end_inset
1512
1513  will 
1514 \begin_inset Flex Noun
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 Document\SpecialChar menuseparator
1519 View (Other Formats)\SpecialChar menuseparator
1520 DVI
1521 \end_layout
1522
1523 \end_inset
1524
1525 .) 
1526 \end_layout
1527
1528 \begin_layout Standard
1529 A Format can have a 
1530 \begin_inset Flex Noun
1531 status collapsed
1532
1533 \begin_layout Plain Layout
1534 Viewer
1535 \end_layout
1536
1537 \end_inset
1538
1539  and an 
1540 \begin_inset Flex Noun
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 Editor
1545 \end_layout
1546
1547 \end_inset
1548
1549  associated with it.
1550  For example, you might want to use 
1551 \begin_inset Flex Noun
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 Ghostview
1556 \end_layout
1557
1558 \end_inset
1559
1560  to view PostScript files.
1561  You can enter the command needed to start the program in the corresponding
1562  fields.
1563  In defining this command, you can use the four variables listed in the
1564  next section.
1565  The viewer is launched when you view an image in \SpecialChar LyX
1566  or use the 
1567 \begin_inset Flex Noun
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 Document\SpecialChar menuseparator
1572 View
1573 \end_layout
1574
1575 \end_inset
1576
1577  menu.
1578  The editor is for example launched when you right-click on an image and
1579  choose 
1580 \begin_inset Flex Noun
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 Edit externally
1585 \end_layout
1586
1587 \end_inset
1588
1589  in the appearing context menu.
1590 \end_layout
1591
1592 \begin_layout Standard
1593 The 
1594 \begin_inset Flex Noun
1595 status collapsed
1596
1597 \begin_layout Plain Layout
1598 MIME
1599 \end_layout
1600
1601 \end_inset
1602
1603  type of a format is optional, but if it is specified, it must be unique
1604  across all formats.
1605  It is used to detect files of this format from the file contents.
1606  For some important file formats there is no MIME type officially registered
1607  with the 
1608 \begin_inset CommandInset href
1609 LatexCommand href
1610 name "IANA"
1611 target "http://www.iana.org/assignments/media-types/"
1612 literal "false"
1613
1614 \end_inset
1615
1616 .
1617  Therefore \SpecialChar LyX
1618  uses the extended list of MIME types as specified by 
1619 \begin_inset CommandInset href
1620 LatexCommand href
1621 name "freedesktop.org"
1622 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1623 literal "false"
1624
1625 \end_inset
1626
1627 .
1628 \end_layout
1629
1630 \begin_layout Standard
1631 The 
1632 \begin_inset Flex Noun
1633 status collapsed
1634
1635 \begin_layout Plain Layout
1636 Document format
1637 \end_layout
1638
1639 \end_inset
1640
1641  option tells \SpecialChar LyX
1642  that a format is suitable for document export.
1643  If this is set and if a suitable conversion route exists (see 
1644 \begin_inset CommandInset ref
1645 LatexCommand ref
1646 reference "sec:Converters"
1647
1648 \end_inset
1649
1650 ), the format will appear in the 
1651 \begin_inset Flex Noun
1652 status collapsed
1653
1654 \begin_layout Plain Layout
1655 File\SpecialChar menuseparator
1656 Export
1657 \end_layout
1658
1659 \end_inset
1660
1661  menu.
1662  The format will also appear in the 
1663 \begin_inset Flex Noun
1664 status collapsed
1665
1666 \begin_layout Plain Layout
1667 Document\SpecialChar menuseparator
1668 View
1669 \end_layout
1670
1671 \end_inset
1672
1673  menu if a viewer is specified for the format.
1674  Pure image formats, such as 
1675 \begin_inset Flex Code
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 png
1680 \end_layout
1681
1682 \end_inset
1683
1684 , should not use this option.
1685  Formats that can both represent vector graphics and documents like 
1686 \begin_inset Flex Code
1687 status collapsed
1688
1689 \begin_layout Plain Layout
1690 pdf
1691 \end_layout
1692
1693 \end_inset
1694
1695  should use it.
1696 \end_layout
1697
1698 \begin_layout Standard
1699 The option 
1700 \begin_inset Flex Noun
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 Vector graphics format
1705 \end_layout
1706
1707 \end_inset
1708
1709  tells \SpecialChar LyX
1710  that a format can contain vector graphics.
1711  This information is used to determine the target format of included graphics
1712  for 
1713 \begin_inset Flex Noun
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 pdflatex
1718 \end_layout
1719
1720 \end_inset
1721
1722  export.
1723  Included graphics may need to be converted to either 
1724 \begin_inset Flex Noun
1725 status collapsed
1726
1727 \begin_layout Plain Layout
1728 pdf
1729 \end_layout
1730
1731 \end_inset
1732
1733
1734 \begin_inset Flex Noun
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 png
1739 \end_layout
1740
1741 \end_inset
1742
1743 , or 
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 jpg
1749 \end_layout
1750
1751 \end_inset
1752
1753 , since 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 pdflatex
1759 \end_layout
1760
1761 \end_inset
1762
1763  cannot handle other image formats.
1764  If an included graphic is not already in 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 pdf
1770 \end_layout
1771
1772 \end_inset
1773
1774
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 png
1780 \end_layout
1781
1782 \end_inset
1783
1784 , or 
1785 \begin_inset Flex Noun
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 jpg
1790 \end_layout
1791
1792 \end_inset
1793
1794  format, it is converted to 
1795 \begin_inset Flex Noun
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 pdf
1800 \end_layout
1801
1802 \end_inset
1803
1804  if the vector format option is set, and otherwise to 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 png
1810 \end_layout
1811
1812 \end_inset
1813
1814 .
1815 \end_layout
1816
1817 \begin_layout Section
1818 Copiers
1819 \end_layout
1820
1821 \begin_layout Standard
1822 Since all conversions from one format to another take place in \SpecialChar LyX
1823 's temporary
1824  directory, it is sometimes necessary to modify a file before copying it
1825  to the temporary directory in order that the conversion may be performed.
1826 \begin_inset Foot
1827 status collapsed
1828
1829 \begin_layout Plain Layout
1830 For example, the file may refer to other files—images, for example—using
1831  relative file names, and these may become invalid when the file is copied
1832  to the temporary directory.
1833 \end_layout
1834
1835 \end_inset
1836
1837  This is done by a Copier: It copies a file to (or from) the temporary directory
1838  and may modify it in the process.
1839 \end_layout
1840
1841 \begin_layout Standard
1842 The definitions of the copiers may use eight variables:
1843 \end_layout
1844
1845 \begin_layout Labeling
1846 \labelwidthstring 00.00.0000
1847 \begin_inset Flex Code
1848 status collapsed
1849
1850 \begin_layout Plain Layout
1851 $$s
1852 \end_layout
1853
1854 \end_inset
1855
1856  The \SpecialChar LyX
1857  system directory (e.
1858 \begin_inset space \thinspace{}
1859 \end_inset
1860
1861 g.
1862 \begin_inset space \space{}
1863 \end_inset
1864
1865
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 /usr/share/lyx
1871 \end_layout
1872
1873 \end_inset
1874
1875 ).
1876 \end_layout
1877
1878 \begin_layout Labeling
1879 \labelwidthstring 00.00.0000
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 $$i
1885 \end_layout
1886
1887 \end_inset
1888
1889  The input file
1890 \end_layout
1891
1892 \begin_layout Labeling
1893 \labelwidthstring 00.00.0000
1894 \begin_inset Flex Code
1895 status collapsed
1896
1897 \begin_layout Plain Layout
1898 $$o
1899 \end_layout
1900
1901 \end_inset
1902
1903  The output file
1904 \end_layout
1905
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Flex Code
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 $$b
1913 \end_layout
1914
1915 \end_inset
1916
1917  The base name (without filename extension) in the \SpecialChar LyX
1918  temporary directory
1919 \end_layout
1920
1921 \begin_layout Labeling
1922 \labelwidthstring 00.00.0000
1923 \begin_inset Flex Code
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 $$p
1928 \end_layout
1929
1930 \end_inset
1931
1932  The full directory path of the \SpecialChar LyX
1933  temporary directory
1934 \end_layout
1935
1936 \begin_layout Labeling
1937 \labelwidthstring 00.00.0000
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 $$r
1943 \end_layout
1944
1945 \end_inset
1946
1947  The full pathname to the original \SpecialChar LyX
1948  file being processed
1949 \end_layout
1950
1951 \begin_layout Labeling
1952 \labelwidthstring 00.00.0000
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 $$f
1958 \end_layout
1959
1960 \end_inset
1961
1962  The filename (without any directory path) of the \SpecialChar LyX
1963  file.
1964 \end_layout
1965
1966 \begin_layout Labeling
1967 \labelwidthstring 00.00.0000
1968 \begin_inset Flex Code
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972 $$l
1973 \end_layout
1974
1975 \end_inset
1976
1977  The `\SpecialChar LaTeX
1978  name'
1979 \end_layout
1980
1981 \begin_layout Standard
1982 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1983 's 
1984 \series bold
1985
1986 \backslash
1987 include
1988 \series default
1989  command.
1990  It is relevant only when exporting files suitable for such inclusion.
1991 \end_layout
1992
1993 \begin_layout Standard
1994 Copiers can be used to do almost anything with output files.
1995  For example, suppose you want generated pdf files to be copied to a special
1996  directory, 
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 /home/you/pdf/
2002 \end_layout
2003
2004 \end_inset
2005
2006 .
2007  Then you could write a shell script such as this one:
2008 \end_layout
2009
2010 \begin_layout Standard
2011 \begin_inset listings
2012 inline false
2013 status open
2014
2015 \begin_layout Plain Layout
2016
2017 #!/bin/bash
2018 \end_layout
2019
2020 \begin_layout Plain Layout
2021
2022 FROMFILE=$1
2023 \end_layout
2024
2025 \begin_layout Plain Layout
2026
2027 TOFILE=`basename $2`
2028 \end_layout
2029
2030 \begin_layout Plain Layout
2031
2032 cp $FROMFILE /home/you/pdf/$TOFILE
2033 \end_layout
2034
2035 \end_inset
2036
2037 Save it in your local \SpecialChar LyX
2038  directory—say, 
2039 \begin_inset Flex Code
2040 status collapsed
2041
2042 \begin_layout Plain Layout
2043 /home/you/.lyx/scripts/pdfcopier.sh
2044 \end_layout
2045
2046 \end_inset
2047
2048 —and make it executable, if you need to do so on your platform.
2049  Then, in the 
2050 \begin_inset Flex Noun
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054 Tools\SpecialChar menuseparator
2055 Preferences
2056 \end_layout
2057
2058 \end_inset
2059
2060  dialog, select under 
2061 \begin_inset Flex Noun
2062 status collapsed
2063
2064 \begin_layout Plain Layout
2065 File Handling\SpecialChar menuseparator
2066 File formats
2067 \end_layout
2068
2069 \end_inset
2070
2071  the 
2072 \begin_inset Flex Noun
2073 status collapsed
2074
2075 \begin_layout Plain Layout
2076 PDF(pdflatex)
2077 \end_layout
2078
2079 \end_inset
2080
2081  format—or one of the other pdf formats—and enter 
2082 \begin_inset Flex Code
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 pdfcopier.sh $$i $$o
2087 \end_layout
2088
2089 \end_inset
2090
2091  into the 
2092 \begin_inset Flex Noun
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 Copier
2097 \end_layout
2098
2099 \end_inset
2100
2101  field.
2102  
2103 \end_layout
2104
2105 \begin_layout Standard
2106 Copiers are used by \SpecialChar LyX
2107  in various of its own conversions.
2108  For example, if appropriate programs are found, \SpecialChar LyX
2109  will automatically install
2110  copiers for the 
2111 \begin_inset Flex Noun
2112 status collapsed
2113
2114 \begin_layout Plain Layout
2115 HTML
2116 \end_layout
2117
2118 \end_inset
2119
2120  and 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 HTML
2126 \begin_inset space ~
2127 \end_inset
2128
2129 (MS Word)
2130 \end_layout
2131
2132 \end_inset
2133
2134  formats.
2135  When these formats are exported, the copier sees that not just the main
2136  HTML file but various associated files (style files, images, etc.) are also
2137  copied.
2138  All these files are written to a subdirectory of the directory in which
2139  the original \SpecialChar LyX
2140  file was found.
2141 \begin_inset Foot
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 This copier can be customized.
2146  The optional 
2147 \begin_inset Quotes eld
2148 \end_inset
2149
2150 -e
2151 \begin_inset Quotes erd
2152 \end_inset
2153
2154  argument takes a comma-separated list of extensions to be copied; if it
2155  is omitted, all files will be copied.
2156  The 
2157 \begin_inset Quotes eld
2158 \end_inset
2159
2160 -t
2161 \begin_inset Quotes erd
2162 \end_inset
2163
2164  argument determines the extension added to the generated directory.
2165  By default, it is 
2166 \begin_inset Quotes eld
2167 \end_inset
2168
2169
2170 \begin_inset Flex Noun
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 LyXconv
2175 \end_layout
2176
2177 \end_inset
2178
2179
2180 \begin_inset Quotes erd
2181 \end_inset
2182
2183 , so HTML generated from 
2184 \begin_inset Flex Noun
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 /path/to/filename.lyx
2189 \end_layout
2190
2191 \end_inset
2192
2193  will end up in 
2194 \begin_inset Flex Noun
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 /path/to/filename.html.LyXconv
2199 \end_layout
2200
2201 \end_inset
2202
2203 .
2204  
2205 \end_layout
2206
2207 \end_inset
2208
2209
2210 \end_layout
2211
2212 \begin_layout Section
2213 Converters
2214 \begin_inset CommandInset label
2215 LatexCommand label
2216 name "sec:Converters"
2217
2218 \end_inset
2219
2220
2221 \end_layout
2222
2223 \begin_layout Standard
2224 You can define your own Converters to convert files between different formats.
2225  This is done in the 
2226 \begin_inset Flex Noun
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 Tools\SpecialChar menuseparator
2231 Preferences\SpecialChar menuseparator
2232 File Handling\SpecialChar menuseparator
2233 Converters
2234 \end_layout
2235
2236 \end_inset
2237
2238  dialog.
2239 \end_layout
2240
2241 \begin_layout Standard
2242 To define a new converter, select the 
2243 \begin_inset Flex Noun
2244 status collapsed
2245
2246 \begin_layout Plain Layout
2247 From
2248 \begin_inset space ~
2249 \end_inset
2250
2251 format
2252 \end_layout
2253
2254 \end_inset
2255
2256  and 
2257 \begin_inset Flex Noun
2258 status collapsed
2259
2260 \begin_layout Plain Layout
2261 To
2262 \begin_inset space ~
2263 \end_inset
2264
2265 format
2266 \end_layout
2267
2268 \end_inset
2269
2270  from the drop-down lists, enter the command needed for the conversion,
2271  and then press the 
2272 \begin_inset Flex Noun
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 Add
2277 \end_layout
2278
2279 \end_inset
2280
2281  button.
2282  Several variables can be used in the definition of converters:
2283 \end_layout
2284
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Flex Code
2288 status collapsed
2289
2290 \begin_layout Plain Layout
2291 $$s
2292 \end_layout
2293
2294 \end_inset
2295
2296  The \SpecialChar LyX
2297  system directory
2298 \end_layout
2299
2300 \begin_layout Labeling
2301 \labelwidthstring 00.00.0000
2302 \begin_inset Flex Code
2303 status collapsed
2304
2305 \begin_layout Plain Layout
2306 $$i
2307 \end_layout
2308
2309 \end_inset
2310
2311  The input file
2312 \end_layout
2313
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2317 status collapsed
2318
2319 \begin_layout Plain Layout
2320 $$o
2321 \end_layout
2322
2323 \end_inset
2324
2325  The output file
2326 \end_layout
2327
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 $$b
2335 \end_layout
2336
2337 \end_inset
2338
2339  The base filename of the input file (i.
2340 \begin_inset space \thinspace{}
2341 \end_inset
2342
2343 g., without the extension)
2344 \end_layout
2345
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Flex Code
2349 status collapsed
2350
2351 \begin_layout Plain Layout
2352 $$p
2353 \end_layout
2354
2355 \end_inset
2356
2357  The path to the input file
2358 \end_layout
2359
2360 \begin_layout Labeling
2361 \labelwidthstring 00.00.0000
2362 \begin_inset Flex Code
2363 status collapsed
2364
2365 \begin_layout Plain Layout
2366 $$r
2367 \end_layout
2368
2369 \end_inset
2370
2371  The path to the original input file (this is different from $$p when a
2372  chain of converters is called)
2373 \end_layout
2374
2375 \begin_layout Labeling
2376 \labelwidthstring 00.00.0000
2377 \begin_inset Flex Code
2378 status collapsed
2379
2380 \begin_layout Plain Layout
2381 $$e
2382 \end_layout
2383
2384 \end_inset
2385
2386  The iconv name for the encoding of the document.
2387 \end_layout
2388
2389 \begin_layout Standard
2390 In the 
2391 \begin_inset Flex Noun
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 Extra
2396 \begin_inset space ~
2397 \end_inset
2398
2399 Flag
2400 \end_layout
2401
2402 \end_inset
2403
2404  field you can enter the following flags, separated by commas:
2405 \end_layout
2406
2407 \begin_layout Labeling
2408 \labelwidthstring 00.00.0000
2409 \begin_inset Flex Code
2410 status collapsed
2411
2412 \begin_layout Plain Layout
2413 latex
2414 \change_inserted -712698321 1524656940
2415 =flavor
2416 \change_unchanged
2417
2418 \end_layout
2419
2420 \end_inset
2421
2422  This converter runs some form of \SpecialChar LaTeX
2423 .
2424  This will make \SpecialChar LyX
2425 's \SpecialChar LaTeX
2426  error logs available.
2427
2428 \change_inserted -712698321 1524657018
2429  The optional 
2430 \begin_inset Flex Code
2431 status open
2432
2433 \begin_layout Plain Layout
2434
2435 \change_inserted -712698321 1524657012
2436 flavor
2437 \change_unchanged
2438
2439 \end_layout
2440
2441 \end_inset
2442
2443  value specifies the form of \SpecialChar LaTeX
2444  that is run (
2445 \begin_inset Flex Code
2446 status open
2447
2448 \begin_layout Plain Layout
2449
2450 \change_inserted -712698321 1524657005
2451 latex, pdflatex, platex, xetex, luatex
2452 \change_unchanged
2453
2454 \end_layout
2455
2456 \end_inset
2457
2458 ).
2459  If no value is specified, 
2460 \begin_inset Flex Code
2461 status open
2462
2463 \begin_layout Plain Layout
2464
2465 \change_inserted -712698321 1524657018
2466 latex
2467 \change_unchanged
2468
2469 \end_layout
2470
2471 \end_inset
2472
2473  is used.
2474 \change_unchanged
2475
2476 \end_layout
2477
2478 \begin_layout Labeling
2479 \labelwidthstring 00.00.0000
2480 \begin_inset Flex Code
2481 status collapsed
2482
2483 \begin_layout Plain Layout
2484 needaux
2485 \change_inserted -712698321 1524656935
2486 =flavor
2487 \change_unchanged
2488
2489 \end_layout
2490
2491 \end_inset
2492
2493  Needs the \SpecialChar LaTeX
2494  
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 .aux
2500 \end_layout
2501
2502 \end_inset
2503
2504  file for the conversion.
2505
2506 \change_inserted -712698321 1524657047
2507  The optional 
2508 \begin_inset Flex Code
2509 status open
2510
2511 \begin_layout Plain Layout
2512
2513 \change_inserted -712698321 1524657030
2514 flavor
2515 \end_layout
2516
2517 \end_inset
2518
2519  value specifies the form of \SpecialChar LaTeX
2520  that is run in order to generate the 
2521 \begin_inset Flex Noun
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525
2526 \change_inserted -712698321 1524657047
2527 .aux
2528 \end_layout
2529
2530 \end_inset
2531
2532  file (
2533 \begin_inset Flex Code
2534 status open
2535
2536 \begin_layout Plain Layout
2537
2538 \change_inserted -712698321 1524657030
2539 latex, pdflatex, platex, xetex, luatex
2540 \end_layout
2541
2542 \end_inset
2543
2544 ).
2545  If no value is specified, 
2546 \begin_inset Flex Code
2547 status open
2548
2549 \begin_layout Plain Layout
2550
2551 \change_inserted -712698321 1524657030
2552 latex
2553 \end_layout
2554
2555 \end_inset
2556
2557  is used.
2558 \change_unchanged
2559
2560 \end_layout
2561
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2564 \begin_inset Flex Code
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 nice
2569 \end_layout
2570
2571 \end_inset
2572
2573  Needs a 
2574 \begin_inset Quotes eld
2575 \end_inset
2576
2577 nice
2578 \begin_inset Quotes erd
2579 \end_inset
2580
2581  file from the backend, which in practice means a \SpecialChar LaTeX
2582  file like the one we
2583  would export, without 
2584 \begin_inset Flex Code
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588 input@path
2589 \end_layout
2590
2591 \end_inset
2592
2593 .
2594 \end_layout
2595
2596 \begin_layout Labeling
2597 \labelwidthstring 00.00.0000
2598 \begin_inset Flex Code
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 xml
2603 \end_layout
2604
2605 \end_inset
2606
2607  Output is XML.
2608 \end_layout
2609
2610 \begin_layout Standard
2611 The following three flags are not really flags at all because they take
2612  an argument in the 
2613 \begin_inset Flex Noun
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617 key
2618 \begin_inset space ~
2619 \end_inset
2620
2621 =
2622 \begin_inset space ~
2623 \end_inset
2624
2625 value
2626 \end_layout
2627
2628 \end_inset
2629
2630  format:
2631 \end_layout
2632
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2635
2636 \change_inserted -712698321 1523206314
2637 \begin_inset Flex Code
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641
2642 \change_inserted -712698321 1523206193
2643 hyperref-driver
2644 \end_layout
2645
2646 \end_inset
2647
2648  The name of the driver that needs to be loaded with the 
2649 \family sans
2650 hyperref
2651 \family default
2652  package for this converter.
2653  The loading of the correct driver is necessary to get some PDF-specific
2654  features.
2655  See the 
2656 \family sans
2657 hyperref
2658 \family default
2659  manual for details.
2660 \end_layout
2661
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2664 \begin_inset Flex Code
2665 status collapsed
2666
2667 \begin_layout Plain Layout
2668 parselog
2669 \end_layout
2670
2671 \end_inset
2672
2673  If set, the converter's standard error will be redirected to a file 
2674 \begin_inset Flex Code
2675 status collapsed
2676
2677 \begin_layout Plain Layout
2678 infile.out
2679 \end_layout
2680
2681 \end_inset
2682
2683 , and the script given as argument will be run as: 
2684 \begin_inset Flex Code
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 script < infile.out > infile.log
2689 \end_layout
2690
2691 \end_inset
2692
2693 .
2694  The argument may contain 
2695 \begin_inset Flex Code
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 $$s
2700 \end_layout
2701
2702 \end_inset
2703
2704 .
2705 \end_layout
2706
2707 \begin_layout Labeling
2708 \labelwidthstring 00.00.0000
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 resultdir
2714 \end_layout
2715
2716 \end_inset
2717
2718  The name of the directory in which the converter will dump the generated
2719  files.
2720  \SpecialChar LyX
2721  will not create this directory, and it does not copy anything into it,
2722  though it will copy this directory to the destination.
2723  The argument may contain 
2724 \begin_inset Flex Code
2725 status collapsed
2726
2727 \begin_layout Plain Layout
2728 $$b
2729 \end_layout
2730
2731 \end_inset
2732
2733 , which will be replaced by the base name of the input and output files,
2734  respectively, when the directory is copied.
2735 \begin_inset Newline newline
2736 \end_inset
2737
2738 Note that resultdir and usetempdir make no sense together.
2739  The latter will be ignored if the former is given.
2740 \end_layout
2741
2742 \begin_layout Labeling
2743 \labelwidthstring 00.00.0000
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 resultfile
2749 \end_layout
2750
2751 \end_inset
2752
2753  Determines the output file name and may, contain 
2754 \begin_inset Flex Code
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 $$b
2759 \end_layout
2760
2761 \end_inset
2762
2763 .
2764  Sensible only with resultdir and optional even then; if not given, it defaults
2765  to `index'.
2766 \end_layout
2767
2768 \begin_layout Standard
2769
2770 \change_inserted -712698321 1523206384
2771 A suitable hyperref-driver is set for some converters that are installed
2772  with \SpecialChar LyX
2773 .
2774  
2775 \change_deleted -712698321 1523206388
2776 None of these
2777 \change_inserted -712698321 1523206389
2778 The
2779 \change_unchanged
2780  last three
2781 \change_inserted -712698321 1523206400
2782  flags, however,
2783 \change_unchanged
2784  are presently 
2785 \change_inserted -712698321 1523206407
2786 not 
2787 \change_unchanged
2788 used in any of the 
2789 \change_inserted -712698321 1523206437
2790 pre-installed 
2791 \change_unchanged
2792 converters
2793 \change_deleted -712698321 1523206442
2794  that are installed with \SpecialChar LyX
2795
2796 \change_unchanged
2797 .
2798  
2799 \end_layout
2800
2801 \begin_layout Standard
2802 You do not have to define converters for all formats between which you want
2803  to convert.
2804  For example, you will note that there is no `\SpecialChar LyX
2805  to PostScript' converter,
2806  but \SpecialChar LyX
2807  will export PostScript.
2808  It does so by first creating a \SpecialChar LaTeX
2809  file (no converter needs to be defined
2810  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2811  to DVI' converter,
2812  and finally converting the resulting DVI file to PostScript.
2813  \SpecialChar LyX
2814  finds such `chains' of converters automatically, and it will always choose
2815  the shortest possible chain.
2816  You can, though, still define multiple conversion methods between file
2817  formats.
2818  For example, the standard \SpecialChar LyX
2819  configuration provides five ways to convert
2820  \SpecialChar LaTeX
2821  to PDF:
2822 \end_layout
2823
2824 \begin_layout Enumerate
2825 Directly, using 
2826 \begin_inset Flex Noun
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 pdflatex
2831 \end_layout
2832
2833 \end_inset
2834
2835
2836 \end_layout
2837
2838 \begin_layout Enumerate
2839 via (DVI and) PostScript, using 
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 ps2pdf
2845 \end_layout
2846
2847 \end_inset
2848
2849
2850 \end_layout
2851
2852 \begin_layout Enumerate
2853 via DVI, using 
2854 \begin_inset Flex Noun
2855 status collapsed
2856
2857 \begin_layout Plain Layout
2858 dvipdfm
2859 \end_layout
2860
2861 \end_inset
2862
2863
2864 \end_layout
2865
2866 \begin_layout Enumerate
2867 directly using 
2868 \begin_inset Flex Noun
2869 status collapsed
2870
2871 \begin_layout Plain Layout
2872 Xe\SpecialChar TeX
2873
2874 \end_layout
2875
2876 \end_inset
2877
2878
2879 \end_layout
2880
2881 \begin_layout Enumerate
2882 directly using 
2883 \begin_inset Flex Noun
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887 Lua\SpecialChar TeX
2888
2889 \end_layout
2890
2891 \end_inset
2892
2893
2894 \end_layout
2895
2896 \begin_layout Standard
2897 To define such alternate chains, you must define multiple target `file formats',
2898  as described in 
2899 \begin_inset CommandInset ref
2900 LatexCommand ref
2901 reference "sec:Formats"
2902
2903 \end_inset
2904
2905 .
2906  For example, in the standard configuration, the formats named 
2907 \begin_inset Flex Noun
2908 status collapsed
2909
2910 \begin_layout Plain Layout
2911 pdf
2912 \end_layout
2913
2914 \end_inset
2915
2916  (for 
2917 \begin_inset Flex Noun
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 ps2pdf
2922 \end_layout
2923
2924 \end_inset
2925
2926 ), 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 pdf2
2932 \end_layout
2933
2934 \end_inset
2935
2936  (for 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 pdflatex
2942 \end_layout
2943
2944 \end_inset
2945
2946 ), 
2947 \begin_inset Flex Noun
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 pdf3
2952 \end_layout
2953
2954 \end_inset
2955
2956  (for 
2957 \begin_inset Flex Noun
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 dvipdfm
2962 \end_layout
2963
2964 \end_inset
2965
2966 ), 
2967 \begin_inset Flex Noun
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 pdf4
2972 \end_layout
2973
2974 \end_inset
2975
2976  (for 
2977 \begin_inset Flex Noun
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 Xe\SpecialChar TeX
2982
2983 \end_layout
2984
2985 \end_inset
2986
2987 ), and 
2988 \begin_inset Flex Noun
2989 status collapsed
2990
2991 \begin_layout Plain Layout
2992 pdf5
2993 \end_layout
2994
2995 \end_inset
2996
2997  (for 
2998 \begin_inset Flex Noun
2999 status collapsed
3000
3001 \begin_layout Plain Layout
3002 Lua\SpecialChar TeX
3003
3004 \end_layout
3005
3006 \end_inset
3007
3008 ) are defined, all of which share the extension 
3009 \begin_inset Flex Noun
3010 status collapsed
3011
3012 \begin_layout Plain Layout
3013 .pdf
3014 \end_layout
3015
3016 \end_inset
3017
3018 , and which correspond to the conversion methods just mentioned.
3019 \end_layout
3020
3021 \begin_layout Chapter
3022 Internationalizing \SpecialChar LyX
3023
3024 \begin_inset CommandInset label
3025 LatexCommand label
3026 name "cha:Internationalizing-LyX"
3027
3028 \end_inset
3029
3030
3031 \end_layout
3032
3033 \begin_layout Standard
3034 \SpecialChar LyX
3035  supports using a translated interface.
3036  Last time we checked, \SpecialChar LyX
3037  provided text in thirty languages.
3038  The language of choice is called your 
3039 \emph on
3040 locale
3041 \emph default
3042 .
3043  (For further reading on locale settings, see also the documentation for
3044  locale that comes with your operating system.
3045  For Linux, the manual page for 
3046 \begin_inset Flex Code
3047 status collapsed
3048
3049 \begin_layout Plain Layout
3050 locale(5)
3051 \end_layout
3052
3053 \end_inset
3054
3055  could be a good place to start).
3056 \end_layout
3057
3058 \begin_layout Standard
3059 Notice that these translations will work, but do contain a few flaws.
3060  In particular, all dialogs have been designed with the English text in
3061  mind, which means that some of the translated text will be too large to
3062  fit within the space allocated.
3063  This is only a display problem and will not cause any harm.
3064  Also, you will find that some of the translations do not define shortcut
3065  keys for everything.
3066  Sometimes, there are simply not enough free letters to do it.
3067  Other times, the translator just hasn't got around to doing it yet.
3068  Our localization team, which you may wish to join,
3069 \begin_inset Foot
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 If you are a fluent speaker of a language other than English, joining these
3074  teams is a great way to give back to the \SpecialChar LyX
3075  community!
3076 \end_layout
3077
3078 \end_inset
3079
3080  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3081 .
3082 \end_layout
3083
3084 \begin_layout Section
3085 Translating \SpecialChar LyX
3086
3087 \end_layout
3088
3089 \begin_layout Subsection
3090 Translating the graphical user interface (text messages).
3091 \end_layout
3092
3093 \begin_layout Standard
3094 \SpecialChar LyX
3095  uses the GNU 
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 gettext
3101 \end_layout
3102
3103 \end_inset
3104
3105  library to handle the internationalization of the interface.
3106  To have \SpecialChar LyX
3107  speak your favorite language in all menus and dialogs, you need
3108  a 
3109 \begin_inset Flex Code
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 po
3114 \end_layout
3115
3116 \end_inset
3117
3118 -file for that language.
3119  When this is available, you'll have to generate a 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 mo
3125 \end_layout
3126
3127 \end_inset
3128
3129 -file from it and install the 
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 mo
3135 \end_layout
3136
3137 \end_inset
3138
3139 -file.
3140  The process of doing all of this is explained in the documentation for
3141  GNU 
3142 \begin_inset Flex Code
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 gettext
3147 \end_layout
3148
3149 \end_inset
3150
3151 .
3152  It is possible to do this just for yourself, but if you're going to do
3153  it, you might as well share the results of your labors with the rest of
3154  the \SpecialChar LyX
3155  community.
3156  Send a message to the \SpecialChar LyX
3157  developers' list for more information about how
3158  to proceed.
3159 \end_layout
3160
3161 \begin_layout Standard
3162 In short, this is what you should do (xx denotes the language code):
3163 \end_layout
3164
3165 \begin_layout Itemize
3166 Check out the \SpecialChar LyX
3167  source code.
3168  (See the 
3169 \begin_inset CommandInset href
3170 LatexCommand href
3171 name "information on the web"
3172 target "https://www.lyx.org/HowToUseGIT"
3173 literal "false"
3174
3175 \end_inset
3176
3177 .)
3178 \end_layout
3179
3180 \begin_layout Itemize
3181 Copy the file 
3182 \begin_inset Flex Code
3183 status collapsed
3184
3185 \begin_layout Plain Layout
3186 lyx.pot
3187 \end_layout
3188
3189 \end_inset
3190
3191  to the folder of the 
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 **.po
3197 \end_layout
3198
3199 \end_inset
3200
3201  files.
3202  Then rename it to 
3203 \begin_inset Flex Code
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207 xx.po
3208 \end_layout
3209
3210 \end_inset
3211
3212 .
3213  (If 
3214 \begin_inset Flex Code
3215 status collapsed
3216
3217 \begin_layout Plain Layout
3218 lyx.pot
3219 \end_layout
3220
3221 \end_inset
3222
3223  doesn't exist anywhere, it can be remade with the console command 
3224 \begin_inset Flex Code
3225 status collapsed
3226
3227 \begin_layout Plain Layout
3228 make lyx.pot
3229 \end_layout
3230
3231 \end_inset
3232
3233  in that directory, or you can use an existing po-file for some other language
3234  as a template).
3235 \end_layout
3236
3237 \begin_layout Itemize
3238 Edit 
3239 \begin_inset Flex Code
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 xx.po
3244 \end_layout
3245
3246 \end_inset
3247
3248 .
3249 \begin_inset Foot
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 This is just a text file, so it can be edited in any text editor.
3254  But there are also specialized programs that support such editing, such
3255  as 
3256 \family typewriter
3257 Poedit
3258 \family default
3259  (for all platforms) or 
3260 \family typewriter
3261 KBabel
3262 \family default
3263  (for KDE).
3264  
3265 \family typewriter
3266 Emacs
3267 \family default
3268  contains a `mode' for editing 
3269 \begin_inset Flex Code
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 po
3274 \end_layout
3275
3276 \end_inset
3277
3278  files, as well, see 
3279 \begin_inset Flex URL
3280 status open
3281
3282 \begin_layout Plain Layout
3283
3284 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3285 \end_layout
3286
3287 \end_inset
3288
3289 .
3290 \end_layout
3291
3292 \end_inset
3293
3294  For some menu- and widget-labels, there are also shortcut keys that should
3295  be translated.
3296  Those keys are marked after a `|', and should be translated according to
3297  the words and phrases of the language.
3298  You should also fill also out the information at the beginning of the new
3299  
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 po
3305 \end_layout
3306
3307 \end_inset
3308
3309 -file with your email-address, etc., so people know where to reach you with
3310  suggestions and entertaining flames.
3311 \end_layout
3312
3313 \begin_layout Standard
3314 If you are just doing this on your own, then:
3315 \end_layout
3316
3317 \begin_layout Itemize
3318 Generate 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 xx.mo
3324 \end_layout
3325
3326 \end_inset
3327
3328 .
3329  This can be done with 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 msgfmt -o xx.mo < xx.po
3335 \end_layout
3336
3337 \end_inset
3338
3339 .
3340 \end_layout
3341
3342 \begin_layout Itemize
3343 Copy the 
3344 \begin_inset Flex Code
3345 status collapsed
3346
3347 \begin_layout Plain Layout
3348 mo
3349 \end_layout
3350
3351 \end_inset
3352
3353 -file to your locale-tree, at the correct directory for application messages
3354  for the language
3355 \series bold
3356  
3357 \series default
3358 xx, and under the name 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 lyx.mo
3364 \end_layout
3365
3366 \end_inset
3367
3368  (e.
3369 \begin_inset space \thinspace{}
3370 \end_inset
3371
3372 g.
3373 \begin_inset space \space{}
3374 \end_inset
3375
3376
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3382 \end_layout
3383
3384 \end_inset
3385
3386
3387 \series bold
3388 .
3389 \end_layout
3390
3391 \begin_layout Standard
3392 As said, however, it would be best if the new 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 po
3398 \end_layout
3399
3400 \end_inset
3401
3402  file could be added to the \SpecialChar LyX
3403  distribution, so others can use it.
3404  Adding it involves making additional changes to \SpecialChar LyX
3405 .
3406  So send an email to the developers' mailing list if you're interested in
3407  doing that.
3408 \end_layout
3409
3410 \begin_layout Subsubsection
3411 Ambiguous messages
3412 \end_layout
3413
3414 \begin_layout Standard
3415 Sometimes it turns out that one English message needs to be translated into
3416  different messages in the target language.
3417  One example is the message 
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 To
3423 \end_layout
3424
3425 \end_inset
3426
3427  which has the German translation 
3428 \lang german
3429 Nach
3430 \lang english
3431  or 
3432 \lang german
3433 Bis
3434 \lang english
3435 , depending upon exactly what the English 
3436 \begin_inset Quotes eld
3437 \end_inset
3438
3439 to
3440 \begin_inset Quotes erd
3441 \end_inset
3442
3443  means.
3444  GNU 
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 gettext
3450 \end_layout
3451
3452 \end_inset
3453
3454  does not handle such ambiguous translations.
3455  Therefore you have to add some context information to the message: Instead
3456  of 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 To
3462 \end_layout
3463
3464 \end_inset
3465
3466  it becomes 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 To[[as in 'From format x to format y']]
3472 \end_layout
3473
3474 \end_inset
3475
3476  and 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 To[[as in 'From page x to page y']].
3482 \end_layout
3483
3484 \end_inset
3485
3486  Now the two occurrences of 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 To
3492 \end_layout
3493
3494 \end_inset
3495
3496  are different for 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 gettext
3502 \end_layout
3503
3504 \end_inset
3505
3506  and can be translated correctly to 
3507 \lang german
3508 Nach
3509 \lang english
3510  and 
3511 \lang german
3512 Bis
3513 \lang english
3514 , respectively.
3515 \end_layout
3516
3517 \begin_layout Standard
3518 Of course the context information needs to be stripped off the original
3519  message when no translation is used.
3520  Therefore you have to put it in double square brackets at the end of the
3521  message (see the example above).
3522  The translation mechanism of \SpecialChar LyX
3523  ensures that everything in double square
3524  brackets at the end of messages is removed before displaying the message.
3525 \end_layout
3526
3527 \begin_layout Subsection
3528 Translating the documentation.
3529 \end_layout
3530
3531 \begin_layout Standard
3532 The online documentation (in the 
3533 \begin_inset Flex Noun
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 Help
3538 \end_layout
3539
3540 \end_inset
3541
3542 -menu) can (and should!) be translated.
3543  If there are translated versions of the documentation available
3544 \begin_inset Foot
3545 status collapsed
3546
3547 \begin_layout Plain Layout
3548 As of March 2008, at least some of the documents have been translated into
3549  fourteen languages, with the Tutorial available in a few more.
3550 \end_layout
3551
3552 \end_inset
3553
3554  and the locale is set accordingly, these will be used automagically by
3555  \SpecialChar LyX
3556 .
3557  \SpecialChar LyX
3558  looks for translated versions as 
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 LyXDir/doc/xx/DocName.lyx
3564 \end_layout
3565
3566 \end_inset
3567
3568 , where 
3569 \begin_inset Flex Code
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573 xx
3574 \end_layout
3575
3576 \end_inset
3577
3578  is the code for the language currently in use.
3579  If there are no translated documents, the default English versions will
3580  be displayed.
3581  Note that the translated versions must have the same filenames (
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 DocName
3587 \end_layout
3588
3589 \end_inset
3590
3591  above) as the original.
3592  If you feel up to translating the documentation (an excellent way to proof-read
3593  the original documentation by the way!), there are a few things you should
3594  do right away:
3595 \end_layout
3596
3597 \begin_layout Itemize
3598 Check out the documentation translation web page at 
3599 \begin_inset CommandInset href
3600 LatexCommand href
3601 name "https://www.lyx.org/Translation"
3602 target "https://www.lyx.org/Translation"
3603 literal "false"
3604
3605 \end_inset
3606
3607 .
3608  That way, you can find out which (if any) documents have already been translate
3609 d into your language.
3610  You can also find out who (if anyone) is organizing the effort to translate
3611  the documentation into your language.
3612  If no one is organizing the effort, please let us know that you're interested.
3613 \end_layout
3614
3615 \begin_layout Standard
3616 Once you get to actually translating, here's a few hints for you that may
3617  save you trouble:
3618 \end_layout
3619
3620 \begin_layout Itemize
3621 Join the documentation team! There is information on how to do that in 
3622 \begin_inset Flex Code
3623 status collapsed
3624
3625 \begin_layout Plain Layout
3626 Intro.lyx
3627 \end_layout
3628
3629 \end_inset
3630
3631  (
3632 \begin_inset Flex Noun
3633 status collapsed
3634
3635 \begin_layout Plain Layout
3636 Help\SpecialChar menuseparator
3637 Introduction
3638 \end_layout
3639
3640 \end_inset
3641
3642 ), which by the way is the first document you should translate.
3643 \end_layout
3644
3645 \begin_layout Itemize
3646 Learn the typographic conventions for the language you are translating to.
3647  Typography is an ancient art and over the centuries, a great variety of
3648  conventions have developed throughout different parts of the world.
3649  Also study the professional terminology amongst typographers in your country.
3650  Inventing your own terminology will only confuse the users.
3651  
3652 \emph on
3653 (Warning! Typography is addictive!)
3654 \end_layout
3655
3656 \begin_layout Itemize
3657 Make a copy of the document.
3658  This will be your working copy.
3659  You can use this as your personal translated help-file by placing it in
3660  your 
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 UserDir/doc/xx/
3666 \end_layout
3667
3668 \end_inset
3669
3670  directory.
3671 \begin_inset Note Greyedout
3672 status open
3673
3674 \begin_layout Plain Layout
3675
3676 \series bold
3677 Note:
3678 \series default
3679  For a complex document with external material (images, etc.), if you make
3680  a copy e.
3681 \begin_inset space \thinspace{}
3682 \end_inset
3683
3684 g.
3685 \begin_inset space \space{}
3686 \end_inset
3687
3688 in a temp dir, beware that the links to external material may be broken
3689  when the document is moved to a different place.
3690  The best way is to retrieve the \SpecialChar LyX
3691  tree from git (see 
3692 \begin_inset Flex URL
3693 status collapsed
3694
3695 \begin_layout Plain Layout
3696
3697 https://www.lyx.org/HowToUseGIT
3698 \end_layout
3699
3700 \end_inset
3701
3702 ) and to edit the doc file in place.
3703 \end_layout
3704
3705 \end_inset
3706
3707
3708 \end_layout
3709
3710 \begin_layout Itemize
3711 Sometimes the original document (from the \SpecialChar LyX
3712  team) will be updated.
3713  Use the source viewer at 
3714 \begin_inset CommandInset href
3715 LatexCommand href
3716 name "https://www.lyx.org/trac/timeline"
3717 target "https://www.lyx.org/trac/timeline"
3718 literal "false"
3719
3720 \end_inset
3721
3722  to see what has been changed.
3723  That way you can easily see which parts of the translated document need
3724  to be updated.
3725 \end_layout
3726
3727 \begin_layout Standard
3728 If you ever find an error in the original document, fix it and notify the
3729  rest of the documentation team of the changes! (You didn't forget to join
3730  the documentation team, did you?)
3731 \end_layout
3732
3733 \begin_layout Standard
3734 \begin_inset Branch OutDated
3735 inverted 0
3736 status collapsed
3737
3738 \begin_layout Section
3739 International Keyboard Support
3740 \end_layout
3741
3742 \begin_layout Standard
3743
3744 \emph on
3745 [Editor's Note: The following section is by
3746 \emph default
3747  
3748 \shape smallcaps
3749 \emph on
3750 Ivan Schreter
3751 \shape default
3752 .
3753  It needs to be fixed to conform to the new Documentation Style sheet and
3754  to make use of the new v1.0 features.
3755  The whole thing also needs to be merged with the section following it.-jw
3756  It may also be badly out of date.-rh (2008)]
3757 \end_layout
3758
3759 \begin_layout Subsection
3760 Defining Own Keymaps: Keymap File Format
3761 \end_layout
3762
3763 \begin_layout Standard
3764 Let's look at a keyboard definition file a little closer.
3765  It is a plain text file defining
3766 \end_layout
3767
3768 \begin_layout Itemize
3769 key-to-key or key-to-string translations
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 dead keys
3774 \end_layout
3775
3776 \begin_layout Itemize
3777 dead keys exceptions
3778 \end_layout
3779
3780 \begin_layout Standard
3781 To define key-to-key or key-to-string translation, use this command:
3782 \end_layout
3783
3784 \begin_layout Quotation
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789
3790 \backslash
3791 kmap
3792 \end_layout
3793
3794 \end_inset
3795
3796  
3797 \begin_inset Flex Code
3798 status collapsed
3799
3800 \begin_layout Plain Layout
3801 key
3802 \end_layout
3803
3804 \end_inset
3805
3806  outstring 
3807 \end_layout
3808
3809 \begin_layout Standard
3810 where 
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 key
3816 \end_layout
3817
3818 \end_inset
3819
3820  is the key to be translated and 
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 outstring
3826 \end_layout
3827
3828 \end_inset
3829
3830  is the string to be inserted into the document.
3831  To define dead keys, use:
3832 \end_layout
3833
3834 \begin_layout Quotation
3835 \begin_inset Flex Code
3836 status collapsed
3837
3838 \begin_layout Plain Layout
3839
3840 \backslash
3841 kmod
3842 \end_layout
3843
3844 \end_inset
3845
3846  
3847 \begin_inset Flex Code
3848 status collapsed
3849
3850 \begin_layout Plain Layout
3851 key
3852 \end_layout
3853
3854 \end_inset
3855
3856  deadkey
3857 \end_layout
3858
3859 \begin_layout Standard
3860 where 
3861 \begin_inset Flex Code
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865 key
3866 \end_layout
3867
3868 \end_inset
3869
3870  is a keyboard key and 
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 deadkey
3876 \end_layout
3877
3878 \end_inset
3879
3880  is dead key name.
3881  The following dead keys are supported (shortcut name is in parentheses):
3882 \end_layout
3883
3884 \begin_layout Quotation
3885
3886 \emph on
3887 Name
3888 \begin_inset space \hfill{}
3889 \end_inset
3890
3891 Example
3892 \end_layout
3893
3894 \begin_layout Quotation
3895 acute (acu)
3896 \begin_inset space \hfill{}
3897 \end_inset
3898
3899 áéíóú
3900 \end_layout
3901
3902 \begin_layout Quotation
3903 grave (gra)
3904 \begin_inset space \hfill{}
3905 \end_inset
3906
3907 àèìòù
3908 \end_layout
3909
3910 \begin_layout Quotation
3911 macron (mac)
3912 \begin_inset space \hfill{}
3913 \end_inset
3914
3915  ō
3916 \end_layout
3917
3918 \begin_layout Quotation
3919 tilde (til)
3920 \begin_inset space \hfill{}
3921 \end_inset
3922
3923 ñÑ
3924 \end_layout
3925
3926 \begin_layout Quotation
3927 underbar (underb)
3928 \begin_inset space \hfill{}
3929 \end_inset
3930
3931
3932 \begin_inset ERT
3933 status open
3934
3935 \begin_layout Plain Layout
3936
3937
3938 \backslash
3939 b o
3940 \end_layout
3941
3942 \end_inset
3943
3944
3945 \end_layout
3946
3947 \begin_layout Quotation
3948 cedilla (ced)
3949 \begin_inset space \hfill{}
3950 \end_inset
3951
3952 çÇ
3953 \end_layout
3954
3955 \begin_layout Quotation
3956 underdot (underd)
3957 \begin_inset space \hfill{}
3958 \end_inset
3959
3960
3961 \begin_inset ERT
3962 status open
3963
3964 \begin_layout Plain Layout
3965
3966
3967 \backslash
3968 d o
3969 \end_layout
3970
3971 \end_inset
3972
3973
3974 \end_layout
3975
3976 \begin_layout Quotation
3977 circumflex (circu)
3978 \begin_inset space \hfill{}
3979 \end_inset
3980
3981 âêîôû
3982 \end_layout
3983
3984 \begin_layout Quotation
3985 circle (circl)
3986 \begin_inset space \hfill{}
3987 \end_inset
3988
3989 ÅůŮ
3990 \end_layout
3991
3992 \begin_layout Quotation
3993 tie (tie)
3994 \begin_inset space \hfill{}
3995 \end_inset
3996
3997
3998 \begin_inset ERT
3999 status open
4000
4001 \begin_layout Plain Layout
4002
4003
4004 \backslash
4005 t o
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \end_layout
4012
4013 \begin_layout Quotation
4014 breve (bre)
4015 \begin_inset space \hfill{}
4016 \end_inset
4017
4018 ă
4019 \begin_inset ERT
4020 status open
4021
4022 \begin_layout Plain Layout
4023
4024
4025 \backslash
4026 u o
4027 \end_layout
4028
4029 \end_inset
4030
4031
4032 \end_layout
4033
4034 \begin_layout Quotation
4035 caron (car)
4036 \begin_inset space \hfill{}
4037 \end_inset
4038
4039 čšž
4040 \end_layout
4041
4042 \begin_layout Quotation
4043 hungarian umlaut (hug)
4044 \begin_inset space \hfill{}
4045 \end_inset
4046
4047 őű
4048 \end_layout
4049
4050 \begin_layout Quotation
4051 umlaut (uml)
4052 \begin_inset space \hfill{}
4053 \end_inset
4054
4055 äöü
4056 \end_layout
4057
4058 \begin_layout Quotation
4059 dot (dot)
4060 \begin_inset space \hfill{}
4061 \end_inset
4062
4063 ż
4064 \begin_inset ERT
4065 status open
4066
4067 \begin_layout Plain Layout
4068
4069
4070 \backslash
4071 .s
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Standard
4080 Since in many international keyboards there are exceptions to what some
4081  dead keys should do, you can define them using
4082 \end_layout
4083
4084 \begin_layout Quotation
4085 \begin_inset Flex Code
4086 status collapsed
4087
4088 \begin_layout Plain Layout
4089
4090 \backslash
4091 kxmod
4092 \end_layout
4093
4094 \end_inset
4095
4096  deadkey key outstring
4097 \end_layout
4098
4099 \begin_layout Standard
4100 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4101 , so you put in
4102 \end_layout
4103
4104 \begin_layout Quotation
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 kxmod
4112 \end_layout
4113
4114 \end_inset
4115
4116  caron o "
4117 \backslash
4118 ^o"
4119 \end_layout
4120
4121 \begin_layout Standard
4122 to make it work correctly.
4123  Also, you have to define as exceptions dead keys over i and j, to remove
4124  the dot from them before inserting an accent mark.
4125  I will change this when the time comes, but so far I haven't had time.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4130  double backslash.
4131  Also, quotes and 
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 #
4137 \end_layout
4138
4139 \end_inset
4140
4141  have different meaning.
4142  
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 #
4148 \end_layout
4149
4150 \end_inset
4151
4152  marks comments, quotes start and end \SpecialChar LaTeX
4153 -style commands.
4154  To enter quote, you'll need to use 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \backslash
4161 "
4162 \end_layout
4163
4164 \end_inset
4165
4166 , to enter 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 #
4172 \end_layout
4173
4174 \end_inset
4175
4176 , use 
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181
4182 \backslash
4183 #
4184 \end_layout
4185
4186 \end_inset
4187
4188 .
4189 \end_layout
4190
4191 \begin_layout Standard
4192 If you make a keyboard description file that works for your language, please
4193  mail it to me, so I can include it in the next keymap distribution.
4194 \end_layout
4195
4196 \begin_layout Standard
4197 More keywords will be supported in keymap configuration file in future,
4198  like
4199 \end_layout
4200
4201 \begin_layout Itemize
4202 \begin_inset Flex Code
4203 status collapsed
4204
4205 \begin_layout Plain Layout
4206
4207 \backslash
4208 kinclude filename
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \emph on
4215
4216 \begin_inset space \hfill{}
4217 \end_inset
4218
4219
4220 \begin_inset Flex Code
4221 status collapsed
4222
4223 \begin_layout Plain Layout
4224 include
4225 \end_layout
4226
4227 \end_inset
4228
4229  another file
4230 \end_layout
4231
4232 \begin_layout Itemize
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237
4238 \backslash
4239 kprog program
4240 \end_layout
4241
4242 \end_inset
4243
4244
4245 \emph on
4246
4247 \begin_inset space \hfill{}
4248 \end_inset
4249
4250
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 define
4256 \end_layout
4257
4258 \end_inset
4259
4260  an external keymap translation program 
4261 \end_layout
4262
4263 \begin_layout Standard
4264 Also, it should look into 
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269 lyxrc
4270 \end_layout
4271
4272 \end_inset
4273
4274  file for defaults, too (for example, a 
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279
4280 \backslash
4281 kinclude
4282 \end_layout
4283
4284 \end_inset
4285
4286  option to include default keyboard).
4287 \end_layout
4288
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Section
4295 International Keymap Stuff
4296 \begin_inset CommandInset label
4297 LatexCommand label
4298 name "sec:International-Keymap-Stuff"
4299
4300 \end_inset
4301
4302
4303 \end_layout
4304
4305 \begin_layout Standard
4306 \begin_inset Note Note
4307 status open
4308
4309 \begin_layout Plain Layout
4310 In doing the revisions on this document in March 2008, I did not look over
4311  this stuff, as I do not understand it.
4312  It would be good if someone else could do so.
4313  (RH)
4314 \end_layout
4315
4316 \end_inset
4317
4318
4319 \end_layout
4320
4321 \begin_layout Standard
4322 The next two sections describe the 
4323 \begin_inset Flex Code
4324 status collapsed
4325
4326 \begin_layout Plain Layout
4327
4328 \shape up
4329 .kmap
4330 \end_layout
4331
4332 \end_inset
4333
4334  and 
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339
4340 \shape up
4341 .cdef
4342 \end_layout
4343
4344 \end_inset
4345
4346  file syntax in detail.
4347  These sections should help you design your own key map if the ones provided
4348  do not meet your needs.
4349 \end_layout
4350
4351 \begin_layout Subsection
4352 The .kmap File
4353 \end_layout
4354
4355 \begin_layout Standard
4356
4357 \shape up
4358 .
4359 \begin_inset Flex Code
4360 status collapsed
4361
4362 \begin_layout Plain Layout
4363 kmap
4364 \end_layout
4365
4366 \end_inset
4367
4368  file maps keystrokes to characters or strings.
4369  As the name suggests, it sets a keyboard mapping.
4370  The 
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375 .kmap
4376 \end_layout
4377
4378 \end_inset
4379
4380
4381 \shape default
4382  file keywords 
4383 \shape up
4384
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \shape up
4391 kmap
4392 \end_layout
4393
4394 \end_inset
4395
4396
4397 \shape default
4398 ,
4399 \shape up
4400  
4401 \shape default
4402
4403 \begin_inset Flex Code
4404 status collapsed
4405
4406 \begin_layout Plain Layout
4407
4408 \shape up
4409 kmod
4410 \end_layout
4411
4412 \end_inset
4413
4414 ,
4415 \shape up
4416  
4417 \shape default
4418
4419 \begin_inset Flex Code
4420 status collapsed
4421
4422 \begin_layout Plain Layout
4423
4424 \shape up
4425 kxmod
4426 \end_layout
4427
4428 \end_inset
4429
4430 , and 
4431 \begin_inset Flex Code
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435
4436 \shape up
4437 kcomb
4438 \end_layout
4439
4440 \end_inset
4441
4442  are described in this section.
4443 \end_layout
4444
4445 \begin_layout Labeling
4446 \labelwidthstring 00.00.0000
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \shape up
4453 kmap
4454 \end_layout
4455
4456 \end_inset
4457
4458  Map a character to a string
4459 \end_layout
4460
4461 \begin_layout LyX-Code
4462
4463 \backslash
4464 kmap 
4465 \family roman
4466 \emph on
4467 char
4468 \family default
4469 \emph default
4470  
4471 \family roman
4472 \emph on
4473 string
4474 \end_layout
4475
4476 \begin_layout Standard
4477 This will ma
4478 \family roman
4479 p
4480 \family default
4481  
4482 \family roman
4483 \emph on
4484 char
4485 \family default
4486 \emph default
4487  
4488 \family roman
4489 to
4490 \family default
4491  
4492 \family roman
4493 \emph on
4494 string
4495 \emph default
4496 .
4497  Note that in
4498 \family default
4499  
4500 \family roman
4501 \emph on
4502 string
4503 \emph default
4504 ,
4505 \family default
4506  
4507 \family roman
4508 \shape up
4509 the double-quote (")
4510 \family default
4511 \shape default
4512  
4513 \family roman
4514 and
4515 \family default
4516  
4517 \family roman
4518 \shape up
4519 the backslash (
4520 \backslash
4521 )
4522 \family default
4523 \shape default
4524  
4525 \family roman
4526 must be escaped with a preceding backslash (
4527 \shape up
4528
4529 \backslash
4530
4531 \shape default
4532 )
4533 \family default
4534 .
4535 \end_layout
4536
4537 \begin_layout Standard
4538 An example of a 
4539 \begin_inset Flex Noun
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \shape up
4545 kmap
4546 \end_layout
4547
4548 \end_inset
4549
4550  statement to cause the symbol 
4551 \begin_inset Flex Noun
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555
4556 \shape up
4557 /
4558 \end_layout
4559
4560 \end_inset
4561
4562  to be output for the keystroke 
4563 \begin_inset Flex Noun
4564 status collapsed
4565
4566 \begin_layout Plain Layout
4567
4568 \shape up
4569 &
4570 \end_layout
4571
4572 \end_inset
4573
4574  is:
4575 \end_layout
4576
4577 \begin_layout LyX-Code
4578
4579 \backslash
4580 kmap & /
4581 \end_layout
4582
4583 \begin_layout Labeling
4584 \labelwidthstring 00.00.0000
4585 \begin_inset Flex Code
4586 status collapsed
4587
4588 \begin_layout Plain Layout
4589
4590 \shape up
4591 kmod
4592 \end_layout
4593
4594 \end_inset
4595
4596  Specify an accent character
4597 \end_layout
4598
4599 \begin_layout LyX-Code
4600
4601 \backslash
4602 kmod 
4603 \family roman
4604 \emph on
4605 char accent allowed
4606 \end_layout
4607
4608 \begin_layout Standard
4609 This will make the cha
4610 \family roman
4611 racter
4612 \family default
4613  
4614 \family roman
4615 \emph on
4616 char
4617 \family default
4618 \emph default
4619  
4620 \family roman
4621 \shape up
4622 \emph on
4623 be an accent
4624 \family default
4625 \shape default
4626 \emph default
4627  
4628 \family roman
4629 \shape up
4630 on the
4631 \family default
4632 \shape default
4633  
4634 \family roman
4635 \shape up
4636 \emph on
4637 allowed
4638 \family default
4639 \shape default
4640 \emph default
4641  
4642 \family roman
4643 \shape up
4644 cha
4645 \family default
4646 racter(s).
4647  This is the dead key
4648 \begin_inset Foot
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652 The term 
4653 \family roman
4654 \emph on
4655 dead key
4656 \family default
4657 \emph default
4658  refers to a key that does not produce a character by itself, but when followed
4659  with another key, produces the desired accent character.
4660  For example, a German characte
4661 \family roman
4662 r with an umlaut like
4663 \family default
4664  
4665 \family roman
4666 \emph on
4667 ä
4668 \family default
4669 \emph default
4670  
4671 \family roman
4672 can be produced in this manner.
4673 \end_layout
4674
4675 \end_inset
4676
4677  mechanism.
4678  
4679 \end_layout
4680
4681 \begin_layout Standard
4682 If you 
4683 \family roman
4684 hit
4685 \family default
4686  
4687 \family roman
4688 \emph on
4689 char
4690 \family default
4691 \emph default
4692  
4693 \family roman
4694 and then another key not in
4695 \family default
4696  
4697 \family roman
4698 \emph on
4699 allowed
4700 \emph default
4701 , you will get a
4702 \family default
4703  
4704 \family roman
4705 \emph on
4706 char
4707 \family default
4708 \emph default
4709  
4710 \family roman
4711 followed by the other, not allowed key, as output.
4712
4713 \family default
4714  Note that a 
4715 \begin_inset Flex Noun
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719
4720 \shape up
4721 Backspace
4722 \end_layout
4723
4724 \end_inset
4725
4726  cancels a dead key, so if 
4727 \family roman
4728 you hit
4729 \family default
4730  
4731 \family roman
4732 \emph on
4733 char
4734 \family default
4735 \emph default
4736  
4737 \begin_inset Flex Noun
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741
4742 \shape up
4743 \emph on
4744 Backspace
4745 \end_layout
4746
4747 \end_inset
4748
4749 , the cursor will not go one position backwards but will instead cancel
4750  the effect t
4751 \family roman
4752 hat
4753 \family default
4754  
4755 \family roman
4756 \shape up
4757 \emph on
4758 char
4759 \family default
4760 \shape default
4761 \emph default
4762  
4763 \family roman
4764 \shape up
4765 might have had on the next keystroke.
4766  
4767 \end_layout
4768
4769 \begin_layout Standard
4770 The following example specifies that the character ' is to be an acute accent,
4771  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4772 \end_layout
4773
4774 \begin_layout LyX-Code
4775
4776 \backslash
4777 kmod ' acute aeiouAEIOU
4778 \end_layout
4779
4780 \begin_layout Labeling
4781 \labelwidthstring 00.00.0000
4782 \begin_inset Flex Code
4783 status collapsed
4784
4785 \begin_layout Plain Layout
4786 kxmod
4787 \end_layout
4788
4789 \end_inset
4790
4791  Specify an exception to the accent character
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795
4796 \backslash
4797 kxmod  
4798 \family roman
4799 \emph on
4800 accent char result
4801 \end_layout
4802
4803 \begin_layout Standard
4804 This defines an exce
4805 \family roman
4806 ption for
4807 \family default
4808  
4809 \family roman
4810 \emph on
4811 accent
4812 \family default
4813 \emph default
4814  
4815 \family roman
4816 on
4817 \family default
4818  
4819 \family roman
4820 \emph on
4821 char
4822 \emph default
4823 .
4824  T
4825 \shape up
4826 he
4827 \family default
4828 \shape default
4829  
4830 \family roman
4831 \shape up
4832 \emph on
4833 accent
4834 \family default
4835 \shape default
4836 \emph default
4837  
4838 \family roman
4839 \shape up
4840 must
4841 \family default
4842 \shape default
4843  
4844 \shape up
4845 have been assigned a keystroke with a previous
4846 \shape default
4847  
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852
4853 \shape up
4854
4855 \backslash
4856 kmo
4857 \shape default
4858 d
4859 \end_layout
4860
4861 \end_inset
4862
4863  declar
4864 \family roman
4865 ation and
4866 \family default
4867  
4868 \family roman
4869 \emph on
4870 char
4871 \family default
4872 \emph default
4873  
4874 \family roman
4875 must not belong in the
4876 \family default
4877  
4878 \family roman
4879 \emph on
4880 allowed
4881 \family default
4882 \emph default
4883  
4884 \family roman
4885 set of
4886 \family default
4887  
4888 \family roman
4889 \emph on
4890 accent
4891 \emph default
4892 .
4893  When
4894 \family default
4895  
4896 \family roman
4897 \shape up
4898 you enter the
4899 \family default
4900 \shape default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 accent char
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 sequence,
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 result
4920 \emph default
4921  is produced.
4922  If such a declaration does not exist in
4923 \family default
4924 \shape default
4925  
4926 \shape up
4927 the
4928 \shape default
4929  
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934
4935 \shape up
4936 .kmap
4937 \end_layout
4938
4939 \end_inset
4940
4941  file and yo
4942 \family roman
4943 u enter
4944 \family default
4945  
4946 \family roman
4947 \emph on
4948 accent char
4949 \emph default
4950 , you get
4951 \family default
4952  
4953 \family roman
4954 \emph on
4955 accent_key char
4956 \emph default
4957  where
4958 \family default
4959  
4960 \family roman
4961 \emph on
4962 accent_key
4963 \emph default
4964  is the first arg
4965 \family default
4966 ument of the 
4967 \begin_inset Flex Code
4968 status collapsed
4969
4970 \begin_layout Plain Layout
4971
4972 \shape up
4973
4974 \backslash
4975 kmod
4976 \end_layout
4977
4978 \end_inset
4979
4980  declaration.
4981  
4982 \end_layout
4983
4984 \begin_layout Standard
4985 The following command produces causes äi to be produced when you enter acute-i
4986  ('i):
4987 \end_layout
4988
4989 \begin_layout LyX-Code
4990
4991 \backslash
4992 kxmod acute i "
4993 \backslash
4994
4995 \backslash
4996 '{
4997 \backslash
4998
4999 \backslash
5000 i}"
5001 \end_layout
5002
5003 \begin_layout Labeling
5004 \labelwidthstring 00.00.0000
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009 kcomb
5010 \end_layout
5011
5012 \end_inset
5013
5014  Combine two accent characters
5015 \end_layout
5016
5017 \begin_layout LyX-Code
5018
5019 \backslash
5020 kcomb 
5021 \family roman
5022 \emph on
5023 accent1 accent2 allowed
5024 \end_layout
5025
5026 \begin_layout Standard
5027 This one is getting pretty esoteric.
5028  It allows you to combine the effect 
5029 \family roman
5030 of
5031 \family default
5032  
5033 \family roman
5034 \emph on
5035 accent1
5036 \family default
5037 \emph default
5038  
5039 \family roman
5040 and
5041 \family default
5042  
5043 \family roman
5044 \emph on
5045 accent2
5046 \family default
5047 \emph default
5048  
5049 \family roman
5050 (in that order!) on
5051 \family default
5052  
5053 \family roman
5054 \emph on
5055 allowed
5056 \family default
5057 \emph default
5058  
5059 \family roman
5060 chars.
5061  The keystrokes for
5062 \family default
5063  
5064 \family roman
5065 \emph on
5066 accent1
5067 \family default
5068 \emph default
5069  
5070 \family roman
5071 and
5072 \family default
5073  
5074 \family roman
5075 \emph on
5076 accent2
5077 \family default
5078 \emph default
5079  
5080 \family roman
5081 must have be
5082 \family default
5083 en set with a 
5084 \begin_inset Flex Code
5085 status collapsed
5086
5087 \begin_layout Plain Layout
5088
5089 \shape up
5090
5091 \backslash
5092 kmod
5093 \end_layout
5094
5095 \end_inset
5096
5097  command at 
5098 \family roman
5099 a
5100 \family default
5101  
5102 \family roman
5103 \emph on
5104 previous
5105 \family default
5106 \emph default
5107  
5108 \family roman
5109 point in the
5110 \family default
5111  file.
5112  
5113 \end_layout
5114
5115 \begin_layout Standard
5116 Consider this example from the 
5117 \begin_inset Flex Code
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121
5122 \shape up
5123 greek.kmap
5124 \end_layout
5125
5126 \end_inset
5127
5128  file:
5129 \end_layout
5130
5131 \begin_layout LyX-Code
5132
5133 \backslash
5134 kmod ; acute aeioyvhAEIOYVH 
5135 \backslash
5136 kmod : umlaut iyIY 
5137 \backslash
5138 kcomb acute umlaut iyIY
5139 \end_layout
5140
5141 \begin_layout Standard
5142 This allows you to press 
5143 \begin_inset Flex Noun
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147
5148 \shape up
5149 ;:i
5150 \end_layout
5151
5152 \end_inset
5153
5154  and get the effect of 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159
5160 \shape up
5161
5162 \backslash
5163 '{
5164 \backslash
5165 "{i}}
5166 \end_layout
5167
5168 \end_inset
5169
5170 .
5171  
5172 \family roman
5173 \shape up
5174 A backspace
5175 \family default
5176 \shape default
5177  in this case cancels the last dead key, so if you press 
5178 \begin_inset Flex Noun
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182
5183 \shape up
5184 ;: Backspace i
5185 \end_layout
5186
5187 \end_inset
5188
5189  you get 
5190 \begin_inset Flex Code
5191 status collapsed
5192
5193 \begin_layout Plain Layout
5194
5195 \shape up
5196
5197 \backslash
5198 '{i}
5199 \end_layout
5200
5201 \end_inset
5202
5203 .
5204 \end_layout
5205
5206 \begin_layout Subsection
5207 The .cdef File
5208 \end_layout
5209
5210 \begin_layout Standard
5211 After the 
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  mapping is performed, a 
5224 \begin_inset Flex Code
5225 status collapsed
5226
5227 \begin_layout Plain Layout
5228
5229 \shape up
5230 .cde
5231 \shape default
5232 f
5233 \end_layout
5234
5235 \end_inset
5236
5237  file maps the strings that the symbols generate to characters in the current
5238  font.
5239  The \SpecialChar LyX
5240  distribution currently includes at least the 
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245
5246 \shape up
5247 iso8859-1.cdef
5248 \end_layout
5249
5250 \end_inset
5251
5252  and 
5253 \begin_inset Flex Code
5254 status collapsed
5255
5256 \begin_layout Plain Layout
5257
5258 \shape up
5259 iso8859-2.cdef
5260 \end_layout
5261
5262 \end_inset
5263
5264  files.
5265 \end_layout
5266
5267 \begin_layout Standard
5268 In general the 
5269 \begin_inset Flex Code
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273
5274 \shape up
5275 .cdef
5276 \end_layout
5277
5278 \end_inset
5279
5280  file is a sequence of declarations of the form
5281 \end_layout
5282
5283 \begin_layout LyX-Code
5284
5285 \family roman
5286 \emph on
5287 char_index_in_set
5288 \family default
5289 \emph default
5290  
5291 \family roman
5292 \emph on
5293  string
5294 \end_layout
5295
5296 \begin_layout Standard
5297 For example, in order to map 
5298 \begin_inset Flex Noun
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302
5303 \shape up
5304
5305 \backslash
5306 '{e}
5307 \end_layout
5308
5309 \end_inset
5310
5311  to the corresponding character in the iso-8859-1 set (233), the following
5312  declaration is used
5313 \end_layout
5314
5315 \begin_layout LyX-Code
5316 233 "
5317 \backslash
5318
5319 \backslash
5320 '{e}"
5321 \end_layout
5322
5323 \begin_layout Standard
5324 with 
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329
5330 \backslash
5331
5332 \end_layout
5333
5334 \end_inset
5335
5336  and 
5337 \begin_inset Flex Code
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341 "
5342 \end_layout
5343
5344 \end_inset
5345
5346  being escap
5347 \family roman
5348 ed in
5349 \family default
5350  
5351 \family roman
5352 \emph on
5353 string
5354 \emph default
5355 .
5356  Note that
5357 \family default
5358  the same character can apply to more than one string.
5359  In the 
5360 \begin_inset Flex Code
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 i
5365 \shape up
5366 so-8859-7.cdef
5367 \end_layout
5368
5369 \end_inset
5370
5371  file you have
5372 \end_layout
5373
5374 \begin_layout LyX-Code
5375 192 "
5376 \backslash
5377
5378 \backslash
5379 '{
5380 \backslash
5381
5382 \backslash
5383
5384 \backslash
5385 "{i}}"
5386 \begin_inset Newline newline
5387 \end_inset
5388
5389 192 "
5390 \backslash
5391
5392 \backslash
5393
5394 \backslash
5395 "{
5396 \backslash
5397
5398 \backslash
5399 '{i}}"
5400 \end_layout
5401
5402 \begin_layout Standard
5403 If \SpecialChar LyX
5404  cannot find a mapping for the string produced by the keystroke or a
5405  deadkey sequence, it will check if it looks like an accented char and try
5406  to draw an accent over the character on screen.
5407 \end_layout
5408
5409 \begin_layout Subsection
5410 Dead Keys
5411 \end_layout
5412
5413 \begin_layout Standard
5414 There is a second way to add support for international characters through
5415  so-called dead-keys.
5416  A dead-key works in combination with a letter to produce an accented character.
5417  Here, we'll explain how to create a really simple dead-key to illustrate
5418  how they work.
5419 \end_layout
5420
5421 \begin_layout Standard
5422 Suppose you happen to need the circumflex character, 
5423 \begin_inset Quotes eld
5424 \end_inset
5425
5426  ̂
5427 \begin_inset Quotes erd
5428 \end_inset
5429
5430 .
5431  You could bind the 
5432 \begin_inset Flex Noun
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436 ^
5437 \end_layout
5438
5439 \end_inset
5440
5441 -key [a.k.a.
5442 \begin_inset space ~
5443 \end_inset
5444
5445
5446 \begin_inset Flex Noun
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 Shift-6
5451 \end_layout
5452
5453 \end_inset
5454
5455 ] to the \SpecialChar LyX
5456  command 
5457 \begin_inset Flex Code
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 accent-circumflex
5462 \end_layout
5463
5464 \end_inset
5465
5466  in your 
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 lyxrc
5472 \end_layout
5473
5474 \end_inset
5475
5476  file.
5477  Now, whenever you type the 
5478 \begin_inset Flex Noun
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 ^
5483 \end_layout
5484
5485 \end_inset
5486
5487 -key followed by a letter, that letter will have a circumflex accent on
5488  it.
5489  For example, the sequence 
5490 \begin_inset Quotes eld
5491 \end_inset
5492
5493
5494 \begin_inset Flex Noun
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 ^e
5499 \end_layout
5500
5501 \end_inset
5502
5503
5504 \begin_inset Quotes erd
5505 \end_inset
5506
5507  produces the letter: 
5508 \begin_inset Quotes eld
5509 \end_inset
5510
5511 ê
5512 \begin_inset Quotes erd
5513 \end_inset
5514
5515 .
5516  If you tried to type 
5517 \begin_inset Quotes eld
5518 \end_inset
5519
5520
5521 \begin_inset Flex Noun
5522 status collapsed
5523
5524 \begin_layout Plain Layout
5525 ^t
5526 \end_layout
5527
5528 \end_inset
5529
5530
5531 \begin_inset Quotes erd
5532 \end_inset
5533
5534 , however, \SpecialChar LyX
5535  will complain with a beep, since a 
5536 \begin_inset Quotes eld
5537 \end_inset
5538
5539
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 t
5545 \end_layout
5546
5547 \end_inset
5548
5549
5550 \begin_inset Quotes erd
5551 \end_inset
5552
5553  never takes a circumflex accent.
5554  Hitting 
5555 \begin_inset Flex Noun
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 Space
5560 \end_layout
5561
5562 \end_inset
5563
5564  after a dead-key produces the bare-accent.
5565  Please note this last point! If you bind a key to a dead-key, you'll need
5566  to rebind the character on that key to yet another key.
5567  Binding the 
5568 \begin_inset Flex Noun
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 ,-key
5573 \end_layout
5574
5575 \end_inset
5576
5577  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5578 \end_layout
5579
5580 \begin_layout Standard
5581 One common way to bind dead-keys is to use 
5582 \begin_inset Flex Noun
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 Meta-
5587 \end_layout
5588
5589 \end_inset
5590
5591
5592 \begin_inset Flex Noun
5593 status collapsed
5594
5595 \begin_layout Plain Layout
5596 Ctrl-
5597 \end_layout
5598
5599 \end_inset
5600
5601 , and 
5602 \begin_inset Flex Noun
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 Shift-
5607 \end_layout
5608
5609 \end_inset
5610
5611  in combination with an accent, like 
5612 \begin_inset Quotes eld
5613 \end_inset
5614
5615
5616 \begin_inset Flex Noun
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 ~
5621 \end_layout
5622
5623 \end_inset
5624
5625
5626 \begin_inset Quotes erd
5627 \end_inset
5628
5629  or 
5630 \begin_inset Quotes eld
5631 \end_inset
5632
5633
5634 \begin_inset Flex Noun
5635 status collapsed
5636
5637 \begin_layout Plain Layout
5638 ,
5639 \end_layout
5640
5641 \end_inset
5642
5643
5644 \begin_inset Quotes erd
5645 \end_inset
5646
5647  or 
5648 \begin_inset Quotes eld
5649 \end_inset
5650
5651
5652 \begin_inset Flex Noun
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656 ^
5657 \end_layout
5658
5659 \end_inset
5660
5661
5662 \begin_inset Quotes erd
5663 \end_inset
5664
5665 .
5666  Another way involves using 
5667 \begin_inset Flex Code
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 xmodmap
5672 \end_layout
5673
5674 \end_inset
5675
5676  and 
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 xkeycaps
5682 \end_layout
5683
5684 \end_inset
5685
5686  to set up the special 
5687 \begin_inset Flex Code
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 Mode_Switch
5692 \end_layout
5693
5694 \end_inset
5695
5696  key.
5697  The 
5698 \begin_inset Flex Code
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702 Mode_Switch
5703 \end_layout
5704
5705 \end_inset
5706
5707  acts in some ways just like 
5708 \begin_inset Flex Noun
5709 status collapsed
5710
5711 \begin_layout Plain Layout
5712 Shift
5713 \end_layout
5714
5715 \end_inset
5716
5717  and permits you to bind keys to accented characters.
5718  You can also turn keys into dead-keys by binding them to something like
5719  
5720 \begin_inset Flex Code
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 usldead_cedilla
5725 \end_layout
5726
5727 \end_inset
5728
5729  and then binding this symbolic key to the corresponding \SpecialChar LyX
5730  command.
5731 \begin_inset Foot
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 Note from 
5736 \noun on
5737 John Weiss
5738 \noun default
5739 : This is exactly what I do in my 
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 ~/.lyx/lyxrc
5745 \end_layout
5746
5747 \end_inset
5748
5749  and my 
5750 \begin_inset Flex Code
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 ~/.xmodmap
5755 \end_layout
5756
5757 \end_inset
5758
5759  files.
5760  I have my 
5761 \begin_inset Flex Noun
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765 Scroll
5766 \begin_inset space ~
5767 \end_inset
5768
5769 Lock
5770 \end_layout
5771
5772 \end_inset
5773
5774  key set up as 
5775 \begin_inset Flex Code
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779 Mode_Shift
5780 \end_layout
5781
5782 \end_inset
5783
5784  and a bunch of these 
5785 \begin_inset Quotes eld
5786 \end_inset
5787
5788
5789 \begin_inset Flex Code
5790 status collapsed
5791
5792 \begin_layout Plain Layout
5793 usldead_*
5794 \end_layout
5795
5796 \end_inset
5797
5798
5799 \begin_inset Quotes erd
5800 \end_inset
5801
5802  symbolic keys bound such things as 
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 Scroll
5808 \begin_inset space ~
5809 \end_inset
5810
5811 Lock-^
5812 \end_layout
5813
5814 \end_inset
5815
5816  and 
5817 \begin_inset Flex Noun
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 Scroll
5822 \begin_inset space ~
5823 \end_inset
5824
5825 Lock-~
5826 \end_layout
5827
5828 \end_inset
5829
5830 .
5831  This is how I produce my accented characters.
5832 \end_layout
5833
5834 \end_inset
5835
5836  You can make just about anything into the 
5837 \begin_inset Flex Code
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Mode_Switch
5842 \end_layout
5843
5844 \end_inset
5845
5846  key: One of the 
5847 \begin_inset Flex Noun
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 Ctrl-
5852 \end_layout
5853
5854 \end_inset
5855
5856  keys, a spare function key, etc.
5857  As for the \SpecialChar LyX
5858  commands that produce accents, check the entry for 
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 accent-acute
5864 \end_layout
5865
5866 \end_inset
5867
5868  in the 
5869 \emph on
5870 Reference Manual
5871 \emph default
5872 .
5873  You'll find the complete list there.
5874 \end_layout
5875
5876 \begin_layout Subsection
5877 Saving your Language Configuration
5878 \end_layout
5879
5880 \begin_layout Standard
5881 You can edit your preferences so that your desired language environment
5882  is automatically configured when \SpecialChar LyX
5883  starts up, via the 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Edit\SpecialChar menuseparator
5889 Preferences
5890 \end_layout
5891
5892 \end_inset
5893
5894  dialog.
5895 \end_layout
5896
5897 \begin_layout Chapter
5898 Installing New Document Classes, Layouts, and Templates
5899 \begin_inset CommandInset label
5900 LatexCommand label
5901 name "cha:Installing-New-Document"
5902
5903 \end_inset
5904
5905
5906 \begin_inset Argument 1
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910 Installing New Document Classes
5911 \end_layout
5912
5913 \end_inset
5914
5915
5916 \end_layout
5917
5918 \begin_layout Standard
5919 In this chapter, we describe the procedures for creating and installing
5920  new \SpecialChar LyX
5921  layout and template files, as well as offer a refresher on correctly
5922  installing new \SpecialChar LaTeX
5923  document classes.
5924  
5925 \end_layout
5926
5927 \begin_layout Standard
5928 First, let us a say a few words about how one ought to think about the relation
5929  between \SpecialChar LyX
5930  and \SpecialChar LaTeX
5931 .
5932  The thing to understand is that, in a certain sense, \SpecialChar LyX
5933  doesn't know anything
5934  about \SpecialChar LaTeX
5935 .
5936  Indeed, from \SpecialChar LyX
5937 's point of view, \SpecialChar LaTeX
5938  is just one of several 
5939 \begin_inset Quotes eld
5940 \end_inset
5941
5942 backend formats
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946  in which it is capable of producing output.
5947  Other such formats are DocBook, plaintext, and XHTML.
5948  \SpecialChar LaTeX
5949  is, of course, a particularly important format, but very little of the
5950  information \SpecialChar LyX
5951  has about \SpecialChar LaTeX
5952  is actually contained in the program itself.
5953 \begin_inset Foot
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957 Some commands are sufficiently complex that they are 
5958 \begin_inset Quotes eld
5959 \end_inset
5960
5961 hardcoded
5962 \begin_inset Quotes erd
5963 \end_inset
5964
5965  into \SpecialChar LyX
5966 .
5967  But the developers generally regard this as a Bad Thing.
5968 \end_layout
5969
5970 \end_inset
5971
5972  Rather, that information, even for the standard classes like 
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 article.cls
5978 \end_layout
5979
5980 \end_inset
5981
5982 , is contained in `layout files'.
5983  Similarly, \SpecialChar LyX
5984  itself does not know much about DocBook or XHTML.
5985  What it knows is contained in layout files.
5986 \end_layout
5987
5988 \begin_layout Standard
5989 You can think of the layout file for a given document class as a translation
5990  manual between \SpecialChar LyX
5991  constructs—paragraphs with their corresponding styles,
5992  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5993 , DocBook, or XHTML
5994  constructs.
5995  Almost everything \SpecialChar LyX
5996  knows about 
5997 \begin_inset Flex Code
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 article.cls
6002 \end_layout
6003
6004 \end_inset
6005
6006 , for example, is contained in the file 
6007 \begin_inset Flex Code
6008 status collapsed
6009
6010 \begin_layout Plain Layout
6011 article.layout
6012 \end_layout
6013
6014 \end_inset
6015
6016  and in various other files it includes.
6017  For this reason, anyone intending to write layout files should plan to
6018  study the existing files.
6019  A good place to start is with 
6020 \begin_inset Flex Code
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024 stdsections.inc
6025 \end_layout
6026
6027 \end_inset
6028
6029 , which is included in 
6030 \begin_inset Flex Code
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 article.layout
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Flex Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 book.layout
6045 \end_layout
6046
6047 \end_inset
6048
6049 , and many of the other layout files for document classes.
6050  This file is where sections and the like are defined: 
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 stdsections.inc
6056 \end_layout
6057
6058 \end_inset
6059
6060  tells \SpecialChar LyX
6061  how paragraphs that are marked with the Section, Subsection, etc,
6062  styles can be translated into corresponding \SpecialChar LaTeX
6063 , DocBook, and XHTML commands
6064  and tags.
6065  The 
6066 \begin_inset Flex Code
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 article.layout
6071 \end_layout
6072
6073 \end_inset
6074
6075  file basically just includes several of these 
6076 \begin_inset Flex Code
6077 status collapsed
6078
6079 \begin_layout Plain Layout
6080 std*.inc
6081 \end_layout
6082
6083 \end_inset
6084
6085  files.
6086 \end_layout
6087
6088 \begin_layout Standard
6089 Defining the \SpecialChar LyX
6090 –\SpecialChar LaTeX
6091  correspondence is not the only thing layout files do, though.
6092  Their other job is to define how the \SpecialChar LyX
6093  constructs themselves will appear
6094  on-screen.
6095  The fact that layout files have these two jobs is often a source of confusion,
6096  because they are completely separate.
6097  Telling \SpecialChar LyX
6098  how to translate a certain paragraph style into \SpecialChar LaTeX
6099  does not tell
6100  \SpecialChar LyX
6101  how to display it; conversely, telling \SpecialChar LyX
6102  how to display a certain paragraph
6103  style does not tell \SpecialChar LyX
6104  how to translate it into \SpecialChar LaTeX
6105  (let alone tell \SpecialChar LaTeX
6106  how to
6107  display it).
6108  So, in general, when you define a new \SpecialChar LyX
6109  construct, you must always do two
6110  quite separate things: (i)
6111 \begin_inset space ~
6112 \end_inset
6113
6114 tell \SpecialChar LyX
6115  how to translate it into \SpecialChar LaTeX
6116  and (ii)
6117 \begin_inset space ~
6118 \end_inset
6119
6120 tell \SpecialChar LyX
6121  how to display it.
6122 \end_layout
6123
6124 \begin_layout Standard
6125 Much the same is true, of course, as regards \SpecialChar LyX
6126 's other backend formats, though
6127  XHTML is in some ways different, because in that case \SpecialChar LyX
6128  
6129 \emph on
6130 is
6131 \emph default
6132  able, to some extent, to use information about how it should display a
6133  paragraph on the screen to output information (in the form of CSS) about
6134  how the paragraph should be displayed in a browser.
6135  Even in this case, however, the distinction between what \SpecialChar LyX
6136  does internally
6137  and how things are rendered externally remains in force, and the two can
6138  be controlled separately.
6139  See 
6140 \begin_inset CommandInset ref
6141 LatexCommand ref
6142 reference "sec:Tags-for-XHTML"
6143
6144 \end_inset
6145
6146  for the details.
6147 \end_layout
6148
6149 \begin_layout Section
6150 Installing new \SpecialChar LaTeX
6151  files
6152 \end_layout
6153
6154 \begin_layout Standard
6155 Some installations may not include a \SpecialChar LaTeX
6156  package or class file that you would
6157  like to use within \SpecialChar LyX
6158 .
6159  For example, you might need Foil\SpecialChar TeX
6160 , a package for preparing slides for overhead
6161  projectors.
6162  Modern \SpecialChar LaTeX
6163  distributions like \SpecialChar TeX
6164 Live (2008 or newer) or MiK\SpecialChar TeX
6165  provide a user interface
6166  for installing such packages.
6167  For example, with MiK\SpecialChar TeX
6168 , you start the program 
6169 \begin_inset Quotes eld
6170 \end_inset
6171
6172 Package
6173 \begin_inset space ~
6174 \end_inset
6175
6176 Manager
6177 \begin_inset Quotes erd
6178 \end_inset
6179
6180  to get a list of available packages.
6181  To install one of them, right click on it or use the corresponding toolbar
6182  button.
6183 \end_layout
6184
6185 \begin_layout Standard
6186 If your \SpecialChar LaTeX
6187  distribution does not provide such a `package manager', or if the
6188  package is not available from your distribution, then follow these steps
6189  to install it manually:
6190 \end_layout
6191
6192 \begin_layout Enumerate
6193 Get the package from 
6194 \begin_inset CommandInset href
6195 LatexCommand href
6196 name "CTAN"
6197 target "http://www.ctan.org/"
6198 literal "false"
6199
6200 \end_inset
6201
6202  or wherever.
6203 \end_layout
6204
6205 \begin_layout Enumerate
6206 If the package contains a file with the ending 
6207 \begin_inset Quotes eld
6208 \end_inset
6209
6210
6211 \begin_inset Flex Code
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 .ins
6216 \end_layout
6217
6218 \end_inset
6219
6220
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224  (is the case for Foil\SpecialChar TeX
6225 ) then open a console, change to the folder of this
6226  file and execute the command 
6227 \begin_inset Flex Code
6228 status collapsed
6229
6230 \begin_layout Plain Layout
6231 latex foiltex.ins
6232 \end_layout
6233
6234 \end_inset
6235
6236 .
6237  You have now unpacked the package and have all files to install it.
6238  Most \SpecialChar LaTeX
6239 -packages are not packed and you can skip this step.
6240 \end_layout
6241
6242 \begin_layout Enumerate
6243 Now you need to decide if the package should be available for all users
6244  or only for you.
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6250  for all users on your system, then install it in your `local' \SpecialChar TeX
6251  tree, otherwise
6252  install it in your own `user' \SpecialChar TeX
6253  tree.
6254  Where these trees should be created, if they do not already exist, depends
6255  on your system.
6256  To find this out, look in the file 
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 texmf.cnf
6262 \end_layout
6263
6264 \end_inset
6265
6266 .
6267 \begin_inset Foot
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 This is usually in the directory 
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 $TEXMF/web2c
6277 \end_layout
6278
6279 \end_inset
6280
6281 , though you can execute the command 
6282 \begin_inset Flex Code
6283 status collapsed
6284
6285 \begin_layout Plain Layout
6286 kpsewhich texmf.cnf
6287 \end_layout
6288
6289 \end_inset
6290
6291  to locate it.
6292 \end_layout
6293
6294 \end_inset
6295
6296  The location of the `local' \SpecialChar TeX
6297  tree is defined by the 
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 TEXMFLOCAL
6303 \end_layout
6304
6305 \end_inset
6306
6307  variable; this is usually somewhere like 
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 /usr/local/share/texmf
6313 \end_layout
6314
6315 \end_inset
6316
6317  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6318 Live
6319  distribution.
6320  The location of the `user' \SpecialChar TeX
6321  tree is defined by 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 TEXMFHOME
6327 \end_layout
6328
6329 \end_inset
6330
6331  and is commonly 
6332 \begin_inset Flex Code
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 $HOME/texmf
6337 \end_layout
6338
6339 \end_inset
6340
6341  or 
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346
6347 \family sans
6348 $HOME/.texliveXXXX
6349 \end_layout
6350
6351 \end_inset
6352
6353 .
6354  (If these variables are not predefined, you have to define them.) You'll
6355  probably need root permissions to create or modify the `local' tree, but
6356  not for your `user' tree.
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360 In general, it is recommended to install in the user tree because your user
6361  will not be modified or even overwritten when you upgrade your system.
6362  It will typically also be backed up together with everything else when
6363  you backup your home directory (which, of course, you do on a regular basis).
6364 \end_layout
6365
6366 \begin_layout Enumerate
6367 On Windows, if you want the new package to be available for all users on
6368  your system, change to the folder where \SpecialChar LaTeX
6369  is installed and then change to
6370  the subfolder 
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375 ~
6376 \backslash
6377 tex
6378 \backslash
6379 latex
6380 \end_layout
6381
6382 \end_inset
6383
6384 .
6385  (For MiK\SpecialChar TeX
6386 , this would be by default the folder 
6387 \begin_inset Flex Code
6388 status collapsed
6389
6390 \begin_layout Plain Layout
6391 ~:
6392 \backslash
6393 Programs
6394 \backslash
6395 MiKTeX
6396 \backslash
6397 tex
6398 \backslash
6399 latex
6400 \end_layout
6401
6402 \end_inset
6403
6404 .)
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 Note that this will be the correct path only on English installations.
6410  On a German one, it would be 
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 ~:
6416 \backslash
6417 Programme
6418 \backslash
6419 MiKTeX
6420 \backslash
6421 tex
6422 \backslash
6423 latex
6424 \end_layout
6425
6426 \end_inset
6427
6428 , and similarly for other languages.
6429 \end_layout
6430
6431 \end_inset
6432
6433  Create there a new folder 
6434 \begin_inset Flex Code
6435 status collapsed
6436
6437 \begin_layout Plain Layout
6438 foiltex
6439 \end_layout
6440
6441 \end_inset
6442
6443  and copy all files of the package into it.
6444  
6445 \begin_inset Newline newline
6446 \end_inset
6447
6448 If the package should only available for you or you don't have admin permissions
6449 , do the same, but in the local \SpecialChar LaTeX
6450  folder.
6451  E.
6452 \begin_inset space \thinspace{}
6453 \end_inset
6454
6455 g., for MiK\SpecialChar TeX
6456
6457 \begin_inset space ~
6458 \end_inset
6459
6460 2.8 under Windows XP, this would be the folder:
6461 \begin_inset Newline newline
6462 \end_inset
6463
6464
6465 \family sans
6466
6467 \begin_inset Flex Code
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471 ~:
6472 \backslash
6473 Documents and Settings
6474 \backslash
6475 <username>
6476 \backslash
6477 Application Data
6478 \backslash
6479
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \begin_inset Newline newline
6486 \end_inset
6487
6488
6489 \family default
6490
6491 \begin_inset Phantom HPhantom
6492 status open
6493
6494 \begin_layout Plain Layout
6495
6496 \family sans
6497 ~:
6498 \backslash
6499
6500 \end_layout
6501
6502 \end_inset
6503
6504
6505 \begin_inset Flex Code
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 MiKTeX
6510 \backslash
6511 2.8
6512 \backslash
6513 tex
6514 \backslash
6515 latex
6516 \end_layout
6517
6518 \end_inset
6519
6520
6521 \begin_inset Newline newline
6522 \end_inset
6523
6524 On Vista, it would be:
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533 ~:
6534 \backslash
6535 Users
6536 \backslash
6537 <username>
6538 \backslash
6539 AppData
6540 \backslash
6541 Roaming
6542 \backslash
6543 2.8
6544 \backslash
6545 MiKTeX
6546 \backslash
6547 tex
6548 \backslash
6549 latex
6550 \end_layout
6551
6552 \end_inset
6553
6554
6555 \end_layout
6556
6557 \end_deeper
6558 \begin_layout Enumerate
6559 Now one only need to tell \SpecialChar LaTeX
6560  that there are new files.
6561  This depends on the used \SpecialChar LaTeX
6562 -Distribution:
6563 \end_layout
6564
6565 \begin_deeper
6566 \begin_layout Enumerate
6567 For \SpecialChar TeX
6568 Live execute the command 
6569 \begin_inset Flex Code
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 texhash
6574 \end_layout
6575
6576 \end_inset
6577
6578  from a console.
6579  If you installed the package for all users, then you will probably need
6580  to have root permissions for that.
6581 \end_layout
6582
6583 \begin_layout Enumerate
6584 For MiK\SpecialChar TeX
6585 , if you have installed the package for all users, start the program
6586  
6587 \begin_inset Quotes eld
6588 \end_inset
6589
6590 Settings
6591 \begin_inset space ~
6592 \end_inset
6593
6594 (Admin)
6595 \begin_inset Quotes erd
6596 \end_inset
6597
6598  and press the button marked 
6599 \begin_inset Quotes eld
6600 \end_inset
6601
6602 Refresh FNDB
6603 \begin_inset Quotes erd
6604 \end_inset
6605
6606 .
6607  Otherwise start the program 
6608 \begin_inset Quotes eld
6609 \end_inset
6610
6611 Settings
6612 \begin_inset Quotes erd
6613 \end_inset
6614
6615  and do the same.
6616 \end_layout
6617
6618 \end_deeper
6619 \begin_layout Enumerate
6620 Finally, you need to tell \SpecialChar LyX
6621  that there are new packages available.
6622  So, in \SpecialChar LyX
6623 , use the menu 
6624 \begin_inset Flex Noun
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 Tools
6629 \family sans
6630 \SpecialChar menuseparator
6631 Reconfigure
6632 \end_layout
6633
6634 \end_inset
6635
6636  and then restart \SpecialChar LyX
6637 .
6638 \end_layout
6639
6640 \begin_layout Standard
6641 Now the package is installed.
6642  In our example, the document class 
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 FoilTex
6648 \end_layout
6649
6650 \end_inset
6651
6652  will now be available under 
6653 \begin_inset Flex Noun
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 Document\SpecialChar menuseparator
6658 Settings\SpecialChar menuseparator
6659 Document Class
6660 \end_layout
6661
6662 \end_inset
6663
6664  (in the 
6665 \begin_inset Quotes eld
6666 \end_inset
6667
6668 Presentations
6669 \begin_inset Quotes erd
6670 \end_inset
6671
6672  category).
6673  
6674 \end_layout
6675
6676 \begin_layout Standard
6677 If you would like to use a \SpecialChar LaTeX
6678  document class that is not even listed in the
6679  menu 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Document\SpecialChar menuseparator
6685 Settings\SpecialChar menuseparator
6686 Document Class
6687 \end_layout
6688
6689 \end_inset
6690
6691 , then you need to create a `layout' file for it.
6692  That is the topic of the next section.
6693 \end_layout
6694
6695 \begin_layout Section
6696 Types of layout files
6697 \end_layout
6698
6699 \begin_layout Standard
6700 This section describes the various sorts of \SpecialChar LyX
6701  files that contain layout informati
6702 on.
6703  These files describe various paragraph and character styles, determining
6704  how \SpecialChar LyX
6705  should display them and how they should be translated into \SpecialChar LaTeX
6706 , DocBook,
6707  XHTML, or whatever output format is being used.
6708  
6709 \end_layout
6710
6711 \begin_layout Standard
6712 We shall try to provide a thorough description of the process of writing
6713  layout files here.
6714  However, there are so many different types of documents supported even
6715  by just \SpecialChar LaTeX
6716  that we can't hope to cover every different possibility or problem
6717  you might encounter.
6718  The \SpecialChar LyX
6719  users' list is frequented by people with lots of experience with layout
6720  design who are willing to share what they've learned, so please feel free
6721  to ask questions there.
6722 \end_layout
6723
6724 \begin_layout Standard
6725 As you prepare to write a new layout, it is extremely helpful to look at
6726  the layouts distributed with \SpecialChar LyX
6727 .
6728  If you write a \SpecialChar LyX
6729  layout for a \SpecialChar LaTeX
6730  document class that might also be used by
6731  others, or write a module that might be useful to others, then you should
6732  consider posting your layout to the 
6733 \begin_inset CommandInset href
6734 LatexCommand href
6735 name "layout section on the LyX wiki"
6736 target "https://wiki.lyx.org/Layouts/Layouts"
6737 literal "false"
6738
6739 \end_inset
6740
6741  or even to the \SpecialChar LyX
6742  developers' list, so that it might be included in \SpecialChar LyX
6743  itself.
6744 \begin_inset Foot
6745 status collapsed
6746
6747 \begin_layout Plain Layout
6748 Note that \SpecialChar LyX
6749  is licensed under the General Public License, so any material
6750  that is contributed to \SpecialChar LyX
6751  must be similarly licensed.
6752 \end_layout
6753
6754 \end_inset
6755
6756
6757 \end_layout
6758
6759 \begin_layout Subsection
6760 Layout modules
6761 \begin_inset CommandInset label
6762 LatexCommand label
6763 name "subsec:Layout-modules"
6764
6765 \end_inset
6766
6767
6768 \end_layout
6769
6770 \begin_layout Standard
6771 We have spoken to this point about `layout files'.
6772  But there are different sorts of files that contain layout information.
6773  Layout files, strictly so called, have the 
6774 \begin_inset Flex Code
6775 status collapsed
6776
6777 \begin_layout Plain Layout
6778 .layout
6779 \end_layout
6780
6781 \end_inset
6782
6783  extension and provide \SpecialChar LyX
6784  with information about document classes.
6785  Since \SpecialChar LyX
6786  1.6 layout information can also be contained in layout 
6787 \emph on
6788 modules
6789 \emph default
6790 , which have the 
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 .module
6796 \end_layout
6797
6798 \end_inset
6799
6800  extension.
6801  Modules are to \SpecialChar LaTeX
6802  packages much as layouts are to \SpecialChar LaTeX
6803  classes, and some modules—such
6804  as the 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 endnotes
6810 \end_layout
6811
6812 \end_inset
6813
6814  module—specifically provide support for one package.
6815  In a sense, layout modules are similar to included
6816 \begin_inset Foot
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 These can have any extension, but by convention have the 
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 .inc
6826 \end_layout
6827
6828 \end_inset
6829
6830  extension.
6831 \end_layout
6832
6833 \end_inset
6834
6835  files—files like 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 stdsections.inc
6841 \end_layout
6842
6843 \end_inset
6844
6845 —in that modules are not specific to a given document class but may be used
6846  with many different classes.
6847  The difference is that using an included file with 
6848 \begin_inset Flex Code
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 article.cls
6853 \end_layout
6854
6855 \end_inset
6856
6857  requires editing that file.
6858  Modules, by contrast, are selected in the 
6859 \begin_inset Flex Noun
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 Document\SpecialChar menuseparator
6864 Settings
6865 \end_layout
6866
6867 \end_inset
6868
6869  dialog.
6870 \end_layout
6871
6872 \begin_layout Standard
6873 Building modules is the easiest way to get started with layout editing,
6874  since it can be as simple as adding a single new paragraph style or flex
6875  inset.
6876  But modules may, in principle, contain anything a layout file can contain.
6877 \end_layout
6878
6879 \begin_layout Standard
6880 After creating a new module and copying it to the 
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 layouts/
6886 \end_layout
6887
6888 \end_inset
6889
6890  folder, you will need to reconfigure and then restart \SpecialChar LyX
6891  for the module to
6892  appear in the menu.
6893  However, changes you make to the module will be seen immediately, if you
6894  open 
6895 \begin_inset Flex Noun
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 Document\SpecialChar menuseparator
6900 Settings
6901 \end_layout
6902
6903 \end_inset
6904
6905 , highlight something, and then hit 
6906 \begin_inset Quotes eld
6907 \end_inset
6908
6909 OK
6910 \begin_inset Quotes erd
6911 \end_inset
6912
6913 .
6914  
6915 \emph on
6916 It is strongly recommended that you save your work before doing this
6917 \emph default
6918 .
6919  In fact, 
6920 \emph on
6921 it is strongly recommended that you not attempt to edit modules while simultaneo
6922 usly working on actual documents
6923 \emph default
6924 .
6925  Though of course the developers strive to keep \SpecialChar LyX
6926  stable in such situations,
6927  syntax errors and the like in your module file could cause strange behavior.
6928 \end_layout
6929
6930 \begin_layout Subsubsection
6931 Local Layout
6932 \end_layout
6933
6934 \begin_layout Standard
6935 Modules are to \SpecialChar LyX
6936  as packages are to \SpecialChar LaTeX
6937 .
6938  Sometimes, however, you find yourself wanting a specific inset or character
6939  style just for one document and writing a module that will also be available
6940  to other documents makes little sense.
6941  What you need is \SpecialChar LyX
6942 's 
6943 \begin_inset Quotes eld
6944 \end_inset
6945
6946 Local Layout
6947 \begin_inset Quotes erd
6948 \end_inset
6949
6950 .
6951 \end_layout
6952
6953 \begin_layout Standard
6954 You will find it under 
6955 \family sans
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Local Layout
6959 \family default
6960 .
6961  The large text box allows you to enter anything that you might enter in
6962  a layout file or module.
6963  You can think of a document's local layout, in fact, as a module that belongs
6964  just to it.
6965  So, in particular, you must enter a 
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Format
6971 \end_layout
6972
6973 \end_inset
6974
6975  tag.
6976  Any format is acceptable, but one would normally use the format current
6977  at the time.
6978  (In \SpecialChar LyX
6979  
6980 \begin_inset Info
6981 type  "lyxinfo"
6982 arg   "version"
6983 \end_inset
6984
6985 , the current layout format is 
6986 \begin_inset Info
6987 type  "lyxinfo"
6988 arg   "layoutformat"
6989 \end_inset
6990
6991 .)
6992 \end_layout
6993
6994 \begin_layout Standard
6995 When you have entered something in the 
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 Local Layout
7001 \end_layout
7002
7003 \end_inset
7004
7005  pane, \SpecialChar LyX
7006  will enable the 
7007 \begin_inset Quotes eld
7008 \end_inset
7009
7010 Validate
7011 \begin_inset Quotes erd
7012 \end_inset
7013
7014  button at the bottom.
7015  Clicking this button will cause \SpecialChar LyX
7016  to determine whether what you have entered
7017  is valid layout information for the chosen format.
7018  \SpecialChar LyX
7019  will report the result but, unfortunately, will not tell you what errors
7020  there might have been.
7021  These will be written to the terminal, however, if \SpecialChar LyX
7022  is started from a terminal.
7023  You will not be permitted to save your local layout until you have entered
7024  something valid.
7025 \end_layout
7026
7027 \begin_layout Standard
7028 The warnings at the end of the previous section apply here, too.
7029  Do not play with local layout while you are actually working, especially
7030  if you have not saved your document.
7031  That said, using local layout with a test document can be a very convenient
7032  way to try out layout ideas, or even to start developing a module.
7033 \end_layout
7034
7035 \begin_layout Subsection
7036 Layout for 
7037 \begin_inset Flex Noun
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 .sty
7042 \end_layout
7043
7044 \end_inset
7045
7046  files
7047 \end_layout
7048
7049 \begin_layout Standard
7050 There are two situations you are likely to encounter when wanting to support
7051  a new \SpecialChar LaTeX
7052  document class, involving style (
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 .sty
7058 \end_layout
7059
7060 \end_inset
7061
7062 ) files and \SpecialChar LaTeX2e
7063  class (
7064 \begin_inset Flex Code
7065 status collapsed
7066
7067 \begin_layout Plain Layout
7068 .cls
7069 \end_layout
7070
7071 \end_inset
7072
7073 ) .
7074  Supporting a style file is usually fairly easy.
7075  Supporting a new class file is a bit harder.
7076  We'll discuss the former in this section and the latter in the next.
7077  Similar remarks apply, of course, if you want to support a new DocBook
7078  DTD.
7079 \end_layout
7080
7081 \begin_layout Standard
7082 The easier case is the one in which your new document class is provided
7083  as a style file that is to be used in conjunction with an already supported
7084  document class.
7085  For the sake of the example, we'll assume that the style file is called
7086  
7087 \begin_inset Flex Noun
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 myclass.sty
7092 \end_layout
7093
7094 \end_inset
7095
7096  and that it is meant to be used with 
7097 \begin_inset Flex Noun
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 report.cls
7102 \end_layout
7103
7104 \end_inset
7105
7106 , which is a standard class.
7107  
7108 \end_layout
7109
7110 \begin_layout Standard
7111 Start by copying the existing class's layout file into your local directory:
7112 \begin_inset Foot
7113 status collapsed
7114
7115 \begin_layout Plain Layout
7116 Of course, which directory is your local directory will vary by platform,
7117  and \SpecialChar LyX
7118  allows you to specify your local directory on startup, too, using
7119  the 
7120 \begin_inset Flex Code
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 -userdir
7125 \end_layout
7126
7127 \end_inset
7128
7129  option.
7130 \end_layout
7131
7132 \end_inset
7133
7134
7135 \end_layout
7136
7137 \begin_layout LyX-Code
7138 cp report.layout ~/.lyx/layouts/myclass.layout
7139 \end_layout
7140
7141 \begin_layout Standard
7142 Then edit 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 myclass.layout
7148 \end_layout
7149
7150 \end_inset
7151
7152  and change the line: 
7153 \end_layout
7154
7155 \begin_layout LyX-Code
7156
7157 \backslash
7158 DeclareLaTeXClass{Report (Standard Class)}
7159 \end_layout
7160
7161 \begin_layout Standard
7162 to read
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166
7167 \backslash
7168 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7169 \end_layout
7170
7171 \begin_layout Standard
7172 Then add:
7173 \end_layout
7174
7175 \begin_layout LyX-Code
7176 Preamble 
7177 \begin_inset Newline newline
7178 \end_inset
7179
7180     
7181 \backslash
7182 usepackage{myclass}
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186 EndPreamble
7187 \end_layout
7188
7189 \begin_layout Standard
7190 near the top of the file.
7191 \end_layout
7192
7193 \begin_layout Standard
7194 Start \SpecialChar LyX
7195  and select 
7196 \begin_inset Flex Noun
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 Tools\SpecialChar menuseparator
7201 Reconfigure
7202 \end_layout
7203
7204 \end_inset
7205
7206 .
7207  Then restart \SpecialChar LyX
7208  and try creating a new document.
7209  You should see "
7210 \begin_inset Flex Noun
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214 Report (My Class)
7215 \end_layout
7216
7217 \end_inset
7218
7219 " as a document class option in the 
7220 \begin_inset Flex Noun
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 Document\SpecialChar menuseparator
7225 Settings
7226 \end_layout
7227
7228 \end_inset
7229
7230  dialog.
7231  It is likely that some of the sectioning commands and such in your new
7232  class will work differently from how they worked in the base class—
7233 \begin_inset Flex Code
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 report
7238 \end_layout
7239
7240 \end_inset
7241
7242  in this example—so you can fiddle around with the settings for the different
7243  sections if you wish.
7244  The layout information for sections is contained in 
7245 \begin_inset Flex Code
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 stdsections.inc
7250 \end_layout
7251
7252 \end_inset
7253
7254 , but you do not need to copy and change this file.
7255  Instead, you can simply add your changes to your layout file, after the
7256  line 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Input stdclass.inc
7262 \end_layout
7263
7264 \end_inset
7265
7266 , which itself includes 
7267 \begin_inset Flex Code
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 stdsections.inc
7272 \end_layout
7273
7274 \end_inset
7275
7276 .
7277  For example, you might add these lines:
7278 \end_layout
7279
7280 \begin_layout LyX-Code
7281 Style Chapter
7282 \end_layout
7283
7284 \begin_layout LyX-Code
7285     Font
7286 \end_layout
7287
7288 \begin_layout LyX-Code
7289         Family Sans
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293     EndFont
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297 End
7298 \end_layout
7299
7300 \begin_layout Standard
7301 to change the font for chapter headings to sans-serif.
7302  This will override (or, in this case, add to) the existing declaration
7303  for the Chapter style.
7304  
7305 \end_layout
7306
7307 \begin_layout Standard
7308 Your new package may also provide commands or environments not present in
7309  the base class.
7310  In this case, you will want to add these to the layout file.
7311  See 
7312 \begin_inset CommandInset ref
7313 LatexCommand ref
7314 reference "sec:TextClass"
7315
7316 \end_inset
7317
7318  for information on how to do so.
7319 \end_layout
7320
7321 \begin_layout Standard
7322 If 
7323 \begin_inset Flex Noun
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 myclass.sty
7328 \end_layout
7329
7330 \end_inset
7331
7332  can be used with several different document classes, and even if it cannot,
7333  you might find it easiest just to write a module that you can load with
7334  the base class.
7335  The simplest possible such module would be:
7336 \end_layout
7337
7338 \begin_layout LyX-Code
7339 #
7340 \backslash
7341 DeclareLyXModule{My Class} 
7342 \end_layout
7343
7344 \begin_layout LyX-Code
7345 #DescriptionBegin 
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 #Support for myclass.sty.
7350 \end_layout
7351
7352 \begin_layout LyX-Code
7353 #DescriptionEnd
7354 \begin_inset Newline newline
7355 \end_inset
7356
7357
7358 \end_layout
7359
7360 \begin_layout LyX-Code
7361 Format 
7362 \begin_inset Info
7363 type  "lyxinfo"
7364 arg   "layoutformat"
7365 \end_inset
7366
7367
7368 \begin_inset Newline newline
7369 \end_inset
7370
7371
7372 \end_layout
7373
7374 \begin_layout LyX-Code
7375 Preamble
7376 \begin_inset Newline newline
7377 \end_inset
7378
7379     
7380 \backslash
7381 usepackage{myclass}
7382 \begin_inset Newline newline
7383 \end_inset
7384
7385 EndPreamble
7386 \end_layout
7387
7388 \begin_layout Standard
7389 A more complex module might modify the behavior of some existing constructs
7390  or define some new ones.
7391  Again, see 
7392 \begin_inset CommandInset ref
7393 LatexCommand ref
7394 reference "sec:TextClass"
7395
7396 \end_inset
7397
7398  for discussion.
7399 \end_layout
7400
7401 \begin_layout Subsection
7402 Layout for 
7403 \begin_inset Flex Noun
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 .cls
7408 \end_layout
7409
7410 \end_inset
7411
7412  files
7413 \end_layout
7414
7415 \begin_layout Standard
7416 There are two possibilities here.
7417  One is that the class file is itself based upon an existing document class.
7418  For example, many thesis classes are based upon 
7419 \begin_inset Flex Noun
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 book.cls
7424 \end_layout
7425
7426 \end_inset
7427
7428 .
7429  To see whether yours is, look for a line like
7430 \end_layout
7431
7432 \begin_layout LyX-Code
7433
7434 \backslash
7435 LoadClass{book}
7436 \end_layout
7437
7438 \begin_layout Standard
7439 in the file.
7440  If so, then you may proceed largely as in the previous section, though
7441  the 
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 Declare\SpecialChar LaTeX
7447 Class
7448 \end_layout
7449
7450 \end_inset
7451
7452  line will be different.
7453  If your new class is 
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 thesis
7459 \end_layout
7460
7461 \end_inset
7462
7463  and it is based upon 
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 book
7469 \end_layout
7470
7471 \end_inset
7472
7473 , then the line should read:
7474 \begin_inset Foot
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 And it will be easiest if you save the file to 
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 thesis.layout
7484 \end_layout
7485
7486 \end_inset
7487
7488 : \SpecialChar LyX
7489  assumes that the document class has the same name as the layout file.
7490  
7491 \end_layout
7492
7493 \end_inset
7494
7495
7496 \end_layout
7497
7498 \begin_layout LyX-Code
7499
7500 \backslash
7501 DeclareLaTeXClass[thesis,book]{thesis}
7502 \end_layout
7503
7504 \begin_layout Standard
7505 If, on the other hand, the new class is not based upon an existing class,
7506  you will probably have to 
7507 \begin_inset Quotes eld
7508 \end_inset
7509
7510 roll your own
7511 \begin_inset Quotes erd
7512 \end_inset
7513
7514  layout.
7515  We strongly suggest copying an existing layout file which uses a similar
7516  \SpecialChar LaTeX
7517  class and then modifying it, if you can do so.
7518  At least use an existing file as a starting point so you can find out what
7519  items you need to worry about.
7520  Again, the specifics are covered below.
7521 \end_layout
7522
7523 \begin_layout Subsection
7524 Creating templates
7525 \begin_inset CommandInset label
7526 LatexCommand label
7527 name "subsec:Creating-Templates"
7528
7529 \end_inset
7530
7531
7532 \end_layout
7533
7534 \begin_layout Standard
7535 Once you have written a layout file for a new document class, you might
7536  want to consider writing a 
7537 \emph on
7538 template
7539 \emph default
7540  for it, too.
7541  A template acts as a kind of tutorial for your layout, showing how it might
7542  be used, though containing dummy content.
7543  You can of course look at the various templates included with \SpecialChar LyX
7544  for ideas.
7545 \end_layout
7546
7547 \begin_layout Standard
7548 Templates are created just like usual documents: using \SpecialChar LyX
7549 .
7550  The only difference is that usual documents contain all possible settings,
7551  including the font scheme and the paper size.
7552  Usually a user doesn't want a template to overwrite his preferred settings
7553  for such parameters.
7554  For that reason, the designer of a template should remove the corresponding
7555  commands like 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560
7561 \backslash
7562 font_roman
7563 \end_layout
7564
7565 \end_inset
7566
7567  or 
7568 \begin_inset Flex Code
7569 status collapsed
7570
7571 \begin_layout Plain Layout
7572
7573 \backslash
7574 papersize
7575 \end_layout
7576
7577 \end_inset
7578
7579  from the template \SpecialChar LyX
7580  file.
7581  This can be done with any simple text-editor, for example 
7582 \begin_inset Flex Code
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586 vi
7587 \end_layout
7588
7589 \end_inset
7590
7591  or 
7592 \begin_inset Flex Code
7593 status collapsed
7594
7595 \begin_layout Plain Layout
7596 notepad
7597 \end_layout
7598
7599 \end_inset
7600
7601 .
7602 \end_layout
7603
7604 \begin_layout Standard
7605 Put the edited template files you create in 
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 UserDir/templates/
7611 \end_layout
7612
7613 \end_inset
7614
7615 , copy the ones you use from the global template directory in 
7616 \begin_inset Flex Code
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 LyXDir/templates/
7621 \end_layout
7622
7623 \end_inset
7624
7625  to the same place, and redefine the template path in the 
7626 \begin_inset Flex Noun
7627 status collapsed
7628
7629 \begin_layout Plain Layout
7630 Tools\SpecialChar menuseparator
7631 Preferences\SpecialChar menuseparator
7632 Paths
7633 \end_layout
7634
7635 \end_inset
7636
7637  dialog.
7638 \end_layout
7639
7640 \begin_layout Standard
7641 Note, by the way, that there is a template which has a particular meaning:
7642 \begin_inset Newline linebreak
7643 \end_inset
7644
7645
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 defaults.lyx
7651 \end_layout
7652
7653 \end_inset
7654
7655 .
7656  This template is loaded every time you create a new document with 
7657 \begin_inset Flex Noun
7658 status collapsed
7659
7660 \begin_layout Plain Layout
7661 File\SpecialChar menuseparator
7662 New
7663 \end_layout
7664
7665 \end_inset
7666
7667  in order to provide useful defaults.
7668  To create this template from inside \SpecialChar LyX
7669 , all you have to do is to open a document
7670  with the correct settings, and use the 
7671 \begin_inset Flex Noun
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 Save as Document Defaults
7676 \end_layout
7677
7678 \end_inset
7679
7680  button.
7681 \end_layout
7682
7683 \begin_layout Subsection
7684 Upgrading old layout files
7685 \end_layout
7686
7687 \begin_layout Standard
7688 The format of layout files changes with each \SpecialChar LyX
7689  release, so old layout files
7690  need to be converted to the new format.
7691  If \SpecialChar LyX
7692  reads a layout file in an older format, it automatically calls the
7693  script 
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 layout2layout.py
7699 \end_layout
7700
7701 \end_inset
7702
7703  to convert it to a temporary file in current format.
7704  The original file is left untouched.
7705  If you use the layout file often, then, you may want to convert it permanently,
7706  so that \SpecialChar LyX
7707  does not have to do so itself every time.
7708  To do this, you can call the converter manually:
7709 \end_layout
7710
7711 \begin_layout Enumerate
7712 rename the file 
7713 \begin_inset Flex Code
7714 status collapsed
7715
7716 \begin_layout Plain Layout
7717 myclass.layout
7718 \end_layout
7719
7720 \end_inset
7721
7722  to 
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 myclass.old
7728 \end_layout
7729
7730 \end_inset
7731
7732
7733 \end_layout
7734
7735 \begin_layout Enumerate
7736 Call the command
7737 \begin_inset Newline newline
7738 \end_inset
7739
7740
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7746 \end_layout
7747
7748 \end_inset
7749
7750
7751 \begin_inset Newline newline
7752 \end_inset
7753
7754 where 
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 LyXDir
7760 \end_layout
7761
7762 \end_inset
7763
7764  is the name of your \SpecialChar LyX
7765  system directory.
7766 \end_layout
7767
7768 \begin_layout Standard
7769 Note that manual conversion does not affect included files, so these will
7770  have to be converted separately.
7771 \end_layout
7772
7773 \begin_layout Subsection
7774 \begin_inset CommandInset label
7775 LatexCommand label
7776 name "subsec:Cite-Engine-Files"
7777
7778 \end_inset
7779
7780 Cite engine files
7781 \end_layout
7782
7783 \begin_layout Standard
7784 A specific form of layout files are the so-called 
7785 \begin_inset Flex Code
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 *.citeengine
7790 \end_layout
7791
7792 \end_inset
7793
7794  files that are located in the 
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 citeengines/
7800 \end_layout
7801
7802 \end_inset
7803
7804  sub-directory.
7805  Their purpose is to define the specifics of \SpecialChar LaTeX
7806  packages aimed at bibliography
7807  generation, such as 
7808 \family sans
7809 natbib
7810 \family default
7811 ,
7812 \family sans
7813  jurabib
7814 \family default
7815  or 
7816 \family sans
7817 biblatex
7818 \family default
7819 , but also the way how normal Bib\SpecialChar TeX
7820  citations (without additional packages)
7821  are handled in \SpecialChar LyX
7822  is defined in such a file.
7823  
7824 \end_layout
7825
7826 \begin_layout Standard
7827 More specifically, it is defined which packages \SpecialChar LyX
7828  needs to load, which citation
7829  commands are available, how these are to be displayed in \SpecialChar LyX
7830  (in the workarea,
7831  the dialogs, the context menus) as well as in the XHTML and plain text
7832  output.
7833  Furthermore, the files specify available style variants (author-year, numerical
7834 , etc.) and their specifics.
7835  The cite engine files are also used to generate the options that are available
7836  in 
7837 \family sans
7838 Document\SpecialChar menuseparator
7839 Settings\SpecialChar menuseparator
7840 Bibliography\SpecialChar menuseparator
7841 Style engine
7842 \family default
7843 .
7844 \end_layout
7845
7846 \begin_layout Standard
7847 Even though a cite engine file is essentially a normal layout file that
7848  could theoretically include any layout information, it usually primarily
7849  includes some specific parameters such as 
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 MaxCiteNames
7855 \end_layout
7856
7857 \end_inset
7858
7859
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 CiteFramework
7865 \end_layout
7866
7867 \end_inset
7868
7869
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 CiteEngine
7875 \end_layout
7876
7877 \end_inset
7878
7879  and 
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 CiteFormat
7885 \end_layout
7886
7887 \end_inset
7888
7889  blocks.
7890  The syntax of the latter two is described in 
7891 \begin_inset CommandInset ref
7892 LatexCommand ref
7893 reference "subsec:Citation-engine-description"
7894 plural "false"
7895 caps "false"
7896 noprefix "false"
7897
7898 \end_inset
7899
7900  and 
7901 \begin_inset CommandInset ref
7902 LatexCommand ref
7903 reference "subsec:Citation-format-description"
7904
7905 \end_inset
7906
7907 , as well as in the files themselves.
7908 \end_layout
7909
7910 \begin_layout Section
7911 \begin_inset CommandInset label
7912 LatexCommand label
7913 name "sec:TextClass"
7914
7915 \end_inset
7916
7917 The layout file format
7918 \end_layout
7919
7920 \begin_layout Standard
7921 The following sections describe how layout files are structured and written.
7922  Our advice is to go slowly, save and test often.
7923  It is really not that hard, except that the multitude of options can become
7924  overwhelming, especially if you try to check out too many at once.
7925  It becomes easier if you use existing layouts of \SpecialChar LyX
7926  as examples/reference
7927  or if you modify an existing layout to your needs.
7928 \end_layout
7929
7930 \begin_layout Standard
7931 Note that all the tags used in layout files are case-insensitive.
7932  This means that 
7933 \begin_inset Flex Code
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 Style
7938 \end_layout
7939
7940 \end_inset
7941
7942
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 style
7948 \end_layout
7949
7950 \end_inset
7951
7952  and 
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 StYlE
7958 \end_layout
7959
7960 \end_inset
7961
7962  are really the same tag.
7963  The possible arguments are printed in brackets after the tag's name.
7964  The default argument is typeset 
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969
7970 \emph on
7971 emphasized
7972 \end_layout
7973
7974 \end_inset
7975
7976 .
7977  If the argument has a data type like 
7978 \begin_inset Quotes eld
7979 \end_inset
7980
7981 string
7982 \begin_inset Quotes erd
7983 \end_inset
7984
7985  or 
7986 \begin_inset Quotes eld
7987 \end_inset
7988
7989 float
7990 \begin_inset Quotes erd
7991 \end_inset
7992
7993 , the default is shown like this: 
7994 \begin_inset Flex Code
7995 status collapsed
7996
7997 \begin_layout Plain Layout
7998 float=
7999 \emph on
8000 default
8001 \end_layout
8002
8003 \end_inset
8004
8005 .
8006 \end_layout
8007
8008 \begin_layout Subsection
8009 The document class declaration and classification
8010 \end_layout
8011
8012 \begin_layout Standard
8013 Lines in a layout file which begin with 
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 #
8019 \end_layout
8020
8021 \end_inset
8022
8023  are comments.
8024  There is one exception to this rule.
8025  All 
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 *.layout
8031 \end_layout
8032
8033 \end_inset
8034
8035  files should begin with lines like:
8036 \end_layout
8037
8038 \begin_layout LyX-Code
8039
8040 \size small
8041 #% Do not delete the line below; configure depends on this 
8042 \end_layout
8043
8044 \begin_layout LyX-Code
8045
8046 \size small
8047 #  
8048 \backslash
8049 DeclareLaTeXClass{Article (Standard Class)}
8050 \end_layout
8051
8052 \begin_layout LyX-Code
8053
8054 \size small
8055 #  
8056 \backslash
8057 DeclareCategory{Articles}
8058 \end_layout
8059
8060 \begin_layout Standard
8061 The second and third lines are used when you (re)configure \SpecialChar LyX
8062 .
8063  The layout file is read by the \SpecialChar LaTeX
8064  script 
8065 \begin_inset Flex Code
8066 status collapsed
8067
8068 \begin_layout Plain Layout
8069 chkconfig.ltx
8070 \end_layout
8071
8072 \end_inset
8073
8074 , in a special mode where 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 #
8080 \end_layout
8081
8082 \end_inset
8083
8084  is ignored.
8085  The first line is just a \SpecialChar LaTeX
8086  comment, the second one contains the mandatory
8087  declaration of the text class and the third line contains the optional
8088  classification of the class.
8089  If these lines appear in a file named 
8090 \begin_inset Flex Code
8091 status collapsed
8092
8093 \begin_layout Plain Layout
8094 article.layout
8095 \end_layout
8096
8097 \end_inset
8098
8099 , then they define a text class of name 
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 article
8105 \end_layout
8106
8107 \end_inset
8108
8109  (the name of the layout file) which uses the \SpecialChar LaTeX
8110  document class 
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 article.cls
8116 \end_layout
8117
8118 \end_inset
8119
8120  (the default is to use the same name as the layout).
8121  The string 
8122 \begin_inset Quotes eld
8123 \end_inset
8124
8125 Article (Standard Class)
8126 \begin_inset Quotes erd
8127 \end_inset
8128
8129  that appears above is used as a description of the text class in the 
8130 \begin_inset Flex Noun
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 Document\SpecialChar menuseparator
8135 Settings
8136 \end_layout
8137
8138 \end_inset
8139
8140  dialog.
8141  The category (
8142 \begin_inset Quotes eld
8143 \end_inset
8144
8145 Articles
8146 \begin_inset Quotes erd
8147 \end_inset
8148
8149  in the example) is also used in the 
8150 \begin_inset Flex Noun
8151 status collapsed
8152
8153 \begin_layout Plain Layout
8154 Document\SpecialChar menuseparator
8155 Settings
8156 \end_layout
8157
8158 \end_inset
8159
8160  dialog: the text classes are grouped by these categories (which are usually
8161  genres, so typical categories are 
8162 \begin_inset Quotes eld
8163 \end_inset
8164
8165 Articles
8166 \begin_inset Quotes erd
8167 \end_inset
8168
8169
8170 \begin_inset Quotes eld
8171 \end_inset
8172
8173 Books
8174 \begin_inset Quotes erd
8175 \end_inset
8176
8177
8178 \begin_inset Quotes eld
8179 \end_inset
8180
8181 Reports
8182 \begin_inset Quotes erd
8183 \end_inset
8184
8185
8186 \begin_inset Quotes eld
8187 \end_inset
8188
8189 Letters
8190 \begin_inset Quotes erd
8191 \end_inset
8192
8193
8194 \begin_inset Quotes eld
8195 \end_inset
8196
8197 Presentations
8198 \begin_inset Quotes erd
8199 \end_inset
8200
8201
8202 \begin_inset Quotes eld
8203 \end_inset
8204
8205 Curricula Vitae
8206 \begin_inset Quotes erd
8207 \end_inset
8208
8209  etc.).
8210  If no category has been declared, the class will be put in the 
8211 \begin_inset Quotes eld
8212 \end_inset
8213
8214 Uncategorized
8215 \begin_inset Quotes erd
8216 \end_inset
8217
8218  group.
8219 \end_layout
8220
8221 \begin_layout Standard
8222 Let's assume that you wrote your own text class that uses the 
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 article.cls
8228 \end_layout
8229
8230 \end_inset
8231
8232  document class, but where you changed the appearance of the section headings.
8233  If you put it in a file 
8234 \begin_inset Flex Code
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 myarticle.layout
8239 \end_layout
8240
8241 \end_inset
8242
8243 , the header of this file should be:
8244 \end_layout
8245
8246 \begin_layout LyX-Code
8247
8248 \size small
8249 #% Do not delete the line below; configure depends on this 
8250 \end_layout
8251
8252 \begin_layout LyX-Code
8253
8254 \size small
8255 #  
8256 \backslash
8257 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8258 \end_layout
8259
8260 \begin_layout LyX-Code
8261
8262 \size small
8263 #  
8264 \backslash
8265 DeclareCategory{Articles}
8266 \end_layout
8267
8268 \begin_layout Standard
8269 This declares a text class 
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 myarticle
8275 \end_layout
8276
8277 \end_inset
8278
8279 , associated with the \SpecialChar LaTeX
8280  document class 
8281 \begin_inset Flex Code
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 article.cls
8286 \end_layout
8287
8288 \end_inset
8289
8290  and described as 
8291 \begin_inset Quotes eld
8292 \end_inset
8293
8294 Article (with My Own Headings)
8295 \begin_inset Quotes erd
8296 \end_inset
8297
8298 .
8299  If your text class depends on several packages, you can declare it as:
8300 \end_layout
8301
8302 \begin_layout LyX-Code
8303
8304 \size small
8305 #% Do not delete the line below; configure depends on this 
8306 \end_layout
8307
8308 \begin_layout LyX-Code
8309
8310 \size small
8311 #  
8312 \backslash
8313 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8314 \end_layout
8315
8316 \begin_layout LyX-Code
8317
8318 \size small
8319 #  
8320 \backslash
8321 DeclareCategory{Articles}
8322 \end_layout
8323
8324 \begin_layout Standard
8325 This indicates that your text class uses the 
8326 \begin_inset Flex Code
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330 foo.sty
8331 \end_layout
8332
8333 \end_inset
8334
8335  package.
8336  Finally, it is also possible to declare classes for DocBook code.
8337  Typical declarations will look like:
8338 \end_layout
8339
8340 \begin_layout LyX-Code
8341
8342 \size small
8343 #% Do not delete the line below; configure depends on this 
8344 \end_layout
8345
8346 \begin_layout LyX-Code
8347
8348 \size small
8349
8350 \backslash
8351 DeclareDocBookClass[article]{SGML (DocBook Article)}
8352 \end_layout
8353
8354 \begin_layout LyX-Code
8355
8356 \size small
8357
8358 \backslash
8359 DeclareCategory{Articles (DocBook)}
8360 \end_layout
8361
8362 \begin_layout Standard
8363 Note that these declarations can also be given an optional parameter declaring
8364  the name of the document class (but not a list).
8365 \end_layout
8366
8367 \begin_layout Standard
8368 So, to be as explicit as possible, the form of the layout declaration is:
8369 \end_layout
8370
8371 \begin_layout LyX-Code
8372
8373 \size small
8374 #  
8375 \backslash
8376 DeclareLaTeXClass[class,package.sty]{layout description}
8377 \end_layout
8378
8379 \begin_layout LyX-Code
8380
8381 \size small
8382 #  
8383 \backslash
8384 DeclareCategory{category}
8385 \end_layout
8386
8387 \begin_layout Standard
8388 The class need only be specified if the name of the \SpecialChar LaTeX
8389  class file and the
8390  name of the layout file are different or if there are packages to load.
8391  If the name of the class file is not specified, then \SpecialChar LyX
8392  will simply assume
8393  that it is the same as the name of the layout file.
8394 \end_layout
8395
8396 \begin_layout Standard
8397 When the text class has been modified to your taste, all you have to do
8398  is to copy it either to 
8399 \begin_inset Flex Code
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 LyXDir/layouts/
8404 \end_layout
8405
8406 \end_inset
8407
8408  or to 
8409 \begin_inset Flex Code
8410 status collapsed
8411
8412 \begin_layout Plain Layout
8413 UserDir/layouts
8414 \end_layout
8415
8416 \end_inset
8417
8418 , run 
8419 \begin_inset Flex Noun
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Tools\SpecialChar menuseparator
8424 Reconfigure
8425 \end_layout
8426
8427 \end_inset
8428
8429 , exit \SpecialChar LyX
8430  and restart.
8431  Then your new text class should be available along with the others.
8432 \end_layout
8433
8434 \begin_layout Standard
8435 Once the layout file is installed, you can edit it and see your changes
8436  without having to reconfigure or to restart \SpecialChar LyX
8437 .
8438 \begin_inset Foot
8439 status collapsed
8440
8441 \begin_layout Plain Layout
8442 In versions of \SpecialChar LyX
8443  prior to 1.6, this was not true.
8444  As a result, editing layout files was very time consuming, since you had
8445  constantly to restart \SpecialChar LyX
8446  to see changes.
8447 \end_layout
8448
8449 \end_inset
8450
8451  You can force a reload of the current layout by using the \SpecialChar LyX
8452  function 
8453 \begin_inset Flex Noun
8454 status collapsed
8455
8456 \begin_layout Plain Layout
8457 layout-reload
8458 \end_layout
8459
8460 \end_inset
8461
8462 .
8463  There is no default binding for this function—though, of course, you can
8464  bind it to a key yourself.
8465  But you will normally use this function simply by entering it in the mini-buffe
8466 r.
8467  
8468 \end_layout
8469
8470 \begin_layout Standard
8471
8472 \emph on
8473 Warning
8474 \emph default
8475
8476 \begin_inset Flex Noun
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 layout-reload
8481 \end_layout
8482
8483 \end_inset
8484
8485  is very much an `advanced feature'.
8486  It is 
8487 \emph on
8488 strongly
8489 \emph default
8490  recommended that you save your work before using this function.
8491  In fact, it is 
8492 \emph on
8493 strongly
8494 \emph default
8495  recommended that you not attempt to edit layout information while simultaneousl
8496 y working on a document that you care about.
8497  Use a test document.
8498  Syntax errors and the like in your layout file could cause peculiar behavior.
8499  In particular, such errors could cause \SpecialChar LyX
8500  to regard the current layout as
8501  invalid and to attempt to switch to some other layout.
8502 \begin_inset Foot
8503 status collapsed
8504
8505 \begin_layout Plain Layout
8506 Really bad syntax errors may even caused \SpecialChar LyX
8507  to exit.
8508  This is because certain sorts of errors may make \SpecialChar LyX
8509  unable to read 
8510 \emph on
8511 any
8512 \emph default
8513  layout information.
8514  Please be careful.
8515 \end_layout
8516
8517 \end_inset
8518
8519  The \SpecialChar LyX
8520  team strives to keep \SpecialChar LyX
8521  stable in such situations, but safe is better
8522  than sorry.
8523 \begin_inset Foot
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 While we're giving advice: make regular backups.
8528  And be nice to your mother.
8529 \end_layout
8530
8531 \end_inset
8532
8533
8534 \end_layout
8535
8536 \begin_layout Subsection
8537 The Module declaration
8538 \end_layout
8539
8540 \begin_layout Standard
8541 A module must begin with a line like the following:
8542 \end_layout
8543
8544 \begin_layout LyX-Code
8545 #
8546 \backslash
8547 DeclareLyXModule[endnotes.sty]{Endnotes} 
8548 \end_layout
8549
8550 \begin_layout Standard
8551 The mandatory argument, in curly brackets, is the name of the module, as
8552  it should appear in 
8553 \begin_inset Flex Noun
8554 status collapsed
8555
8556 \begin_layout Plain Layout
8557 Document\SpecialChar menuseparator
8558 Settings\SpecialChar menuseparator
8559 Modules
8560 \end_layout
8561
8562 \end_inset
8563
8564 .
8565  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8566  packages
8567  on which the module depends.
8568  It is also possible to use the form 
8569 \begin_inset Flex Noun
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 from->to
8574 \end_layout
8575
8576 \end_inset
8577
8578  as an optional argument, which declares that the module can only be used
8579  when there exists a conversion chain between the formats `
8580 \begin_inset Flex Code
8581 status collapsed
8582
8583 \begin_layout Plain Layout
8584 from
8585 \end_layout
8586
8587 \end_inset
8588
8589 ' and `
8590 \begin_inset Flex Code
8591 status collapsed
8592
8593 \begin_layout Plain Layout
8594 to
8595 \end_layout
8596
8597 \end_inset
8598
8599 '.
8600 \end_layout
8601
8602 \begin_layout Standard
8603 The module declaration should then be followed by lines like the following:
8604 \begin_inset Foot
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608 Preferably in English if the module should be published with \SpecialChar LyX
8609 .
8610  This description will appear in the list of messages to be translated and
8611  will be thus translated with the next interface update.
8612 \end_layout
8613
8614 \end_inset
8615
8616
8617 \end_layout
8618
8619 \begin_layout LyX-Code
8620 #DescriptionBegin 
8621 \end_layout
8622
8623 \begin_layout LyX-Code
8624 #Adds an endnote command, in addition to footnotes.
8625  
8626 \end_layout
8627
8628 \begin_layout LyX-Code
8629 #You will need to add  
8630 \backslash
8631 theendnotes in TeX code where you 
8632 \end_layout
8633
8634 \begin_layout LyX-Code
8635 #want the endnotes to appear.
8636  
8637 \end_layout
8638
8639 \begin_layout LyX-Code
8640 #DescriptionEnd 
8641 \end_layout
8642
8643 \begin_layout LyX-Code
8644 #Requires: somemodule | othermodule
8645 \end_layout
8646
8647 \begin_layout LyX-Code
8648 #Excludes: badmodule
8649 \end_layout
8650
8651 \begin_layout Standard
8652 The description is used in 
8653 \begin_inset Flex Noun
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 Document\SpecialChar menuseparator
8658 Settings\SpecialChar menuseparator
8659 Modules
8660 \end_layout
8661
8662 \end_inset
8663
8664  to provide the user with information about what the module does.
8665  The 
8666 \begin_inset Flex Code
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 Requires
8671 \end_layout
8672
8673 \end_inset
8674
8675  line is used to identify other modules with which this one must be used;
8676  the 
8677 \begin_inset Flex Code
8678 status collapsed
8679
8680 \begin_layout Plain Layout
8681 Excludes
8682 \end_layout
8683
8684 \end_inset
8685
8686  line is used to identify modules with which this one may not be used.
8687  Both are optional, and, as shown, multiple modules should be separated
8688  with the pipe symbol: |.
8689  Note that the required modules are treated disjunctively: 
8690 \emph on
8691 at least one
8692 \emph default
8693  of the required modules must be used.
8694  Similarly, 
8695 \emph on
8696 no
8697 \emph default
8698  excluded module may be used.
8699  Note that modules are identified here by their filenames without the 
8700 \begin_inset Flex Code
8701 status collapsed
8702
8703 \begin_layout Plain Layout
8704 .module
8705 \end_layout
8706
8707 \end_inset
8708
8709  extension.
8710  So 
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 somemodule
8716 \end_layout
8717
8718 \end_inset
8719
8720  is really 
8721 \begin_inset Flex Code
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725 somemodule.module
8726 \end_layout
8727
8728 \end_inset
8729
8730 .
8731 \end_layout
8732
8733 \begin_layout Subsection
8734 The CiteEngine file declaration
8735 \end_layout
8736
8737 \begin_layout Standard
8738 A cite engine file must begin with a line like the following:
8739 \end_layout
8740
8741 \begin_layout LyX-Code
8742 #
8743 \backslash
8744 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8745 \end_layout
8746
8747 \begin_layout Standard
8748 The mandatory argument, in curly brackets, is the name of the cite style,
8749  as it should appear in 
8750 \begin_inset Flex Noun
8751 status collapsed
8752
8753 \begin_layout Plain Layout
8754 Document\SpecialChar menuseparator
8755 Settings\SpecialChar menuseparator
8756 Bibliography
8757 \end_layout
8758
8759 \end_inset
8760
8761 .
8762  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8763  packages
8764  on which the cite engine depends.
8765 \end_layout
8766
8767 \begin_layout Standard
8768 The cite engine declaration should then be followed by lines like the following:
8769 \begin_inset Foot
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 Preferably in English if the module should be published with \SpecialChar LyX
8774 .
8775  This description will appear in the list of messages to be translated and
8776  will be thus translated with the next interface update.
8777 \end_layout
8778
8779 \end_inset
8780
8781
8782 \end_layout
8783
8784 \begin_layout LyX-Code
8785 # DescriptionBegin
8786 \end_layout
8787
8788 \begin_layout LyX-Code
8789 #   Biblatex supports many author-year and numerical styles.
8790 \end_layout
8791
8792 \begin_layout LyX-Code
8793 #   It is mainly aimed at the Humanities.
8794  It is highly
8795 \end_layout
8796
8797 \begin_layout LyX-Code
8798 #   customizable, fully localized and provides many features
8799 \end_layout
8800
8801 \begin_layout LyX-Code
8802 #   that are not possible with BibTeX.
8803  The use of 'biber' as
8804 \end_layout
8805
8806 \begin_layout LyX-Code
8807 #   bibliography processor is advised.
8808 \end_layout
8809
8810 \begin_layout LyX-Code
8811 # DescriptionEnd
8812 \end_layout
8813
8814 \begin_layout Standard
8815 The description is used in 
8816 \begin_inset Flex Noun
8817 status collapsed
8818
8819 \begin_layout Plain Layout
8820 Document\SpecialChar menuseparator
8821 Settings\SpecialChar menuseparator
8822 Bibliography
8823 \end_layout
8824
8825 \end_inset
8826
8827  to provide the user with information about the cite engine.
8828 \end_layout
8829
8830 \begin_layout Subsection
8831 Format number
8832 \end_layout
8833
8834 \begin_layout Standard
8835 The first non-comment line of any layout file, included file, or module
8836  
8837 \emph on
8838 must
8839 \emph default
8840  contain the file format number:
8841 \end_layout
8842
8843 \begin_layout Description
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 Format
8849 \end_layout
8850
8851 \end_inset
8852
8853  [
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 int
8859 \end_layout
8860
8861 \end_inset
8862
8863 ] The format number of the layout file.
8864 \end_layout
8865
8866 \begin_layout Standard
8867 This tag was introduced with \SpecialChar LyX
8868
8869 \begin_inset space ~
8870 \end_inset
8871
8872 1.4.0.
8873  Layout files from older \SpecialChar LyX
8874  versions do not have an explicit file format and
8875  are considered to have 
8876 \begin_inset Flex Code
8877 status collapsed
8878
8879 \begin_layout Plain Layout
8880 Format
8881 \begin_inset space ~
8882 \end_inset
8883
8884 1
8885 \end_layout
8886
8887 \end_inset
8888
8889 .
8890  The format for the present version of \SpecialChar LyX
8891  is format 60.
8892  But each version of \SpecialChar LyX
8893  is capable of reading earlier versions' layout files,
8894  just as they are capable of reading files produced by earlier versions
8895  of \SpecialChar LyX
8896 .
8897  There is, however, no provision for converting to earlier formats.
8898 \end_layout
8899
8900 \begin_layout Subsection
8901 \begin_inset CommandInset label
8902 LatexCommand label
8903 name "subsec:General-text-class"
8904
8905 \end_inset
8906
8907 General text class parameters
8908 \end_layout
8909
8910 \begin_layout Standard
8911 These are general parameters that govern the behavior of an entire document
8912  class.
8913  (This does 
8914 \emph on
8915 not
8916 \emph default
8917  mean that they must appear in 
8918 \begin_inset Flex Code
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 .layout
8923 \end_layout
8924
8925 \end_inset
8926
8927  files rather than in modules.
8928  A module can contain any layout tag.)
8929 \end_layout
8930
8931 \begin_layout Description
8932
8933 \change_inserted -712698321 1526899478
8934 \begin_inset Flex Code
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938
8939 \change_inserted -712698321 1526898610
8940 AddToCiteEngine <engine>
8941 \end_layout
8942
8943 \end_inset
8944
8945  Extends the possibilities for displaying citation references.
8946  See 
8947 \begin_inset CommandInset ref
8948 LatexCommand ref
8949 reference "subsec:Citation-engine-description"
8950 plural "false"
8951 caps "false"
8952 noprefix "false"
8953
8954 \end_inset
8955
8956  for details.
8957  Must end with 
8958 \begin_inset Flex Code
8959 status collapsed
8960
8961 \begin_layout Plain Layout
8962
8963 \change_inserted -712698321 1526898823
8964 End
8965 \change_unchanged
8966
8967 \end_layout
8968
8969 \end_inset
8970
8971 .
8972 \end_layout
8973
8974 \begin_layout Description
8975 \begin_inset Flex Code
8976 status collapsed
8977
8978 \begin_layout Plain Layout
8979 AddToHTMLPreamble
8980 \end_layout
8981
8982 \end_inset
8983
8984  Adds information that will be output in the 
8985 \begin_inset Flex Code
8986 status collapsed
8987
8988 \begin_layout Plain Layout
8989 <head>
8990 \end_layout
8991
8992 \end_inset
8993
8994  block when the document is output to XHTML.
8995  Typically, this would be used to output CSS style information, but it can
8996  be used for anything that can appear in 
8997 \begin_inset Flex Code
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 <head>
9002 \end_layout
9003
9004 \end_inset
9005
9006 .
9007  Must end with 
9008 \begin_inset Quotes eld
9009 \end_inset
9010
9011
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 EndPreamble
9017 \end_layout
9018
9019 \end_inset
9020
9021
9022 \begin_inset Quotes erd
9023 \end_inset
9024
9025 .
9026 \end_layout
9027
9028 \begin_layout Description
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 AddToPreamble
9034 \end_layout
9035
9036 \end_inset
9037
9038  Adds information to the document preamble.
9039  Must end with
9040 \begin_inset Newline newline
9041 \end_inset
9042
9043
9044 \begin_inset Quotes eld
9045 \end_inset
9046
9047
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 EndPreamble
9053 \end_layout
9054
9055 \end_inset
9056
9057
9058 \begin_inset Quotes erd
9059 \end_inset
9060
9061 .
9062 \end_layout
9063
9064 \begin_layout Description
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 CiteEngine <engine>
9070 \end_layout
9071
9072 \end_inset
9073
9074  Defines the possibilities for displaying citation references.
9075  See 
9076 \begin_inset CommandInset ref
9077 LatexCommand ref
9078 reference "subsec:Citation-engine-description"
9079 plural "false"
9080 caps "false"
9081 noprefix "false"
9082
9083 \end_inset
9084
9085  for details.
9086  Must end with 
9087 \begin_inset Quotes eld
9088 \end_inset
9089
9090
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 End
9096 \end_layout
9097
9098 \end_inset
9099
9100
9101 \begin_inset Quotes erd
9102 \end_inset
9103
9104 .
9105  Primarily used in cite engine files (see 
9106 \begin_inset CommandInset ref
9107 LatexCommand ref
9108 reference "subsec:Cite-Engine-Files"
9109 plural "false"
9110 caps "false"
9111 noprefix "false"
9112
9113 \end_inset
9114
9115 ).
9116
9117 \change_inserted -712698321 1526898530
9118  Note that if you specify this in a layout file or module, any cite engine
9119  definition will be overridden.
9120  Also see 
9121 \begin_inset Flex Code
9122 status collapsed
9123
9124 \begin_layout Plain Layout
9125
9126 \change_inserted -712698321 1526898530
9127 AddToCiteEngine
9128 \change_unchanged
9129
9130 \end_layout
9131
9132 \end_inset
9133
9134 .
9135 \change_unchanged
9136
9137 \end_layout
9138
9139 \begin_layout Description
9140 \begin_inset Flex Code
9141 status collapsed
9142
9143 \begin_layout Plain Layout
9144 CiteFormat
9145 \end_layout
9146
9147 \end_inset
9148
9149  Defines formats for use in the display of bibliographic information.
9150  See 
9151 \begin_inset CommandInset ref
9152 LatexCommand ref
9153 reference "subsec:Citation-format-description"
9154
9155 \end_inset
9156
9157  for details.
9158  Must end with 
9159 \begin_inset Quotes eld
9160 \end_inset
9161
9162
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167 End
9168 \end_layout
9169
9170 \end_inset
9171
9172
9173 \begin_inset Quotes erd
9174 \end_inset
9175
9176 .
9177  Primarily used in cite engine files (see 
9178 \begin_inset CommandInset ref
9179 LatexCommand ref
9180 reference "subsec:Cite-Engine-Files"
9181 plural "false"
9182 caps "false"
9183 noprefix "false"
9184
9185 \end_inset
9186
9187 ).
9188
9189 \change_inserted -712698321 1526898585
9190  A cite format defined in a layout or module will override the cite engine
9191  definition.
9192 \change_unchanged
9193
9194 \end_layout
9195
9196 \begin_layout Description
9197 \begin_inset Flex Code
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 CiteFramework
9202 \end_layout
9203
9204 \end_inset
9205
9206  [
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211
9212 \emph on
9213 bibtex
9214 \end_layout
9215
9216 \end_inset
9217
9218 ,
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 biblatex
9224 \end_layout
9225
9226 \end_inset
9227
9228 ] Determines whether 
9229 \family sans
9230 Biblatex
9231 \family default
9232  or Bib\SpecialChar TeX
9233  is used to generate a Bibliography.
9234  Primarily used in cite engine files (see 
9235 \begin_inset CommandInset ref
9236 LatexCommand ref
9237 reference "subsec:Cite-Engine-Files"
9238 plural "false"
9239 caps "false"
9240 noprefix "false"
9241
9242 \end_inset
9243
9244 ).
9245 \end_layout
9246
9247 \begin_layout Description
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 ClassOptions
9253 \end_layout
9254
9255 \end_inset
9256
9257  Describes various global options supported by the document class.
9258  See 
9259 \begin_inset CommandInset ref
9260 LatexCommand ref
9261 reference "subsec:ClassOptions"
9262
9263 \end_inset
9264
9265  for a description.
9266  Must end with 
9267 \begin_inset Quotes eld
9268 \end_inset
9269
9270
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 End
9276 \end_layout
9277
9278 \end_inset
9279
9280
9281 \begin_inset Quotes erd
9282 \end_inset
9283
9284 .
9285 \end_layout
9286
9287 \begin_layout Description
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 Columns
9293 \end_layout
9294
9295 \end_inset
9296
9297  [
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302
9303 \emph on
9304 1
9305 \end_layout
9306
9307 \end_inset
9308
9309 ,
9310 \begin_inset space \thinspace{}
9311 \end_inset
9312
9313
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 2
9319 \end_layout
9320
9321 \end_inset
9322
9323 ] Whether the class should 
9324 \emph on
9325 default
9326 \emph default
9327  to having one or two columns.
9328  Can be changed in the 
9329 \begin_inset Flex Noun
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 Document\SpecialChar menuseparator
9334 Settings
9335 \end_layout
9336
9337 \end_inset
9338
9339  dialog.
9340 \end_layout
9341
9342 \begin_layout Description
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 Counter
9348 \end_layout
9349
9350 \end_inset
9351
9352  [
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 string
9358 \end_layout
9359
9360 \end_inset
9361
9362 ] This sequence defines the properties for a counter.
9363  If the counter does not yet exist, it is created; if it does exist, it
9364  is modified.
9365  Must end with 
9366 \begin_inset Quotes eld
9367 \end_inset
9368
9369
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 End
9375 \end_layout
9376
9377 \end_inset
9378
9379
9380 \begin_inset Quotes erd
9381 \end_inset
9382
9383 .
9384 \begin_inset Newline newline
9385 \end_inset
9386
9387 See 
9388 \begin_inset CommandInset ref
9389 LatexCommand ref
9390 reference "subsec:Counters"
9391
9392 \end_inset
9393
9394  for details on counters.
9395 \end_layout
9396
9397 \begin_layout Description
9398 \begin_inset Flex Code
9399 status collapsed
9400
9401 \begin_layout Plain Layout
9402 DefaultFont
9403 \end_layout
9404
9405 \end_inset
9406
9407  Sets the default font used to display the document.
9408  See 
9409 \begin_inset CommandInset ref
9410 LatexCommand ref
9411 reference "subsec:Font-description"
9412
9413 \end_inset
9414
9415  for how to declare fonts.
9416  Must end with 
9417 \begin_inset Quotes eld
9418 \end_inset
9419
9420
9421 \begin_inset Flex Code
9422 status collapsed
9423
9424 \begin_layout Plain Layout
9425 EndFont
9426 \end_layout
9427
9428 \end_inset
9429
9430
9431 \begin_inset Quotes erd
9432 \end_inset
9433
9434 .
9435 \end_layout
9436
9437 \begin_layout Description
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 DefaultModule
9443 \end_layout
9444
9445 \end_inset
9446
9447  [
9448 \begin_inset Flex Code
9449 status collapsed
9450
9451 \begin_layout Plain Layout
9452 <module>
9453 \end_layout
9454
9455 \end_inset
9456
9457 ] Specifies a module to be included by default with this document class.
9458  The module is specified as filename without the 
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 .module
9464 \end_layout
9465
9466 \end_inset
9467
9468  extension.
9469  The user can still remove the module, but it will be active at the outset.
9470  (This applies only when new files are created, or when this class is chosen
9471  for an existing document.)
9472 \end_layout
9473
9474 \begin_layout Description
9475 \begin_inset Flex Code
9476 status collapsed
9477
9478 \begin_layout Plain Layout
9479 DefaultStyle
9480 \end_layout
9481
9482 \end_inset
9483
9484  [
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 <style>
9490 \end_layout
9491
9492 \end_inset
9493
9494 ] This is the style that will be assigned to new paragraphs, usually 
9495 \begin_inset Flex Noun
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 Standard
9500 \end_layout
9501
9502 \end_inset
9503
9504 .
9505  This will default to the first defined style if not given, but you are
9506  encouraged to use this directive.
9507 \end_layout
9508
9509 \begin_layout Description
9510 \begin_inset Flex Code
9511 status collapsed
9512
9513 \begin_layout Plain Layout
9514 ExcludesModule
9515 \end_layout
9516
9517 \end_inset
9518
9519  [
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 <module>
9525 \end_layout
9526
9527 \end_inset
9528
9529 ] This tag indicates that the module (which is specified by filename without
9530  the 
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 .module
9536 \end_layout
9537
9538 \end_inset
9539
9540  extension) cannot be used with this document class.
9541  This might be used in a journal-specific layout file to prevent, say, the
9542  use of the 
9543 \begin_inset Flex Code
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 theorems-sec
9548 \end_layout
9549
9550 \end_inset
9551
9552  module that numbers theorems by section.
9553  This tag may 
9554 \emph on
9555 not
9556 \emph default
9557  be used in a module.
9558  Modules have their own way of excluding other modules (see 
9559 \begin_inset CommandInset ref
9560 LatexCommand ref
9561 reference "subsec:Layout-modules"
9562
9563 \end_inset
9564
9565 ).
9566 \end_layout
9567
9568 \begin_layout Description
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 Float
9574 \end_layout
9575
9576 \end_inset
9577
9578  Defines a new float.
9579  See 
9580 \begin_inset CommandInset ref
9581 LatexCommand ref
9582 reference "subsec:Floats"
9583
9584 \end_inset
9585
9586  for details.
9587  Must end with 
9588 \begin_inset Quotes eld
9589 \end_inset
9590
9591
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 End
9597 \end_layout
9598
9599 \end_inset
9600
9601
9602 \begin_inset Quotes erd
9603 \end_inset
9604
9605 .
9606 \end_layout
9607
9608 \begin_layout Description
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 HTMLPreamble
9614 \end_layout
9615
9616 \end_inset
9617
9618  Sets the information that will be output in the 
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 <head>
9624 \end_layout
9625
9626 \end_inset
9627
9628  block when this document class is output to XHTML.
9629  Note that this will completely override any prior 
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 HTMLPreamble
9635 \end_layout
9636
9637 \end_inset
9638
9639  or 
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 AddToHTMLPreamble
9645 \end_layout
9646
9647 \end_inset
9648
9649  declarations.
9650  (Use
9651 \begin_inset Newline newline
9652 \end_inset
9653
9654
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 AddToHTMLPreamble
9660 \end_layout
9661
9662 \end_inset
9663
9664  if you just want to add material to the preamble.) Must end with 
9665 \begin_inset Quotes eld
9666 \end_inset
9667
9668
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 EndPreamble
9674 \end_layout
9675
9676 \end_inset
9677
9678
9679 \begin_inset Quotes erd
9680 \end_inset
9681
9682 .
9683 \end_layout
9684
9685 \begin_layout Description
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 HTMLTOCSection
9691 \end_layout
9692
9693 \end_inset
9694
9695  [
9696 \begin_inset Flex Code
9697 status collapsed
9698
9699 \begin_layout Plain Layout
9700 <style>
9701 \end_layout
9702
9703 \end_inset
9704
9705 ] The style to use for the table of contents, bibliography, and so forth,
9706  when the document is output to HTML.
9707  For articles, this should normally be 
9708 \begin_inset Flex Code
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 Section
9713 \end_layout
9714
9715 \end_inset
9716
9717 ; for books 
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 Chapter
9723 \end_layout
9724
9725 \end_inset
9726
9727 .
9728  If it is not given, then \SpecialChar LyX
9729  will attempt to figure out which layout to use.
9730 \end_layout
9731
9732 \begin_layout Description
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 IfCounter
9738 \end_layout
9739
9740 \end_inset
9741
9742  [
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 <counter>
9748 \end_layout
9749
9750 \end_inset
9751
9752 ] Modifies the properties of the given counter.
9753  If the counter does not exist, the statement is ignored.
9754  Must end with 
9755 \begin_inset Quotes eld
9756 \end_inset
9757
9758
9759 \begin_inset Flex Code
9760 status collapsed
9761
9762 \begin_layout Plain Layout
9763 End
9764 \end_layout
9765
9766 \end_inset
9767
9768
9769 \begin_inset Quotes erd
9770 \end_inset
9771
9772 .
9773 \begin_inset Newline newline
9774 \end_inset
9775
9776 See 
9777 \begin_inset CommandInset ref
9778 LatexCommand ref
9779 reference "subsec:Counters"
9780
9781 \end_inset
9782
9783  for details on counters.
9784 \end_layout
9785
9786 \begin_layout Description
9787 \begin_inset Flex Code
9788 status collapsed
9789
9790 \begin_layout Plain Layout
9791 Input
9792 \end_layout
9793
9794 \end_inset
9795
9796  [
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 <filename>
9802 \end_layout
9803
9804 \end_inset
9805
9806 ] This allows you to include another layout definition file within yours
9807  to avoid duplicating commands.
9808  Common examples are the standard layout files, for example, 
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 stdclass.inc
9814 \end_layout
9815
9816 \end_inset
9817
9818 , which contains most of the basic layouts.
9819 \end_layout
9820
9821 \begin_layout Description
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 InsetLayout
9827 \end_layout
9828
9829 \end_inset
9830
9831  [
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 <type>
9837 \end_layout
9838
9839 \end_inset
9840
9841 ] This section (re-)defines the layout of an inset.
9842  It can be applied to an existing inset or to a new, user-defined inset,
9843  e.g., a new character style.
9844  Must end with 
9845 \begin_inset Quotes eld
9846 \end_inset
9847
9848
9849 \begin_inset Flex Code
9850 status collapsed
9851
9852 \begin_layout Plain Layout
9853 End
9854 \end_layout
9855
9856 \end_inset
9857
9858
9859 \begin_inset Quotes erd
9860 \end_inset
9861
9862 .
9863 \begin_inset Newline newline
9864 \end_inset
9865
9866 See 
9867 \begin_inset CommandInset ref
9868 LatexCommand ref
9869 reference "subsec:Flex-insets-and"
9870
9871 \end_inset
9872
9873  for more information.
9874  
9875 \end_layout
9876
9877 \begin_layout Description
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 LeftMargin
9883 \end_layout
9884
9885 \end_inset
9886
9887  [
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 string
9893 \end_layout
9894
9895 \end_inset
9896
9897 ] A string that indicates the width of the left margin on the screen, for
9898  example, 
9899 \begin_inset Quotes eld
9900 \end_inset
9901
9902
9903 \begin_inset Flex Code
9904 status collapsed
9905
9906 \begin_layout Plain Layout
9907 MMMMM
9908 \end_layout
9909
9910 \end_inset
9911
9912
9913 \begin_inset Quotes erd
9914 \end_inset
9915
9916 .
9917  (Note that this is not a `length', like 
9918 \begin_inset Quotes eld
9919 \end_inset
9920
9921 2ex
9922 \begin_inset Quotes erd
9923 \end_inset
9924
9925 .)
9926 \end_layout
9927
9928 \begin_layout Description
9929 \begin_inset Flex Code
9930 status collapsed
9931
9932 \begin_layout Plain Layout
9933 MaxCiteNames
9934 \end_layout
9935
9936 \end_inset
9937
9938  [
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 integer
9944 \end_layout
9945
9946 \end_inset
9947
9948 ] An integer that determines the maximal number of names displayed in an
9949  author-year citation before the citation switches to 
9950 \begin_inset Quotes eld
9951 \end_inset
9952
9953 FirstAuthor et al.
9954 \begin_inset Quotes erd
9955 \end_inset
9956
9957 .
9958  Primarily used in cite engine files (see 
9959 \begin_inset CommandInset ref
9960 LatexCommand ref
9961 reference "subsec:Cite-Engine-Files"
9962 plural "false"
9963 caps "false"
9964 noprefix "false"
9965
9966 \end_inset
9967
9968 ).
9969 \end_layout
9970
9971 \begin_layout Description
9972 \begin_inset Flex Code
9973 status collapsed
9974
9975 \begin_layout Plain Layout
9976 ModifyStyle
9977 \end_layout
9978
9979 \end_inset
9980
9981  [
9982 \begin_inset Flex Code
9983 status collapsed
9984
9985 \begin_layout Plain Layout
9986 <style>
9987 \end_layout
9988
9989 \end_inset
9990
9991 ] Modifies the properties of the given paragraph style.
9992  If the style does not exist, this section is ignored.
9993  Must end with 
9994 \begin_inset Quotes eld
9995 \end_inset
9996
9997
9998 \begin_inset Flex Code
9999 status collapsed
10000
10001 \begin_layout Plain Layout
10002 End
10003 \end_layout
10004
10005 \end_inset
10006
10007
10008 \begin_inset Quotes erd
10009 \end_inset
10010
10011 .
10012 \end_layout
10013
10014 \begin_layout Description
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 NoCounter
10020 \end_layout
10021
10022 \end_inset
10023
10024  [
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 <counter>
10030 \end_layout
10031
10032 \end_inset
10033
10034 ] Deletes an existing counter, usually one defined in an included file.
10035 \end_layout
10036
10037 \begin_layout Description
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 NoFloat
10043 \end_layout
10044
10045 \end_inset
10046
10047  [
10048 \begin_inset Flex Code
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 <float>
10053 \end_layout
10054
10055 \end_inset
10056
10057 ] Deletes an existing float.
10058  This is particularly useful when you want to suppress a float that has
10059  been defined in an input file.
10060 \end_layout
10061
10062 \begin_layout Description
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 NoStyle
10068 \end_layout
10069
10070 \end_inset
10071
10072  [
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 <style>
10078 \end_layout
10079
10080 \end_inset
10081
10082 ] Deletes an existing style.
10083 \end_layout
10084
10085 \begin_layout Description
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 OutlinerName
10091 \end_layout
10092
10093 \end_inset
10094
10095  [
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 <type>
10101 \end_layout
10102
10103 \end_inset
10104
10105 ] [
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 <string>
10111 \end_layout
10112
10113 \end_inset
10114
10115 ] Define a new table of contents with type 
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 <type>
10121 \end_layout
10122
10123 \end_inset
10124
10125  and name 
10126 \begin_inset Flex Code
10127 status collapsed
10128
10129 \begin_layout Plain Layout
10130 <string>
10131 \end_layout
10132
10133 \end_inset
10134
10135 .
10136  See also the AddToToc commands.
10137 \end_layout
10138
10139 \begin_layout Description
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 OutputFormat
10145 \end_layout
10146
10147 \end_inset
10148
10149  [
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 <format>
10155 \end_layout
10156
10157 \end_inset
10158
10159 ] The file format (as defined in the \SpecialChar LyX
10160  preferences) produced by this document
10161  class.
10162  It is mainly useful when 
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 OutputType
10168 \end_layout
10169
10170 \end_inset
10171
10172  is 
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 literate
10178 \end_layout
10179
10180 \end_inset
10181
10182  and one wants to define a new type of literate document.
10183  The format is reset to 
10184 \begin_inset Quotes eld
10185 \end_inset
10186
10187
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192 docbook
10193 \end_layout
10194
10195 \end_inset
10196
10197
10198 \begin_inset Quotes erd
10199 \end_inset
10200
10201  or 
10202 \begin_inset Quotes eld
10203 \end_inset
10204
10205
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 latex
10211 \end_layout
10212
10213 \end_inset
10214
10215
10216 \begin_inset Quotes erd
10217 \end_inset
10218
10219  when the corresponding 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 OutputType
10225 \end_layout
10226
10227 \end_inset
10228
10229  parameter is encountered.
10230 \end_layout
10231
10232 \begin_layout Description
10233 \begin_inset Flex Code
10234 status collapsed
10235
10236 \begin_layout Plain Layout
10237 OutputType
10238 \end_layout
10239
10240 \end_inset
10241
10242  [
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247
10248 \emph on
10249 lat
10250 \emph default
10251 ex
10252 \end_layout
10253
10254 \end_inset
10255
10256
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 docbook
10262 \end_layout
10263
10264 \end_inset
10265
10266
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 literate
10272 \end_layout
10273
10274 \end_inset
10275
10276 ] Specifies what sort of output documents using this class will produce.
10277 \end_layout
10278
10279 \begin_layout Description
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 PackageOptions
10285 \end_layout
10286
10287 \end_inset
10288
10289  [
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 string
10295 \end_layout
10296
10297 \end_inset
10298
10299  
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 string
10305 \end_layout
10306
10307 \end_inset
10308
10309 ] Specifies options, given in the second string, for the package named by
10310  the first string.
10311  For example, 
10312 \begin_inset Quotes eld
10313 \end_inset
10314
10315
10316 \begin_inset Flex Code
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 PackageOptions natbib square
10321 \end_layout
10322
10323 \end_inset
10324
10325
10326 \begin_inset Quotes erd
10327 \end_inset
10328
10329  will cause 
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 natbib
10335 \end_layout
10336
10337 \end_inset
10338
10339  to be loaded with the 
10340 \begin_inset Flex Code
10341 status collapsed
10342
10343 \begin_layout Plain Layout
10344 square
10345 \end_layout
10346
10347 \end_inset
10348
10349  option.
10350  (For \SpecialChar TeX
10351 perts, this causes \SpecialChar LyX
10352  to output: 
10353 \begin_inset Flex Code
10354 status collapsed
10355
10356 \begin_layout Plain Layout
10357
10358 \backslash
10359 PassOptionsToPackage{natbib}{square}
10360 \end_layout
10361
10362 \end_inset
10363
10364  prior to loading 
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 natbib
10370 \end_layout
10371
10372 \end_inset
10373
10374 .)
10375 \end_layout
10376
10377 \begin_layout Description
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 PageStyle
10383 \end_layout
10384
10385 \end_inset
10386
10387  [
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392
10393 \emph on
10394 plain
10395 \end_layout
10396
10397 \end_inset
10398
10399
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 empty
10405 \end_layout
10406
10407 \end_inset
10408
10409
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 headings
10415 \end_layout
10416
10417 \end_inset
10418
10419 ] The default pagestyle.
10420  Can be changed in the 
10421 \begin_inset Flex Noun
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 Document\SpecialChar menuseparator
10426 Settings
10427 \end_layout
10428
10429 \end_inset
10430
10431  dialog.
10432 \end_layout
10433
10434 \begin_layout Description
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439 Preamble
10440 \end_layout
10441
10442 \end_inset
10443
10444  Sets the preamble for the \SpecialChar LaTeX
10445  document.
10446  Note that this will completely override any prior 
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 Preamble
10452 \end_layout
10453
10454 \end_inset
10455
10456  or 
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 AddToPreamble
10462 \end_layout
10463
10464 \end_inset
10465
10466  declarations.
10467  (Use 
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 AddToPreamble
10473 \end_layout
10474
10475 \end_inset
10476
10477  if you just want to add material to the preamble.) Must end with 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 EndPreamble
10487 \end_layout
10488
10489 \end_inset
10490
10491
10492 \begin_inset Quotes erd
10493 \end_inset
10494
10495 .
10496 \end_layout
10497
10498 \begin_layout Description
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 Provides
10504 \end_layout
10505
10506 \end_inset
10507
10508  [
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 string
10514 \end_layout
10515
10516 \end_inset
10517
10518 ] [
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523
10524 \emph on
10525 0
10526 \end_layout
10527
10528 \end_inset
10529
10530 ,
10531 \begin_inset space \thinspace{}
10532 \end_inset
10533
10534
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 1
10540 \end_layout
10541
10542 \end_inset
10543
10544 ] Whether the class already provides the feature 
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 string
10550 \end_layout
10551
10552 \end_inset
10553
10554 .
10555  A feature is in general the name of a package (e.
10556 \begin_inset space \thinspace{}
10557 \end_inset
10558
10559 g.
10560 \begin_inset space \space{}
10561 \end_inset
10562
10563
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 amsmath
10569 \end_layout
10570
10571 \end_inset
10572
10573  or 
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 makeidx
10579 \end_layout
10580
10581 \end_inset
10582
10583 ) or a macro (e.
10584 \begin_inset space \thinspace{}
10585 \end_inset
10586
10587 g.
10588 \begin_inset space \space{}
10589 \end_inset
10590
10591
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 url
10597 \end_layout
10598
10599 \end_inset
10600
10601  or 
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 boldsymbol
10607 \end_layout
10608
10609 \end_inset
10610
10611 ).
10612  See 
10613 \begin_inset CommandInset ref
10614 LatexCommand ref
10615 reference "chap:List-of-functions"
10616
10617 \end_inset
10618
10619  for the list of features.
10620 \end_layout
10621
10622 \begin_layout Description
10623 \begin_inset Flex Code
10624 status collapsed
10625
10626 \begin_layout Plain Layout
10627 ProvidesModule
10628 \end_layout
10629
10630 \end_inset
10631
10632  [
10633 \begin_inset Flex Code
10634 status collapsed
10635
10636 \begin_layout Plain Layout
10637 string
10638 \end_layout
10639
10640 \end_inset
10641
10642 ] Indicates that this layout provides the functionality of the module mentioned,
10643  which should be specified by the filename without the 
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 .module
10649 \end_layout
10650
10651 \end_inset
10652
10653  extension.
10654  This will typically be used if the layout includes the module directly,
10655  rather than using the 
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 DefaultModule
10661 \end_layout
10662
10663 \end_inset
10664
10665  tag to indicate that it ought to be used.
10666  It could also be used in a module that provided an alternate implementation
10667  of the same functionality.
10668 \end_layout
10669
10670 \begin_layout Description
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 ProvideStyle
10676 \end_layout
10677
10678 \end_inset
10679
10680  [
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 <style>
10686 \end_layout
10687
10688 \end_inset
10689
10690 ] Creates a new paragraph style if it does not already exist.
10691  If the style does exist, this section is ignored.
10692  Must end with 
10693 \begin_inset Quotes eld
10694 \end_inset
10695
10696
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 End
10702 \end_layout
10703
10704 \end_inset
10705
10706
10707 \begin_inset Quotes erd
10708 \end_inset
10709
10710 .
10711 \end_layout
10712
10713 \begin_layout Description
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 Requires
10719 \end_layout
10720
10721 \end_inset
10722
10723  [
10724 \begin_inset Flex Code
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728 string
10729 \end_layout
10730
10731 \end_inset
10732
10733 ] Whether the class requires the feature 
10734 \begin_inset Flex Code
10735 status collapsed
10736
10737 \begin_layout Plain Layout
10738 string
10739 \end_layout
10740
10741 \end_inset
10742
10743 .
10744  Multiple features must be separated by commas.
10745  Note that you can only request supported features.
10746  (See 
10747 \begin_inset CommandInset ref
10748 LatexCommand ref
10749 reference "chap:List-of-functions"
10750
10751 \end_inset
10752
10753  for the list of features.).
10754  If you require a package with specific options, you can additionally use
10755  
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 PackageOptions
10761 \end_layout
10762
10763 \end_inset
10764
10765 .
10766 \end_layout
10767
10768 \begin_layout Description
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 RightMargin
10774 \end_layout
10775
10776 \end_inset
10777
10778  [
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 string
10784 \end_layout
10785
10786 \end_inset
10787
10788 ] A string that indicates the width of the right margin on the screen, for
10789  example, 
10790 \begin_inset Quotes eld
10791 \end_inset
10792
10793
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 MMMMM
10799 \end_layout
10800
10801 \end_inset
10802
10803
10804 \begin_inset Quotes erd
10805 \end_inset
10806
10807 .
10808 \end_layout
10809
10810 \begin_layout Description
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 SecNumDepth
10816 \end_layout
10817
10818 \end_inset
10819
10820  [
10821 \begin_inset Flex Code
10822 status collapsed
10823
10824 \begin_layout Plain Layout
10825 int=3
10826 \end_layout
10827
10828 \end_inset
10829
10830 ] Sets which divisions get numbered.
10831  Corresponds to the
10832 \begin_inset Newline newline
10833 \end_inset
10834
10835
10836 \begin_inset Flex Code
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840 secnumdepth
10841 \end_layout
10842
10843 \end_inset
10844
10845  counter in \SpecialChar LaTeX
10846 .
10847 \end_layout
10848
10849 \begin_layout Description
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 Sides
10855 \end_layout
10856
10857 \end_inset
10858
10859  [
10860 \begin_inset Flex Code
10861 status collapsed
10862
10863 \begin_layout Plain Layout
10864
10865 \emph on
10866 1
10867 \end_layout
10868
10869 \end_inset
10870
10871 ,
10872 \begin_inset space \thinspace{}
10873 \end_inset
10874
10875
10876 \begin_inset Flex Code
10877 status collapsed
10878
10879 \begin_layout Plain Layout
10880 2
10881 \end_layout
10882
10883 \end_inset
10884
10885 ] Whether the class-default should be printing on one or both sides of the
10886  paper.
10887  Can be changed in the 
10888 \begin_inset Flex Noun
10889 status collapsed
10890
10891 \begin_layout Plain Layout
10892 Document\SpecialChar menuseparator
10893 Settings
10894 \end_layout
10895
10896 \end_inset
10897
10898  dialog.
10899 \end_layout
10900
10901 \begin_layout Description
10902 \begin_inset Flex Code
10903 status collapsed
10904
10905 \begin_layout Plain Layout
10906 Style
10907 \end_layout
10908
10909 \end_inset
10910
10911  [
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 <name>
10917 \end_layout
10918
10919 \end_inset
10920
10921 ] This sequence defines a paragraph style.
10922  If the style does not yet exist, it is created; if it does exist, its parameter
10923 s are modified.
10924  Must end with 
10925 \begin_inset Quotes eld
10926 \end_inset
10927
10928
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 End
10934 \end_layout
10935
10936 \end_inset
10937
10938
10939 \begin_inset Quotes erd
10940 \end_inset
10941
10942 .
10943 \begin_inset Newline newline
10944 \end_inset
10945
10946 See 
10947 \begin_inset CommandInset ref
10948 LatexCommand ref
10949 reference "subsec:Paragraph-Styles"
10950
10951 \end_inset
10952
10953  for details on paragraph styles.
10954 \end_layout
10955
10956 \begin_layout Description
10957 \begin_inset Flex Code
10958 status collapsed
10959
10960 \begin_layout Plain Layout
10961 TitleLatexName
10962 \end_layout
10963
10964 \end_inset
10965
10966  [
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 string="maketitle"
10972 \end_layout
10973
10974 \end_inset
10975
10976 ] The name of the command or environment to be used with 
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 TitleLatexType
10982 \end_layout
10983
10984 \end_inset
10985
10986 .
10987 \end_layout
10988
10989 \begin_layout Description
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 TitleLatexType
10995 \end_layout
10996
10997 \end_inset
10998
10999  [
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004
11005 \emph on
11006 CommandAfter
11007 \end_layout
11008
11009 \end_inset
11010
11011
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 Environment
11017 \end_layout
11018
11019 \end_inset
11020
11021 ] Indicates what kind of markup is used to define the title of a document.
11022  
11023 \begin_inset Flex Code
11024 status collapsed
11025
11026 \begin_layout Plain Layout
11027 CommandAfter
11028 \end_layout
11029
11030 \end_inset
11031
11032  means that the macro with name 
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 TitleLatexName
11038 \end_layout
11039
11040 \end_inset
11041
11042  will be inserted after the last layout which has 
11043 \begin_inset Quotes eld
11044 \end_inset
11045
11046
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 InTitle
11052 \begin_inset space ~
11053 \end_inset
11054
11055 1
11056 \end_layout
11057
11058 \end_inset
11059
11060
11061 \begin_inset Quotes erd
11062 \end_inset
11063
11064 .
11065  
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 Environment
11071 \end_layout
11072
11073 \end_inset
11074
11075  corresponds to the case where all layouts which have 
11076 \begin_inset Quotes eld
11077 \end_inset
11078
11079
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 InTitle
11085 \begin_inset space ~
11086 \end_inset
11087
11088 1
11089 \end_layout
11090
11091 \end_inset
11092
11093
11094 \begin_inset Quotes erd
11095 \end_inset
11096
11097  should be enclosed into the 
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 TitleLatexName
11103 \end_layout
11104
11105 \end_inset
11106
11107  environment.
11108 \end_layout
11109
11110 \begin_layout Description
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115 TocDepth
11116 \end_layout
11117
11118 \end_inset
11119
11120  [
11121 \begin_inset Flex Code
11122 status collapsed
11123
11124 \begin_layout Plain Layout
11125 int=3
11126 \end_layout
11127
11128 \end_inset
11129
11130 ] Sets which divisions are included in the table of contents.
11131  Corresponds to the 
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136 tocdepth
11137 \end_layout
11138
11139 \end_inset
11140
11141  counter in \SpecialChar LaTeX
11142 .
11143 \end_layout
11144
11145 \begin_layout Subsection
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 ClassOptions
11151 \end_layout
11152
11153 \end_inset
11154
11155  section
11156 \begin_inset CommandInset label
11157 LatexCommand label
11158 name "subsec:ClassOptions"
11159
11160 \end_inset
11161
11162
11163 \end_layout
11164
11165 \begin_layout Standard
11166 The 
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 ClassOptions
11172 \end_layout
11173
11174 \end_inset
11175
11176  section can contain the following entries:
11177 \end_layout
11178
11179 \begin_layout Description
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 FontSize
11185 \end_layout
11186
11187 \end_inset
11188
11189  [
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 string="10|11|12"
11195 \end_layout
11196
11197 \end_inset
11198
11199 ] The list of available font sizes for the document's main font, separated
11200  by 
11201 \begin_inset Quotes eld
11202 \end_inset
11203
11204
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209 |
11210 \end_layout
11211
11212 \end_inset
11213
11214
11215 \begin_inset Quotes erd
11216 \end_inset
11217
11218 .
11219 \end_layout
11220
11221 \begin_layout Description
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 Header
11227 \end_layout
11228
11229 \end_inset
11230
11231  Used to set the DTD line with XML-based output classes.
11232  E.
11233 \begin_inset space \thinspace{}
11234 \end_inset
11235
11236 g.: PUBLIC 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240 -//OASIS//DTD DocBook V4.2//EN
11241 \begin_inset Quotes erd
11242 \end_inset
11243
11244 .
11245 \end_layout
11246
11247 \begin_layout Description
11248 \begin_inset Flex Code
11249 status collapsed
11250
11251 \begin_layout Plain Layout
11252 PageStyle
11253 \end_layout
11254
11255 \end_inset
11256
11257  [
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 string="empty|plain|headings|fancy"
11263 \end_layout
11264
11265 \end_inset
11266
11267 ] The list of available page sty\SpecialChar softhyphen
11268 les, separated by 
11269 \begin_inset Quotes eld
11270 \end_inset
11271
11272
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 |
11278 \end_layout
11279
11280 \end_inset
11281
11282
11283 \begin_inset Quotes erd
11284 \end_inset
11285
11286 .
11287 \end_layout
11288
11289 \begin_layout Description
11290 \begin_inset Flex Code
11291 status collapsed
11292
11293 \begin_layout Plain Layout
11294 Other
11295 \end_layout
11296
11297 \end_inset
11298
11299  [
11300 \begin_inset Flex Code
11301 status collapsed
11302
11303 \begin_layout Plain Layout
11304 string=""
11305 \end_layout
11306
11307 \end_inset
11308
11309 ] Some document class options, separated by a comma, that will be added
11310  to the optional part of the 
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315
11316 \backslash
11317 documentclass
11318 \end_layout
11319
11320 \end_inset
11321
11322  command.
11323 \end_layout
11324
11325 \begin_layout Standard
11326 The 
11327 \begin_inset Flex Code
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 ClassOptions
11332 \end_layout
11333
11334 \end_inset
11335
11336  section must end with 
11337 \begin_inset Quotes eld
11338 \end_inset
11339
11340
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 End
11346 \end_layout
11347
11348 \end_inset
11349
11350
11351 \begin_inset Quotes erd
11352 \end_inset
11353
11354 .
11355 \end_layout
11356
11357 \begin_layout Subsection
11358 Paragraph styles
11359 \begin_inset CommandInset label
11360 LatexCommand label
11361 name "subsec:Paragraph-Styles"
11362
11363 \end_inset
11364
11365
11366 \end_layout
11367
11368 \begin_layout Standard
11369 A paragraph style description looks like this:
11370 \begin_inset Foot
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 Note that this will either define a new style or modify an existing one.
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \end_layout
11381
11382 \begin_layout LyX-Code
11383 Style 
11384 \family roman
11385 \emph on
11386 name
11387 \end_layout
11388
11389 \begin_layout LyX-Code
11390  ...
11391 \end_layout
11392
11393 \begin_layout LyX-Code
11394 End
11395 \end_layout
11396
11397 \begin_layout Standard
11398 where the following commands are allowed:
11399 \end_layout
11400
11401 \begin_layout Description
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 AddToToc
11407 \end_layout
11408
11409 \end_inset
11410
11411  [
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 string
11417 \end_layout
11418
11419 \end_inset
11420
11421 =""] This paragraph will appear in the table of contents of the given type.
11422  An empty string disables.
11423  See also the OutlinerName and the IsTocCaption commands.
11424  Default: disabled.
11425 \end_layout
11426
11427 \begin_layout Description
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 Align
11433 \end_layout
11434
11435 \end_inset
11436
11437  [
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442
11443 \emph on
11444 block
11445 \emph default
11446 , left, right, center
11447 \end_layout
11448
11449 \end_inset
11450
11451 ] Paragraph alignment.
11452 \end_layout
11453
11454 \begin_layout Description
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 AlignPossible
11460 \end_layout
11461
11462 \end_inset
11463
11464  [
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469
11470 \emph on
11471 block
11472 \emph default
11473 , left, right, center
11474 \end_layout
11475
11476 \end_inset
11477
11478 ] A comma separated list of permitted alignments.
11479  (Some \SpecialChar LaTeX
11480  styles prohibit certain alignments, since those wouldn't make sense.
11481  For example a right-aligned or centered enumeration isn't possible.)
11482 \end_layout
11483
11484 \begin_layout Description
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 Argument
11490 \end_layout
11491
11492 \end_inset
11493
11494  [
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 int
11500 \end_layout
11501
11502 \end_inset
11503
11504 ] Defines argument number <int> of a command\SpecialChar breakableslash
11505 environment associated with
11506  the current style.
11507  This is useful for things like section headings, and only makes sense with
11508  \SpecialChar LaTeX
11509 .
11510  Every (optional or required) argument of a command or environment – except
11511  for the required argument that is associated with the content of the paragraph
11512  itself – has a separate definition, where the number specifies the order
11513  of the arguments.
11514  The definition must end with 
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 EndArgument
11520 \end_layout
11521
11522 \end_inset
11523
11524 .
11525  So a command with two optional arguments has:
11526 \end_layout
11527
11528 \begin_deeper
11529 \begin_layout Quote
11530
11531 \family typewriter
11532 Argument 1
11533 \end_layout
11534
11535 \begin_layout Quote
11536
11537 \family typewriter
11538 ...
11539 \end_layout
11540
11541 \begin_layout Quote
11542
11543 \family typewriter
11544 EndArgument
11545 \end_layout
11546
11547 \begin_layout Quote
11548
11549 \family typewriter
11550 Argument 2
11551 \end_layout
11552
11553 \begin_layout Quote
11554
11555 \family typewriter
11556 ...
11557 \end_layout
11558
11559 \begin_layout Quote
11560
11561 \family typewriter
11562 EndArgument
11563 \end_layout
11564
11565 \begin_layout Standard
11566 Inside the 
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571 Argument
11572 \end_layout
11573
11574 \end_inset
11575
11576  definition, the following specifications are possible:
11577 \end_layout
11578
11579 \begin_layout Itemize
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 LabelString
11585 \end_layout
11586
11587 \end_inset
11588
11589  
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 [string]
11595 \end_layout
11596
11597 \end_inset
11598
11599  The string that will appear both in the menu (to insert this argument)
11600  and on the argument inset button (unless you also specify a separate 
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 MenuString
11606 \end_layout
11607
11608 \end_inset
11609
11610 ).
11611  For the menu, you can define an accelerator by appending the respective
11612  character to the string, divided by 
11613 \begin_inset Quotes eld
11614 \end_inset
11615
11616 |
11617 \begin_inset Quotes erd
11618 \end_inset
11619
11620  (e.
11621 \begin_inset space \thinspace{}
11622 \end_inset
11623
11624 g.
11625 \begin_inset space \space{}
11626 \end_inset
11627
11628
11629 \begin_inset Quotes eld
11630 \end_inset
11631
11632
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 Short Title|S
11638 \end_layout
11639
11640 \end_inset
11641
11642
11643 \begin_inset Quotes erd
11644 \end_inset
11645
11646 ).
11647 \end_layout
11648
11649 \begin_layout Itemize
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 MenuString
11655 \end_layout
11656
11657 \end_inset
11658
11659  
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 [string]
11665 \end_layout
11666
11667 \end_inset
11668
11669  A separate string for the menu.
11670  You can define an accelerator by appending the respective character to
11671  the string, divided by 
11672 \begin_inset Quotes eld
11673 \end_inset
11674
11675 |
11676 \begin_inset Quotes erd
11677 \end_inset
11678
11679  (e.
11680 \begin_inset space \thinspace{}
11681 \end_inset
11682
11683 g.
11684 \begin_inset space \space{}
11685 \end_inset
11686
11687
11688 \begin_inset Quotes eld
11689 \end_inset
11690
11691
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 Short Title|S
11697 \end_layout
11698
11699 \end_inset
11700
11701
11702 \begin_inset Quotes erd
11703 \end_inset
11704
11705 ).
11706  This specification is optional.
11707  If it is not given the 
11708 \begin_inset Flex Code
11709 status collapsed
11710
11711 \begin_layout Plain Layout
11712 LabelString
11713 \end_layout
11714
11715 \end_inset
11716
11717  will be used instead for the menu.
11718 \end_layout
11719
11720 \begin_layout Itemize
11721 \begin_inset Flex Code
11722 status collapsed
11723
11724 \begin_layout Plain Layout
11725 Tooltip
11726 \end_layout
11727
11728 \end_inset
11729
11730  
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 [string]
11736 \end_layout
11737
11738 \end_inset
11739
11740  A longer explanatory text that appears in the tooltip when hovering over
11741  the argument inset.
11742 \end_layout
11743
11744 \begin_layout Itemize
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 Mandatory
11750 \end_layout
11751
11752 \end_inset
11753
11754  [
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759
11760 \emph on
11761 0
11762 \end_layout
11763
11764 \end_inset
11765
11766 ,
11767 \begin_inset space \thinspace{}
11768 \end_inset
11769
11770
11771 \begin_inset Flex Code
11772 status collapsed
11773
11774 \begin_layout Plain Layout
11775 1
11776 \end_layout
11777
11778 \end_inset
11779
11780 ] Declare if this is a mandatory (1) or an optional (0) argument.
11781  Mandatory arguments will be output empty if not given, while optional arguments
11782  will not be output at all.
11783  By default, mandatory arguments are delimited by 
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 {...}
11789 \end_layout
11790
11791 \end_inset
11792
11793 , while optional arguments are delimited by 
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 [...]
11799 \end_layout
11800
11801 \end_inset
11802
11803
11804 \end_layout
11805
11806 \begin_layout Itemize
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Requires
11812 \end_layout
11813
11814 \end_inset
11815
11816  
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821 [int=0]
11822 \end_layout
11823
11824 \end_inset
11825
11826  defines another argument (by its number) which this argument requires to
11827  be output if it is itself output.
11828  E.
11829 \begin_inset space \thinspace{}
11830 \end_inset
11831
11832 g., in \SpecialChar LaTeX
11833  commands, optional arguments often require previous optional arguments
11834  to be output (at least empty), as in 
11835 \begin_inset Flex Code
11836 status collapsed
11837
11838 \begin_layout Plain Layout
11839
11840 \backslash
11841 command[][argument]{text}
11842 \end_layout
11843
11844 \end_inset
11845
11846 .
11847  This can be achieved by the statement 
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 Requires 1
11853 \end_layout
11854
11855 \end_inset
11856
11857  within 
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 Argument 2
11863 \end_layout
11864
11865 \end_inset
11866
11867 .
11868 \end_layout
11869
11870 \begin_layout Itemize
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 LeftDelim
11876 \end_layout
11877
11878 \end_inset
11879
11880  
11881 \begin_inset Flex Code
11882 status collapsed
11883
11884 \begin_layout Plain Layout
11885 [string]
11886 \end_layout
11887
11888 \end_inset
11889
11890  defines a custom left delimiter (instead of 
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 {
11896 \end_layout
11897
11898 \end_inset
11899
11900  or 
11901 \begin_inset Flex Code
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905 [
11906 \end_layout
11907
11908 \end_inset
11909
11910 ).
11911  A line break in the output can be indicated by 
11912 \begin_inset Flex Code
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916 <br/>
11917 \end_layout
11918
11919 \end_inset
11920
11921 .
11922 \end_layout
11923
11924 \begin_layout Itemize
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 RightDelim
11930 \end_layout
11931
11932 \end_inset
11933
11934  
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 [string]
11940 \end_layout
11941
11942 \end_inset
11943
11944  defines a custom right delimiter (instead of 
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949 }
11950 \end_layout
11951
11952 \end_inset
11953
11954  or 
11955 \begin_inset Flex Code
11956 status collapsed
11957
11958 \begin_layout Plain Layout
11959 ]
11960 \end_layout
11961
11962 \end_inset
11963
11964 ).
11965  A line break in the output can be indicated by 
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 <br/>
11971 \end_layout
11972
11973 \end_inset
11974
11975 .
11976 \end_layout
11977
11978 \begin_layout Itemize
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 DefaultArg
11984 \end_layout
11985
11986 \end_inset
11987
11988  
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 [string]
11994 \end_layout
11995
11996 \end_inset
11997
11998  defines an argument that is inserted if and only if no user-specified arguments
11999  were given, i.
12000 \begin_inset space \thinspace{}
12001 \end_inset
12002
12003 e.
12004 \begin_inset space \space{}
12005 \end_inset
12006
12007 if no argument inset has been inserted (note that also an empty argument
12008  inset omits the DefaultArg).
12009  Multiple arguments need to be separated by comma.
12010 \end_layout
12011
12012 \begin_layout Itemize
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 PresetArg
12018 \end_layout
12019
12020 \end_inset
12021
12022  
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 [string]
12028 \end_layout
12029
12030 \end_inset
12031
12032  defines an argument that is inserted in any case (alone or in addition
12033  to user-specified arguments).
12034  Multiple arguments need to be separated by comma.
12035 \end_layout
12036
12037 \begin_layout Itemize
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042 Font
12043 \end_layout
12044
12045 \end_inset
12046
12047  The font used for the argument content, see 
12048 \begin_inset CommandInset ref
12049 LatexCommand ref
12050 reference "subsec:Font-description"
12051
12052 \end_inset
12053
12054 .
12055 \end_layout
12056
12057 \begin_layout Itemize
12058 \begin_inset Flex Code
12059 status collapsed
12060
12061 \begin_layout Plain Layout
12062 LabelFont
12063 \end_layout
12064
12065 \end_inset
12066
12067  The font used for the label; see 
12068 \begin_inset CommandInset ref
12069 LatexCommand ref
12070 reference "subsec:Font-description"
12071
12072 \end_inset
12073
12074 .
12075 \end_layout
12076
12077 \begin_layout Itemize
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 Decoration
12083 \end_layout
12084
12085 \end_inset
12086
12087  [
12088 \begin_inset Flex Code
12089 status collapsed
12090
12091 \begin_layout Plain Layout
12092
12093 \emph on
12094 Classic
12095 \emph default
12096 , Minimalistic, Conglomerate
12097 \end_layout
12098
12099 \end_inset
12100
12101 ] describes the rendering style used for the inset's frame and buttons.
12102 \end_layout
12103
12104 \begin_layout Itemize
12105 \begin_inset Flex Code
12106 status collapsed
12107
12108 \begin_layout Plain Layout
12109 AutoInsert
12110 \end_layout
12111
12112 \end_inset
12113
12114  
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119 [int=0]
12120 \end_layout
12121
12122 \end_inset
12123
12124  If this is set to 
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 1
12130 \end_layout
12131
12132 \end_inset
12133
12134 , this argument is automatically inserted when the respective style is selected.
12135  Currently, only one argument per style\SpecialChar breakableslash
12136 layout can be automatically inserted.
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 InsertCotext
12145 \end_layout
12146
12147 \end_inset
12148
12149  
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 [int=0]
12155 \end_layout
12156
12157 \end_inset
12158
12159  If this is set to 
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 1
12165 \end_layout
12166
12167 \end_inset
12168
12169 , this argument will be inserted with a copy of the co-text (either selected
12170  text or the whole paragraph) as content.
12171 \end_layout
12172
12173 \begin_layout Itemize
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178 PassThru
12179 \end_layout
12180
12181 \end_inset
12182
12183  [
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188
12189 \emph on
12190 inherited
12191 \emph default
12192 , true, false
12193 \end_layout
12194
12195 \end_inset
12196
12197 ] Whether the contents of this argument should be output in raw form, meaning
12198  without special translations that \SpecialChar LaTeX
12199  would require.
12200  By default, the 
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 PassThru
12206 \end_layout
12207
12208 \end_inset
12209
12210  status is inherited by the inset or paragraph layout the argument belongs
12211  to, true and false change the status for the given argument only.
12212 \end_layout
12213
12214 \begin_layout Itemize
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 PassThruChars
12220 \end_layout
12221
12222 \end_inset
12223
12224  [
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 string of characters
12230 \end_layout
12231
12232 \end_inset
12233
12234 ]
12235 \family typewriter
12236  
12237 \family default
12238 Defines individual characters
12239 \begin_inset Newline linebreak
12240 \end_inset
12241
12242 that should be output in raw form, meaning without special translations
12243  that \SpecialChar LaTeX
12244  would require.
12245  Note that, contrary to PassThru, this needs to be explicitly defined for
12246  arguments.
12247  That is, arguments do not inherit PassThruChars from their parent inset
12248  or layout.
12249 \end_layout
12250
12251 \begin_layout Itemize
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 IsTocCaption
12257 \end_layout
12258
12259 \end_inset
12260
12261  [
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266
12267 \emph on
12268 0
12269 \end_layout
12270
12271 \end_inset
12272
12273 ,
12274 \begin_inset space \thinspace{}
12275 \end_inset
12276
12277
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282 1
12283 \end_layout
12284
12285 \end_inset
12286
12287 ] If this is set to 1, the argument will output its content in the corresponding
12288  item in the table of contents.
12289  See AddToToc.
12290 \end_layout
12291
12292 \begin_layout Standard
12293 By default, the text entered in the \SpecialChar LyX
12294  workarea in the respective layout is
12295  the last (mandatory) argument of a command if the 
12296 \begin_inset Flex Code
12297 status collapsed
12298
12299 \begin_layout Plain Layout
12300 LatexType
12301 \end_layout
12302
12303 \end_inset
12304
12305  is 
12306 \begin_inset Flex Code
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310 Command
12311 \end_layout
12312
12313 \end_inset
12314
12315 .
12316  However, arguments with the prefix 
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 post:
12322 \end_layout
12323
12324 \end_inset
12325
12326  are output after this workarea argument.
12327  Note that post-argument numbering restarts at 1, so the first argument
12328  following the workarea argument is 
12329 \begin_inset Flex Code
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333 post:1
12334 \end_layout
12335
12336 \end_inset
12337
12338 .
12339  Post-arguments are ignored in any other 
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 LatexType
12345 \end_layout
12346
12347 \end_inset
12348
12349  than 
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 Command
12355 \end_layout
12356
12357 \end_inset
12358
12359 .
12360 \end_layout
12361
12362 \begin_layout Standard
12363 Arguments for list 
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368
12369 \backslash
12370 item
12371 \end_layout
12372
12373 \end_inset
12374
12375 s (as in 
12376 \begin_inset Flex Code
12377 status collapsed
12378
12379 \begin_layout Plain Layout
12380
12381 \backslash
12382 item[foo]
12383 \end_layout
12384
12385 \end_inset
12386
12387 ) have the prefix 
12388 \begin_inset Flex Code
12389 status collapsed
12390
12391 \begin_layout Plain Layout
12392 item:
12393 \end_layout
12394
12395 \end_inset
12396
12397  followed by the number (e.
12398 \begin_inset space \thinspace{}
12399 \end_inset
12400
12401 g.
12402 \begin_inset space \space{}
12403 \end_inset
12404
12405
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 Argument item:1
12411 \end_layout
12412
12413 \end_inset
12414
12415 ).
12416 \change_inserted -712698321 1534487781
12417
12418 \end_layout
12419
12420 \begin_layout Standard
12421
12422 \change_inserted -712698321 1534488561
12423 Finally, there is a special argument type with the prefix 
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428
12429 \change_inserted -712698321 1534487844
12430 listpreamble:
12431 \change_unchanged
12432
12433 \end_layout
12434
12435 \end_inset
12436
12437 .
12438  It is not really an argument, but uses the argument interface (thus, the
12439  prefix is also followed by a number, e.
12440 \begin_inset space \thinspace{}
12441 \end_inset
12442
12443 g.
12444  
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449
12450 \change_inserted -712698321 1534488412
12451 Argument listpreamble:1
12452 \end_layout
12453
12454 \end_inset
12455
12456 ).
12457  As the name implies, it is targeted at lists such as 
12458 \family sans
12459 Itemize
12460 \family default
12461
12462 \family sans
12463 Enumerate
12464 \family default
12465
12466 \family sans
12467 Description
12468 \family default
12469 , or 
12470 \family sans
12471 Bibliography
12472 \family default
12473 .
12474  Its content will be output at the list start, before the first 
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479
12480 \change_inserted -712698321 1534488058
12481
12482 \backslash
12483 item
12484 \change_unchanged
12485
12486 \end_layout
12487
12488 \end_inset
12489
12490 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12491 ).
12492  This way, users can insert redefinitions (of lengths etc.) to individual
12493  lists.
12494  By default, these arguments do not have a delimiter.
12495 \change_unchanged
12496
12497 \end_layout
12498
12499 \end_deeper
12500 \begin_layout Description
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 AutoNests
12506 \end_layout
12507
12508 \end_inset
12509
12510  Includes a comma-separated list of layouts that should be nested in and
12511  after the current layout.
12512  Only makes sense for nestable layouts (such as environments).
12513  Must be ended by 
12514 \begin_inset Quotes eld
12515 \end_inset
12516
12517
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 EndAutoNests
12523 \end_layout
12524
12525 \end_inset
12526
12527
12528 \begin_inset Quotes erd
12529 \end_inset
12530
12531 .
12532  See also 
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 IsAutoNestedBy
12538 \end_layout
12539
12540 \end_inset
12541
12542 .
12543 \end_layout
12544
12545 \begin_layout Description
12546 \begin_inset Flex Code
12547 status collapsed
12548
12549 \begin_layout Plain Layout
12550 BabelPreamble
12551 \end_layout
12552
12553 \end_inset
12554
12555  Note that this will completely override any prior 
12556 \begin_inset Flex Code
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560 BabelPreamble
12561 \end_layout
12562
12563 \end_inset
12564
12565  declaration for this style.
12566  Must end with 
12567 \begin_inset Quotes eld
12568 \end_inset
12569
12570
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575 EndBabelPreamble
12576 \end_layout
12577
12578 \end_inset
12579
12580
12581 \begin_inset Quotes erd
12582 \end_inset
12583
12584 .
12585  See 
12586 \begin_inset CommandInset ref
12587 LatexCommand ref
12588 reference "subsec:I18n"
12589
12590 \end_inset
12591
12592  for details on its use.
12593 \end_layout
12594
12595 \begin_layout Description
12596 \begin_inset Flex Code
12597 status collapsed
12598
12599 \begin_layout Plain Layout
12600 BottomSep
12601 \end_layout
12602
12603 \end_inset
12604
12605  [
12606 \begin_inset Flex Code
12607 status collapsed
12608
12609 \begin_layout Plain Layout
12610 float=0
12611 \end_layout
12612
12613 \end_inset
12614
12615 ]
12616 \begin_inset Foot
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 Note that a `float' here is a real number, such as: 1.5.
12621 \end_layout
12622
12623 \end_inset
12624
12625  The vertical space with which the last of a chain of paragraphs with this
12626  style is separated from the following paragraph.
12627  If the next paragraph has another style, the separations are not simply
12628  added, but the maximum is taken.
12629 \end_layout
12630
12631 \begin_layout Description
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 Category
12637 \end_layout
12638
12639 \end_inset
12640
12641  [
12642 \begin_inset Flex Code
12643 status collapsed
12644
12645 \begin_layout Plain Layout
12646 string
12647 \end_layout
12648
12649 \end_inset
12650
12651 ] The category for this style.
12652  This is used to group related styles in the style combobox on the toolbar.
12653  Any string can be used, but you may want to use existing categories with
12654  your own styles.
12655  
12656 \end_layout
12657
12658 \begin_layout Description
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 CommandDepth
12664 \end_layout
12665
12666 \end_inset
12667
12668  Depth of XML command.
12669  Used only with XML-type formats.
12670 \end_layout
12671
12672 \begin_layout Description
12673 \begin_inset Flex Code
12674 status collapsed
12675
12676 \begin_layout Plain Layout
12677 CopyStyle
12678 \end_layout
12679
12680 \end_inset
12681
12682  [
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 string
12688 \end_layout
12689
12690 \end_inset
12691
12692 ] Copies all the features of an existing style into the current one.
12693  
12694 \end_layout
12695
12696 \begin_layout Description
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 DependsOn
12702 \end_layout
12703
12704 \end_inset
12705
12706  [
12707 \begin_inset Flex Code
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711 <name>
12712 \end_layout
12713
12714 \end_inset
12715
12716 ] The name of a style whose preamble should be output 
12717 \emph on
12718 before
12719 \emph default
12720  this one.
12721  This allows to ensure some ordering of the preamble snippets when macros
12722  definitions depend on one another.
12723 \begin_inset Foot
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 Note that, besides that functionality, there is no way to ensure any ordering
12728  of preambles.
12729  The ordering that you see in a given version of \SpecialChar LyX
12730  may change without warning
12731  in later versions.
12732 \end_layout
12733
12734 \end_inset
12735
12736
12737 \end_layout
12738
12739 \begin_layout Description
12740 \begin_inset Flex Code
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 EndLabeltype
12745 \end_layout
12746
12747 \end_inset
12748
12749  [
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754
12755 \emph on
12756 No_Label
12757 \emph default
12758 , Box, Filled_Box, Static
12759 \end_layout
12760
12761 \end_inset
12762
12763 ] The type of label that stands at the end of the paragraph (or sequence
12764  of paragraphs if 
12765 \begin_inset Flex Code
12766 status collapsed
12767
12768 \begin_layout Plain Layout
12769 LatexType
12770 \end_layout
12771
12772 \end_inset
12773
12774  is
12775 \begin_inset Newline newline
12776 \end_inset
12777
12778
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 Environment
12784 \end_layout
12785
12786 \end_inset
12787
12788
12789 \begin_inset Flex Code
12790 status collapsed
12791
12792 \begin_layout Plain Layout
12793 Item_Environment
12794 \end_layout
12795
12796 \end_inset
12797
12798  or 
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803 List_Environment
12804 \end_layout
12805
12806 \end_inset
12807
12808 ).
12809  
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 No_Label
12815 \end_layout
12816
12817 \end_inset
12818
12819  means 
12820 \begin_inset Quotes eld
12821 \end_inset
12822
12823 nothing
12824 \begin_inset Quotes erd
12825 \end_inset
12826
12827
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 Box
12833 \end_layout
12834
12835 \end_inset
12836
12837  (resp.
12838 \begin_inset space \space{}
12839 \end_inset
12840
12841
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 Filled_Box
12847 \end_layout
12848
12849 \end_inset
12850
12851 ) is a white (resp.
12852 \begin_inset space ~
12853 \end_inset
12854
12855 black) square suitable for end of proof markers, 
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Static
12861 \end_layout
12862
12863 \end_inset
12864
12865  is an explicit text string.
12866 \end_layout
12867
12868 \begin_layout Description
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873 EndLabelString
12874 \end_layout
12875
12876 \end_inset
12877
12878  [
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 string=""
12884 \end_layout
12885
12886 \end_inset
12887
12888 ] The string used for a label with a 
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 Static
12894 \end_layout
12895
12896 \end_inset
12897
12898
12899 \begin_inset Newline newline
12900 \end_inset
12901
12902
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 EndLabelType
12908 \end_layout
12909
12910 \end_inset
12911
12912 .
12913  
12914 \end_layout
12915
12916 \begin_layout Description
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 Font
12922 \end_layout
12923
12924 \end_inset
12925
12926  The font used for both the text body 
12927 \emph on
12928 and
12929 \emph default
12930  the label.
12931  See 
12932 \begin_inset CommandInset ref
12933 LatexCommand ref
12934 reference "subsec:Font-description"
12935
12936 \end_inset
12937
12938 .
12939  Note that defining this font automatically defines the 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 LabelFont
12945 \end_layout
12946
12947 \end_inset
12948
12949  to the same value.
12950  So you should define this one first if you also want to define 
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 LabelFont
12956 \end_layout
12957
12958 \end_inset
12959
12960 .
12961 \end_layout
12962
12963 \begin_layout Description
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968 ForceLocal
12969 \end_layout
12970
12971 \end_inset
12972
12973  [
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 int=0
12979 \end_layout
12980
12981 \end_inset
12982
12983 ] Used for backporting new styles to stable \SpecialChar LyX
12984  versions.
12985  The first stable version that supports this tag is \SpecialChar LyX
12986  2.1.0.
12987  The argument is a number which may either be 0, -1 or any value greater
12988  than zero.
12989  If the 
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 ForceLocal
12995 \end_layout
12996
12997 \end_inset
12998
12999  flag of a style is greater than zero, it will always be written to the
13000  document header.
13001  If a .lyx file is read, the style definitions from the document header are
13002  added to the document class.
13003  Therefore even older \SpecialChar LyX
13004  versions can handle the style.
13005  The argument of 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 ForceLocal
13011 \end_layout
13012
13013 \end_inset
13014
13015  is a version number: if the style is read, and the version number is less
13016  than the version number of the already existing style in the document class,
13017  the new style is ignored.
13018  If the version number is greater, the new style replaces the existing style.
13019  A value of -1 means an infinite version number, i.
13020 \begin_inset space \thinspace{}
13021 \end_inset
13022
13023 e.
13024 \begin_inset space \space{}
13025 \end_inset
13026
13027 the style is always used.
13028 \end_layout
13029
13030 \begin_layout Description
13031 \begin_inset Flex Code
13032 status collapsed
13033
13034 \begin_layout Plain Layout
13035 FreeSpacing
13036 \end_layout
13037
13038 \end_inset
13039
13040  [
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045
13046 \emph on
13047 0
13048 \end_layout
13049
13050 \end_inset
13051
13052 ,
13053 \begin_inset space \thinspace{}
13054 \end_inset
13055
13056
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 1
13062 \end_layout
13063
13064 \end_inset
13065
13066 ] Usually \SpecialChar LyX
13067  does not allow you to insert more than one space between words,
13068  since a space is considered as the separation between two words, not a
13069  character or symbol of its own.
13070  This is a very fine thing but sometimes annoying, for example, when typing
13071  program code or plain \SpecialChar LaTeX
13072  code.
13073  For this reason, 
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 FreeSpacing
13079 \end_layout
13080
13081 \end_inset
13082
13083  can be enabled.
13084  
13085 \change_deleted -495245474 1550490105
13086 Note that 
13087 \change_unchanged
13088 \SpecialChar LyX
13089  will create protected blanks for the additional blanks when in 
13090 \change_inserted -495245474 1550490096
13091
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096
13097 \change_inserted -495245474 1550490089
13098 Passthru 1
13099 \end_layout
13100
13101 \end_inset
13102
13103  is not specified.
13104 \change_deleted -495245474 1550490116
13105 another mode than \SpecialChar LaTeX
13106 -mode.
13107
13108 \change_inserted -495245474 1550247760
13109  Note that 
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114
13115 \change_inserted -495245474 1550247736
13116 FreeSpacing
13117 \end_layout
13118
13119 \end_inset
13120
13121  implies 
13122 \begin_inset Flex Code
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126
13127 \change_inserted -495245474 1550247755
13128 KeepEmpty
13129 \end_layout
13130
13131 \end_inset
13132
13133 .
13134 \change_unchanged
13135
13136 \end_layout
13137
13138 \begin_layout Description
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 HTML*
13144 \end_layout
13145
13146 \end_inset
13147
13148  These tags are used with XHTML output.
13149  See 
13150 \begin_inset CommandInset ref
13151 LatexCommand ref
13152 reference "subsec:Paragraph-Style-XHTML"
13153
13154 \end_inset
13155
13156 .
13157 \end_layout
13158
13159 \begin_layout Description
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 InnerTag
13165 \end_layout
13166
13167 \end_inset
13168
13169  [FIXME] (Used only with XML-type formats.)
13170 \end_layout
13171
13172 \begin_layout Description
13173 \begin_inset Flex Code
13174 status collapsed
13175
13176 \begin_layout Plain Layout
13177 InPreamble
13178 \end_layout
13179
13180 \end_inset
13181
13182  [
13183 \begin_inset Flex Code
13184 status collapsed
13185
13186 \begin_layout Plain Layout
13187
13188 \emph on
13189 0
13190 \end_layout
13191
13192 \end_inset
13193
13194 ,
13195 \begin_inset space \thinspace{}
13196 \end_inset
13197
13198
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 1
13204 \end_layout
13205
13206 \end_inset
13207
13208 ] If 
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 1
13214 \end_layout
13215
13216 \end_inset
13217
13218 , marks the style as to be included in the document preamble and not in
13219  the document body.
13220  This is useful for document classes that want such information as the title
13221  and author to appear in the preamble.
13222  Note that this works only for styles for which the 
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 LatexType
13228 \end_layout
13229
13230 \end_inset
13231
13232  is 
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Command
13238 \end_layout
13239
13240 \end_inset
13241
13242  or 
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 Paragraph
13248 \end_layout
13249
13250 \end_inset
13251
13252 .
13253 \end_layout
13254
13255 \begin_layout Description
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 InTitle
13261 \end_layout
13262
13263 \end_inset
13264
13265  [
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270
13271 \emph on
13272 0
13273 \end_layout
13274
13275 \end_inset
13276
13277 ,
13278 \begin_inset space \thinspace{}
13279 \end_inset
13280
13281
13282 \begin_inset Flex Code
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 1
13287 \end_layout
13288
13289 \end_inset
13290
13291 ] If 
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 1
13297 \end_layout
13298
13299 \end_inset
13300
13301 , marks the style as being part of a title block (see also the 
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 TitleLatexType
13307 \end_layout
13308
13309 \end_inset
13310
13311  and 
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 TitleLatexName
13317 \end_layout
13318
13319 \end_inset
13320
13321  global entries).
13322 \end_layout
13323
13324 \begin_layout Description
13325 \begin_inset Flex Code
13326 status collapsed
13327
13328 \begin_layout Plain Layout
13329 IsAutoNestedBy
13330 \end_layout
13331
13332 \end_inset
13333
13334  Includes a comma-separated list of layouts after which this one should
13335  be nested.
13336  Only makes sense with regard to nestable layouts (such as environments).
13337  Must be ended by 
13338 \begin_inset Quotes eld
13339 \end_inset
13340
13341
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 EndIsAutoNestedBy
13347 \end_layout
13348
13349 \end_inset
13350
13351
13352 \begin_inset Quotes erd
13353 \end_inset
13354
13355 .
13356  See also 
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 AutoNests
13362 \end_layout
13363
13364 \end_inset
13365
13366 .
13367 \end_layout
13368
13369 \begin_layout Description
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 IsTocCaption
13375 \end_layout
13376
13377 \end_inset
13378
13379  [
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384
13385 \emph on
13386 0
13387 \end_layout
13388
13389 \end_inset
13390
13391 ,
13392 \begin_inset space \thinspace{}
13393 \end_inset
13394
13395
13396 \begin_inset Flex Code
13397 status collapsed
13398
13399 \begin_layout Plain Layout
13400 1
13401 \end_layout
13402
13403 \end_inset
13404
13405 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13406  of its contents in its item in the table of contents.
13407  Otherwise, only the label, if it exists, appears.
13408 \end_layout
13409
13410 \begin_layout Description
13411 \begin_inset Flex Code
13412 status collapsed
13413
13414 \begin_layout Plain Layout
13415 ItemCommand
13416 \end_layout
13417
13418 \end_inset
13419
13420  [
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425 string="item"
13426 \end_layout
13427
13428 \end_inset
13429
13430 ] The \SpecialChar LaTeX
13431  command sequence declaring an item in a list.
13432  The command is to be defined without the preceding backslash (the default
13433  is 
13434 \begin_inset Quotes eld
13435 \end_inset
13436
13437 item
13438 \begin_inset Quotes erd
13439 \end_inset
13440
13441 , resulting in 
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446
13447 \backslash
13448 item
13449 \end_layout
13450
13451 \end_inset
13452
13453  in the \SpecialChar LaTeX
13454  output).
13455 \end_layout
13456
13457 \begin_layout Description
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 ItemSep
13463 \end_layout
13464
13465 \end_inset
13466
13467  [
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 float=0
13473 \end_layout
13474
13475 \end_inset
13476
13477 ] This provides extra space between paragraphs that have the same style.
13478  If you put other styles into an environment, each is separated with the
13479  environment's 
13480 \begin_inset Flex Code
13481 status collapsed
13482
13483 \begin_layout Plain Layout
13484 ParSep
13485 \end_layout
13486
13487 \end_inset
13488
13489 .
13490  But the whole items of the environment are additionally separated with
13491  this 
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 ItemSep
13497 \end_layout
13498
13499 \end_inset
13500
13501 .
13502  Note that this is a
13503 \emph on
13504  multiplier.
13505 \end_layout
13506
13507 \begin_layout Description
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512 ItemTag
13513 \end_layout
13514
13515 \end_inset
13516
13517  [FIXME] (Used only with XML-type formats.)
13518 \end_layout
13519
13520 \begin_layout Description
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 KeepEmpty
13526 \end_layout
13527
13528 \end_inset
13529
13530  [
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535
13536 \emph on
13537 0
13538 \end_layout
13539
13540 \end_inset
13541
13542 ,
13543 \begin_inset space \thinspace{}
13544 \end_inset
13545
13546
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 1
13552 \end_layout
13553
13554 \end_inset
13555
13556 ] Usually \SpecialChar LyX
13557  does not allow you to leave a paragraph empty, since it would
13558  lead to empty \SpecialChar LaTeX
13559  output.
13560  There are some cases where this could be desirable however: in a letter
13561  template, the required fields can be provided as empty fields, so that
13562  people do not forget them; in some special classes, a style can be used
13563  as some kind of break, which does not contain actual text.
13564 \end_layout
13565
13566 \begin_layout Description
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 LabelBottomsep
13572 \end_layout
13573
13574 \end_inset
13575
13576  [
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 float=0
13582 \end_layout
13583
13584 \end_inset
13585
13586 ] The vertical space between the label and the text body.
13587  Only used for labels that are above the text body (
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 Top_Environment
13593 \end_layout
13594
13595 \end_inset
13596
13597  and
13598 \begin_inset Newline newline
13599 \end_inset
13600
13601
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 Centered_Top_Environment
13607 \end_layout
13608
13609 \end_inset
13610
13611 ).
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 LabelCounter
13620 \end_layout
13621
13622 \end_inset
13623
13624  [
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 string=""
13630 \end_layout
13631
13632 \end_inset
13633
13634 ] The name of the counter for automatic numbering.
13635  In order to have the counter appear with your label, you will need to reference
13636  it in the 
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641
13642 \family typewriter
13643 LabelString
13644 \end_layout
13645
13646 \end_inset
13647
13648 .
13649  This will work with 
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 LabelType
13655 \end_layout
13656
13657 \end_inset
13658
13659 s, 
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 Static
13665 \end_layout
13666
13667 \end_inset
13668
13669
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 Above
13675 \end_layout
13676
13677 \end_inset
13678
13679  and 
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 Centered
13685 \end_layout
13686
13687 \end_inset
13688
13689 , at least.
13690 \begin_inset Newline newline
13691 \end_inset
13692
13693 This 
13694 \emph on
13695 may
13696 \emph default
13697  also be given if 
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LabelType
13703 \end_layout
13704
13705 \end_inset
13706
13707  is 
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 Enumerate
13713 \end_layout
13714
13715 \end_inset
13716
13717 , though this case is a bit complicated.
13718  Suppose you declare 
13719 \begin_inset Quotes eld
13720 \end_inset
13721
13722
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 LabelCounter myenum
13728 \end_layout
13729
13730 \end_inset
13731
13732
13733 \begin_inset Quotes erd
13734 \end_inset
13735
13736 .
13737  Then the actual counters used are 
13738 \begin_inset Flex Code
13739 status collapsed
13740
13741 \begin_layout Plain Layout
13742 myenumi
13743 \end_layout
13744
13745 \end_inset
13746
13747
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 myenumii
13753 \end_layout
13754
13755 \end_inset
13756
13757
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762 myenumiii
13763 \end_layout
13764
13765 \end_inset
13766
13767  and 
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772 myenumiv
13773 \end_layout
13774
13775 \end_inset
13776
13777 , much as in \SpecialChar LaTeX
13778 .
13779  These counters must all be declared separately.
13780 \begin_inset Newline newline
13781 \end_inset
13782
13783 See 
13784 \begin_inset CommandInset ref
13785 LatexCommand ref
13786 reference "subsec:Counters"
13787
13788 \end_inset
13789
13790  for details on counters.
13791 \end_layout
13792
13793 \begin_layout Description
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 LabelFont
13799 \end_layout
13800
13801 \end_inset
13802
13803  The font used for the label.
13804  See 
13805 \begin_inset CommandInset ref
13806 LatexCommand ref
13807 reference "subsec:Font-description"
13808
13809 \end_inset
13810
13811 .
13812 \end_layout
13813
13814 \begin_layout Description
13815 \begin_inset Flex Code
13816 status collapsed
13817
13818 \begin_layout Plain Layout
13819 LabelIndent
13820 \end_layout
13821
13822 \end_inset
13823
13824  [
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 string=""
13830 \end_layout
13831
13832 \end_inset
13833
13834 ] Text that indicates how far a label should be indented.
13835 \end_layout
13836
13837 \begin_layout Description
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 LabelSep
13843 \end_layout
13844
13845 \end_inset
13846
13847  [
13848 \begin_inset Flex Code
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 string=""
13853 \end_layout
13854
13855 \end_inset
13856
13857 ] Text that indicates the amount of horizontal space between the label and
13858  the text body.
13859  Only used for labels that are not above the text body.
13860 \end_layout
13861
13862 \begin_layout Description
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 LabelString
13868 \end_layout
13869
13870 \end_inset
13871
13872  [
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877 string=""
13878 \end_layout
13879
13880 \end_inset
13881
13882 ] The string used for the label.
13883  When 
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 LabelCounter
13889 \end_layout
13890
13891 \end_inset
13892
13893  is set, this string can be contain the special formatting commands described
13894  in 
13895 \begin_inset CommandInset ref
13896 LatexCommand ref
13897 reference "subsec:Counters"
13898
13899 \end_inset
13900
13901 .
13902 \end_layout
13903
13904 \begin_layout Description
13905 \begin_inset Flex Code
13906 status collapsed
13907
13908 \begin_layout Plain Layout
13909 LabelStringAppendix
13910 \end_layout
13911
13912 \end_inset
13913
13914  [
13915 \begin_inset Flex Code
13916 status collapsed
13917
13918 \begin_layout Plain Layout
13919 string=""
13920 \end_layout
13921
13922 \end_inset
13923
13924 ] This is used inside the appendix instead of
13925 \begin_inset Newline newline
13926 \end_inset
13927
13928
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 LabelString
13934 \end_layout
13935
13936 \end_inset
13937
13938 .
13939  Note that every 
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 LabelString
13945 \end_layout
13946
13947 \end_inset
13948
13949  statement resets
13950 \begin_inset Newline newline
13951 \end_inset
13952
13953
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 LabelStringAppendix
13959 \end_layout
13960
13961 \end_inset
13962
13963  too.
13964 \end_layout
13965
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LabelTag
13972 \end_layout
13973
13974 \end_inset
13975
13976  [FIXME] (Used only with XML-type formats.)
13977 \end_layout
13978
13979 \begin_layout Description
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 LabelType
13985 \end_layout
13986
13987 \end_inset
13988
13989  [
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994
13995 \emph on
13996 No_Label
13997 \emph default
13998 , Manual, Static, Above, 
13999 \begin_inset Newline newline
14000 \end_inset
14001
14002 Centered, Sensitive, Enumerate,
14003 \begin_inset Newline newline
14004 \end_inset
14005
14006 Itemize, Bibliography
14007 \end_layout
14008
14009 \end_inset
14010
14011 ]
14012 \end_layout
14013
14014 \begin_deeper
14015 \begin_layout Description
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020 Manual
14021 \end_layout
14022
14023 \end_inset
14024
14025  means the label is the very first word (up to the first real blank).
14026  Use protected spaces if you want more than one word as the label.
14027  
14028 \end_layout
14029
14030 \begin_layout Description
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 Static
14036 \end_layout
14037
14038 \end_inset
14039
14040  means the label is simply what is declared as 
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 LabelString
14046 \end_layout
14047
14048 \end_inset
14049
14050 .
14051  This will be displayed 
14052 \begin_inset Quotes eld
14053 \end_inset
14054
14055 inline
14056 \begin_inset Quotes erd
14057 \end_inset
14058
14059 , at the beginning of the paragraph.
14060  If the 
14061 \begin_inset Flex Code
14062 status collapsed
14063
14064 \begin_layout Plain Layout
14065 LatexType
14066 \end_layout
14067
14068 \end_inset
14069
14070  is 
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075 Environment
14076 \end_layout
14077
14078 \end_inset
14079
14080 , then it will be displayed only in the first paragraph of any sequence
14081  of paragraphs with the same 
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 Style
14087 \end_layout
14088
14089 \end_inset
14090
14091 .
14092 \end_layout
14093
14094 \begin_layout Description
14095 \begin_inset Flex Code
14096 status collapsed
14097
14098 \begin_layout Plain Layout
14099 Above
14100 \end_layout
14101
14102 \end_inset
14103
14104
14105 \begin_inset space ~
14106 \end_inset
14107
14108 and
14109 \begin_inset space ~
14110 \end_inset
14111
14112
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 Centered
14118 \end_layout
14119
14120 \end_inset
14121
14122  are special cases of 
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 Static
14128 \end_layout
14129
14130 \end_inset
14131
14132 .
14133  The label will be printed above the paragraph either at the beginning of
14134  the line or centered.
14135 \end_layout
14136
14137 \begin_layout Description
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 Sensitive
14143 \end_layout
14144
14145 \end_inset
14146
14147  is a special case for the caption-labels 
14148 \begin_inset Quotes eld
14149 \end_inset
14150
14151 Figure
14152 \begin_inset Quotes erd
14153 \end_inset
14154
14155  and 
14156 \begin_inset Quotes eld
14157 \end_inset
14158
14159 Table
14160 \begin_inset Quotes erd
14161 \end_inset
14162
14163 .
14164 \begin_inset Newline newline
14165 \end_inset
14166
14167
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 Sensitive
14173 \end_layout
14174
14175 \end_inset
14176
14177  means the (hardcoded) label string depends on the kind of float: It is
14178  hardcoded to be `FloatType N', where N is the value of the counter associated
14179  with the float.
14180  For the case that a caption is inserted outside of a float the 
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 LabelString
14186 \end_layout
14187
14188 \end_inset
14189
14190  will appear as 
14191 \begin_inset Quotes eld
14192 \end_inset
14193
14194 Senseless!
14195 \begin_inset Quotes erd
14196 \end_inset
14197
14198 .
14199 \end_layout
14200
14201 \begin_layout Description
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 Enumerate
14207 \end_layout
14208
14209 \end_inset
14210
14211  produces the usual sort of enumeration labels.
14212  The number type needs to be set in the 
14213 \family sans
14214 Counter
14215 \family default
14216 , see 
14217 \begin_inset CommandInset ref
14218 LatexCommand ref
14219 reference "subsec:Counters"
14220
14221 \end_inset
14222
14223 .
14224 \end_layout
14225
14226 \begin_layout Description
14227 \begin_inset Flex Code
14228 status collapsed
14229
14230 \begin_layout Plain Layout
14231 Itemize
14232 \end_layout
14233
14234 \end_inset
14235
14236  produces various bullets at the different levels.
14237  The bullet types displayed can be set via 
14238 \begin_inset Flex Noun
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 Document\SpecialChar menuseparator
14243 Settings\SpecialChar menuseparator
14244 Bullets
14245 \end_layout
14246
14247 \end_inset
14248
14249 .
14250 \end_layout
14251
14252 \begin_layout Description
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 Bibliography
14258 \end_layout
14259
14260 \end_inset
14261
14262  should be used only with 
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 LatexType BibEnvironment
14268 \end_layout
14269
14270 \end_inset
14271
14272 .
14273 \end_layout
14274
14275 \end_deeper
14276 \begin_layout Description
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 LangPreamble
14282 \end_layout
14283
14284 \end_inset
14285
14286  Note that this will completely override any prior 
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 LangPreamble
14292 \end_layout
14293
14294 \end_inset
14295
14296  declaration for this style.
14297  Must end with 
14298 \begin_inset Quotes eld
14299 \end_inset
14300
14301
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 EndLangPreamble
14307 \end_layout
14308
14309 \end_inset
14310
14311
14312 \begin_inset Quotes erd
14313 \end_inset
14314
14315 .
14316  See 
14317 \begin_inset CommandInset ref
14318 LatexCommand ref
14319 reference "subsec:I18n"
14320
14321 \end_inset
14322
14323  for details on its use.
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 LatexName
14332 \end_layout
14333
14334 \end_inset
14335
14336  [
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 <name>
14342 \end_layout
14343
14344 \end_inset
14345
14346 ] The name of the corresponding \SpecialChar LaTeX
14347  stuff.
14348  Either the environment or command name.
14349 \end_layout
14350
14351 \begin_layout Description
14352 \begin_inset Flex Code
14353 status collapsed
14354
14355 \begin_layout Plain Layout
14356 LatexParam
14357 \end_layout
14358
14359 \end_inset
14360
14361  [
14362 \begin_inset Flex Code
14363 status collapsed
14364
14365 \begin_layout Plain Layout
14366 <parameter>
14367 \end_layout
14368
14369 \end_inset
14370
14371 ] An optional parameter for the corresponding 
14372 \begin_inset Flex Code
14373 status collapsed
14374
14375 \begin_layout Plain Layout
14376 LatexName
14377 \end_layout
14378
14379 \end_inset
14380
14381  stuff.
14382  This parameter cannot be changed from within \SpecialChar LyX
14383  (use 
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388 Argument
14389 \end_layout
14390
14391 \end_inset
14392
14393  for customizable parameters).
14394  This will be output as is after all \SpecialChar LaTeX
14395  
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 Argument
14401 \end_layout
14402
14403 \end_inset
14404
14405 s.
14406 \end_layout
14407
14408 \begin_layout Description
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 LatexType
14414 \end_layout
14415
14416 \end_inset
14417
14418  [
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423
14424 \emph on
14425 Paragraph
14426 \emph default
14427 , Command, Environment, Item_Environment,
14428 \begin_inset Newline newline
14429 \end_inset
14430
14431 List_Environment, Bib_Environment
14432 \end_layout
14433
14434 \end_inset
14435
14436 ] How the style should be translated into \SpecialChar LaTeX
14437 .
14438 \begin_inset Foot
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 LatexType
14447 \end_layout
14448
14449 \end_inset
14450
14451  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14452  Visit the SGML class files for specific examples.
14453 \end_layout
14454
14455 \end_inset
14456
14457
14458 \end_layout
14459
14460 \begin_deeper
14461 \begin_layout Description
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 Paragraph
14467 \end_layout
14468
14469 \end_inset
14470
14471  means nothing special.
14472 \end_layout
14473
14474 \begin_layout Description
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479 Command
14480 \end_layout
14481
14482 \end_inset
14483
14484  means 
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489
14490 \backslash
14491
14492 \emph on
14493 LatexName
14494 \emph default
14495 {\SpecialChar ldots
14496 }
14497 \end_layout
14498
14499 \end_inset
14500
14501 .
14502 \end_layout
14503
14504 \begin_layout Description
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 Environment
14510 \end_layout
14511
14512 \end_inset
14513
14514  means 
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519
14520 \backslash
14521 begin{
14522 \emph on
14523 LatexName
14524 \emph default
14525 }\SpecialChar ldots
14526
14527 \backslash
14528 end{
14529 \emph on
14530 LatexName
14531 \emph default
14532 }
14533 \end_layout
14534
14535 \end_inset
14536
14537 .
14538  
14539 \end_layout
14540
14541 \begin_layout Description
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 Item_Environment
14547 \end_layout
14548
14549 \end_inset
14550
14551  is the same as 
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556 Environment
14557 \end_layout
14558
14559 \end_inset
14560
14561 , except that an 
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566
14567 \backslash
14568 item
14569 \end_layout
14570
14571 \end_inset
14572
14573  is generated for each paragraph of this environment.
14574  
14575 \end_layout
14576
14577 \begin_layout Description
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 List_Environment
14583 \end_layout
14584
14585 \end_inset
14586
14587  is the same as 
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 Item_Environment
14593 \end_layout
14594
14595 \end_inset
14596
14597 , except that
14598 \begin_inset Newline newline
14599 \end_inset
14600
14601
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606 LabelWidthString
14607 \end_layout
14608
14609 \end_inset
14610
14611  is passed as an argument to the environment.
14612 \begin_inset Newline newline
14613 \end_inset
14614
14615
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 LabelWidthString
14621 \end_layout
14622
14623 \end_inset
14624
14625  can be defined in the 
14626 \begin_inset Flex Noun
14627 status collapsed
14628
14629 \begin_layout Plain Layout
14630 Edit\SpecialChar menuseparator
14631 Paragraph
14632 \begin_inset space ~
14633 \end_inset
14634
14635 settings
14636 \end_layout
14637
14638 \end_inset
14639
14640  dialog.
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 Bib_Environment
14649 \end_layout
14650
14651 \end_inset
14652
14653  is like 
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 Environment
14659 \end_layout
14660
14661 \end_inset
14662
14663  but adds the necessary mandatory argument (the longest label) to the begin
14664  statement of the bibliography environment:
14665 \begin_inset Newline newline
14666 \end_inset
14667
14668
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673
14674 \backslash
14675 begin{thebibliography}{99}
14676 \end_layout
14677
14678 \end_inset
14679
14680 .
14681  It is therefore only useful for bibliography environments.
14682  The default longest label 
14683 \begin_inset Quotes eld
14684 \end_inset
14685
14686 99
14687 \begin_inset Quotes erd
14688 \end_inset
14689
14690  can be changed by the user in the paragraph settings of a bibliography
14691  item.
14692 \end_layout
14693
14694 \begin_layout Standard
14695 Putting the last few things together, the \SpecialChar LaTeX
14696  output will be either: 
14697 \end_layout
14698
14699 \begin_layout LyX-Code
14700
14701 \backslash
14702 LatexName[LatexParam]{\SpecialChar ldots
14703 }
14704 \end_layout
14705
14706 \begin_layout Standard
14707 or: 
14708 \end_layout
14709
14710 \begin_layout LyX-Code
14711
14712 \backslash
14713 begin{LatexName}[LatexParam] \SpecialChar ldots
14714  
14715 \backslash
14716 end{LatexName}.
14717 \end_layout
14718
14719 \begin_layout Standard
14720 depending upon the \SpecialChar LaTeX
14721  type.
14722 \end_layout
14723
14724 \end_deeper
14725 \begin_layout Description
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 LeftDelim
14731 \end_layout
14732
14733 \end_inset
14734
14735  [
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740 string
14741 \end_layout
14742
14743 \end_inset
14744
14745 ] A string that is put at the beginning of the style content.
14746  A line break in the output can be indicated by 
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 <br/>
14752 \end_layout
14753
14754 \end_inset
14755
14756 .
14757 \end_layout
14758
14759 \begin_layout Description
14760 \begin_inset Flex Code
14761 status collapsed
14762
14763 \begin_layout Plain Layout
14764 LeftMargin
14765 \end_layout
14766
14767 \end_inset
14768
14769  [
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 string=""
14775 \end_layout
14776
14777 \end_inset
14778
14779 ] If you put styles into environments, the different 
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 LeftMargin
14785 \end_layout
14786
14787 \end_inset
14788
14789  are not simply added, but added with a factor 
14790 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14791 \end_inset
14792
14793 .
14794  Note that this parameter is also used when 
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 Margin
14800 \end_layout
14801
14802 \end_inset
14803
14804  is defined as 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 Manual
14810 \end_layout
14811
14812 \end_inset
14813
14814  or 
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 Dynamic
14820 \end_layout
14821
14822 \end_inset
14823
14824 .
14825  Then it is added to the manual or dynamic margin.
14826 \begin_inset Newline newline
14827 \end_inset
14828
14829 For example 
14830 \begin_inset Quotes eld
14831 \end_inset
14832
14833
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 MM
14839 \end_layout
14840
14841 \end_inset
14842
14843
14844 \begin_inset Quotes erd
14845 \end_inset
14846
14847  means that the paragraph is indented with the width of 
14848 \begin_inset Quotes eld
14849 \end_inset
14850
14851
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 MM
14857 \end_layout
14858
14859 \end_inset
14860
14861
14862 \begin_inset Quotes erd
14863 \end_inset
14864
14865  in the normal font.
14866  You can get a negative width by prefixing the string with 
14867 \begin_inset Quotes eld
14868 \end_inset
14869
14870
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 -
14876 \end_layout
14877
14878 \end_inset
14879
14880
14881 \begin_inset Quotes erd
14882 \end_inset
14883
14884 .
14885  This way was chosen so that the look is the same with each used screen
14886  font.
14887 \end_layout
14888
14889 \begin_layout Description
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 Margin
14895 \end_layout
14896
14897 \end_inset
14898
14899  [
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904
14905 \emph on
14906 Static
14907 \emph default
14908 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14909 \end_layout
14910
14911 \end_inset
14912
14913
14914 \begin_inset Newline newline
14915 \end_inset
14916
14917 The kind of margin that the style has on the left side.
14918 \end_layout
14919
14920 \begin_deeper
14921 \begin_layout Description
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Static
14927 \end_layout
14928
14929 \end_inset
14930
14931  just means a fixed margin.
14932 \end_layout
14933
14934 \begin_layout Description
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 Manual
14940 \end_layout
14941
14942 \end_inset
14943
14944  means that the left margin depends on the string entered in the 
14945 \begin_inset Flex Noun
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 Edit\SpecialChar menuseparator
14950 Paragraph
14951 \begin_inset space ~
14952 \end_inset
14953
14954 Settings
14955 \end_layout
14956
14957 \end_inset
14958
14959  dialog.
14960  This is used to typeset nice lists without tabulators.
14961 \end_layout
14962
14963 \begin_layout Description
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 Dynamic
14969 \end_layout
14970
14971 \end_inset
14972
14973  means that the margin depends on the size of the label.
14974  This is used for automatic enumerated headlines.
14975  It is obvious that the headline 
14976 \begin_inset Quotes eld
14977 \end_inset
14978
14979 5.4.3.2.1 Very long headline
14980 \begin_inset Quotes erd
14981 \end_inset
14982
14983  must have a wider left margin (as wide as 
14984 \begin_inset Quotes eld
14985 \end_inset
14986
14987 5.4.3.2.1
14988 \begin_inset Quotes erd
14989 \end_inset
14990
14991  plus the space) than 
14992 \begin_inset Quotes eld
14993 \end_inset
14994
14995 3.2 Very long headline
14996 \begin_inset Quotes erd
14997 \end_inset
14998
14999 , even if standard 
15000 \begin_inset Quotes eld
15001 \end_inset
15002
15003 word processors
15004 \begin_inset Quotes erd
15005 \end_inset
15006
15007  are not able to do this.
15008 \end_layout
15009
15010 \begin_layout Description
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 First_Dynamic
15016 \end_layout
15017
15018 \end_inset
15019
15020  is similar, but only the very first row of the paragraph is dynamic, while
15021  the others are static; this is used, for example, for descriptions.
15022 \end_layout
15023
15024 \begin_layout Description
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 Right_Address_Box
15030 \end_layout
15031
15032 \end_inset
15033
15034  means the margin is chosen in a way that the longest row of this paragraph
15035  fits to the right margin.
15036  This is used to typeset an address on the right edge of the page.
15037 \end_layout
15038
15039 \end_deeper
15040 \begin_layout Description
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 NeedProtect
15046 \end_layout
15047
15048 \end_inset
15049
15050  [
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055
15056 \emph on
15057 0
15058 \end_layout
15059
15060 \end_inset
15061
15062 ,
15063 \begin_inset space \thinspace{}
15064 \end_inset
15065
15066
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 1
15072 \end_layout
15073
15074 \end_inset
15075
15076 ] Whether fragile commands in this style should be 
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081
15082 \backslash
15083 protect
15084 \end_layout
15085
15086 \end_inset
15087
15088 'ed.
15089  (Note: This is 
15090 \emph on
15091 not
15092 \emph default
15093  whether this command should itself be protected.)
15094 \change_inserted -712698321 1523696949
15095
15096 \end_layout
15097
15098 \begin_layout Description
15099
15100 \change_inserted -712698321 1552395557
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105
15106 \change_inserted -712698321 1523696950
15107 NeedCProtect
15108 \end_layout
15109
15110 \end_inset
15111
15112  [
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117
15118 \change_inserted -712698321 1523696950
15119
15120 \emph on
15121 0
15122 \end_layout
15123
15124 \end_inset
15125
15126 ,
15127 \begin_inset space \thinspace{}
15128 \end_inset
15129
15130
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135
15136 \change_inserted -712698321 1523696950
15137 1
15138 \end_layout
15139
15140 \end_inset
15141
15142 ] This causes macros that contain this layout to be protected with 
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147
15148 \change_inserted -712698321 1523696950
15149
15150 \backslash
15151 cprotect
15152 \end_layout
15153
15154 \end_inset
15155
15156  (cf.
15157  package 
15158 \family sans
15159 cprotect
15160 \family default
15161 ) if necessary and thus allows (some) verbatim stuff in macros.
15162 \end_layout
15163
15164 \begin_layout Description
15165
15166 \change_inserted -712698321 1552395844
15167 \begin_inset Flex Code
15168 status collapsed
15169
15170 \begin_layout Plain Layout
15171
15172 \change_inserted -712698321 1552395561
15173 NeedMBoxProtect
15174 \end_layout
15175
15176 \end_inset
15177
15178  [
15179 \begin_inset Flex Code
15180 status collapsed
15181
15182 \begin_layout Plain Layout
15183
15184 \change_inserted -712698321 1552395557
15185
15186 \emph on
15187 0
15188 \end_layout
15189
15190 \end_inset
15191
15192 ,
15193 \begin_inset space \thinspace{}
15194 \end_inset
15195
15196
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201
15202 \change_inserted -712698321 1552395557
15203 1
15204 \end_layout
15205
15206 \end_inset
15207
15208 ] Whether specific commands in this style (such as 
15209 \begin_inset Flex Code
15210 status collapsed
15211
15212 \begin_layout Plain Layout
15213
15214 \change_inserted -712698321 1552395655
15215
15216 \backslash
15217 cite
15218 \change_unchanged
15219
15220 \end_layout
15221
15222 \end_inset
15223
15224  and 
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229
15230 \change_inserted -712698321 1552395661
15231
15232 \backslash
15233 ref
15234 \change_unchanged
15235
15236 \end_layout
15237
15238 \end_inset
15239
15240 ) should be protected in an 
15241 \begin_inset Flex Code
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245
15246 \change_inserted -712698321 1552395631
15247
15248 \backslash
15249 mbox
15250 \change_unchanged
15251
15252 \end_layout
15253
15254 \end_inset
15255
15256 .
15257  This is particularly needed for styles that draw on 
15258 \family sans
15259 ulem
15260 \family default
15261  or 
15262 \family sans
15263 soul
15264 \family default
15265  commands which parse their content in complex ways.
15266 \change_unchanged
15267
15268 \end_layout
15269
15270 \begin_layout Description
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 Newline
15276 \end_layout
15277
15278 \end_inset
15279
15280  [
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 0
15286 \end_layout
15287
15288 \end_inset
15289
15290 ,
15291 \begin_inset space \thinspace{}
15292 \end_inset
15293
15294
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299
15300 \emph on
15301 1
15302 \end_layout
15303
15304 \end_inset
15305
15306 ] Whether newlines are translated into \SpecialChar LaTeX
15307  newlines (
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312
15313 \backslash
15314
15315 \backslash
15316
15317 \end_layout
15318
15319 \end_inset
15320
15321 ) or not.
15322  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15323  editing
15324  inside \SpecialChar LyX
15325 .
15326 \end_layout
15327
15328 \begin_layout Description
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 NextNoIndent
15334 \end_layout
15335
15336 \end_inset
15337
15338  [
15339 \begin_inset Flex Code
15340 status collapsed
15341
15342 \begin_layout Plain Layout
15343
15344 \emph on
15345 0
15346 \end_layout
15347
15348 \end_inset
15349
15350 ,
15351 \begin_inset space \thinspace{}
15352 \end_inset
15353
15354
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 1
15360 \end_layout
15361
15362 \end_inset
15363
15364 ] If set to true, and if 
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 DefaultStyle
15370 \end_layout
15371
15372 \end_inset
15373
15374  (usually 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 Standard
15380 \end_layout
15381
15382 \end_inset
15383
15384 ) paragraphs are being indented, then the indentation of such a paragraph
15385  following one of this type will be suppressed.
15386  (So this will not affect the display of non-default paragraphs.)
15387 \end_layout
15388
15389 \begin_layout Description
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 ObsoletedBy
15395 \end_layout
15396
15397 \end_inset
15398
15399  [
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 <name>
15405 \end_layout
15406
15407 \end_inset
15408
15409 ] Name of a style that has replaced this style.
15410  This is used to rename a style, while keeping backward compatibility.
15411 \end_layout
15412
15413 \begin_layout Description
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 ParagraphGroup
15419 \end_layout
15420
15421 \end_inset
15422
15423  [
15424 \begin_inset Flex Code
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 0
15429 \end_layout
15430
15431 \end_inset
15432
15433 ,
15434 \begin_inset space \thinspace{}
15435 \end_inset
15436
15437
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 1
15443 \end_layout
15444
15445 \end_inset
15446
15447 ] Determines whether consecutive paragraphs of the same type are treated
15448  as belonging together.
15449  This has the effect that the 
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 GuiLabel
15455 \end_layout
15456
15457 \end_inset
15458
15459  is only printed once before such a group.
15460  By default, this is true for 
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 LaTeXType
15466 \end_layout
15467
15468 \end_inset
15469
15470  
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 Environment
15476 \end_layout
15477
15478 \end_inset
15479
15480  and 
15481 \begin_inset Flex Code
15482 status collapsed
15483
15484 \begin_layout Plain Layout
15485 Bib_Environment
15486 \end_layout
15487
15488 \end_inset
15489
15490  and false for all other types.
15491 \end_layout
15492
15493 \begin_layout Description
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 ParbreakIsNewline
15499 \end_layout
15500
15501 \end_inset
15502
15503  [
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508
15509 \emph on
15510 0
15511 \end_layout
15512
15513 \end_inset
15514
15515 ,
15516 \begin_inset space \thinspace{}
15517 \end_inset
15518
15519
15520 \begin_inset Flex Code
15521 status collapsed
15522
15523 \begin_layout Plain Layout
15524 1
15525 \end_layout
15526
15527 \end_inset
15528
15529 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15530  output,
15531  but only by a line break; together with 
15532 \begin_inset Flex Code
15533 status collapsed
15534
15535 \begin_layout Plain Layout
15536 PassThru 1
15537 \end_layout
15538
15539 \end_inset
15540
15541 , this allows to emulate a plain text editor (like the ERT inset).
15542 \end_layout
15543
15544 \begin_layout Description
15545 \begin_inset Flex Code
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549 ParIndent
15550 \end_layout
15551
15552 \end_inset
15553
15554  [
15555 \begin_inset Flex Code
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559 string=""
15560 \end_layout
15561
15562 \end_inset
15563
15564 ] The indent of the very first line of a paragraph.
15565  The
15566 \begin_inset Newline newline
15567 \end_inset
15568
15569
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 Parindent
15575 \end_layout
15576
15577 \end_inset
15578
15579  will be fixed for a certain style.
15580  The exception is the default style, since the indentation for these paragraphs
15581  can be prohibited with 
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 NextNoIndent
15587 \end_layout
15588
15589 \end_inset
15590
15591 .
15592  Also, 
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 Standard
15598 \end_layout
15599
15600 \end_inset
15601
15602  style paragraphs inside environments use the 
15603 \begin_inset Flex Code
15604 status collapsed
15605
15606 \begin_layout Plain Layout
15607 Parindent
15608 \end_layout
15609
15610 \end_inset
15611
15612  of the environment, not their native one.
15613  For example, 
15614 \begin_inset Flex Code
15615 status collapsed
15616
15617 \begin_layout Plain Layout
15618 Standard
15619 \end_layout
15620
15621 \end_inset
15622
15623  paragraphs inside an enumeration are not indented.
15624 \end_layout
15625
15626 \begin_layout Description
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 ParSep
15632 \end_layout
15633
15634 \end_inset
15635
15636  [
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 float=0
15642 \end_layout
15643
15644 \end_inset
15645
15646 ] The vertical space between two paragraphs of this style.
15647 \end_layout
15648
15649 \begin_layout Description
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 Parskip
15655 \end_layout
15656
15657 \end_inset
15658
15659  [
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 float=0
15665 \end_layout
15666
15667 \end_inset
15668
15669 ] \SpecialChar LyX
15670  allows the user to choose either 
15671 \begin_inset Quotes eld
15672 \end_inset
15673
15674 indent
15675 \begin_inset Quotes erd
15676 \end_inset
15677
15678  or 
15679 \begin_inset Quotes eld
15680 \end_inset
15681
15682 skip
15683 \begin_inset Quotes erd
15684 \end_inset
15685
15686  to separate paragraphs.
15687  When 
15688 \begin_inset Quotes eld
15689 \end_inset
15690
15691 indent
15692 \begin_inset Quotes erd
15693 \end_inset
15694
15695  is chosen, 
15696 \begin_inset Flex Code
15697 status collapsed
15698
15699 \begin_layout Plain Layout
15700 Parskip
15701 \end_layout
15702
15703 \end_inset
15704
15705  is ignored.
15706  When 
15707 \begin_inset Quotes eld
15708 \end_inset
15709
15710 skip
15711 \begin_inset Quotes erd
15712 \end_inset
15713
15714  is chosen, 
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 ParIndent
15720 \end_layout
15721
15722 \end_inset
15723
15724  is ignored and all paragraphs are separated by the 
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729 Parskip
15730 \end_layout
15731
15732 \end_inset
15733
15734  argument.
15735  The vertical space is calculated with 
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 Parskip
15741 \begin_inset space ~
15742 \end_inset
15743
15744 * DefaultHeight
15745 \end_layout
15746
15747 \end_inset
15748
15749  where 
15750 \begin_inset Flex Code
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754 DefaultHeight
15755 \end_layout
15756
15757 \end_inset
15758
15759  is the height of a row with the normal font.
15760  This way, the look stays the same with different screen fonts.
15761 \end_layout
15762
15763 \begin_layout Description
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 PassThru
15769 \end_layout
15770
15771 \end_inset
15772
15773  [
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778
15779 \emph on
15780 0
15781 \end_layout
15782
15783 \end_inset
15784
15785 ,
15786 \begin_inset space \thinspace{}
15787 \end_inset
15788
15789
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 1
15795 \end_layout
15796
15797 \end_inset
15798
15799 ] Whether the contents of this paragraph should be output in raw form, meaning
15800  without special translations that \SpecialChar LaTeX
15801  would require.
15802 \end_layout
15803
15804 \begin_layout Description
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 PassThruChars
15810 \end_layout
15811
15812 \end_inset
15813
15814  [
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819 string
15820 \end_layout
15821
15822 \end_inset
15823
15824 ]
15825 \family typewriter
15826  
15827 \family default
15828 Defines individual characters that should be output in raw form, meaning
15829  without special translations that \SpecialChar LaTeX
15830  would require.
15831 \end_layout
15832
15833 \begin_layout Description
15834 \begin_inset Flex Code
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 Preamble
15839 \end_layout
15840
15841 \end_inset
15842
15843  Information to be included in the \SpecialChar LaTeX
15844  preamble when this style is used.
15845  Used to define macros, load packages, etc., required by this particular
15846  style.
15847  Must end with 
15848 \begin_inset Quotes eld
15849 \end_inset
15850
15851
15852 \begin_inset Flex Code
15853 status collapsed
15854
15855 \begin_layout Plain Layout
15856 EndPreamble
15857 \end_layout
15858
15859 \end_inset
15860
15861
15862 \begin_inset Quotes erd
15863 \end_inset
15864
15865 .
15866 \end_layout
15867
15868 \begin_layout Description
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 RefPrefix
15874 \end_layout
15875
15876 \end_inset
15877
15878  [
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 string
15884 \end_layout
15885
15886 \end_inset
15887
15888 ] The prefix to use when creating labels referring to paragraphs of this
15889  type.
15890  This allows the use of formatted references.
15891 \end_layout
15892
15893 \begin_layout Description
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 Requires 
15899 \end_layout
15900
15901 \end_inset
15902
15903  [
15904 \begin_inset Flex Code
15905 status collapsed
15906
15907 \begin_layout Plain Layout
15908 string
15909 \end_layout
15910
15911 \end_inset
15912
15913 ] Whether the style requires the feature 
15914 \begin_inset Flex Code
15915 status collapsed
15916
15917 \begin_layout Plain Layout
15918 string
15919 \end_layout
15920
15921 \end_inset
15922
15923  (see 
15924 \begin_inset CommandInset ref
15925 LatexCommand ref
15926 reference "chap:List-of-functions"
15927
15928 \end_inset
15929
15930  for the list of features).
15931  If you require a package with specific options, you can additionally use
15932  
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 PackageOptions
15938 \end_layout
15939
15940 \end_inset
15941
15942  as a general text class parameter (see 
15943 \begin_inset CommandInset ref
15944 LatexCommand ref
15945 reference "subsec:General-text-class"
15946
15947 \end_inset
15948
15949 ).
15950 \end_layout
15951
15952 \begin_layout Description
15953 \begin_inset Flex Code
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957 ResetArgs
15958 \end_layout
15959
15960 \end_inset
15961
15962  [
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968 \emph on
15969 0
15970 \end_layout
15971
15972 \end_inset
15973
15974 ,
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 1
15980 \end_layout
15981
15982 \end_inset
15983
15984 ] Resets the \SpecialChar LaTeX
15985  arguments of this style (as defined via the 
15986 \begin_inset Flex Code
15987 status collapsed
15988
15989 \begin_layout Plain Layout
15990 Argument
15991 \end_layout
15992
15993 \end_inset
15994
15995  tag).
15996  This is useful if you have copied a style via 
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 CopyStyle
16002 \end_layout
16003
16004 \end_inset
16005
16006 , but you do not want to inherit its (required and optional) arguments.
16007 \end_layout
16008
16009 \begin_layout Description
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014 ResumeCounter
16015 \end_layout
16016
16017 \end_inset
16018
16019  [
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024
16025 \emph on
16026 0
16027 \end_layout
16028
16029 \end_inset
16030
16031 ,
16032 \begin_inset Flex Code
16033 status collapsed
16034
16035 \begin_layout Plain Layout
16036 1
16037 \end_layout
16038
16039 \end_inset
16040
16041 ] Resumes a counter that is usually reset at each new sequence of layouts.
16042  This is currently only useful when 
16043 \begin_inset Flex Code
16044 status collapsed
16045
16046 \begin_layout Plain Layout
16047 LabelType
16048 \end_layout
16049
16050 \end_inset
16051
16052  is 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057 Enumerate
16058 \end_layout
16059
16060 \end_inset
16061
16062 .
16063 \end_layout
16064
16065 \begin_layout Description
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 RightDelim
16071 \end_layout
16072
16073 \end_inset
16074
16075  [
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 string
16081 \end_layout
16082
16083 \end_inset
16084
16085 ] A string that is put at the end of the layout content.
16086  A line break in the output can be indicated by 
16087 \begin_inset Flex Code
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 <br/>
16092 \end_layout
16093
16094 \end_inset
16095
16096 .
16097 \end_layout
16098
16099 \begin_layout Description
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 RightMargin
16105 \end_layout
16106
16107 \end_inset
16108
16109  [
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 string=""
16115 \end_layout
16116
16117 \end_inset
16118
16119 ] Similar to 
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 LeftMargin
16125 \end_layout
16126
16127 \end_inset
16128
16129 .
16130 \end_layout
16131
16132 \begin_layout Description
16133 \begin_inset Flex Code
16134 status collapsed
16135
16136 \begin_layout Plain Layout
16137 Spacing
16138 \end_layout
16139
16140 \end_inset
16141
16142  [
16143 \begin_inset Flex Code
16144 status collapsed
16145
16146 \begin_layout Plain Layout
16147
16148 \emph on
16149 single
16150 \end_layout
16151
16152 \end_inset
16153
16154
16155 \begin_inset Flex Code
16156 status collapsed
16157
16158 \begin_layout Plain Layout
16159 onehalf
16160 \end_layout
16161
16162 \end_inset
16163
16164
16165 \begin_inset Flex Code
16166 status collapsed
16167
16168 \begin_layout Plain Layout
16169 double
16170 \end_layout
16171
16172 \end_inset
16173
16174
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 other
16180 \begin_inset space ~
16181 \end_inset
16182
16183 <value>
16184 \end_layout
16185
16186 \end_inset
16187
16188 ] This defines what the default spacing should be in the style.
16189  The arguments 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 single
16195 \end_layout
16196
16197 \end_inset
16198
16199
16200 \begin_inset Flex Code
16201 status collapsed
16202
16203 \begin_layout Plain Layout
16204 onehalf
16205 \end_layout
16206
16207 \end_inset
16208
16209  and 
16210 \begin_inset Flex Code
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 double
16215 \end_layout
16216
16217 \end_inset
16218
16219  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16220  If you specify the argument 
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 other
16226 \end_layout
16227
16228 \end_inset
16229
16230 , then you must also provide a value argument which will be the actual multiplie
16231 r value.
16232  Note that, contrary to other parameters, 
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237 Spacing
16238 \end_layout
16239
16240 \end_inset
16241
16242  implies the generation of specific \SpecialChar LaTeX
16243  code, using the \SpecialChar LaTeX
16244  package 
16245 \family roman
16246
16247 \begin_inset Flex Code
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251 setspace
16252 \end_layout
16253
16254 \end_inset
16255
16256 .
16257 \end_layout
16258
16259 \begin_layout Description
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 Spellcheck
16265 \end_layout
16266
16267 \end_inset
16268
16269  [
16270 \begin_inset Flex Code
16271 status collapsed
16272
16273 \begin_layout Plain Layout
16274 0
16275 \end_layout
16276
16277 \end_inset
16278
16279 ,
16280 \begin_inset space \thinspace{}
16281 \end_inset
16282
16283
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288
16289 \emph on
16290 1
16291 \end_layout
16292
16293 \end_inset
16294
16295 ] Allow spell-checking paragraphs of this style.
16296  Default is true.
16297 \end_layout
16298
16299 \begin_layout Description
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304 StepMasterCounter
16305 \end_layout
16306
16307 \end_inset
16308
16309  [
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314
16315 \emph on
16316 0
16317 \end_layout
16318
16319 \end_inset
16320
16321 ,
16322 \begin_inset Flex Code
16323 status collapsed
16324
16325 \begin_layout Plain Layout
16326 1
16327 \end_layout
16328
16329 \end_inset
16330
16331 ] Steps the master counter of a given counter at the beginning of a new
16332  sequence of layouts.
16333  This is currently only useful when 
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 LabelType
16339 \end_layout
16340
16341 \end_inset
16342
16343  is 
16344 \begin_inset Flex Code
16345 status collapsed
16346
16347 \begin_layout Plain Layout
16348 Enumerate
16349 \end_layout
16350
16351 \end_inset
16352
16353 .
16354 \end_layout
16355
16356 \begin_layout Description
16357 \begin_inset Flex Code
16358 status collapsed
16359
16360 \begin_layout Plain Layout
16361 TextFont
16362 \end_layout
16363
16364 \end_inset
16365
16366  The font used for the text body .
16367  See 
16368 \begin_inset CommandInset ref
16369 LatexCommand ref
16370 reference "subsec:Font-description"
16371
16372 \end_inset
16373
16374 .
16375 \end_layout
16376
16377 \begin_layout Description
16378 \begin_inset Flex Code
16379 status collapsed
16380
16381 \begin_layout Plain Layout
16382 TocLevel
16383 \end_layout
16384
16385 \end_inset
16386
16387
16388 \series medium
16389  [
16390 \begin_inset Flex Code
16391 status collapsed
16392
16393 \begin_layout Plain Layout
16394
16395 \series medium
16396 int=3
16397 \end_layout
16398
16399 \end_inset
16400
16401 ]
16402 \series default
16403  The level of the style in the table of contents.
16404  This is used for automatic numbering of section headings.
16405 \end_layout
16406
16407 \begin_layout Description
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 ToggleIndent
16413 \end_layout
16414
16415 \end_inset
16416
16417  [
16418 \emph on
16419
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424
16425 \emph on
16426 default
16427 \end_layout
16428
16429 \end_inset
16430
16431
16432 \emph default
16433
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438 always
16439 \end_layout
16440
16441 \end_inset
16442
16443
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448 never
16449 \end_layout
16450
16451 \end_inset
16452
16453 ] This tag determines whether the first line indentation of this paragraph
16454  can be toggled via the Paragraph settings dialog.
16455  If 
16456 \emph on
16457
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462
16463 \emph off
16464 default
16465 \end_layout
16466
16467 \end_inset
16468
16469
16470 \emph default
16471  is set, indentation can be toggled if the document settings use 
16472 \begin_inset Quotes eld
16473 \end_inset
16474
16475 indent
16476 \begin_inset Quotes erd
16477 \end_inset
16478
16479  paragraph style, with 
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 always
16485 \end_layout
16486
16487 \end_inset
16488
16489 , indentation can always be toggled, notwithstanding the document settings,
16490  with 
16491 \begin_inset Flex Code
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495 never
16496 \end_layout
16497
16498 \end_inset
16499
16500 , indentation can never be toggled.
16501 \end_layout
16502
16503 \begin_layout Description
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 TopSep
16509 \end_layout
16510
16511 \end_inset
16512
16513  [
16514 \begin_inset Flex Code
16515 status collapsed
16516
16517 \begin_layout Plain Layout
16518 float=0
16519 \end_layout
16520
16521 \end_inset
16522
16523 ] The vertical space with which the very first of a chain of paragraphs
16524  with this style is separated from the previous paragraph.
16525  If the previous paragraph has another style, the separations are not simply
16526  added, but the maximum is taken.
16527 \end_layout
16528
16529 \begin_layout Subsection
16530 \begin_inset CommandInset label
16531 LatexCommand label
16532 name "subsec:I18n"
16533
16534 \end_inset
16535
16536 Internationalization of Paragraph Styles
16537 \end_layout
16538
16539 \begin_layout Standard
16540 \SpecialChar LyX
16541  has long supported internationalization of layout information, but, until
16542  version 2.0, this applied only to the user interface and not to, say, PDF
16543  output.
16544  Thus, French authors were forced to resort to ugly hacks if they wanted
16545  `
16546 \lang french
16547 Théorème
16548 \lang english
16549  1' instead of `Theorem 1'.
16550  Thanks to Georg Baum, that is no longer the case.
16551 \end_layout
16552
16553 \begin_layout Standard
16554 If a 
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 Style
16560 \end_layout
16561
16562 \end_inset
16563
16564  defines text that is to appear in the typeset document, it may use 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 LangPreamble
16570 \end_layout
16571
16572 \end_inset
16573
16574  and 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 BabelPreamble
16580 \end_layout
16581
16582 \end_inset
16583
16584  to support non-English and even multi-language documents correctly.
16585  The following excerpt (from the 
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 theorems-ams.inc
16591 \end_layout
16592
16593 \end_inset
16594
16595  file) shows how this works:
16596 \end_layout
16597
16598 \begin_layout LyX-Code
16599 Preamble
16600 \end_layout
16601
16602 \begin_deeper
16603 \begin_layout LyX-Code
16604   
16605 \backslash
16606 theoremstyle{remark}
16607 \end_layout
16608
16609 \begin_layout LyX-Code
16610   
16611 \backslash
16612 newtheorem{claim}[thm]{
16613 \backslash
16614 protect
16615 \backslash
16616 claimname}
16617 \end_layout
16618
16619 \begin_layout LyX-Code
16620 EndPreamble
16621 \end_layout
16622
16623 \begin_layout LyX-Code
16624 LangPreamble
16625 \end_layout
16626
16627 \begin_layout LyX-Code
16628   
16629 \backslash
16630 providecommand{
16631 \backslash
16632 claimname}{_(Claim)}
16633 \end_layout
16634
16635 \begin_layout LyX-Code
16636 EndLangPreamble
16637 \end_layout
16638
16639 \begin_layout LyX-Code
16640 BabelPreamble
16641 \end_layout
16642
16643 \begin_layout LyX-Code
16644     
16645 \backslash
16646 addto
16647 \backslash
16648 captions$$lang{
16649 \backslash
16650 renewcommand{
16651 \backslash
16652 claimname}{_(Claim)}}
16653 \end_layout
16654
16655 \begin_layout LyX-Code
16656 EndBabelPreamble
16657 \end_layout
16658
16659 \end_deeper
16660 \begin_layout Standard
16661 In principle, any legal \SpecialChar LaTeX
16662  may appear in the 
16663 \begin_inset Flex Code
16664 status collapsed
16665
16666 \begin_layout Plain Layout
16667 LangPreamble
16668 \end_layout
16669
16670 \end_inset
16671
16672  and 
16673 \begin_inset Flex Code
16674 status collapsed
16675
16676 \begin_layout Plain Layout
16677 BabelPreamble
16678 \end_layout
16679
16680 \end_inset
16681
16682  tags, but in practice they will typically look as they do here.
16683  The key to correct translation of the typeset text is the definition of
16684  the \SpecialChar LaTeX
16685  command 
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690
16691 \backslash
16692 claimname
16693 \end_layout
16694
16695 \end_inset
16696
16697  and its use in 
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702
16703 \backslash
16704 newtheorem
16705 \end_layout
16706
16707 \end_inset
16708
16709 .
16710  
16711 \end_layout
16712
16713 \begin_layout Standard
16714 The 
16715 \begin_inset Flex Code
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 LangPreamble
16720 \end_layout
16721
16722 \end_inset
16723
16724  tag provides for internationalization based upon the overall language of
16725  the document.
16726  The contents of the tag will be included in the preamble, just as with
16727  the 
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 Preamble
16733 \end_layout
16734
16735 \end_inset
16736
16737  tag.
16738  What makes it special is the use of the 
16739 \begin_inset Quotes eld
16740 \end_inset
16741
16742 function
16743 \begin_inset Quotes erd
16744 \end_inset
16745
16746  
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 _()
16752 \end_layout
16753
16754 \end_inset
16755
16756 , which will be replaced, when \SpecialChar LyX
16757  produces \SpecialChar LaTeX
16758  output, with the translation of
16759  its argument into the document language.
16760 \end_layout
16761
16762 \begin_layout Standard
16763 The 
16764 \begin_inset Flex Code
16765 status collapsed
16766
16767 \begin_layout Plain Layout
16768 BabelPreamble
16769 \end_layout
16770
16771 \end_inset
16772
16773  tag is more complex, since it is meant to provide support for multi-language
16774  documents and so offers an interface to the 
16775 \begin_inset Flex Code
16776 status collapsed
16777
16778 \begin_layout Plain Layout
16779 babel
16780 \end_layout
16781
16782 \end_inset
16783
16784  package.
16785  Its contents will be added to the preamble once for each language that
16786  appears in the document.
16787  In this case, the argument to 
16788 \begin_inset Flex Code
16789 status collapsed
16790
16791 \begin_layout Plain Layout
16792 _()
16793 \end_layout
16794
16795 \end_inset
16796
16797  will be replaced with its translation into the language in question; the
16798  expression 
16799 \begin_inset Flex Code
16800 status collapsed
16801
16802 \begin_layout Plain Layout
16803 $$lang
16804 \end_layout
16805
16806 \end_inset
16807
16808  is replaced by the language name (as used by the babel package).
16809 \end_layout
16810
16811 \begin_layout Standard
16812 A German document that also included a French section would thus have the
16813  following in the preamble:
16814 \end_layout
16815
16816 \begin_layout LyX-Code
16817
16818 \backslash
16819 addto
16820 \backslash
16821 captionsfrench{
16822 \backslash
16823 renewcommand{
16824 \backslash
16825 claimname}{Affirmation}}
16826 \begin_inset Newline newline
16827 \end_inset
16828
16829
16830 \backslash
16831 addto
16832 \backslash
16833 captionsngerman{
16834 \backslash
16835 renewcommand{
16836 \backslash
16837 claimname}{Behauptung}}
16838 \begin_inset Newline newline
16839 \end_inset
16840
16841
16842 \backslash
16843 providecommand{
16844 \backslash
16845 claimname}{Behauptung}
16846 \end_layout
16847
16848 \begin_layout Standard
16849 \SpecialChar LaTeX
16850  and 
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855 babel
16856 \end_layout
16857
16858 \end_inset
16859
16860  will then conspire to produce the correct text in the output.
16861 \end_layout
16862
16863 \begin_layout Standard
16864 One important point to note here is that the translations are provided by
16865  \SpecialChar LyX
16866  itself, through the file 
16867 \begin_inset Flex Code
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871 layouttranslations
16872 \end_layout
16873
16874 \end_inset
16875
16876 .
16877  This means, in effect, that 
16878 \begin_inset Flex Code
16879 status collapsed
16880
16881 \begin_layout Plain Layout
16882 LangPreamble
16883 \end_layout
16884
16885 \end_inset
16886
16887  and 
16888 \begin_inset Flex Code
16889 status collapsed
16890
16891 \begin_layout Plain Layout
16892 BabelPreamble
16893 \end_layout
16894
16895 \end_inset
16896
16897  are really only of use in layout files that are provided with \SpecialChar LyX
16898 , since text
16899  entered in user-created layout files will not be seen by \SpecialChar LyX
16900 's internationalizatio
16901 n routines unless the 
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 layouttranslations
16907 \end_layout
16908
16909 \end_inset
16910
16911  file is modified accordingly.
16912  That said, however, any layout created with the intention that it will
16913  be included with \SpecialChar LyX
16914  should use these tags where appropriate.
16915  Please note that the paragraph style translations provided by \SpecialChar LyX
16916  will never
16917  change with a minor update (e.
16918 \begin_inset space \thinspace{}
16919 \end_inset
16920
16921 g.
16922 \begin_inset space \space{}
16923 \end_inset
16924
16925 from version 2.1.x to 2.1.y).
16926  It is however quite likely that a major update (e.
16927 \begin_inset space \thinspace{}
16928 \end_inset
16929
16930 g.
16931 \begin_inset space \space{}
16932 \end_inset
16933
16934 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16935 \end_layout
16936
16937 \begin_layout Subsection
16938 Floats
16939 \begin_inset CommandInset label
16940 LatexCommand label
16941 name "subsec:Floats"
16942
16943 \end_inset
16944
16945
16946 \end_layout
16947
16948 \begin_layout Standard
16949 It is necessary to define the floats (
16950 \begin_inset Flex Noun
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 figure
16955 \end_layout
16956
16957 \end_inset
16958
16959
16960 \begin_inset Flex Noun
16961 status collapsed
16962
16963 \begin_layout Plain Layout
16964 table
16965 \end_layout
16966
16967 \end_inset
16968
16969 , \SpecialChar ldots
16970 ) in the text class itself.
16971  Standard floats are included in the file 
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 stdfloats.inc
16977 \end_layout
16978
16979 \end_inset
16980
16981 , so you may have to do no more than add
16982 \end_layout
16983
16984 \begin_layout LyX-Code
16985 Input stdfloats.inc
16986 \end_layout
16987
16988 \begin_layout Standard
16989 to your layout file.
16990  If you want to implement a text class that proposes some other float types
16991  (like the AGU class bundled with \SpecialChar LyX
16992 ), the information below will hopefully
16993  help you:
16994 \end_layout
16995
16996 \begin_layout Description
16997 \begin_inset Flex Code
16998 status collapsed
16999
17000 \begin_layout Plain Layout
17001 AllowedPlacement
17002 \end_layout
17003
17004 \end_inset
17005
17006  [
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 string
17012 \end_layout
17013
17014 \end_inset
17015
17016 =!htbpH] Allowed placement options for this float type.
17017  The value is a string of placement characters.
17018  Possible characters include: 
17019 \emph on
17020 h
17021 \emph default
17022  (
17023 \begin_inset Quotes eld
17024 \end_inset
17025
17026 here if possible
17027 \begin_inset Quotes erd
17028 \end_inset
17029
17030 ), 
17031 \emph on
17032 t
17033 \emph default
17034  (
17035 \begin_inset Quotes eld
17036 \end_inset
17037
17038 top of page
17039 \begin_inset Quotes erd
17040 \end_inset
17041
17042 ), 
17043 \emph on
17044 b
17045 \emph default
17046  (
17047 \begin_inset Quotes eld
17048 \end_inset
17049
17050 bottom of page
17051 \begin_inset Quotes erd
17052 \end_inset
17053
17054 ), 
17055 \emph on
17056 p
17057 \emph default
17058  (
17059 \begin_inset Quotes eld
17060 \end_inset
17061
17062 page of floats
17063 \begin_inset Quotes erd
17064 \end_inset
17065
17066 ), 
17067 \emph on
17068 H
17069 \emph default
17070  (
17071 \begin_inset Quotes eld
17072 \end_inset
17073
17074 here definitely
17075 \begin_inset Quotes erd
17076 \end_inset
17077
17078 ) and 
17079 \emph on
17080 !
17081 \emph default
17082  (
17083 \begin_inset Quotes eld
17084 \end_inset
17085
17086 ignore LaTeX rules
17087 \begin_inset Quotes erd
17088 \end_inset
17089
17090 ).
17091  The order of the characters in the string does not matter.
17092  If no placement options are allowed, use the string 
17093 \emph on
17094 none
17095 \emph default
17096 .
17097 \end_layout
17098
17099 \begin_layout Description
17100 \begin_inset Flex Code
17101 status collapsed
17102
17103 \begin_layout Plain Layout
17104 AllowsSideways
17105 \end_layout
17106
17107 \end_inset
17108
17109  [
17110 \begin_inset Flex Code
17111 status collapsed
17112
17113 \begin_layout Plain Layout
17114
17115 \emph off
17116 0
17117 \end_layout
17118
17119 \end_inset
17120
17121 ,
17122 \begin_inset space \thinspace{}
17123 \end_inset
17124
17125
17126 \emph on
17127
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132
17133 \emph on
17134 1
17135 \end_layout
17136
17137 \end_inset
17138
17139
17140 \emph default
17141 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17142 -package 
17143 \family typewriter
17144 rotfloat
17145 \family default
17146  (sidewaysfloat).
17147  Set to 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 0
17153 \end_layout
17154
17155 \end_inset
17156
17157  if the float does not support this feature.
17158 \end_layout
17159
17160 \begin_layout Description
17161 \begin_inset Flex Code
17162 status collapsed
17163
17164 \begin_layout Plain Layout
17165 AllowsWide
17166 \end_layout
17167
17168 \end_inset
17169
17170  [
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175
17176 \emph off
17177 0
17178 \end_layout
17179
17180 \end_inset
17181
17182 ,
17183 \begin_inset space \thinspace{}
17184 \end_inset
17185
17186
17187 \emph on
17188
17189 \begin_inset Flex Code
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193
17194 \emph on
17195 1
17196 \end_layout
17197
17198 \end_inset
17199
17200
17201 \emph default
17202 ] Defines whether the float has a starred variant that spans columns in
17203  a two column paragraph.
17204  Set to 
17205 \begin_inset Flex Code
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209 0
17210 \end_layout
17211
17212 \end_inset
17213
17214  if the float does not support this feature.
17215 \end_layout
17216
17217 \begin_layout Description
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 Extension
17223 \end_layout
17224
17225 \end_inset
17226
17227  [
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 string
17233 \end_layout
17234
17235 \end_inset
17236
17237 =
17238 \begin_inset Quotes erd
17239 \end_inset
17240
17241
17242 \begin_inset Quotes erd
17243 \end_inset
17244
17245 ] The file name extension of an auxiliary file for the list of figures (or
17246  whatever).
17247  \SpecialChar LaTeX
17248  writes the captions to this file.
17249 \end_layout
17250
17251 \begin_layout Description
17252 \begin_inset Flex Code
17253 status collapsed
17254
17255 \begin_layout Plain Layout
17256 GuiName
17257 \end_layout
17258
17259 \end_inset
17260
17261  [
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 string
17267 \end_layout
17268
17269 \end_inset
17270
17271 =
17272 \begin_inset Quotes erd
17273 \end_inset
17274
17275
17276 \begin_inset Quotes erd
17277 \end_inset
17278
17279 ] The string that will be used in the menus and also for the caption.
17280  This is translated to the current language if babel is used.
17281 \end_layout
17282
17283 \begin_layout Description
17284 \begin_inset Flex Code
17285 status collapsed
17286
17287 \begin_layout Plain Layout
17288 HTML*
17289 \end_layout
17290
17291 \end_inset
17292
17293  These tags control the XHTML output.
17294  See 
17295 \begin_inset CommandInset ref
17296 LatexCommand ref
17297 reference "sec:Tags-for-XHTML"
17298
17299 \end_inset
17300
17301 .
17302 \end_layout
17303
17304 \begin_layout Description
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 IsPredefined
17310 \end_layout
17311
17312 \end_inset
17313
17314  [
17315 \emph on
17316
17317 \begin_inset Flex Code
17318 status collapsed
17319
17320 \begin_layout Plain Layout
17321 0
17322 \end_layout
17323
17324 \end_inset
17325
17326
17327 \emph default
17328 ,
17329 \begin_inset space \thinspace{}
17330 \end_inset
17331
17332
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 1
17338 \end_layout
17339
17340 \end_inset
17341
17342 ] Indicates whether the float is already defined in the document class or
17343  if instead the \SpecialChar LaTeX
17344  package 
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 float
17350 \end_layout
17351
17352 \end_inset
17353
17354  needs to be loaded to define it on-the-fly.
17355  The default is 
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 0
17361 \end_layout
17362
17363 \end_inset
17364
17365 , which means: 
17366 \begin_inset Flex Code
17367 status collapsed
17368
17369 \begin_layout Plain Layout
17370 float
17371 \end_layout
17372
17373 \end_inset
17374
17375  is used.
17376  It should be set to 
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381 1
17382 \end_layout
17383
17384 \end_inset
17385
17386  if the float is already defined by the \SpecialChar LaTeX
17387  document class.
17388 \end_layout
17389
17390 \begin_layout Description
17391 \begin_inset Flex Code
17392 status collapsed
17393
17394 \begin_layout Plain Layout
17395 ListCommand
17396 \end_layout
17397
17398 \end_inset
17399
17400  [
17401 \begin_inset Flex Code
17402 status collapsed
17403
17404 \begin_layout Plain Layout
17405 string
17406 \end_layout
17407
17408 \end_inset
17409
17410 =
17411 \begin_inset Quotes erd
17412 \end_inset
17413
17414
17415 \begin_inset Quotes erd
17416 \end_inset
17417
17418 ] The command used to generate a list of floats of this type; the leading
17419  `
17420 \backslash
17421 ' must be omitted.
17422  This 
17423 \emph on
17424 must
17425 \emph default
17426  be given if 
17427 \begin_inset Flex Code
17428 status collapsed
17429
17430 \begin_layout Plain Layout
17431 UsesFloatPkg
17432 \end_layout
17433
17434 \end_inset
17435
17436  is false, since there is no standard way to generate this command.
17437  It is ignored if 
17438 \begin_inset Flex Code
17439 status collapsed
17440
17441 \begin_layout Plain Layout
17442 UsesFloatPkg
17443 \end_layout
17444
17445 \end_inset
17446
17447  is true, since in that case there is a standard way to define the command.
17448 \end_layout
17449
17450 \begin_layout Description
17451 \begin_inset Flex Code
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 ListName
17456 \end_layout
17457
17458 \end_inset
17459
17460  [
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 string
17466 \end_layout
17467
17468 \end_inset
17469
17470 =
17471 \begin_inset Quotes erd
17472 \end_inset
17473
17474
17475 \begin_inset Quotes erd
17476 \end_inset
17477
17478 ] A title for a list of floats of this kind (list of figures, tables, or
17479  whatever).
17480  It is used for the screen label within \SpecialChar LyX
17481 , it is used by \SpecialChar LaTeX
17482  for the title and
17483  it is used as the title in the XHTML output.
17484  It will be translated to the document language.
17485 \end_layout
17486
17487 \begin_layout Description
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 NumberWithin
17493 \end_layout
17494
17495 \end_inset
17496
17497  [
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502 string
17503 \end_layout
17504
17505 \end_inset
17506
17507 =
17508 \begin_inset Quotes erd
17509 \end_inset
17510
17511
17512 \begin_inset Quotes erd
17513 \end_inset
17514
17515 ] This (optional) argument determines whether floats of this class will
17516  be numbered within some sectional unit of the document.
17517  For example, if 
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 NumberWithin
17523 \end_layout
17524
17525 \end_inset
17526
17527  is set to 
17528 \begin_inset Quotes eld
17529 \end_inset
17530
17531
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 chapter
17537 \end_layout
17538
17539 \end_inset
17540
17541
17542 \begin_inset Quotes erd
17543 \end_inset
17544
17545 , the floats will be numbered within chapters.
17546  
17547 \end_layout
17548
17549 \begin_layout Description
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 Placement
17555 \end_layout
17556
17557 \end_inset
17558
17559  [
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 string
17565 \end_layout
17566
17567 \end_inset
17568
17569 =
17570 \begin_inset Quotes erd
17571 \end_inset
17572
17573
17574 \begin_inset Quotes erd
17575 \end_inset
17576
17577 ] The default placement for the given class of floats.
17578  The string should be as in standard \SpecialChar LaTeX
17579
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 t
17585 \end_layout
17586
17587 \end_inset
17588
17589
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 b
17595 \end_layout
17596
17597 \end_inset
17598
17599
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 p
17605 \end_layout
17606
17607 \end_inset
17608
17609  and 
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 h
17615 \end_layout
17616
17617 \end_inset
17618
17619  for top, bottom, page, and here, respectively.
17620 \begin_inset Foot
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 Note that the order of these letters in the string is irrelevant, like in
17625  \SpecialChar LaTeX
17626 .
17627 \end_layout
17628
17629 \end_inset
17630
17631  On top of that there is a new type, 
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 H
17637 \end_layout
17638
17639 \end_inset
17640
17641 , which does not really correspond to a float, since it means: put it 
17642 \begin_inset Quotes eld
17643 \end_inset
17644
17645 here
17646 \begin_inset Quotes erd
17647 \end_inset
17648
17649  and nowhere else.
17650  Note however that the 
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 H
17656 \end_layout
17657
17658 \end_inset
17659
17660  specifier is special and, because of implementation details, cannot be
17661  used in non-built in float types.
17662  If you do not understand what this means, just use 
17663 \begin_inset Quotes eld
17664 \end_inset
17665
17666
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671 tbp
17672 \end_layout
17673
17674 \end_inset
17675
17676
17677 \begin_inset Quotes erd
17678 \end_inset
17679
17680 .
17681 \end_layout
17682
17683 \begin_layout Description
17684 \begin_inset Flex Code
17685 status collapsed
17686
17687 \begin_layout Plain Layout
17688 RefPrefix
17689 \end_layout
17690
17691 \end_inset
17692
17693  [
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 string
17699 \end_layout
17700
17701 \end_inset
17702
17703 ] The prefix to use when creating labels referring to floats of this type.
17704  This allows the use of formatted references.
17705  Note that you can remove any 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 RefPrefix
17711 \end_layout
17712
17713 \end_inset
17714
17715  set by a copied style by using the special value 
17716 \begin_inset Quotes eld
17717 \end_inset
17718
17719 OFF
17720 \begin_inset Quotes erd
17721 \end_inset
17722
17723 , which must be all caps.
17724 \end_layout
17725
17726 \begin_layout Description
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731 Style
17732 \end_layout
17733
17734 \end_inset
17735
17736  [
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 string
17742 \end_layout
17743
17744 \end_inset
17745
17746 =
17747 \begin_inset Quotes erd
17748 \end_inset
17749
17750
17751 \begin_inset Quotes erd
17752 \end_inset
17753
17754 ] The style used when defining the float using 
17755 \begin_inset Flex Code
17756 status collapsed
17757
17758 \begin_layout Plain Layout
17759
17760 \backslash
17761 newfloat
17762 \end_layout
17763
17764 \end_inset
17765
17766 .
17767 \end_layout
17768
17769 \begin_layout Description
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 Type
17775 \end_layout
17776
17777 \end_inset
17778
17779  [
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 string
17785 \end_layout
17786
17787 \end_inset
17788
17789 =
17790 \begin_inset Quotes erd
17791 \end_inset
17792
17793
17794 \begin_inset Quotes erd
17795 \end_inset
17796
17797 ] The 
17798 \begin_inset Quotes eld
17799 \end_inset
17800
17801 type
17802 \begin_inset Quotes erd
17803 \end_inset
17804
17805  of the new class of floats, like program or algorithm.
17806  After the appropriate 
17807 \begin_inset Flex Code
17808 status collapsed
17809
17810 \begin_layout Plain Layout
17811
17812 \backslash
17813 newfloat
17814 \end_layout
17815
17816 \end_inset
17817
17818 , commands such as 
17819 \begin_inset Flex Code
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823
17824 \backslash
17825 begin{program}
17826 \end_layout
17827
17828 \end_inset
17829
17830  or 
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835
17836 \backslash
17837 end{algorithm*}
17838 \end_layout
17839
17840 \end_inset
17841
17842  will be available.
17843 \end_layout
17844
17845 \begin_layout Description
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 UsesFloatPkg
17851 \end_layout
17852
17853 \end_inset
17854
17855  [
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860 0
17861 \end_layout
17862
17863 \end_inset
17864
17865 ,
17866 \begin_inset space \thinspace{}
17867 \end_inset
17868
17869
17870 \begin_inset Flex Code
17871 status collapsed
17872
17873 \begin_layout Plain Layout
17874
17875 \emph on
17876 1
17877 \end_layout
17878
17879 \end_inset
17880
17881 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17882  package 
17883 \begin_inset Flex Code
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887 float
17888 \end_layout
17889
17890 \end_inset
17891
17892 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17893  itself.
17894 \end_layout
17895
17896 \begin_layout Standard
17897 Note that defining a float with type 
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902
17903 \emph on
17904 type
17905 \end_layout
17906
17907 \end_inset
17908
17909  automatically defines the corresponding counter with name 
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914
17915 \emph on
17916 type
17917 \end_layout
17918
17919 \end_inset
17920
17921 .
17922 \end_layout
17923
17924 \begin_layout Subsection
17925 Flex insets and InsetLayout
17926 \begin_inset CommandInset label
17927 LatexCommand label
17928 name "subsec:Flex-insets-and"
17929
17930 \end_inset
17931
17932
17933 \end_layout
17934
17935 \begin_layout Standard
17936 Flex insets come in three different kinds: 
17937 \end_layout
17938
17939 \begin_layout Itemize
17940 character style (
17941 \begin_inset Flex Code
17942 status collapsed
17943
17944 \begin_layout Plain Layout
17945 CharStyle
17946 \end_layout
17947
17948 \end_inset
17949
17950 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17951  commands as 
17952 \begin_inset Flex Code
17953 status collapsed
17954
17955 \begin_layout Plain Layout
17956
17957 \backslash
17958 noun
17959 \end_layout
17960
17961 \end_inset
17962
17963  and 
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968
17969 \backslash
17970 code
17971 \end_layout
17972
17973 \end_inset
17974
17975 .
17976 \end_layout
17977
17978 \begin_layout Itemize
17979 user custom (
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 Custom
17985 \end_layout
17986
17987 \end_inset
17988
17989 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17990  code,
17991  footnote, and the like.
17992  An obvious example is an endnote inset, which is defined in the 
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 endnote
17998 \end_layout
17999
18000 \end_inset
18001
18002  module.
18003 \end_layout
18004
18005 \begin_layout Itemize
18006 XML elements (
18007 \begin_inset Flex Code
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011 Element
18012 \end_layout
18013
18014 \end_inset
18015
18016 ): For use with DocBook classes.
18017 \end_layout
18018
18019 \begin_layout Standard
18020 Flex insets are defined using the 
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 InsetLayout
18026 \end_layout
18027
18028 \end_inset
18029
18030  tag, which shall be explained in a moment.
18031 \end_layout
18032
18033 \begin_layout Standard
18034 The 
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 InsetLayout
18040 \end_layout
18041
18042 \end_inset
18043
18044  tag also serves another function: It can be used to customize the general
18045  layout of many different types of insets.
18046  Currently, 
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 InsetLayout
18052 \end_layout
18053
18054 \end_inset
18055
18056  can be used to customize the layout parameters for footnotes, marginal
18057  notes, note insets, \SpecialChar TeX
18058  code (ERT) insets, branches, listings, indexes, boxes,
18059  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18060 \end_layout
18061
18062 \begin_layout Standard
18063 The 
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068 InsetLayout
18069 \end_layout
18070
18071 \end_inset
18072
18073  definition must begin with a line of the form:
18074 \end_layout
18075
18076 \begin_layout LyX-Code
18077 InsetLayout <type>
18078 \end_layout
18079
18080 \begin_layout Standard
18081 Here 
18082 \begin_inset Flex Code
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 <Type>
18087 \end_layout
18088
18089 \end_inset
18090
18091  indicates the inset whose layout is being defined, and here there are four
18092  cases.
18093 \end_layout
18094
18095 \begin_layout Enumerate
18096 The layout for a pre-existing inset is being modified.
18097  In this case, can be 
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 <Type>
18103 \end_layout
18104
18105 \end_inset
18106
18107  any one of the following: 
18108 \begin_inset Flex Code
18109 status collapsed
18110
18111 \begin_layout Plain Layout
18112 Algorithm
18113 \end_layout
18114
18115 \end_inset
18116
18117
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 Branch
18123 \end_layout
18124
18125 \end_inset
18126
18127
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 Box
18133 \end_layout
18134
18135 \end_inset
18136
18137
18138 \begin_inset Flex Code
18139 status collapsed
18140
18141 \begin_layout Plain Layout
18142 Box:shaded
18143 \end_layout
18144
18145 \end_inset
18146
18147
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 Caption:Standard
18153 \end_layout
18154
18155 \end_inset
18156
18157
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162 ERT
18163 \end_layout
18164
18165 \end_inset
18166
18167
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172 Figure
18173 \end_layout
18174
18175 \end_inset
18176
18177
18178 \begin_inset Flex Code
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182 Foot
18183 \end_layout
18184
18185 \end_inset
18186
18187
18188 \begin_inset Flex Code
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 Index
18193 \end_layout
18194
18195 \end_inset
18196
18197
18198 \begin_inset Flex Code
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202 Info
18203 \end_layout
18204
18205 \end_inset
18206
18207
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 Info:menu
18213 \end_layout
18214
18215 \end_inset
18216
18217
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222 Info:shortcut
18223 \end_layout
18224
18225 \end_inset
18226
18227
18228 \begin_inset Flex Code
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232 Info:shortcuts
18233 \end_layout
18234
18235 \end_inset
18236
18237
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 Listings
18243 \end_layout
18244
18245 \end_inset
18246
18247
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 Marginal
18253 \end_layout
18254
18255 \end_inset
18256
18257
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262 Note:Comment
18263 \end_layout
18264
18265 \end_inset
18266
18267
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 Note:Note
18273 \end_layout
18274
18275 \end_inset
18276
18277
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282 Note:Greyedout
18283 \end_layout
18284
18285 \end_inset
18286
18287
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 Table
18293 \end_layout
18294
18295 \end_inset
18296
18297 , or 
18298 \begin_inset Flex Code
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 URL
18303 \end_layout
18304
18305 \end_inset
18306
18307 .
18308 \end_layout
18309
18310 \begin_layout Enumerate
18311 The layout for a Flex inset is being defined.
18312  In this case, 
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317 <Type>
18318 \end_layout
18319
18320 \end_inset
18321
18322  must be of the form 
18323 \begin_inset Quotes eld
18324 \end_inset
18325
18326
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331 Flex:<name>
18332 \end_layout
18333
18334 \end_inset
18335
18336
18337 \begin_inset Quotes erd
18338 \end_inset
18339
18340 , where 
18341 \begin_inset Flex Code
18342 status collapsed
18343
18344 \begin_layout Plain Layout
18345 name
18346 \end_layout
18347
18348 \end_inset
18349
18350  may be be any valid identifier not used by a pre-existing Flex inset.
18351  The identifier may include spaces, but in that case the whole thing must
18352  be wrapped in quotes.
18353  Note that the definition of a flex inset 
18354 \emph on
18355 must 
18356 \emph default
18357 also include a 
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 LyXType
18363 \end_layout
18364
18365 \end_inset
18366
18367  entry, declaring which type of inset it defines.
18368 \end_layout
18369
18370 \begin_layout Enumerate
18371 The layout for user specific branch is being defined.
18372  In this case, 
18373 \begin_inset Flex Code
18374 status collapsed
18375
18376 \begin_layout Plain Layout
18377 <Type>
18378 \end_layout
18379
18380 \end_inset
18381
18382  must be of the form 
18383 \begin_inset Quotes eld
18384 \end_inset
18385
18386
18387 \begin_inset Flex Code
18388 status collapsed
18389
18390 \begin_layout Plain Layout
18391 Branch:<name>
18392 \end_layout
18393
18394 \end_inset
18395
18396
18397 \begin_inset Quotes erd
18398 \end_inset
18399
18400 , where 
18401 \begin_inset Flex Code
18402 status collapsed
18403
18404 \begin_layout Plain Layout
18405 name
18406 \end_layout
18407
18408 \end_inset
18409
18410  may be be any valid identifier of branch defined in user's document.
18411  The identifier may include spaces, but in that case the whole thing must
18412  be wrapped in quotes.
18413  The main purpose of this feature is to allow \SpecialChar LaTeX
18414  wrapping around specific
18415  branches as user needs.
18416 \end_layout
18417
18418 \begin_layout Enumerate
18419 The layout of a user (or class) specific caption is being defined.
18420  In this case, 
18421 \begin_inset Flex Code
18422 status collapsed
18423
18424 \begin_layout Plain Layout
18425 <Type>
18426 \end_layout
18427
18428 \end_inset
18429
18430  must be of the form 
18431 \begin_inset Quotes eld
18432 \end_inset
18433
18434
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 Caption:<name>
18440 \end_layout
18441
18442 \end_inset
18443
18444
18445 \begin_inset Quotes erd
18446 \end_inset
18447
18448 , where 
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 name
18454 \end_layout
18455
18456 \end_inset
18457
18458  specifies the name of the caption as it appears in the menu.
18459  Have a look at the standard caption (
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464 Caption:Standard
18465 \end_layout
18466
18467 \end_inset
18468
18469 ), the specific captions of the KOMA-Script classes (
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 Caption:Above
18475 \end_layout
18476
18477 \end_inset
18478
18479
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 Caption:Below
18485 \end_layout
18486
18487 \end_inset
18488
18489 ) or the module 
18490 \family sans
18491 Multilingual
18492 \begin_inset space ~
18493 \end_inset
18494
18495 Captions
18496 \begin_inset Newline linebreak
18497 \end_inset
18498
18499
18500 \family default
18501 (
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 Caption:Bicaption
18507 \end_layout
18508
18509 \end_inset
18510
18511 ) for applications.
18512 \end_layout
18513
18514 \begin_layout Standard
18515 The 
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 InsetLayout
18521 \end_layout
18522
18523 \end_inset
18524
18525  definition can contain the following entries:
18526 \end_layout
18527
18528 \begin_layout Description
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533 AddToToc
18534 \end_layout
18535
18536 \end_inset
18537
18538  [
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 string
18544 \end_layout
18545
18546 \end_inset
18547
18548 =""] This inset will appear in the table of contents of the given type.
18549  An empty string disables.
18550  See also the OutlinerName and the IsTocCaption commands.
18551  This is only implemented for Flex insets.
18552  Default: disabled.
18553 \end_layout
18554
18555 \begin_layout Description
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 Argument
18561 \end_layout
18562
18563 \end_inset
18564
18565  [
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 int
18571 \end_layout
18572
18573 \end_inset
18574
18575 ] Defines argument number of a command\SpecialChar breakableslash
18576 environment associated with the current
18577  layout.
18578  The definition must end with 
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 EndArgument
18584 \end_layout
18585
18586 \end_inset
18587
18588 .
18589  See 
18590 \begin_inset CommandInset ref
18591 LatexCommand ref
18592 reference "subsec:Paragraph-Styles"
18593
18594 \end_inset
18595
18596  for details.
18597 \end_layout
18598
18599 \begin_layout Description
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 BabelPreamble
18605 \end_layout
18606
18607 \end_inset
18608
18609  Preamble for changing language commands; see 
18610 \begin_inset CommandInset ref
18611 LatexCommand ref
18612 reference "subsec:I18n"
18613
18614 \end_inset
18615
18616 .
18617 \end_layout
18618
18619 \begin_layout Description
18620 \begin_inset Flex Code
18621 status collapsed
18622
18623 \begin_layout Plain Layout
18624 BgColor
18625 \end_layout
18626
18627 \end_inset
18628
18629  [
18630 \begin_inset Flex Code
18631 status collapsed
18632
18633 \begin_layout Plain Layout
18634 <name>
18635 \end_layout
18636
18637 \end_inset
18638
18639 ] The color for the inset's background.
18640  See 
18641 \begin_inset CommandInset ref
18642 LatexCommand ref
18643 reference "chap:Names-of-colors"
18644
18645 \end_inset
18646
18647  for a list of the available color names.
18648 \end_layout
18649
18650 \begin_layout Description
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 ContentAsLabel
18656 \end_layout
18657
18658 \end_inset
18659
18660  [
18661 \begin_inset Flex Code
18662 status collapsed
18663
18664 \begin_layout Plain Layout
18665
18666 \emph on
18667 0
18668 \end_layout
18669
18670 \end_inset
18671
18672 ,
18673 \begin_inset space \thinspace{}
18674 \end_inset
18675
18676
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681 1
18682 \end_layout
18683
18684 \end_inset
18685
18686 ] Whether to use the content of the inset as the label, when the inset is
18687  closed.
18688  Default is false.
18689 \end_layout
18690
18691 \begin_layout Description
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 CopyStyle
18697 \end_layout
18698
18699 \end_inset
18700
18701  [
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 <type>
18707 \end_layout
18708
18709 \end_inset
18710
18711 ] As with paragraph styles, see 
18712 \begin_inset CommandInset ref
18713 LatexCommand ref
18714 reference "subsec:Paragraph-Styles"
18715
18716 \end_inset
18717
18718 .
18719  Note that you need to specify the complete type, e.
18720 \begin_inset space \thinspace{}
18721 \end_inset
18722
18723 g.
18724 \begin_inset space ~
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 CopyStyle Flex:<name>
18733 \end_layout
18734
18735 \end_inset
18736
18737 .
18738 \end_layout
18739
18740 \begin_layout Description
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 CustomPars
18746 \end_layout
18747
18748 \end_inset
18749
18750  [
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755
18756 \emph on
18757 0
18758 \end_layout
18759
18760 \end_inset
18761
18762 ,
18763 \begin_inset space \thinspace{}
18764 \end_inset
18765
18766
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 1
18772 \end_layout
18773
18774 \end_inset
18775
18776 ] Indicates whether the user may employ the Paragraph Settings dialog to
18777  customize the paragraph.
18778 \end_layout
18779
18780 \begin_layout Description
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 Decoration
18786 \end_layout
18787
18788 \end_inset
18789
18790  can be 
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 Classic
18796 \end_layout
18797
18798 \end_inset
18799
18800
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 Minimalistic
18806 \end_layout
18807
18808 \end_inset
18809
18810 , or 
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 Conglomerate
18816 \end_layout
18817
18818 \end_inset
18819
18820 , describing the rendering style used for the inset's frame and buttons.
18821  Footnotes generally use 
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 Classic
18827 \end_layout
18828
18829 \end_inset
18830
18831 , ERT insets generally 
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 Minimalistic
18837 \end_layout
18838
18839 \end_inset
18840
18841 , and character styles 
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 Conglomerate
18847 \end_layout
18848
18849 \end_inset
18850
18851 .
18852 \end_layout
18853
18854 \begin_layout Description
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 Display
18860 \end_layout
18861
18862 \end_inset
18863
18864  [
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 0
18870 \end_layout
18871
18872 \end_inset
18873
18874 ,
18875 \emph on
18876
18877 \begin_inset space \thinspace{}
18878 \end_inset
18879
18880
18881 \emph default
18882
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887
18888 \emph on
18889 1
18890 \end_layout
18891
18892 \end_inset
18893
18894 ] Only useful if 
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 LatexType
18900 \end_layout
18901
18902 \end_inset
18903
18904  is 
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 Environment
18910 \end_layout
18911
18912 \end_inset
18913
18914 .
18915  Indicates whether the environment will stand on its own in the output or
18916  will appear inline with the surrounding text.
18917  If set to false, it is supposed that the \SpecialChar LaTeX
18918  environment ignores white space
18919  (including one newline character) after the 
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924
18925 \backslash
18926 begin{
18927 \emph on
18928 LatexName
18929 \emph default
18930 }
18931 \end_layout
18932
18933 \end_inset
18934
18935  and 
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940
18941 \backslash
18942 end{
18943 \emph on
18944 LatexName
18945 \emph default
18946 }
18947 \end_layout
18948
18949 \end_inset
18950
18951  tags.
18952  Default is true.
18953 \change_inserted 731793113 1538674858
18954
18955 \end_layout
18956
18957 \begin_layout Description
18958
18959 \change_inserted 731793113 1538674891
18960 \begin_inset Flex Code
18961 status open
18962
18963 \begin_layout Plain Layout
18964
18965 \change_inserted 731793113 1538674863
18966 EditExternal
18967 \change_unchanged
18968
18969 \end_layout
18970
18971 \end_inset
18972
18973  [
18974 \emph on
18975 0
18976 \emph default
18977 ,1] Allow the contents of the inset to be edited externally (using whatever
18978  editor is defined for the document's output format).
18979 \change_unchanged
18980
18981 \end_layout
18982
18983 \begin_layout Description
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 End
18989 \end_layout
18990
18991 \end_inset
18992
18993  Required at the end of the 
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 InsetLayout
18999 \end_layout
19000
19001 \end_inset
19002
19003  declarations.
19004 \end_layout
19005
19006 \begin_layout Description
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 Font
19012 \end_layout
19013
19014 \end_inset
19015
19016  The font used for both the text body 
19017 \emph on
19018 and
19019 \emph default
19020  the label.
19021  See 
19022 \begin_inset CommandInset ref
19023 LatexCommand ref
19024 reference "subsec:Font-description"
19025
19026 \end_inset
19027
19028 .
19029  Note that defining this font automatically defines the 
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 LabelFont
19035 \end_layout
19036
19037 \end_inset
19038
19039  to the same value, so define this first and define 
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 LabelFont
19045 \end_layout
19046
19047 \end_inset
19048
19049  later if you want them to be different.
19050 \end_layout
19051
19052 \begin_layout Description
19053 \begin_inset Flex Code
19054 status collapsed
19055
19056 \begin_layout Plain Layout
19057 FixedWidthPreambleEncoding
19058 \end_layout
19059
19060 \end_inset
19061
19062  [
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067
19068 \emph on
19069 0
19070 \end_layout
19071
19072 \end_inset
19073
19074 ,
19075 \begin_inset space \thinspace{}
19076 \end_inset
19077
19078
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 1
19084 \end_layout
19085
19086 \end_inset
19087
19088 ] Force a fixed width encoding for the translated contents of 
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 BabelPreamble
19094 \end_layout
19095
19096 \end_inset
19097
19098  and 
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 LangPreamble
19104 \end_layout
19105
19106 \end_inset
19107
19108  code generated by this layout.
19109  This is needed for special \SpecialChar LaTeX
19110 -packages like 
19111 \family typewriter
19112 listings
19113 \family default
19114  that do not work with variable width encodings such as 
19115 \family sans
19116 utf8
19117 \family default
19118 .
19119  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19120  backends such as Xe\SpecialChar TeX
19121  or
19122  Lua\SpecialChar TeX
19123  are used.
19124 \end_layout
19125
19126 \begin_layout Description
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 ForceLocalFontSwitch
19132 \end_layout
19133
19134 \end_inset
19135
19136  [
19137 \begin_inset Flex Code
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141
19142 \emph on
19143 0
19144 \end_layout
19145
19146 \end_inset
19147
19148 ,
19149 \begin_inset space \thinspace{}
19150 \end_inset
19151
19152
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 1
19158 \end_layout
19159
19160 \end_inset
19161
19162 ] When using babel, always use a local font switch (
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167
19168 \backslash
19169 foreignlanguage
19170 \end_layout
19171
19172 \end_inset
19173
19174 ), never a global one (such as 
19175 \begin_inset Flex Code
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179
19180 \backslash
19181 selectlanguage
19182 \end_layout
19183
19184 \end_inset
19185
19186 ).
19187 \end_layout
19188
19189 \begin_layout Description
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 ForceLTR
19195 \end_layout
19196
19197 \end_inset
19198
19199  [
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204
19205 \emph on
19206 0
19207 \end_layout
19208
19209 \end_inset
19210
19211 ,
19212 \begin_inset space \thinspace{}
19213 \end_inset
19214
19215
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 1
19221 \end_layout
19222
19223 \end_inset
19224
19225 ] Force the 
19226 \begin_inset Quotes eld
19227 \end_inset
19228
19229 latex
19230 \begin_inset Quotes erd
19231 \end_inset
19232
19233  language, leading to Left-to-Right (Latin) output, e.
19234 \begin_inset space \thinspace{}
19235 \end_inset
19236
19237 g.
19238 \begin_inset space \space{}
19239 \end_inset
19240
19241 in \SpecialChar TeX
19242  code or URL.
19243  A kludge.
19244 \end_layout
19245
19246 \begin_layout Description
19247 \begin_inset Flex Code
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251 ForceOwnlines
19252 \end_layout
19253
19254 \end_inset
19255
19256  [
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261
19262 \emph on
19263 0
19264 \end_layout
19265
19266 \end_inset
19267
19268 ,
19269 \begin_inset space \thinspace{}
19270 \end_inset
19271
19272
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 1
19278 \end_layout
19279
19280 \end_inset
19281
19282 ] Force a a line break in the \SpecialChar LaTeX
19283  output before the inset starts and after
19284  the inset ends.
19285  This assures the inset itself is output on its own lines, for parsing purposes.
19286 \end_layout
19287
19288 \begin_layout Description
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 ForcePlain
19294 \end_layout
19295
19296 \end_inset
19297
19298  [
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303
19304 \emph on
19305 0
19306 \end_layout
19307
19308 \end_inset
19309
19310 ,
19311 \begin_inset space \thinspace{}
19312 \end_inset
19313
19314
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 1
19320 \end_layout
19321
19322 \end_inset
19323
19324 ] Indicates whether the 
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 PlainLayout
19330 \end_layout
19331
19332 \end_inset
19333
19334  should be used or, instead, the user can change the paragraph style used
19335  in the inset.
19336  Default is false.
19337 \end_layout
19338
19339 \begin_layout Description
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 FreeSpacing
19345 \end_layout
19346
19347 \end_inset
19348
19349  [
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354
19355 \emph on
19356 0
19357 \end_layout
19358
19359 \end_inset
19360
19361 ,
19362 \begin_inset space \thinspace{}
19363 \end_inset
19364
19365
19366 \begin_inset Flex Code
19367 status collapsed
19368
19369 \begin_layout Plain Layout
19370 1
19371 \end_layout
19372
19373 \end_inset
19374
19375 ] As with paragraph styles, see 
19376 \begin_inset CommandInset ref
19377 LatexCommand ref
19378 reference "subsec:Paragraph-Styles"
19379
19380 \end_inset
19381
19382 .
19383 \end_layout
19384
19385 \begin_layout Description
19386 \begin_inset Flex Code
19387 status collapsed
19388
19389 \begin_layout Plain Layout
19390 HTML*
19391 \end_layout
19392
19393 \end_inset
19394
19395  These tags control the XHTML output.
19396  See 
19397 \begin_inset CommandInset ref
19398 LatexCommand ref
19399 reference "sec:Tags-for-XHTML"
19400
19401 \end_inset
19402
19403 .
19404 \end_layout
19405
19406 \begin_layout Description
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 InToc
19412 \end_layout
19413
19414 \end_inset
19415
19416  [
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421
19422 \emph on
19423 0
19424 \end_layout
19425
19426 \end_inset
19427
19428 ,
19429 \begin_inset space \thinspace{}
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 1
19438 \end_layout
19439
19440 \end_inset
19441
19442 ] Whether to include the contents of this inset in the strings generated
19443  for the `Outline' pane for all table of contents, regardless of the AddToToc
19444  setting.
19445  One would not, for example, want the content of a footnote in a section
19446  header to be included in the TOC displayed in the outline, but one would
19447  normally want the content of a character style displayed.
19448  Default is false: not to include.
19449 \end_layout
19450
19451 \begin_layout Description
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 IsTocCaption
19457 \end_layout
19458
19459 \end_inset
19460
19461  [
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466
19467 \emph on
19468 0
19469 \end_layout
19470
19471 \end_inset
19472
19473 ,
19474 \begin_inset space \thinspace{}
19475 \end_inset
19476
19477
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 1
19483 \end_layout
19484
19485 \end_inset
19486
19487 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19488  of its contents in its item in the table of contents.
19489  Otherwise, only the label appears.
19490 \end_layout
19491
19492 \begin_layout Description
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 KeepEmpty
19498 \end_layout
19499
19500 \end_inset
19501
19502  [
19503 \emph on
19504
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509 0
19510 \end_layout
19511
19512 \end_inset
19513
19514
19515 \emph default
19516 ,
19517 \begin_inset space \thinspace{}
19518 \end_inset
19519
19520
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 1
19526 \end_layout
19527
19528 \end_inset
19529
19530 ] As with paragraph styles, see 
19531 \begin_inset CommandInset ref
19532 LatexCommand ref
19533 reference "subsec:Paragraph-Styles"
19534
19535 \end_inset
19536
19537 .
19538 \end_layout
19539
19540 \begin_layout Description
19541 \begin_inset Flex Code
19542 status collapsed
19543
19544 \begin_layout Plain Layout
19545 LabelFont
19546 \end_layout
19547
19548 \end_inset
19549
19550  The font used for the label.
19551  See 
19552 \begin_inset CommandInset ref
19553 LatexCommand ref
19554 reference "subsec:Font-description"
19555
19556 \end_inset
19557
19558 .
19559  Note that this definition can never appear before 
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 Font
19565 \end_layout
19566
19567 \end_inset
19568
19569 , lest it be ineffective.
19570 \end_layout
19571
19572 \begin_layout Description
19573 \begin_inset Flex Code
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577 LabelString
19578 \end_layout
19579
19580 \end_inset
19581
19582  [
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 string
19588 \end_layout
19589
19590 \end_inset
19591
19592 =
19593 \begin_inset Quotes erd
19594 \end_inset
19595
19596
19597 \begin_inset Quotes erd
19598 \end_inset
19599
19600 ] What will be displayed on the button or elsewhere as the inset label.
19601  Some inset types (
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606 \SpecialChar TeX
19607  code
19608 \end_layout
19609
19610 \end_inset
19611
19612  and 
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 Branch
19618 \end_layout
19619
19620 \end_inset
19621
19622 ) modify this label on the fly.
19623 \end_layout
19624
19625 \begin_layout Description
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 LangPreamble
19631 \end_layout
19632
19633 \end_inset
19634
19635  Language dependent preamble; see 
19636 \begin_inset CommandInset ref
19637 LatexCommand ref
19638 reference "subsec:I18n"
19639
19640 \end_inset
19641
19642 .
19643 \end_layout
19644
19645 \begin_layout Description
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 LatexName
19651 \end_layout
19652
19653 \end_inset
19654
19655  [
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 <name>
19661 \end_layout
19662
19663 \end_inset
19664
19665 ] The name of the corresponding \SpecialChar LaTeX
19666  stuff.
19667  Either the environment or command name.
19668 \end_layout
19669
19670 \begin_layout Description
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 LatexParam
19676 \end_layout
19677
19678 \end_inset
19679
19680  [
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685 <parameter>
19686 \end_layout
19687
19688 \end_inset
19689
19690 ] The optional parameter for the corresponding 
19691 \begin_inset Flex Code
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 LatexName
19696 \end_layout
19697
19698 \end_inset
19699
19700  stuff, including possible bracket pairs like 
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 []
19706 \end_layout
19707
19708 \end_inset
19709
19710 .
19711  This parameter cannot be changed from within \SpecialChar LyX
19712  (use 
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717 Argument
19718 \end_layout
19719
19720 \end_inset
19721
19722  for customizable parameters).
19723  It will be output as is after all \SpecialChar LaTeX
19724  
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 Argument
19730 \end_layout
19731
19732 \end_inset
19733
19734 s.
19735 \end_layout
19736
19737 \begin_layout Description
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 LatexType
19743 \end_layout
19744
19745 \end_inset
19746
19747  [
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Command, Environment, None
19753 \end_layout
19754
19755 \end_inset
19756
19757 ] How the style should be translated into \SpecialChar LaTeX
19758 .
19759 \begin_inset Foot
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 \begin_inset Flex Code
19764 status collapsed
19765
19766 \begin_layout Plain Layout
19767 LatexType
19768 \end_layout
19769
19770 \end_inset
19771
19772  is perhaps a bit misleading, since these rules apply to SGML classes too.
19773  Visit the SGML class files for specific examples.
19774 \end_layout
19775
19776 \end_inset
19777
19778
19779 \end_layout
19780
19781 \begin_deeper
19782 \begin_layout Description
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 None
19788 \end_layout
19789
19790 \end_inset
19791
19792  means nothing special
19793 \end_layout
19794
19795 \begin_layout Description
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 Command
19801 \end_layout
19802
19803 \end_inset
19804
19805  means 
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810
19811 \backslash
19812
19813 \emph on
19814 LatexName
19815 \emph default
19816 {\SpecialChar ldots
19817 }
19818 \end_layout
19819
19820 \end_inset
19821
19822
19823 \end_layout
19824
19825 \begin_layout Description
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 Environment
19831 \end_layout
19832
19833 \end_inset
19834
19835  means 
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840
19841 \backslash
19842 begin{
19843 \emph on
19844 LatexName
19845 \emph default
19846 }\SpecialChar ldots
19847
19848 \backslash
19849 end{
19850 \emph on
19851 LatexName
19852 \emph default
19853 }
19854 \end_layout
19855
19856 \end_inset
19857
19858
19859 \end_layout
19860
19861 \begin_layout Standard
19862 Putting the last few things together, the \SpecialChar LaTeX
19863  output will be either: 
19864 \end_layout
19865
19866 \begin_layout LyX-Code
19867
19868 \backslash
19869 LatexName[LatexParam]{\SpecialChar ldots
19870 }
19871 \end_layout
19872
19873 \begin_layout Standard
19874 or: 
19875 \end_layout
19876
19877 \begin_layout LyX-Code
19878
19879 \backslash
19880 begin{LatexName}[LatexParam] \SpecialChar ldots
19881  
19882 \backslash
19883 end{LatexName}
19884 \end_layout
19885
19886 \begin_layout Standard
19887 depending upon the \SpecialChar LaTeX
19888  type.
19889 \end_layout
19890
19891 \end_deeper
19892 \begin_layout Description
19893 \begin_inset Flex Code
19894 status collapsed
19895
19896 \begin_layout Plain Layout
19897 LeftDelim
19898 \end_layout
19899
19900 \end_inset
19901
19902  [
19903 \begin_inset Flex Code
19904 status collapsed
19905
19906 \begin_layout Plain Layout
19907 string
19908 \end_layout
19909
19910 \end_inset
19911
19912 ] A string that is put at the beginning of the layout content.
19913  A line break in the output can be indicated by 
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 <br/>
19919 \end_layout
19920
19921 \end_inset
19922
19923 .
19924 \end_layout
19925
19926 \begin_layout Description
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 LyxType
19932 \end_layout
19933
19934 \end_inset
19935
19936  Can be 
19937 \begin_inset Flex Code
19938 status collapsed
19939
19940 \begin_layout Plain Layout
19941 charstyle
19942 \end_layout
19943
19944 \end_inset
19945
19946
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 custom
19952 \end_layout
19953
19954 \end_inset
19955
19956
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 element
19962 \end_layout
19963
19964 \end_inset
19965
19966  or 
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 end
19972 \end_layout
19973
19974 \end_inset
19975
19976  (indicating a dummy definition ending definitions of charstyles, etc).
19977  This entry is required in and is only meaningful for Flex insets.
19978  Among other things, it determines on which menu this inset will appear.
19979  Setting 
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 LyxType
19985 \end_layout
19986
19987 \end_inset
19988
19989  to 
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 charstyle
19995 \end_layout
19996
19997 \end_inset
19998
19999  will automatically set 
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 MultiPar
20005 \end_layout
20006
20007 \end_inset
20008
20009  to false and 
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 ForcePlain
20015 \end_layout
20016
20017 \end_inset
20018
20019  to true.
20020  
20021 \begin_inset Flex Code
20022 status collapsed
20023
20024 \begin_layout Plain Layout
20025 MultiPar
20026 \end_layout
20027
20028 \end_inset
20029
20030  can be set to true, or 
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 ForcePlain
20036 \end_layout
20037
20038 \end_inset
20039
20040  to false, for 
20041 \begin_inset Flex Code
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 charstyle
20046 \end_layout
20047
20048 \end_inset
20049
20050  insets by setting it 
20051 \emph on
20052 after
20053 \emph default
20054  you set the 
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059 LyxType
20060 \end_layout
20061
20062 \end_inset
20063
20064 .
20065 \end_layout
20066
20067 \begin_layout Description
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 MultiPar
20073 \end_layout
20074
20075 \end_inset
20076
20077  [
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082
20083 \emph on
20084 0
20085 \end_layout
20086
20087 \end_inset
20088
20089 ,
20090 \begin_inset space \thinspace{}
20091 \end_inset
20092
20093
20094 \begin_inset Flex Code
20095 status collapsed
20096
20097 \begin_layout Plain Layout
20098 1
20099 \end_layout
20100
20101 \end_inset
20102
20103 ] Whether multiple paragraphs are permitted in this inset.
20104  This will also set 
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 CustomPars
20110 \end_layout
20111
20112 \end_inset
20113
20114  to the same value and 
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119 ForcePlain
20120 \end_layout
20121
20122 \end_inset
20123
20124  to the opposite value.
20125  These can be reset to other values, if they are used 
20126 \emph on
20127 after
20128 \emph default
20129  
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 MultiPar
20135 \end_layout
20136
20137 \end_inset
20138
20139 .
20140  Default is true.
20141 \end_layout
20142
20143 \begin_layout Description
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 NeedProtect
20149 \end_layout
20150
20151 \end_inset
20152
20153  [
20154 \begin_inset Flex Code
20155 status collapsed
20156
20157 \begin_layout Plain Layout
20158
20159 \emph on
20160 0
20161 \end_layout
20162
20163 \end_inset
20164
20165 ,
20166 \begin_inset space \thinspace{}
20167 \end_inset
20168
20169
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 1
20175 \end_layout
20176
20177 \end_inset
20178
20179 ] Whether fragile commands in this inset should be 
20180 \begin_inset Flex Code
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184
20185 \backslash
20186 protect
20187 \end_layout
20188
20189 \end_inset
20190
20191 'ed.
20192  (Note: This is 
20193 \emph on
20194 not
20195 \emph default
20196  whether the command should itself be protected.) Default is false.
20197 \change_inserted -712698321 1523633958
20198
20199 \end_layout
20200
20201 \begin_layout Description
20202
20203 \change_inserted -712698321 1552395786
20204 \begin_inset Flex Code
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208
20209 \change_inserted -712698321 1523633961
20210 NeedCProtect
20211 \end_layout
20212
20213 \end_inset
20214
20215  [
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220
20221 \change_inserted -712698321 1523633958
20222
20223 \emph on
20224 0
20225 \end_layout
20226
20227 \end_inset
20228
20229 ,
20230 \begin_inset space \thinspace{}
20231 \end_inset
20232
20233
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238
20239 \change_inserted -712698321 1523633958
20240 1
20241 \end_layout
20242
20243 \end_inset
20244
20245 ] This causes macros that contain this inset to be protected with 
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250
20251 \change_inserted -712698321 1523634038
20252
20253 \backslash
20254 cprotect
20255 \change_unchanged
20256
20257 \end_layout
20258
20259 \end_inset
20260
20261  (cf.
20262  package 
20263 \family sans
20264 cprotect
20265 \family default
20266 ) if necessary and thus allows (some) verbatim stuff in macros.
20267  Default is false.
20268 \end_layout
20269
20270 \begin_layout Description
20271
20272 \change_inserted -712698321 1552395824
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277
20278 \change_inserted -712698321 1552395787
20279 NeedMBoxProtect
20280 \end_layout
20281
20282 \end_inset
20283
20284  [
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289
20290 \change_inserted -712698321 1552395787
20291
20292 \emph on
20293 0
20294 \end_layout
20295
20296 \end_inset
20297
20298 ,
20299 \begin_inset space \thinspace{}
20300 \end_inset
20301
20302
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307
20308 \change_inserted -712698321 1552395787
20309 1
20310 \end_layout
20311
20312 \end_inset
20313
20314 ] Whether specific commands in this inset (such as 
20315 \begin_inset Flex Code
20316 status collapsed
20317
20318 \begin_layout Plain Layout
20319
20320 \change_inserted -712698321 1552395787
20321
20322 \backslash
20323 cite
20324 \end_layout
20325
20326 \end_inset
20327
20328  and 
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333
20334 \change_inserted -712698321 1552395787
20335
20336 \backslash
20337 ref
20338 \end_layout
20339
20340 \end_inset
20341
20342 ) should be protected in an 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347
20348 \change_inserted -712698321 1552395787
20349
20350 \backslash
20351 mbox
20352 \end_layout
20353
20354 \end_inset
20355
20356 .
20357  This is particularly needed for insets that draw on 
20358 \family sans
20359 ulem
20360 \family default
20361  or 
20362 \family sans
20363 soul
20364 \family default
20365  commands which parse their content in complex ways.
20366  Default is false.
20367 \change_unchanged
20368
20369 \end_layout
20370
20371 \begin_layout Description
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 NoInsetLayout
20377 \end_layout
20378
20379 \end_inset
20380
20381  [
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 <layout>
20387 \end_layout
20388
20389 \end_inset
20390
20391 ] Deletes an existing 
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 InsetLayout
20397 \end_layout
20398
20399 \end_inset
20400
20401 .
20402 \end_layout
20403
20404 \begin_layout Description
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409 ObsoletedBy
20410 \end_layout
20411
20412 \end_inset
20413
20414  [
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 <layout>
20420 \end_layout
20421
20422 \end_inset
20423
20424 ] Name of an 
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 InsetLayout
20430 \end_layout
20431
20432 \end_inset
20433
20434  that has replaced this 
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 InsetLayout
20440 \end_layout
20441
20442 \end_inset
20443
20444 .
20445  This is used to rename an 
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 InsetLayout
20451 \end_layout
20452
20453 \end_inset
20454
20455 , while keeping backward compatibility.
20456 \end_layout
20457
20458 \begin_layout Description
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 ParbreakIsNewline
20464 \end_layout
20465
20466 \end_inset
20467
20468  [
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473
20474 \emph on
20475 0
20476 \end_layout
20477
20478 \end_inset
20479
20480 ,
20481 \begin_inset space \thinspace{}
20482 \end_inset
20483
20484
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 1
20490 \end_layout
20491
20492 \end_inset
20493
20494 ] As with paragraph styles, see 
20495 \begin_inset CommandInset ref
20496 LatexCommand ref
20497 reference "subsec:Paragraph-Styles"
20498
20499 \end_inset
20500
20501 .
20502  Default is false.
20503 \end_layout
20504
20505 \begin_layout Description
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 PassThru
20511 \end_layout
20512
20513 \end_inset
20514
20515  [
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520
20521 \emph on
20522 0
20523 \end_layout
20524
20525 \end_inset
20526
20527 ,
20528 \begin_inset space \thinspace{}
20529 \end_inset
20530
20531
20532 \begin_inset Flex Code
20533 status collapsed
20534
20535 \begin_layout Plain Layout
20536 1
20537 \end_layout
20538
20539 \end_inset
20540
20541 ] As with paragraph styles, see 
20542 \begin_inset CommandInset ref
20543 LatexCommand ref
20544 reference "subsec:Paragraph-Styles"
20545
20546 \end_inset
20547
20548 .
20549  Default is false.
20550 \end_layout
20551
20552 \begin_layout Description
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557 Preamble
20558 \end_layout
20559
20560 \end_inset
20561
20562  As with paragraph styles, see 
20563 \begin_inset CommandInset ref
20564 LatexCommand ref
20565 reference "subsec:Paragraph-Styles"
20566
20567 \end_inset
20568
20569 .
20570 \end_layout
20571
20572 \begin_layout Description
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 RefPrefix
20578 \end_layout
20579
20580 \end_inset
20581
20582  [
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 string
20588 \end_layout
20589
20590 \end_inset
20591
20592 ] The prefix to use when creating labels referring to insets of this type.
20593  This allows the use of formatted references.
20594 \end_layout
20595
20596 \begin_layout Description
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601 Requires
20602 \end_layout
20603
20604 \end_inset
20605
20606  [
20607 \begin_inset Flex Code
20608 status collapsed
20609
20610 \begin_layout Plain Layout
20611 string
20612 \end_layout
20613
20614 \end_inset
20615
20616 ] As with paragraph styles, see 
20617 \begin_inset CommandInset ref
20618 LatexCommand ref
20619 reference "subsec:Paragraph-Styles"
20620
20621 \end_inset
20622
20623 .
20624 \end_layout
20625
20626 \begin_layout Description
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 ResetArgs
20632 \end_layout
20633
20634 \end_inset
20635
20636  [
20637 \begin_inset Flex Code
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641
20642 \emph on
20643 0
20644 \end_layout
20645
20646 \end_inset
20647
20648 ,
20649 \begin_inset space \thinspace{}
20650 \end_inset
20651
20652
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 1
20658 \end_layout
20659
20660 \end_inset
20661
20662 ] Resets the \SpecialChar LaTeX
20663  arguments of this layout (as defined via the 
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 Argument
20669 \end_layout
20670
20671 \end_inset
20672
20673  tag).
20674  This is useful if you have copied a style via 
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 CopyStyle
20680 \end_layout
20681
20682 \end_inset
20683
20684 , but you do not want to inherit its (required and optional) arguments.
20685 \end_layout
20686
20687 \begin_layout Description
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 ResetsFont
20693 \end_layout
20694
20695 \end_inset
20696
20697  [
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 0
20703 \end_layout
20704
20705 \end_inset
20706
20707 ,
20708 \begin_inset space \thinspace{}
20709 \end_inset
20710
20711
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716
20717 \emph on
20718 1
20719 \end_layout
20720
20721 \end_inset
20722
20723 ] Whether this inset should use the font of its surrounding environment
20724  or uses its own.
20725  Default is false: use the font of the surrounding environment.
20726 \end_layout
20727
20728 \begin_layout Description
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 RightDelim
20734 \end_layout
20735
20736 \end_inset
20737
20738  [
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 string
20744 \end_layout
20745
20746 \end_inset
20747
20748 ] A string that is put at the end of the layout content.
20749  A line break in the output can be indicated by 
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 <br/>
20755 \end_layout
20756
20757 \end_inset
20758
20759 .
20760 \end_layout
20761
20762 \begin_layout Description
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767 Spellcheck
20768 \end_layout
20769
20770 \end_inset
20771
20772  [
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 0
20778 \end_layout
20779
20780 \end_inset
20781
20782 ,
20783 \begin_inset space \thinspace{}
20784 \end_inset
20785
20786
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791
20792 \emph on
20793 1
20794 \end_layout
20795
20796 \end_inset
20797
20798 ] Allow spell-checking the contents of this inset.
20799  Default is true.
20800 \end_layout
20801
20802 \begin_layout Subsection
20803 Counters
20804 \begin_inset CommandInset label
20805 LatexCommand label
20806 name "subsec:Counters"
20807
20808 \end_inset
20809
20810
20811 \end_layout
20812
20813 \begin_layout Standard
20814 It is necessary to define the counters (
20815 \begin_inset Flex Noun
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 chapter
20820 \end_layout
20821
20822 \end_inset
20823
20824
20825 \begin_inset Flex Noun
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 figure
20830 \end_layout
20831
20832 \end_inset
20833
20834 , \SpecialChar ldots
20835 ) in the text class itself.
20836  The standard counters are defined in the file 
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841 stdcounters.inc
20842 \end_layout
20843
20844 \end_inset
20845
20846 , so you may have to do no more than add
20847 \end_layout
20848
20849 \begin_layout LyX-Code
20850 Input stdcounters.inc
20851 \end_layout
20852
20853 \begin_layout Standard
20854 to your layout file to get them to work.
20855  But if you want to define custom counters, then you can do so.
20856  The counter declaration must begin with:
20857 \end_layout
20858
20859 \begin_layout LyX-Code
20860 Counter CounterName
20861 \end_layout
20862
20863 \begin_layout Standard
20864 where of course `
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 CounterName
20870 \end_layout
20871
20872 \end_inset
20873
20874 ' is replaced by the name of the counter.
20875  And it must end with 
20876 \begin_inset Quotes eld
20877 \end_inset
20878
20879
20880 \begin_inset Flex Code
20881 status collapsed
20882
20883 \begin_layout Plain Layout
20884 End
20885 \end_layout
20886
20887 \end_inset
20888
20889
20890 \begin_inset Quotes erd
20891 \end_inset
20892
20893 .
20894  The following parameters can also be used:
20895 \end_layout
20896
20897 \begin_layout Description
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 InitialValue
20903 \end_layout
20904
20905 \end_inset
20906
20907  [
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 int=1
20913 \end_layout
20914
20915 \end_inset
20916
20917 ] Sets the initial value for the counter, to which it will be reset whenever
20918  that happens.
20919  Normally, one will want the default, 1.
20920 \end_layout
20921
20922 \begin_layout Description
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927 LabelString
20928 \end_layout
20929
20930 \end_inset
20931
20932  [
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 string
20938 \end_layout
20939
20940 \end_inset
20941
20942 =
20943 \begin_inset Quotes erd
20944 \end_inset
20945
20946
20947 \begin_inset Quotes erd
20948 \end_inset
20949
20950 ] When defined, this string defines how the counter is displayed.
20951  Setting this value sets 
20952 \begin_inset Flex Code
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 LabelStringAppendix
20957 \end_layout
20958
20959 \end_inset
20960
20961  to the same value.
20962  The following special constructs can be used in the string:
20963 \end_layout
20964
20965 \begin_deeper
20966 \begin_layout Itemize
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971
20972 \backslash
20973 thecounter
20974 \end_layout
20975
20976 \end_inset
20977
20978  will be replaced by the expansion of the 
20979 \begin_inset Flex Code
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 LabelString
20984 \end_layout
20985
20986 \end_inset
20987
20988  (or 
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 LabelStringAppendix
20994 \end_layout
20995
20996 \end_inset
20997
20998 ) of the counter 
20999 \begin_inset Flex Code
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003 counter
21004 \end_layout
21005
21006 \end_inset
21007
21008 .
21009  
21010 \end_layout
21011
21012 \begin_layout Itemize
21013 counter values can be expressed using \SpecialChar LaTeX
21014 -like macros
21015 \begin_inset Newline newline
21016 \end_inset
21017
21018
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023
21024 \backslash
21025
21026 \emph on
21027 numbertype
21028 \emph default
21029 {
21030 \emph on
21031 counter
21032 \emph default
21033 }
21034 \end_layout
21035
21036 \end_inset
21037
21038 , where 
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044 \emph on
21045 numbertype
21046 \end_layout
21047
21048 \end_inset
21049
21050  can be:
21051 \begin_inset Foot
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055
21056 \family roman
21057 \series medium
21058 \shape up
21059 \size normal
21060 \emph off
21061 \bar no
21062 \noun off
21063 \color none
21064 Actually, the situation is a bit more complicated: any
21065 \family default
21066 \series default
21067 \shape default
21068 \emph default
21069 \bar default
21070  
21071 \size default
21072 \emph on
21073 \noun default
21074 \color inherit
21075 numbertype
21076 \family roman
21077 \series medium
21078 \shape up
21079 \size normal
21080 \emph off
21081 \bar no
21082 \noun off
21083  other than those described below will produce arabic numerals.
21084  It would not be surprising to see this change in the future.
21085 \end_layout
21086
21087 \end_inset
21088
21089  
21090 \begin_inset Flex Code
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 arabic
21095 \end_layout
21096
21097 \end_inset
21098
21099 : 1, 2, 3,\SpecialChar ldots
21100
21101 \begin_inset Flex Code
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105 alph
21106 \end_layout
21107
21108 \end_inset
21109
21110  for lower-case letters: a, b, c, \SpecialChar ldots
21111
21112 \begin_inset Flex Code
21113 status collapsed
21114
21115 \begin_layout Plain Layout
21116 Alph
21117 \end_layout
21118
21119 \end_inset
21120
21121  for upper-case letters: A, B, C, \SpecialChar ldots
21122
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 roman
21128 \end_layout
21129
21130 \end_inset
21131
21132  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21133
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 Roman
21139 \end_layout
21140
21141 \end_inset
21142
21143  for upper-case roman numerals: I, II, III\SpecialChar ldots
21144
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 hebrew
21150 \end_layout
21151
21152 \end_inset
21153
21154  for hebrew numerals.
21155 \end_layout
21156
21157 \end_deeper
21158 \begin_layout Standard
21159 If LabelString is not defined, a default value is constructed as follows:
21160  if the counter has a master counter 
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 master
21166 \end_layout
21167
21168 \end_inset
21169
21170  (defined via 
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 Within
21176 \end_layout
21177
21178 \end_inset
21179
21180 ), the string
21181 \begin_inset Newline newline
21182 \end_inset
21183
21184
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189
21190 \backslash
21191 themaster.
21192 \backslash
21193 arabic{counter}
21194 \end_layout
21195
21196 \end_inset
21197
21198  is used; otherwise the string 
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203
21204 \backslash
21205 arabic{counter}
21206 \end_layout
21207
21208 \end_inset
21209
21210  is used.
21211 \end_layout
21212
21213 \begin_layout Description
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 LabelStringAppendix
21219 \end_layout
21220
21221 \end_inset
21222
21223  [
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 string
21229 \end_layout
21230
21231 \end_inset
21232
21233 =
21234 \begin_inset Quotes erd
21235 \end_inset
21236
21237
21238 \begin_inset Quotes erd
21239 \end_inset
21240
21241 ] Same as 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 LabelString
21247 \end_layout
21248
21249 \end_inset
21250
21251 , but for use in the Appendix.
21252 \end_layout
21253
21254 \begin_layout Description
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 PrettyFormat
21260 \end_layout
21261
21262 \end_inset
21263
21264  [
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 string
21270 \end_layout
21271
21272 \end_inset
21273
21274 =
21275 \begin_inset Quotes erd
21276 \end_inset
21277
21278
21279 \begin_inset Quotes erd
21280 \end_inset
21281
21282 ] A format for use with formatted references to this counter.
21283  For example, one might want to have references to section numbers appear
21284  as 
21285 \begin_inset Quotes eld
21286 \end_inset
21287
21288 Section 2.4
21289 \begin_inset Quotes erd
21290 \end_inset
21291
21292 .
21293  The string should contain 
21294 \begin_inset Quotes eld
21295 \end_inset
21296
21297 ##
21298 \begin_inset Quotes erd
21299 \end_inset
21300
21301 .
21302  This will be replaced by the counter number itself.
21303  So, for sections, it would be: Section ##.
21304 \end_layout
21305
21306 \begin_layout Description
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 Within
21312 \end_layout
21313
21314 \end_inset
21315
21316  [
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 string
21322 \end_layout
21323
21324 \end_inset
21325
21326 =
21327 \begin_inset Quotes erd
21328 \end_inset
21329
21330
21331 \begin_inset Quotes erd
21332 \end_inset
21333
21334 ] If this is set to the name of another counter, the present counter will
21335  be reset every time the other one is increased.
21336  For example, 
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341 subsection
21342 \end_layout
21343
21344 \end_inset
21345
21346  is numbered inside 
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 section
21352 \end_layout
21353
21354 \end_inset
21355
21356 .
21357 \end_layout
21358
21359 \begin_layout Subsection
21360 Font description
21361 \begin_inset CommandInset label
21362 LatexCommand label
21363 name "subsec:Font-description"
21364
21365 \end_inset
21366
21367
21368 \end_layout
21369
21370 \begin_layout Standard
21371 A font description looks like this:
21372 \end_layout
21373
21374 \begin_layout LyX-Code
21375 Font 
21376 \family roman
21377 \emph on
21378 or
21379 \family default
21380 \emph default
21381  LabelFont
21382 \emph on
21383  
21384 \family roman
21385 or
21386 \family default
21387 \emph default
21388  DefaultFont
21389 \end_layout
21390
21391 \begin_layout LyX-Code
21392  ...
21393 \end_layout
21394
21395 \begin_layout LyX-Code
21396 EndFont
21397 \end_layout
21398
21399 \begin_layout Standard
21400 The following commands are available:
21401 \end_layout
21402
21403 \begin_layout Description
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 Color
21409 \end_layout
21410
21411 \end_inset
21412
21413  [
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418
21419 \emph on
21420 none
21421 \end_layout
21422
21423 \end_inset
21424
21425
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 black
21431 \end_layout
21432
21433 \end_inset
21434
21435
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 white
21441 \end_layout
21442
21443 \end_inset
21444
21445
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 red
21451 \end_layout
21452
21453 \end_inset
21454
21455
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 green
21461 \end_layout
21462
21463 \end_inset
21464
21465
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 blue
21471 \end_layout
21472
21473 \end_inset
21474
21475
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 cyan
21481 \end_layout
21482
21483 \end_inset
21484
21485
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 magenta
21491 \end_layout
21492
21493 \end_inset
21494
21495
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 yellow
21501 \end_layout
21502
21503 \end_inset
21504
21505
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 brown
21511 \end_layout
21512
21513 \end_inset
21514
21515
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 darkgray
21521 \end_layout
21522
21523 \end_inset
21524
21525
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 gray
21531 \end_layout
21532
21533 \end_inset
21534
21535
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 lightgray
21541 \end_layout
21542
21543 \end_inset
21544
21545
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550 lime
21551 \end_layout
21552
21553 \end_inset
21554
21555
21556 \begin_inset Flex Code
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560 orange
21561 \end_layout
21562
21563 \end_inset
21564
21565
21566 \begin_inset Flex Code
21567 status collapsed
21568
21569 \begin_layout Plain Layout
21570 olive
21571 \end_layout
21572
21573 \end_inset
21574
21575
21576 \begin_inset Flex Code
21577 status collapsed
21578
21579 \begin_layout Plain Layout
21580 pink
21581 \end_layout
21582
21583 \end_inset
21584
21585
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 purple
21591 \end_layout
21592
21593 \end_inset
21594
21595
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 teal
21601 \end_layout
21602
21603 \end_inset
21604
21605
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 violet
21611 \end_layout
21612
21613 \end_inset
21614
21615 ]
21616 \end_layout
21617
21618 \begin_layout Description
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 Family
21624 \end_layout
21625
21626 \end_inset
21627
21628  [
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633
21634 \emph on
21635 Roman
21636 \end_layout
21637
21638 \end_inset
21639
21640
21641 \begin_inset Flex Code
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645 Sans
21646 \end_layout
21647
21648 \end_inset
21649
21650
21651 \begin_inset Flex Code
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655 Typewriter
21656 \end_layout
21657
21658 \end_inset
21659
21660 ]
21661 \end_layout
21662
21663 \begin_layout Description
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 Misc
21669 \end_layout
21670
21671 \end_inset
21672
21673  [
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 string
21679 \end_layout
21680
21681 \end_inset
21682
21683 ] Valid arguments are: 
21684 \begin_inset Flex Code
21685 status collapsed
21686
21687 \begin_layout Plain Layout
21688 emph
21689 \end_layout
21690
21691 \end_inset
21692
21693
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 noun
21699 \end_layout
21700
21701 \end_inset
21702
21703
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 strikeout
21709 \end_layout
21710
21711 \end_inset
21712
21713
21714 \begin_inset Flex Code
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 underbar
21719 \end_layout
21720
21721 \end_inset
21722
21723
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 uuline
21729 \end_layout
21730
21731 \end_inset
21732
21733
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 uwave
21739 \end_layout
21740
21741 \end_inset
21742
21743
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 no_emph
21749 \end_layout
21750
21751 \end_inset
21752
21753
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 no_noun
21759 \end_layout
21760
21761 \end_inset
21762
21763
21764 \begin_inset Flex Code
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768 no_strikeout
21769 \end_layout
21770
21771 \end_inset
21772
21773
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 no_bar
21779 \end_layout
21780
21781 \end_inset
21782
21783
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 no_uuline
21789 \end_layout
21790
21791 \end_inset
21792
21793  and 
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 no_uwave
21799 \end_layout
21800
21801 \end_inset
21802
21803 .
21804  Each of these turns on or off the corresponding attribute.
21805  For example, 
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 emph
21811 \end_layout
21812
21813 \end_inset
21814
21815  turns on emphasis, and 
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 no_emph
21821 \end_layout
21822
21823 \end_inset
21824
21825  turns it off.
21826  
21827 \begin_inset Newline newline
21828 \end_inset
21829
21830 If the latter seems puzzling, remember that the font settings for the present
21831  context are generally inherited from the surrounding context.
21832  So 
21833 \begin_inset Flex Code
21834 status collapsed
21835
21836 \begin_layout Plain Layout
21837 no_emph
21838 \end_layout
21839
21840 \end_inset
21841
21842  would turn off the emphasis that was anyway in effect, say, in a theorem
21843  environment.
21844 \end_layout
21845
21846 \begin_layout Description
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 Series
21852 \end_layout
21853
21854 \end_inset
21855
21856  [
21857 \begin_inset Flex Code
21858 status collapsed
21859
21860 \begin_layout Plain Layout
21861
21862 \emph on
21863 Medium
21864 \end_layout
21865
21866 \end_inset
21867
21868
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 Bold
21874 \end_layout
21875
21876 \end_inset
21877
21878
21879 \end_layout
21880
21881 \begin_layout Description
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886 Shape
21887 \end_layout
21888
21889 \end_inset
21890
21891  [
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896
21897 \emph on
21898 Up
21899 \end_layout
21900
21901 \end_inset
21902
21903
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 Italic
21909 \end_layout
21910
21911 \end_inset
21912
21913
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 SmallCaps
21919 \end_layout
21920
21921 \end_inset
21922
21923
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 Slanted
21929 \end_layout
21930
21931 \end_inset
21932
21933
21934 \end_layout
21935
21936 \begin_layout Description
21937 \begin_inset Flex Code
21938 status collapsed
21939
21940 \begin_layout Plain Layout
21941 Size
21942 \end_layout
21943
21944 \end_inset
21945
21946  [
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 tiny
21952 \end_layout
21953
21954 \end_inset
21955
21956
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 small
21962 \end_layout
21963
21964 \end_inset
21965
21966
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971
21972 \emph on
21973 normal
21974 \end_layout
21975
21976 \end_inset
21977
21978
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 large
21984 \end_layout
21985
21986 \end_inset
21987
21988
21989 \begin_inset Flex Code
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993 larger
21994 \end_layout
21995
21996 \end_inset
21997
21998
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003 largest
22004 \end_layout
22005
22006 \end_inset
22007
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 huge
22014 \end_layout
22015
22016 \end_inset
22017
22018
22019 \begin_inset Flex Code
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023 giant
22024 \end_layout
22025
22026 \end_inset
22027
22028 ]
22029 \end_layout
22030
22031 \begin_layout Subsection
22032 \begin_inset CommandInset label
22033 LatexCommand label
22034 name "subsec:Citation-engine-description"
22035
22036 \end_inset
22037
22038 Cite engine description
22039 \end_layout
22040
22041 \begin_layout Standard
22042 The 
22043 \begin_inset Flex Code
22044 status collapsed
22045
22046 \begin_layout Plain Layout
22047 CiteEngine
22048 \end_layout
22049
22050 \end_inset
22051
22052  blocks, as used mainly in cite engine files (see 
22053 \begin_inset CommandInset ref
22054 LatexCommand ref
22055 reference "subsec:Cite-Engine-Files"
22056 plural "false"
22057 caps "false"
22058 noprefix "false"
22059
22060 \end_inset
22061
22062 ), define the citation commands provided by a specific 
22063 \begin_inset Quotes eld
22064 \end_inset
22065
22066 cite engine
22067 \begin_inset Quotes erd
22068 \end_inset
22069
22070 .
22071  A cite engine, in \SpecialChar LyX
22072  terms, is way specific way to format citations, using
22073  numbers, author names and/or years.
22074  Currently, \SpecialChar LyX
22075  supports three such engine types, namely:
22076 \end_layout
22077
22078 \begin_layout Enumerate
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 default
22084 \end_layout
22085
22086 \end_inset
22087
22088 : the default Bib\SpecialChar TeX
22089  way to format citations, a simple numeric style (e.
22090 \begin_inset space \thinspace{}
22091 \end_inset
22092
22093 g., 
22094 \begin_inset Quotes eld
22095 \end_inset
22096
22097 [1]
22098 \begin_inset Quotes erd
22099 \end_inset
22100
22101 )
22102 \end_layout
22103
22104 \begin_layout Enumerate
22105 \begin_inset Flex Code
22106 status collapsed
22107
22108 \begin_layout Plain Layout
22109 authoryear
22110 \end_layout
22111
22112 \end_inset
22113
22114 : Harvard-styled citations using author names and publication year (e.
22115 \begin_inset space \thinspace{}
22116 \end_inset
22117
22118 g., 
22119 \begin_inset Quotes eld
22120 \end_inset
22121
22122 Smith and Miller (2017b)
22123 \begin_inset Quotes erd
22124 \end_inset
22125
22126 )
22127 \end_layout
22128
22129 \begin_layout Enumerate
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 numerical
22135 \end_layout
22136
22137 \end_inset
22138
22139 : extended numerical citations that also allow for author or title next
22140  to the number (e.
22141 \begin_inset space \thinspace{}
22142 \end_inset
22143
22144 g., 
22145 \begin_inset Quotes eld
22146 \end_inset
22147
22148 Smith and Miller [1]
22149 \begin_inset Quotes erd
22150 \end_inset
22151
22152 )
22153 \end_layout
22154
22155 \begin_layout Standard
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 CiteEngine
22161 \end_layout
22162
22163 \end_inset
22164
22165  blocks look like this:
22166 \end_layout
22167
22168 \begin_layout LyX-Code
22169 CiteEngine default
22170 \end_layout
22171
22172 \begin_layout LyX-Code
22173  cite
22174 \end_layout
22175
22176 \begin_layout LyX-Code
22177  Citep*[][]
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181  citeyearpar[][]=parencite*
22182 \end_layout
22183
22184 \begin_layout LyX-Code
22185  ...
22186 \end_layout
22187
22188 \begin_layout LyX-Code
22189 End
22190 \end_layout
22191
22192 \begin_layout Standard
22193 The tag following 
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 CiteEngine
22199 \end_layout
22200
22201 \end_inset
22202
22203  denotes the engine.
22204  The individual lines respectively define a cite command or cite command
22205  paradigm supported by this engine.
22206  The line can be as simple as a cite command that is used both to name the
22207  respective \SpecialChar LyX
22208  command and the \SpecialChar LaTeX
22209  output or more complex in order to differentiate
22210  things.
22211  The full syntax is:
22212 \end_layout
22213
22214 \begin_layout LyX-Code
22215 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22216 \end_layout
22217
22218 \begin_layout Itemize
22219 \begin_inset Flex Code
22220 status collapsed
22221
22222 \begin_layout Plain Layout
22223 LyXName
22224 \end_layout
22225
22226 \end_inset
22227
22228 : The name as used in the 
22229 \begin_inset Flex Code
22230 status collapsed
22231
22232 \begin_layout Plain Layout
22233 *.lyx
22234 \end_layout
22235
22236 \end_inset
22237
22238  file.
22239 \end_layout
22240
22241 \begin_deeper
22242 \begin_layout Standard
22243 For portability reasons, we try to use the same name for same-formatted
22244  commands in different cite packages (thus many names stem from natbib,
22245  and thus we need to differentiate a 
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250 latexcmd
22251 \end_layout
22252
22253 \end_inset
22254
22255  sometimes, if the \SpecialChar LaTeX
22256  command names differ).
22257 \end_layout
22258
22259 \end_deeper
22260 \begin_layout Itemize
22261 \begin_inset Flex Code
22262 status collapsed
22263
22264 \begin_layout Plain Layout
22265 alias
22266 \end_layout
22267
22268 \end_inset
22269
22270 : a (comma-separated) list of commands that fall back to the given 
22271 \begin_inset Flex Code
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 LyXName
22276 \end_layout
22277
22278 \end_inset
22279
22280  in the current engine.
22281  This eases the switch of citation packages and engines.
22282  The 
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 alias
22288 \end_layout
22289
22290 \end_inset
22291
22292  can be compared to 
22293 \begin_inset Flex Code
22294 status collapsed
22295
22296 \begin_layout Plain Layout
22297 ObsoletedBy
22298 \end_layout
22299
22300 \end_inset
22301
22302  in layout definitions.
22303 \end_layout
22304
22305 \begin_layout Itemize
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310 latexcmd
22311 \end_layout
22312
22313 \end_inset
22314
22315 : The actual \SpecialChar LaTeX
22316  command that is output.
22317  
22318 \end_layout
22319
22320 \begin_layout Standard
22321 \begin_inset Flex Code
22322 status collapsed
22323
22324 \begin_layout Plain Layout
22325 Alias
22326 \end_layout
22327
22328 \end_inset
22329
22330  and 
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 latexcmd
22336 \end_layout
22337
22338 \end_inset
22339
22340  are optional.
22341  If no 
22342 \begin_inset Flex Code
22343 status collapsed
22344
22345 \begin_layout Plain Layout
22346 latexcmd
22347 \end_layout
22348
22349 \end_inset
22350
22351  is given, the 
22352 \begin_inset Flex Code
22353 status collapsed
22354
22355 \begin_layout Plain Layout
22356 LyXName
22357 \end_layout
22358
22359 \end_inset
22360
22361  will be output to \SpecialChar LaTeX
22362 .
22363 \end_layout
22364
22365 \begin_layout Standard
22366 Note further:
22367 \end_layout
22368
22369 \begin_layout Itemize
22370 Capitalization indicates that the command also has a capitalized form (
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375
22376 \backslash
22377 Latexcmd
22378 \end_layout
22379
22380 \end_inset
22381
22382  vs.
22383  
22384 \begin_inset Flex Code
22385 status collapsed
22386
22387 \begin_layout Plain Layout
22388
22389 \backslash
22390 latexcmd
22391 \end_layout
22392
22393 \end_inset
22394
22395 ).
22396  These usually enforce up-casing of name prefixes (
22397 \emph on
22398 von Goethe
22399 \emph default
22400  
22401 \begin_inset Formula $\Rightarrow$
22402 \end_inset
22403
22404  
22405 \emph on
22406 Von Goethe
22407 \emph default
22408 ).
22409 \end_layout
22410
22411 \begin_layout Itemize
22412 Brackets 
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417 []
22418 \end_layout
22419
22420 \end_inset
22421
22422  indicate the number of optional arguments (there can be 0–2).
22423 \end_layout
22424
22425 \begin_layout Itemize
22426 A star 
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 *
22432 \end_layout
22433
22434 \end_inset
22435
22436  indicates there is a starred version of the command (
22437 \begin_inset Flex Code
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441
22442 \backslash
22443 latexcmd*
22444 \end_layout
22445
22446 \end_inset
22447
22448  vs.
22449  
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454
22455 \backslash
22456 latexcmd
22457 \end_layout
22458
22459 \end_inset
22460
22461 ).
22462  
22463 \end_layout
22464
22465 \begin_deeper
22466 \begin_layout Standard
22467 By default, the starred version means: Output all authors even if it should
22468  be shortened with 
22469 \begin_inset Quotes eld
22470 \end_inset
22471
22472 et al.
22473 \begin_inset Quotes erd
22474 \end_inset
22475
22476  due to the 
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 MaxCiteNames
22482 \end_layout
22483
22484 \end_inset
22485
22486  threshold.
22487 \end_layout
22488
22489 \begin_layout Standard
22490 If the star has a different meaning for a given command, it can be specified
22491  in angle brackets: 
22492 \begin_inset Flex Code
22493 status collapsed
22494
22495 \begin_layout Plain Layout
22496 <!_stardesc!_stardesctooltip>
22497 \end_layout
22498
22499 \end_inset
22500
22501 .
22502  Maximal two translatable macro keywords, marked by the prefix 
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 !_
22508 \end_layout
22509
22510 \end_inset
22511
22512 , can be given.
22513  The first points to the string that replaces the 
22514 \begin_inset Quotes eld
22515 \end_inset
22516
22517 Full aut&hor list
22518 \begin_inset Quotes erd
22519 \end_inset
22520
22521  checkbox label in the citation dialog, the second one to an optional tool
22522  tip for this checkbox.
22523  
22524 \end_layout
22525
22526 \begin_layout Standard
22527 Note that these two macros have to be defined in a 
22528 \begin_inset Flex Code
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 CiteFormat
22533 \end_layout
22534
22535 \end_inset
22536
22537  (see next section), dropping the 
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 !
22543 \end_layout
22544
22545 \end_inset
22546
22547  from the prefix, like this: 
22548 \end_layout
22549
22550 \begin_layout LyX-Code
22551 _stardesc Sta&rred command label
22552 \end_layout
22553
22554 \begin_layout LyX-Code
22555 _stardesctooltip Tooltip for the starred command checkbox.
22556 \end_layout
22557
22558 \end_deeper
22559 \begin_layout Itemize
22560 A dollar sign 
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 $
22566 \end_layout
22567
22568 \end_inset
22569
22570  indicates that this command features 
22571 \begin_inset Quotes eld
22572 \end_inset
22573
22574 qualified citation lists
22575 \begin_inset Quotes erd
22576 \end_inset
22577
22578 .
22579  This is a 
22580 \family sans
22581 Biblatex
22582 \family default
22583 -specific feature for multi-reference citations where an individual pre-
22584  and postnote can be given to each reference in the list.
22585  Please refer to the 
22586 \family sans
22587 Biblatex
22588 \family default
22589  manual for details.
22590 \change_inserted -712698321 1526898670
22591
22592 \end_layout
22593
22594 \begin_layout Standard
22595
22596 \change_inserted -712698321 1526899524
22597 If you want to add a cite command to a cite engine (e.
22598 \begin_inset space \thinspace{}
22599 \end_inset
22600
22601 g., add a specific command provided by a class), you can use 
22602 \begin_inset Flex Code
22603 status collapsed
22604
22605 \begin_layout Plain Layout
22606
22607 \change_inserted -712698321 1526898768
22608 AddToCiteEngine <engine type> \SpecialChar ldots
22609  End
22610 \change_unchanged
22611
22612 \end_layout
22613
22614 \end_inset
22615
22616 .
22617  Note that only cite commands that do not exist yet are added.
22618 \change_unchanged
22619
22620 \end_layout
22621
22622 \begin_layout Subsection
22623 \begin_inset CommandInset label
22624 LatexCommand label
22625 name "subsec:Citation-format-description"
22626
22627 \end_inset
22628
22629 Cite format description
22630 \end_layout
22631
22632 \begin_layout Standard
22633 The 
22634 \begin_inset Flex Code
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638 CiteFormat
22639 \end_layout
22640
22641 \end_inset
22642
22643  blocks are used to describe how bibliographic information should be displayed,
22644  both within \SpecialChar LyX
22645  itself (in the citation dialog and in tooltips, for example)
22646  and in XHTML output.
22647  Such a block might look like this:
22648 \end_layout
22649
22650 \begin_layout LyX-Code
22651 CiteFormat
22652 \end_layout
22653
22654 \begin_layout LyX-Code
22655  article ...
22656 \end_layout
22657
22658 \begin_layout LyX-Code
22659  book ...
22660 \end_layout
22661
22662 \begin_layout LyX-Code
22663 End
22664 \end_layout
22665
22666 \begin_layout Standard
22667 or
22668 \end_layout
22669
22670 \begin_layout LyX-Code
22671 CiteFormat
22672 \end_layout
22673
22674 \begin_layout LyX-Code
22675  cite ...
22676 \end_layout
22677
22678 \begin_layout LyX-Code
22679  citet*[][] ...
22680 \end_layout
22681
22682 \begin_layout LyX-Code
22683 End
22684 \end_layout
22685
22686 \begin_layout Standard
22687 In the first case, the individual lines define how the bibliographic information
22688  associated with an article or book, respectively, is to be displayed, and
22689  such a definition can be given for any 
22690 \begin_inset Quotes els
22691 \end_inset
22692
22693 entry type
22694 \begin_inset Quotes ers
22695 \end_inset
22696
22697  that might be present in a Bib\SpecialChar TeX
22698  file.
22699  \SpecialChar LyX
22700  defines a default format in the source code that will be used if no specific
22701  definition has been given.
22702  \SpecialChar LyX
22703  predefines several formats in the file 
22704 \begin_inset Flex Code
22705 status collapsed
22706
22707 \begin_layout Plain Layout
22708 stdciteformats.inc
22709 \end_layout
22710
22711 \end_inset
22712
22713 , which is included in most of \SpecialChar LyX
22714 's document classes.
22715 \end_layout
22716
22717 \begin_layout Standard
22718 In the second case, the lines define how a specific citation command (in
22719  the example 
22720 \begin_inset Flex Code
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724
22725 \backslash
22726 cite
22727 \end_layout
22728
22729 \end_inset
22730
22731
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736
22737 \backslash
22738 citet
22739 \end_layout
22740
22741 \end_inset
22742
22743 ) is to be displayed on the citation inset label, in the citation dialog,
22744  menu or XHTML output.
22745  \SpecialChar LyX
22746  defines such formats for the citation style variants it supports via 
22747 \family sans
22748 Document\SpecialChar menuseparator
22749 Setting\SpecialChar menuseparator
22750 Bibliography\SpecialChar ldots
22751
22752 \family default
22753  in specific 
22754 \begin_inset Flex Code
22755 status collapsed
22756
22757 \begin_layout Plain Layout
22758 *.citeengine
22759 \end_layout
22760
22761 \end_inset
22762
22763  files that are shipped with \SpecialChar LyX
22764  (see 
22765 \begin_inset CommandInset ref
22766 LatexCommand ref
22767 reference "subsec:Cite-Engine-Files"
22768 plural "false"
22769 caps "false"
22770 noprefix "false"
22771
22772 \end_inset
22773
22774 ).
22775 \end_layout
22776
22777 \begin_layout Standard
22778 The definitions use a simple language that allows Bib\SpecialChar TeX
22779  keys to be replaced
22780  with their values.
22781  Keys should be enclosed in 
22782 \begin_inset Flex Code
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 %
22787 \end_layout
22788
22789 \end_inset
22790
22791  signs, e.g.: 
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 %author%
22797 \end_layout
22798
22799 \end_inset
22800
22801 .
22802  So a simple definition might look like this:
22803 \end_layout
22804
22805 \begin_layout LyX-Code
22806 misc %author%, 
22807 \begin_inset Quotes eld
22808 \end_inset
22809
22810 %title%
22811 \begin_inset Quotes erd
22812 \end_inset
22813
22814 .
22815 \end_layout
22816
22817 \begin_layout Standard
22818 This would print the author, followed by a comma, followed by the title,
22819  in quotes, followed by a period.
22820 \end_layout
22821
22822 \begin_layout Standard
22823 Of course, sometimes you may want to print a key only if it exists.
22824  This can be done by using a conditional construction, such as: 
22825 \begin_inset Flex Code
22826 status collapsed
22827
22828 \begin_layout Plain Layout
22829 {%volume%[[vol.
22830 \begin_inset space ~
22831 \end_inset
22832
22833 %volume%]]}
22834 \end_layout
22835
22836 \end_inset
22837
22838 .
22839  This says: If the 
22840 \begin_inset Flex Code
22841 status collapsed
22842
22843 \begin_layout Plain Layout
22844 volume
22845 \end_layout
22846
22847 \end_inset
22848
22849  key exists, then print 
22850 \begin_inset Quotes eld
22851 \end_inset
22852
22853 vol.
22854 \begin_inset space ~
22855 \end_inset
22856
22857
22858 \begin_inset Quotes erd
22859 \end_inset
22860
22861  followed by the volume key.
22862  It is also possible to have an else clause in the conditional, such as:
22863 \begin_inset Newline newline
22864 \end_inset
22865
22866
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 {%author%[[%author%]][[%editor%, ed.]]}
22872 \end_layout
22873
22874 \end_inset
22875
22876 .
22877 \begin_inset Newline newline
22878 \end_inset
22879
22880 Here, the 
22881 \begin_inset Flex Code
22882 status collapsed
22883
22884 \begin_layout Plain Layout
22885 author
22886 \end_layout
22887
22888 \end_inset
22889
22890  key is printed if it exists; otherwise, the editor key is printed, followed
22891  by 
22892 \begin_inset Quotes eld
22893 \end_inset
22894
22895 ,
22896 \begin_inset space ~
22897 \end_inset
22898
22899 ed.
22900 \begin_inset Quotes erd
22901 \end_inset
22902
22903  Note that the key is again enclosed in 
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 %
22909 \end_layout
22910
22911 \end_inset
22912
22913  signs; the entire conditional is enclosed in braces; and the if and else
22914  clauses are enclosed in double brackets, 
22915 \begin_inset Quotes eld
22916 \end_inset
22917
22918
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 [[
22924 \end_layout
22925
22926 \end_inset
22927
22928
22929 \begin_inset Quotes eld
22930 \end_inset
22931
22932  and 
22933 \begin_inset Quotes eld
22934 \end_inset
22935
22936
22937 \begin_inset Flex Code
22938 status collapsed
22939
22940 \begin_layout Plain Layout
22941 ]]
22942 \end_layout
22943
22944 \end_inset
22945
22946
22947 \begin_inset Quotes erd
22948 \end_inset
22949
22950 .
22951  There must be no space between any of these.
22952 \end_layout
22953
22954 \begin_layout Standard
22955 Next to the entry keys, there are some special keys that can be used for
22956  these conditionals:
22957 \end_layout
22958
22959 \begin_layout Itemize
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 {%dialog%[[true]][[false]]}
22965 \end_layout
22966
22967 \end_inset
22968
22969 : process the 
22970 \begin_inset Quotes eld
22971 \end_inset
22972
22973 true
22974 \begin_inset Quotes erd
22975 \end_inset
22976
22977  part for dialogs and menus, the 
22978 \begin_inset Quotes eld
22979 \end_inset
22980
22981 false
22982 \begin_inset Quotes erd
22983 \end_inset
22984
22985  part for other contexts (workarea, export)
22986 \end_layout
22987
22988 \begin_layout Itemize
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 {%export%[[true]][[false]]}
22994 \end_layout
22995
22996 \end_inset
22997
22998 : process the 
22999 \begin_inset Quotes eld
23000 \end_inset
23001
23002 true
23003 \begin_inset Quotes erd
23004 \end_inset
23005
23006  part for export and menus, the 
23007 \begin_inset Quotes eld
23008 \end_inset
23009
23010 false
23011 \begin_inset Quotes erd
23012 \end_inset
23013
23014  part for other contexts (workarea, dialog)
23015 \end_layout
23016
23017 \begin_layout Itemize
23018 \begin_inset Flex Code
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022 {%next%[[true]]}
23023 \end_layout
23024
23025 \end_inset
23026
23027 : process the 
23028 \begin_inset Quotes eld
23029 \end_inset
23030
23031 true
23032 \begin_inset Quotes erd
23033 \end_inset
23034
23035  part if another item follows (e.
23036 \begin_inset space \thinspace{}
23037 \end_inset
23038
23039 g., in a citation with multiple keys)
23040 \end_layout
23041
23042 \begin_layout Itemize
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 {%second%[[true]][[false]]}
23048 \end_layout
23049
23050 \end_inset
23051
23052 : process the 
23053 \begin_inset Quotes eld
23054 \end_inset
23055
23056 true
23057 \begin_inset Quotes erd
23058 \end_inset
23059
23060  if this is the second of multiple items, else the 
23061 \begin_inset Quotes eld
23062 \end_inset
23063
23064 false
23065 \begin_inset Quotes erd
23066 \end_inset
23067
23068  part
23069 \end_layout
23070
23071 \begin_layout Itemize
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 {%ifstar%[[true]][[false]]}
23077 \end_layout
23078
23079 \end_inset
23080
23081 : process the 
23082 \begin_inset Quotes eld
23083 \end_inset
23084
23085 true
23086 \begin_inset Quotes erd
23087 \end_inset
23088
23089  part for starred citation commands (such as 
23090 \begin_inset Flex Code
23091 status collapsed
23092
23093 \begin_layout Plain Layout
23094
23095 \backslash
23096 cite*
23097 \end_layout
23098
23099 \end_inset
23100
23101 ), the false part for unstarred
23102 \end_layout
23103
23104 \begin_layout Itemize
23105 \begin_inset Flex Code
23106 status collapsed
23107
23108 \begin_layout Plain Layout
23109 {%ifentrytype:<type>%[[true]][[false]]}
23110 \end_layout
23111
23112 \end_inset
23113
23114 : process the 
23115 \begin_inset Quotes eld
23116 \end_inset
23117
23118 true
23119 \begin_inset Quotes erd
23120 \end_inset
23121
23122  if the current entry type matches 
23123 \begin_inset Flex Code
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127 <type>
23128 \end_layout
23129
23130 \end_inset
23131
23132 , else the false part (e.g., in a citation definition: 
23133 \begin_inset Flex Code
23134 status collapsed
23135
23136 \begin_layout Plain Layout
23137 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23138 \end_layout
23139
23140 \end_inset
23141
23142 )
23143 \end_layout
23144
23145 \begin_layout Itemize
23146 \begin_inset Flex Code
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150 {%ifmultiple:<authortype>%[[true]][[false]]}
23151 \end_layout
23152
23153 \end_inset
23154
23155 : process the 
23156 \begin_inset Quotes eld
23157 \end_inset
23158
23159 true
23160 \begin_inset Quotes erd
23161 \end_inset
23162
23163  if the current author type (author, editor etc.) has multiple authors, else
23164  the false part (e.g., in a bibliography definition: 
23165 \begin_inset Flex Code
23166 status collapsed
23167
23168 \begin_layout Plain Layout
23169 {%ifmultiple:editor%[[eds.]][[ed.]]}
23170 \end_layout
23171
23172 \end_inset
23173
23174 )
23175 \end_layout
23176
23177 \begin_layout Itemize
23178 \begin_inset Flex Code
23179 status collapsed
23180
23181 \begin_layout Plain Layout
23182 {%ifqualified%[[true]][[false]]}
23183 \end_layout
23184
23185 \end_inset
23186
23187 : process the 
23188 \begin_inset Quotes eld
23189 \end_inset
23190
23191 true
23192 \begin_inset Quotes erd
23193 \end_inset
23194
23195  part if the current citation is a qualified citation list (a specific 
23196 \family sans
23197 Biblatex
23198 \family default
23199  format for multi-reference citations), the false part if this is not the
23200  case.
23201 \end_layout
23202
23203 \begin_layout Standard
23204 We said that 
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209 %author%
23210 \end_layout
23211
23212 \end_inset
23213
23214  prints the author key as it is recorded in the bibliography file.
23215  This might not be what you want, since it will result in a string such
23216  as 
23217 \begin_inset Quotes eld
23218 \end_inset
23219
23220 Miller, Peter and Smith, Mary and White, Jane
23221 \begin_inset Quotes erd
23222 \end_inset
23223
23224  (since 
23225 \begin_inset Quotes eld
23226 \end_inset
23227
23228 and
23229 \begin_inset Quotes erd
23230 \end_inset
23231
23232  is used by Bib\SpecialChar TeX
23233  to delimit authors).
23234  \SpecialChar LyX
23235  therefore provides some methods to get properly formatted name lists (which
23236  will also get translated).
23237  The following keys are provided:
23238 \end_layout
23239
23240 \begin_layout Enumerate
23241 For name lists with pre- and surname, suitable for the main authors/editors
23242  of a bibliography item.
23243  The 
23244 \begin_inset Flex Code
23245 status collapsed
23246
23247 \begin_layout Plain Layout
23248 <nametype>
23249 \end_layout
23250
23251 \end_inset
23252
23253  part denotes the kind of list that is requested (e.g.
23254  
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 <nametype:author>
23260 \end_layout
23261
23262 \end_inset
23263
23264 ):
23265 \end_layout
23266
23267 \begin_deeper
23268 \begin_layout Itemize
23269 \begin_inset Flex Code
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 %abbrvnames:<nametype>%
23274 \end_layout
23275
23276 \end_inset
23277
23278 : Provides a name list which is abbreviated (with 
23279 \begin_inset Quotes eld
23280 \end_inset
23281
23282 et al.
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 ) when 
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291 MaxCiteNames
23292 \end_layout
23293
23294 \end_inset
23295
23296  is reached.
23297 \end_layout
23298
23299 \begin_layout Itemize
23300 \begin_inset Flex Code
23301 status collapsed
23302
23303 \begin_layout Plain Layout
23304 %fullnames:<nametype>%
23305 \end_layout
23306
23307 \end_inset
23308
23309 : Provides a full name list (never abbreviated with 
23310 \begin_inset Quotes eld
23311 \end_inset
23312
23313 et al.
23314 \begin_inset Quotes erd
23315 \end_inset
23316
23317 ).
23318 \end_layout
23319
23320 \begin_layout Itemize
23321 \begin_inset Flex Code
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325 %forceabbrvnames:<nametype>%
23326 \end_layout
23327
23328 \end_inset
23329
23330 : Provides a name list which is always abbreviated (with 
23331 \begin_inset Quotes eld
23332 \end_inset
23333
23334 et al.
23335 \begin_inset Quotes erd
23336 \end_inset
23337
23338 ) irrespective of 
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343 MaxCiteNames
23344 \end_layout
23345
23346 \end_inset
23347
23348 .
23349 \end_layout
23350
23351 \end_deeper
23352 \begin_layout Enumerate
23353 Alternative name lists with pre- and surname, if the order of pre- and surname
23354  inside the bibliography item differs (as in: 
23355 \begin_inset Quotes eld
23356 \end_inset
23357
23358 Miller, John: Some text, in: Mary Smith, ed.: A volume
23359 \begin_inset Quotes erd
23360 \end_inset
23361
23362 ):
23363 \end_layout
23364
23365 \begin_deeper
23366 \begin_layout Itemize
23367 \begin_inset Flex Code
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 %abbrvbynames:<nametype>%
23372 \end_layout
23373
23374 \end_inset
23375
23376 : Provides a name list which is abbreviated (with 
23377 \begin_inset Quotes eld
23378 \end_inset
23379
23380 et al.
23381 \begin_inset Quotes erd
23382 \end_inset
23383
23384 ) when 
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 MaxCiteNames
23390 \end_layout
23391
23392 \end_inset
23393
23394  is reached.
23395 \end_layout
23396
23397 \begin_layout Itemize
23398 \begin_inset Flex Code
23399 status collapsed
23400
23401 \begin_layout Plain Layout
23402 %fullbynames:<nametype>%
23403 \end_layout
23404
23405 \end_inset
23406
23407 : Provides a full name list (never abbreviated with 
23408 \begin_inset Quotes eld
23409 \end_inset
23410
23411 et al.
23412 \begin_inset Quotes erd
23413 \end_inset
23414
23415 ).
23416 \end_layout
23417
23418 \begin_layout Itemize
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 %forceabbrvbynames:<nametype>%
23424 \end_layout
23425
23426 \end_inset
23427
23428 : Provides a name list which is always abbreviated (with 
23429 \begin_inset Quotes eld
23430 \end_inset
23431
23432 et al.
23433 \begin_inset Quotes erd
23434 \end_inset
23435
23436 ) irrespective of 
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 MaxCiteNames
23442 \end_layout
23443
23444 \end_inset
23445
23446 .
23447 \end_layout
23448
23449 \end_deeper
23450 \begin_layout Enumerate
23451 And finally name lists which consist of family names only, as used in author-yea
23452 r citation labels.
23453  These do not take a 
23454 \begin_inset Flex Code
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 <nametype>
23459 \end_layout
23460
23461 \end_inset
23462
23463  part, but always return either an author list or, if this does not exist,
23464  an editor list (as common in author-year labels):
23465 \end_layout
23466
23467 \begin_deeper
23468 \begin_layout Itemize
23469 \begin_inset Flex Code
23470 status collapsed
23471
23472 \begin_layout Plain Layout
23473 %abbrvciteauthor%
23474 \end_layout
23475
23476 \end_inset
23477
23478 : Provides a name list which is abbreviated (with 
23479 \begin_inset Quotes eld
23480 \end_inset
23481
23482 et al.
23483 \begin_inset Quotes erd
23484 \end_inset
23485
23486 ) when 
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 MaxCiteNames
23492 \end_layout
23493
23494 \end_inset
23495
23496  is reached.
23497 \end_layout
23498
23499 \begin_layout Itemize
23500 \begin_inset Flex Code
23501 status collapsed
23502
23503 \begin_layout Plain Layout
23504 %fullciteauthor%
23505 \end_layout
23506
23507 \end_inset
23508
23509 : Provides a full name list (never abbreviated with 
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 et al.
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517 ).
23518 \end_layout
23519
23520 \begin_layout Itemize
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 %forceabbrvciteauthor%
23526 \end_layout
23527
23528 \end_inset
23529
23530 : Provides a name list which is always abbreviated (with 
23531 \begin_inset Quotes eld
23532 \end_inset
23533
23534 et al.
23535 \begin_inset Quotes erd
23536 \end_inset
23537
23538 ) irrespective of 
23539 \begin_inset Flex Code
23540 status collapsed
23541
23542 \begin_layout Plain Layout
23543 MaxCiteNames
23544 \end_layout
23545
23546 \end_inset
23547
23548 .
23549 \end_layout
23550
23551 \end_deeper
23552 \begin_layout Standard
23553 The order of pre- and surname in the former two lists can be adjusted by
23554  these macros:
23555 \end_layout
23556
23557 \begin_layout Itemize
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562 !firstnameform %surname%, %prename%
23563 \end_layout
23564
23565 \end_inset
23566
23567  (first author in lists of type 1)
23568 \end_layout
23569
23570 \begin_layout Itemize
23571 \begin_inset Flex Code
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 !othernameform %surname%, %prename%
23576 \end_layout
23577
23578 \end_inset
23579
23580  (other authors in lists of type 1)
23581 \end_layout
23582
23583 \begin_layout Itemize
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 !firstbynameform %prename% %surname%
23589 \end_layout
23590
23591 \end_inset
23592
23593  (first author in lists of type 2)
23594 \end_layout
23595
23596 \begin_layout Itemize
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 !otherbynameform %prename% %surname%
23602 \end_layout
23603
23604 \end_inset
23605
23606  (other authors in lists of type 2)
23607 \end_layout
23608
23609 \begin_layout Standard
23610 This allows you to configure namings like 
23611 \begin_inset Quotes eld
23612 \end_inset
23613
23614 Miller, Peter and Mary Smith: \SpecialChar ldots
23615 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23616
23617 \begin_inset Quotes erd
23618 \end_inset
23619
23620 .
23621 \end_layout
23622
23623 \begin_layout Standard
23624 There is one other piece of syntax available in definitions, which looks
23625  like this: 
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630 {!<i>!}
23631 \end_layout
23632
23633 \end_inset
23634
23635 .
23636  This defines a piece of formatting information that is to be used when
23637  creating 
23638 \begin_inset Quotes eld
23639 \end_inset
23640
23641 rich text
23642 \begin_inset Quotes erd
23643 \end_inset
23644
23645 .
23646  Obviously, we do not want to output HTML tags when writing plain text,
23647  so they should be wrapped in 
23648 \begin_inset Quotes eld
23649 \end_inset
23650
23651 {!
23652 \begin_inset Quotes erd
23653 \end_inset
23654
23655  and 
23656 \begin_inset Quotes eld
23657 \end_inset
23658
23659 !}
23660 \begin_inset Quotes erd
23661 \end_inset
23662
23663 .
23664 \end_layout
23665
23666 \begin_layout Standard
23667 Two special sorts of definitions are also possible in a 
23668 \begin_inset Flex Code
23669 status collapsed
23670
23671 \begin_layout Plain Layout
23672 CiteFormat
23673 \end_layout
23674
23675 \end_inset
23676
23677  block.
23678  An example of the first would be:
23679 \end_layout
23680
23681 \begin_layout LyX-Code
23682 !quotetitle 
23683 \begin_inset Quotes eld
23684 \end_inset
23685
23686 %title%
23687 \begin_inset Quotes erd
23688 \end_inset
23689
23690
23691 \end_layout
23692
23693 \begin_layout Standard
23694 This is an abbreviation, or macro, and it can be used by treating it as
23695  if it were a key: 
23696 \begin_inset Flex Code
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700 %!quotetitle%
23701 \end_layout
23702
23703 \end_inset
23704
23705 .
23706  \SpecialChar LyX
23707  will treat 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 %!quotetitle%
23713 \end_layout
23714
23715 \end_inset
23716
23717  exactly as it would treat its definition.
23718  So, let us issue the obvious 
23719 \emph on
23720 warning
23721 \emph default
23722 .
23723  Do not do this:
23724 \end_layout
23725
23726 \begin_layout LyX-Code
23727 !funfun %funfun%
23728 \end_layout
23729
23730 \begin_layout Standard
23731 or anything like it.
23732  \SpecialChar LyX
23733  shouldn't go into an infinite loop, but it may go into a long one before
23734  it gives up.
23735 \end_layout
23736
23737 \begin_layout Standard
23738 The second sort of special definition might look like this:
23739 \end_layout
23740
23741 \begin_layout LyX-Code
23742 B_pptext pp.
23743 \end_layout
23744
23745 \begin_layout Standard
23746 This defines a translatable piece of text, which allows relevant parts of
23747  the bibliography or citation to be translated.
23748  It can be included in a definition by treating it as a key: 
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753 %B_pptext%
23754 \end_layout
23755
23756 \end_inset
23757
23758 .
23759  Note that there are two different translation paths: All definitions starting
23760  with 
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 B_
23766 \end_layout
23767
23768 \end_inset
23769
23770 , such as in the example above, will be translated to the currently active
23771  buffer language (so the translation will match the generated document).
23772  All definitions starting with underscore only will be translated to the
23773  GUI language.
23774  This is the proper translation for strings that only occur in the dialogs
23775  or on buttons, such as this one:
23776 \end_layout
23777
23778 \begin_layout LyX-Code
23779 _addtobib Add to bibliography only.
23780 \end_layout
23781
23782 \begin_layout Standard
23783 Several of these translatable strings are predefined in 
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788 stdciteformats.inc
23789 \end_layout
23790
23791 \end_inset
23792
23793  and the diverse 
23794 \begin_inset Flex Code
23795 status collapsed
23796
23797 \begin_layout Plain Layout
23798 *.citeengine
23799 \end_layout
23800
23801 \end_inset
23802
23803  files.
23804  Note that these are not macros, in the sense just defined.
23805  They will not be expanded.
23806 \end_layout
23807
23808 \begin_layout Standard
23809 So here then is an example that uses several of these features:
23810 \begin_inset VSpace defskip
23811 \end_inset
23812
23813
23814 \end_layout
23815
23816 \begin_layout Standard
23817 \noindent
23818
23819 \family sans
23820 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23821 \end_layout
23822
23823 \begin_layout Standard
23824 \begin_inset VSpace defskip
23825 \end_inset
23826
23827 This defines a macro that prints the author, followed by a comma, if the
23828  
23829 \begin_inset Flex Code
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 author
23834 \end_layout
23835
23836 \end_inset
23837
23838  key is defined, or else prints the name of the editor, followed by the
23839  
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 B_edtext
23845 \end_layout
23846
23847 \end_inset
23848
23849  or its translation (it is by default 
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853 ed.
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857 ), if the 
23858 \begin_inset Flex Code
23859 status collapsed
23860
23861 \begin_layout Plain Layout
23862 editor
23863 \end_layout
23864
23865 \end_inset
23866
23867  key is defined.
23868  Note that this is in fact defined in 
23869 \begin_inset Flex Code
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 stdciteformats.inc
23874 \end_layout
23875
23876 \end_inset
23877
23878 , so you can use it in your own definitions, or re-definitions, if you load
23879  that file first.
23880 \end_layout
23881
23882 \begin_layout Section
23883 \begin_inset CommandInset label
23884 LatexCommand label
23885 name "sec:Tags-for-XHTML"
23886
23887 \end_inset
23888
23889 Tags for XHTML output
23890 \end_layout
23891
23892 \begin_layout Standard
23893 As with \SpecialChar LaTeX
23894  or DocBook, the format of \SpecialChar LyX
23895 's XHTML output is also controlled by
23896  layout information.
23897  In general, \SpecialChar LyX
23898  provides sensible defaults and, as mentioned earlier, it will
23899  even construct default CSS style rules from the other layout tags.
23900  For example, \SpecialChar LyX
23901  will attempt to use the information provided in the 
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 Font
23907 \end_layout
23908
23909 \end_inset
23910
23911  declaration for the Chapter style to write CSS that will appropriately
23912  format chapter headings.
23913 \end_layout
23914
23915 \begin_layout Standard
23916 In many cases, then, you may not have to do anything at all to get acceptable
23917  XHTML output for your own environments, custom insets, and so forth.
23918  But in some cases you will, and so \SpecialChar LyX
23919  provides a number of layout tags that
23920  can be used to customize the XHTML and CSS that are generated.
23921 \end_layout
23922
23923 \begin_layout Standard
23924 Note that there are two tags, 
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 HTMLPreamble
23930 \end_layout
23931
23932 \end_inset
23933
23934  and 
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 AddToHTMLPreamble
23940 \end_layout
23941
23942 \end_inset
23943
23944  that may appear outside style and inset declarations.
23945  See 
23946 \begin_inset CommandInset ref
23947 LatexCommand ref
23948 reference "subsec:General-text-class"
23949
23950 \end_inset
23951
23952  for details on these.
23953 \end_layout
23954
23955 \begin_layout Subsection
23956 \begin_inset CommandInset label
23957 LatexCommand label
23958 name "subsec:Paragraph-Style-XHTML"
23959
23960 \end_inset
23961
23962 Paragraph styles
23963 \end_layout
23964
23965 \begin_layout Standard
23966 The sort of XHTML \SpecialChar LyX
23967  outputs for a paragraph depends upon whether we are dealing
23968  with a normal paragraph, a command, or an environment, where this is itself
23969  determined by the contents of the corresponding 
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 \SpecialChar LaTeX
23975 Type
23976 \end_layout
23977
23978 \end_inset
23979
23980  tag.
23981  
23982 \end_layout
23983
23984 \begin_layout Standard
23985 For a command or normal paragraph, the output XHTML has the following form:
23986 \end_layout
23987
23988 \begin_layout LyX-Code
23989
23990 \family sans
23991 <tag attr=
23992 \begin_inset Quotes erd
23993 \end_inset
23994
23995 value
23996 \begin_inset Quotes erd
23997 \end_inset
23998
23999 >
24000 \end_layout
24001
24002 \begin_layout LyX-Code
24003
24004 \family sans
24005 <labeltag attr=
24006 \begin_inset Quotes erd
24007 \end_inset
24008
24009 value
24010 \begin_inset Quotes erd
24011 \end_inset
24012
24013 >Label</labeltag>
24014 \end_layout
24015
24016 \begin_layout LyX-Code
24017
24018 \family sans
24019 Contents of the paragraph.
24020 \end_layout
24021
24022 \begin_layout LyX-Code
24023
24024 \family sans
24025 </tag>
24026 \end_layout
24027
24028 \begin_layout Standard
24029 The label tags are of course omitted if the paragraph does not have a label.
24030 \end_layout
24031
24032 \begin_layout Standard
24033 For an environment that is not some sort of list, the XHTML takes this form:
24034 \end_layout
24035
24036 \begin_layout LyX-Code
24037
24038 \family sans
24039 <tag attr=
24040 \begin_inset Quotes erd
24041 \end_inset
24042
24043 value
24044 \begin_inset Quotes erd
24045 \end_inset
24046
24047 >
24048 \end_layout
24049
24050 \begin_layout LyX-Code
24051
24052 \family sans
24053 <itemtag attr=
24054 \begin_inset Quotes erd
24055 \end_inset
24056
24057 value
24058 \begin_inset Quotes erd
24059 \end_inset
24060
24061 ><labeltag attr=
24062 \begin_inset Quotes erd
24063 \end_inset
24064
24065 value
24066 \begin_inset Quotes erd
24067 \end_inset
24068
24069 >Environment Label</labeltag>First paragraph.</itemtag>
24070 \end_layout
24071
24072 \begin_layout LyX-Code
24073
24074 \family sans
24075 <itemtag>Second paragraph.</itemtag>
24076 \end_layout
24077
24078 \begin_layout LyX-Code
24079
24080 \family sans
24081 </tag>
24082 \end_layout
24083
24084 \begin_layout Standard
24085 Note that the label is output only for the first paragraph, as it should
24086  be for a theorem, for example.
24087  
24088 \end_layout
24089
24090 \begin_layout Standard
24091 For a list, we have one of these forms:
24092 \end_layout
24093
24094 \begin_layout LyX-Code
24095
24096 \family sans
24097 <tag attr=
24098 \begin_inset Quotes erd
24099 \end_inset
24100
24101 value
24102 \begin_inset Quotes erd
24103 \end_inset
24104
24105 >
24106 \end_layout
24107
24108 \begin_layout LyX-Code
24109
24110 \family sans
24111 <itemtag attr=
24112 \begin_inset Quotes erd
24113 \end_inset
24114
24115 value
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119 ><labeltag attr=
24120 \begin_inset Quotes erd
24121 \end_inset
24122
24123 value
24124 \begin_inset Quotes erd
24125 \end_inset
24126
24127 >List Label</labeltag>First item.</itemtag>
24128 \end_layout
24129
24130 \begin_layout LyX-Code
24131
24132 \family sans
24133 <itemtag attr=
24134 \begin_inset Quotes erd
24135 \end_inset
24136
24137 value
24138 \begin_inset Quotes erd
24139 \end_inset
24140
24141 ><labeltag attr=
24142 \begin_inset Quotes erd
24143 \end_inset
24144
24145 value
24146 \begin_inset Quotes erd
24147 \end_inset
24148
24149 >List Label</labeltag>Second item.</itemtag>
24150 \end_layout
24151
24152 \begin_layout LyX-Code
24153
24154 \family sans
24155 </tag>
24156 \end_layout
24157
24158 \begin_layout LyX-Code
24159
24160 \end_layout
24161
24162 \begin_layout LyX-Code
24163
24164 \family sans
24165 <tag attr=
24166 \begin_inset Quotes erd
24167 \end_inset
24168
24169 value
24170 \begin_inset Quotes erd
24171 \end_inset
24172
24173 >
24174 \end_layout
24175
24176 \begin_layout LyX-Code
24177
24178 \family sans
24179 <labeltag attr=
24180 \begin_inset Quotes erd
24181 \end_inset
24182
24183 value
24184 \begin_inset Quotes erd
24185 \end_inset
24186
24187 >List Label</labeltag><itemtag attr=
24188 \begin_inset Quotes erd
24189 \end_inset
24190
24191 value
24192 \begin_inset Quotes erd
24193 \end_inset
24194
24195 >First item.</itemtag>
24196 \end_layout
24197
24198 \begin_layout LyX-Code
24199
24200 \family sans
24201 <labeltag attr=
24202 \begin_inset Quotes erd
24203 \end_inset
24204
24205 value
24206 \begin_inset Quotes erd
24207 \end_inset
24208
24209 >List Label</labeltag><itemtag attr=
24210 \begin_inset Quotes erd
24211 \end_inset
24212
24213 value
24214 \begin_inset Quotes erd
24215 \end_inset
24216
24217 >Second item.</itemtag>
24218 \end_layout
24219
24220 \begin_layout LyX-Code
24221
24222 \family sans
24223 </tag>
24224 \end_layout
24225
24226 \begin_layout Standard
24227 Note the different orders of 
24228 \begin_inset Flex Code
24229 status collapsed
24230
24231 \begin_layout Plain Layout
24232 labeltag
24233 \end_layout
24234
24235 \end_inset
24236
24237  and 
24238 \begin_inset Flex Code
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242 itemtag
24243 \end_layout
24244
24245 \end_inset
24246
24247 .
24248  Which order we get depends upon the setting of 
24249 \begin_inset Flex Code
24250 status collapsed
24251
24252 \begin_layout Plain Layout
24253 HTMLLabelFirst
24254 \end_layout
24255
24256 \end_inset
24257
24258 : If 
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 HTMLLabelFirst
24264 \end_layout
24265
24266 \end_inset
24267
24268  is false (the default), you get the first of these, with the label within
24269  the item; if true, you get the second, with the label outside the item.
24270 \end_layout
24271
24272 \begin_layout Standard
24273 The specific tags and attributes output for each paragraph type can be controlle
24274 d by means of the layout tags we are about to describe.
24275  As mentioned earlier, however, \SpecialChar LyX
24276  uses sensible defaults for many of these,
24277  so you often may not need to do very much to get good XHTML output.
24278  Think of the available tags as there so you can tweak things to your liking.
24279 \end_layout
24280
24281 \begin_layout Description
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 HTMLAttr
24287 \end_layout
24288
24289 \end_inset
24290
24291  [
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 string
24297 \end_layout
24298
24299 \end_inset
24300
24301 ] Specifies attribute information to be output with the main tag.
24302  For example, 
24303 \begin_inset Quotes eld
24304 \end_inset
24305
24306
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 class=`mydiv'
24312 \end_layout
24313
24314 \end_inset
24315
24316
24317 \begin_inset Quotes erd
24318 \end_inset
24319
24320 .
24321  By default, \SpecialChar LyX
24322  will output 
24323 \begin_inset Quotes eld
24324 \end_inset
24325
24326
24327 \begin_inset Flex Code
24328 status collapsed
24329
24330 \begin_layout Plain Layout
24331 class=`layoutname'
24332 \end_layout
24333
24334 \end_inset
24335
24336
24337 \begin_inset Quotes erd
24338 \end_inset
24339
24340 , where 
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345 layoutname
24346 \end_layout
24347
24348 \end_inset
24349
24350  is the \SpecialChar LyX
24351  name of the layout, made lowercase, for example: chapter.
24352  This should 
24353 \emph on
24354 not
24355 \emph default
24356  contain any style information.
24357  Use 
24358 \begin_inset Flex Code
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362 HTMLStyle
24363 \end_layout
24364
24365 \end_inset
24366
24367  for that purpose.
24368 \end_layout
24369
24370 \begin_layout Description
24371 \begin_inset Flex Code
24372 status collapsed
24373
24374 \begin_layout Plain Layout
24375 HTMLForceCSS
24376 \end_layout
24377
24378 \end_inset
24379
24380  [
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385
24386 \emph on
24387 0
24388 \emph default
24389 ,1
24390 \end_layout
24391
24392 \end_inset
24393
24394 ] Whether to output the default CSS information \SpecialChar LyX
24395  generates for this layout,
24396  even if additional information is explicitly provided via 
24397 \begin_inset Flex Code
24398 status collapsed
24399
24400 \begin_layout Plain Layout
24401 HTMLStyle
24402 \end_layout
24403
24404 \end_inset
24405
24406 .
24407  Setting this to 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 1
24413 \end_layout
24414
24415 \end_inset
24416
24417  allows you to alter or augment the generated CSS, rather than to override
24418  it completely.
24419  Default is 
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 0
24425 \end_layout
24426
24427 \end_inset
24428
24429 .
24430 \end_layout
24431
24432 \begin_layout Description
24433 \begin_inset Flex Code
24434 status collapsed
24435
24436 \begin_layout Plain Layout
24437 HTMLItem
24438 \end_layout
24439
24440 \end_inset
24441
24442  [
24443 \begin_inset Flex Code
24444 status collapsed
24445
24446 \begin_layout Plain Layout
24447 string
24448 \end_layout
24449
24450 \end_inset
24451
24452 ] The tag to be used for individual paragraphs of environments, replacing
24453  
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 itemtag
24459 \end_layout
24460
24461 \end_inset
24462
24463  in the examples above.
24464  Defaults to 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469 div
24470 \end_layout
24471
24472 \end_inset
24473
24474 .
24475 \end_layout
24476
24477 \begin_layout Description
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482 HTMLItemAttr
24483 \end_layout
24484
24485 \end_inset
24486
24487  [
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 string
24493 \end_layout
24494
24495 \end_inset
24496
24497 ] Attributes for the item tag.
24498  Defaults to
24499 \begin_inset Newline newline
24500 \end_inset
24501
24502
24503 \begin_inset Quotes eld
24504 \end_inset
24505
24506
24507 \begin_inset Flex Code
24508 status collapsed
24509
24510 \begin_layout Plain Layout
24511 class=`layoutname_item'
24512 \end_layout
24513
24514 \end_inset
24515
24516
24517 \begin_inset Quotes erd
24518 \end_inset
24519
24520 .
24521  This should 
24522 \emph on
24523 not
24524 \emph default
24525  contain any style information.
24526  Use 
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 HTMLStyle
24532 \end_layout
24533
24534 \end_inset
24535
24536  for that purpose.
24537 \end_layout
24538
24539 \begin_layout Description
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544 HTMLLabel
24545 \end_layout
24546
24547 \end_inset
24548
24549  [
24550 \begin_inset Flex Code
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554 string
24555 \end_layout
24556
24557 \end_inset
24558
24559 ] The tag to be used for paragraph and item labels, replacing 
24560 \begin_inset Flex Code
24561 status collapsed
24562
24563 \begin_layout Plain Layout
24564 labeltag
24565 \end_layout
24566
24567 \end_inset
24568
24569  in the examples above.
24570  Defaults to 
24571 \begin_inset Flex Code
24572 status collapsed
24573
24574 \begin_layout Plain Layout
24575 span
24576 \end_layout
24577
24578 \end_inset
24579
24580 , unless 
24581 \begin_inset Flex Code
24582 status collapsed
24583
24584 \begin_layout Plain Layout
24585 LabelType
24586 \end_layout
24587
24588 \end_inset
24589
24590  is either 
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 Top_Environment
24596 \end_layout
24597
24598 \end_inset
24599
24600  or 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 Centered_Top_Environment
24606 \end_layout
24607
24608 \end_inset
24609
24610 , in which case it defaults to 
24611 \begin_inset Flex Code
24612 status collapsed
24613
24614 \begin_layout Plain Layout
24615 div
24616 \end_layout
24617
24618 \end_inset
24619
24620 .
24621 \end_layout
24622
24623 \begin_layout Description
24624 \begin_inset Flex Code
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628 HTMLLabelAttr
24629 \end_layout
24630
24631 \end_inset
24632
24633  [
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638 string
24639 \end_layout
24640
24641 \end_inset
24642
24643 ] Attributes for the label tag.
24644  Defaults to
24645 \begin_inset Newline newline
24646 \end_inset
24647
24648
24649 \begin_inset Quotes eld
24650 \end_inset
24651
24652
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 class=`layoutname_label'
24658 \end_layout
24659
24660 \end_inset
24661
24662
24663 \begin_inset Quotes erd
24664 \end_inset
24665
24666 .
24667  This should 
24668 \emph on
24669 not
24670 \emph default
24671  contain any style information.
24672  Use 
24673 \begin_inset Flex Code
24674 status collapsed
24675
24676 \begin_layout Plain Layout
24677 HTMLStyle
24678 \end_layout
24679
24680 \end_inset
24681
24682  for that purpose.
24683 \end_layout
24684
24685 \begin_layout Description
24686 \begin_inset Flex Code
24687 status collapsed
24688
24689 \begin_layout Plain Layout
24690 HTMLLabelFirst
24691 \end_layout
24692
24693 \end_inset
24694
24695  [
24696 \begin_inset Flex Code
24697 status collapsed
24698
24699 \begin_layout Plain Layout
24700
24701 \emph on
24702 0
24703 \emph default
24704 ,1
24705 \end_layout
24706
24707 \end_inset
24708
24709 ] Meaningful only for list-like environments, this tag controls whether
24710  the label tag is output before or inside the item tag.
24711  This is used, for example, in the description environment, where we want
24712  `
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717 <dt>\SpecialChar ldots
24718 </dt><dd>\SpecialChar ldots
24719 </dd>
24720 \end_layout
24721
24722 \end_inset
24723
24724 .
24725  Default is 
24726 \begin_inset Flex Code
24727 status collapsed
24728
24729 \begin_layout Plain Layout
24730 0
24731 \end_layout
24732
24733 \end_inset
24734
24735 : The label tag is output inside the item tag.
24736 \end_layout
24737
24738 \begin_layout Description
24739 \begin_inset Flex Code
24740 status collapsed
24741
24742 \begin_layout Plain Layout
24743 HTMLPreamble
24744 \end_layout
24745
24746 \end_inset
24747
24748  Information to be output in the 
24749 \begin_inset Flex Code
24750 status collapsed
24751
24752 \begin_layout Plain Layout
24753 <head>
24754 \end_layout
24755
24756 \end_inset
24757
24758  section when this style is used.
24759  This might, for example, be used to include a 
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 <script>
24765 \end_layout
24766
24767 \end_inset
24768
24769  block defining an 
24770 \begin_inset Flex Code
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774 onclick
24775 \end_layout
24776
24777 \end_inset
24778
24779  handler.
24780 \end_layout
24781
24782 \begin_layout Description
24783 \begin_inset Flex Code
24784 status collapsed
24785
24786 \begin_layout Plain Layout
24787 HTMLStyle
24788 \end_layout
24789
24790 \end_inset
24791
24792  CSS style information to be included when this style is used.
24793  Note that this will automatically be wrapped in a layout-generated 
24794 \begin_inset Flex Code
24795 status collapsed
24796
24797 \begin_layout Plain Layout
24798 <style>
24799 \end_layout
24800
24801 \end_inset
24802
24803  block, so only the CSS itself need be included.
24804  Must end with 
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 EndHTMLStyle
24810 \end_layout
24811
24812 \end_inset
24813
24814 .
24815 \end_layout
24816
24817 \begin_layout Description
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822 HTMLTag
24823 \end_layout
24824
24825 \end_inset
24826
24827  [
24828 \begin_inset Flex Code
24829 status collapsed
24830
24831 \begin_layout Plain Layout
24832 string
24833 \end_layout
24834
24835 \end_inset
24836
24837 ] The tag to be used for the main label, replacing 
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 tag
24843 \end_layout
24844
24845 \end_inset
24846
24847  in the examples above.
24848  Defaults to 
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853 div
24854 \end_layout
24855
24856 \end_inset
24857
24858 .
24859 \end_layout
24860
24861 \begin_layout Description
24862 \begin_inset Flex Code
24863 status collapsed
24864
24865 \begin_layout Plain Layout
24866 HTMLTitle
24867 \end_layout
24868
24869 \end_inset
24870
24871  [
24872 \begin_inset Flex Code
24873 status collapsed
24874
24875 \begin_layout Plain Layout
24876
24877 \emph on
24878 0
24879 \emph default
24880 ,1
24881 \end_layout
24882
24883 \end_inset
24884
24885 ] Marks this style as the one to be used to generate the 
24886 \begin_inset Flex Code
24887 status collapsed
24888
24889 \begin_layout Plain Layout
24890 <title>
24891 \end_layout
24892
24893 \end_inset
24894
24895  tag for the XHTML file.
24896  By default, it is false.
24897  The 
24898 \begin_inset Flex Code
24899 status collapsed
24900
24901 \begin_layout Plain Layout
24902 stdtitle.inc
24903 \end_layout
24904
24905 \end_inset
24906
24907  file sets it to true for the 
24908 \begin_inset Flex Code
24909 status collapsed
24910
24911 \begin_layout Plain Layout
24912 title
24913 \end_layout
24914
24915 \end_inset
24916
24917  environment.
24918  
24919 \end_layout
24920
24921 \begin_layout Subsection
24922 InsetLayout XHTML
24923 \end_layout
24924
24925 \begin_layout Standard
24926 The XHTML output of insets can also be controlled by information in layout
24927  files.
24928 \begin_inset Foot
24929 status collapsed
24930
24931 \begin_layout Plain Layout
24932 At present, this is true only for 
24933 \begin_inset Quotes eld
24934 \end_inset
24935
24936 text
24937 \begin_inset Quotes erd
24938 \end_inset
24939
24940  insets (insets you can type into) and is not true for 
24941 \begin_inset Quotes eld
24942 \end_inset
24943
24944 command
24945 \begin_inset Quotes erd
24946 \end_inset
24947
24948  insets (insets that are associated with dialog boxes).
24949 \end_layout
24950
24951 \end_inset
24952
24953  Here, too, \SpecialChar LyX
24954  tries to provide sensible defaults, and it constructs default
24955  CSS style rules.
24956  But everything can be customized.
24957 \end_layout
24958
24959 \begin_layout Standard
24960 The XHTML \SpecialChar LyX
24961  outputs for an inset has the following form:
24962 \end_layout
24963
24964 \begin_layout LyX-Code
24965 <tag attr=
24966 \begin_inset Quotes erd
24967 \end_inset
24968
24969 value
24970 \begin_inset Quotes erd
24971 \end_inset
24972
24973 >
24974 \end_layout
24975
24976 \begin_layout LyX-Code
24977 <labeltag>Label</labeltag>
24978 \end_layout
24979
24980 \begin_layout LyX-Code
24981 <innertag attr=
24982 \begin_inset Quotes erd
24983 \end_inset
24984
24985 value
24986 \begin_inset Quotes erd
24987 \end_inset
24988
24989 >Contents of the inset.</innertag>
24990 \end_layout
24991
24992 \begin_layout LyX-Code
24993 </tag>
24994 \end_layout
24995
24996 \begin_layout Standard
24997 If the inset permits multiple paragraphs—that is, if 
24998 \begin_inset Flex Code
24999 status collapsed
25000
25001 \begin_layout Plain Layout
25002 MultiPar
25003 \end_layout
25004
25005 \end_inset
25006
25007  is true—then the contents of the inset will itself be output as paragraphs
25008  formatted according to the styles used for those paragraphs (standard,
25009  quote, and the like).
25010  The label tag is of course omitted if the paragraph does not have a label
25011  and, at present, is always 
25012 \begin_inset Flex Code
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016 span
25017 \end_layout
25018
25019 \end_inset
25020
25021 .
25022  The inner tag is optional and, by default, does not appear.
25023 \end_layout
25024
25025 \begin_layout Standard
25026 The specific tags and attributes output for each inset can be controlled
25027  by means of the following layout tags.
25028 \end_layout
25029
25030 \begin_layout Description
25031 \begin_inset Flex Code
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035 HTMLAttr
25036 \end_layout
25037
25038 \end_inset
25039
25040  [
25041 \begin_inset Flex Code
25042 status collapsed
25043
25044 \begin_layout Plain Layout
25045 string
25046 \end_layout
25047
25048 \end_inset
25049
25050 ] Specifies attribute information to be output with the main tag.
25051  For example, 
25052 \begin_inset Quotes eld
25053 \end_inset
25054
25055
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 class=`myinset' onclick=`\SpecialChar ldots
25061 '
25062 \end_layout
25063
25064 \end_inset
25065
25066
25067 \begin_inset Quotes erd
25068 \end_inset
25069
25070 .
25071  By default, \SpecialChar LyX
25072  will output 
25073 \begin_inset Quotes eld
25074 \end_inset
25075
25076
25077 \begin_inset Flex Code
25078 status collapsed
25079
25080 \begin_layout Plain Layout
25081 class=`insetname'
25082 \end_layout
25083
25084 \end_inset
25085
25086
25087 \begin_inset Quotes erd
25088 \end_inset
25089
25090 , where 
25091 \begin_inset Flex Code
25092 status collapsed
25093
25094 \begin_layout Plain Layout
25095 insetname
25096 \end_layout
25097
25098 \end_inset
25099
25100  is the \SpecialChar LyX
25101  name of the inset, made lowercase and with non-alphanumeric characters
25102  converted to underscores, for example: footnote.
25103 \end_layout
25104
25105 \begin_layout Description
25106 \begin_inset Flex Code
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110 HTMLForceCSS
25111 \end_layout
25112
25113 \end_inset
25114
25115  [
25116 \begin_inset Flex Code
25117 status collapsed
25118
25119 \begin_layout Plain Layout
25120
25121 \emph on
25122 0
25123 \emph default
25124 ,1
25125 \end_layout
25126
25127 \end_inset
25128
25129 ] Whether to output the default CSS information \SpecialChar LyX
25130  generates for this layout,
25131  even if additional information is explicitly provided via 
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 HTMLStyle
25137 \end_layout
25138
25139 \end_inset
25140
25141 .
25142  Setting this to 
25143 \begin_inset Flex Code
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 1
25148 \end_layout
25149
25150 \end_inset
25151
25152  allows you to alter or augment the generated CSS, rather than to override
25153  it completely.
25154  Default is 0.
25155 \end_layout
25156
25157 \begin_layout Description
25158 \begin_inset Flex Code
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162 HTMLInnerAttr
25163 \end_layout
25164
25165 \end_inset
25166
25167  [
25168 \begin_inset Flex Code
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 string
25173 \end_layout
25174
25175 \end_inset
25176
25177 ] Attributes for the inner tag.
25178  Defaults to
25179 \begin_inset Newline newline
25180 \end_inset
25181
25182
25183 \begin_inset Quotes eld
25184 \end_inset
25185
25186
25187 \begin_inset Flex Code
25188 status collapsed
25189
25190 \begin_layout Plain Layout
25191 class=`insetname_inner'
25192 \end_layout
25193
25194 \end_inset
25195
25196
25197 \begin_inset Quotes erd
25198 \end_inset
25199
25200 .
25201 \end_layout
25202
25203 \begin_layout Description
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 HTMLInnerTag
25209 \end_layout
25210
25211 \end_inset
25212
25213  [
25214 \begin_inset Flex Code
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218 string
25219 \end_layout
25220
25221 \end_inset
25222
25223 ] The inner tag, replacing 
25224 \begin_inset Flex Code
25225 status collapsed
25226
25227 \begin_layout Plain Layout
25228 innertag
25229 \end_layout
25230
25231 \end_inset
25232
25233  in the examples above.
25234  By default, there is none.
25235 \end_layout
25236
25237 \begin_layout Description
25238 \begin_inset Flex Code
25239 status collapsed
25240
25241 \begin_layout Plain Layout
25242 HTMLIsBlock
25243 \end_layout
25244
25245 \end_inset
25246
25247  [
25248 \begin_inset Flex Code
25249 status collapsed
25250
25251 \begin_layout Plain Layout
25252 0,
25253 \emph on
25254 1
25255 \end_layout
25256
25257 \end_inset
25258
25259 ] Whether this inset represents a standalone block of text (such as a footnote)
25260  or instead represents material that is included in the surrounding text
25261  (such as a branch).
25262  Defaults to 1.
25263 \end_layout
25264
25265 \begin_layout Description
25266 \begin_inset Flex Code
25267 status collapsed
25268
25269 \begin_layout Plain Layout
25270 HTMLLabel
25271 \end_layout
25272
25273 \end_inset
25274
25275  [
25276 \begin_inset Flex Code
25277 status collapsed
25278
25279 \begin_layout Plain Layout
25280 string
25281 \end_layout
25282
25283 \end_inset
25284
25285 ] A label for this inset, possibly including a reference to a counter.
25286  For example, for footnote, it might be: 
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291
25292 \backslash
25293 arabic{footnote}
25294 \end_layout
25295
25296 \end_inset
25297
25298 .
25299  This is optional, and there is no default.
25300 \end_layout
25301
25302 \begin_layout Description
25303 \begin_inset Flex Code
25304 status collapsed
25305
25306 \begin_layout Plain Layout
25307 HTMLPreamble
25308 \end_layout
25309
25310 \end_inset
25311
25312  Information to be output in the 
25313 \begin_inset Flex Code
25314 status collapsed
25315
25316 \begin_layout Plain Layout
25317 <head>
25318 \end_layout
25319
25320 \end_inset
25321
25322  section when this style is used.
25323  This might, for example, be used to include a 
25324 \begin_inset Flex Code
25325 status collapsed
25326
25327 \begin_layout Plain Layout
25328 <script>
25329 \end_layout
25330
25331 \end_inset
25332
25333  block defining an 
25334 \begin_inset Flex Code
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338 onclick
25339 \end_layout
25340
25341 \end_inset
25342
25343  handler.
25344 \end_layout
25345
25346 \begin_layout Description
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351 HTMLStyle
25352 \end_layout
25353
25354 \end_inset
25355
25356  CSS style information to be included when this style is used.
25357  Note that this will automatically be wrapped in a layout-generated 
25358 \begin_inset Flex Code
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 <style>
25363 \end_layout
25364
25365 \end_inset
25366
25367  block, so only the CSS itself need be included.
25368 \end_layout
25369
25370 \begin_layout Description
25371 \begin_inset Flex Code
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 HTMLTag
25376 \end_layout
25377
25378 \end_inset
25379
25380  [
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 string
25386 \end_layout
25387
25388 \end_inset
25389
25390 ] The tag to be used for the main label, replacing 
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395 tag
25396 \end_layout
25397
25398 \end_inset
25399
25400  in the examples above.
25401  The default depends upon the setting of 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 MultiPar
25407 \end_layout
25408
25409 \end_inset
25410
25411 : If 
25412 \begin_inset Flex Code
25413 status collapsed
25414
25415 \begin_layout Plain Layout
25416 MultiPar
25417 \end_layout
25418
25419 \end_inset
25420
25421  is true, the default is 
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 div
25427 \end_layout
25428
25429 \end_inset
25430
25431 ; if it is false, the default is 
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 span
25437 \end_layout
25438
25439 \end_inset
25440
25441 .
25442 \end_layout
25443
25444 \begin_layout Subsection
25445 Float XHTML
25446 \end_layout
25447
25448 \begin_layout Standard
25449 The XHTML output for floats too can be controlled by layout information.
25450  The output has the following form:
25451 \end_layout
25452
25453 \begin_layout LyX-Code
25454 <tag attr=
25455 \begin_inset Quotes erd
25456 \end_inset
25457
25458 value
25459 \begin_inset Quotes erd
25460 \end_inset
25461
25462 >
25463 \end_layout
25464
25465 \begin_layout LyX-Code
25466 Contents of the float.
25467 \end_layout
25468
25469 \begin_layout LyX-Code
25470 </tag>
25471 \end_layout
25472
25473 \begin_layout Standard
25474 The caption, if there is one, is a separate inset and will be output as
25475  such.
25476  Its appearance can be controlled via the InsetLayout for caption insets.
25477  
25478 \end_layout
25479
25480 \begin_layout Description
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 HTMLAttr
25486 \end_layout
25487
25488 \end_inset
25489
25490  [
25491 \begin_inset Flex Code
25492 status collapsed
25493
25494 \begin_layout Plain Layout
25495 string
25496 \end_layout
25497
25498 \end_inset
25499
25500 ] Specifies attribute information to be output with the main tag.
25501  For example, 
25502 \begin_inset Quotes eld
25503 \end_inset
25504
25505
25506 \begin_inset Flex Code
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510 class=`myfloat' onclick=`\SpecialChar ldots
25511 '
25512 \end_layout
25513
25514 \end_inset
25515
25516
25517 \begin_inset Quotes erd
25518 \end_inset
25519
25520 .
25521  By default, \SpecialChar LyX
25522  will output 
25523 \begin_inset Quotes eld
25524 \end_inset
25525
25526
25527 \begin_inset Flex Code
25528 status collapsed
25529
25530 \begin_layout Plain Layout
25531 class=`float float-floattype'
25532 \end_layout
25533
25534 \end_inset
25535
25536
25537 \begin_inset Quotes erd
25538 \end_inset
25539
25540 , where 
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 floattype
25546 \end_layout
25547
25548 \end_inset
25549
25550  is \SpecialChar LyX
25551 's name for this type of float, as determined by the float declaration
25552  (see 
25553 \begin_inset CommandInset ref
25554 LatexCommand ref
25555 reference "subsec:Floats"
25556
25557 \end_inset
25558
25559 ), though made lowercase and with non-alphanumeric characters converted
25560  to underscores, for example: float-table.
25561 \end_layout
25562
25563 \begin_layout Description
25564 \begin_inset Flex Code
25565 status collapsed
25566
25567 \begin_layout Plain Layout
25568 HTMLStyle
25569 \end_layout
25570
25571 \end_inset
25572
25573  CSS style information to be included when this float is used.
25574  Note that this will automatically be wrapped in a layout-generated 
25575 \begin_inset Flex Code
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579 <style>
25580 \end_layout
25581
25582 \end_inset
25583
25584  block, so only the CSS itself need be included.
25585 \end_layout
25586
25587 \begin_layout Description
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 HTMLTag
25593 \end_layout
25594
25595 \end_inset
25596
25597  [
25598 \begin_inset Flex Code
25599 status collapsed
25600
25601 \begin_layout Plain Layout
25602 string
25603 \end_layout
25604
25605 \end_inset
25606
25607 ] The tag to be used for this float, replacing 
25608 \begin_inset Quotes eld
25609 \end_inset
25610
25611
25612 \begin_inset Flex Code
25613 status collapsed
25614
25615 \begin_layout Plain Layout
25616 tag
25617 \end_layout
25618
25619 \end_inset
25620
25621
25622 \begin_inset Quotes erd
25623 \end_inset
25624
25625  in the example above.
25626  The default is 
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 div
25632 \end_layout
25633
25634 \end_inset
25635
25636  and will rarely need changing.
25637 \end_layout
25638
25639 \begin_layout Subsection
25640 Bibliography formatting
25641 \end_layout
25642
25643 \begin_layout Standard
25644 The bibliography can be formatted using 
25645 \begin_inset Flex Code
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 CiteFormat
25650 \end_layout
25651
25652 \end_inset
25653
25654  blocks.
25655  See 
25656 \begin_inset CommandInset ref
25657 LatexCommand ref
25658 reference "subsec:Citation-format-description"
25659
25660 \end_inset
25661
25662  for the details.
25663 \end_layout
25664
25665 \begin_layout Subsection
25666 \SpecialChar LyX
25667 -generated CSS
25668 \end_layout
25669
25670 \begin_layout Standard
25671 We have several times mentioned that \SpecialChar LyX
25672  will generate default CSS style rules
25673  for both insets and paragraph styles, based upon the other layout information
25674  that is provided.
25675  In this section, we shall say a word about which layout information \SpecialChar LyX
25676  uses
25677  and how.
25678 \end_layout
25679
25680 \begin_layout Standard
25681 At present, \SpecialChar LyX
25682  auto-generates CSS only for font information, making use of
25683  the 
25684 \begin_inset Flex Code
25685 status collapsed
25686
25687 \begin_layout Plain Layout
25688 Family
25689 \end_layout
25690
25691 \end_inset
25692
25693
25694 \begin_inset Flex Code
25695 status collapsed
25696
25697 \begin_layout Plain Layout
25698 Series
25699 \end_layout
25700
25701 \end_inset
25702
25703
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708 Shape
25709 \end_layout
25710
25711 \end_inset
25712
25713 , and 
25714 \begin_inset Flex Code
25715 status collapsed
25716
25717 \begin_layout Plain Layout
25718 Size
25719 \end_layout
25720
25721 \end_inset
25722
25723  specified in the 
25724 \begin_inset Flex Code
25725 status collapsed
25726
25727 \begin_layout Plain Layout
25728 Font
25729 \end_layout
25730
25731 \end_inset
25732
25733  declaration (see 
25734 \begin_inset CommandInset ref
25735 LatexCommand ref
25736 reference "subsec:Font-description"
25737
25738 \end_inset
25739
25740 ).
25741  The translation is mostly straightforward and obvious.
25742  For example, 
25743 \begin_inset Quotes eld
25744 \end_inset
25745
25746
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 Family Sans
25752 \end_layout
25753
25754 \end_inset
25755
25756
25757 \begin_inset Quotes erd
25758 \end_inset
25759
25760  becomes 
25761 \begin_inset Quotes eld
25762 \end_inset
25763
25764
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769 font-family: sans-serif;
25770 \end_layout
25771
25772 \end_inset
25773
25774
25775 \begin_inset Quotes erd
25776 \end_inset
25777
25778 .
25779  The correspondence of \SpecialChar LyX
25780  sizes and CSS sizes is a little less obvious but
25781  nonetheless intuitive.
25782  See the 
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 getSizeCSS()
25788 \end_layout
25789
25790 \end_inset
25791
25792  function in 
25793 \begin_inset Flex URL
25794 status collapsed
25795
25796 \begin_layout Plain Layout
25797
25798 src/FontInfo.cpp
25799 \end_layout
25800
25801 \end_inset
25802
25803  for the details.
25804 \end_layout
25805
25806 \begin_layout Chapter
25807 Including External Material
25808 \begin_inset CommandInset label
25809 LatexCommand label
25810 name "chap:Including-External-Material"
25811
25812 \end_inset
25813
25814
25815 \end_layout
25816
25817 \begin_layout Standard
25818 \begin_inset Box Shadowbox
25819 position "t"
25820 hor_pos "c"
25821 has_inner_box 1
25822 inner_pos "t"
25823 use_parbox 0
25824 use_makebox 0
25825 width "100col%"
25826 special "none"
25827 height "1in"
25828 height_special "totalheight"
25829 thickness "0.4pt"
25830 separation "3pt"
25831 shadowsize "4pt"
25832 framecolor "black"
25833 backgroundcolor "none"
25834 status open
25835
25836 \begin_layout Plain Layout
25837 WARNING: This portion of the documentation has not been updated for some
25838  time.
25839  We certainly hope that it is still accurate, but there are no guarantees.
25840 \end_layout
25841
25842 \end_inset
25843
25844
25845 \end_layout
25846
25847 \begin_layout Standard
25848 The use of material from sources external to \SpecialChar LyX
25849  is covered in detail in the
25850  
25851 \emph on
25852 Embedded Objects
25853 \emph default
25854  manual.
25855  This part of the manual covers what needs to happen behind the scenes for
25856  new sorts of material to be included.
25857 \end_layout
25858
25859 \begin_layout Section
25860 How does it work?
25861 \end_layout
25862
25863 \begin_layout Standard
25864 The external material feature is based on the concept of a 
25865 \emph on
25866 template
25867 \emph default
25868 .
25869  A template is a specification of how \SpecialChar LyX
25870  should interface with a certain kind
25871  of material.
25872  As bundled, \SpecialChar LyX
25873  comes with predefined templates for Xfig figures, various
25874  raster format images, chess diagrams, and LilyPond music notation.
25875  You can check the actual list by using the menu 
25876 \begin_inset Flex Noun
25877 status collapsed
25878
25879 \begin_layout Plain Layout
25880 Insert\SpecialChar menuseparator
25881 File\SpecialChar menuseparator
25882 External Material
25883 \end_layout
25884
25885 \end_inset
25886
25887 .
25888  Furthermore, it is possible to roll your own template to support a specific
25889  kind of material.
25890  Later we'll describe in more detail what is involved, and hopefully you
25891  will submit all the templates you create so we can include them in a later
25892  \SpecialChar LyX
25893  version.
25894 \end_layout
25895
25896 \begin_layout Standard
25897 Another basic idea of the external material feature is to distinguish between
25898  the original file that serves as a base for final material and the produced
25899  file that is included in your exported or printed document.
25900  For example, consider the case of a figure produced with 
25901 \begin_inset Flex Code
25902 status collapsed
25903
25904 \begin_layout Plain Layout
25905 Xfig
25906 \end_layout
25907
25908 \end_inset
25909
25910 .
25911  The Xfig application itself works on an original file with the 
25912 \begin_inset Flex Code
25913 status collapsed
25914
25915 \begin_layout Plain Layout
25916 .fig
25917 \end_layout
25918
25919 \end_inset
25920
25921  extension.
25922  Within Xfig, you create and change your figure, and when you are done,
25923  you save the 
25924 \begin_inset Flex Code
25925 status collapsed
25926
25927 \begin_layout Plain Layout
25928 fig
25929 \end_layout
25930
25931 \end_inset
25932
25933 -file.
25934  When you want to include the figure in your document, you invoke 
25935 \begin_inset Flex Code
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 transfig
25940 \end_layout
25941
25942 \end_inset
25943
25944  in order to create a PostScript file that can readily be included in your
25945  \SpecialChar LaTeX
25946  file.
25947  In this case, the 
25948 \begin_inset Flex Code
25949 status collapsed
25950
25951 \begin_layout Plain Layout
25952 .fig
25953 \end_layout
25954
25955 \end_inset
25956
25957  file is the original file, and the PostScript file is the produced file.
25958 \end_layout
25959
25960 \begin_layout Standard
25961 This distinction is important in order to allow updating of the material
25962  while you are in the process of writing the document.
25963  Furthermore, it provides us with the flexibility that is needed to support
25964  multiple export formats.
25965  For instance, in the case of a plain text file, it is not exactly an award-winn
25966 ing idea to include the figure as raw PostScript.
25967  Instead, you would either prefer to just include a reference to the figure
25968  or try to invoke some graphics to ASCII converter to make the final result
25969  look similar to the real graphics.
25970  The external material management allows you to do this, because it is parametri
25971 zed on the different export formats that \SpecialChar LyX
25972  supports.
25973 \end_layout
25974
25975 \begin_layout Standard
25976 Besides supporting the production of different products according to the
25977  exported format, it supports tight integration with editing and viewing
25978  applications.
25979  In the case of an Xfig figure, you are able to invoke Xfig on the original
25980  file with a single click from within the external material dialog in \SpecialChar LyX
25981 ,
25982  and also preview the produced PostScript file with Ghostview with another
25983  click.
25984  No more fiddling around with the command line and/or file browsers to locate
25985  and manipulate the original or produced files.
25986  In this way, you are finally able to take full advantage of the many different
25987  applications that are relevant to use when you write your documents, and
25988  ultimately be more productive.
25989 \end_layout
25990
25991 \begin_layout Section
25992 The external template configuration files
25993 \end_layout
25994
25995 \begin_layout Standard
25996 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25997 .
25998  However, be aware that doing this in an careless manner most probably 
25999 \emph on
26000 will
26001 \emph default
26002  introduce an easily exploitable security hole.
26003  So before you do this, please read the discussion about security in 
26004 \begin_inset CommandInset ref
26005 LatexCommand ref
26006 reference "sec:Security-discussion"
26007
26008 \end_inset
26009
26010 .
26011 \end_layout
26012
26013 \begin_layout Standard
26014 Having said that, we encourage you to submit any interesting templates that
26015  you create.
26016  
26017 \end_layout
26018
26019 \begin_layout Standard
26020 The external templates are defined in the 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 *.xtemplate
26026 \end_layout
26027
26028 \end_inset
26029
26030  files that are stored in the 
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035 LyXDir/lib/xtemplates/
26036 \end_layout
26037
26038 \end_inset
26039
26040  directory.
26041  Each template is defined in a file of its own.
26042  You can place your own templates in 
26043 \begin_inset Flex Code
26044 status collapsed
26045
26046 \begin_layout Plain Layout
26047 UserDir/xtemplates/
26048 \end_layout
26049
26050 \end_inset
26051
26052  or copy existing templates to that directory in order to modify them.
26053 \end_layout
26054
26055 \begin_layout Standard
26056 A typical template looks like this:
26057 \end_layout
26058
26059 \begin_layout LyX-Code
26060 Template XFig
26061 \end_layout
26062
26063 \begin_layout LyX-Code
26064 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26065 \end_layout
26066
26067 \begin_layout LyX-Code
26068 HelpText
26069 \end_layout
26070
26071 \begin_layout LyX-Code
26072 An XFig figure.
26073 \end_layout
26074
26075 \begin_layout LyX-Code
26076 HelpTextEnd
26077 \end_layout
26078
26079 \begin_layout LyX-Code
26080 InputFormat fig
26081 \end_layout
26082
26083 \begin_layout LyX-Code
26084 FileFilter "*.fig"
26085 \end_layout
26086
26087 \begin_layout LyX-Code
26088 AutomaticProduction true
26089 \end_layout
26090
26091 \begin_layout LyX-Code
26092 Transform Rotate
26093 \end_layout
26094
26095 \begin_layout LyX-Code
26096 Transform Resize
26097 \end_layout
26098
26099 \begin_layout LyX-Code
26100 Format LaTeX
26101 \end_layout
26102
26103 \begin_layout LyX-Code
26104 TransformCommand Rotate RotationLatexCommand
26105 \end_layout
26106
26107 \begin_layout LyX-Code
26108 TransformCommand Resize ResizeLatexCommand
26109 \end_layout
26110
26111 \begin_layout LyX-Code
26112 Product "$$RotateFront$$ResizeFront
26113 \end_layout
26114
26115 \begin_layout LyX-Code
26116          
26117 \backslash
26118
26119 \backslash
26120 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26121 \end_layout
26122
26123 \begin_layout LyX-Code
26124          $$ResizeBack$$RotateBack"
26125 \end_layout
26126
26127 \begin_layout LyX-Code
26128 UpdateFormat pstex
26129 \end_layout
26130
26131 \begin_layout LyX-Code
26132 UpdateResult "$$AbsPath$$Basename.pstex_t"
26133 \end_layout
26134
26135 \begin_layout LyX-Code
26136 Requirement "graphicx"
26137 \end_layout
26138
26139 \begin_layout LyX-Code
26140 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26141 \end_layout
26142
26143 \begin_layout LyX-Code
26144 ReferencedFile latex "$$AbsPath$$Basename.eps"
26145 \end_layout
26146
26147 \begin_layout LyX-Code
26148 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26149 \end_layout
26150
26151 \begin_layout LyX-Code
26152 FormatEnd
26153 \end_layout
26154
26155 \begin_layout LyX-Code
26156 Format PDFLaTeX
26157 \end_layout
26158
26159 \begin_layout LyX-Code
26160 TransformCommand Rotate RotationLatexCommand
26161 \end_layout
26162
26163 \begin_layout LyX-Code
26164 TransformCommand Resize ResizeLatexCommand
26165 \end_layout
26166
26167 \begin_layout LyX-Code
26168 Product "$$RotateFront$$ResizeFront
26169 \end_layout
26170
26171 \begin_layout LyX-Code
26172          
26173 \backslash
26174
26175 \backslash
26176 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26177 \end_layout
26178
26179 \begin_layout LyX-Code
26180          $$ResizeBack$$RotateBack"
26181 \end_layout
26182
26183 \begin_layout LyX-Code
26184 UpdateFormat pdftex
26185 \end_layout
26186
26187 \begin_layout LyX-Code
26188 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26189 \end_layout
26190
26191 \begin_layout LyX-Code
26192 Requirement "graphicx"
26193 \end_layout
26194
26195 \begin_layout LyX-Code
26196 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26197 \end_layout
26198
26199 \begin_layout LyX-Code
26200 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26201 \end_layout
26202
26203 \begin_layout LyX-Code
26204 FormatEnd
26205 \end_layout
26206
26207 \begin_layout LyX-Code
26208 Format Ascii
26209 \end_layout
26210
26211 \begin_layout LyX-Code
26212 Product "[XFig: $$FName]"
26213 \end_layout
26214
26215 \begin_layout LyX-Code
26216 FormatEnd
26217 \end_layout
26218
26219 \begin_layout LyX-Code
26220 Format DocBook
26221 \end_layout
26222
26223 \begin_layout LyX-Code
26224 Product "<graphic fileref=
26225 \backslash
26226 "$$AbsOrRelPathMaster$$Basename.eps
26227 \backslash
26228 ">
26229 \end_layout
26230
26231 \begin_layout LyX-Code
26232          </graphic>"
26233 \end_layout
26234
26235 \begin_layout LyX-Code
26236 UpdateFormat eps
26237 \end_layout
26238
26239 \begin_layout LyX-Code
26240 UpdateResult "$$AbsPath$$Basename.eps"
26241 \end_layout
26242
26243 \begin_layout LyX-Code
26244 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26245 \end_layout
26246
26247 \begin_layout LyX-Code
26248 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26249 \end_layout
26250
26251 \begin_layout LyX-Code
26252 FormatEnd
26253 \end_layout
26254
26255 \begin_layout LyX-Code
26256 TemplateEnd
26257 \end_layout
26258
26259 \begin_layout Standard
26260 As you can see, the template is enclosed in 
26261 \begin_inset Flex Code
26262 status collapsed
26263
26264 \begin_layout Plain Layout
26265 Template
26266 \end_layout
26267
26268 \end_inset
26269
26270  \SpecialChar ldots
26271  
26272 \begin_inset Flex Code
26273 status collapsed
26274
26275 \begin_layout Plain Layout
26276 TemplateEnd
26277 \end_layout
26278
26279 \end_inset
26280
26281 .
26282  It contains a header specifying some general settings and, for each supported
26283  primary document file format, a section 
26284 \begin_inset Flex Code
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 Format
26289 \end_layout
26290
26291 \end_inset
26292
26293  \SpecialChar ldots
26294  
26295 \begin_inset Flex Code
26296 status collapsed
26297
26298 \begin_layout Plain Layout
26299 FormatEnd
26300 \end_layout
26301
26302 \end_inset
26303
26304 .
26305 \end_layout
26306
26307 \begin_layout Subsection
26308 The template header
26309 \end_layout
26310
26311 \begin_layout Description
26312 \begin_inset Flex Code
26313 status collapsed
26314
26315 \begin_layout Plain Layout
26316 AutomaticProduction
26317 \begin_inset space ~
26318 \end_inset
26319
26320 true|false
26321 \end_layout
26322
26323 \end_inset
26324
26325  Whether the file represented by the template must be generated by \SpecialChar LyX
26326 .
26327  This command must occur exactly once.
26328 \end_layout
26329
26330 \begin_layout Description
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335 FileFilter
26336 \begin_inset space ~
26337 \end_inset
26338
26339 <pattern>
26340 \end_layout
26341
26342 \end_inset
26343
26344  A glob pattern that is used in the file dialog to filter out the desired
26345  files.
26346  If there is more than one possible file extension (e.
26347 \begin_inset space \thinspace{}
26348 \end_inset
26349
26350 g.
26351 \begin_inset space \space{}
26352 \end_inset
26353
26354 tgif has 
26355 \begin_inset Flex Code
26356 status collapsed
26357
26358 \begin_layout Plain Layout
26359 .obj
26360 \end_layout
26361
26362 \end_inset
26363
26364  and 
26365 \begin_inset Flex Code
26366 status collapsed
26367
26368 \begin_layout Plain Layout
26369 .tgo
26370 \end_layout
26371
26372 \end_inset
26373
26374 ), use something like 
26375 \begin_inset Flex Code
26376 status collapsed
26377
26378 \begin_layout Plain Layout
26379 "*.{obj,tgo}"
26380 \end_layout
26381
26382 \end_inset
26383
26384 .
26385  This command must occur exactly once.
26386 \end_layout
26387
26388 \begin_layout Description
26389 \begin_inset Flex Code
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 GuiName
26394 \begin_inset space ~
26395 \end_inset
26396
26397 <guiname>
26398 \end_layout
26399
26400 \end_inset
26401
26402  The text that is displayed on the button.
26403  This command must occur exactly once.
26404 \end_layout
26405
26406 \begin_layout Description
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 HelpText
26412 \begin_inset space ~
26413 \end_inset
26414
26415 <text>
26416 \begin_inset space ~
26417 \end_inset
26418
26419 HelpTextEnd
26420 \end_layout
26421
26422 \end_inset
26423
26424  The help text that is used in the External dialog.
26425  Provide enough information to explain to the user just what the template
26426  can provide him with.
26427  This command must occur exactly once.
26428 \end_layout
26429
26430 \begin_layout Description
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 InputFormat
26436 \begin_inset space ~
26437 \end_inset
26438
26439 <format>
26440 \end_layout
26441
26442 \end_inset
26443
26444  The file format of the original file.
26445  This must be the name of a format that is known to \SpecialChar LyX
26446  (see 
26447 \begin_inset CommandInset ref
26448 LatexCommand ref
26449 reference "sec:Formats"
26450
26451 \end_inset
26452
26453 ).
26454  Use 
26455 \begin_inset Quotes eld
26456 \end_inset
26457
26458
26459 \begin_inset Flex Code
26460 status collapsed
26461
26462 \begin_layout Plain Layout
26463 *
26464 \end_layout
26465
26466 \end_inset
26467
26468
26469 \begin_inset Quotes erd
26470 \end_inset
26471
26472  if the template can handle original files of more than one format.
26473  \SpecialChar LyX
26474  will attempt to interrogate the file itself in order to deduce its format
26475  in this case.
26476  This command must occur exactly once.
26477 \end_layout
26478
26479 \begin_layout Description
26480 \begin_inset Flex Code
26481 status collapsed
26482
26483 \begin_layout Plain Layout
26484 Template
26485 \begin_inset space ~
26486 \end_inset
26487
26488 <id>
26489 \end_layout
26490
26491 \end_inset
26492
26493  A unique name for the template.
26494  It must not contain substitution macros (see below).
26495 \end_layout
26496
26497 \begin_layout Description
26498 \begin_inset Flex Code
26499 status collapsed
26500
26501 \begin_layout Plain Layout
26502 Transform
26503 \begin_inset space ~
26504 \end_inset
26505
26506 Rotate|Resize|Clip|Extra
26507 \end_layout
26508
26509 \end_inset
26510
26511  This command specifies which transformations are supported by this template.
26512  It may occur zero or more times.
26513  This command enables the corresponding tabs in the external dialog.
26514  Each 
26515 \begin_inset Flex Code
26516 status collapsed
26517
26518 \begin_layout Plain Layout
26519 Transform
26520 \end_layout
26521
26522 \end_inset
26523
26524  command must have either a corresponding 
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 TransformCommand
26530 \end_layout
26531
26532 \end_inset
26533
26534  or a 
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 TransformOption
26540 \end_layout
26541
26542 \end_inset
26543
26544  command in the 
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 Format
26550 \end_layout
26551
26552 \end_inset
26553
26554  section.
26555  Otherwise the transformation will not be supported by that format.
26556 \end_layout
26557
26558 \begin_layout Subsection
26559 The Format section
26560 \end_layout
26561
26562 \begin_layout Description
26563 \begin_inset Flex Code
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 Format
26568 \begin_inset space ~
26569 \end_inset
26570
26571 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26572 \end_layout
26573
26574 \end_inset
26575
26576  The primary document file format that this format definition is for.
26577  Not every template has a sensible representation in all document file formats.
26578  Please define nevertheless a 
26579 \begin_inset Flex Code
26580 status collapsed
26581
26582 \begin_layout Plain Layout
26583 Format
26584 \end_layout
26585
26586 \end_inset
26587
26588  section for all templates.
26589  Use a dummy text when no representation is available.
26590  Then you can at least see a reference to the external material in the exported
26591  document.
26592 \end_layout
26593
26594 \begin_layout Description
26595 \begin_inset Flex Code
26596 status collapsed
26597
26598 \begin_layout Plain Layout
26599 Option
26600 \begin_inset space ~
26601 \end_inset
26602
26603 <name>
26604 \begin_inset space ~
26605 \end_inset
26606
26607 <value>
26608 \end_layout
26609
26610 \end_inset
26611
26612  This command defines an additional macro 
26613 \begin_inset Flex Code
26614 status collapsed
26615
26616 \begin_layout Plain Layout
26617 $$<name>
26618 \end_layout
26619
26620 \end_inset
26621
26622  for substitution in 
26623 \begin_inset Flex Code
26624 status collapsed
26625
26626 \begin_layout Plain Layout
26627 Product
26628 \end_layout
26629
26630 \end_inset
26631
26632 .
26633  
26634 \begin_inset Flex Code
26635 status collapsed
26636
26637 \begin_layout Plain Layout
26638 <value>
26639 \end_layout
26640
26641 \end_inset
26642
26643  itself may contain substitution macros.
26644  The advantage over using 
26645 \begin_inset Flex Code
26646 status collapsed
26647
26648 \begin_layout Plain Layout
26649 <value>
26650 \end_layout
26651
26652 \end_inset
26653
26654  directly in 
26655 \begin_inset Flex Code
26656 status collapsed
26657
26658 \begin_layout Plain Layout
26659 Product
26660 \end_layout
26661
26662 \end_inset
26663
26664  is that the substituted value of 
26665 \begin_inset Flex Code
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669 $$<name>
26670 \end_layout
26671
26672 \end_inset
26673
26674  is sanitized so that it is a valid optional argument in the document format.
26675  This command may occur zero or more times.
26676 \end_layout
26677
26678 \begin_layout Description
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683 Product
26684 \begin_inset space ~
26685 \end_inset
26686
26687 <text>
26688 \end_layout
26689
26690 \end_inset
26691
26692  The text that is inserted in the exported document.
26693  This is actually the most important command and can be quite complex.
26694  This command must occur exactly once.
26695 \end_layout
26696
26697 \begin_layout Description
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702 Preamble
26703 \begin_inset space ~
26704 \end_inset
26705
26706 <name>
26707 \end_layout
26708
26709 \end_inset
26710
26711  This command specifies a preamble snippet that will be included in the
26712  \SpecialChar LaTeX
26713  preamble.
26714  It has to be defined using 
26715 \begin_inset Flex Code
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719 PreambleDef
26720 \end_layout
26721
26722 \end_inset
26723
26724  \SpecialChar ldots
26725  
26726 \begin_inset Flex Code
26727 status collapsed
26728
26729 \begin_layout Plain Layout
26730 PreambleDefEnd
26731 \end_layout
26732
26733 \end_inset
26734
26735 .
26736  This command may occur zero or more times.
26737 \end_layout
26738
26739 \begin_layout Description
26740 \begin_inset Flex Code
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744 ReferencedFile
26745 \begin_inset space ~
26746 \end_inset
26747
26748 <format>
26749 \begin_inset space ~
26750 \end_inset
26751
26752 <filename>
26753 \end_layout
26754
26755 \end_inset
26756
26757  This command denotes files that are created by the conversion process and
26758  are needed for a particular export format.
26759  If the filename is relative, it is interpreted relative to the master document.
26760  This command may be given zero or more times.
26761 \end_layout
26762
26763 \begin_layout Description
26764 \begin_inset Flex Code
26765 status collapsed
26766
26767 \begin_layout Plain Layout
26768 Requirement
26769 \begin_inset space ~
26770 \end_inset
26771
26772 <package>
26773 \end_layout
26774
26775 \end_inset
26776
26777  The name of a required \SpecialChar LaTeX
26778  package.
26779  The package is included via 
26780 \begin_inset Flex Code
26781 status collapsed
26782
26783 \begin_layout Plain Layout
26784
26785 \backslash
26786 usepackage{}
26787 \end_layout
26788
26789 \end_inset
26790
26791  in the \SpecialChar LaTeX
26792  preamble.
26793  This command may occur zero or more times.
26794 \end_layout
26795
26796 \begin_layout Description
26797 \begin_inset Flex Code
26798 status collapsed
26799
26800 \begin_layout Plain Layout
26801 TransformCommand
26802 \begin_inset space ~
26803 \end_inset
26804
26805 Rotate
26806 \begin_inset space ~
26807 \end_inset
26808
26809 RotationLatexCommand
26810 \end_layout
26811
26812 \end_inset
26813
26814  This command specifies that the built in \SpecialChar LaTeX
26815  command should be used for rotation.
26816  This command may occur once or not at all.
26817 \end_layout
26818
26819 \begin_layout Description
26820 \begin_inset Flex Code
26821 status collapsed
26822
26823 \begin_layout Plain Layout
26824 TransformCommand
26825 \begin_inset space ~
26826 \end_inset
26827
26828 Resize
26829 \begin_inset space ~
26830 \end_inset
26831
26832 ResizeLatexCommand
26833 \end_layout
26834
26835 \end_inset
26836
26837  This command specifies that the built in \SpecialChar LaTeX
26838  command should be used for resizing.
26839  This command may occur once or not at all.
26840 \end_layout
26841
26842 \begin_layout Description
26843 \begin_inset Flex Code
26844 status collapsed
26845
26846 \begin_layout Plain Layout
26847 TransformOption
26848 \begin_inset space ~
26849 \end_inset
26850
26851 Rotate
26852 \begin_inset space ~
26853 \end_inset
26854
26855 RotationLatexOption
26856 \end_layout
26857
26858 \end_inset
26859
26860  This command specifies that rotation is done via an optional argument.
26861  This command may occur once or not at all.
26862 \end_layout
26863
26864 \begin_layout Description
26865 \begin_inset Flex Code
26866 status collapsed
26867
26868 \begin_layout Plain Layout
26869 TransformOption
26870 \begin_inset space ~
26871 \end_inset
26872
26873 Resize
26874 \begin_inset space ~
26875 \end_inset
26876
26877 ResizeLatexOption
26878 \end_layout
26879
26880 \end_inset
26881
26882  This command specifies that resizing is done via an optional argument.
26883  This command may occur once or not at all.
26884 \end_layout
26885
26886 \begin_layout Description
26887 \begin_inset Flex Code
26888 status collapsed
26889
26890 \begin_layout Plain Layout
26891 TransformOption
26892 \begin_inset space ~
26893 \end_inset
26894
26895 Clip
26896 \begin_inset space ~
26897 \end_inset
26898
26899 ClipLatexOption
26900 \end_layout
26901
26902 \end_inset
26903
26904  This command specifies that clipping is done via an optional argument.
26905  This command may occur once or not at all.
26906 \end_layout
26907
26908 \begin_layout Description
26909 \begin_inset Flex Code
26910 status collapsed
26911
26912 \begin_layout Plain Layout
26913 TransformOption
26914 \begin_inset space ~
26915 \end_inset
26916
26917 Extra
26918 \begin_inset space ~
26919 \end_inset
26920
26921 ExtraLatexOption
26922 \end_layout
26923
26924 \end_inset
26925
26926  This command specifies that an extra optional argument is used.
26927  This command may occur once or not at all.
26928 \end_layout
26929
26930 \begin_layout Description
26931 \begin_inset Flex Code
26932 status collapsed
26933
26934 \begin_layout Plain Layout
26935 UpdateFormat
26936 \begin_inset space ~
26937 \end_inset
26938
26939 <format>
26940 \end_layout
26941
26942 \end_inset
26943
26944  The file format of the converted file.
26945  This must be the name of a format that is known to \SpecialChar LyX
26946  (see the 
26947 \begin_inset Flex Noun
26948 status collapsed
26949
26950 \begin_layout Plain Layout
26951 Tools\SpecialChar menuseparator
26952 Preferences\SpecialChar menuseparator
26953 File Handling\SpecialChar menuseparator
26954 File Format
26955 \end_layout
26956
26957 \end_inset
26958
26959  dialog).
26960  This command must occur exactly once.
26961  If the resulting file format is PDF, you need to specify the format 
26962 \begin_inset Flex Code
26963 status collapsed
26964
26965 \begin_layout Plain Layout
26966 pdf6
26967 \end_layout
26968
26969 \end_inset
26970
26971 .
26972  This is the PDF format used for including graphics.
26973  The other defined PDF formats are for document export.
26974 \end_layout
26975
26976 \begin_layout Description
26977 \begin_inset Flex Code
26978 status collapsed
26979
26980 \begin_layout Plain Layout
26981 UpdateResult
26982 \begin_inset space ~
26983 \end_inset
26984
26985 <filename>
26986 \end_layout
26987
26988 \end_inset
26989
26990  The file name of the converted file.
26991  The file name must be absolute.
26992  This command must occur exactly once.
26993 \end_layout
26994
26995 \begin_layout Subsection
26996 Preamble definitions
26997 \end_layout
26998
26999 \begin_layout Standard
27000 The external template configuration file may contain additional preamble
27001  definitions enclosed by 
27002 \begin_inset Flex Code
27003 status collapsed
27004
27005 \begin_layout Plain Layout
27006 PreambleDef
27007 \end_layout
27008
27009 \end_inset
27010
27011  \SpecialChar ldots
27012  
27013 \begin_inset Flex Code
27014 status collapsed
27015
27016 \begin_layout Plain Layout
27017 PreambleDefEnd
27018 \end_layout
27019
27020 \end_inset
27021
27022 .
27023  They can be used by the templates in the 
27024 \begin_inset Flex Code
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 Format
27029 \end_layout
27030
27031 \end_inset
27032
27033  section.
27034 \end_layout
27035
27036 \begin_layout Section
27037 The substitution mechanism
27038 \end_layout
27039
27040 \begin_layout Standard
27041 When the external material facility invokes an external program, it is done
27042  on the basis of a command defined in the template configuration file.
27043  These commands can contain various macros that are expanded before execution.
27044  Execution always take place in the directory of the containing document.
27045 \end_layout
27046
27047 \begin_layout Standard
27048 Also, whenever external material is to be displayed, the name will be produced
27049  by the substitution mechanism, and most other commands in the template
27050  definition support substitution as well.
27051 \end_layout
27052
27053 \begin_layout Standard
27054 The available macros are the following:
27055 \end_layout
27056
27057 \begin_layout Description
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 $$AbsOrRelPathMaster
27063 \end_layout
27064
27065 \end_inset
27066
27067  The file path, absolute or relative to the master \SpecialChar LyX
27068  document.
27069 \end_layout
27070
27071 \begin_layout Description
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 $$AbsOrRelPathParent
27077 \end_layout
27078
27079 \end_inset
27080
27081  The file path, absolute or relative to the \SpecialChar LyX
27082  document.
27083 \end_layout
27084
27085 \begin_layout Description
27086 \begin_inset Flex Code
27087 status collapsed
27088
27089 \begin_layout Plain Layout
27090 $$AbsPath
27091 \end_layout
27092
27093 \end_inset
27094
27095  The absolute file path.
27096 \end_layout
27097
27098 \begin_layout Description
27099 \begin_inset Flex Code
27100 status collapsed
27101
27102 \begin_layout Plain Layout
27103 $$Basename
27104 \end_layout
27105
27106 \end_inset
27107
27108  The filename without path and without the extension.
27109 \end_layout
27110
27111 \begin_layout Description
27112 \begin_inset Flex Code
27113 status collapsed
27114
27115 \begin_layout Plain Layout
27116 $$Contents(
27117 \begin_inset Quotes eld
27118 \end_inset
27119
27120 filename.ext
27121 \begin_inset Quotes erd
27122 \end_inset
27123
27124 )
27125 \end_layout
27126
27127 \end_inset
27128
27129  This macro will expand to the contents of the file with the name 
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 filename.ext
27135 \end_layout
27136
27137 \end_inset
27138
27139 .
27140 \end_layout
27141
27142 \begin_layout Description
27143 \begin_inset Flex Code
27144 status collapsed
27145
27146 \begin_layout Plain Layout
27147 $$Extension
27148 \end_layout
27149
27150 \end_inset
27151
27152  The file extension (including the dot).
27153 \end_layout
27154
27155 \begin_layout Description
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 $$pngOrjpg
27161 \end_layout
27162
27163 \end_inset
27164
27165  This will be the string 
27166 \begin_inset Quotes eld
27167 \end_inset
27168
27169 jpg
27170 \begin_inset Quotes erd
27171 \end_inset
27172
27173  if the file is in JPEG format, otherwise it will be the string 
27174 \begin_inset Quotes eld
27175 \end_inset
27176
27177 png
27178 \begin_inset Quotes erd
27179 \end_inset
27180
27181 .
27182  This is useful to avoid uneeded conversions for output formats that support
27183  both PNG and JPEG fomats.
27184  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27185  output
27186  format.
27187 \end_layout
27188
27189 \begin_layout Description
27190 \begin_inset Flex Code
27191 status collapsed
27192
27193 \begin_layout Plain Layout
27194 $$FName
27195 \end_layout
27196
27197 \end_inset
27198
27199  The filename of the file specified in the external material dialog.
27200  This is either an absolute name, or it is relative to the \SpecialChar LyX
27201  document.
27202 \end_layout
27203
27204 \begin_layout Description
27205 \begin_inset Flex Code
27206 status collapsed
27207
27208 \begin_layout Plain Layout
27209 $$FPath
27210 \end_layout
27211
27212 \end_inset
27213
27214  The path part of 
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 $$FName
27220 \end_layout
27221
27222 \end_inset
27223
27224  (absolute name or relative to the \SpecialChar LyX
27225  document).
27226 \end_layout
27227
27228 \begin_layout Description
27229 \begin_inset Flex Code
27230 status collapsed
27231
27232 \begin_layout Plain Layout
27233 $$RelPathMaster
27234 \end_layout
27235
27236 \end_inset
27237
27238  The file path, relative to the master \SpecialChar LyX
27239  document.
27240 \end_layout
27241
27242 \begin_layout Description
27243 \begin_inset Flex Code
27244 status collapsed
27245
27246 \begin_layout Plain Layout
27247 $$RelPathParent
27248 \end_layout
27249
27250 \end_inset
27251
27252  The file path, relative to the \SpecialChar LyX
27253  document.
27254 \end_layout
27255
27256 \begin_layout Description
27257 \begin_inset Flex Code
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261 $$Sysdir
27262 \end_layout
27263
27264 \end_inset
27265
27266  This macro will expand to the absolute path of the system directory.
27267  This is typically used to point to the various helper scripts that are
27268  bundled with \SpecialChar LyX
27269 .
27270 \end_layout
27271
27272 \begin_layout Description
27273 \begin_inset Flex Code
27274 status collapsed
27275
27276 \begin_layout Plain Layout
27277 $$Tempname
27278 \end_layout
27279
27280 \end_inset
27281
27282  A name and full path to a temporary file which will be automatically deleted
27283  whenever the containing document is closed, or the external material insertion
27284  deleted.
27285 \end_layout
27286
27287 \begin_layout Standard
27288 All path macros contain a trailing directory separator, so you can construct
27289  e.
27290 \begin_inset space \thinspace{}
27291 \end_inset
27292
27293 g.
27294 \begin_inset space \space{}
27295 \end_inset
27296
27297 the absolute filename with 
27298 \begin_inset Flex Code
27299 status collapsed
27300
27301 \begin_layout Plain Layout
27302 $$AbsPath$$Basename$$Extension
27303 \end_layout
27304
27305 \end_inset
27306
27307 .
27308 \end_layout
27309
27310 \begin_layout Standard
27311 The macros above are substituted in all commands unless otherwise noted.
27312  The command 
27313 \begin_inset Flex Code
27314 status collapsed
27315
27316 \begin_layout Plain Layout
27317 Product
27318 \end_layout
27319
27320 \end_inset
27321
27322  supports additionally the following substitutions if they are enabled by
27323  the 
27324 \begin_inset Flex Code
27325 status collapsed
27326
27327 \begin_layout Plain Layout
27328 Transform
27329 \end_layout
27330
27331 \end_inset
27332
27333  and 
27334 \begin_inset Flex Code
27335 status collapsed
27336
27337 \begin_layout Plain Layout
27338 TransformCommand
27339 \end_layout
27340
27341 \end_inset
27342
27343  commands:
27344 \end_layout
27345
27346 \begin_layout Description
27347 \begin_inset Flex Code
27348 status collapsed
27349
27350 \begin_layout Plain Layout
27351 $$ResizeFront
27352 \end_layout
27353
27354 \end_inset
27355
27356  The front part of the resize command.
27357 \end_layout
27358
27359 \begin_layout Description
27360 \begin_inset Flex Code
27361 status collapsed
27362
27363 \begin_layout Plain Layout
27364 $$ResizeBack
27365 \end_layout
27366
27367 \end_inset
27368
27369  The back part of the resize command.
27370 \end_layout
27371
27372 \begin_layout Description
27373 \begin_inset Flex Code
27374 status collapsed
27375
27376 \begin_layout Plain Layout
27377 $$RotateFront
27378 \end_layout
27379
27380 \end_inset
27381
27382  The front part of the rotation command.
27383 \end_layout
27384
27385 \begin_layout Description
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 $$RotateBack
27391 \end_layout
27392
27393 \end_inset
27394
27395  The back part of the rotation command.
27396 \end_layout
27397
27398 \begin_layout Standard
27399 The value string of the 
27400 \begin_inset Flex Code
27401 status collapsed
27402
27403 \begin_layout Plain Layout
27404 Option
27405 \end_layout
27406
27407 \end_inset
27408
27409  command supports additionally the following substitutions if they are enabled
27410  by the 
27411 \begin_inset Flex Code
27412 status collapsed
27413
27414 \begin_layout Plain Layout
27415 Transform
27416 \end_layout
27417
27418 \end_inset
27419
27420  and 
27421 \begin_inset Flex Code
27422 status collapsed
27423
27424 \begin_layout Plain Layout
27425 TransformOption
27426 \end_layout
27427
27428 \end_inset
27429
27430  commands:
27431 \end_layout
27432
27433 \begin_layout Description
27434 \begin_inset Flex Code
27435 status collapsed
27436
27437 \begin_layout Plain Layout
27438 $$Clip
27439 \end_layout
27440
27441 \end_inset
27442
27443  The clip option.
27444 \end_layout
27445
27446 \begin_layout Description
27447 \begin_inset Flex Code
27448 status collapsed
27449
27450 \begin_layout Plain Layout
27451 $$Extra
27452 \end_layout
27453
27454 \end_inset
27455
27456  The extra option.
27457 \end_layout
27458
27459 \begin_layout Description
27460 \begin_inset Flex Code
27461 status collapsed
27462
27463 \begin_layout Plain Layout
27464 $$Resize
27465 \end_layout
27466
27467 \end_inset
27468
27469  The resize option.
27470 \end_layout
27471
27472 \begin_layout Description
27473 \begin_inset Flex Code
27474 status collapsed
27475
27476 \begin_layout Plain Layout
27477 $$Rotate
27478 \end_layout
27479
27480 \end_inset
27481
27482  The rotation option.
27483 \end_layout
27484
27485 \begin_layout Standard
27486 You may ask why there are so many path macros.
27487  There are mainly two reasons:
27488 \end_layout
27489
27490 \begin_layout Enumerate
27491 Relative and absolute file names should remain relative or absolute, respectivel
27492 y.
27493  Users may have reasons to prefer either form.
27494  Relative names are useful for portable documents that should work on different
27495  machines, for example.
27496  Absolute names may be required by some programs.
27497 \end_layout
27498
27499 \begin_layout Enumerate
27500 \SpecialChar LaTeX
27501  treats relative file names differently than \SpecialChar LyX
27502  and other programs in nested
27503  included files.
27504  For \SpecialChar LyX
27505 , a relative file name is always relative to the document that contains
27506  the file name.
27507  For \SpecialChar LaTeX
27508 , it is always relative to the master document.
27509  These two definitions are identical if you have only one document, but
27510  differ if you have a master document that includes part documents.
27511  That means that relative filenames must be transformed when presented to
27512  \SpecialChar LaTeX
27513 .
27514  Fortunately \SpecialChar LyX
27515  does this automatically for you if you choose the right macros.
27516 \end_layout
27517
27518 \begin_layout Standard
27519 So which path macro should be used in new template definitions? The rule
27520  is not difficult:
27521 \end_layout
27522
27523 \begin_layout Itemize
27524 Use 
27525 \begin_inset Flex Code
27526 status collapsed
27527
27528 \begin_layout Plain Layout
27529 $$AbsPath
27530 \end_layout
27531
27532 \end_inset
27533
27534  if an absolute path is required.
27535 \end_layout
27536
27537 \begin_layout Itemize
27538 Use 
27539 \begin_inset Flex Code
27540 status collapsed
27541
27542 \begin_layout Plain Layout
27543 $$AbsOrRelPathMaster
27544 \end_layout
27545
27546 \end_inset
27547
27548  if the substituted string is some kind of \SpecialChar LaTeX
27549  input.
27550 \end_layout
27551
27552 \begin_layout Itemize
27553 Else use 
27554 \begin_inset Flex Code
27555 status collapsed
27556
27557 \begin_layout Plain Layout
27558 $$AbsOrRelPathParent
27559 \end_layout
27560
27561 \end_inset
27562
27563  in order to preserve the user's choice.
27564 \end_layout
27565
27566 \begin_layout Standard
27567 There are special cases where this rule does not work and e.
27568 \begin_inset space \thinspace{}
27569 \end_inset
27570
27571 g.
27572 \begin_inset space \space{}
27573 \end_inset
27574
27575 relative names are needed, but normally it will work just fine.
27576  One example for such a case is the command 
27577 \begin_inset Flex Code
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27582 \end_layout
27583
27584 \end_inset
27585
27586  in the XFig template above: We can't use the absolute name because the
27587  copier for 
27588 \begin_inset Flex Code
27589 status collapsed
27590
27591 \begin_layout Plain Layout
27592 .pstex_t
27593 \end_layout
27594
27595 \end_inset
27596
27597  files needs the relative name in order to rewrite the file content.
27598 \end_layout
27599
27600 \begin_layout Section
27601 Security discussion
27602 \begin_inset CommandInset label
27603 LatexCommand label
27604 name "sec:Security-discussion"
27605
27606 \end_inset
27607
27608
27609 \end_layout
27610
27611 \begin_layout Standard
27612 The external material feature interfaces with a lot of external programs
27613  and does so automatically, so we have to consider the security implications
27614  of this.
27615  In particular, since you have the option of including your own filenames
27616  and/or parameter strings and those are expanded into a command, it seems
27617  that it would be possible to create a malicious document which executes
27618  arbitrary commands when a user views or prints the document.
27619  This is something we definitely want to avoid.
27620 \end_layout
27621
27622 \begin_layout Standard
27623 However, since the external program commands are specified in the template
27624  configuration file only, there are no security issues if \SpecialChar LyX
27625  is properly configure
27626 d with safe templates only.
27627  This is so because the external programs are invoked with the 
27628 \begin_inset Flex Code
27629 status collapsed
27630
27631 \begin_layout Plain Layout
27632 execvp
27633 \end_layout
27634
27635 \end_inset
27636
27637 -system call rather than the 
27638 \begin_inset Flex Code
27639 status collapsed
27640
27641 \begin_layout Plain Layout
27642 system
27643 \end_layout
27644
27645 \end_inset
27646
27647  system-call, so it's not possible to execute arbitrary commands from the
27648  filename or parameter section via the shell.
27649 \end_layout
27650
27651 \begin_layout Standard
27652 This also implies that you are restricted in what command strings you can
27653  use in the external material templates.
27654  In particular, pipes and redirection are not readily available.
27655  This has to be so if \SpecialChar LyX
27656  should remain safe.
27657  If you want to use some of the shell features, you should write a safe
27658  script to do this in a controlled manner, and then invoke the script from
27659  the command string.
27660  
27661 \end_layout
27662
27663 \begin_layout Standard
27664 It is possible to design a template that interacts directly with the shell,
27665  but since this would allow a malicious user to execute arbitrary commands
27666  by writing clever filenames and/or parameters, we generally recommend that
27667  you only use safe scripts that work with the 
27668 \begin_inset Flex Code
27669 status collapsed
27670
27671 \begin_layout Plain Layout
27672 execvp
27673 \end_layout
27674
27675 \end_inset
27676
27677  system call in a controlled manner.
27678  Of course, for use in a controlled environment, it can be tempting to just
27679  fall back to use ordinary shell scripts.
27680  If you do so, be aware that you 
27681 \emph on
27682 will
27683 \emph default
27684  provide an easily exploitable security hole in your system.
27685  Of course it stands to reason that such unsafe templates will never be
27686  included in the standard \SpecialChar LyX
27687  distribution, although we do encourage people
27688  to submit new templates in the open source tradition.
27689  But \SpecialChar LyX
27690  as shipped from the official distribution channels will never have
27691  unsafe templates.
27692 \end_layout
27693
27694 \begin_layout Standard
27695 Including external material provides a lot of power, and you have to be
27696  careful not to introduce security hazards with this power.
27697  A subtle error in a single line in an innocent looking script can open
27698  the door to huge security problems.
27699  So if you do not fully understand the issues, we recommend that you consult
27700  a knowledgeable security professional or the \SpecialChar LyX
27701  development team if you have
27702  any questions about whether a given template is safe or not.
27703  And do this before you use it in an uncontrolled environment.
27704 \end_layout
27705
27706 \begin_layout Chapter
27707 \start_of_appendix
27708 List of supported \SpecialChar LyX
27709  functions to be used in layouts
27710 \begin_inset CommandInset label
27711 LatexCommand label
27712 name "chap:List-of-functions"
27713
27714 \end_inset
27715
27716
27717 \end_layout
27718
27719 \begin_layout Standard
27720 \align center
27721 \begin_inset Tabular
27722 <lyxtabular version="3" rows="11" columns="8">
27723 <features tabularvalignment="middle">
27724 <column alignment="left" valignment="top">
27725 <column alignment="left" valignment="top">
27726 <column alignment="left" valignment="top">
27727 <column alignment="left" valignment="top">
27728 <column alignment="left" valignment="top">
27729 <column alignment="left" valignment="top">
27730 <column alignment="left" valignment="top">
27731 <column alignment="left" valignment="top">
27732 <row>
27733 <cell alignment="left" valignment="top" usebox="none">
27734 \begin_inset Text
27735
27736 \begin_layout Plain Layout
27737 accents
27738 \end_layout
27739
27740 \end_inset
27741 </cell>
27742 <cell alignment="left" valignment="top" usebox="none">
27743 \begin_inset Text
27744
27745 \begin_layout Plain Layout
27746 booktabs
27747 \end_layout
27748
27749 \end_inset
27750 </cell>
27751 <cell alignment="left" valignment="top" usebox="none">
27752 \begin_inset Text
27753
27754 \begin_layout Plain Layout
27755 feyn
27756 \end_layout
27757
27758 \end_inset
27759 </cell>
27760 <cell alignment="left" valignment="top" usebox="none">
27761 \begin_inset Text
27762
27763 \begin_layout Plain Layout
27764 listings
27765 \end_layout
27766
27767 \end_inset
27768 </cell>
27769 <cell alignment="center" valignment="top" usebox="none">
27770 \begin_inset Text
27771
27772 \begin_layout Plain Layout
27773 natbib
27774 \end_layout
27775
27776 \end_inset
27777 </cell>
27778 <cell alignment="center" valignment="top" usebox="none">
27779 \begin_inset Text
27780
27781 \begin_layout Plain Layout
27782 rotfloat
27783 \end_layout
27784
27785 \end_inset
27786 </cell>
27787 <cell alignment="center" valignment="top" usebox="none">
27788 \begin_inset Text
27789
27790 \begin_layout Plain Layout
27791 tfrupee
27792 \end_layout
27793
27794 \end_inset
27795 </cell>
27796 <cell alignment="center" valignment="top" usebox="none">
27797 \begin_inset Text
27798
27799 \begin_layout Plain Layout
27800 wasysym
27801 \end_layout
27802
27803 \end_inset
27804 </cell>
27805 </row>
27806 <row>
27807 <cell alignment="left" valignment="top" usebox="none">
27808 \begin_inset Text
27809
27810 \begin_layout Plain Layout
27811 amsbsy
27812 \end_layout
27813
27814 \end_inset
27815 </cell>
27816 <cell alignment="left" valignment="top" usebox="none">
27817 \begin_inset Text
27818
27819 \begin_layout Plain Layout
27820 calc
27821 \end_layout
27822
27823 \end_inset
27824 </cell>
27825 <cell alignment="left" valignment="top" usebox="none">
27826 \begin_inset Text
27827
27828 \begin_layout Plain Layout
27829 fixltx2e
27830 \end_layout
27831
27832 \end_inset
27833 </cell>
27834 <cell alignment="left" valignment="top" usebox="none">
27835 \begin_inset Text
27836
27837 \begin_layout Plain Layout
27838 longtable
27839 \end_layout
27840
27841 \end_inset
27842 </cell>
27843 <cell alignment="center" valignment="top" usebox="none">
27844 \begin_inset Text
27845
27846 \begin_layout Plain Layout
27847 nomencl
27848 \end_layout
27849
27850 \end_inset
27851 </cell>
27852 <cell alignment="center" valignment="top" usebox="none">
27853 \begin_inset Text
27854
27855 \begin_layout Plain Layout
27856 rsphrase
27857 \end_layout
27858
27859 \end_inset
27860 </cell>
27861 <cell alignment="center" valignment="top" usebox="none">
27862 \begin_inset Text
27863
27864 \begin_layout Plain Layout
27865 tipa
27866 \end_layout
27867
27868 \end_inset
27869 </cell>
27870 <cell alignment="center" valignment="top" usebox="none">
27871 \begin_inset Text
27872
27873 \begin_layout Plain Layout
27874 wrapfig
27875 \end_layout
27876
27877 \end_inset
27878 </cell>
27879 </row>
27880 <row>
27881 <cell alignment="left" valignment="top" usebox="none">
27882 \begin_inset Text
27883
27884 \begin_layout Plain Layout
27885 amscd
27886 \end_layout
27887
27888 \end_inset
27889 </cell>
27890 <cell alignment="left" valignment="top" usebox="none">
27891 \begin_inset Text
27892
27893 \begin_layout Plain Layout
27894 CJK
27895 \end_layout
27896
27897 \end_inset
27898 </cell>
27899 <cell alignment="left" valignment="top" usebox="none">
27900 \begin_inset Text
27901
27902 \begin_layout Plain Layout
27903 float
27904 \end_layout
27905
27906 \end_inset
27907 </cell>
27908 <cell alignment="left" valignment="top" usebox="none">
27909 \begin_inset Text
27910
27911 \begin_layout Plain Layout
27912 lyxskak
27913 \end_layout
27914
27915 \end_inset
27916 </cell>
27917 <cell alignment="center" valignment="top" usebox="none">
27918 \begin_inset Text
27919
27920 \begin_layout Plain Layout
27921 pdfcolmk
27922 \end_layout
27923
27924 \end_inset
27925 </cell>
27926 <cell alignment="center" valignment="top" usebox="none">
27927 \begin_inset Text
27928
27929 \begin_layout Plain Layout
27930 setspace
27931 \end_layout
27932
27933 \end_inset
27934 </cell>
27935 <cell alignment="center" valignment="top" usebox="none">
27936 \begin_inset Text
27937
27938 \begin_layout Plain Layout
27939 tipx
27940 \end_layout
27941
27942 \end_inset
27943 </cell>
27944 <cell alignment="center" valignment="top" usebox="none">
27945 \begin_inset Text
27946
27947 \begin_layout Plain Layout
27948 xargs
27949 \end_layout
27950
27951 \end_inset
27952 </cell>
27953 </row>
27954 <row>
27955 <cell alignment="left" valignment="top" usebox="none">
27956 \begin_inset Text
27957
27958 \begin_layout Plain Layout
27959 amsmath
27960 \end_layout
27961
27962 \end_inset
27963 </cell>
27964 <cell alignment="left" valignment="top" usebox="none">
27965 \begin_inset Text
27966
27967 \begin_layout Plain Layout
27968 color
27969 \end_layout
27970
27971 \end_inset
27972 </cell>
27973 <cell alignment="left" valignment="top" usebox="none">
27974 \begin_inset Text
27975
27976 \begin_layout Plain Layout
27977 framed
27978 \end_layout
27979
27980 \end_inset
27981 </cell>
27982 <cell alignment="left" valignment="top" usebox="none">
27983 \begin_inset Text
27984
27985 \begin_layout Plain Layout
27986 makeidx
27987 \end_layout
27988
27989 \end_inset
27990 </cell>
27991 <cell alignment="center" valignment="top" usebox="none">
27992 \begin_inset Text
27993
27994 \begin_layout Plain Layout
27995 pdfpages
27996 \end_layout
27997
27998 \end_inset
27999 </cell>
28000 <cell alignment="center" valignment="top" usebox="none">
28001 \begin_inset Text
28002
28003 \begin_layout Plain Layout
28004 shapepar
28005 \end_layout
28006
28007 \end_inset
28008 </cell>
28009 <cell alignment="center" valignment="top" usebox="none">
28010 \begin_inset Text
28011
28012 \begin_layout Plain Layout
28013 tone
28014 \end_layout
28015
28016 \end_inset
28017 </cell>
28018 <cell alignment="center" valignment="top" usebox="none">
28019 \begin_inset Text
28020
28021 \begin_layout Plain Layout
28022 xcolor
28023 \end_layout
28024
28025 \end_inset
28026 </cell>
28027 </row>
28028 <row>
28029 <cell alignment="left" valignment="top" usebox="none">
28030 \begin_inset Text
28031
28032 \begin_layout Plain Layout
28033 amssymb
28034 \end_layout
28035
28036 \end_inset
28037 </cell>
28038 <cell alignment="left" valignment="top" usebox="none">
28039 \begin_inset Text
28040
28041 \begin_layout Plain Layout
28042 covington
28043 \end_layout
28044
28045 \end_inset
28046 </cell>
28047 <cell alignment="left" valignment="top" usebox="none">
28048 \begin_inset Text
28049
28050 \begin_layout Plain Layout
28051 graphicx
28052 \end_layout
28053
28054 \end_inset
28055 </cell>
28056 <cell alignment="left" valignment="top" usebox="none">
28057 \begin_inset Text
28058
28059 \begin_layout Plain Layout
28060 marvosym
28061 \end_layout
28062
28063 \end_inset
28064 </cell>
28065 <cell alignment="center" valignment="top" usebox="none">
28066 \begin_inset Text
28067
28068 \begin_layout Plain Layout
28069 pifont
28070 \end_layout
28071
28072 \end_inset
28073 </cell>
28074 <cell alignment="center" valignment="top" usebox="none">
28075 \begin_inset Text
28076
28077 \begin_layout Plain Layout
28078 slashed
28079 \end_layout
28080
28081 \end_inset
28082 </cell>
28083 <cell alignment="center" valignment="top" usebox="none">
28084 \begin_inset Text
28085
28086 \begin_layout Plain Layout
28087 txfonts
28088 \end_layout
28089
28090 \end_inset
28091 </cell>
28092 <cell alignment="center" valignment="top" usebox="none">
28093 \begin_inset Text
28094
28095 \begin_layout Plain Layout
28096 xy
28097 \end_layout
28098
28099 \end_inset
28100 </cell>
28101 </row>
28102 <row>
28103 <cell alignment="left" valignment="top" usebox="none">
28104 \begin_inset Text
28105
28106 \begin_layout Plain Layout
28107 amstext
28108 \end_layout
28109
28110 \end_inset
28111 </cell>
28112 <cell alignment="left" valignment="top" usebox="none">
28113 \begin_inset Text
28114
28115 \begin_layout Plain Layout
28116 csquotes
28117 \end_layout
28118
28119 \end_inset
28120 </cell>
28121 <cell alignment="left" valignment="top" usebox="none">
28122 \begin_inset Text
28123
28124 \begin_layout Plain Layout
28125 hhline
28126 \end_layout
28127
28128 \end_inset
28129 </cell>
28130 <cell alignment="left" valignment="top" usebox="none">
28131 \begin_inset Text
28132
28133 \begin_layout Plain Layout
28134 mathdesign
28135 \end_layout
28136
28137 \end_inset
28138 </cell>
28139 <cell alignment="center" valignment="top" usebox="none">
28140 \begin_inset Text
28141
28142 \begin_layout Plain Layout
28143 pmboxdraw
28144 \end_layout
28145
28146 \end_inset
28147 </cell>
28148 <cell alignment="center" valignment="top" usebox="none">
28149 \begin_inset Text
28150
28151 \begin_layout Plain Layout
28152 soul
28153 \end_layout
28154
28155 \end_inset
28156 </cell>
28157 <cell alignment="center" valignment="top" usebox="none">
28158 \begin_inset Text
28159
28160 \begin_layout Plain Layout
28161 ulem
28162 \end_layout
28163
28164 \end_inset
28165 </cell>
28166 <cell alignment="center" valignment="top" usebox="none">
28167 \begin_inset Text
28168
28169 \begin_layout Plain Layout
28170 yhmath
28171 \end_layout
28172
28173 \end_inset
28174 </cell>
28175 </row>
28176 <row>
28177 <cell alignment="left" valignment="top" usebox="none">
28178 \begin_inset Text
28179
28180 \begin_layout Plain Layout
28181 amsthm
28182 \end_layout
28183
28184 \end_inset
28185 </cell>
28186 <cell alignment="left" valignment="top" usebox="none">
28187 \begin_inset Text
28188
28189 \begin_layout Plain Layout
28190 dvipost
28191 \end_layout
28192
28193 \end_inset
28194 </cell>
28195 <cell alignment="left" valignment="top" usebox="none">
28196 \begin_inset Text
28197
28198 \begin_layout Plain Layout
28199 hyperref
28200 \end_layout
28201
28202 \end_inset
28203 </cell>
28204 <cell alignment="left" valignment="top" usebox="none">
28205 \begin_inset Text
28206
28207 \begin_layout Plain Layout
28208 mathdots
28209 \end_layout
28210
28211 \end_inset
28212 </cell>
28213 <cell alignment="center" valignment="top" usebox="none">
28214 \begin_inset Text
28215
28216 \begin_layout Plain Layout
28217 polyglossia
28218 \end_layout
28219
28220 \end_inset
28221 </cell>
28222 <cell alignment="center" valignment="top" usebox="none">
28223 \begin_inset Text
28224
28225 \begin_layout Plain Layout
28226 splitidx
28227 \end_layout
28228
28229 \end_inset
28230 </cell>
28231 <cell alignment="center" valignment="top" usebox="none">
28232 \begin_inset Text
28233
28234 \begin_layout Plain Layout
28235 undertilde
28236 \end_layout
28237
28238 \end_inset
28239 </cell>
28240 <cell alignment="center" valignment="top" usebox="none">
28241 \begin_inset Text
28242
28243 \begin_layout Plain Layout
28244
28245 \end_layout
28246
28247 \end_inset
28248 </cell>
28249 </row>
28250 <row>
28251 <cell alignment="left" valignment="top" usebox="none">
28252 \begin_inset Text
28253
28254 \begin_layout Plain Layout
28255 array
28256 \end_layout
28257
28258 \end_inset
28259 </cell>
28260 <cell alignment="left" valignment="top" usebox="none">
28261 \begin_inset Text
28262
28263 \begin_layout Plain Layout
28264 endnotes
28265 \end_layout
28266
28267 \end_inset
28268 </cell>
28269 <cell alignment="left" valignment="top" usebox="none">
28270 \begin_inset Text
28271
28272 \begin_layout Plain Layout
28273 ifsym
28274 \end_layout
28275
28276 \end_inset
28277 </cell>
28278 <cell alignment="left" valignment="top" usebox="none">
28279 \begin_inset Text
28280
28281 \begin_layout Plain Layout
28282 mathrsfs
28283 \end_layout
28284
28285 \end_inset
28286 </cell>
28287 <cell alignment="center" valignment="top" usebox="none">
28288 \begin_inset Text
28289
28290 \begin_layout Plain Layout
28291 prettyref
28292 \end_layout
28293
28294 \end_inset
28295 </cell>
28296 <cell alignment="center" valignment="top" usebox="none">
28297 \begin_inset Text
28298
28299 \begin_layout Plain Layout
28300 subfig
28301 \end_layout
28302
28303 \end_inset
28304 </cell>
28305 <cell alignment="center" valignment="top" usebox="none">
28306 \begin_inset Text
28307
28308 \begin_layout Plain Layout
28309 units
28310 \end_layout
28311
28312 \end_inset
28313 </cell>
28314 <cell alignment="center" valignment="top" usebox="none">
28315 \begin_inset Text
28316
28317 \begin_layout Plain Layout
28318
28319 \end_layout
28320
28321 \end_inset
28322 </cell>
28323 </row>
28324 <row>
28325 <cell alignment="left" valignment="top" usebox="none">
28326 \begin_inset Text
28327
28328 \begin_layout Plain Layout
28329 ascii
28330 \end_layout
28331
28332 \end_inset
28333 </cell>
28334 <cell alignment="left" valignment="top" usebox="none">
28335 \begin_inset Text
28336
28337 \begin_layout Plain Layout
28338 enumitem
28339 \end_layout
28340
28341 \end_inset
28342 </cell>
28343 <cell alignment="left" valignment="top" usebox="none">
28344 \begin_inset Text
28345
28346 \begin_layout Plain Layout
28347 ifthen
28348 \end_layout
28349
28350 \end_inset
28351 </cell>
28352 <cell alignment="left" valignment="top" usebox="none">
28353 \begin_inset Text
28354
28355 \begin_layout Plain Layout
28356 mhchem
28357 \end_layout
28358
28359 \end_inset
28360 </cell>
28361 <cell alignment="center" valignment="top" usebox="none">
28362 \begin_inset Text
28363
28364 \begin_layout Plain Layout
28365 pxfonts
28366 \end_layout
28367
28368 \end_inset
28369 </cell>
28370 <cell alignment="center" valignment="top" usebox="none">
28371 \begin_inset Text
28372
28373 \begin_layout Plain Layout
28374 subscript
28375 \end_layout
28376
28377 \end_inset
28378 </cell>
28379 <cell alignment="center" valignment="top" usebox="none">
28380 \begin_inset Text
28381
28382 \begin_layout Plain Layout
28383 url
28384 \end_layout
28385
28386 \end_inset
28387 </cell>
28388 <cell alignment="center" valignment="top" usebox="none">
28389 \begin_inset Text
28390
28391 \begin_layout Plain Layout
28392
28393 \end_layout
28394
28395 \end_inset
28396 </cell>
28397 </row>
28398 <row>
28399 <cell alignment="left" valignment="top" usebox="none">
28400 \begin_inset Text
28401
28402 \begin_layout Plain Layout
28403 bbding
28404 \end_layout
28405
28406 \end_inset
28407 </cell>
28408 <cell alignment="left" valignment="top" usebox="none">
28409 \begin_inset Text
28410
28411 \begin_layout Plain Layout
28412 esint
28413 \end_layout
28414
28415 \end_inset
28416 </cell>
28417 <cell alignment="left" valignment="top" usebox="none">
28418 \begin_inset Text
28419
28420 \begin_layout Plain Layout
28421 jurabib
28422 \end_layout
28423
28424 \end_inset
28425 </cell>
28426 <cell alignment="left" valignment="top" usebox="none">
28427 \begin_inset Text
28428
28429 \begin_layout Plain Layout
28430 multicol
28431 \end_layout
28432
28433 \end_inset
28434 </cell>
28435 <cell alignment="center" valignment="top" usebox="none">
28436 \begin_inset Text
28437
28438 \begin_layout Plain Layout
28439 refstyle
28440 \end_layout
28441
28442 \end_inset
28443 </cell>
28444 <cell alignment="center" valignment="top" usebox="none">
28445 \begin_inset Text
28446
28447 \begin_layout Plain Layout
28448 textcomp
28449 \end_layout
28450
28451 \end_inset
28452 </cell>
28453 <cell alignment="center" valignment="top" usebox="none">
28454 \begin_inset Text
28455
28456 \begin_layout Plain Layout
28457 varioref
28458 \end_layout
28459
28460 \end_inset
28461 </cell>
28462 <cell alignment="center" valignment="top" usebox="none">
28463 \begin_inset Text
28464
28465 \begin_layout Plain Layout
28466
28467 \end_layout
28468
28469 \end_inset
28470 </cell>
28471 </row>
28472 <row>
28473 <cell alignment="center" valignment="top" usebox="none">
28474 \begin_inset Text
28475
28476 \begin_layout Plain Layout
28477 bm
28478 \end_layout
28479
28480 \end_inset
28481 </cell>
28482 <cell alignment="center" valignment="top" usebox="none">
28483 \begin_inset Text
28484
28485 \begin_layout Plain Layout
28486 fancybox
28487 \end_layout
28488
28489 \end_inset
28490 </cell>
28491 <cell alignment="center" valignment="top" usebox="none">
28492 \begin_inset Text
28493
28494 \begin_layout Plain Layout
28495 latexsym
28496 \end_layout
28497
28498 \end_inset
28499 </cell>
28500 <cell alignment="center" valignment="top" usebox="none">
28501 \begin_inset Text
28502
28503 \begin_layout Plain Layout
28504 multirow
28505 \end_layout
28506
28507 \end_inset
28508 </cell>
28509 <cell alignment="center" valignment="top" usebox="none">
28510 \begin_inset Text
28511
28512 \begin_layout Plain Layout
28513 rotating
28514 \end_layout
28515
28516 \end_inset
28517 </cell>
28518 <cell alignment="center" valignment="top" usebox="none">
28519 \begin_inset Text
28520
28521 \begin_layout Plain Layout
28522 textgreek
28523 \end_layout
28524
28525 \end_inset
28526 </cell>
28527 <cell alignment="center" valignment="top" usebox="none">
28528 \begin_inset Text
28529
28530 \begin_layout Plain Layout
28531 verbatim
28532 \end_layout
28533
28534 \end_inset
28535 </cell>
28536 <cell alignment="center" valignment="top" usebox="none">
28537 \begin_inset Text
28538
28539 \begin_layout Plain Layout
28540
28541 \end_layout
28542
28543 \end_inset
28544 </cell>
28545 </row>
28546 </lyxtabular>
28547
28548 \end_inset
28549
28550
28551 \end_layout
28552
28553 \begin_layout Chapter
28554 Names of available colors to be used in layouts
28555 \begin_inset CommandInset label
28556 LatexCommand label
28557 name "chap:Names-of-colors"
28558
28559 \end_inset
28560
28561
28562 \end_layout
28563
28564 \begin_layout Standard
28565 The colors listed below are the standard colors and those that you can adjust
28566  in the \SpecialChar LyX
28567  preferences.
28568 \end_layout
28569
28570 \begin_layout Section
28571 Color functions
28572 \end_layout
28573
28574 \begin_layout Standard
28575 The following are no real colors, but rather act on color definitions:
28576 \end_layout
28577
28578 \begin_layout Description
28579 ignore The color is ignored
28580 \end_layout
28581
28582 \begin_layout Description
28583 inherit The color is inherited
28584 \end_layout
28585
28586 \begin_layout Description
28587 none
28588 \family roman
28589 \series medium
28590 \shape up
28591 \size normal
28592 \emph off
28593 \bar no
28594 \strikeout off
28595 \uuline off
28596 \uwave off
28597 \noun off
28598 \color none
28599  No particular color – clear or default
28600 \end_layout
28601
28602 \begin_layout Section
28603 Static colors
28604 \end_layout
28605
28606 \begin_layout Standard
28607 These are fixed colors that cannot me customized:
28608 \end_layout
28609
28610 \begin_layout Description
28611 black
28612 \end_layout
28613
28614 \begin_layout Description
28615 white
28616 \end_layout
28617
28618 \begin_layout Description
28619 blue
28620 \end_layout
28621
28622 \begin_layout Description
28623 brown
28624 \end_layout
28625
28626 \begin_layout Description
28627 cyan
28628 \end_layout
28629
28630 \begin_layout Description
28631 darkgray
28632 \end_layout
28633
28634 \begin_layout Description
28635 gray
28636 \end_layout
28637
28638 \begin_layout Description
28639 green
28640 \end_layout
28641
28642 \begin_layout Description
28643 lightgray
28644 \end_layout
28645
28646 \begin_layout Description
28647 lime
28648 \end_layout
28649
28650 \begin_layout Description
28651 magenta
28652 \end_layout
28653
28654 \begin_layout Description
28655 olive
28656 \end_layout
28657
28658 \begin_layout Description
28659 orange
28660 \end_layout
28661
28662 \begin_layout Description
28663 pink
28664 \end_layout
28665
28666 \begin_layout Description
28667 purple
28668 \end_layout
28669
28670 \begin_layout Description
28671 red
28672 \end_layout
28673
28674 \begin_layout Description
28675 teal
28676 \end_layout
28677
28678 \begin_layout Description
28679 violet
28680 \end_layout
28681
28682 \begin_layout Description
28683 yellow
28684 \end_layout
28685
28686 \begin_layout Section
28687 Dynamic colors
28688 \end_layout
28689
28690 \begin_layout Standard
28691 These are the colors allocated to specific elements in 
28692 \begin_inset Info
28693 type  "menu"
28694 arg   "dialog-show prefs"
28695 \end_inset
28696
28697 :
28698 \end_layout
28699
28700 \begin_layout Description
28701 added_space Added space color
28702 \end_layout
28703
28704 \begin_layout Description
28705 addedtext Added text color
28706 \end_layout
28707
28708 \begin_layout Description
28709 appendix Appendix marker color
28710 \end_layout
28711
28712 \begin_layout Description
28713 background Background color
28714 \end_layout
28715
28716 \begin_layout Description
28717 bottomarea Bottom area color
28718 \end_layout
28719
28720 \begin_layout Description
28721 branchlabel Label color for branches
28722 \end_layout
28723
28724 \begin_layout Description
28725 buttonbg Color used for button background
28726 \end_layout
28727
28728 \begin_layout Description
28729 buttonframe Color for inset button frames
28730 \end_layout
28731
28732 \begin_layout Description
28733 buttonhoverbg Color used for button background under focus
28734 \end_layout
28735
28736 \begin_layout Description
28737 changebar Changebar color
28738 \end_layout
28739
28740 \begin_layout Description
28741 changedtextauthor1 Changed text color author 1
28742 \end_layout
28743
28744 \begin_layout Description
28745 changedtextauthor2 Changed text color author 2
28746 \end_layout
28747
28748 \begin_layout Description
28749 changedtextauthor3 Changed text color author 3
28750 \end_layout
28751
28752 \begin_layout Description
28753 changedtextauthor4 Changed text color author 4
28754 \end_layout
28755
28756 \begin_layout Description
28757 changedtextauthor5 Changed text color author 5
28758 \end_layout
28759
28760 \begin_layout Description
28761 collapsible Collapsible insets text color
28762 \end_layout
28763
28764 \begin_layout Description
28765 collapsibleframe Collapsible insets framecolor
28766 \end_layout
28767
28768 \begin_layout Description
28769 command Text color for command insets
28770 \end_layout
28771
28772 \begin_layout Description
28773 commandbg Background color for command insets
28774 \end_layout
28775
28776 \begin_layout Description
28777 commandframe Frame color for command insets
28778 \end_layout
28779
28780 \begin_layout Description
28781 comment Label color for comments
28782 \end_layout
28783
28784 \begin_layout Description
28785 commentbg Background color of comments
28786 \end_layout
28787
28788 \begin_layout Description
28789 cursor Cursor color
28790 \end_layout
28791
28792 \begin_layout Description
28793 deletedtext Deleted text color
28794 \end_layout
28795
28796 \begin_layout Description
28797 deletedtextmodifier Deleted text modifying color
28798 \end_layout
28799
28800 \begin_layout Description
28801 depthbar Color for the depth bars in the margin
28802 \end_layout
28803
28804 \begin_layout Description
28805 eolmarker End of line marker color
28806 \end_layout
28807
28808 \begin_layout Description
28809 error Color of the \SpecialChar LaTeX
28810  error box
28811 \end_layout
28812
28813 \begin_layout Description
28814 footlabel Label color for footnotes
28815 \end_layout
28816
28817 \begin_layout Description
28818 foreground Foreground color
28819 \end_layout
28820
28821 \begin_layout Description
28822 graphicsbg Graphics inset background color
28823 \end_layout
28824
28825 \begin_layout Description
28826 greyedoutbg Background color of greyedout inset
28827 \end_layout
28828
28829 \begin_layout Description
28830 greyedoutlabel Label color for greyedout insets
28831 \end_layout
28832
28833 \begin_layout Description
28834 greyedouttext Color for greyedout inset text
28835 \end_layout
28836
28837 \begin_layout Description
28838 indexlabel Label color for index insets
28839 \end_layout
28840
28841 \begin_layout Description
28842 inlinecompletion Inline completion color
28843 \end_layout
28844
28845 \begin_layout Description
28846 insetbg Inset marker background color
28847 \end_layout
28848
28849 \begin_layout Description
28850 insetframe Inset marker frame color
28851 \end_layout
28852
28853 \begin_layout Description
28854 language Color for marking foreign language words
28855 \end_layout
28856
28857 \begin_layout Description
28858 latex Text color in \SpecialChar LaTeX
28859  mode
28860 \end_layout
28861
28862 \begin_layout Description
28863 listingsbg Background color of listings inset
28864 \end_layout
28865
28866 \begin_layout Description
28867 marginlabel Label color for margin notes
28868 \end_layout
28869
28870 \begin_layout Description
28871 math Math inset text color
28872 \end_layout
28873
28874 \begin_layout Description
28875 mathbg Math inset background color
28876 \end_layout
28877
28878 \begin_layout Description
28879 mathcorners Math inset frame color not under focus
28880 \end_layout
28881
28882 \begin_layout Description
28883 mathframe Math inset frame color under focus
28884 \end_layout
28885
28886 \begin_layout Description
28887 mathline Math line color
28888 \end_layout
28889
28890 \begin_layout Description
28891 mathmacrobg Macro math inset background color
28892 \end_layout
28893
28894 \begin_layout Description
28895 mathmacroblend Macro math blended color
28896 \end_layout
28897
28898 \begin_layout Description
28899 mathmacroframe Macro math frame color
28900 \end_layout
28901
28902 \begin_layout Description
28903 mathmacrohoverbg Macro math inset background color hovered
28904 \end_layout
28905
28906 \begin_layout Description
28907 mathmacrolabel Macro math label color
28908 \end_layout
28909
28910 \begin_layout Description
28911 mathmacronewarg Macro template color for new parameters
28912 \end_layout
28913
28914 \begin_layout Description
28915 mathmacrooldarg Macro template color for old parameters
28916 \end_layout
28917
28918 \begin_layout Description
28919 newpage New page color
28920 \end_layout
28921
28922 \begin_layout Description
28923 nonunique_inlinecompletion Inline completion color for the non-unique part
28924 \end_layout
28925
28926 \begin_layout Description
28927 note Label color for notes
28928 \end_layout
28929
28930 \begin_layout Description
28931 notebg Background color of notes
28932 \end_layout
28933
28934 \begin_layout Description
28935 pagebreak Page break/line break color
28936 \end_layout
28937
28938 \begin_layout Description
28939 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28940 \end_layout
28941
28942 \begin_layout Description
28943 phantomtext Text color for phantom insets
28944 \end_layout
28945
28946 \begin_layout Description
28947 preview The color used for previews
28948 \end_layout
28949
28950 \begin_layout Description
28951 previewframe Preview frame color
28952 \end_layout
28953
28954 \begin_layout Description
28955 regexpframe Color for regexp frame
28956 \end_layout
28957
28958 \begin_layout Description
28959 scroll Color that indicates when a row can be scrolled 
28960 \end_layout
28961
28962 \begin_layout Description
28963 selection Background color of selected text
28964 \end_layout
28965
28966 \begin_layout Description
28967 selectiontext Foreground color of selected text
28968 \end_layout
28969
28970 \begin_layout Description
28971 shadedbg Background color of shaded box
28972 \end_layout
28973
28974 \begin_layout Description
28975 special Special chars text color
28976 \end_layout
28977
28978 \begin_layout Description
28979 tabularline Table line color
28980 \end_layout
28981
28982 \begin_layout Description
28983 tabularonoffline Table line color
28984 \end_layout
28985
28986 \begin_layout Description
28987 urllabel Label color for URL insets
28988 \end_layout
28989
28990 \begin_layout Description
28991 urltext Color for URL inset text
28992 \end_layout
28993
28994 \end_body
28995 \end_document