]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Extend fix for #7404 to allow any inset collapsible to be edited
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 565
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \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 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
134 \end_header
135
136 \begin_body
137
138 \begin_layout Title
139 Customizing \SpecialChar LyX
140 : Features for the Advanced User
141 \end_layout
142
143 \begin_layout Author
144 by the \SpecialChar LyX
145  Team
146 \begin_inset Foot
147 status collapsed
148
149 \begin_layout Plain Layout
150 \noindent
151 If you have comments or error corrections, please send them to the \SpecialChar LyX
152  Documentatio
153 n mailing list, 
154 \begin_inset CommandInset href
155 LatexCommand href
156 target "lyx-docs@lists.lyx.org"
157 type "mailto:"
158 literal "false"
159
160 \end_inset
161
162 .
163  Include 
164 \begin_inset Quotes eld
165 \end_inset
166
167 [Customization]
168 \begin_inset Quotes erd
169 \end_inset
170
171  in the subject header, and please cc the current maintainer of this file,
172  Richard Heck <rgheck@comcast.net>.
173 \end_layout
174
175 \end_inset
176
177
178 \begin_inset Newline newline
179 \end_inset
180
181
182 \begin_inset Newline newline
183 \end_inset
184
185 Version 2.3.x 
186 \end_layout
187
188 \begin_layout Standard
189 \begin_inset CommandInset toc
190 LatexCommand tableofcontents
191
192 \end_inset
193
194
195 \end_layout
196
197 \begin_layout Standard
198 \begin_inset Note Note
199 status open
200
201 \begin_layout Plain Layout
202 Please use change tracking when modifying this document.
203  This makes it easier for our translators to recognize things that have
204  been changed, and it helps the maintainer keep up-to-date with what's been
205  done.
206 \end_layout
207
208 \end_inset
209
210
211 \end_layout
212
213 \begin_layout Chapter
214 Introduction
215 \end_layout
216
217 \begin_layout Standard
218 This manual covers the customization features present in \SpecialChar LyX
219 .
220  In it, we discuss issues like keyboard shortcuts, screen previewing options,
221  printer options, sending commands to \SpecialChar LyX
222  via the \SpecialChar LyX
223  Server, internationalization,
224  installing new \SpecialChar LaTeX
225  classes and \SpecialChar LyX
226  layouts, etc.
227  We can't possibly hope to touch on everything you can change—our developers
228  add new features faster than we can document them—but we will explain the
229  most common customizations and hopefully point you in the right direction
230  for some of the more obscure ones.
231 \end_layout
232
233 \begin_layout Standard
234 \begin_inset Branch OutDated
235 inverted 0
236 status collapsed
237
238 \begin_layout Standard
239 Information from previous versions of this document that now seems to be
240  outdated is contained in the OutDated branch of this document.
241  By default, this information will not appear in the \SpecialChar LaTeX
242  output.
243 \end_layout
244
245 \end_inset
246
247
248 \end_layout
249
250 \begin_layout Chapter
251 \SpecialChar LyX
252  configuration files
253 \end_layout
254
255 \begin_layout Standard
256 This chapter aims to help you to find your way through the \SpecialChar LyX
257  configuration
258  files.
259  Before continuing to read this chapter, you should find out where your
260  \SpecialChar LyX
261  library and user directories are by using 
262 \begin_inset Flex Noun
263 status collapsed
264
265 \begin_layout Plain Layout
266 Help\SpecialChar menuseparator
267 About
268 \begin_inset space ~
269 \end_inset
270
271 LyX
272 \end_layout
273
274 \end_inset
275
276 .
277  The library directory is the place where \SpecialChar LyX
278  places its system-wide configuration
279  files; the user directory is where you can place your modified versions.
280  We will call the former 
281 \begin_inset Flex Code
282 status collapsed
283
284 \begin_layout Plain Layout
285 LyXDir
286 \end_layout
287
288 \end_inset
289
290  and the latter 
291 \begin_inset Flex Noun
292 status collapsed
293
294 \begin_layout Plain Layout
295 UserDir
296 \end_layout
297
298 \end_inset
299
300  in the remainder of this document.
301  
302 \end_layout
303
304 \begin_layout Section
305 What's in 
306 \begin_inset Flex Code
307 status collapsed
308
309 \begin_layout Plain Layout
310 LyXDir
311 \end_layout
312
313 \end_inset
314
315 ?
316 \end_layout
317
318 \begin_layout Standard
319 \begin_inset Flex Code
320 status collapsed
321
322 \begin_layout Plain Layout
323 LyXDir
324 \end_layout
325
326 \end_inset
327
328  and its sub-directories contain a number of files and that can be used
329  to customize \SpecialChar LyX
330 's behavior.
331  You can change many of these files from within \SpecialChar LyX
332  itself through the 
333 \begin_inset Flex Noun
334 status collapsed
335
336 \begin_layout Plain Layout
337 Tools\SpecialChar menuseparator
338 Preferences
339 \end_layout
340
341 \end_inset
342
343  dialog.
344  Most customization that you will want to do in \SpecialChar LyX
345  is possible through this
346  dialog.
347  However, many other inner aspects of \SpecialChar LyX
348  can be customized by modifying the
349  files in 
350 \begin_inset Flex Code
351 status collapsed
352
353 \begin_layout Plain Layout
354 LyXDir
355 \end_layout
356
357 \end_inset
358
359 .
360  These files fall in different categories, described in the following subsection
361 s.
362 \end_layout
363
364 \begin_layout Subsection
365 Automatically generated files
366 \end_layout
367
368 \begin_layout Standard
369 The files, which are to be found in 
370 \begin_inset Flex Noun
371 status collapsed
372
373 \begin_layout Plain Layout
374 UserDir
375 \end_layout
376
377 \end_inset
378
379 , are generated when you configure \SpecialChar LyX
380 .
381  They contain various default values that are guessed by inspection.
382  In general, it is not a good idea to modify them, since they might be overwritt
383 en at any time.
384 \end_layout
385
386 \begin_layout Labeling
387 \labelwidthstring 00.00.0000
388 \begin_inset Flex Code
389 status collapsed
390
391 \begin_layout Plain Layout
392 lyxrc.defaults
393 \end_layout
394
395 \end_inset
396
397  contains defaults for various commands.
398 \end_layout
399
400 \begin_layout Labeling
401 \labelwidthstring 00.00.0000
402 \begin_inset Flex Code
403 status collapsed
404
405 \begin_layout Plain Layout
406 packages.lst
407 \end_layout
408
409 \end_inset
410
411  contains the list of packages that have been recognized by \SpecialChar LyX
412 .
413  It is currently unused by the \SpecialChar LyX
414  program itself, but the information extracted,
415  and more, is made available with 
416 \begin_inset Flex Noun
417 status collapsed
418
419 \begin_layout Plain Layout
420 Help\SpecialChar menuseparator
421 \SpecialChar LaTeX
422
423 \begin_inset space ~
424 \end_inset
425
426 Configuration
427 \end_layout
428
429 \end_inset
430
431 .
432 \end_layout
433
434 \begin_layout Labeling
435 \labelwidthstring 00.00.0000
436 \begin_inset Flex Code
437 status collapsed
438
439 \begin_layout Plain Layout
440 textclass.lst
441 \end_layout
442
443 \end_inset
444
445  the list of text classes that have been found in your 
446 \begin_inset Flex Code
447 status collapsed
448
449 \begin_layout Plain Layout
450 layout/
451 \end_layout
452
453 \end_inset
454
455  directories, along with the associated \SpecialChar LaTeX
456  document class and their description.
457 \end_layout
458
459 \begin_layout Labeling
460 \labelwidthstring 00.00.0000
461 \begin_inset Flex Code
462 status collapsed
463
464 \begin_layout Plain Layout
465 lyxmodules.lst
466 \end_layout
467
468 \end_inset
469
470  the list of layout modules found in your 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 layout/
476 \end_layout
477
478 \end_inset
479
480  directories
481 \end_layout
482
483 \begin_layout Labeling
484 \labelwidthstring 00.00.0000
485 \begin_inset Flex Code
486 status collapsed
487
488 \begin_layout Plain Layout
489 *files.lst
490 \end_layout
491
492 \end_inset
493
494  lists of various sorts of \SpecialChar LaTeX
495 -related files found on your system
496 \end_layout
497
498 \begin_layout Labeling
499 \labelwidthstring 00.00.0000
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 doc/\SpecialChar LaTeX
505 Config.lyx
506 \end_layout
507
508 \end_inset
509
510  is automatically generated during configuration from the file 
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 \SpecialChar LaTeX
516 Config.lyx.in
517 \end_layout
518
519 \end_inset
520
521 .
522  It contains information on your \SpecialChar LaTeX
523  configuration.
524 \end_layout
525
526 \begin_layout Subsection
527 Directories
528 \end_layout
529
530 \begin_layout Standard
531 These directories are duplicated between 
532 \begin_inset Flex Code
533 status collapsed
534
535 \begin_layout Plain Layout
536 LyXDir
537 \end_layout
538
539 \end_inset
540
541  and 
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 UserDir
547 \end_layout
548
549 \end_inset
550
551 .
552  If a particular files exists in both places, the one in 
553 \begin_inset Flex Code
554 status collapsed
555
556 \begin_layout Plain Layout
557 UserDir
558 \end_layout
559
560 \end_inset
561
562  will be used.
563 \end_layout
564
565 \begin_layout Labeling
566 \labelwidthstring 00.00.0000
567 \begin_inset Flex Code
568 status collapsed
569
570 \begin_layout Plain Layout
571 bind/
572 \end_layout
573
574 \end_inset
575
576  this directory contains files with the extension 
577 \begin_inset Flex Code
578 status collapsed
579
580 \begin_layout Plain Layout
581 .bind
582 \end_layout
583
584 \end_inset
585
586  that define the keybindings used in \SpecialChar LyX
587 .
588  If there exists an internationalized version of the bind file named 
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593 $LANG_xxx.bind
594 \end_layout
595
596 \end_inset
597
598 , that will be used first.
599 \end_layout
600
601 \begin_layout Labeling
602 \labelwidthstring 00.00.0000
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607 citeengines/
608 \end_layout
609
610 \end_inset
611
612  contains files with the extension 
613 \begin_inset Flex Code
614 status collapsed
615
616 \begin_layout Plain Layout
617 .citeengine
618 \end_layout
619
620 \end_inset
621
622  which define the diverse citation possibilities (natbib, biblatex etc.).
623  See 
624 \begin_inset CommandInset ref
625 LatexCommand ref
626 reference "subsec:Cite-Engine-Files"
627 plural "false"
628 caps "false"
629 noprefix "false"
630
631 \end_inset
632
633  for details.
634 \end_layout
635
636 \begin_layout Labeling
637 \labelwidthstring 00.00.0000
638 \begin_inset Flex Code
639 status collapsed
640
641 \begin_layout Plain Layout
642 clipart/
643 \end_layout
644
645 \end_inset
646
647  contains graphics files that can be included in documents.
648  
649 \end_layout
650
651 \begin_layout Labeling
652 \labelwidthstring 00.00.0000
653 \begin_inset Flex Code
654 status collapsed
655
656 \begin_layout Plain Layout
657 doc/
658 \end_layout
659
660 \end_inset
661
662  contains \SpecialChar LyX
663  documentation files (including the one you are currently reading).
664  The file 
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669 \SpecialChar LaTeX
670 Config.lyx
671 \end_layout
672
673 \end_inset
674
675  deserves special attention, as noted above.
676  The internationalized help docs are in subdirectories 
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 doc/xx
682 \end_layout
683
684 \end_inset
685
686  where 
687 \begin_inset Quotes eld
688 \end_inset
689
690 xx
691 \begin_inset Quotes erd
692 \end_inset
693
694  is the ISO language code.
695  See 
696 \begin_inset CommandInset ref
697 LatexCommand ref
698 reference "cha:Internationalizing-LyX"
699
700 \end_inset
701
702  for details.
703 \end_layout
704
705 \begin_layout Labeling
706 \labelwidthstring 00.00.0000
707 \begin_inset Flex Code
708 status collapsed
709
710 \begin_layout Plain Layout
711 examples/
712 \end_layout
713
714 \end_inset
715
716  contains example files that explain how to use some features.
717  In the file browser, press the 
718 \begin_inset Flex Noun
719 status collapsed
720
721 \begin_layout Plain Layout
722 Examples
723 \end_layout
724
725 \end_inset
726
727  button to get there.
728 \end_layout
729
730 \begin_layout Labeling
731 \labelwidthstring 00.00.0000
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 images/
737 \end_layout
738
739 \end_inset
740
741  contains image files that are used by the 
742 \begin_inset Flex Noun
743 status collapsed
744
745 \begin_layout Plain Layout
746 Document
747 \end_layout
748
749 \end_inset
750
751  dialog.
752  In addition, it also contains the individual icons used in the toolbar
753  and the banners that can be shown when \SpecialChar LyX
754  is launched.
755 \end_layout
756
757 \begin_layout Labeling
758 \labelwidthstring 00.00.0000
759 \begin_inset Flex Code
760 status collapsed
761
762 \begin_layout Plain Layout
763 kbd/
764 \end_layout
765
766 \end_inset
767
768  contains keyboard keymapping files.
769  See 
770 \begin_inset CommandInset ref
771 LatexCommand ref
772 reference "sec:International-Keymap-Stuff"
773
774 \end_inset
775
776  for details.
777 \end_layout
778
779 \begin_layout Labeling
780 \labelwidthstring 00.00.0000
781 \begin_inset Flex Code
782 status collapsed
783
784 \begin_layout Plain Layout
785 layouts/
786 \end_layout
787
788 \end_inset
789
790  contains the text class and module files described in 
791 \begin_inset CommandInset ref
792 LatexCommand ref
793 reference "cha:Installing-New-Document"
794
795 \end_inset
796
797 .
798 \end_layout
799
800 \begin_layout Labeling
801 \labelwidthstring 00.00.0000
802 \begin_inset Flex Code
803 status collapsed
804
805 \begin_layout Plain Layout
806 lyx2lyx
807 \end_layout
808
809 \end_inset
810
811  contains the 
812 \begin_inset Flex Code
813 status collapsed
814
815 \begin_layout Plain Layout
816 lyx2lyx
817 \end_layout
818
819 \end_inset
820
821  Python scripts used to convert between \SpecialChar LyX
822  versions.
823  These can be run from the command line if, say, you want to batch-convert
824  files.
825 \end_layout
826
827 \begin_layout Labeling
828 \labelwidthstring 00.00.0000
829 \begin_inset Flex Code
830 status collapsed
831
832 \begin_layout Plain Layout
833 scripts/
834 \end_layout
835
836 \end_inset
837
838  contains some files that demonstrate the capabilities of the 
839 \begin_inset Flex Noun
840 status collapsed
841
842 \begin_layout Plain Layout
843 External
844 \begin_inset space ~
845 \end_inset
846
847 Template
848 \end_layout
849
850 \end_inset
851
852  feature.
853  Also contains some scripts used by \SpecialChar LyX
854  itself.
855 \end_layout
856
857 \begin_layout Labeling
858 \labelwidthstring 00.00.0000
859 \begin_inset Flex Code
860 status collapsed
861
862 \begin_layout Plain Layout
863 templates/
864 \end_layout
865
866 \end_inset
867
868  contains the standard \SpecialChar LyX
869  template files described in 
870 \begin_inset CommandInset ref
871 LatexCommand ref
872 reference "subsec:Creating-Templates"
873
874 \end_inset
875
876 .
877 \end_layout
878
879 \begin_layout Labeling
880 \labelwidthstring 00.00.0000
881 \begin_inset Flex Code
882 status collapsed
883
884 \begin_layout Plain Layout
885 ui/
886 \end_layout
887
888 \end_inset
889
890  contains files with the extension 
891 \begin_inset Flex Code
892 status collapsed
893
894 \begin_layout Plain Layout
895 .ui
896 \end_layout
897
898 \end_inset
899
900  that define the user interface to \SpecialChar LyX
901 .
902  That is, the files define which items appear in which menus and the items
903  appearing on the toolbar.
904 \end_layout
905
906 \begin_layout Labeling
907 \labelwidthstring 00.00.0000
908 \begin_inset Flex Code
909 status collapsed
910
911 \begin_layout Plain Layout
912 xtemplates/
913 \end_layout
914
915 \end_inset
916
917  contains files with the extension 
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 .xtemplate
923 \end_layout
924
925 \end_inset
926
927  which define the templates for the insertion of external material to a
928  \SpecialChar LyX
929  document; see 
930 \begin_inset CommandInset ref
931 LatexCommand ref
932 reference "chap:Including-External-Material"
933
934 \end_inset
935
936 .
937 \end_layout
938
939 \begin_layout Subsection
940 Files you don't want to modify
941 \end_layout
942
943 \begin_layout Standard
944 These files are used internally by \SpecialChar LyX
945  and you generally do not need to modify
946  them unless you are a developer.
947 \end_layout
948
949 \begin_layout Labeling
950 \labelwidthstring 00.00.0000
951 \begin_inset Flex Code
952 status collapsed
953
954 \begin_layout Plain Layout
955 CREDITS
956 \end_layout
957
958 \end_inset
959
960  this file contains the list of \SpecialChar LyX
961  developers.
962  The contents are displayed with the menu entry 
963 \begin_inset Flex Noun
964 status collapsed
965
966 \begin_layout Plain Layout
967 Help\SpecialChar menuseparator
968 About
969 \begin_inset space ~
970 \end_inset
971
972 LyX
973 \end_layout
974
975 \end_inset
976
977 .
978 \end_layout
979
980 \begin_layout Labeling
981 \labelwidthstring 00.00.0000
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986 chkconfig.ltx
987 \end_layout
988
989 \end_inset
990
991  this is a \SpecialChar LaTeX
992  script used during the configuration process.
993  Do not run directly.
994 \end_layout
995
996 \begin_layout Labeling
997 \labelwidthstring 00.00.0000
998 \begin_inset Flex Code
999 status collapsed
1000
1001 \begin_layout Plain Layout
1002 configure.py
1003 \end_layout
1004
1005 \end_inset
1006
1007  this is a Python script that is used to re-configure \SpecialChar LyX
1008 .
1009  It creates configuration files in the directory it was run from.
1010 \end_layout
1011
1012 \begin_layout Subsection
1013 Other files needing a line or two
1014 \end_layout
1015
1016 \begin_layout Labeling
1017 \labelwidthstring 00.00.0000
1018 \begin_inset Flex Code
1019 status collapsed
1020
1021 \begin_layout Plain Layout
1022 encodings
1023 \end_layout
1024
1025 \end_inset
1026
1027  this contains tables describing how different character encodings can be
1028  mapped to Unicode
1029 \end_layout
1030
1031 \begin_layout Labeling
1032 \labelwidthstring 00.00.0000
1033 \begin_inset Flex Code
1034 status collapsed
1035
1036 \begin_layout Plain Layout
1037 languages
1038 \end_layout
1039
1040 \end_inset
1041
1042  this file contains a list of all the languages currently supported by \SpecialChar LyX
1043 .
1044 \end_layout
1045
1046 \begin_layout Labeling
1047 \labelwidthstring 00.00.0000
1048 \begin_inset Flex Code
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 latexfonts
1053 \end_layout
1054
1055 \end_inset
1056
1057  contains information about the supported fonts.
1058 \end_layout
1059
1060 \begin_layout Labeling
1061 \labelwidthstring 00.00.0000
1062 \begin_inset Flex Code
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066 layouttranslations
1067 \end_layout
1068
1069 \end_inset
1070
1071  this file contains translations for internationalized paragraph styles
1072  (see 
1073 \begin_inset CommandInset ref
1074 LatexCommand ref
1075 reference "subsec:I18n"
1076
1077 \end_inset
1078
1079 ).
1080 \end_layout
1081
1082 \begin_layout Labeling
1083 \labelwidthstring 00.00.0000
1084 \begin_inset Flex Code
1085 status collapsed
1086
1087 \begin_layout Plain Layout
1088 unicodesymbols
1089 \end_layout
1090
1091 \end_inset
1092
1093  this file contains information about Unicode-encoded glyphs and the way
1094  they are supported by \SpecialChar LyX
1095  via \SpecialChar LaTeX
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 Your local configuration directory
1101 \end_layout
1102
1103 \begin_layout Standard
1104 Even if you are using \SpecialChar LyX
1105  as an unprivileged user, you might want to change
1106  \SpecialChar LyX
1107  configuration for your own use.
1108  The 
1109 \begin_inset Flex Code
1110 status collapsed
1111
1112 \begin_layout Plain Layout
1113 UserDir
1114 \end_layout
1115
1116 \end_inset
1117
1118  directory contains all your personal configuration files.
1119  This is the directory described as 
1120 \begin_inset Quotes eld
1121 \end_inset
1122
1123 user directory
1124 \begin_inset Quotes erd
1125 \end_inset
1126
1127  in 
1128 \begin_inset Flex Noun
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 Help\SpecialChar menuseparator
1133 About
1134 \begin_inset space ~
1135 \end_inset
1136
1137 LyX
1138 \end_layout
1139
1140 \end_inset
1141
1142 .
1143  This directory is used as a mirror of 
1144 \begin_inset Flex Code
1145 status collapsed
1146
1147 \begin_layout Plain Layout
1148 LyXDir
1149 \end_layout
1150
1151 \end_inset
1152
1153 , which means that every file in 
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158 UserDir
1159 \end_layout
1160
1161 \end_inset
1162
1163  is a replacement for the corresponding file in 
1164 \begin_inset Flex Code
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 LyXDir
1169 \end_layout
1170
1171 \end_inset
1172
1173 .
1174  Any configuration file described in the above sections can be placed either
1175  in the system-wide directory, in which case it will affect all users, or
1176  in your local directory for your own use.
1177 \end_layout
1178
1179 \begin_layout Standard
1180 To make things clearer, let's provide a few examples:
1181 \end_layout
1182
1183 \begin_layout Itemize
1184 The preferences set in the 
1185 \begin_inset Flex Noun
1186 status collapsed
1187
1188 \begin_layout Plain Layout
1189 Tools\SpecialChar menuseparator
1190 Preferences
1191 \end_layout
1192
1193 \end_inset
1194
1195  dialog are saved to a file 
1196 \begin_inset Flex Code
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 preferences
1201 \end_layout
1202
1203 \end_inset
1204
1205  in 
1206 \begin_inset Flex Code
1207 status collapsed
1208
1209 \begin_layout Plain Layout
1210 UserDir
1211 \end_layout
1212
1213 \end_inset
1214
1215 .
1216 \end_layout
1217
1218 \begin_layout Itemize
1219 When you reconfigure using 
1220 \begin_inset Flex Noun
1221 status collapsed
1222
1223 \begin_layout Plain Layout
1224 Tools\SpecialChar menuseparator
1225 Reconfigure
1226 \end_layout
1227
1228 \end_inset
1229
1230 , \SpecialChar LyX
1231  runs the 
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 configure.py
1237 \end_layout
1238
1239 \end_inset
1240
1241  script, and the resulting files are written in your local configuration
1242  directory.
1243  This means that any additional text class file that you might have added
1244  in 
1245 \begin_inset Flex Code
1246 status collapsed
1247
1248 \begin_layout Plain Layout
1249 UserDir/layouts
1250 \end_layout
1251
1252 \end_inset
1253
1254  will be added to the list of classes in the 
1255 \begin_inset Flex Noun
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259 Document\SpecialChar menuseparator
1260 Settings
1261 \end_layout
1262
1263 \end_inset
1264
1265  dialog.
1266 \end_layout
1267
1268 \begin_layout Itemize
1269 If you get some updated documentation from \SpecialChar LyX
1270  ftp site and cannot install
1271  it because you do not have sysadmin rights on your system, you can just
1272  copy the files in 
1273 \begin_inset Flex Code
1274 status collapsed
1275
1276 \begin_layout Plain Layout
1277 UserDir/doc/
1278 \end_layout
1279
1280 \end_inset
1281
1282  and the items in the 
1283 \begin_inset Flex Noun
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 Help
1288 \end_layout
1289
1290 \end_inset
1291
1292  menu will open them!
1293 \end_layout
1294
1295 \begin_layout Section
1296 Running \SpecialChar LyX
1297  with multiple configurations
1298 \end_layout
1299
1300 \begin_layout Standard
1301 The configuration freedom of the local configuration directory may not suffice
1302  if you want to have more than one configuration at your disposal.
1303  For example, you may want to be use different key bindings or printer settings
1304  at different times.
1305  You can achieve this by having several such directories.
1306  You then specify which directory to use at run-time.
1307 \end_layout
1308
1309 \begin_layout Standard
1310 Invoking \SpecialChar LyX
1311  with the command line switch 
1312 \begin_inset Flex Code
1313 status collapsed
1314
1315 \begin_layout Plain Layout
1316 -userdir
1317 \end_layout
1318
1319 \end_inset
1320
1321  
1322 \emph on
1323 <some directory>
1324 \emph default
1325  instructs the program to read the configuration from that directory, and
1326  not from the default directory.
1327  (You can determine the default directory by running \SpecialChar LyX
1328  without the 
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 -userdir
1334 \end_layout
1335
1336 \end_inset
1337
1338  switch.) If the specified directory does not exist, \SpecialChar LyX
1339  offers to create it
1340  for you, just like it does for the default directory on the first time
1341  you run the program.
1342  You can modify the configuration options in this additional user directory
1343  exactly as you would for the default directory.
1344  These directories are completely independent (but read on).
1345  Note that setting the environment variable 
1346 \begin_inset Flex Code
1347 status collapsed
1348
1349 \begin_layout Plain Layout
1350 LYX_USERDIR_VER
1351 \end_layout
1352
1353 \end_inset
1354
1355  to some value has exactly the same effect.
1356 \end_layout
1357
1358 \begin_layout Standard
1359 Having several configurations also requires more maintenance: if you want
1360  to add a new layout to 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 NewUserDir/layouts
1366 \end_layout
1367
1368 \end_inset
1369
1370  which you want available from all your configurations, you must add it
1371  to each directory separately.
1372  You can avoid this with the following trick: after \SpecialChar LyX
1373  creates the additional
1374  directory, most of the subdirectories (see above) are empty.
1375  If you want the new configuration to mirror an existing one, replace the
1376  empty subdirectory with a symbolic link to the matching subdirectory in
1377  the existing configuration.
1378  Take care with the 
1379 \begin_inset Flex Code
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 doc/
1384 \end_layout
1385
1386 \end_inset
1387
1388  subdirectory, however, since it contains a file written by the configuration
1389  script (also accessible through 
1390 \begin_inset Flex Noun
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 Tools\SpecialChar menuseparator
1395 Reconfigure
1396 \end_layout
1397
1398 \end_inset
1399
1400 ) which is configuration-specific.
1401 \end_layout
1402
1403 \begin_layout Chapter
1404 The Preferences dialog
1405 \end_layout
1406
1407 \begin_layout Standard
1408 All options of the preferences dialog are described in the Appendix 
1409 \emph on
1410 The Preferences Dialog
1411 \emph default
1412  in the 
1413 \emph on
1414 User's Guide
1415 \emph default
1416 .
1417  For some options you might find here more details.
1418 \end_layout
1419
1420 \begin_layout Section
1421 Formats
1422 \begin_inset CommandInset label
1423 LatexCommand label
1424 name "sec:Formats"
1425
1426 \end_inset
1427
1428
1429 \end_layout
1430
1431 \begin_layout Standard
1432 The first step is to define your file formats if they are not already defined.
1433  To do so, open the 
1434 \begin_inset Flex Noun
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 Tools\SpecialChar menuseparator
1439 Preferences
1440 \end_layout
1441
1442 \end_inset
1443
1444  dialog.
1445  Under 
1446 \begin_inset Flex Noun
1447 status collapsed
1448
1449 \begin_layout Plain Layout
1450 File Handling\SpecialChar menuseparator
1451 File formats
1452 \end_layout
1453
1454 \end_inset
1455
1456  press the 
1457 \begin_inset Flex Noun
1458 status collapsed
1459
1460 \begin_layout Plain Layout
1461 New
1462 \end_layout
1463
1464 \end_inset
1465
1466  button to define your new format.
1467  The 
1468 \begin_inset Flex Noun
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 Format
1473 \end_layout
1474
1475 \end_inset
1476
1477  field contains the name used to identify the format in the GUI.
1478  The 
1479 \begin_inset Flex Noun
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 Short Name
1484 \end_layout
1485
1486 \end_inset
1487
1488  is used to identify the format internally.
1489  You will also need to enter a file extension.
1490  These are all required.
1491  The optional 
1492 \begin_inset Flex Noun
1493 status collapsed
1494
1495 \begin_layout Plain Layout
1496 Shortcut
1497 \end_layout
1498
1499 \end_inset
1500
1501  field is used to provide a keyboard shortcut on the menus.
1502  (For example, pressing 
1503 \begin_inset Flex Noun
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 Ctrl+D
1508 \end_layout
1509
1510 \end_inset
1511
1512  will 
1513 \begin_inset Flex Noun
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 Document\SpecialChar menuseparator
1518 View (Other Formats)\SpecialChar menuseparator
1519 DVI
1520 \end_layout
1521
1522 \end_inset
1523
1524 .) 
1525 \end_layout
1526
1527 \begin_layout Standard
1528 A Format can have a 
1529 \begin_inset Flex Noun
1530 status collapsed
1531
1532 \begin_layout Plain Layout
1533 Viewer
1534 \end_layout
1535
1536 \end_inset
1537
1538  and an 
1539 \begin_inset Flex Noun
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543 Editor
1544 \end_layout
1545
1546 \end_inset
1547
1548  associated with it.
1549  For example, you might want to use 
1550 \begin_inset Flex Noun
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 Ghostview
1555 \end_layout
1556
1557 \end_inset
1558
1559  to view PostScript files.
1560  You can enter the command needed to start the program in the corresponding
1561  fields.
1562  In defining this command, you can use the four variables listed in the
1563  next section.
1564  The viewer is launched when you view an image in \SpecialChar LyX
1565  or use the 
1566 \begin_inset Flex Noun
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570 Document\SpecialChar menuseparator
1571 View
1572 \end_layout
1573
1574 \end_inset
1575
1576  menu.
1577  The editor is for example launched when you right-click on an image and
1578  choose 
1579 \begin_inset Flex Noun
1580 status collapsed
1581
1582 \begin_layout Plain Layout
1583 Edit externally
1584 \end_layout
1585
1586 \end_inset
1587
1588  in the appearing context menu.
1589 \end_layout
1590
1591 \begin_layout Standard
1592 The 
1593 \begin_inset Flex Noun
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597 MIME
1598 \end_layout
1599
1600 \end_inset
1601
1602  type of a format is optional, but if it is specified, it must be unique
1603  across all formats.
1604  It is used to detect files of this format from the file contents.
1605  For some important file formats there is no MIME type officially registered
1606  with the 
1607 \begin_inset CommandInset href
1608 LatexCommand href
1609 name "IANA"
1610 target "http://www.iana.org/assignments/media-types/"
1611 literal "false"
1612
1613 \end_inset
1614
1615 .
1616  Therefore \SpecialChar LyX
1617  uses the extended list of MIME types as specified by 
1618 \begin_inset CommandInset href
1619 LatexCommand href
1620 name "freedesktop.org"
1621 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1622 literal "false"
1623
1624 \end_inset
1625
1626 .
1627 \end_layout
1628
1629 \begin_layout Standard
1630 The 
1631 \begin_inset Flex Noun
1632 status collapsed
1633
1634 \begin_layout Plain Layout
1635 Document format
1636 \end_layout
1637
1638 \end_inset
1639
1640  option tells \SpecialChar LyX
1641  that a format is suitable for document export.
1642  If this is set and if a suitable conversion route exists (see 
1643 \begin_inset CommandInset ref
1644 LatexCommand ref
1645 reference "sec:Converters"
1646
1647 \end_inset
1648
1649 ), the format will appear in the 
1650 \begin_inset Flex Noun
1651 status collapsed
1652
1653 \begin_layout Plain Layout
1654 File\SpecialChar menuseparator
1655 Export
1656 \end_layout
1657
1658 \end_inset
1659
1660  menu.
1661  The format will also appear in the 
1662 \begin_inset Flex Noun
1663 status collapsed
1664
1665 \begin_layout Plain Layout
1666 Document\SpecialChar menuseparator
1667 View
1668 \end_layout
1669
1670 \end_inset
1671
1672  menu if a viewer is specified for the format.
1673  Pure image formats, such as 
1674 \begin_inset Flex Code
1675 status collapsed
1676
1677 \begin_layout Plain Layout
1678 png
1679 \end_layout
1680
1681 \end_inset
1682
1683 , should not use this option.
1684  Formats that can both represent vector graphics and documents like 
1685 \begin_inset Flex Code
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 pdf
1690 \end_layout
1691
1692 \end_inset
1693
1694  should use it.
1695 \end_layout
1696
1697 \begin_layout Standard
1698 The option 
1699 \begin_inset Flex Noun
1700 status collapsed
1701
1702 \begin_layout Plain Layout
1703 Vector graphics format
1704 \end_layout
1705
1706 \end_inset
1707
1708  tells \SpecialChar LyX
1709  that a format can contain vector graphics.
1710  This information is used to determine the target format of included graphics
1711  for 
1712 \begin_inset Flex Noun
1713 status collapsed
1714
1715 \begin_layout Plain Layout
1716 pdflatex
1717 \end_layout
1718
1719 \end_inset
1720
1721  export.
1722  Included graphics may need to be converted to either 
1723 \begin_inset Flex Noun
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 pdf
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \begin_inset Flex Noun
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 png
1738 \end_layout
1739
1740 \end_inset
1741
1742 , or 
1743 \begin_inset Flex Noun
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 jpg
1748 \end_layout
1749
1750 \end_inset
1751
1752 , since 
1753 \begin_inset Flex Noun
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 pdflatex
1758 \end_layout
1759
1760 \end_inset
1761
1762  cannot handle other image formats.
1763  If an included graphic is not already in 
1764 \begin_inset Flex Noun
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 pdf
1769 \end_layout
1770
1771 \end_inset
1772
1773
1774 \begin_inset Flex Noun
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 png
1779 \end_layout
1780
1781 \end_inset
1782
1783 , or 
1784 \begin_inset Flex Noun
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 jpg
1789 \end_layout
1790
1791 \end_inset
1792
1793  format, it is converted to 
1794 \begin_inset Flex Noun
1795 status collapsed
1796
1797 \begin_layout Plain Layout
1798 pdf
1799 \end_layout
1800
1801 \end_inset
1802
1803  if the vector format option is set, and otherwise to 
1804 \begin_inset Flex Noun
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 png
1809 \end_layout
1810
1811 \end_inset
1812
1813 .
1814 \end_layout
1815
1816 \begin_layout Section
1817 Copiers
1818 \end_layout
1819
1820 \begin_layout Standard
1821 Since all conversions from one format to another take place in \SpecialChar LyX
1822 's temporary
1823  directory, it is sometimes necessary to modify a file before copying it
1824  to the temporary directory in order that the conversion may be performed.
1825 \begin_inset Foot
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 For example, the file may refer to other files—images, for example—using
1830  relative file names, and these may become invalid when the file is copied
1831  to the temporary directory.
1832 \end_layout
1833
1834 \end_inset
1835
1836  This is done by a Copier: It copies a file to (or from) the temporary directory
1837  and may modify it in the process.
1838 \end_layout
1839
1840 \begin_layout Standard
1841 The definitions of the copiers may use eight variables:
1842 \end_layout
1843
1844 \begin_layout Labeling
1845 \labelwidthstring 00.00.0000
1846 \begin_inset Flex Code
1847 status collapsed
1848
1849 \begin_layout Plain Layout
1850 $$s
1851 \end_layout
1852
1853 \end_inset
1854
1855  The \SpecialChar LyX
1856  system directory (e.
1857 \begin_inset space \thinspace{}
1858 \end_inset
1859
1860 g.
1861 \begin_inset space \space{}
1862 \end_inset
1863
1864
1865 \begin_inset Flex Noun
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 /usr/share/lyx
1870 \end_layout
1871
1872 \end_inset
1873
1874 ).
1875 \end_layout
1876
1877 \begin_layout Labeling
1878 \labelwidthstring 00.00.0000
1879 \begin_inset Flex Code
1880 status collapsed
1881
1882 \begin_layout Plain Layout
1883 $$i
1884 \end_layout
1885
1886 \end_inset
1887
1888  The input file
1889 \end_layout
1890
1891 \begin_layout Labeling
1892 \labelwidthstring 00.00.0000
1893 \begin_inset Flex Code
1894 status collapsed
1895
1896 \begin_layout Plain Layout
1897 $$o
1898 \end_layout
1899
1900 \end_inset
1901
1902  The output file
1903 \end_layout
1904
1905 \begin_layout Labeling
1906 \labelwidthstring 00.00.0000
1907 \begin_inset Flex Code
1908 status collapsed
1909
1910 \begin_layout Plain Layout
1911 $$b
1912 \end_layout
1913
1914 \end_inset
1915
1916  The base name (without filename extension) in the \SpecialChar LyX
1917  temporary directory
1918 \end_layout
1919
1920 \begin_layout Labeling
1921 \labelwidthstring 00.00.0000
1922 \begin_inset Flex Code
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 $$p
1927 \end_layout
1928
1929 \end_inset
1930
1931  The full directory path of the \SpecialChar LyX
1932  temporary directory
1933 \end_layout
1934
1935 \begin_layout Labeling
1936 \labelwidthstring 00.00.0000
1937 \begin_inset Flex Code
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 $$r
1942 \end_layout
1943
1944 \end_inset
1945
1946  The full pathname to the original \SpecialChar LyX
1947  file being processed
1948 \end_layout
1949
1950 \begin_layout Labeling
1951 \labelwidthstring 00.00.0000
1952 \begin_inset Flex Code
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956 $$f
1957 \end_layout
1958
1959 \end_inset
1960
1961  The filename (without any directory path) of the \SpecialChar LyX
1962  file.
1963 \end_layout
1964
1965 \begin_layout Labeling
1966 \labelwidthstring 00.00.0000
1967 \begin_inset Flex Code
1968 status collapsed
1969
1970 \begin_layout Plain Layout
1971 $$l
1972 \end_layout
1973
1974 \end_inset
1975
1976  The `\SpecialChar LaTeX
1977  name'
1978 \end_layout
1979
1980 \begin_layout Standard
1981 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1982 's 
1983 \series bold
1984
1985 \backslash
1986 include
1987 \series default
1988  command.
1989  It is relevant only when exporting files suitable for such inclusion.
1990 \end_layout
1991
1992 \begin_layout Standard
1993 Copiers can be used to do almost anything with output files.
1994  For example, suppose you want generated pdf files to be copied to a special
1995  directory, 
1996 \begin_inset Flex Code
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 /home/you/pdf/
2001 \end_layout
2002
2003 \end_inset
2004
2005 .
2006  Then you could write a shell script such as this one:
2007 \end_layout
2008
2009 \begin_layout Standard
2010 \begin_inset listings
2011 inline false
2012 status open
2013
2014 \begin_layout Plain Layout
2015
2016 #!/bin/bash
2017 \end_layout
2018
2019 \begin_layout Plain Layout
2020
2021 FROMFILE=$1
2022 \end_layout
2023
2024 \begin_layout Plain Layout
2025
2026 TOFILE=`basename $2`
2027 \end_layout
2028
2029 \begin_layout Plain Layout
2030
2031 cp $FROMFILE /home/you/pdf/$TOFILE
2032 \end_layout
2033
2034 \end_inset
2035
2036 Save it in your local \SpecialChar LyX
2037  directory—say, 
2038 \begin_inset Flex Code
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042 /home/you/.lyx/scripts/pdfcopier.sh
2043 \end_layout
2044
2045 \end_inset
2046
2047 —and make it executable, if you need to do so on your platform.
2048  Then, in the 
2049 \begin_inset Flex Noun
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053 Tools\SpecialChar menuseparator
2054 Preferences
2055 \end_layout
2056
2057 \end_inset
2058
2059  dialog, select under 
2060 \begin_inset Flex Noun
2061 status collapsed
2062
2063 \begin_layout Plain Layout
2064 File Handling\SpecialChar menuseparator
2065 File formats
2066 \end_layout
2067
2068 \end_inset
2069
2070  the 
2071 \begin_inset Flex Noun
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 PDF(pdflatex)
2076 \end_layout
2077
2078 \end_inset
2079
2080  format—or one of the other pdf formats—and enter 
2081 \begin_inset Flex Code
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085 pdfcopier.sh $$i $$o
2086 \end_layout
2087
2088 \end_inset
2089
2090  into the 
2091 \begin_inset Flex Noun
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095 Copier
2096 \end_layout
2097
2098 \end_inset
2099
2100  field.
2101  
2102 \end_layout
2103
2104 \begin_layout Standard
2105 Copiers are used by \SpecialChar LyX
2106  in various of its own conversions.
2107  For example, if appropriate programs are found, \SpecialChar LyX
2108  will automatically install
2109  copiers for the 
2110 \begin_inset Flex Noun
2111 status collapsed
2112
2113 \begin_layout Plain Layout
2114 HTML
2115 \end_layout
2116
2117 \end_inset
2118
2119  and 
2120 \begin_inset Flex Noun
2121 status collapsed
2122
2123 \begin_layout Plain Layout
2124 HTML
2125 \begin_inset space ~
2126 \end_inset
2127
2128 (MS Word)
2129 \end_layout
2130
2131 \end_inset
2132
2133  formats.
2134  When these formats are exported, the copier sees that not just the main
2135  HTML file but various associated files (style files, images, etc.) are also
2136  copied.
2137  All these files are written to a subdirectory of the directory in which
2138  the original \SpecialChar LyX
2139  file was found.
2140 \begin_inset Foot
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144 This copier can be customized.
2145  The optional 
2146 \begin_inset Quotes eld
2147 \end_inset
2148
2149 -e
2150 \begin_inset Quotes erd
2151 \end_inset
2152
2153  argument takes a comma-separated list of extensions to be copied; if it
2154  is omitted, all files will be copied.
2155  The 
2156 \begin_inset Quotes eld
2157 \end_inset
2158
2159 -t
2160 \begin_inset Quotes erd
2161 \end_inset
2162
2163  argument determines the extension added to the generated directory.
2164  By default, it is 
2165 \begin_inset Quotes eld
2166 \end_inset
2167
2168
2169 \begin_inset Flex Noun
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 LyXconv
2174 \end_layout
2175
2176 \end_inset
2177
2178
2179 \begin_inset Quotes erd
2180 \end_inset
2181
2182 , so HTML generated from 
2183 \begin_inset Flex Noun
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 /path/to/filename.lyx
2188 \end_layout
2189
2190 \end_inset
2191
2192  will end up in 
2193 \begin_inset Flex Noun
2194 status collapsed
2195
2196 \begin_layout Plain Layout
2197 /path/to/filename.html.LyXconv
2198 \end_layout
2199
2200 \end_inset
2201
2202 .
2203  
2204 \end_layout
2205
2206 \end_inset
2207
2208
2209 \end_layout
2210
2211 \begin_layout Section
2212 Converters
2213 \begin_inset CommandInset label
2214 LatexCommand label
2215 name "sec:Converters"
2216
2217 \end_inset
2218
2219
2220 \end_layout
2221
2222 \begin_layout Standard
2223 You can define your own Converters to convert files between different formats.
2224  This is done in the 
2225 \begin_inset Flex Noun
2226 status collapsed
2227
2228 \begin_layout Plain Layout
2229 Tools\SpecialChar menuseparator
2230 Preferences\SpecialChar menuseparator
2231 File Handling\SpecialChar menuseparator
2232 Converters
2233 \end_layout
2234
2235 \end_inset
2236
2237  dialog.
2238 \end_layout
2239
2240 \begin_layout Standard
2241 To define a new converter, select the 
2242 \begin_inset Flex Noun
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 From
2247 \begin_inset space ~
2248 \end_inset
2249
2250 format
2251 \end_layout
2252
2253 \end_inset
2254
2255  and 
2256 \begin_inset Flex Noun
2257 status collapsed
2258
2259 \begin_layout Plain Layout
2260 To
2261 \begin_inset space ~
2262 \end_inset
2263
2264 format
2265 \end_layout
2266
2267 \end_inset
2268
2269  from the drop-down lists, enter the command needed for the conversion,
2270  and then press the 
2271 \begin_inset Flex Noun
2272 status collapsed
2273
2274 \begin_layout Plain Layout
2275 Add
2276 \end_layout
2277
2278 \end_inset
2279
2280  button.
2281  Several variables can be used in the definition of converters:
2282 \end_layout
2283
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290 $$s
2291 \end_layout
2292
2293 \end_inset
2294
2295  The \SpecialChar LyX
2296  system directory
2297 \end_layout
2298
2299 \begin_layout Labeling
2300 \labelwidthstring 00.00.0000
2301 \begin_inset Flex Code
2302 status collapsed
2303
2304 \begin_layout Plain Layout
2305 $$i
2306 \end_layout
2307
2308 \end_inset
2309
2310  The input file
2311 \end_layout
2312
2313 \begin_layout Labeling
2314 \labelwidthstring 00.00.0000
2315 \begin_inset Flex Code
2316 status collapsed
2317
2318 \begin_layout Plain Layout
2319 $$o
2320 \end_layout
2321
2322 \end_inset
2323
2324  The output file
2325 \end_layout
2326
2327 \begin_layout Labeling
2328 \labelwidthstring 00.00.0000
2329 \begin_inset Flex Code
2330 status collapsed
2331
2332 \begin_layout Plain Layout
2333 $$b
2334 \end_layout
2335
2336 \end_inset
2337
2338  The base filename of the input file (i.
2339 \begin_inset space \thinspace{}
2340 \end_inset
2341
2342 g., without the extension)
2343 \end_layout
2344
2345 \begin_layout Labeling
2346 \labelwidthstring 00.00.0000
2347 \begin_inset Flex Code
2348 status collapsed
2349
2350 \begin_layout Plain Layout
2351 $$p
2352 \end_layout
2353
2354 \end_inset
2355
2356  The path to the input file
2357 \end_layout
2358
2359 \begin_layout Labeling
2360 \labelwidthstring 00.00.0000
2361 \begin_inset Flex Code
2362 status collapsed
2363
2364 \begin_layout Plain Layout
2365 $$r
2366 \end_layout
2367
2368 \end_inset
2369
2370  The path to the original input file (this is different from $$p when a
2371  chain of converters is called)
2372 \end_layout
2373
2374 \begin_layout Labeling
2375 \labelwidthstring 00.00.0000
2376 \begin_inset Flex Code
2377 status collapsed
2378
2379 \begin_layout Plain Layout
2380 $$e
2381 \end_layout
2382
2383 \end_inset
2384
2385  The iconv name for the encoding of the document.
2386 \end_layout
2387
2388 \begin_layout Standard
2389 In the 
2390 \begin_inset Flex Noun
2391 status collapsed
2392
2393 \begin_layout Plain Layout
2394 Extra
2395 \begin_inset space ~
2396 \end_inset
2397
2398 Flag
2399 \end_layout
2400
2401 \end_inset
2402
2403  field you can enter the following flags, separated by commas:
2404 \end_layout
2405
2406 \begin_layout Labeling
2407 \labelwidthstring 00.00.0000
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412 latex
2413 \change_inserted -712698321 1524656940
2414 =flavor
2415 \change_unchanged
2416
2417 \end_layout
2418
2419 \end_inset
2420
2421  This converter runs some form of \SpecialChar LaTeX
2422 .
2423  This will make \SpecialChar LyX
2424 's \SpecialChar LaTeX
2425  error logs available.
2426
2427 \change_inserted -712698321 1524657018
2428  The optional 
2429 \begin_inset Flex Code
2430 status open
2431
2432 \begin_layout Plain Layout
2433
2434 \change_inserted -712698321 1524657012
2435 flavor
2436 \change_unchanged
2437
2438 \end_layout
2439
2440 \end_inset
2441
2442  value specifies the form of \SpecialChar LaTeX
2443  that is run (
2444 \begin_inset Flex Code
2445 status open
2446
2447 \begin_layout Plain Layout
2448
2449 \change_inserted -712698321 1524657005
2450 latex, pdflatex, platex, xetex, luatex
2451 \change_unchanged
2452
2453 \end_layout
2454
2455 \end_inset
2456
2457 ).
2458  If no value is specified, 
2459 \begin_inset Flex Code
2460 status open
2461
2462 \begin_layout Plain Layout
2463
2464 \change_inserted -712698321 1524657018
2465 latex
2466 \change_unchanged
2467
2468 \end_layout
2469
2470 \end_inset
2471
2472  is used.
2473 \change_unchanged
2474
2475 \end_layout
2476
2477 \begin_layout Labeling
2478 \labelwidthstring 00.00.0000
2479 \begin_inset Flex Code
2480 status collapsed
2481
2482 \begin_layout Plain Layout
2483 needaux
2484 \change_inserted -712698321 1524656935
2485 =flavor
2486 \change_unchanged
2487
2488 \end_layout
2489
2490 \end_inset
2491
2492  Needs the \SpecialChar LaTeX
2493  
2494 \begin_inset Flex Noun
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 .aux
2499 \end_layout
2500
2501 \end_inset
2502
2503  file for the conversion.
2504
2505 \change_inserted -712698321 1524657047
2506  The optional 
2507 \begin_inset Flex Code
2508 status open
2509
2510 \begin_layout Plain Layout
2511
2512 \change_inserted -712698321 1524657030
2513 flavor
2514 \end_layout
2515
2516 \end_inset
2517
2518  value specifies the form of \SpecialChar LaTeX
2519  that is run in order to generate the 
2520 \begin_inset Flex Noun
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524
2525 \change_inserted -712698321 1524657047
2526 .aux
2527 \end_layout
2528
2529 \end_inset
2530
2531  file (
2532 \begin_inset Flex Code
2533 status open
2534
2535 \begin_layout Plain Layout
2536
2537 \change_inserted -712698321 1524657030
2538 latex, pdflatex, platex, xetex, luatex
2539 \end_layout
2540
2541 \end_inset
2542
2543 ).
2544  If no value is specified, 
2545 \begin_inset Flex Code
2546 status open
2547
2548 \begin_layout Plain Layout
2549
2550 \change_inserted -712698321 1524657030
2551 latex
2552 \end_layout
2553
2554 \end_inset
2555
2556  is used.
2557 \change_unchanged
2558
2559 \end_layout
2560
2561 \begin_layout Labeling
2562 \labelwidthstring 00.00.0000
2563 \begin_inset Flex Code
2564 status collapsed
2565
2566 \begin_layout Plain Layout
2567 nice
2568 \end_layout
2569
2570 \end_inset
2571
2572  Needs a 
2573 \begin_inset Quotes eld
2574 \end_inset
2575
2576 nice
2577 \begin_inset Quotes erd
2578 \end_inset
2579
2580  file from the backend, which in practice means a \SpecialChar LaTeX
2581  file like the one we
2582  would export, without 
2583 \begin_inset Flex Code
2584 status collapsed
2585
2586 \begin_layout Plain Layout
2587 input@path
2588 \end_layout
2589
2590 \end_inset
2591
2592 .
2593 \end_layout
2594
2595 \begin_layout Labeling
2596 \labelwidthstring 00.00.0000
2597 \begin_inset Flex Code
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 xml
2602 \end_layout
2603
2604 \end_inset
2605
2606  Output is XML.
2607 \end_layout
2608
2609 \begin_layout Standard
2610 The following three flags are not really flags at all because they take
2611  an argument in the 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 key
2617 \begin_inset space ~
2618 \end_inset
2619
2620 =
2621 \begin_inset space ~
2622 \end_inset
2623
2624 value
2625 \end_layout
2626
2627 \end_inset
2628
2629  format:
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634
2635 \change_inserted -712698321 1523206314
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640
2641 \change_inserted -712698321 1523206193
2642 hyperref-driver
2643 \end_layout
2644
2645 \end_inset
2646
2647  The name of the driver that needs to be loaded with the 
2648 \family sans
2649 hyperref
2650 \family default
2651  package for this converter.
2652  The loading of the correct driver is necessary to get some PDF-specific
2653  features.
2654  See the 
2655 \family sans
2656 hyperref
2657 \family default
2658  manual for details.
2659 \end_layout
2660
2661 \begin_layout Labeling
2662 \labelwidthstring 00.00.0000
2663 \begin_inset Flex Code
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 parselog
2668 \end_layout
2669
2670 \end_inset
2671
2672  If set, the converter's standard error will be redirected to a file 
2673 \begin_inset Flex Code
2674 status collapsed
2675
2676 \begin_layout Plain Layout
2677 infile.out
2678 \end_layout
2679
2680 \end_inset
2681
2682 , and the script given as argument will be run as: 
2683 \begin_inset Flex Code
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687 script < infile.out > infile.log
2688 \end_layout
2689
2690 \end_inset
2691
2692 .
2693  The argument may contain 
2694 \begin_inset Flex Code
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 $$s
2699 \end_layout
2700
2701 \end_inset
2702
2703 .
2704 \end_layout
2705
2706 \begin_layout Labeling
2707 \labelwidthstring 00.00.0000
2708 \begin_inset Flex Code
2709 status collapsed
2710
2711 \begin_layout Plain Layout
2712 resultdir
2713 \end_layout
2714
2715 \end_inset
2716
2717  The name of the directory in which the converter will dump the generated
2718  files.
2719  \SpecialChar LyX
2720  will not create this directory, and it does not copy anything into it,
2721  though it will copy this directory to the destination.
2722  The argument may contain 
2723 \begin_inset Flex Code
2724 status collapsed
2725
2726 \begin_layout Plain Layout
2727 $$b
2728 \end_layout
2729
2730 \end_inset
2731
2732 , which will be replaced by the base name of the input and output files,
2733  respectively, when the directory is copied.
2734 \begin_inset Newline newline
2735 \end_inset
2736
2737 Note that resultdir and usetempdir make no sense together.
2738  The latter will be ignored if the former is given.
2739 \end_layout
2740
2741 \begin_layout Labeling
2742 \labelwidthstring 00.00.0000
2743 \begin_inset Flex Code
2744 status collapsed
2745
2746 \begin_layout Plain Layout
2747 resultfile
2748 \end_layout
2749
2750 \end_inset
2751
2752  Determines the output file name and may, contain 
2753 \begin_inset Flex Code
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 $$b
2758 \end_layout
2759
2760 \end_inset
2761
2762 .
2763  Sensible only with resultdir and optional even then; if not given, it defaults
2764  to `index'.
2765 \end_layout
2766
2767 \begin_layout Standard
2768
2769 \change_inserted -712698321 1523206384
2770 A suitable hyperref-driver is set for some converters that are installed
2771  with \SpecialChar LyX
2772 .
2773  
2774 \change_deleted -712698321 1523206388
2775 None of these
2776 \change_inserted -712698321 1523206389
2777 The
2778 \change_unchanged
2779  last three
2780 \change_inserted -712698321 1523206400
2781  flags, however,
2782 \change_unchanged
2783  are presently 
2784 \change_inserted -712698321 1523206407
2785 not 
2786 \change_unchanged
2787 used in any of the 
2788 \change_inserted -712698321 1523206437
2789 pre-installed 
2790 \change_unchanged
2791 converters
2792 \change_deleted -712698321 1523206442
2793  that are installed with \SpecialChar LyX
2794
2795 \change_unchanged
2796 .
2797  
2798 \end_layout
2799
2800 \begin_layout Standard
2801 You do not have to define converters for all formats between which you want
2802  to convert.
2803  For example, you will note that there is no `\SpecialChar LyX
2804  to PostScript' converter,
2805  but \SpecialChar LyX
2806  will export PostScript.
2807  It does so by first creating a \SpecialChar LaTeX
2808  file (no converter needs to be defined
2809  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2810  to DVI' converter,
2811  and finally converting the resulting DVI file to PostScript.
2812  \SpecialChar LyX
2813  finds such `chains' of converters automatically, and it will always choose
2814  the shortest possible chain.
2815  You can, though, still define multiple conversion methods between file
2816  formats.
2817  For example, the standard \SpecialChar LyX
2818  configuration provides five ways to convert
2819  \SpecialChar LaTeX
2820  to PDF:
2821 \end_layout
2822
2823 \begin_layout Enumerate
2824 Directly, using 
2825 \begin_inset Flex Noun
2826 status collapsed
2827
2828 \begin_layout Plain Layout
2829 pdflatex
2830 \end_layout
2831
2832 \end_inset
2833
2834
2835 \end_layout
2836
2837 \begin_layout Enumerate
2838 via (DVI and) PostScript, using 
2839 \begin_inset Flex Noun
2840 status collapsed
2841
2842 \begin_layout Plain Layout
2843 ps2pdf
2844 \end_layout
2845
2846 \end_inset
2847
2848
2849 \end_layout
2850
2851 \begin_layout Enumerate
2852 via DVI, using 
2853 \begin_inset Flex Noun
2854 status collapsed
2855
2856 \begin_layout Plain Layout
2857 dvipdfm
2858 \end_layout
2859
2860 \end_inset
2861
2862
2863 \end_layout
2864
2865 \begin_layout Enumerate
2866 directly using 
2867 \begin_inset Flex Noun
2868 status collapsed
2869
2870 \begin_layout Plain Layout
2871 Xe\SpecialChar TeX
2872
2873 \end_layout
2874
2875 \end_inset
2876
2877
2878 \end_layout
2879
2880 \begin_layout Enumerate
2881 directly using 
2882 \begin_inset Flex Noun
2883 status collapsed
2884
2885 \begin_layout Plain Layout
2886 Lua\SpecialChar TeX
2887
2888 \end_layout
2889
2890 \end_inset
2891
2892
2893 \end_layout
2894
2895 \begin_layout Standard
2896 To define such alternate chains, you must define multiple target `file formats',
2897  as described in 
2898 \begin_inset CommandInset ref
2899 LatexCommand ref
2900 reference "sec:Formats"
2901
2902 \end_inset
2903
2904 .
2905  For example, in the standard configuration, the formats named 
2906 \begin_inset Flex Noun
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 pdf
2911 \end_layout
2912
2913 \end_inset
2914
2915  (for 
2916 \begin_inset Flex Noun
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920 ps2pdf
2921 \end_layout
2922
2923 \end_inset
2924
2925 ), 
2926 \begin_inset Flex Noun
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 pdf2
2931 \end_layout
2932
2933 \end_inset
2934
2935  (for 
2936 \begin_inset Flex Noun
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940 pdflatex
2941 \end_layout
2942
2943 \end_inset
2944
2945 ), 
2946 \begin_inset Flex Noun
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 pdf3
2951 \end_layout
2952
2953 \end_inset
2954
2955  (for 
2956 \begin_inset Flex Noun
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 dvipdfm
2961 \end_layout
2962
2963 \end_inset
2964
2965 ), 
2966 \begin_inset Flex Noun
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 pdf4
2971 \end_layout
2972
2973 \end_inset
2974
2975  (for 
2976 \begin_inset Flex Noun
2977 status collapsed
2978
2979 \begin_layout Plain Layout
2980 Xe\SpecialChar TeX
2981
2982 \end_layout
2983
2984 \end_inset
2985
2986 ), and 
2987 \begin_inset Flex Noun
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 pdf5
2992 \end_layout
2993
2994 \end_inset
2995
2996  (for 
2997 \begin_inset Flex Noun
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 Lua\SpecialChar TeX
3002
3003 \end_layout
3004
3005 \end_inset
3006
3007 ) are defined, all of which share the extension 
3008 \begin_inset Flex Noun
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 .pdf
3013 \end_layout
3014
3015 \end_inset
3016
3017 , and which correspond to the conversion methods just mentioned.
3018 \end_layout
3019
3020 \begin_layout Chapter
3021 Internationalizing \SpecialChar LyX
3022
3023 \begin_inset CommandInset label
3024 LatexCommand label
3025 name "cha:Internationalizing-LyX"
3026
3027 \end_inset
3028
3029
3030 \end_layout
3031
3032 \begin_layout Standard
3033 \SpecialChar LyX
3034  supports using a translated interface.
3035  Last time we checked, \SpecialChar LyX
3036  provided text in thirty languages.
3037  The language of choice is called your 
3038 \emph on
3039 locale
3040 \emph default
3041 .
3042  (For further reading on locale settings, see also the documentation for
3043  locale that comes with your operating system.
3044  For Linux, the manual page for 
3045 \begin_inset Flex Code
3046 status collapsed
3047
3048 \begin_layout Plain Layout
3049 locale(5)
3050 \end_layout
3051
3052 \end_inset
3053
3054  could be a good place to start).
3055 \end_layout
3056
3057 \begin_layout Standard
3058 Notice that these translations will work, but do contain a few flaws.
3059  In particular, all dialogs have been designed with the English text in
3060  mind, which means that some of the translated text will be too large to
3061  fit within the space allocated.
3062  This is only a display problem and will not cause any harm.
3063  Also, you will find that some of the translations do not define shortcut
3064  keys for everything.
3065  Sometimes, there are simply not enough free letters to do it.
3066  Other times, the translator just hasn't got around to doing it yet.
3067  Our localization team, which you may wish to join,
3068 \begin_inset Foot
3069 status collapsed
3070
3071 \begin_layout Plain Layout
3072 If you are a fluent speaker of a language other than English, joining these
3073  teams is a great way to give back to the \SpecialChar LyX
3074  community!
3075 \end_layout
3076
3077 \end_inset
3078
3079  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3080 .
3081 \end_layout
3082
3083 \begin_layout Section
3084 Translating \SpecialChar LyX
3085
3086 \end_layout
3087
3088 \begin_layout Subsection
3089 Translating the graphical user interface (text messages).
3090 \end_layout
3091
3092 \begin_layout Standard
3093 \SpecialChar LyX
3094  uses the GNU 
3095 \begin_inset Flex Code
3096 status collapsed
3097
3098 \begin_layout Plain Layout
3099 gettext
3100 \end_layout
3101
3102 \end_inset
3103
3104  library to handle the internationalization of the interface.
3105  To have \SpecialChar LyX
3106  speak your favorite language in all menus and dialogs, you need
3107  a 
3108 \begin_inset Flex Code
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 po
3113 \end_layout
3114
3115 \end_inset
3116
3117 -file for that language.
3118  When this is available, you'll have to generate a 
3119 \begin_inset Flex Code
3120 status collapsed
3121
3122 \begin_layout Plain Layout
3123 mo
3124 \end_layout
3125
3126 \end_inset
3127
3128 -file from it and install the 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 mo
3134 \end_layout
3135
3136 \end_inset
3137
3138 -file.
3139  The process of doing all of this is explained in the documentation for
3140  GNU 
3141 \begin_inset Flex Code
3142 status collapsed
3143
3144 \begin_layout Plain Layout
3145 gettext
3146 \end_layout
3147
3148 \end_inset
3149
3150 .
3151  It is possible to do this just for yourself, but if you're going to do
3152  it, you might as well share the results of your labors with the rest of
3153  the \SpecialChar LyX
3154  community.
3155  Send a message to the \SpecialChar LyX
3156  developers' list for more information about how
3157  to proceed.
3158 \end_layout
3159
3160 \begin_layout Standard
3161 In short, this is what you should do (xx denotes the language code):
3162 \end_layout
3163
3164 \begin_layout Itemize
3165 Check out the \SpecialChar LyX
3166  source code.
3167  (See the 
3168 \begin_inset CommandInset href
3169 LatexCommand href
3170 name "information on the web"
3171 target "https://www.lyx.org/HowToUseGIT"
3172 literal "false"
3173
3174 \end_inset
3175
3176 .)
3177 \end_layout
3178
3179 \begin_layout Itemize
3180 Copy the file 
3181 \begin_inset Flex Code
3182 status collapsed
3183
3184 \begin_layout Plain Layout
3185 lyx.pot
3186 \end_layout
3187
3188 \end_inset
3189
3190  to the folder of the 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195 **.po
3196 \end_layout
3197
3198 \end_inset
3199
3200  files.
3201  Then rename it to 
3202 \begin_inset Flex Code
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 xx.po
3207 \end_layout
3208
3209 \end_inset
3210
3211 .
3212  (If 
3213 \begin_inset Flex Code
3214 status collapsed
3215
3216 \begin_layout Plain Layout
3217 lyx.pot
3218 \end_layout
3219
3220 \end_inset
3221
3222  doesn't exist anywhere, it can be remade with the console command 
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227 make lyx.pot
3228 \end_layout
3229
3230 \end_inset
3231
3232  in that directory, or you can use an existing po-file for some other language
3233  as a template).
3234 \end_layout
3235
3236 \begin_layout Itemize
3237 Edit 
3238 \begin_inset Flex Code
3239 status collapsed
3240
3241 \begin_layout Plain Layout
3242 xx.po
3243 \end_layout
3244
3245 \end_inset
3246
3247 .
3248 \begin_inset Foot
3249 status collapsed
3250
3251 \begin_layout Plain Layout
3252 This is just a text file, so it can be edited in any text editor.
3253  But there are also specialized programs that support such editing, such
3254  as 
3255 \family typewriter
3256 Poedit
3257 \family default
3258  (for all platforms) or 
3259 \family typewriter
3260 KBabel
3261 \family default
3262  (for KDE).
3263  
3264 \family typewriter
3265 Emacs
3266 \family default
3267  contains a `mode' for editing 
3268 \begin_inset Flex Code
3269 status collapsed
3270
3271 \begin_layout Plain Layout
3272 po
3273 \end_layout
3274
3275 \end_inset
3276
3277  files, as well, see 
3278 \begin_inset Flex URL
3279 status open
3280
3281 \begin_layout Plain Layout
3282
3283 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3284 \end_layout
3285
3286 \end_inset
3287
3288 .
3289 \end_layout
3290
3291 \end_inset
3292
3293  For some menu- and widget-labels, there are also shortcut keys that should
3294  be translated.
3295  Those keys are marked after a `|', and should be translated according to
3296  the words and phrases of the language.
3297  You should also fill also out the information at the beginning of the new
3298  
3299 \begin_inset Flex Code
3300 status collapsed
3301
3302 \begin_layout Plain Layout
3303 po
3304 \end_layout
3305
3306 \end_inset
3307
3308 -file with your email-address, etc., so people know where to reach you with
3309  suggestions and entertaining flames.
3310 \end_layout
3311
3312 \begin_layout Standard
3313 If you are just doing this on your own, then:
3314 \end_layout
3315
3316 \begin_layout Itemize
3317 Generate 
3318 \begin_inset Flex Code
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 xx.mo
3323 \end_layout
3324
3325 \end_inset
3326
3327 .
3328  This can be done with 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 msgfmt -o xx.mo < xx.po
3334 \end_layout
3335
3336 \end_inset
3337
3338 .
3339 \end_layout
3340
3341 \begin_layout Itemize
3342 Copy the 
3343 \begin_inset Flex Code
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347 mo
3348 \end_layout
3349
3350 \end_inset
3351
3352 -file to your locale-tree, at the correct directory for application messages
3353  for the language
3354 \series bold
3355  
3356 \series default
3357 xx, and under the name 
3358 \begin_inset Flex Code
3359 status collapsed
3360
3361 \begin_layout Plain Layout
3362 lyx.mo
3363 \end_layout
3364
3365 \end_inset
3366
3367  (e.
3368 \begin_inset space \thinspace{}
3369 \end_inset
3370
3371 g.
3372 \begin_inset space \space{}
3373 \end_inset
3374
3375
3376 \begin_inset Flex Code
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3381 \end_layout
3382
3383 \end_inset
3384
3385
3386 \series bold
3387 .
3388 \end_layout
3389
3390 \begin_layout Standard
3391 As said, however, it would be best if the new 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 po
3397 \end_layout
3398
3399 \end_inset
3400
3401  file could be added to the \SpecialChar LyX
3402  distribution, so others can use it.
3403  Adding it involves making additional changes to \SpecialChar LyX
3404 .
3405  So send an email to the developers' mailing list if you're interested in
3406  doing that.
3407 \end_layout
3408
3409 \begin_layout Subsubsection
3410 Ambiguous messages
3411 \end_layout
3412
3413 \begin_layout Standard
3414 Sometimes it turns out that one English message needs to be translated into
3415  different messages in the target language.
3416  One example is the message 
3417 \begin_inset Flex Code
3418 status collapsed
3419
3420 \begin_layout Plain Layout
3421 To
3422 \end_layout
3423
3424 \end_inset
3425
3426  which has the German translation 
3427 \lang german
3428 Nach
3429 \lang english
3430  or 
3431 \lang german
3432 Bis
3433 \lang english
3434 , depending upon exactly what the English 
3435 \begin_inset Quotes eld
3436 \end_inset
3437
3438 to
3439 \begin_inset Quotes erd
3440 \end_inset
3441
3442  means.
3443  GNU 
3444 \begin_inset Flex Code
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 gettext
3449 \end_layout
3450
3451 \end_inset
3452
3453  does not handle such ambiguous translations.
3454  Therefore you have to add some context information to the message: Instead
3455  of 
3456 \begin_inset Flex Code
3457 status collapsed
3458
3459 \begin_layout Plain Layout
3460 To
3461 \end_layout
3462
3463 \end_inset
3464
3465  it becomes 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470 To[[as in 'From format x to format y']]
3471 \end_layout
3472
3473 \end_inset
3474
3475  and 
3476 \begin_inset Flex Code
3477 status collapsed
3478
3479 \begin_layout Plain Layout
3480 To[[as in 'From page x to page y']].
3481 \end_layout
3482
3483 \end_inset
3484
3485  Now the two occurrences of 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 To
3491 \end_layout
3492
3493 \end_inset
3494
3495  are different for 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 gettext
3501 \end_layout
3502
3503 \end_inset
3504
3505  and can be translated correctly to 
3506 \lang german
3507 Nach
3508 \lang english
3509  and 
3510 \lang german
3511 Bis
3512 \lang english
3513 , respectively.
3514 \end_layout
3515
3516 \begin_layout Standard
3517 Of course the context information needs to be stripped off the original
3518  message when no translation is used.
3519  Therefore you have to put it in double square brackets at the end of the
3520  message (see the example above).
3521  The translation mechanism of \SpecialChar LyX
3522  ensures that everything in double square
3523  brackets at the end of messages is removed before displaying the message.
3524 \end_layout
3525
3526 \begin_layout Subsection
3527 Translating the documentation.
3528 \end_layout
3529
3530 \begin_layout Standard
3531 The online documentation (in the 
3532 \begin_inset Flex Noun
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536 Help
3537 \end_layout
3538
3539 \end_inset
3540
3541 -menu) can (and should!) be translated.
3542  If there are translated versions of the documentation available
3543 \begin_inset Foot
3544 status collapsed
3545
3546 \begin_layout Plain Layout
3547 As of March 2008, at least some of the documents have been translated into
3548  fourteen languages, with the Tutorial available in a few more.
3549 \end_layout
3550
3551 \end_inset
3552
3553  and the locale is set accordingly, these will be used automagically by
3554  \SpecialChar LyX
3555 .
3556  \SpecialChar LyX
3557  looks for translated versions as 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562 LyXDir/doc/xx/DocName.lyx
3563 \end_layout
3564
3565 \end_inset
3566
3567 , where 
3568 \begin_inset Flex Code
3569 status collapsed
3570
3571 \begin_layout Plain Layout
3572 xx
3573 \end_layout
3574
3575 \end_inset
3576
3577  is the code for the language currently in use.
3578  If there are no translated documents, the default English versions will
3579  be displayed.
3580  Note that the translated versions must have the same filenames (
3581 \begin_inset Flex Code
3582 status collapsed
3583
3584 \begin_layout Plain Layout
3585 DocName
3586 \end_layout
3587
3588 \end_inset
3589
3590  above) as the original.
3591  If you feel up to translating the documentation (an excellent way to proof-read
3592  the original documentation by the way!), there are a few things you should
3593  do right away:
3594 \end_layout
3595
3596 \begin_layout Itemize
3597 Check out the documentation translation web page at 
3598 \begin_inset CommandInset href
3599 LatexCommand href
3600 name "https://www.lyx.org/Translation"
3601 target "https://www.lyx.org/Translation"
3602 literal "false"
3603
3604 \end_inset
3605
3606 .
3607  That way, you can find out which (if any) documents have already been translate
3608 d into your language.
3609  You can also find out who (if anyone) is organizing the effort to translate
3610  the documentation into your language.
3611  If no one is organizing the effort, please let us know that you're interested.
3612 \end_layout
3613
3614 \begin_layout Standard
3615 Once you get to actually translating, here's a few hints for you that may
3616  save you trouble:
3617 \end_layout
3618
3619 \begin_layout Itemize
3620 Join the documentation team! There is information on how to do that in 
3621 \begin_inset Flex Code
3622 status collapsed
3623
3624 \begin_layout Plain Layout
3625 Intro.lyx
3626 \end_layout
3627
3628 \end_inset
3629
3630  (
3631 \begin_inset Flex Noun
3632 status collapsed
3633
3634 \begin_layout Plain Layout
3635 Help\SpecialChar menuseparator
3636 Introduction
3637 \end_layout
3638
3639 \end_inset
3640
3641 ), which by the way is the first document you should translate.
3642 \end_layout
3643
3644 \begin_layout Itemize
3645 Learn the typographic conventions for the language you are translating to.
3646  Typography is an ancient art and over the centuries, a great variety of
3647  conventions have developed throughout different parts of the world.
3648  Also study the professional terminology amongst typographers in your country.
3649  Inventing your own terminology will only confuse the users.
3650  
3651 \emph on
3652 (Warning! Typography is addictive!)
3653 \end_layout
3654
3655 \begin_layout Itemize
3656 Make a copy of the document.
3657  This will be your working copy.
3658  You can use this as your personal translated help-file by placing it in
3659  your 
3660 \begin_inset Flex Code
3661 status collapsed
3662
3663 \begin_layout Plain Layout
3664 UserDir/doc/xx/
3665 \end_layout
3666
3667 \end_inset
3668
3669  directory.
3670 \begin_inset Note Greyedout
3671 status open
3672
3673 \begin_layout Plain Layout
3674
3675 \series bold
3676 Note:
3677 \series default
3678  For a complex document with external material (images, etc.), if you make
3679  a copy e.
3680 \begin_inset space \thinspace{}
3681 \end_inset
3682
3683 g.
3684 \begin_inset space \space{}
3685 \end_inset
3686
3687 in a temp dir, beware that the links to external material may be broken
3688  when the document is moved to a different place.
3689  The best way is to retrieve the \SpecialChar LyX
3690  tree from git (see 
3691 \begin_inset Flex URL
3692 status collapsed
3693
3694 \begin_layout Plain Layout
3695
3696 https://www.lyx.org/HowToUseGIT
3697 \end_layout
3698
3699 \end_inset
3700
3701 ) and to edit the doc file in place.
3702 \end_layout
3703
3704 \end_inset
3705
3706
3707 \end_layout
3708
3709 \begin_layout Itemize
3710 Sometimes the original document (from the \SpecialChar LyX
3711  team) will be updated.
3712  Use the source viewer at 
3713 \begin_inset CommandInset href
3714 LatexCommand href
3715 name "https://www.lyx.org/trac/timeline"
3716 target "https://www.lyx.org/trac/timeline"
3717 literal "false"
3718
3719 \end_inset
3720
3721  to see what has been changed.
3722  That way you can easily see which parts of the translated document need
3723  to be updated.
3724 \end_layout
3725
3726 \begin_layout Standard
3727 If you ever find an error in the original document, fix it and notify the
3728  rest of the documentation team of the changes! (You didn't forget to join
3729  the documentation team, did you?)
3730 \end_layout
3731
3732 \begin_layout Standard
3733 \begin_inset Branch OutDated
3734 inverted 0
3735 status collapsed
3736
3737 \begin_layout Section
3738 International Keyboard Support
3739 \end_layout
3740
3741 \begin_layout Standard
3742
3743 \emph on
3744 [Editor's Note: The following section is by
3745 \emph default
3746  
3747 \shape smallcaps
3748 \emph on
3749 Ivan Schreter
3750 \shape default
3751 .
3752  It needs to be fixed to conform to the new Documentation Style sheet and
3753  to make use of the new v1.0 features.
3754  The whole thing also needs to be merged with the section following it.-jw
3755  It may also be badly out of date.-rh (2008)]
3756 \end_layout
3757
3758 \begin_layout Subsection
3759 Defining Own Keymaps: Keymap File Format
3760 \end_layout
3761
3762 \begin_layout Standard
3763 Let's look at a keyboard definition file a little closer.
3764  It is a plain text file defining
3765 \end_layout
3766
3767 \begin_layout Itemize
3768 key-to-key or key-to-string translations
3769 \end_layout
3770
3771 \begin_layout Itemize
3772 dead keys
3773 \end_layout
3774
3775 \begin_layout Itemize
3776 dead keys exceptions
3777 \end_layout
3778
3779 \begin_layout Standard
3780 To define key-to-key or key-to-string translation, use this command:
3781 \end_layout
3782
3783 \begin_layout Quotation
3784 \begin_inset Flex Code
3785 status collapsed
3786
3787 \begin_layout Plain Layout
3788
3789 \backslash
3790 kmap
3791 \end_layout
3792
3793 \end_inset
3794
3795  
3796 \begin_inset Flex Code
3797 status collapsed
3798
3799 \begin_layout Plain Layout
3800 key
3801 \end_layout
3802
3803 \end_inset
3804
3805  outstring 
3806 \end_layout
3807
3808 \begin_layout Standard
3809 where 
3810 \begin_inset Flex Code
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814 key
3815 \end_layout
3816
3817 \end_inset
3818
3819  is the key to be translated and 
3820 \begin_inset Flex Code
3821 status collapsed
3822
3823 \begin_layout Plain Layout
3824 outstring
3825 \end_layout
3826
3827 \end_inset
3828
3829  is the string to be inserted into the document.
3830  To define dead keys, use:
3831 \end_layout
3832
3833 \begin_layout Quotation
3834 \begin_inset Flex Code
3835 status collapsed
3836
3837 \begin_layout Plain Layout
3838
3839 \backslash
3840 kmod
3841 \end_layout
3842
3843 \end_inset
3844
3845  
3846 \begin_inset Flex Code
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 key
3851 \end_layout
3852
3853 \end_inset
3854
3855  deadkey
3856 \end_layout
3857
3858 \begin_layout Standard
3859 where 
3860 \begin_inset Flex Code
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864 key
3865 \end_layout
3866
3867 \end_inset
3868
3869  is a keyboard key and 
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 deadkey
3875 \end_layout
3876
3877 \end_inset
3878
3879  is dead key name.
3880  The following dead keys are supported (shortcut name is in parentheses):
3881 \end_layout
3882
3883 \begin_layout Quotation
3884
3885 \emph on
3886 Name
3887 \begin_inset space \hfill{}
3888 \end_inset
3889
3890 Example
3891 \end_layout
3892
3893 \begin_layout Quotation
3894 acute (acu)
3895 \begin_inset space \hfill{}
3896 \end_inset
3897
3898 áéíóú
3899 \end_layout
3900
3901 \begin_layout Quotation
3902 grave (gra)
3903 \begin_inset space \hfill{}
3904 \end_inset
3905
3906 àèìòù
3907 \end_layout
3908
3909 \begin_layout Quotation
3910 macron (mac)
3911 \begin_inset space \hfill{}
3912 \end_inset
3913
3914  ō
3915 \end_layout
3916
3917 \begin_layout Quotation
3918 tilde (til)
3919 \begin_inset space \hfill{}
3920 \end_inset
3921
3922 ñÑ
3923 \end_layout
3924
3925 \begin_layout Quotation
3926 underbar (underb)
3927 \begin_inset space \hfill{}
3928 \end_inset
3929
3930
3931 \begin_inset ERT
3932 status open
3933
3934 \begin_layout Plain Layout
3935
3936
3937 \backslash
3938 b o
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \end_layout
3945
3946 \begin_layout Quotation
3947 cedilla (ced)
3948 \begin_inset space \hfill{}
3949 \end_inset
3950
3951 çÇ
3952 \end_layout
3953
3954 \begin_layout Quotation
3955 underdot (underd)
3956 \begin_inset space \hfill{}
3957 \end_inset
3958
3959
3960 \begin_inset ERT
3961 status open
3962
3963 \begin_layout Plain Layout
3964
3965
3966 \backslash
3967 d o
3968 \end_layout
3969
3970 \end_inset
3971
3972
3973 \end_layout
3974
3975 \begin_layout Quotation
3976 circumflex (circu)
3977 \begin_inset space \hfill{}
3978 \end_inset
3979
3980 âêîôû
3981 \end_layout
3982
3983 \begin_layout Quotation
3984 circle (circl)
3985 \begin_inset space \hfill{}
3986 \end_inset
3987
3988 ÅůŮ
3989 \end_layout
3990
3991 \begin_layout Quotation
3992 tie (tie)
3993 \begin_inset space \hfill{}
3994 \end_inset
3995
3996
3997 \begin_inset ERT
3998 status open
3999
4000 \begin_layout Plain Layout
4001
4002
4003 \backslash
4004 t o
4005 \end_layout
4006
4007 \end_inset
4008
4009
4010 \end_layout
4011
4012 \begin_layout Quotation
4013 breve (bre)
4014 \begin_inset space \hfill{}
4015 \end_inset
4016
4017 ă
4018 \begin_inset ERT
4019 status open
4020
4021 \begin_layout Plain Layout
4022
4023
4024 \backslash
4025 u o
4026 \end_layout
4027
4028 \end_inset
4029
4030
4031 \end_layout
4032
4033 \begin_layout Quotation
4034 caron (car)
4035 \begin_inset space \hfill{}
4036 \end_inset
4037
4038 čšž
4039 \end_layout
4040
4041 \begin_layout Quotation
4042 hungarian umlaut (hug)
4043 \begin_inset space \hfill{}
4044 \end_inset
4045
4046 őű
4047 \end_layout
4048
4049 \begin_layout Quotation
4050 umlaut (uml)
4051 \begin_inset space \hfill{}
4052 \end_inset
4053
4054 äöü
4055 \end_layout
4056
4057 \begin_layout Quotation
4058 dot (dot)
4059 \begin_inset space \hfill{}
4060 \end_inset
4061
4062 ż
4063 \begin_inset ERT
4064 status open
4065
4066 \begin_layout Plain Layout
4067
4068
4069 \backslash
4070 .s
4071 \end_layout
4072
4073 \end_inset
4074
4075
4076 \end_layout
4077
4078 \begin_layout Standard
4079 Since in many international keyboards there are exceptions to what some
4080  dead keys should do, you can define them using
4081 \end_layout
4082
4083 \begin_layout Quotation
4084 \begin_inset Flex Code
4085 status collapsed
4086
4087 \begin_layout Plain Layout
4088
4089 \backslash
4090 kxmod
4091 \end_layout
4092
4093 \end_inset
4094
4095  deadkey key outstring
4096 \end_layout
4097
4098 \begin_layout Standard
4099 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4100 , so you put in
4101 \end_layout
4102
4103 \begin_layout Quotation
4104 \begin_inset Flex Code
4105 status collapsed
4106
4107 \begin_layout Plain Layout
4108
4109 \backslash
4110 kxmod
4111 \end_layout
4112
4113 \end_inset
4114
4115  caron o "
4116 \backslash
4117 ^o"
4118 \end_layout
4119
4120 \begin_layout Standard
4121 to make it work correctly.
4122  Also, you have to define as exceptions dead keys over i and j, to remove
4123  the dot from them before inserting an accent mark.
4124  I will change this when the time comes, but so far I haven't had time.
4125 \end_layout
4126
4127 \begin_layout Standard
4128 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4129  double backslash.
4130  Also, quotes and 
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 #
4136 \end_layout
4137
4138 \end_inset
4139
4140  have different meaning.
4141  
4142 \begin_inset Flex Code
4143 status collapsed
4144
4145 \begin_layout Plain Layout
4146 #
4147 \end_layout
4148
4149 \end_inset
4150
4151  marks comments, quotes start and end \SpecialChar LaTeX
4152 -style commands.
4153  To enter quote, you'll need to use 
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158
4159 \backslash
4160 "
4161 \end_layout
4162
4163 \end_inset
4164
4165 , to enter 
4166 \begin_inset Flex Code
4167 status collapsed
4168
4169 \begin_layout Plain Layout
4170 #
4171 \end_layout
4172
4173 \end_inset
4174
4175 , use 
4176 \begin_inset Flex Code
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180
4181 \backslash
4182 #
4183 \end_layout
4184
4185 \end_inset
4186
4187 .
4188 \end_layout
4189
4190 \begin_layout Standard
4191 If you make a keyboard description file that works for your language, please
4192  mail it to me, so I can include it in the next keymap distribution.
4193 \end_layout
4194
4195 \begin_layout Standard
4196 More keywords will be supported in keymap configuration file in future,
4197  like
4198 \end_layout
4199
4200 \begin_layout Itemize
4201 \begin_inset Flex Code
4202 status collapsed
4203
4204 \begin_layout Plain Layout
4205
4206 \backslash
4207 kinclude filename
4208 \end_layout
4209
4210 \end_inset
4211
4212
4213 \emph on
4214
4215 \begin_inset space \hfill{}
4216 \end_inset
4217
4218
4219 \begin_inset Flex Code
4220 status collapsed
4221
4222 \begin_layout Plain Layout
4223 include
4224 \end_layout
4225
4226 \end_inset
4227
4228  another file
4229 \end_layout
4230
4231 \begin_layout Itemize
4232 \begin_inset Flex Code
4233 status collapsed
4234
4235 \begin_layout Plain Layout
4236
4237 \backslash
4238 kprog program
4239 \end_layout
4240
4241 \end_inset
4242
4243
4244 \emph on
4245
4246 \begin_inset space \hfill{}
4247 \end_inset
4248
4249
4250 \begin_inset Flex Code
4251 status collapsed
4252
4253 \begin_layout Plain Layout
4254 define
4255 \end_layout
4256
4257 \end_inset
4258
4259  an external keymap translation program 
4260 \end_layout
4261
4262 \begin_layout Standard
4263 Also, it should look into 
4264 \begin_inset Flex Code
4265 status collapsed
4266
4267 \begin_layout Plain Layout
4268 lyxrc
4269 \end_layout
4270
4271 \end_inset
4272
4273  file for defaults, too (for example, a 
4274 \begin_inset Flex Code
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278
4279 \backslash
4280 kinclude
4281 \end_layout
4282
4283 \end_inset
4284
4285  option to include default keyboard).
4286 \end_layout
4287
4288 \end_inset
4289
4290
4291 \end_layout
4292
4293 \begin_layout Section
4294 International Keymap Stuff
4295 \begin_inset CommandInset label
4296 LatexCommand label
4297 name "sec:International-Keymap-Stuff"
4298
4299 \end_inset
4300
4301
4302 \end_layout
4303
4304 \begin_layout Standard
4305 \begin_inset Note Note
4306 status open
4307
4308 \begin_layout Plain Layout
4309 In doing the revisions on this document in March 2008, I did not look over
4310  this stuff, as I do not understand it.
4311  It would be good if someone else could do so.
4312  (RH)
4313 \end_layout
4314
4315 \end_inset
4316
4317
4318 \end_layout
4319
4320 \begin_layout Standard
4321 The next two sections describe the 
4322 \begin_inset Flex Code
4323 status collapsed
4324
4325 \begin_layout Plain Layout
4326
4327 \shape up
4328 .kmap
4329 \end_layout
4330
4331 \end_inset
4332
4333  and 
4334 \begin_inset Flex Code
4335 status collapsed
4336
4337 \begin_layout Plain Layout
4338
4339 \shape up
4340 .cdef
4341 \end_layout
4342
4343 \end_inset
4344
4345  file syntax in detail.
4346  These sections should help you design your own key map if the ones provided
4347  do not meet your needs.
4348 \end_layout
4349
4350 \begin_layout Subsection
4351 The .kmap File
4352 \end_layout
4353
4354 \begin_layout Standard
4355
4356 \shape up
4357 .
4358 \begin_inset Flex Code
4359 status collapsed
4360
4361 \begin_layout Plain Layout
4362 kmap
4363 \end_layout
4364
4365 \end_inset
4366
4367  file maps keystrokes to characters or strings.
4368  As the name suggests, it sets a keyboard mapping.
4369  The 
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374 .kmap
4375 \end_layout
4376
4377 \end_inset
4378
4379
4380 \shape default
4381  file keywords 
4382 \shape up
4383
4384 \begin_inset Flex Code
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388
4389 \shape up
4390 kmap
4391 \end_layout
4392
4393 \end_inset
4394
4395
4396 \shape default
4397 ,
4398 \shape up
4399  
4400 \shape default
4401
4402 \begin_inset Flex Code
4403 status collapsed
4404
4405 \begin_layout Plain Layout
4406
4407 \shape up
4408 kmod
4409 \end_layout
4410
4411 \end_inset
4412
4413 ,
4414 \shape up
4415  
4416 \shape default
4417
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \shape up
4424 kxmod
4425 \end_layout
4426
4427 \end_inset
4428
4429 , and 
4430 \begin_inset Flex Code
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434
4435 \shape up
4436 kcomb
4437 \end_layout
4438
4439 \end_inset
4440
4441  are described in this section.
4442 \end_layout
4443
4444 \begin_layout Labeling
4445 \labelwidthstring 00.00.0000
4446 \begin_inset Flex Code
4447 status collapsed
4448
4449 \begin_layout Plain Layout
4450
4451 \shape up
4452 kmap
4453 \end_layout
4454
4455 \end_inset
4456
4457  Map a character to a string
4458 \end_layout
4459
4460 \begin_layout LyX-Code
4461
4462 \backslash
4463 kmap 
4464 \family roman
4465 \emph on
4466 char
4467 \family default
4468 \emph default
4469  
4470 \family roman
4471 \emph on
4472 string
4473 \end_layout
4474
4475 \begin_layout Standard
4476 This will ma
4477 \family roman
4478 p
4479 \family default
4480  
4481 \family roman
4482 \emph on
4483 char
4484 \family default
4485 \emph default
4486  
4487 \family roman
4488 to
4489 \family default
4490  
4491 \family roman
4492 \emph on
4493 string
4494 \emph default
4495 .
4496  Note that in
4497 \family default
4498  
4499 \family roman
4500 \emph on
4501 string
4502 \emph default
4503 ,
4504 \family default
4505  
4506 \family roman
4507 \shape up
4508 the double-quote (")
4509 \family default
4510 \shape default
4511  
4512 \family roman
4513 and
4514 \family default
4515  
4516 \family roman
4517 \shape up
4518 the backslash (
4519 \backslash
4520 )
4521 \family default
4522 \shape default
4523  
4524 \family roman
4525 must be escaped with a preceding backslash (
4526 \shape up
4527
4528 \backslash
4529
4530 \shape default
4531 )
4532 \family default
4533 .
4534 \end_layout
4535
4536 \begin_layout Standard
4537 An example of a 
4538 \begin_inset Flex Noun
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542
4543 \shape up
4544 kmap
4545 \end_layout
4546
4547 \end_inset
4548
4549  statement to cause the symbol 
4550 \begin_inset Flex Noun
4551 status collapsed
4552
4553 \begin_layout Plain Layout
4554
4555 \shape up
4556 /
4557 \end_layout
4558
4559 \end_inset
4560
4561  to be output for the keystroke 
4562 \begin_inset Flex Noun
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566
4567 \shape up
4568 &
4569 \end_layout
4570
4571 \end_inset
4572
4573  is:
4574 \end_layout
4575
4576 \begin_layout LyX-Code
4577
4578 \backslash
4579 kmap & /
4580 \end_layout
4581
4582 \begin_layout Labeling
4583 \labelwidthstring 00.00.0000
4584 \begin_inset Flex Code
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588
4589 \shape up
4590 kmod
4591 \end_layout
4592
4593 \end_inset
4594
4595  Specify an accent character
4596 \end_layout
4597
4598 \begin_layout LyX-Code
4599
4600 \backslash
4601 kmod 
4602 \family roman
4603 \emph on
4604 char accent allowed
4605 \end_layout
4606
4607 \begin_layout Standard
4608 This will make the cha
4609 \family roman
4610 racter
4611 \family default
4612  
4613 \family roman
4614 \emph on
4615 char
4616 \family default
4617 \emph default
4618  
4619 \family roman
4620 \shape up
4621 \emph on
4622 be an accent
4623 \family default
4624 \shape default
4625 \emph default
4626  
4627 \family roman
4628 \shape up
4629 on the
4630 \family default
4631 \shape default
4632  
4633 \family roman
4634 \shape up
4635 \emph on
4636 allowed
4637 \family default
4638 \shape default
4639 \emph default
4640  
4641 \family roman
4642 \shape up
4643 cha
4644 \family default
4645 racter(s).
4646  This is the dead key
4647 \begin_inset Foot
4648 status collapsed
4649
4650 \begin_layout Plain Layout
4651 The term 
4652 \family roman
4653 \emph on
4654 dead key
4655 \family default
4656 \emph default
4657  refers to a key that does not produce a character by itself, but when followed
4658  with another key, produces the desired accent character.
4659  For example, a German characte
4660 \family roman
4661 r with an umlaut like
4662 \family default
4663  
4664 \family roman
4665 \emph on
4666 ä
4667 \family default
4668 \emph default
4669  
4670 \family roman
4671 can be produced in this manner.
4672 \end_layout
4673
4674 \end_inset
4675
4676  mechanism.
4677  
4678 \end_layout
4679
4680 \begin_layout Standard
4681 If you 
4682 \family roman
4683 hit
4684 \family default
4685  
4686 \family roman
4687 \emph on
4688 char
4689 \family default
4690 \emph default
4691  
4692 \family roman
4693 and then another key not in
4694 \family default
4695  
4696 \family roman
4697 \emph on
4698 allowed
4699 \emph default
4700 , you will get a
4701 \family default
4702  
4703 \family roman
4704 \emph on
4705 char
4706 \family default
4707 \emph default
4708  
4709 \family roman
4710 followed by the other, not allowed key, as output.
4711
4712 \family default
4713  Note that a 
4714 \begin_inset Flex Noun
4715 status collapsed
4716
4717 \begin_layout Plain Layout
4718
4719 \shape up
4720 Backspace
4721 \end_layout
4722
4723 \end_inset
4724
4725  cancels a dead key, so if 
4726 \family roman
4727 you hit
4728 \family default
4729  
4730 \family roman
4731 \emph on
4732 char
4733 \family default
4734 \emph default
4735  
4736 \begin_inset Flex Noun
4737 status collapsed
4738
4739 \begin_layout Plain Layout
4740
4741 \shape up
4742 \emph on
4743 Backspace
4744 \end_layout
4745
4746 \end_inset
4747
4748 , the cursor will not go one position backwards but will instead cancel
4749  the effect t
4750 \family roman
4751 hat
4752 \family default
4753  
4754 \family roman
4755 \shape up
4756 \emph on
4757 char
4758 \family default
4759 \shape default
4760 \emph default
4761  
4762 \family roman
4763 \shape up
4764 might have had on the next keystroke.
4765  
4766 \end_layout
4767
4768 \begin_layout Standard
4769 The following example specifies that the character ' is to be an acute accent,
4770  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4771 \end_layout
4772
4773 \begin_layout LyX-Code
4774
4775 \backslash
4776 kmod ' acute aeiouAEIOU
4777 \end_layout
4778
4779 \begin_layout Labeling
4780 \labelwidthstring 00.00.0000
4781 \begin_inset Flex Code
4782 status collapsed
4783
4784 \begin_layout Plain Layout
4785 kxmod
4786 \end_layout
4787
4788 \end_inset
4789
4790  Specify an exception to the accent character
4791 \end_layout
4792
4793 \begin_layout LyX-Code
4794
4795 \backslash
4796 kxmod  
4797 \family roman
4798 \emph on
4799 accent char result
4800 \end_layout
4801
4802 \begin_layout Standard
4803 This defines an exce
4804 \family roman
4805 ption for
4806 \family default
4807  
4808 \family roman
4809 \emph on
4810 accent
4811 \family default
4812 \emph default
4813  
4814 \family roman
4815 on
4816 \family default
4817  
4818 \family roman
4819 \emph on
4820 char
4821 \emph default
4822 .
4823  T
4824 \shape up
4825 he
4826 \family default
4827 \shape default
4828  
4829 \family roman
4830 \shape up
4831 \emph on
4832 accent
4833 \family default
4834 \shape default
4835 \emph default
4836  
4837 \family roman
4838 \shape up
4839 must
4840 \family default
4841 \shape default
4842  
4843 \shape up
4844 have been assigned a keystroke with a previous
4845 \shape default
4846  
4847 \begin_inset Flex Code
4848 status collapsed
4849
4850 \begin_layout Plain Layout
4851
4852 \shape up
4853
4854 \backslash
4855 kmo
4856 \shape default
4857 d
4858 \end_layout
4859
4860 \end_inset
4861
4862  declar
4863 \family roman
4864 ation and
4865 \family default
4866  
4867 \family roman
4868 \emph on
4869 char
4870 \family default
4871 \emph default
4872  
4873 \family roman
4874 must not belong in the
4875 \family default
4876  
4877 \family roman
4878 \emph on
4879 allowed
4880 \family default
4881 \emph default
4882  
4883 \family roman
4884 set of
4885 \family default
4886  
4887 \family roman
4888 \emph on
4889 accent
4890 \emph default
4891 .
4892  When
4893 \family default
4894  
4895 \family roman
4896 \shape up
4897 you enter the
4898 \family default
4899 \shape default
4900  
4901 \family roman
4902 \shape up
4903 \emph on
4904 accent char
4905 \family default
4906 \shape default
4907 \emph default
4908  
4909 \family roman
4910 \shape up
4911 sequence,
4912 \family default
4913 \shape default
4914  
4915 \family roman
4916 \shape up
4917 \emph on
4918 result
4919 \emph default
4920  is produced.
4921  If such a declaration does not exist in
4922 \family default
4923 \shape default
4924  
4925 \shape up
4926 the
4927 \shape default
4928  
4929 \begin_inset Flex Code
4930 status collapsed
4931
4932 \begin_layout Plain Layout
4933
4934 \shape up
4935 .kmap
4936 \end_layout
4937
4938 \end_inset
4939
4940  file and yo
4941 \family roman
4942 u enter
4943 \family default
4944  
4945 \family roman
4946 \emph on
4947 accent char
4948 \emph default
4949 , you get
4950 \family default
4951  
4952 \family roman
4953 \emph on
4954 accent_key char
4955 \emph default
4956  where
4957 \family default
4958  
4959 \family roman
4960 \emph on
4961 accent_key
4962 \emph default
4963  is the first arg
4964 \family default
4965 ument of the 
4966 \begin_inset Flex Code
4967 status collapsed
4968
4969 \begin_layout Plain Layout
4970
4971 \shape up
4972
4973 \backslash
4974 kmod
4975 \end_layout
4976
4977 \end_inset
4978
4979  declaration.
4980  
4981 \end_layout
4982
4983 \begin_layout Standard
4984 The following command produces causes äi to be produced when you enter acute-i
4985  ('i):
4986 \end_layout
4987
4988 \begin_layout LyX-Code
4989
4990 \backslash
4991 kxmod acute i "
4992 \backslash
4993
4994 \backslash
4995 '{
4996 \backslash
4997
4998 \backslash
4999 i}"
5000 \end_layout
5001
5002 \begin_layout Labeling
5003 \labelwidthstring 00.00.0000
5004 \begin_inset Flex Code
5005 status collapsed
5006
5007 \begin_layout Plain Layout
5008 kcomb
5009 \end_layout
5010
5011 \end_inset
5012
5013  Combine two accent characters
5014 \end_layout
5015
5016 \begin_layout LyX-Code
5017
5018 \backslash
5019 kcomb 
5020 \family roman
5021 \emph on
5022 accent1 accent2 allowed
5023 \end_layout
5024
5025 \begin_layout Standard
5026 This one is getting pretty esoteric.
5027  It allows you to combine the effect 
5028 \family roman
5029 of
5030 \family default
5031  
5032 \family roman
5033 \emph on
5034 accent1
5035 \family default
5036 \emph default
5037  
5038 \family roman
5039 and
5040 \family default
5041  
5042 \family roman
5043 \emph on
5044 accent2
5045 \family default
5046 \emph default
5047  
5048 \family roman
5049 (in that order!) on
5050 \family default
5051  
5052 \family roman
5053 \emph on
5054 allowed
5055 \family default
5056 \emph default
5057  
5058 \family roman
5059 chars.
5060  The keystrokes for
5061 \family default
5062  
5063 \family roman
5064 \emph on
5065 accent1
5066 \family default
5067 \emph default
5068  
5069 \family roman
5070 and
5071 \family default
5072  
5073 \family roman
5074 \emph on
5075 accent2
5076 \family default
5077 \emph default
5078  
5079 \family roman
5080 must have be
5081 \family default
5082 en set with a 
5083 \begin_inset Flex Code
5084 status collapsed
5085
5086 \begin_layout Plain Layout
5087
5088 \shape up
5089
5090 \backslash
5091 kmod
5092 \end_layout
5093
5094 \end_inset
5095
5096  command at 
5097 \family roman
5098 a
5099 \family default
5100  
5101 \family roman
5102 \emph on
5103 previous
5104 \family default
5105 \emph default
5106  
5107 \family roman
5108 point in the
5109 \family default
5110  file.
5111  
5112 \end_layout
5113
5114 \begin_layout Standard
5115 Consider this example from the 
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120
5121 \shape up
5122 greek.kmap
5123 \end_layout
5124
5125 \end_inset
5126
5127  file:
5128 \end_layout
5129
5130 \begin_layout LyX-Code
5131
5132 \backslash
5133 kmod ; acute aeioyvhAEIOYVH 
5134 \backslash
5135 kmod : umlaut iyIY 
5136 \backslash
5137 kcomb acute umlaut iyIY
5138 \end_layout
5139
5140 \begin_layout Standard
5141 This allows you to press 
5142 \begin_inset Flex Noun
5143 status collapsed
5144
5145 \begin_layout Plain Layout
5146
5147 \shape up
5148 ;:i
5149 \end_layout
5150
5151 \end_inset
5152
5153  and get the effect of 
5154 \begin_inset Flex Code
5155 status collapsed
5156
5157 \begin_layout Plain Layout
5158
5159 \shape up
5160
5161 \backslash
5162 '{
5163 \backslash
5164 "{i}}
5165 \end_layout
5166
5167 \end_inset
5168
5169 .
5170  
5171 \family roman
5172 \shape up
5173 A backspace
5174 \family default
5175 \shape default
5176  in this case cancels the last dead key, so if you press 
5177 \begin_inset Flex Noun
5178 status collapsed
5179
5180 \begin_layout Plain Layout
5181
5182 \shape up
5183 ;: Backspace i
5184 \end_layout
5185
5186 \end_inset
5187
5188  you get 
5189 \begin_inset Flex Code
5190 status collapsed
5191
5192 \begin_layout Plain Layout
5193
5194 \shape up
5195
5196 \backslash
5197 '{i}
5198 \end_layout
5199
5200 \end_inset
5201
5202 .
5203 \end_layout
5204
5205 \begin_layout Subsection
5206 The .cdef File
5207 \end_layout
5208
5209 \begin_layout Standard
5210 After the 
5211 \begin_inset Flex Code
5212 status collapsed
5213
5214 \begin_layout Plain Layout
5215
5216 \shape up
5217 .kmap
5218 \end_layout
5219
5220 \end_inset
5221
5222  mapping is performed, a 
5223 \begin_inset Flex Code
5224 status collapsed
5225
5226 \begin_layout Plain Layout
5227
5228 \shape up
5229 .cde
5230 \shape default
5231 f
5232 \end_layout
5233
5234 \end_inset
5235
5236  file maps the strings that the symbols generate to characters in the current
5237  font.
5238  The \SpecialChar LyX
5239  distribution currently includes at least the 
5240 \begin_inset Flex Code
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244
5245 \shape up
5246 iso8859-1.cdef
5247 \end_layout
5248
5249 \end_inset
5250
5251  and 
5252 \begin_inset Flex Code
5253 status collapsed
5254
5255 \begin_layout Plain Layout
5256
5257 \shape up
5258 iso8859-2.cdef
5259 \end_layout
5260
5261 \end_inset
5262
5263  files.
5264 \end_layout
5265
5266 \begin_layout Standard
5267 In general the 
5268 \begin_inset Flex Code
5269 status collapsed
5270
5271 \begin_layout Plain Layout
5272
5273 \shape up
5274 .cdef
5275 \end_layout
5276
5277 \end_inset
5278
5279  file is a sequence of declarations of the form
5280 \end_layout
5281
5282 \begin_layout LyX-Code
5283
5284 \family roman
5285 \emph on
5286 char_index_in_set
5287 \family default
5288 \emph default
5289  
5290 \family roman
5291 \emph on
5292  string
5293 \end_layout
5294
5295 \begin_layout Standard
5296 For example, in order to map 
5297 \begin_inset Flex Noun
5298 status collapsed
5299
5300 \begin_layout Plain Layout
5301
5302 \shape up
5303
5304 \backslash
5305 '{e}
5306 \end_layout
5307
5308 \end_inset
5309
5310  to the corresponding character in the iso-8859-1 set (233), the following
5311  declaration is used
5312 \end_layout
5313
5314 \begin_layout LyX-Code
5315 233 "
5316 \backslash
5317
5318 \backslash
5319 '{e}"
5320 \end_layout
5321
5322 \begin_layout Standard
5323 with 
5324 \begin_inset Flex Code
5325 status collapsed
5326
5327 \begin_layout Plain Layout
5328
5329 \backslash
5330
5331 \end_layout
5332
5333 \end_inset
5334
5335  and 
5336 \begin_inset Flex Code
5337 status collapsed
5338
5339 \begin_layout Plain Layout
5340 "
5341 \end_layout
5342
5343 \end_inset
5344
5345  being escap
5346 \family roman
5347 ed in
5348 \family default
5349  
5350 \family roman
5351 \emph on
5352 string
5353 \emph default
5354 .
5355  Note that
5356 \family default
5357  the same character can apply to more than one string.
5358  In the 
5359 \begin_inset Flex Code
5360 status collapsed
5361
5362 \begin_layout Plain Layout
5363 i
5364 \shape up
5365 so-8859-7.cdef
5366 \end_layout
5367
5368 \end_inset
5369
5370  file you have
5371 \end_layout
5372
5373 \begin_layout LyX-Code
5374 192 "
5375 \backslash
5376
5377 \backslash
5378 '{
5379 \backslash
5380
5381 \backslash
5382
5383 \backslash
5384 "{i}}"
5385 \begin_inset Newline newline
5386 \end_inset
5387
5388 192 "
5389 \backslash
5390
5391 \backslash
5392
5393 \backslash
5394 "{
5395 \backslash
5396
5397 \backslash
5398 '{i}}"
5399 \end_layout
5400
5401 \begin_layout Standard
5402 If \SpecialChar LyX
5403  cannot find a mapping for the string produced by the keystroke or a
5404  deadkey sequence, it will check if it looks like an accented char and try
5405  to draw an accent over the character on screen.
5406 \end_layout
5407
5408 \begin_layout Subsection
5409 Dead Keys
5410 \end_layout
5411
5412 \begin_layout Standard
5413 There is a second way to add support for international characters through
5414  so-called dead-keys.
5415  A dead-key works in combination with a letter to produce an accented character.
5416  Here, we'll explain how to create a really simple dead-key to illustrate
5417  how they work.
5418 \end_layout
5419
5420 \begin_layout Standard
5421 Suppose you happen to need the circumflex character, 
5422 \begin_inset Quotes eld
5423 \end_inset
5424
5425  ̂
5426 \begin_inset Quotes erd
5427 \end_inset
5428
5429 .
5430  You could bind the 
5431 \begin_inset Flex Noun
5432 status collapsed
5433
5434 \begin_layout Plain Layout
5435 ^
5436 \end_layout
5437
5438 \end_inset
5439
5440 -key [a.k.a.
5441 \begin_inset space ~
5442 \end_inset
5443
5444
5445 \begin_inset Flex Noun
5446 status collapsed
5447
5448 \begin_layout Plain Layout
5449 Shift-6
5450 \end_layout
5451
5452 \end_inset
5453
5454 ] to the \SpecialChar LyX
5455  command 
5456 \begin_inset Flex Code
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 accent-circumflex
5461 \end_layout
5462
5463 \end_inset
5464
5465  in your 
5466 \begin_inset Flex Code
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 lyxrc
5471 \end_layout
5472
5473 \end_inset
5474
5475  file.
5476  Now, whenever you type the 
5477 \begin_inset Flex Noun
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 ^
5482 \end_layout
5483
5484 \end_inset
5485
5486 -key followed by a letter, that letter will have a circumflex accent on
5487  it.
5488  For example, the sequence 
5489 \begin_inset Quotes eld
5490 \end_inset
5491
5492
5493 \begin_inset Flex Noun
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497 ^e
5498 \end_layout
5499
5500 \end_inset
5501
5502
5503 \begin_inset Quotes erd
5504 \end_inset
5505
5506  produces the letter: 
5507 \begin_inset Quotes eld
5508 \end_inset
5509
5510 ê
5511 \begin_inset Quotes erd
5512 \end_inset
5513
5514 .
5515  If you tried to type 
5516 \begin_inset Quotes eld
5517 \end_inset
5518
5519
5520 \begin_inset Flex Noun
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 ^t
5525 \end_layout
5526
5527 \end_inset
5528
5529
5530 \begin_inset Quotes erd
5531 \end_inset
5532
5533 , however, \SpecialChar LyX
5534  will complain with a beep, since a 
5535 \begin_inset Quotes eld
5536 \end_inset
5537
5538
5539 \begin_inset Flex Noun
5540 status collapsed
5541
5542 \begin_layout Plain Layout
5543 t
5544 \end_layout
5545
5546 \end_inset
5547
5548
5549 \begin_inset Quotes erd
5550 \end_inset
5551
5552  never takes a circumflex accent.
5553  Hitting 
5554 \begin_inset Flex Noun
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558 Space
5559 \end_layout
5560
5561 \end_inset
5562
5563  after a dead-key produces the bare-accent.
5564  Please note this last point! If you bind a key to a dead-key, you'll need
5565  to rebind the character on that key to yet another key.
5566  Binding the 
5567 \begin_inset Flex Noun
5568 status collapsed
5569
5570 \begin_layout Plain Layout
5571 ,-key
5572 \end_layout
5573
5574 \end_inset
5575
5576  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5577 \end_layout
5578
5579 \begin_layout Standard
5580 One common way to bind dead-keys is to use 
5581 \begin_inset Flex Noun
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 Meta-
5586 \end_layout
5587
5588 \end_inset
5589
5590
5591 \begin_inset Flex Noun
5592 status collapsed
5593
5594 \begin_layout Plain Layout
5595 Ctrl-
5596 \end_layout
5597
5598 \end_inset
5599
5600 , and 
5601 \begin_inset Flex Noun
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605 Shift-
5606 \end_layout
5607
5608 \end_inset
5609
5610  in combination with an accent, like 
5611 \begin_inset Quotes eld
5612 \end_inset
5613
5614
5615 \begin_inset Flex Noun
5616 status collapsed
5617
5618 \begin_layout Plain Layout
5619 ~
5620 \end_layout
5621
5622 \end_inset
5623
5624
5625 \begin_inset Quotes erd
5626 \end_inset
5627
5628  or 
5629 \begin_inset Quotes eld
5630 \end_inset
5631
5632
5633 \begin_inset Flex Noun
5634 status collapsed
5635
5636 \begin_layout Plain Layout
5637 ,
5638 \end_layout
5639
5640 \end_inset
5641
5642
5643 \begin_inset Quotes erd
5644 \end_inset
5645
5646  or 
5647 \begin_inset Quotes eld
5648 \end_inset
5649
5650
5651 \begin_inset Flex Noun
5652 status collapsed
5653
5654 \begin_layout Plain Layout
5655 ^
5656 \end_layout
5657
5658 \end_inset
5659
5660
5661 \begin_inset Quotes erd
5662 \end_inset
5663
5664 .
5665  Another way involves using 
5666 \begin_inset Flex Code
5667 status collapsed
5668
5669 \begin_layout Plain Layout
5670 xmodmap
5671 \end_layout
5672
5673 \end_inset
5674
5675  and 
5676 \begin_inset Flex Code
5677 status collapsed
5678
5679 \begin_layout Plain Layout
5680 xkeycaps
5681 \end_layout
5682
5683 \end_inset
5684
5685  to set up the special 
5686 \begin_inset Flex Code
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690 Mode_Switch
5691 \end_layout
5692
5693 \end_inset
5694
5695  key.
5696  The 
5697 \begin_inset Flex Code
5698 status collapsed
5699
5700 \begin_layout Plain Layout
5701 Mode_Switch
5702 \end_layout
5703
5704 \end_inset
5705
5706  acts in some ways just like 
5707 \begin_inset Flex Noun
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 Shift
5712 \end_layout
5713
5714 \end_inset
5715
5716  and permits you to bind keys to accented characters.
5717  You can also turn keys into dead-keys by binding them to something like
5718  
5719 \begin_inset Flex Code
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 usldead_cedilla
5724 \end_layout
5725
5726 \end_inset
5727
5728  and then binding this symbolic key to the corresponding \SpecialChar LyX
5729  command.
5730 \begin_inset Foot
5731 status collapsed
5732
5733 \begin_layout Plain Layout
5734 Note from 
5735 \noun on
5736 John Weiss
5737 \noun default
5738 : This is exactly what I do in my 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 ~/.lyx/lyxrc
5744 \end_layout
5745
5746 \end_inset
5747
5748  and my 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 ~/.xmodmap
5754 \end_layout
5755
5756 \end_inset
5757
5758  files.
5759  I have my 
5760 \begin_inset Flex Noun
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 Scroll
5765 \begin_inset space ~
5766 \end_inset
5767
5768 Lock
5769 \end_layout
5770
5771 \end_inset
5772
5773  key set up as 
5774 \begin_inset Flex Code
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778 Mode_Shift
5779 \end_layout
5780
5781 \end_inset
5782
5783  and a bunch of these 
5784 \begin_inset Quotes eld
5785 \end_inset
5786
5787
5788 \begin_inset Flex Code
5789 status collapsed
5790
5791 \begin_layout Plain Layout
5792 usldead_*
5793 \end_layout
5794
5795 \end_inset
5796
5797
5798 \begin_inset Quotes erd
5799 \end_inset
5800
5801  symbolic keys bound such things as 
5802 \begin_inset Flex Noun
5803 status collapsed
5804
5805 \begin_layout Plain Layout
5806 Scroll
5807 \begin_inset space ~
5808 \end_inset
5809
5810 Lock-^
5811 \end_layout
5812
5813 \end_inset
5814
5815  and 
5816 \begin_inset Flex Noun
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820 Scroll
5821 \begin_inset space ~
5822 \end_inset
5823
5824 Lock-~
5825 \end_layout
5826
5827 \end_inset
5828
5829 .
5830  This is how I produce my accented characters.
5831 \end_layout
5832
5833 \end_inset
5834
5835  You can make just about anything into the 
5836 \begin_inset Flex Code
5837 status collapsed
5838
5839 \begin_layout Plain Layout
5840 Mode_Switch
5841 \end_layout
5842
5843 \end_inset
5844
5845  key: One of the 
5846 \begin_inset Flex Noun
5847 status collapsed
5848
5849 \begin_layout Plain Layout
5850 Ctrl-
5851 \end_layout
5852
5853 \end_inset
5854
5855  keys, a spare function key, etc.
5856  As for the \SpecialChar LyX
5857  commands that produce accents, check the entry for 
5858 \begin_inset Flex Code
5859 status collapsed
5860
5861 \begin_layout Plain Layout
5862 accent-acute
5863 \end_layout
5864
5865 \end_inset
5866
5867  in the 
5868 \emph on
5869 Reference Manual
5870 \emph default
5871 .
5872  You'll find the complete list there.
5873 \end_layout
5874
5875 \begin_layout Subsection
5876 Saving your Language Configuration
5877 \end_layout
5878
5879 \begin_layout Standard
5880 You can edit your preferences so that your desired language environment
5881  is automatically configured when \SpecialChar LyX
5882  starts up, via the 
5883 \begin_inset Flex Noun
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 Edit\SpecialChar menuseparator
5888 Preferences
5889 \end_layout
5890
5891 \end_inset
5892
5893  dialog.
5894 \end_layout
5895
5896 \begin_layout Chapter
5897 Installing New Document Classes, Layouts, and Templates
5898 \begin_inset CommandInset label
5899 LatexCommand label
5900 name "cha:Installing-New-Document"
5901
5902 \end_inset
5903
5904
5905 \begin_inset Argument 1
5906 status collapsed
5907
5908 \begin_layout Plain Layout
5909 Installing New Document Classes
5910 \end_layout
5911
5912 \end_inset
5913
5914
5915 \end_layout
5916
5917 \begin_layout Standard
5918 In this chapter, we describe the procedures for creating and installing
5919  new \SpecialChar LyX
5920  layout and template files, as well as offer a refresher on correctly
5921  installing new \SpecialChar LaTeX
5922  document classes.
5923  
5924 \end_layout
5925
5926 \begin_layout Standard
5927 First, let us a say a few words about how one ought to think about the relation
5928  between \SpecialChar LyX
5929  and \SpecialChar LaTeX
5930 .
5931  The thing to understand is that, in a certain sense, \SpecialChar LyX
5932  doesn't know anything
5933  about \SpecialChar LaTeX
5934 .
5935  Indeed, from \SpecialChar LyX
5936 's point of view, \SpecialChar LaTeX
5937  is just one of several 
5938 \begin_inset Quotes eld
5939 \end_inset
5940
5941 backend formats
5942 \begin_inset Quotes erd
5943 \end_inset
5944
5945  in which it is capable of producing output.
5946  Other such formats are DocBook, plaintext, and XHTML.
5947  \SpecialChar LaTeX
5948  is, of course, a particularly important format, but very little of the
5949  information \SpecialChar LyX
5950  has about \SpecialChar LaTeX
5951  is actually contained in the program itself.
5952 \begin_inset Foot
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956 Some commands are sufficiently complex that they are 
5957 \begin_inset Quotes eld
5958 \end_inset
5959
5960 hardcoded
5961 \begin_inset Quotes erd
5962 \end_inset
5963
5964  into \SpecialChar LyX
5965 .
5966  But the developers generally regard this as a Bad Thing.
5967 \end_layout
5968
5969 \end_inset
5970
5971  Rather, that information, even for the standard classes like 
5972 \begin_inset Flex Code
5973 status collapsed
5974
5975 \begin_layout Plain Layout
5976 article.cls
5977 \end_layout
5978
5979 \end_inset
5980
5981 , is contained in `layout files'.
5982  Similarly, \SpecialChar LyX
5983  itself does not know much about DocBook or XHTML.
5984  What it knows is contained in layout files.
5985 \end_layout
5986
5987 \begin_layout Standard
5988 You can think of the layout file for a given document class as a translation
5989  manual between \SpecialChar LyX
5990  constructs—paragraphs with their corresponding styles,
5991  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5992 , DocBook, or XHTML
5993  constructs.
5994  Almost everything \SpecialChar LyX
5995  knows about 
5996 \begin_inset Flex Code
5997 status collapsed
5998
5999 \begin_layout Plain Layout
6000 article.cls
6001 \end_layout
6002
6003 \end_inset
6004
6005 , for example, is contained in the file 
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 article.layout
6011 \end_layout
6012
6013 \end_inset
6014
6015  and in various other files it includes.
6016  For this reason, anyone intending to write layout files should plan to
6017  study the existing files.
6018  A good place to start is with 
6019 \begin_inset Flex Code
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 stdsections.inc
6024 \end_layout
6025
6026 \end_inset
6027
6028 , which is included in 
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 article.layout
6034 \end_layout
6035
6036 \end_inset
6037
6038
6039 \begin_inset Flex Code
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 book.layout
6044 \end_layout
6045
6046 \end_inset
6047
6048 , and many of the other layout files for document classes.
6049  This file is where sections and the like are defined: 
6050 \begin_inset Flex Code
6051 status collapsed
6052
6053 \begin_layout Plain Layout
6054 stdsections.inc
6055 \end_layout
6056
6057 \end_inset
6058
6059  tells \SpecialChar LyX
6060  how paragraphs that are marked with the Section, Subsection, etc,
6061  styles can be translated into corresponding \SpecialChar LaTeX
6062 , DocBook, and XHTML commands
6063  and tags.
6064  The 
6065 \begin_inset Flex Code
6066 status collapsed
6067
6068 \begin_layout Plain Layout
6069 article.layout
6070 \end_layout
6071
6072 \end_inset
6073
6074  file basically just includes several of these 
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 std*.inc
6080 \end_layout
6081
6082 \end_inset
6083
6084  files.
6085 \end_layout
6086
6087 \begin_layout Standard
6088 Defining the \SpecialChar LyX
6089 –\SpecialChar LaTeX
6090  correspondence is not the only thing layout files do, though.
6091  Their other job is to define how the \SpecialChar LyX
6092  constructs themselves will appear
6093  on-screen.
6094  The fact that layout files have these two jobs is often a source of confusion,
6095  because they are completely separate.
6096  Telling \SpecialChar LyX
6097  how to translate a certain paragraph style into \SpecialChar LaTeX
6098  does not tell
6099  \SpecialChar LyX
6100  how to display it; conversely, telling \SpecialChar LyX
6101  how to display a certain paragraph
6102  style does not tell \SpecialChar LyX
6103  how to translate it into \SpecialChar LaTeX
6104  (let alone tell \SpecialChar LaTeX
6105  how to
6106  display it).
6107  So, in general, when you define a new \SpecialChar LyX
6108  construct, you must always do two
6109  quite separate things: (i)
6110 \begin_inset space ~
6111 \end_inset
6112
6113 tell \SpecialChar LyX
6114  how to translate it into \SpecialChar LaTeX
6115  and (ii)
6116 \begin_inset space ~
6117 \end_inset
6118
6119 tell \SpecialChar LyX
6120  how to display it.
6121 \end_layout
6122
6123 \begin_layout Standard
6124 Much the same is true, of course, as regards \SpecialChar LyX
6125 's other backend formats, though
6126  XHTML is in some ways different, because in that case \SpecialChar LyX
6127  
6128 \emph on
6129 is
6130 \emph default
6131  able, to some extent, to use information about how it should display a
6132  paragraph on the screen to output information (in the form of CSS) about
6133  how the paragraph should be displayed in a browser.
6134  Even in this case, however, the distinction between what \SpecialChar LyX
6135  does internally
6136  and how things are rendered externally remains in force, and the two can
6137  be controlled separately.
6138  See 
6139 \begin_inset CommandInset ref
6140 LatexCommand ref
6141 reference "sec:Tags-for-XHTML"
6142
6143 \end_inset
6144
6145  for the details.
6146 \end_layout
6147
6148 \begin_layout Section
6149 Installing new \SpecialChar LaTeX
6150  files
6151 \end_layout
6152
6153 \begin_layout Standard
6154 Some installations may not include a \SpecialChar LaTeX
6155  package or class file that you would
6156  like to use within \SpecialChar LyX
6157 .
6158  For example, you might need Foil\SpecialChar TeX
6159 , a package for preparing slides for overhead
6160  projectors.
6161  Modern \SpecialChar LaTeX
6162  distributions like \SpecialChar TeX
6163 Live (2008 or newer) or MiK\SpecialChar TeX
6164  provide a user interface
6165  for installing such packages.
6166  For example, with MiK\SpecialChar TeX
6167 , you start the program 
6168 \begin_inset Quotes eld
6169 \end_inset
6170
6171 Package
6172 \begin_inset space ~
6173 \end_inset
6174
6175 Manager
6176 \begin_inset Quotes erd
6177 \end_inset
6178
6179  to get a list of available packages.
6180  To install one of them, right click on it or use the corresponding toolbar
6181  button.
6182 \end_layout
6183
6184 \begin_layout Standard
6185 If your \SpecialChar LaTeX
6186  distribution does not provide such a `package manager', or if the
6187  package is not available from your distribution, then follow these steps
6188  to install it manually:
6189 \end_layout
6190
6191 \begin_layout Enumerate
6192 Get the package from 
6193 \begin_inset CommandInset href
6194 LatexCommand href
6195 name "CTAN"
6196 target "http://www.ctan.org/"
6197 literal "false"
6198
6199 \end_inset
6200
6201  or wherever.
6202 \end_layout
6203
6204 \begin_layout Enumerate
6205 If the package contains a file with the ending 
6206 \begin_inset Quotes eld
6207 \end_inset
6208
6209
6210 \begin_inset Flex Code
6211 status collapsed
6212
6213 \begin_layout Plain Layout
6214 .ins
6215 \end_layout
6216
6217 \end_inset
6218
6219
6220 \begin_inset Quotes erd
6221 \end_inset
6222
6223  (is the case for Foil\SpecialChar TeX
6224 ) then open a console, change to the folder of this
6225  file and execute the command 
6226 \begin_inset Flex Code
6227 status collapsed
6228
6229 \begin_layout Plain Layout
6230 latex foiltex.ins
6231 \end_layout
6232
6233 \end_inset
6234
6235 .
6236  You have now unpacked the package and have all files to install it.
6237  Most \SpecialChar LaTeX
6238 -packages are not packed and you can skip this step.
6239 \end_layout
6240
6241 \begin_layout Enumerate
6242 Now you need to decide if the package should be available for all users
6243  or only for you.
6244 \end_layout
6245
6246 \begin_deeper
6247 \begin_layout Enumerate
6248 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6249  for all users on your system, then install it in your `local' \SpecialChar TeX
6250  tree, otherwise
6251  install it in your own `user' \SpecialChar TeX
6252  tree.
6253  Where these trees should be created, if they do not already exist, depends
6254  on your system.
6255  To find this out, look in the file 
6256 \begin_inset Flex Code
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 texmf.cnf
6261 \end_layout
6262
6263 \end_inset
6264
6265 .
6266 \begin_inset Foot
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 This is usually in the directory 
6271 \begin_inset Flex Code
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 $TEXMF/web2c
6276 \end_layout
6277
6278 \end_inset
6279
6280 , though you can execute the command 
6281 \begin_inset Flex Code
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 kpsewhich texmf.cnf
6286 \end_layout
6287
6288 \end_inset
6289
6290  to locate it.
6291 \end_layout
6292
6293 \end_inset
6294
6295  The location of the `local' \SpecialChar TeX
6296  tree is defined by the 
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 TEXMFLOCAL
6302 \end_layout
6303
6304 \end_inset
6305
6306  variable; this is usually somewhere like 
6307 \begin_inset Flex Code
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 /usr/local/share/texmf
6312 \end_layout
6313
6314 \end_inset
6315
6316  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6317 Live
6318  distribution.
6319  The location of the `user' \SpecialChar TeX
6320  tree is defined by 
6321 \begin_inset Flex Code
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 TEXMFHOME
6326 \end_layout
6327
6328 \end_inset
6329
6330  and is commonly 
6331 \begin_inset Flex Code
6332 status collapsed
6333
6334 \begin_layout Plain Layout
6335 $HOME/texmf
6336 \end_layout
6337
6338 \end_inset
6339
6340  or 
6341 \begin_inset Flex Code
6342 status collapsed
6343
6344 \begin_layout Plain Layout
6345
6346 \family sans
6347 $HOME/.texliveXXXX
6348 \end_layout
6349
6350 \end_inset
6351
6352 .
6353  (If these variables are not predefined, you have to define them.) You'll
6354  probably need root permissions to create or modify the `local' tree, but
6355  not for your `user' tree.
6356 \begin_inset Newline newline
6357 \end_inset
6358
6359 In general, it is recommended to install in the user tree because your user
6360  will not be modified or even overwritten when you upgrade your system.
6361  It will typically also be backed up together with everything else when
6362  you backup your home directory (which, of course, you do on a regular basis).
6363 \end_layout
6364
6365 \begin_layout Enumerate
6366 On Windows, if you want the new package to be available for all users on
6367  your system, change to the folder where \SpecialChar LaTeX
6368  is installed and then change to
6369  the subfolder 
6370 \begin_inset Flex Code
6371 status collapsed
6372
6373 \begin_layout Plain Layout
6374 ~
6375 \backslash
6376 tex
6377 \backslash
6378 latex
6379 \end_layout
6380
6381 \end_inset
6382
6383 .
6384  (For MiK\SpecialChar TeX
6385 , this would be by default the folder 
6386 \begin_inset Flex Code
6387 status collapsed
6388
6389 \begin_layout Plain Layout
6390 ~:
6391 \backslash
6392 Programs
6393 \backslash
6394 MiKTeX
6395 \backslash
6396 tex
6397 \backslash
6398 latex
6399 \end_layout
6400
6401 \end_inset
6402
6403 .)
6404 \begin_inset Foot
6405 status collapsed
6406
6407 \begin_layout Plain Layout
6408 Note that this will be the correct path only on English installations.
6409  On a German one, it would be 
6410 \begin_inset Flex Code
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414 ~:
6415 \backslash
6416 Programme
6417 \backslash
6418 MiKTeX
6419 \backslash
6420 tex
6421 \backslash
6422 latex
6423 \end_layout
6424
6425 \end_inset
6426
6427 , and similarly for other languages.
6428 \end_layout
6429
6430 \end_inset
6431
6432  Create there a new folder 
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 foiltex
6438 \end_layout
6439
6440 \end_inset
6441
6442  and copy all files of the package into it.
6443  
6444 \begin_inset Newline newline
6445 \end_inset
6446
6447 If the package should only available for you or you don't have admin permissions
6448 , do the same, but in the local \SpecialChar LaTeX
6449  folder.
6450  E.
6451 \begin_inset space \thinspace{}
6452 \end_inset
6453
6454 g., for MiK\SpecialChar TeX
6455
6456 \begin_inset space ~
6457 \end_inset
6458
6459 2.8 under Windows XP, this would be the folder:
6460 \begin_inset Newline newline
6461 \end_inset
6462
6463
6464 \family sans
6465
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 ~:
6471 \backslash
6472 Documents and Settings
6473 \backslash
6474 <username>
6475 \backslash
6476 Application Data
6477 \backslash
6478
6479 \end_layout
6480
6481 \end_inset
6482
6483
6484 \begin_inset Newline newline
6485 \end_inset
6486
6487
6488 \family default
6489
6490 \begin_inset Phantom HPhantom
6491 status open
6492
6493 \begin_layout Plain Layout
6494
6495 \family sans
6496 ~:
6497 \backslash
6498
6499 \end_layout
6500
6501 \end_inset
6502
6503
6504 \begin_inset Flex Code
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508 MiKTeX
6509 \backslash
6510 2.8
6511 \backslash
6512 tex
6513 \backslash
6514 latex
6515 \end_layout
6516
6517 \end_inset
6518
6519
6520 \begin_inset Newline newline
6521 \end_inset
6522
6523 On Vista, it would be:
6524 \begin_inset Newline newline
6525 \end_inset
6526
6527
6528 \begin_inset Flex Code
6529 status collapsed
6530
6531 \begin_layout Plain Layout
6532 ~:
6533 \backslash
6534 Users
6535 \backslash
6536 <username>
6537 \backslash
6538 AppData
6539 \backslash
6540 Roaming
6541 \backslash
6542 2.8
6543 \backslash
6544 MiKTeX
6545 \backslash
6546 tex
6547 \backslash
6548 latex
6549 \end_layout
6550
6551 \end_inset
6552
6553
6554 \end_layout
6555
6556 \end_deeper
6557 \begin_layout Enumerate
6558 Now one only need to tell \SpecialChar LaTeX
6559  that there are new files.
6560  This depends on the used \SpecialChar LaTeX
6561 -Distribution:
6562 \end_layout
6563
6564 \begin_deeper
6565 \begin_layout Enumerate
6566 For \SpecialChar TeX
6567 Live execute the command 
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 texhash
6573 \end_layout
6574
6575 \end_inset
6576
6577  from a console.
6578  If you installed the package for all users, then you will probably need
6579  to have root permissions for that.
6580 \end_layout
6581
6582 \begin_layout Enumerate
6583 For MiK\SpecialChar TeX
6584 , if you have installed the package for all users, start the program
6585  
6586 \begin_inset Quotes eld
6587 \end_inset
6588
6589 Settings
6590 \begin_inset space ~
6591 \end_inset
6592
6593 (Admin)
6594 \begin_inset Quotes erd
6595 \end_inset
6596
6597  and press the button marked 
6598 \begin_inset Quotes eld
6599 \end_inset
6600
6601 Refresh FNDB
6602 \begin_inset Quotes erd
6603 \end_inset
6604
6605 .
6606  Otherwise start the program 
6607 \begin_inset Quotes eld
6608 \end_inset
6609
6610 Settings
6611 \begin_inset Quotes erd
6612 \end_inset
6613
6614  and do the same.
6615 \end_layout
6616
6617 \end_deeper
6618 \begin_layout Enumerate
6619 Finally, you need to tell \SpecialChar LyX
6620  that there are new packages available.
6621  So, in \SpecialChar LyX
6622 , use the menu 
6623 \begin_inset Flex Noun
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 Tools
6628 \family sans
6629 \SpecialChar menuseparator
6630 Reconfigure
6631 \end_layout
6632
6633 \end_inset
6634
6635  and then restart \SpecialChar LyX
6636 .
6637 \end_layout
6638
6639 \begin_layout Standard
6640 Now the package is installed.
6641  In our example, the document class 
6642 \begin_inset Flex Code
6643 status collapsed
6644
6645 \begin_layout Plain Layout
6646 FoilTex
6647 \end_layout
6648
6649 \end_inset
6650
6651  will now be available under 
6652 \begin_inset Flex Noun
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 Document\SpecialChar menuseparator
6657 Settings\SpecialChar menuseparator
6658 Document Class
6659 \end_layout
6660
6661 \end_inset
6662
6663  (in the 
6664 \begin_inset Quotes eld
6665 \end_inset
6666
6667 Presentations
6668 \begin_inset Quotes erd
6669 \end_inset
6670
6671  category).
6672  
6673 \end_layout
6674
6675 \begin_layout Standard
6676 If you would like to use a \SpecialChar LaTeX
6677  document class that is not even listed in the
6678  menu 
6679 \begin_inset Flex Noun
6680 status collapsed
6681
6682 \begin_layout Plain Layout
6683 Document\SpecialChar menuseparator
6684 Settings\SpecialChar menuseparator
6685 Document Class
6686 \end_layout
6687
6688 \end_inset
6689
6690 , then you need to create a `layout' file for it.
6691  That is the topic of the next section.
6692 \end_layout
6693
6694 \begin_layout Section
6695 Types of layout files
6696 \end_layout
6697
6698 \begin_layout Standard
6699 This section describes the various sorts of \SpecialChar LyX
6700  files that contain layout informati
6701 on.
6702  These files describe various paragraph and character styles, determining
6703  how \SpecialChar LyX
6704  should display them and how they should be translated into \SpecialChar LaTeX
6705 , DocBook,
6706  XHTML, or whatever output format is being used.
6707  
6708 \end_layout
6709
6710 \begin_layout Standard
6711 We shall try to provide a thorough description of the process of writing
6712  layout files here.
6713  However, there are so many different types of documents supported even
6714  by just \SpecialChar LaTeX
6715  that we can't hope to cover every different possibility or problem
6716  you might encounter.
6717  The \SpecialChar LyX
6718  users' list is frequented by people with lots of experience with layout
6719  design who are willing to share what they've learned, so please feel free
6720  to ask questions there.
6721 \end_layout
6722
6723 \begin_layout Standard
6724 As you prepare to write a new layout, it is extremely helpful to look at
6725  the layouts distributed with \SpecialChar LyX
6726 .
6727  If you write a \SpecialChar LyX
6728  layout for a \SpecialChar LaTeX
6729  document class that might also be used by
6730  others, or write a module that might be useful to others, then you should
6731  consider posting your layout to the 
6732 \begin_inset CommandInset href
6733 LatexCommand href
6734 name "layout section on the LyX wiki"
6735 target "https://wiki.lyx.org/Layouts/Layouts"
6736 literal "false"
6737
6738 \end_inset
6739
6740  or even to the \SpecialChar LyX
6741  developers' list, so that it might be included in \SpecialChar LyX
6742  itself.
6743 \begin_inset Foot
6744 status collapsed
6745
6746 \begin_layout Plain Layout
6747 Note that \SpecialChar LyX
6748  is licensed under the General Public License, so any material
6749  that is contributed to \SpecialChar LyX
6750  must be similarly licensed.
6751 \end_layout
6752
6753 \end_inset
6754
6755
6756 \end_layout
6757
6758 \begin_layout Subsection
6759 Layout modules
6760 \begin_inset CommandInset label
6761 LatexCommand label
6762 name "subsec:Layout-modules"
6763
6764 \end_inset
6765
6766
6767 \end_layout
6768
6769 \begin_layout Standard
6770 We have spoken to this point about `layout files'.
6771  But there are different sorts of files that contain layout information.
6772  Layout files, strictly so called, have the 
6773 \begin_inset Flex Code
6774 status collapsed
6775
6776 \begin_layout Plain Layout
6777 .layout
6778 \end_layout
6779
6780 \end_inset
6781
6782  extension and provide \SpecialChar LyX
6783  with information about document classes.
6784  Since \SpecialChar LyX
6785  1.6 layout information can also be contained in layout 
6786 \emph on
6787 modules
6788 \emph default
6789 , which have the 
6790 \begin_inset Flex Code
6791 status collapsed
6792
6793 \begin_layout Plain Layout
6794 .module
6795 \end_layout
6796
6797 \end_inset
6798
6799  extension.
6800  Modules are to \SpecialChar LaTeX
6801  packages much as layouts are to \SpecialChar LaTeX
6802  classes, and some modules—such
6803  as the 
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 endnotes
6809 \end_layout
6810
6811 \end_inset
6812
6813  module—specifically provide support for one package.
6814  In a sense, layout modules are similar to included
6815 \begin_inset Foot
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 These can have any extension, but by convention have the 
6820 \begin_inset Flex Code
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 .inc
6825 \end_layout
6826
6827 \end_inset
6828
6829  extension.
6830 \end_layout
6831
6832 \end_inset
6833
6834  files—files like 
6835 \begin_inset Flex Code
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 stdsections.inc
6840 \end_layout
6841
6842 \end_inset
6843
6844 —in that modules are not specific to a given document class but may be used
6845  with many different classes.
6846  The difference is that using an included file with 
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851 article.cls
6852 \end_layout
6853
6854 \end_inset
6855
6856  requires editing that file.
6857  Modules, by contrast, are selected in the 
6858 \begin_inset Flex Noun
6859 status collapsed
6860
6861 \begin_layout Plain Layout
6862 Document\SpecialChar menuseparator
6863 Settings
6864 \end_layout
6865
6866 \end_inset
6867
6868  dialog.
6869 \end_layout
6870
6871 \begin_layout Standard
6872 Building modules is the easiest way to get started with layout editing,
6873  since it can be as simple as adding a single new paragraph style or flex
6874  inset.
6875  But modules may, in principle, contain anything a layout file can contain.
6876 \end_layout
6877
6878 \begin_layout Standard
6879 After creating a new module and copying it to the 
6880 \begin_inset Flex Code
6881 status collapsed
6882
6883 \begin_layout Plain Layout
6884 layouts/
6885 \end_layout
6886
6887 \end_inset
6888
6889  folder, you will need to reconfigure and then restart \SpecialChar LyX
6890  for the module to
6891  appear in the menu.
6892  However, changes you make to the module will be seen immediately, if you
6893  open 
6894 \begin_inset Flex Noun
6895 status collapsed
6896
6897 \begin_layout Plain Layout
6898 Document\SpecialChar menuseparator
6899 Settings
6900 \end_layout
6901
6902 \end_inset
6903
6904 , highlight something, and then hit 
6905 \begin_inset Quotes eld
6906 \end_inset
6907
6908 OK
6909 \begin_inset Quotes erd
6910 \end_inset
6911
6912 .
6913  
6914 \emph on
6915 It is strongly recommended that you save your work before doing this
6916 \emph default
6917 .
6918  In fact, 
6919 \emph on
6920 it is strongly recommended that you not attempt to edit modules while simultaneo
6921 usly working on actual documents
6922 \emph default
6923 .
6924  Though of course the developers strive to keep \SpecialChar LyX
6925  stable in such situations,
6926  syntax errors and the like in your module file could cause strange behavior.
6927 \end_layout
6928
6929 \begin_layout Subsubsection
6930 Local Layout
6931 \end_layout
6932
6933 \begin_layout Standard
6934 Modules are to \SpecialChar LyX
6935  as packages are to \SpecialChar LaTeX
6936 .
6937  Sometimes, however, you find yourself wanting a specific inset or character
6938  style just for one document and writing a module that will also be available
6939  to other documents makes little sense.
6940  What you need is \SpecialChar LyX
6941 's 
6942 \begin_inset Quotes eld
6943 \end_inset
6944
6945 Local Layout
6946 \begin_inset Quotes erd
6947 \end_inset
6948
6949 .
6950 \end_layout
6951
6952 \begin_layout Standard
6953 You will find it under 
6954 \family sans
6955 Document\SpecialChar menuseparator
6956 Settings\SpecialChar menuseparator
6957 Local Layout
6958 \family default
6959 .
6960  The large text box allows you to enter anything that you might enter in
6961  a layout file or module.
6962  You can think of a document's local layout, in fact, as a module that belongs
6963  just to it.
6964  So, in particular, you must enter a 
6965 \begin_inset Flex Code
6966 status collapsed
6967
6968 \begin_layout Plain Layout
6969 Format
6970 \end_layout
6971
6972 \end_inset
6973
6974  tag.
6975  Any format is acceptable, but one would normally use the format current
6976  at the time.
6977  (In \SpecialChar LyX
6978  
6979 \begin_inset Info
6980 type  "lyxinfo"
6981 arg   "version"
6982 \end_inset
6983
6984 , the current layout format is 
6985 \begin_inset Info
6986 type  "lyxinfo"
6987 arg   "layoutformat"
6988 \end_inset
6989
6990 .)
6991 \end_layout
6992
6993 \begin_layout Standard
6994 When you have entered something in the 
6995 \begin_inset Flex Code
6996 status collapsed
6997
6998 \begin_layout Plain Layout
6999 Local Layout
7000 \end_layout
7001
7002 \end_inset
7003
7004  pane, \SpecialChar LyX
7005  will enable the 
7006 \begin_inset Quotes eld
7007 \end_inset
7008
7009 Validate
7010 \begin_inset Quotes erd
7011 \end_inset
7012
7013  button at the bottom.
7014  Clicking this button will cause \SpecialChar LyX
7015  to determine whether what you have entered
7016  is valid layout information for the chosen format.
7017  \SpecialChar LyX
7018  will report the result but, unfortunately, will not tell you what errors
7019  there might have been.
7020  These will be written to the terminal, however, if \SpecialChar LyX
7021  is started from a terminal.
7022  You will not be permitted to save your local layout until you have entered
7023  something valid.
7024 \end_layout
7025
7026 \begin_layout Standard
7027 The warnings at the end of the previous section apply here, too.
7028  Do not play with local layout while you are actually working, especially
7029  if you have not saved your document.
7030  That said, using local layout with a test document can be a very convenient
7031  way to try out layout ideas, or even to start developing a module.
7032 \end_layout
7033
7034 \begin_layout Subsection
7035 Layout for 
7036 \begin_inset Flex Noun
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 .sty
7041 \end_layout
7042
7043 \end_inset
7044
7045  files
7046 \end_layout
7047
7048 \begin_layout Standard
7049 There are two situations you are likely to encounter when wanting to support
7050  a new \SpecialChar LaTeX
7051  document class, involving style (
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 .sty
7057 \end_layout
7058
7059 \end_inset
7060
7061 ) files and \SpecialChar LaTeX2e
7062  class (
7063 \begin_inset Flex Code
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 .cls
7068 \end_layout
7069
7070 \end_inset
7071
7072 ) .
7073  Supporting a style file is usually fairly easy.
7074  Supporting a new class file is a bit harder.
7075  We'll discuss the former in this section and the latter in the next.
7076  Similar remarks apply, of course, if you want to support a new DocBook
7077  DTD.
7078 \end_layout
7079
7080 \begin_layout Standard
7081 The easier case is the one in which your new document class is provided
7082  as a style file that is to be used in conjunction with an already supported
7083  document class.
7084  For the sake of the example, we'll assume that the style file is called
7085  
7086 \begin_inset Flex Noun
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 myclass.sty
7091 \end_layout
7092
7093 \end_inset
7094
7095  and that it is meant to be used with 
7096 \begin_inset Flex Noun
7097 status collapsed
7098
7099 \begin_layout Plain Layout
7100 report.cls
7101 \end_layout
7102
7103 \end_inset
7104
7105 , which is a standard class.
7106  
7107 \end_layout
7108
7109 \begin_layout Standard
7110 Start by copying the existing class's layout file into your local directory:
7111 \begin_inset Foot
7112 status collapsed
7113
7114 \begin_layout Plain Layout
7115 Of course, which directory is your local directory will vary by platform,
7116  and \SpecialChar LyX
7117  allows you to specify your local directory on startup, too, using
7118  the 
7119 \begin_inset Flex Code
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 -userdir
7124 \end_layout
7125
7126 \end_inset
7127
7128  option.
7129 \end_layout
7130
7131 \end_inset
7132
7133
7134 \end_layout
7135
7136 \begin_layout LyX-Code
7137 cp report.layout ~/.lyx/layouts/myclass.layout
7138 \end_layout
7139
7140 \begin_layout Standard
7141 Then edit 
7142 \begin_inset Flex Code
7143 status collapsed
7144
7145 \begin_layout Plain Layout
7146 myclass.layout
7147 \end_layout
7148
7149 \end_inset
7150
7151  and change the line: 
7152 \end_layout
7153
7154 \begin_layout LyX-Code
7155
7156 \backslash
7157 DeclareLaTeXClass{Report (Standard Class)}
7158 \end_layout
7159
7160 \begin_layout Standard
7161 to read
7162 \end_layout
7163
7164 \begin_layout LyX-Code
7165
7166 \backslash
7167 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7168 \end_layout
7169
7170 \begin_layout Standard
7171 Then add:
7172 \end_layout
7173
7174 \begin_layout LyX-Code
7175 Preamble 
7176 \begin_inset Newline newline
7177 \end_inset
7178
7179     
7180 \backslash
7181 usepackage{myclass}
7182 \begin_inset Newline newline
7183 \end_inset
7184
7185 EndPreamble
7186 \end_layout
7187
7188 \begin_layout Standard
7189 near the top of the file.
7190 \end_layout
7191
7192 \begin_layout Standard
7193 Start \SpecialChar LyX
7194  and select 
7195 \begin_inset Flex Noun
7196 status collapsed
7197
7198 \begin_layout Plain Layout
7199 Tools\SpecialChar menuseparator
7200 Reconfigure
7201 \end_layout
7202
7203 \end_inset
7204
7205 .
7206  Then restart \SpecialChar LyX
7207  and try creating a new document.
7208  You should see "
7209 \begin_inset Flex Noun
7210 status collapsed
7211
7212 \begin_layout Plain Layout
7213 Report (My Class)
7214 \end_layout
7215
7216 \end_inset
7217
7218 " as a document class option in the 
7219 \begin_inset Flex Noun
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 Document\SpecialChar menuseparator
7224 Settings
7225 \end_layout
7226
7227 \end_inset
7228
7229  dialog.
7230  It is likely that some of the sectioning commands and such in your new
7231  class will work differently from how they worked in the base class—
7232 \begin_inset Flex Code
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236 report
7237 \end_layout
7238
7239 \end_inset
7240
7241  in this example—so you can fiddle around with the settings for the different
7242  sections if you wish.
7243  The layout information for sections is contained in 
7244 \begin_inset Flex Code
7245 status collapsed
7246
7247 \begin_layout Plain Layout
7248 stdsections.inc
7249 \end_layout
7250
7251 \end_inset
7252
7253 , but you do not need to copy and change this file.
7254  Instead, you can simply add your changes to your layout file, after the
7255  line 
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 Input stdclass.inc
7261 \end_layout
7262
7263 \end_inset
7264
7265 , which itself includes 
7266 \begin_inset Flex Code
7267 status collapsed
7268
7269 \begin_layout Plain Layout
7270 stdsections.inc
7271 \end_layout
7272
7273 \end_inset
7274
7275 .
7276  For example, you might add these lines:
7277 \end_layout
7278
7279 \begin_layout LyX-Code
7280 Style Chapter
7281 \end_layout
7282
7283 \begin_layout LyX-Code
7284     Font
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288         Family Sans
7289 \end_layout
7290
7291 \begin_layout LyX-Code
7292     EndFont
7293 \end_layout
7294
7295 \begin_layout LyX-Code
7296 End
7297 \end_layout
7298
7299 \begin_layout Standard
7300 to change the font for chapter headings to sans-serif.
7301  This will override (or, in this case, add to) the existing declaration
7302  for the Chapter style.
7303  
7304 \end_layout
7305
7306 \begin_layout Standard
7307 Your new package may also provide commands or environments not present in
7308  the base class.
7309  In this case, you will want to add these to the layout file.
7310  See 
7311 \begin_inset CommandInset ref
7312 LatexCommand ref
7313 reference "sec:TextClass"
7314
7315 \end_inset
7316
7317  for information on how to do so.
7318 \end_layout
7319
7320 \begin_layout Standard
7321 If 
7322 \begin_inset Flex Noun
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326 myclass.sty
7327 \end_layout
7328
7329 \end_inset
7330
7331  can be used with several different document classes, and even if it cannot,
7332  you might find it easiest just to write a module that you can load with
7333  the base class.
7334  The simplest possible such module would be:
7335 \end_layout
7336
7337 \begin_layout LyX-Code
7338 #
7339 \backslash
7340 DeclareLyXModule{My Class} 
7341 \end_layout
7342
7343 \begin_layout LyX-Code
7344 #DescriptionBegin 
7345 \end_layout
7346
7347 \begin_layout LyX-Code
7348 #Support for myclass.sty.
7349 \end_layout
7350
7351 \begin_layout LyX-Code
7352 #DescriptionEnd
7353 \begin_inset Newline newline
7354 \end_inset
7355
7356
7357 \end_layout
7358
7359 \begin_layout LyX-Code
7360 Format 
7361 \begin_inset Info
7362 type  "lyxinfo"
7363 arg   "layoutformat"
7364 \end_inset
7365
7366
7367 \begin_inset Newline newline
7368 \end_inset
7369
7370
7371 \end_layout
7372
7373 \begin_layout LyX-Code
7374 Preamble
7375 \begin_inset Newline newline
7376 \end_inset
7377
7378     
7379 \backslash
7380 usepackage{myclass}
7381 \begin_inset Newline newline
7382 \end_inset
7383
7384 EndPreamble
7385 \end_layout
7386
7387 \begin_layout Standard
7388 A more complex module might modify the behavior of some existing constructs
7389  or define some new ones.
7390  Again, see 
7391 \begin_inset CommandInset ref
7392 LatexCommand ref
7393 reference "sec:TextClass"
7394
7395 \end_inset
7396
7397  for discussion.
7398 \end_layout
7399
7400 \begin_layout Subsection
7401 Layout for 
7402 \begin_inset Flex Noun
7403 status collapsed
7404
7405 \begin_layout Plain Layout
7406 .cls
7407 \end_layout
7408
7409 \end_inset
7410
7411  files
7412 \end_layout
7413
7414 \begin_layout Standard
7415 There are two possibilities here.
7416  One is that the class file is itself based upon an existing document class.
7417  For example, many thesis classes are based upon 
7418 \begin_inset Flex Noun
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 book.cls
7423 \end_layout
7424
7425 \end_inset
7426
7427 .
7428  To see whether yours is, look for a line like
7429 \end_layout
7430
7431 \begin_layout LyX-Code
7432
7433 \backslash
7434 LoadClass{book}
7435 \end_layout
7436
7437 \begin_layout Standard
7438 in the file.
7439  If so, then you may proceed largely as in the previous section, though
7440  the 
7441 \begin_inset Flex Code
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 Declare\SpecialChar LaTeX
7446 Class
7447 \end_layout
7448
7449 \end_inset
7450
7451  line will be different.
7452  If your new class is 
7453 \begin_inset Flex Code
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 thesis
7458 \end_layout
7459
7460 \end_inset
7461
7462  and it is based upon 
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 book
7468 \end_layout
7469
7470 \end_inset
7471
7472 , then the line should read:
7473 \begin_inset Foot
7474 status collapsed
7475
7476 \begin_layout Plain Layout
7477 And it will be easiest if you save the file to 
7478 \begin_inset Flex Code
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 thesis.layout
7483 \end_layout
7484
7485 \end_inset
7486
7487 : \SpecialChar LyX
7488  assumes that the document class has the same name as the layout file.
7489  
7490 \end_layout
7491
7492 \end_inset
7493
7494
7495 \end_layout
7496
7497 \begin_layout LyX-Code
7498
7499 \backslash
7500 DeclareLaTeXClass[thesis,book]{thesis}
7501 \end_layout
7502
7503 \begin_layout Standard
7504 If, on the other hand, the new class is not based upon an existing class,
7505  you will probably have to 
7506 \begin_inset Quotes eld
7507 \end_inset
7508
7509 roll your own
7510 \begin_inset Quotes erd
7511 \end_inset
7512
7513  layout.
7514  We strongly suggest copying an existing layout file which uses a similar
7515  \SpecialChar LaTeX
7516  class and then modifying it, if you can do so.
7517  At least use an existing file as a starting point so you can find out what
7518  items you need to worry about.
7519  Again, the specifics are covered below.
7520 \end_layout
7521
7522 \begin_layout Subsection
7523 Creating templates
7524 \begin_inset CommandInset label
7525 LatexCommand label
7526 name "subsec:Creating-Templates"
7527
7528 \end_inset
7529
7530
7531 \end_layout
7532
7533 \begin_layout Standard
7534 Once you have written a layout file for a new document class, you might
7535  want to consider writing a 
7536 \emph on
7537 template
7538 \emph default
7539  for it, too.
7540  A template acts as a kind of tutorial for your layout, showing how it might
7541  be used, though containing dummy content.
7542  You can of course look at the various templates included with \SpecialChar LyX
7543  for ideas.
7544 \end_layout
7545
7546 \begin_layout Standard
7547 Templates are created just like usual documents: using \SpecialChar LyX
7548 .
7549  The only difference is that usual documents contain all possible settings,
7550  including the font scheme and the paper size.
7551  Usually a user doesn't want a template to overwrite his preferred settings
7552  for such parameters.
7553  For that reason, the designer of a template should remove the corresponding
7554  commands like 
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559
7560 \backslash
7561 font_roman
7562 \end_layout
7563
7564 \end_inset
7565
7566  or 
7567 \begin_inset Flex Code
7568 status collapsed
7569
7570 \begin_layout Plain Layout
7571
7572 \backslash
7573 papersize
7574 \end_layout
7575
7576 \end_inset
7577
7578  from the template \SpecialChar LyX
7579  file.
7580  This can be done with any simple text-editor, for example 
7581 \begin_inset Flex Code
7582 status collapsed
7583
7584 \begin_layout Plain Layout
7585 vi
7586 \end_layout
7587
7588 \end_inset
7589
7590  or 
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595 notepad
7596 \end_layout
7597
7598 \end_inset
7599
7600 .
7601 \end_layout
7602
7603 \begin_layout Standard
7604 Put the edited template files you create in 
7605 \begin_inset Flex Code
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 UserDir/templates/
7610 \end_layout
7611
7612 \end_inset
7613
7614 , copy the ones you use from the global template directory in 
7615 \begin_inset Flex Code
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 LyXDir/templates/
7620 \end_layout
7621
7622 \end_inset
7623
7624  to the same place, and redefine the template path in the 
7625 \begin_inset Flex Noun
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 Tools\SpecialChar menuseparator
7630 Preferences\SpecialChar menuseparator
7631 Paths
7632 \end_layout
7633
7634 \end_inset
7635
7636  dialog.
7637 \end_layout
7638
7639 \begin_layout Standard
7640 Note, by the way, that there is a template which has a particular meaning:
7641 \begin_inset Newline linebreak
7642 \end_inset
7643
7644
7645 \begin_inset Flex Code
7646 status collapsed
7647
7648 \begin_layout Plain Layout
7649 defaults.lyx
7650 \end_layout
7651
7652 \end_inset
7653
7654 .
7655  This template is loaded every time you create a new document with 
7656 \begin_inset Flex Noun
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 File\SpecialChar menuseparator
7661 New
7662 \end_layout
7663
7664 \end_inset
7665
7666  in order to provide useful defaults.
7667  To create this template from inside \SpecialChar LyX
7668 , all you have to do is to open a document
7669  with the correct settings, and use the 
7670 \begin_inset Flex Noun
7671 status collapsed
7672
7673 \begin_layout Plain Layout
7674 Save as Document Defaults
7675 \end_layout
7676
7677 \end_inset
7678
7679  button.
7680 \end_layout
7681
7682 \begin_layout Subsection
7683 Upgrading old layout files
7684 \end_layout
7685
7686 \begin_layout Standard
7687 The format of layout files changes with each \SpecialChar LyX
7688  release, so old layout files
7689  need to be converted to the new format.
7690  If \SpecialChar LyX
7691  reads a layout file in an older format, it automatically calls the
7692  script 
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 layout2layout.py
7698 \end_layout
7699
7700 \end_inset
7701
7702  to convert it to a temporary file in current format.
7703  The original file is left untouched.
7704  If you use the layout file often, then, you may want to convert it permanently,
7705  so that \SpecialChar LyX
7706  does not have to do so itself every time.
7707  To do this, you can call the converter manually:
7708 \end_layout
7709
7710 \begin_layout Enumerate
7711 rename the file 
7712 \begin_inset Flex Code
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 myclass.layout
7717 \end_layout
7718
7719 \end_inset
7720
7721  to 
7722 \begin_inset Flex Code
7723 status collapsed
7724
7725 \begin_layout Plain Layout
7726 myclass.old
7727 \end_layout
7728
7729 \end_inset
7730
7731
7732 \end_layout
7733
7734 \begin_layout Enumerate
7735 Call the command
7736 \begin_inset Newline newline
7737 \end_inset
7738
7739
7740 \begin_inset Flex Code
7741 status collapsed
7742
7743 \begin_layout Plain Layout
7744 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7745 \end_layout
7746
7747 \end_inset
7748
7749
7750 \begin_inset Newline newline
7751 \end_inset
7752
7753 where 
7754 \begin_inset Flex Code
7755 status collapsed
7756
7757 \begin_layout Plain Layout
7758 LyXDir
7759 \end_layout
7760
7761 \end_inset
7762
7763  is the name of your \SpecialChar LyX
7764  system directory.
7765 \end_layout
7766
7767 \begin_layout Standard
7768 Note that manual conversion does not affect included files, so these will
7769  have to be converted separately.
7770 \end_layout
7771
7772 \begin_layout Subsection
7773 \begin_inset CommandInset label
7774 LatexCommand label
7775 name "subsec:Cite-Engine-Files"
7776
7777 \end_inset
7778
7779 Cite engine files
7780 \end_layout
7781
7782 \begin_layout Standard
7783 A specific form of layout files are the so-called 
7784 \begin_inset Flex Code
7785 status collapsed
7786
7787 \begin_layout Plain Layout
7788 *.citeengine
7789 \end_layout
7790
7791 \end_inset
7792
7793  files that are located in the 
7794 \begin_inset Flex Code
7795 status collapsed
7796
7797 \begin_layout Plain Layout
7798 citeengines/
7799 \end_layout
7800
7801 \end_inset
7802
7803  sub-directory.
7804  Their purpose is to define the specifics of \SpecialChar LaTeX
7805  packages aimed at bibliography
7806  generation, such as 
7807 \family sans
7808 natbib
7809 \family default
7810 ,
7811 \family sans
7812  jurabib
7813 \family default
7814  or 
7815 \family sans
7816 biblatex
7817 \family default
7818 , but also the way how normal Bib\SpecialChar TeX
7819  citations (without additional packages)
7820  are handled in \SpecialChar LyX
7821  is defined in such a file.
7822  
7823 \end_layout
7824
7825 \begin_layout Standard
7826 More specifically, it is defined which packages \SpecialChar LyX
7827  needs to load, which citation
7828  commands are available, how these are to be displayed in \SpecialChar LyX
7829  (in the workarea,
7830  the dialogs, the context menus) as well as in the XHTML and plain text
7831  output.
7832  Furthermore, the files specify available style variants (author-year, numerical
7833 , etc.) and their specifics.
7834  The cite engine files are also used to generate the options that are available
7835  in 
7836 \family sans
7837 Document\SpecialChar menuseparator
7838 Settings\SpecialChar menuseparator
7839 Bibliography\SpecialChar menuseparator
7840 Style engine
7841 \family default
7842 .
7843 \end_layout
7844
7845 \begin_layout Standard
7846 Even though a cite engine file is essentially a normal layout file that
7847  could theoretically include any layout information, it usually primarily
7848  includes some specific parameters such as 
7849 \begin_inset Flex Code
7850 status collapsed
7851
7852 \begin_layout Plain Layout
7853 MaxCiteNames
7854 \end_layout
7855
7856 \end_inset
7857
7858
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 CiteFramework
7864 \end_layout
7865
7866 \end_inset
7867
7868
7869 \begin_inset Flex Code
7870 status collapsed
7871
7872 \begin_layout Plain Layout
7873 CiteEngine
7874 \end_layout
7875
7876 \end_inset
7877
7878  and 
7879 \begin_inset Flex Code
7880 status collapsed
7881
7882 \begin_layout Plain Layout
7883 CiteFormat
7884 \end_layout
7885
7886 \end_inset
7887
7888  blocks.
7889  The syntax of the latter two is described in 
7890 \begin_inset CommandInset ref
7891 LatexCommand ref
7892 reference "subsec:Citation-engine-description"
7893 plural "false"
7894 caps "false"
7895 noprefix "false"
7896
7897 \end_inset
7898
7899  and 
7900 \begin_inset CommandInset ref
7901 LatexCommand ref
7902 reference "subsec:Citation-format-description"
7903
7904 \end_inset
7905
7906 , as well as in the files themselves.
7907 \end_layout
7908
7909 \begin_layout Section
7910 \begin_inset CommandInset label
7911 LatexCommand label
7912 name "sec:TextClass"
7913
7914 \end_inset
7915
7916 The layout file format
7917 \end_layout
7918
7919 \begin_layout Standard
7920 The following sections describe how layout files are structured and written.
7921  Our advice is to go slowly, save and test often.
7922  It is really not that hard, except that the multitude of options can become
7923  overwhelming, especially if you try to check out too many at once.
7924  It becomes easier if you use existing layouts of \SpecialChar LyX
7925  as examples/reference
7926  or if you modify an existing layout to your needs.
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Note that all the tags used in layout files are case-insensitive.
7931  This means that 
7932 \begin_inset Flex Code
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 Style
7937 \end_layout
7938
7939 \end_inset
7940
7941
7942 \begin_inset Flex Code
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 style
7947 \end_layout
7948
7949 \end_inset
7950
7951  and 
7952 \begin_inset Flex Code
7953 status collapsed
7954
7955 \begin_layout Plain Layout
7956 StYlE
7957 \end_layout
7958
7959 \end_inset
7960
7961  are really the same tag.
7962  The possible arguments are printed in brackets after the tag's name.
7963  The default argument is typeset 
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968
7969 \emph on
7970 emphasized
7971 \end_layout
7972
7973 \end_inset
7974
7975 .
7976  If the argument has a data type like 
7977 \begin_inset Quotes eld
7978 \end_inset
7979
7980 string
7981 \begin_inset Quotes erd
7982 \end_inset
7983
7984  or 
7985 \begin_inset Quotes eld
7986 \end_inset
7987
7988 float
7989 \begin_inset Quotes erd
7990 \end_inset
7991
7992 , the default is shown like this: 
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 float=
7998 \emph on
7999 default
8000 \end_layout
8001
8002 \end_inset
8003
8004 .
8005 \end_layout
8006
8007 \begin_layout Subsection
8008 The document class declaration and classification
8009 \end_layout
8010
8011 \begin_layout Standard
8012 Lines in a layout file which begin with 
8013 \begin_inset Flex Code
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017 #
8018 \end_layout
8019
8020 \end_inset
8021
8022  are comments.
8023  There is one exception to this rule.
8024  All 
8025 \begin_inset Flex Code
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 *.layout
8030 \end_layout
8031
8032 \end_inset
8033
8034  files should begin with lines like:
8035 \end_layout
8036
8037 \begin_layout LyX-Code
8038
8039 \size small
8040 #% Do not delete the line below; configure depends on this 
8041 \end_layout
8042
8043 \begin_layout LyX-Code
8044
8045 \size small
8046 #  
8047 \backslash
8048 DeclareLaTeXClass{Article (Standard Class)}
8049 \end_layout
8050
8051 \begin_layout LyX-Code
8052
8053 \size small
8054 #  
8055 \backslash
8056 DeclareCategory{Articles}
8057 \end_layout
8058
8059 \begin_layout Standard
8060 The second and third lines are used when you (re)configure \SpecialChar LyX
8061 .
8062  The layout file is read by the \SpecialChar LaTeX
8063  script 
8064 \begin_inset Flex Code
8065 status collapsed
8066
8067 \begin_layout Plain Layout
8068 chkconfig.ltx
8069 \end_layout
8070
8071 \end_inset
8072
8073 , in a special mode where 
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 #
8079 \end_layout
8080
8081 \end_inset
8082
8083  is ignored.
8084  The first line is just a \SpecialChar LaTeX
8085  comment, the second one contains the mandatory
8086  declaration of the text class and the third line contains the optional
8087  classification of the class.
8088  If these lines appear in a file named 
8089 \begin_inset Flex Code
8090 status collapsed
8091
8092 \begin_layout Plain Layout
8093 article.layout
8094 \end_layout
8095
8096 \end_inset
8097
8098 , then they define a text class of name 
8099 \begin_inset Flex Code
8100 status collapsed
8101
8102 \begin_layout Plain Layout
8103 article
8104 \end_layout
8105
8106 \end_inset
8107
8108  (the name of the layout file) which uses the \SpecialChar LaTeX
8109  document class 
8110 \begin_inset Flex Code
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 article.cls
8115 \end_layout
8116
8117 \end_inset
8118
8119  (the default is to use the same name as the layout).
8120  The string 
8121 \begin_inset Quotes eld
8122 \end_inset
8123
8124 Article (Standard Class)
8125 \begin_inset Quotes erd
8126 \end_inset
8127
8128  that appears above is used as a description of the text class in the 
8129 \begin_inset Flex Noun
8130 status collapsed
8131
8132 \begin_layout Plain Layout
8133 Document\SpecialChar menuseparator
8134 Settings
8135 \end_layout
8136
8137 \end_inset
8138
8139  dialog.
8140  The category (
8141 \begin_inset Quotes eld
8142 \end_inset
8143
8144 Articles
8145 \begin_inset Quotes erd
8146 \end_inset
8147
8148  in the example) is also used in the 
8149 \begin_inset Flex Noun
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 Document\SpecialChar menuseparator
8154 Settings
8155 \end_layout
8156
8157 \end_inset
8158
8159  dialog: the text classes are grouped by these categories (which are usually
8160  genres, so typical categories are 
8161 \begin_inset Quotes eld
8162 \end_inset
8163
8164 Articles
8165 \begin_inset Quotes erd
8166 \end_inset
8167
8168
8169 \begin_inset Quotes eld
8170 \end_inset
8171
8172 Books
8173 \begin_inset Quotes erd
8174 \end_inset
8175
8176
8177 \begin_inset Quotes eld
8178 \end_inset
8179
8180 Reports
8181 \begin_inset Quotes erd
8182 \end_inset
8183
8184
8185 \begin_inset Quotes eld
8186 \end_inset
8187
8188 Letters
8189 \begin_inset Quotes erd
8190 \end_inset
8191
8192
8193 \begin_inset Quotes eld
8194 \end_inset
8195
8196 Presentations
8197 \begin_inset Quotes erd
8198 \end_inset
8199
8200
8201 \begin_inset Quotes eld
8202 \end_inset
8203
8204 Curricula Vitae
8205 \begin_inset Quotes erd
8206 \end_inset
8207
8208  etc.).
8209  If no category has been declared, the class will be put in the 
8210 \begin_inset Quotes eld
8211 \end_inset
8212
8213 Uncategorized
8214 \begin_inset Quotes erd
8215 \end_inset
8216
8217  group.
8218 \end_layout
8219
8220 \begin_layout Standard
8221 Let's assume that you wrote your own text class that uses the 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 article.cls
8227 \end_layout
8228
8229 \end_inset
8230
8231  document class, but where you changed the appearance of the section headings.
8232  If you put it in a file 
8233 \begin_inset Flex Code
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 myarticle.layout
8238 \end_layout
8239
8240 \end_inset
8241
8242 , the header of this file should be:
8243 \end_layout
8244
8245 \begin_layout LyX-Code
8246
8247 \size small
8248 #% Do not delete the line below; configure depends on this 
8249 \end_layout
8250
8251 \begin_layout LyX-Code
8252
8253 \size small
8254 #  
8255 \backslash
8256 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8257 \end_layout
8258
8259 \begin_layout LyX-Code
8260
8261 \size small
8262 #  
8263 \backslash
8264 DeclareCategory{Articles}
8265 \end_layout
8266
8267 \begin_layout Standard
8268 This declares a text class 
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 myarticle
8274 \end_layout
8275
8276 \end_inset
8277
8278 , associated with the \SpecialChar LaTeX
8279  document class 
8280 \begin_inset Flex Code
8281 status collapsed
8282
8283 \begin_layout Plain Layout
8284 article.cls
8285 \end_layout
8286
8287 \end_inset
8288
8289  and described as 
8290 \begin_inset Quotes eld
8291 \end_inset
8292
8293 Article (with My Own Headings)
8294 \begin_inset Quotes erd
8295 \end_inset
8296
8297 .
8298  If your text class depends on several packages, you can declare it as:
8299 \end_layout
8300
8301 \begin_layout LyX-Code
8302
8303 \size small
8304 #% Do not delete the line below; configure depends on this 
8305 \end_layout
8306
8307 \begin_layout LyX-Code
8308
8309 \size small
8310 #  
8311 \backslash
8312 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8313 \end_layout
8314
8315 \begin_layout LyX-Code
8316
8317 \size small
8318 #  
8319 \backslash
8320 DeclareCategory{Articles}
8321 \end_layout
8322
8323 \begin_layout Standard
8324 This indicates that your text class uses the 
8325 \begin_inset Flex Code
8326 status collapsed
8327
8328 \begin_layout Plain Layout
8329 foo.sty
8330 \end_layout
8331
8332 \end_inset
8333
8334  package.
8335  Finally, it is also possible to declare classes for DocBook code.
8336  Typical declarations will look like:
8337 \end_layout
8338
8339 \begin_layout LyX-Code
8340
8341 \size small
8342 #% Do not delete the line below; configure depends on this 
8343 \end_layout
8344
8345 \begin_layout LyX-Code
8346
8347 \size small
8348
8349 \backslash
8350 DeclareDocBookClass[article]{SGML (DocBook Article)}
8351 \end_layout
8352
8353 \begin_layout LyX-Code
8354
8355 \size small
8356
8357 \backslash
8358 DeclareCategory{Articles (DocBook)}
8359 \end_layout
8360
8361 \begin_layout Standard
8362 Note that these declarations can also be given an optional parameter declaring
8363  the name of the document class (but not a list).
8364 \end_layout
8365
8366 \begin_layout Standard
8367 So, to be as explicit as possible, the form of the layout declaration is:
8368 \end_layout
8369
8370 \begin_layout LyX-Code
8371
8372 \size small
8373 #  
8374 \backslash
8375 DeclareLaTeXClass[class,package.sty]{layout description}
8376 \end_layout
8377
8378 \begin_layout LyX-Code
8379
8380 \size small
8381 #  
8382 \backslash
8383 DeclareCategory{category}
8384 \end_layout
8385
8386 \begin_layout Standard
8387 The class need only be specified if the name of the \SpecialChar LaTeX
8388  class file and the
8389  name of the layout file are different or if there are packages to load.
8390  If the name of the class file is not specified, then \SpecialChar LyX
8391  will simply assume
8392  that it is the same as the name of the layout file.
8393 \end_layout
8394
8395 \begin_layout Standard
8396 When the text class has been modified to your taste, all you have to do
8397  is to copy it either to 
8398 \begin_inset Flex Code
8399 status collapsed
8400
8401 \begin_layout Plain Layout
8402 LyXDir/layouts/
8403 \end_layout
8404
8405 \end_inset
8406
8407  or to 
8408 \begin_inset Flex Code
8409 status collapsed
8410
8411 \begin_layout Plain Layout
8412 UserDir/layouts
8413 \end_layout
8414
8415 \end_inset
8416
8417 , run 
8418 \begin_inset Flex Noun
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 Tools\SpecialChar menuseparator
8423 Reconfigure
8424 \end_layout
8425
8426 \end_inset
8427
8428 , exit \SpecialChar LyX
8429  and restart.
8430  Then your new text class should be available along with the others.
8431 \end_layout
8432
8433 \begin_layout Standard
8434 Once the layout file is installed, you can edit it and see your changes
8435  without having to reconfigure or to restart \SpecialChar LyX
8436 .
8437 \begin_inset Foot
8438 status collapsed
8439
8440 \begin_layout Plain Layout
8441 In versions of \SpecialChar LyX
8442  prior to 1.6, this was not true.
8443  As a result, editing layout files was very time consuming, since you had
8444  constantly to restart \SpecialChar LyX
8445  to see changes.
8446 \end_layout
8447
8448 \end_inset
8449
8450  You can force a reload of the current layout by using the \SpecialChar LyX
8451  function 
8452 \begin_inset Flex Noun
8453 status collapsed
8454
8455 \begin_layout Plain Layout
8456 layout-reload
8457 \end_layout
8458
8459 \end_inset
8460
8461 .
8462  There is no default binding for this function—though, of course, you can
8463  bind it to a key yourself.
8464  But you will normally use this function simply by entering it in the mini-buffe
8465 r.
8466  
8467 \end_layout
8468
8469 \begin_layout Standard
8470
8471 \emph on
8472 Warning
8473 \emph default
8474
8475 \begin_inset Flex Noun
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479 layout-reload
8480 \end_layout
8481
8482 \end_inset
8483
8484  is very much an `advanced feature'.
8485  It is 
8486 \emph on
8487 strongly
8488 \emph default
8489  recommended that you save your work before using this function.
8490  In fact, it is 
8491 \emph on
8492 strongly
8493 \emph default
8494  recommended that you not attempt to edit layout information while simultaneousl
8495 y working on a document that you care about.
8496  Use a test document.
8497  Syntax errors and the like in your layout file could cause peculiar behavior.
8498  In particular, such errors could cause \SpecialChar LyX
8499  to regard the current layout as
8500  invalid and to attempt to switch to some other layout.
8501 \begin_inset Foot
8502 status collapsed
8503
8504 \begin_layout Plain Layout
8505 Really bad syntax errors may even caused \SpecialChar LyX
8506  to exit.
8507  This is because certain sorts of errors may make \SpecialChar LyX
8508  unable to read 
8509 \emph on
8510 any
8511 \emph default
8512  layout information.
8513  Please be careful.
8514 \end_layout
8515
8516 \end_inset
8517
8518  The \SpecialChar LyX
8519  team strives to keep \SpecialChar LyX
8520  stable in such situations, but safe is better
8521  than sorry.
8522 \begin_inset Foot
8523 status collapsed
8524
8525 \begin_layout Plain Layout
8526 While we're giving advice: make regular backups.
8527  And be nice to your mother.
8528 \end_layout
8529
8530 \end_inset
8531
8532
8533 \end_layout
8534
8535 \begin_layout Subsection
8536 The Module declaration
8537 \end_layout
8538
8539 \begin_layout Standard
8540 A module must begin with a line like the following:
8541 \end_layout
8542
8543 \begin_layout LyX-Code
8544 #
8545 \backslash
8546 DeclareLyXModule[endnotes.sty]{Endnotes} 
8547 \end_layout
8548
8549 \begin_layout Standard
8550 The mandatory argument, in curly brackets, is the name of the module, as
8551  it should appear in 
8552 \begin_inset Flex Noun
8553 status collapsed
8554
8555 \begin_layout Plain Layout
8556 Document\SpecialChar menuseparator
8557 Settings\SpecialChar menuseparator
8558 Modules
8559 \end_layout
8560
8561 \end_inset
8562
8563 .
8564  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8565  packages
8566  on which the module depends.
8567  It is also possible to use the form 
8568 \begin_inset Flex Noun
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 from->to
8573 \end_layout
8574
8575 \end_inset
8576
8577  as an optional argument, which declares that the module can only be used
8578  when there exists a conversion chain between the formats `
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 from
8584 \end_layout
8585
8586 \end_inset
8587
8588 ' and `
8589 \begin_inset Flex Code
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593 to
8594 \end_layout
8595
8596 \end_inset
8597
8598 '.
8599 \end_layout
8600
8601 \begin_layout Standard
8602 The module declaration should then be followed by lines like the following:
8603 \begin_inset Foot
8604 status collapsed
8605
8606 \begin_layout Plain Layout
8607 Preferably in English if the module should be published with \SpecialChar LyX
8608 .
8609  This description will appear in the list of messages to be translated and
8610  will be thus translated with the next interface update.
8611 \end_layout
8612
8613 \end_inset
8614
8615
8616 \end_layout
8617
8618 \begin_layout LyX-Code
8619 #DescriptionBegin 
8620 \end_layout
8621
8622 \begin_layout LyX-Code
8623 #Adds an endnote command, in addition to footnotes.
8624  
8625 \end_layout
8626
8627 \begin_layout LyX-Code
8628 #You will need to add  
8629 \backslash
8630 theendnotes in TeX code where you 
8631 \end_layout
8632
8633 \begin_layout LyX-Code
8634 #want the endnotes to appear.
8635  
8636 \end_layout
8637
8638 \begin_layout LyX-Code
8639 #DescriptionEnd 
8640 \end_layout
8641
8642 \begin_layout LyX-Code
8643 #Requires: somemodule | othermodule
8644 \end_layout
8645
8646 \begin_layout LyX-Code
8647 #Excludes: badmodule
8648 \end_layout
8649
8650 \begin_layout Standard
8651 The description is used in 
8652 \begin_inset Flex Noun
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 Document\SpecialChar menuseparator
8657 Settings\SpecialChar menuseparator
8658 Modules
8659 \end_layout
8660
8661 \end_inset
8662
8663  to provide the user with information about what the module does.
8664  The 
8665 \begin_inset Flex Code
8666 status collapsed
8667
8668 \begin_layout Plain Layout
8669 Requires
8670 \end_layout
8671
8672 \end_inset
8673
8674  line is used to identify other modules with which this one must be used;
8675  the 
8676 \begin_inset Flex Code
8677 status collapsed
8678
8679 \begin_layout Plain Layout
8680 Excludes
8681 \end_layout
8682
8683 \end_inset
8684
8685  line is used to identify modules with which this one may not be used.
8686  Both are optional, and, as shown, multiple modules should be separated
8687  with the pipe symbol: |.
8688  Note that the required modules are treated disjunctively: 
8689 \emph on
8690 at least one
8691 \emph default
8692  of the required modules must be used.
8693  Similarly, 
8694 \emph on
8695 no
8696 \emph default
8697  excluded module may be used.
8698  Note that modules are identified here by their filenames without the 
8699 \begin_inset Flex Code
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 .module
8704 \end_layout
8705
8706 \end_inset
8707
8708  extension.
8709  So 
8710 \begin_inset Flex Code
8711 status collapsed
8712
8713 \begin_layout Plain Layout
8714 somemodule
8715 \end_layout
8716
8717 \end_inset
8718
8719  is really 
8720 \begin_inset Flex Code
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724 somemodule.module
8725 \end_layout
8726
8727 \end_inset
8728
8729 .
8730 \end_layout
8731
8732 \begin_layout Subsection
8733 The CiteEngine file declaration
8734 \end_layout
8735
8736 \begin_layout Standard
8737 A cite engine file must begin with a line like the following:
8738 \end_layout
8739
8740 \begin_layout LyX-Code
8741 #
8742 \backslash
8743 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8744 \end_layout
8745
8746 \begin_layout Standard
8747 The mandatory argument, in curly brackets, is the name of the cite style,
8748  as it should appear in 
8749 \begin_inset Flex Noun
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 Document\SpecialChar menuseparator
8754 Settings\SpecialChar menuseparator
8755 Bibliography
8756 \end_layout
8757
8758 \end_inset
8759
8760 .
8761  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8762  packages
8763  on which the cite engine depends.
8764 \end_layout
8765
8766 \begin_layout Standard
8767 The cite engine declaration should then be followed by lines like the following:
8768 \begin_inset Foot
8769 status collapsed
8770
8771 \begin_layout Plain Layout
8772 Preferably in English if the module should be published with \SpecialChar LyX
8773 .
8774  This description will appear in the list of messages to be translated and
8775  will be thus translated with the next interface update.
8776 \end_layout
8777
8778 \end_inset
8779
8780
8781 \end_layout
8782
8783 \begin_layout LyX-Code
8784 # DescriptionBegin
8785 \end_layout
8786
8787 \begin_layout LyX-Code
8788 #   Biblatex supports many author-year and numerical styles.
8789 \end_layout
8790
8791 \begin_layout LyX-Code
8792 #   It is mainly aimed at the Humanities.
8793  It is highly
8794 \end_layout
8795
8796 \begin_layout LyX-Code
8797 #   customizable, fully localized and provides many features
8798 \end_layout
8799
8800 \begin_layout LyX-Code
8801 #   that are not possible with BibTeX.
8802  The use of 'biber' as
8803 \end_layout
8804
8805 \begin_layout LyX-Code
8806 #   bibliography processor is advised.
8807 \end_layout
8808
8809 \begin_layout LyX-Code
8810 # DescriptionEnd
8811 \end_layout
8812
8813 \begin_layout Standard
8814 The description is used in 
8815 \begin_inset Flex Noun
8816 status collapsed
8817
8818 \begin_layout Plain Layout
8819 Document\SpecialChar menuseparator
8820 Settings\SpecialChar menuseparator
8821 Bibliography
8822 \end_layout
8823
8824 \end_inset
8825
8826  to provide the user with information about the cite engine.
8827 \end_layout
8828
8829 \begin_layout Subsection
8830 Format number
8831 \end_layout
8832
8833 \begin_layout Standard
8834 The first non-comment line of any layout file, included file, or module
8835  
8836 \emph on
8837 must
8838 \emph default
8839  contain the file format number:
8840 \end_layout
8841
8842 \begin_layout Description
8843 \begin_inset Flex Code
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847 Format
8848 \end_layout
8849
8850 \end_inset
8851
8852  [
8853 \begin_inset Flex Code
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 int
8858 \end_layout
8859
8860 \end_inset
8861
8862 ] The format number of the layout file.
8863 \end_layout
8864
8865 \begin_layout Standard
8866 This tag was introduced with \SpecialChar LyX
8867
8868 \begin_inset space ~
8869 \end_inset
8870
8871 1.4.0.
8872  Layout files from older \SpecialChar LyX
8873  versions do not have an explicit file format and
8874  are considered to have 
8875 \begin_inset Flex Code
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 Format
8880 \begin_inset space ~
8881 \end_inset
8882
8883 1
8884 \end_layout
8885
8886 \end_inset
8887
8888 .
8889  The format for the present version of \SpecialChar LyX
8890  is format 60.
8891  But each version of \SpecialChar LyX
8892  is capable of reading earlier versions' layout files,
8893  just as they are capable of reading files produced by earlier versions
8894  of \SpecialChar LyX
8895 .
8896  There is, however, no provision for converting to earlier formats.
8897 \end_layout
8898
8899 \begin_layout Subsection
8900 \begin_inset CommandInset label
8901 LatexCommand label
8902 name "subsec:General-text-class"
8903
8904 \end_inset
8905
8906 General text class parameters
8907 \end_layout
8908
8909 \begin_layout Standard
8910 These are general parameters that govern the behavior of an entire document
8911  class.
8912  (This does 
8913 \emph on
8914 not
8915 \emph default
8916  mean that they must appear in 
8917 \begin_inset Flex Code
8918 status collapsed
8919
8920 \begin_layout Plain Layout
8921 .layout
8922 \end_layout
8923
8924 \end_inset
8925
8926  files rather than in modules.
8927  A module can contain any layout tag.)
8928 \end_layout
8929
8930 \begin_layout Description
8931
8932 \change_inserted -712698321 1526899478
8933 \begin_inset Flex Code
8934 status collapsed
8935
8936 \begin_layout Plain Layout
8937
8938 \change_inserted -712698321 1526898610
8939 AddToCiteEngine <engine>
8940 \end_layout
8941
8942 \end_inset
8943
8944  Extends the possibilities for displaying citation references.
8945  See 
8946 \begin_inset CommandInset ref
8947 LatexCommand ref
8948 reference "subsec:Citation-engine-description"
8949 plural "false"
8950 caps "false"
8951 noprefix "false"
8952
8953 \end_inset
8954
8955  for details.
8956  Must end with 
8957 \begin_inset Flex Code
8958 status collapsed
8959
8960 \begin_layout Plain Layout
8961
8962 \change_inserted -712698321 1526898823
8963 End
8964 \change_unchanged
8965
8966 \end_layout
8967
8968 \end_inset
8969
8970 .
8971 \end_layout
8972
8973 \begin_layout Description
8974 \begin_inset Flex Code
8975 status collapsed
8976
8977 \begin_layout Plain Layout
8978 AddToHTMLPreamble
8979 \end_layout
8980
8981 \end_inset
8982
8983  Adds information that will be output in the 
8984 \begin_inset Flex Code
8985 status collapsed
8986
8987 \begin_layout Plain Layout
8988 <head>
8989 \end_layout
8990
8991 \end_inset
8992
8993  block when the document is output to XHTML.
8994  Typically, this would be used to output CSS style information, but it can
8995  be used for anything that can appear in 
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 <head>
9001 \end_layout
9002
9003 \end_inset
9004
9005 .
9006  Must end with 
9007 \begin_inset Quotes eld
9008 \end_inset
9009
9010
9011 \begin_inset Flex Code
9012 status collapsed
9013
9014 \begin_layout Plain Layout
9015 EndPreamble
9016 \end_layout
9017
9018 \end_inset
9019
9020
9021 \begin_inset Quotes erd
9022 \end_inset
9023
9024 .
9025 \end_layout
9026
9027 \begin_layout Description
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 AddToPreamble
9033 \end_layout
9034
9035 \end_inset
9036
9037  Adds information to the document preamble.
9038  Must end with
9039 \begin_inset Newline newline
9040 \end_inset
9041
9042
9043 \begin_inset Quotes eld
9044 \end_inset
9045
9046
9047 \begin_inset Flex Code
9048 status collapsed
9049
9050 \begin_layout Plain Layout
9051 EndPreamble
9052 \end_layout
9053
9054 \end_inset
9055
9056
9057 \begin_inset Quotes erd
9058 \end_inset
9059
9060 .
9061 \end_layout
9062
9063 \begin_layout Description
9064 \begin_inset Flex Code
9065 status collapsed
9066
9067 \begin_layout Plain Layout
9068 CiteEngine <engine>
9069 \end_layout
9070
9071 \end_inset
9072
9073  Defines the possibilities for displaying citation references.
9074  See 
9075 \begin_inset CommandInset ref
9076 LatexCommand ref
9077 reference "subsec:Citation-engine-description"
9078 plural "false"
9079 caps "false"
9080 noprefix "false"
9081
9082 \end_inset
9083
9084  for details.
9085  Must end with 
9086 \begin_inset Quotes eld
9087 \end_inset
9088
9089
9090 \begin_inset Flex Code
9091 status collapsed
9092
9093 \begin_layout Plain Layout
9094 End
9095 \end_layout
9096
9097 \end_inset
9098
9099
9100 \begin_inset Quotes erd
9101 \end_inset
9102
9103 .
9104  Primarily used in cite engine files (see 
9105 \begin_inset CommandInset ref
9106 LatexCommand ref
9107 reference "subsec:Cite-Engine-Files"
9108 plural "false"
9109 caps "false"
9110 noprefix "false"
9111
9112 \end_inset
9113
9114 ).
9115
9116 \change_inserted -712698321 1526898530
9117  Note that if you specify this in a layout file or module, any cite engine
9118  definition will be overridden.
9119  Also see 
9120 \begin_inset Flex Code
9121 status collapsed
9122
9123 \begin_layout Plain Layout
9124
9125 \change_inserted -712698321 1526898530
9126 AddToCiteEngine
9127 \change_unchanged
9128
9129 \end_layout
9130
9131 \end_inset
9132
9133 .
9134 \change_unchanged
9135
9136 \end_layout
9137
9138 \begin_layout Description
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 CiteFormat
9144 \end_layout
9145
9146 \end_inset
9147
9148  Defines formats for use in the display of bibliographic information.
9149  See 
9150 \begin_inset CommandInset ref
9151 LatexCommand ref
9152 reference "subsec:Citation-format-description"
9153
9154 \end_inset
9155
9156  for details.
9157  Must end with 
9158 \begin_inset Quotes eld
9159 \end_inset
9160
9161
9162 \begin_inset Flex Code
9163 status collapsed
9164
9165 \begin_layout Plain Layout
9166 End
9167 \end_layout
9168
9169 \end_inset
9170
9171
9172 \begin_inset Quotes erd
9173 \end_inset
9174
9175 .
9176  Primarily used in cite engine files (see 
9177 \begin_inset CommandInset ref
9178 LatexCommand ref
9179 reference "subsec:Cite-Engine-Files"
9180 plural "false"
9181 caps "false"
9182 noprefix "false"
9183
9184 \end_inset
9185
9186 ).
9187
9188 \change_inserted -712698321 1526898585
9189  A cite format defined in a layout or module will override the cite engine
9190  definition.
9191 \change_unchanged
9192
9193 \end_layout
9194
9195 \begin_layout Description
9196 \begin_inset Flex Code
9197 status collapsed
9198
9199 \begin_layout Plain Layout
9200 CiteFramework
9201 \end_layout
9202
9203 \end_inset
9204
9205  [
9206 \begin_inset Flex Code
9207 status collapsed
9208
9209 \begin_layout Plain Layout
9210
9211 \emph on
9212 bibtex
9213 \end_layout
9214
9215 \end_inset
9216
9217 ,
9218 \begin_inset Flex Code
9219 status collapsed
9220
9221 \begin_layout Plain Layout
9222 biblatex
9223 \end_layout
9224
9225 \end_inset
9226
9227 ] Determines whether 
9228 \family sans
9229 Biblatex
9230 \family default
9231  or Bib\SpecialChar TeX
9232  is used to generate a Bibliography.
9233  Primarily used in cite engine files (see 
9234 \begin_inset CommandInset ref
9235 LatexCommand ref
9236 reference "subsec:Cite-Engine-Files"
9237 plural "false"
9238 caps "false"
9239 noprefix "false"
9240
9241 \end_inset
9242
9243 ).
9244 \end_layout
9245
9246 \begin_layout Description
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 ClassOptions
9252 \end_layout
9253
9254 \end_inset
9255
9256  Describes various global options supported by the document class.
9257  See 
9258 \begin_inset CommandInset ref
9259 LatexCommand ref
9260 reference "subsec:ClassOptions"
9261
9262 \end_inset
9263
9264  for a description.
9265  Must end with 
9266 \begin_inset Quotes eld
9267 \end_inset
9268
9269
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 End
9275 \end_layout
9276
9277 \end_inset
9278
9279
9280 \begin_inset Quotes erd
9281 \end_inset
9282
9283 .
9284 \end_layout
9285
9286 \begin_layout Description
9287 \begin_inset Flex Code
9288 status collapsed
9289
9290 \begin_layout Plain Layout
9291 Columns
9292 \end_layout
9293
9294 \end_inset
9295
9296  [
9297 \begin_inset Flex Code
9298 status collapsed
9299
9300 \begin_layout Plain Layout
9301
9302 \emph on
9303 1
9304 \end_layout
9305
9306 \end_inset
9307
9308 ,
9309 \begin_inset space \thinspace{}
9310 \end_inset
9311
9312
9313 \begin_inset Flex Code
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317 2
9318 \end_layout
9319
9320 \end_inset
9321
9322 ] Whether the class should 
9323 \emph on
9324 default
9325 \emph default
9326  to having one or two columns.
9327  Can be changed in the 
9328 \begin_inset Flex Noun
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 Document\SpecialChar menuseparator
9333 Settings
9334 \end_layout
9335
9336 \end_inset
9337
9338  dialog.
9339 \end_layout
9340
9341 \begin_layout Description
9342 \begin_inset Flex Code
9343 status collapsed
9344
9345 \begin_layout Plain Layout
9346 Counter
9347 \end_layout
9348
9349 \end_inset
9350
9351  [
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 string
9357 \end_layout
9358
9359 \end_inset
9360
9361 ] This sequence defines the properties for a counter.
9362  If the counter does not yet exist, it is created; if it does exist, it
9363  is modified.
9364  Must end with 
9365 \begin_inset Quotes eld
9366 \end_inset
9367
9368
9369 \begin_inset Flex Code
9370 status collapsed
9371
9372 \begin_layout Plain Layout
9373 End
9374 \end_layout
9375
9376 \end_inset
9377
9378
9379 \begin_inset Quotes erd
9380 \end_inset
9381
9382 .
9383 \begin_inset Newline newline
9384 \end_inset
9385
9386 See 
9387 \begin_inset CommandInset ref
9388 LatexCommand ref
9389 reference "subsec:Counters"
9390
9391 \end_inset
9392
9393  for details on counters.
9394 \end_layout
9395
9396 \begin_layout Description
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 DefaultFont
9402 \end_layout
9403
9404 \end_inset
9405
9406  Sets the default font used to display the document.
9407  See 
9408 \begin_inset CommandInset ref
9409 LatexCommand ref
9410 reference "subsec:Font-description"
9411
9412 \end_inset
9413
9414  for how to declare fonts.
9415  Must end with 
9416 \begin_inset Quotes eld
9417 \end_inset
9418
9419
9420 \begin_inset Flex Code
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 EndFont
9425 \end_layout
9426
9427 \end_inset
9428
9429
9430 \begin_inset Quotes erd
9431 \end_inset
9432
9433 .
9434 \end_layout
9435
9436 \begin_layout Description
9437 \begin_inset Flex Code
9438 status collapsed
9439
9440 \begin_layout Plain Layout
9441 DefaultModule
9442 \end_layout
9443
9444 \end_inset
9445
9446  [
9447 \begin_inset Flex Code
9448 status collapsed
9449
9450 \begin_layout Plain Layout
9451 <module>
9452 \end_layout
9453
9454 \end_inset
9455
9456 ] Specifies a module to be included by default with this document class.
9457  The module is specified as filename without the 
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 .module
9463 \end_layout
9464
9465 \end_inset
9466
9467  extension.
9468  The user can still remove the module, but it will be active at the outset.
9469  (This applies only when new files are created, or when this class is chosen
9470  for an existing document.)
9471 \end_layout
9472
9473 \begin_layout Description
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478 DefaultStyle
9479 \end_layout
9480
9481 \end_inset
9482
9483  [
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 <style>
9489 \end_layout
9490
9491 \end_inset
9492
9493 ] This is the style that will be assigned to new paragraphs, usually 
9494 \begin_inset Flex Noun
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 Standard
9499 \end_layout
9500
9501 \end_inset
9502
9503 .
9504  This will default to the first defined style if not given, but you are
9505  encouraged to use this directive.
9506 \end_layout
9507
9508 \begin_layout Description
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513 ExcludesModule
9514 \end_layout
9515
9516 \end_inset
9517
9518  [
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 <module>
9524 \end_layout
9525
9526 \end_inset
9527
9528 ] This tag indicates that the module (which is specified by filename without
9529  the 
9530 \begin_inset Flex Code
9531 status collapsed
9532
9533 \begin_layout Plain Layout
9534 .module
9535 \end_layout
9536
9537 \end_inset
9538
9539  extension) cannot be used with this document class.
9540  This might be used in a journal-specific layout file to prevent, say, the
9541  use of the 
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 theorems-sec
9547 \end_layout
9548
9549 \end_inset
9550
9551  module that numbers theorems by section.
9552  This tag may 
9553 \emph on
9554 not
9555 \emph default
9556  be used in a module.
9557  Modules have their own way of excluding other modules (see 
9558 \begin_inset CommandInset ref
9559 LatexCommand ref
9560 reference "subsec:Layout-modules"
9561
9562 \end_inset
9563
9564 ).
9565 \end_layout
9566
9567 \begin_layout Description
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 Float
9573 \end_layout
9574
9575 \end_inset
9576
9577  Defines a new float.
9578  See 
9579 \begin_inset CommandInset ref
9580 LatexCommand ref
9581 reference "subsec:Floats"
9582
9583 \end_inset
9584
9585  for details.
9586  Must end with 
9587 \begin_inset Quotes eld
9588 \end_inset
9589
9590
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 End
9596 \end_layout
9597
9598 \end_inset
9599
9600
9601 \begin_inset Quotes erd
9602 \end_inset
9603
9604 .
9605 \end_layout
9606
9607 \begin_layout Description
9608 \begin_inset Flex Code
9609 status collapsed
9610
9611 \begin_layout Plain Layout
9612 HTMLPreamble
9613 \end_layout
9614
9615 \end_inset
9616
9617  Sets the information that will be output in the 
9618 \begin_inset Flex Code
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622 <head>
9623 \end_layout
9624
9625 \end_inset
9626
9627  block when this document class is output to XHTML.
9628  Note that this will completely override any prior 
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 HTMLPreamble
9634 \end_layout
9635
9636 \end_inset
9637
9638  or 
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 AddToHTMLPreamble
9644 \end_layout
9645
9646 \end_inset
9647
9648  declarations.
9649  (Use
9650 \begin_inset Newline newline
9651 \end_inset
9652
9653
9654 \begin_inset Flex Code
9655 status collapsed
9656
9657 \begin_layout Plain Layout
9658 AddToHTMLPreamble
9659 \end_layout
9660
9661 \end_inset
9662
9663  if you just want to add material to the preamble.) Must end with 
9664 \begin_inset Quotes eld
9665 \end_inset
9666
9667
9668 \begin_inset Flex Code
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 EndPreamble
9673 \end_layout
9674
9675 \end_inset
9676
9677
9678 \begin_inset Quotes erd
9679 \end_inset
9680
9681 .
9682 \end_layout
9683
9684 \begin_layout Description
9685 \begin_inset Flex Code
9686 status collapsed
9687
9688 \begin_layout Plain Layout
9689 HTMLTOCSection
9690 \end_layout
9691
9692 \end_inset
9693
9694  [
9695 \begin_inset Flex Code
9696 status collapsed
9697
9698 \begin_layout Plain Layout
9699 <style>
9700 \end_layout
9701
9702 \end_inset
9703
9704 ] The style to use for the table of contents, bibliography, and so forth,
9705  when the document is output to HTML.
9706  For articles, this should normally be 
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 Section
9712 \end_layout
9713
9714 \end_inset
9715
9716 ; for books 
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 Chapter
9722 \end_layout
9723
9724 \end_inset
9725
9726 .
9727  If it is not given, then \SpecialChar LyX
9728  will attempt to figure out which layout to use.
9729 \end_layout
9730
9731 \begin_layout Description
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 IfCounter
9737 \end_layout
9738
9739 \end_inset
9740
9741  [
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 <counter>
9747 \end_layout
9748
9749 \end_inset
9750
9751 ] Modifies the properties of the given counter.
9752  If the counter does not exist, the statement is ignored.
9753  Must end with 
9754 \begin_inset Quotes eld
9755 \end_inset
9756
9757
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 End
9763 \end_layout
9764
9765 \end_inset
9766
9767
9768 \begin_inset Quotes erd
9769 \end_inset
9770
9771 .
9772 \begin_inset Newline newline
9773 \end_inset
9774
9775 See 
9776 \begin_inset CommandInset ref
9777 LatexCommand ref
9778 reference "subsec:Counters"
9779
9780 \end_inset
9781
9782  for details on counters.
9783 \end_layout
9784
9785 \begin_layout Description
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 Input
9791 \end_layout
9792
9793 \end_inset
9794
9795  [
9796 \begin_inset Flex Code
9797 status collapsed
9798
9799 \begin_layout Plain Layout
9800 <filename>
9801 \end_layout
9802
9803 \end_inset
9804
9805 ] This allows you to include another layout definition file within yours
9806  to avoid duplicating commands.
9807  Common examples are the standard layout files, for example, 
9808 \begin_inset Flex Code
9809 status collapsed
9810
9811 \begin_layout Plain Layout
9812 stdclass.inc
9813 \end_layout
9814
9815 \end_inset
9816
9817 , which contains most of the basic layouts.
9818 \end_layout
9819
9820 \begin_layout Description
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 InsetLayout
9826 \end_layout
9827
9828 \end_inset
9829
9830  [
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 <type>
9836 \end_layout
9837
9838 \end_inset
9839
9840 ] This section (re-)defines the layout of an inset.
9841  It can be applied to an existing inset or to a new, user-defined inset,
9842  e.g., a new character style.
9843  Must end with 
9844 \begin_inset Quotes eld
9845 \end_inset
9846
9847
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 End
9853 \end_layout
9854
9855 \end_inset
9856
9857
9858 \begin_inset Quotes erd
9859 \end_inset
9860
9861 .
9862 \begin_inset Newline newline
9863 \end_inset
9864
9865 See 
9866 \begin_inset CommandInset ref
9867 LatexCommand ref
9868 reference "subsec:Flex-insets-and"
9869
9870 \end_inset
9871
9872  for more information.
9873  
9874 \end_layout
9875
9876 \begin_layout Description
9877 \begin_inset Flex Code
9878 status collapsed
9879
9880 \begin_layout Plain Layout
9881 LeftMargin
9882 \end_layout
9883
9884 \end_inset
9885
9886  [
9887 \begin_inset Flex Code
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 string
9892 \end_layout
9893
9894 \end_inset
9895
9896 ] A string that indicates the width of the left margin on the screen, for
9897  example, 
9898 \begin_inset Quotes eld
9899 \end_inset
9900
9901
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 MMMMM
9907 \end_layout
9908
9909 \end_inset
9910
9911
9912 \begin_inset Quotes erd
9913 \end_inset
9914
9915 .
9916  (Note that this is not a `length', like 
9917 \begin_inset Quotes eld
9918 \end_inset
9919
9920 2ex
9921 \begin_inset Quotes erd
9922 \end_inset
9923
9924 .)
9925 \end_layout
9926
9927 \begin_layout Description
9928 \begin_inset Flex Code
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 MaxCiteNames
9933 \end_layout
9934
9935 \end_inset
9936
9937  [
9938 \begin_inset Flex Code
9939 status collapsed
9940
9941 \begin_layout Plain Layout
9942 integer
9943 \end_layout
9944
9945 \end_inset
9946
9947 ] An integer that determines the maximal number of names displayed in an
9948  author-year citation before the citation switches to 
9949 \begin_inset Quotes eld
9950 \end_inset
9951
9952 FirstAuthor et al.
9953 \begin_inset Quotes erd
9954 \end_inset
9955
9956 .
9957  Primarily used in cite engine files (see 
9958 \begin_inset CommandInset ref
9959 LatexCommand ref
9960 reference "subsec:Cite-Engine-Files"
9961 plural "false"
9962 caps "false"
9963 noprefix "false"
9964
9965 \end_inset
9966
9967 ).
9968 \end_layout
9969
9970 \begin_layout Description
9971 \begin_inset Flex Code
9972 status collapsed
9973
9974 \begin_layout Plain Layout
9975 ModifyStyle
9976 \end_layout
9977
9978 \end_inset
9979
9980  [
9981 \begin_inset Flex Code
9982 status collapsed
9983
9984 \begin_layout Plain Layout
9985 <style>
9986 \end_layout
9987
9988 \end_inset
9989
9990 ] Modifies the properties of the given paragraph style.
9991  If the style does not exist, this section is ignored.
9992  Must end with 
9993 \begin_inset Quotes eld
9994 \end_inset
9995
9996
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 End
10002 \end_layout
10003
10004 \end_inset
10005
10006
10007 \begin_inset Quotes erd
10008 \end_inset
10009
10010 .
10011 \end_layout
10012
10013 \begin_layout Description
10014 \begin_inset Flex Code
10015 status collapsed
10016
10017 \begin_layout Plain Layout
10018 NoCounter
10019 \end_layout
10020
10021 \end_inset
10022
10023  [
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 <counter>
10029 \end_layout
10030
10031 \end_inset
10032
10033 ] Deletes an existing counter, usually one defined in an included file.
10034 \end_layout
10035
10036 \begin_layout Description
10037 \begin_inset Flex Code
10038 status collapsed
10039
10040 \begin_layout Plain Layout
10041 NoFloat
10042 \end_layout
10043
10044 \end_inset
10045
10046  [
10047 \begin_inset Flex Code
10048 status collapsed
10049
10050 \begin_layout Plain Layout
10051 <float>
10052 \end_layout
10053
10054 \end_inset
10055
10056 ] Deletes an existing float.
10057  This is particularly useful when you want to suppress a float that has
10058  been defined in an input file.
10059 \end_layout
10060
10061 \begin_layout Description
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 NoStyle
10067 \end_layout
10068
10069 \end_inset
10070
10071  [
10072 \begin_inset Flex Code
10073 status collapsed
10074
10075 \begin_layout Plain Layout
10076 <style>
10077 \end_layout
10078
10079 \end_inset
10080
10081 ] Deletes an existing style.
10082 \end_layout
10083
10084 \begin_layout Description
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 OutlinerName
10090 \end_layout
10091
10092 \end_inset
10093
10094  [
10095 \begin_inset Flex Code
10096 status collapsed
10097
10098 \begin_layout Plain Layout
10099 <type>
10100 \end_layout
10101
10102 \end_inset
10103
10104 ] [
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 <string>
10110 \end_layout
10111
10112 \end_inset
10113
10114 ] Define a new table of contents with type 
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 <type>
10120 \end_layout
10121
10122 \end_inset
10123
10124  and name 
10125 \begin_inset Flex Code
10126 status collapsed
10127
10128 \begin_layout Plain Layout
10129 <string>
10130 \end_layout
10131
10132 \end_inset
10133
10134 .
10135  See also the AddToToc commands.
10136 \end_layout
10137
10138 \begin_layout Description
10139 \begin_inset Flex Code
10140 status collapsed
10141
10142 \begin_layout Plain Layout
10143 OutputFormat
10144 \end_layout
10145
10146 \end_inset
10147
10148  [
10149 \begin_inset Flex Code
10150 status collapsed
10151
10152 \begin_layout Plain Layout
10153 <format>
10154 \end_layout
10155
10156 \end_inset
10157
10158 ] The file format (as defined in the \SpecialChar LyX
10159  preferences) produced by this document
10160  class.
10161  It is mainly useful when 
10162 \begin_inset Flex Code
10163 status collapsed
10164
10165 \begin_layout Plain Layout
10166 OutputType
10167 \end_layout
10168
10169 \end_inset
10170
10171  is 
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 literate
10177 \end_layout
10178
10179 \end_inset
10180
10181  and one wants to define a new type of literate document.
10182  The format is reset to 
10183 \begin_inset Quotes eld
10184 \end_inset
10185
10186
10187 \begin_inset Flex Code
10188 status collapsed
10189
10190 \begin_layout Plain Layout
10191 docbook
10192 \end_layout
10193
10194 \end_inset
10195
10196
10197 \begin_inset Quotes erd
10198 \end_inset
10199
10200  or 
10201 \begin_inset Quotes eld
10202 \end_inset
10203
10204
10205 \begin_inset Flex Code
10206 status collapsed
10207
10208 \begin_layout Plain Layout
10209 latex
10210 \end_layout
10211
10212 \end_inset
10213
10214
10215 \begin_inset Quotes erd
10216 \end_inset
10217
10218  when the corresponding 
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 OutputType
10224 \end_layout
10225
10226 \end_inset
10227
10228  parameter is encountered.
10229 \end_layout
10230
10231 \begin_layout Description
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 OutputType
10237 \end_layout
10238
10239 \end_inset
10240
10241  [
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246
10247 \emph on
10248 lat
10249 \emph default
10250 ex
10251 \end_layout
10252
10253 \end_inset
10254
10255
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 docbook
10261 \end_layout
10262
10263 \end_inset
10264
10265
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 literate
10271 \end_layout
10272
10273 \end_inset
10274
10275 ] Specifies what sort of output documents using this class will produce.
10276 \end_layout
10277
10278 \begin_layout Description
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 PackageOptions
10284 \end_layout
10285
10286 \end_inset
10287
10288  [
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 string
10294 \end_layout
10295
10296 \end_inset
10297
10298  
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 string
10304 \end_layout
10305
10306 \end_inset
10307
10308 ] Specifies options, given in the second string, for the package named by
10309  the first string.
10310  For example, 
10311 \begin_inset Quotes eld
10312 \end_inset
10313
10314
10315 \begin_inset Flex Code
10316 status collapsed
10317
10318 \begin_layout Plain Layout
10319 PackageOptions natbib square
10320 \end_layout
10321
10322 \end_inset
10323
10324
10325 \begin_inset Quotes erd
10326 \end_inset
10327
10328  will cause 
10329 \begin_inset Flex Code
10330 status collapsed
10331
10332 \begin_layout Plain Layout
10333 natbib
10334 \end_layout
10335
10336 \end_inset
10337
10338  to be loaded with the 
10339 \begin_inset Flex Code
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 square
10344 \end_layout
10345
10346 \end_inset
10347
10348  option.
10349  (For \SpecialChar TeX
10350 perts, this causes \SpecialChar LyX
10351  to output: 
10352 \begin_inset Flex Code
10353 status collapsed
10354
10355 \begin_layout Plain Layout
10356
10357 \backslash
10358 PassOptionsToPackage{natbib}{square}
10359 \end_layout
10360
10361 \end_inset
10362
10363  prior to loading 
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 natbib
10369 \end_layout
10370
10371 \end_inset
10372
10373 .)
10374 \end_layout
10375
10376 \begin_layout Description
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 PageStyle
10382 \end_layout
10383
10384 \end_inset
10385
10386  [
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391
10392 \emph on
10393 plain
10394 \end_layout
10395
10396 \end_inset
10397
10398
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 empty
10404 \end_layout
10405
10406 \end_inset
10407
10408
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 headings
10414 \end_layout
10415
10416 \end_inset
10417
10418 ] The default pagestyle.
10419  Can be changed in the 
10420 \begin_inset Flex Noun
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 Document\SpecialChar menuseparator
10425 Settings
10426 \end_layout
10427
10428 \end_inset
10429
10430  dialog.
10431 \end_layout
10432
10433 \begin_layout Description
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 Preamble
10439 \end_layout
10440
10441 \end_inset
10442
10443  Sets the preamble for the \SpecialChar LaTeX
10444  document.
10445  Note that this will completely override any prior 
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 Preamble
10451 \end_layout
10452
10453 \end_inset
10454
10455  or 
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 AddToPreamble
10461 \end_layout
10462
10463 \end_inset
10464
10465  declarations.
10466  (Use 
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 AddToPreamble
10472 \end_layout
10473
10474 \end_inset
10475
10476  if you just want to add material to the preamble.) Must end with 
10477 \begin_inset Quotes eld
10478 \end_inset
10479
10480
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 EndPreamble
10486 \end_layout
10487
10488 \end_inset
10489
10490
10491 \begin_inset Quotes erd
10492 \end_inset
10493
10494 .
10495 \end_layout
10496
10497 \begin_layout Description
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 Provides
10503 \end_layout
10504
10505 \end_inset
10506
10507  [
10508 \begin_inset Flex Code
10509 status collapsed
10510
10511 \begin_layout Plain Layout
10512 string
10513 \end_layout
10514
10515 \end_inset
10516
10517 ] [
10518 \begin_inset Flex Code
10519 status collapsed
10520
10521 \begin_layout Plain Layout
10522
10523 \emph on
10524 0
10525 \end_layout
10526
10527 \end_inset
10528
10529 ,
10530 \begin_inset space \thinspace{}
10531 \end_inset
10532
10533
10534 \begin_inset Flex Code
10535 status collapsed
10536
10537 \begin_layout Plain Layout
10538 1
10539 \end_layout
10540
10541 \end_inset
10542
10543 ] Whether the class already provides the feature 
10544 \begin_inset Flex Code
10545 status collapsed
10546
10547 \begin_layout Plain Layout
10548 string
10549 \end_layout
10550
10551 \end_inset
10552
10553 .
10554  A feature is in general the name of a package (e.
10555 \begin_inset space \thinspace{}
10556 \end_inset
10557
10558 g.
10559 \begin_inset space \space{}
10560 \end_inset
10561
10562
10563 \begin_inset Flex Code
10564 status collapsed
10565
10566 \begin_layout Plain Layout
10567 amsmath
10568 \end_layout
10569
10570 \end_inset
10571
10572  or 
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 makeidx
10578 \end_layout
10579
10580 \end_inset
10581
10582 ) or a macro (e.
10583 \begin_inset space \thinspace{}
10584 \end_inset
10585
10586 g.
10587 \begin_inset space \space{}
10588 \end_inset
10589
10590
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 url
10596 \end_layout
10597
10598 \end_inset
10599
10600  or 
10601 \begin_inset Flex Code
10602 status collapsed
10603
10604 \begin_layout Plain Layout
10605 boldsymbol
10606 \end_layout
10607
10608 \end_inset
10609
10610 ).
10611  See 
10612 \begin_inset CommandInset ref
10613 LatexCommand ref
10614 reference "chap:List-of-functions"
10615
10616 \end_inset
10617
10618  for the list of features.
10619 \end_layout
10620
10621 \begin_layout Description
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 ProvidesModule
10627 \end_layout
10628
10629 \end_inset
10630
10631  [
10632 \begin_inset Flex Code
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 string
10637 \end_layout
10638
10639 \end_inset
10640
10641 ] Indicates that this layout provides the functionality of the module mentioned,
10642  which should be specified by the filename without the 
10643 \begin_inset Flex Code
10644 status collapsed
10645
10646 \begin_layout Plain Layout
10647 .module
10648 \end_layout
10649
10650 \end_inset
10651
10652  extension.
10653  This will typically be used if the layout includes the module directly,
10654  rather than using the 
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 DefaultModule
10660 \end_layout
10661
10662 \end_inset
10663
10664  tag to indicate that it ought to be used.
10665  It could also be used in a module that provided an alternate implementation
10666  of the same functionality.
10667 \end_layout
10668
10669 \begin_layout Description
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674 ProvideStyle
10675 \end_layout
10676
10677 \end_inset
10678
10679  [
10680 \begin_inset Flex Code
10681 status collapsed
10682
10683 \begin_layout Plain Layout
10684 <style>
10685 \end_layout
10686
10687 \end_inset
10688
10689 ] Creates a new paragraph style if it does not already exist.
10690  If the style does exist, this section is ignored.
10691  Must end with 
10692 \begin_inset Quotes eld
10693 \end_inset
10694
10695
10696 \begin_inset Flex Code
10697 status collapsed
10698
10699 \begin_layout Plain Layout
10700 End
10701 \end_layout
10702
10703 \end_inset
10704
10705
10706 \begin_inset Quotes erd
10707 \end_inset
10708
10709 .
10710 \end_layout
10711
10712 \begin_layout Description
10713 \begin_inset Flex Code
10714 status collapsed
10715
10716 \begin_layout Plain Layout
10717 Requires
10718 \end_layout
10719
10720 \end_inset
10721
10722  [
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 string
10728 \end_layout
10729
10730 \end_inset
10731
10732 ] Whether the class requires the feature 
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 string
10738 \end_layout
10739
10740 \end_inset
10741
10742 .
10743  Multiple features must be separated by commas.
10744  Note that you can only request supported features.
10745  (See 
10746 \begin_inset CommandInset ref
10747 LatexCommand ref
10748 reference "chap:List-of-functions"
10749
10750 \end_inset
10751
10752  for the list of features.).
10753  If you require a package with specific options, you can additionally use
10754  
10755 \begin_inset Flex Code
10756 status collapsed
10757
10758 \begin_layout Plain Layout
10759 PackageOptions
10760 \end_layout
10761
10762 \end_inset
10763
10764 .
10765 \end_layout
10766
10767 \begin_layout Description
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 RightMargin
10773 \end_layout
10774
10775 \end_inset
10776
10777  [
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 string
10783 \end_layout
10784
10785 \end_inset
10786
10787 ] A string that indicates the width of the right margin on the screen, for
10788  example, 
10789 \begin_inset Quotes eld
10790 \end_inset
10791
10792
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 MMMMM
10798 \end_layout
10799
10800 \end_inset
10801
10802
10803 \begin_inset Quotes erd
10804 \end_inset
10805
10806 .
10807 \end_layout
10808
10809 \begin_layout Description
10810 \begin_inset Flex Code
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 SecNumDepth
10815 \end_layout
10816
10817 \end_inset
10818
10819  [
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 int=3
10825 \end_layout
10826
10827 \end_inset
10828
10829 ] Sets which divisions get numbered.
10830  Corresponds to the
10831 \begin_inset Newline newline
10832 \end_inset
10833
10834
10835 \begin_inset Flex Code
10836 status collapsed
10837
10838 \begin_layout Plain Layout
10839 secnumdepth
10840 \end_layout
10841
10842 \end_inset
10843
10844  counter in \SpecialChar LaTeX
10845 .
10846 \end_layout
10847
10848 \begin_layout Description
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 Sides
10854 \end_layout
10855
10856 \end_inset
10857
10858  [
10859 \begin_inset Flex Code
10860 status collapsed
10861
10862 \begin_layout Plain Layout
10863
10864 \emph on
10865 1
10866 \end_layout
10867
10868 \end_inset
10869
10870 ,
10871 \begin_inset space \thinspace{}
10872 \end_inset
10873
10874
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 2
10880 \end_layout
10881
10882 \end_inset
10883
10884 ] Whether the class-default should be printing on one or both sides of the
10885  paper.
10886  Can be changed in the 
10887 \begin_inset Flex Noun
10888 status collapsed
10889
10890 \begin_layout Plain Layout
10891 Document\SpecialChar menuseparator
10892 Settings
10893 \end_layout
10894
10895 \end_inset
10896
10897  dialog.
10898 \end_layout
10899
10900 \begin_layout Description
10901 \begin_inset Flex Code
10902 status collapsed
10903
10904 \begin_layout Plain Layout
10905 Style
10906 \end_layout
10907
10908 \end_inset
10909
10910  [
10911 \begin_inset Flex Code
10912 status collapsed
10913
10914 \begin_layout Plain Layout
10915 <name>
10916 \end_layout
10917
10918 \end_inset
10919
10920 ] This sequence defines a paragraph style.
10921  If the style does not yet exist, it is created; if it does exist, its parameter
10922 s are modified.
10923  Must end with 
10924 \begin_inset Quotes eld
10925 \end_inset
10926
10927
10928 \begin_inset Flex Code
10929 status collapsed
10930
10931 \begin_layout Plain Layout
10932 End
10933 \end_layout
10934
10935 \end_inset
10936
10937
10938 \begin_inset Quotes erd
10939 \end_inset
10940
10941 .
10942 \begin_inset Newline newline
10943 \end_inset
10944
10945 See 
10946 \begin_inset CommandInset ref
10947 LatexCommand ref
10948 reference "subsec:Paragraph-Styles"
10949
10950 \end_inset
10951
10952  for details on paragraph styles.
10953 \end_layout
10954
10955 \begin_layout Description
10956 \begin_inset Flex Code
10957 status collapsed
10958
10959 \begin_layout Plain Layout
10960 TitleLatexName
10961 \end_layout
10962
10963 \end_inset
10964
10965  [
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 string="maketitle"
10971 \end_layout
10972
10973 \end_inset
10974
10975 ] The name of the command or environment to be used with 
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 TitleLatexType
10981 \end_layout
10982
10983 \end_inset
10984
10985 .
10986 \end_layout
10987
10988 \begin_layout Description
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993 TitleLatexType
10994 \end_layout
10995
10996 \end_inset
10997
10998  [
10999 \begin_inset Flex Code
11000 status collapsed
11001
11002 \begin_layout Plain Layout
11003
11004 \emph on
11005 CommandAfter
11006 \end_layout
11007
11008 \end_inset
11009
11010
11011 \begin_inset Flex Code
11012 status collapsed
11013
11014 \begin_layout Plain Layout
11015 Environment
11016 \end_layout
11017
11018 \end_inset
11019
11020 ] Indicates what kind of markup is used to define the title of a document.
11021  
11022 \begin_inset Flex Code
11023 status collapsed
11024
11025 \begin_layout Plain Layout
11026 CommandAfter
11027 \end_layout
11028
11029 \end_inset
11030
11031  means that the macro with name 
11032 \begin_inset Flex Code
11033 status collapsed
11034
11035 \begin_layout Plain Layout
11036 TitleLatexName
11037 \end_layout
11038
11039 \end_inset
11040
11041  will be inserted after the last layout which has 
11042 \begin_inset Quotes eld
11043 \end_inset
11044
11045
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 InTitle
11051 \begin_inset space ~
11052 \end_inset
11053
11054 1
11055 \end_layout
11056
11057 \end_inset
11058
11059
11060 \begin_inset Quotes erd
11061 \end_inset
11062
11063 .
11064  
11065 \begin_inset Flex Code
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069 Environment
11070 \end_layout
11071
11072 \end_inset
11073
11074  corresponds to the case where all layouts which have 
11075 \begin_inset Quotes eld
11076 \end_inset
11077
11078
11079 \begin_inset Flex Code
11080 status collapsed
11081
11082 \begin_layout Plain Layout
11083 InTitle
11084 \begin_inset space ~
11085 \end_inset
11086
11087 1
11088 \end_layout
11089
11090 \end_inset
11091
11092
11093 \begin_inset Quotes erd
11094 \end_inset
11095
11096  should be enclosed into the 
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101 TitleLatexName
11102 \end_layout
11103
11104 \end_inset
11105
11106  environment.
11107 \end_layout
11108
11109 \begin_layout Description
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 TocDepth
11115 \end_layout
11116
11117 \end_inset
11118
11119  [
11120 \begin_inset Flex Code
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124 int=3
11125 \end_layout
11126
11127 \end_inset
11128
11129 ] Sets which divisions are included in the table of contents.
11130  Corresponds to the 
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135 tocdepth
11136 \end_layout
11137
11138 \end_inset
11139
11140  counter in \SpecialChar LaTeX
11141 .
11142 \end_layout
11143
11144 \begin_layout Subsection
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 ClassOptions
11150 \end_layout
11151
11152 \end_inset
11153
11154  section
11155 \begin_inset CommandInset label
11156 LatexCommand label
11157 name "subsec:ClassOptions"
11158
11159 \end_inset
11160
11161
11162 \end_layout
11163
11164 \begin_layout Standard
11165 The 
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 ClassOptions
11171 \end_layout
11172
11173 \end_inset
11174
11175  section can contain the following entries:
11176 \end_layout
11177
11178 \begin_layout Description
11179 \begin_inset Flex Code
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183 FontSize
11184 \end_layout
11185
11186 \end_inset
11187
11188  [
11189 \begin_inset Flex Code
11190 status collapsed
11191
11192 \begin_layout Plain Layout
11193 string="10|11|12"
11194 \end_layout
11195
11196 \end_inset
11197
11198 ] The list of available font sizes for the document's main font, separated
11199  by 
11200 \begin_inset Quotes eld
11201 \end_inset
11202
11203
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208 |
11209 \end_layout
11210
11211 \end_inset
11212
11213
11214 \begin_inset Quotes erd
11215 \end_inset
11216
11217 .
11218 \end_layout
11219
11220 \begin_layout Description
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 Header
11226 \end_layout
11227
11228 \end_inset
11229
11230  Used to set the DTD line with XML-based output classes.
11231  E.
11232 \begin_inset space \thinspace{}
11233 \end_inset
11234
11235 g.: PUBLIC 
11236 \begin_inset Quotes eld
11237 \end_inset
11238
11239 -//OASIS//DTD DocBook V4.2//EN
11240 \begin_inset Quotes erd
11241 \end_inset
11242
11243 .
11244 \end_layout
11245
11246 \begin_layout Description
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 PageStyle
11252 \end_layout
11253
11254 \end_inset
11255
11256  [
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 string="empty|plain|headings|fancy"
11262 \end_layout
11263
11264 \end_inset
11265
11266 ] The list of available page sty\SpecialChar softhyphen
11267 les, separated by 
11268 \begin_inset Quotes eld
11269 \end_inset
11270
11271
11272 \begin_inset Flex Code
11273 status collapsed
11274
11275 \begin_layout Plain Layout
11276 |
11277 \end_layout
11278
11279 \end_inset
11280
11281
11282 \begin_inset Quotes erd
11283 \end_inset
11284
11285 .
11286 \end_layout
11287
11288 \begin_layout Description
11289 \begin_inset Flex Code
11290 status collapsed
11291
11292 \begin_layout Plain Layout
11293 Other
11294 \end_layout
11295
11296 \end_inset
11297
11298  [
11299 \begin_inset Flex Code
11300 status collapsed
11301
11302 \begin_layout Plain Layout
11303 string=""
11304 \end_layout
11305
11306 \end_inset
11307
11308 ] Some document class options, separated by a comma, that will be added
11309  to the optional part of the 
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314
11315 \backslash
11316 documentclass
11317 \end_layout
11318
11319 \end_inset
11320
11321  command.
11322 \end_layout
11323
11324 \begin_layout Standard
11325 The 
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 ClassOptions
11331 \end_layout
11332
11333 \end_inset
11334
11335  section must end with 
11336 \begin_inset Quotes eld
11337 \end_inset
11338
11339
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 End
11345 \end_layout
11346
11347 \end_inset
11348
11349
11350 \begin_inset Quotes erd
11351 \end_inset
11352
11353 .
11354 \end_layout
11355
11356 \begin_layout Subsection
11357 Paragraph styles
11358 \begin_inset CommandInset label
11359 LatexCommand label
11360 name "subsec:Paragraph-Styles"
11361
11362 \end_inset
11363
11364
11365 \end_layout
11366
11367 \begin_layout Standard
11368 A paragraph style description looks like this:
11369 \begin_inset Foot
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373 Note that this will either define a new style or modify an existing one.
11374 \end_layout
11375
11376 \end_inset
11377
11378
11379 \end_layout
11380
11381 \begin_layout LyX-Code
11382 Style 
11383 \family roman
11384 \emph on
11385 name
11386 \end_layout
11387
11388 \begin_layout LyX-Code
11389  ...
11390 \end_layout
11391
11392 \begin_layout LyX-Code
11393 End
11394 \end_layout
11395
11396 \begin_layout Standard
11397 where the following commands are allowed:
11398 \end_layout
11399
11400 \begin_layout Description
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 AddToToc
11406 \end_layout
11407
11408 \end_inset
11409
11410  [
11411 \begin_inset Flex Code
11412 status collapsed
11413
11414 \begin_layout Plain Layout
11415 string
11416 \end_layout
11417
11418 \end_inset
11419
11420 =""] This paragraph will appear in the table of contents of the given type.
11421  An empty string disables.
11422  See also the OutlinerName and the IsTocCaption commands.
11423  Default: disabled.
11424 \end_layout
11425
11426 \begin_layout Description
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 Align
11432 \end_layout
11433
11434 \end_inset
11435
11436  [
11437 \begin_inset Flex Code
11438 status collapsed
11439
11440 \begin_layout Plain Layout
11441
11442 \emph on
11443 block
11444 \emph default
11445 , left, right, center
11446 \end_layout
11447
11448 \end_inset
11449
11450 ] Paragraph alignment.
11451 \end_layout
11452
11453 \begin_layout Description
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458 AlignPossible
11459 \end_layout
11460
11461 \end_inset
11462
11463  [
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468
11469 \emph on
11470 block
11471 \emph default
11472 , left, right, center
11473 \end_layout
11474
11475 \end_inset
11476
11477 ] A comma separated list of permitted alignments.
11478  (Some \SpecialChar LaTeX
11479  styles prohibit certain alignments, since those wouldn't make sense.
11480  For example a right-aligned or centered enumeration isn't possible.)
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Argument
11489 \end_layout
11490
11491 \end_inset
11492
11493  [
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 int
11499 \end_layout
11500
11501 \end_inset
11502
11503 ] Defines argument number <int> of a command\SpecialChar breakableslash
11504 environment associated with
11505  the current style.
11506  This is useful for things like section headings, and only makes sense with
11507  \SpecialChar LaTeX
11508 .
11509  Every (optional or required) argument of a command or environment – except
11510  for the required argument that is associated with the content of the paragraph
11511  itself – has a separate definition, where the number specifies the order
11512  of the arguments.
11513  The definition must end with 
11514 \begin_inset Flex Code
11515 status collapsed
11516
11517 \begin_layout Plain Layout
11518 EndArgument
11519 \end_layout
11520
11521 \end_inset
11522
11523 .
11524  So a command with two optional arguments has:
11525 \end_layout
11526
11527 \begin_deeper
11528 \begin_layout Quote
11529
11530 \family typewriter
11531 Argument 1
11532 \end_layout
11533
11534 \begin_layout Quote
11535
11536 \family typewriter
11537 ...
11538 \end_layout
11539
11540 \begin_layout Quote
11541
11542 \family typewriter
11543 EndArgument
11544 \end_layout
11545
11546 \begin_layout Quote
11547
11548 \family typewriter
11549 Argument 2
11550 \end_layout
11551
11552 \begin_layout Quote
11553
11554 \family typewriter
11555 ...
11556 \end_layout
11557
11558 \begin_layout Quote
11559
11560 \family typewriter
11561 EndArgument
11562 \end_layout
11563
11564 \begin_layout Standard
11565 Inside the 
11566 \begin_inset Flex Code
11567 status collapsed
11568
11569 \begin_layout Plain Layout
11570 Argument
11571 \end_layout
11572
11573 \end_inset
11574
11575  definition, the following specifications are possible:
11576 \end_layout
11577
11578 \begin_layout Itemize
11579 \begin_inset Flex Code
11580 status collapsed
11581
11582 \begin_layout Plain Layout
11583 LabelString
11584 \end_layout
11585
11586 \end_inset
11587
11588  
11589 \begin_inset Flex Code
11590 status collapsed
11591
11592 \begin_layout Plain Layout
11593 [string]
11594 \end_layout
11595
11596 \end_inset
11597
11598  The string that will appear both in the menu (to insert this argument)
11599  and on the argument inset button (unless you also specify a separate 
11600 \begin_inset Flex Code
11601 status collapsed
11602
11603 \begin_layout Plain Layout
11604 MenuString
11605 \end_layout
11606
11607 \end_inset
11608
11609 ).
11610  For the menu, you can define an accelerator by appending the respective
11611  character to the string, divided by 
11612 \begin_inset Quotes eld
11613 \end_inset
11614
11615 |
11616 \begin_inset Quotes erd
11617 \end_inset
11618
11619  (e.
11620 \begin_inset space \thinspace{}
11621 \end_inset
11622
11623 g.
11624 \begin_inset space \space{}
11625 \end_inset
11626
11627
11628 \begin_inset Quotes eld
11629 \end_inset
11630
11631
11632 \begin_inset Flex Code
11633 status collapsed
11634
11635 \begin_layout Plain Layout
11636 Short Title|S
11637 \end_layout
11638
11639 \end_inset
11640
11641
11642 \begin_inset Quotes erd
11643 \end_inset
11644
11645 ).
11646 \end_layout
11647
11648 \begin_layout Itemize
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 MenuString
11654 \end_layout
11655
11656 \end_inset
11657
11658  
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 [string]
11664 \end_layout
11665
11666 \end_inset
11667
11668  A separate string for the menu.
11669  You can define an accelerator by appending the respective character to
11670  the string, divided by 
11671 \begin_inset Quotes eld
11672 \end_inset
11673
11674 |
11675 \begin_inset Quotes erd
11676 \end_inset
11677
11678  (e.
11679 \begin_inset space \thinspace{}
11680 \end_inset
11681
11682 g.
11683 \begin_inset space \space{}
11684 \end_inset
11685
11686
11687 \begin_inset Quotes eld
11688 \end_inset
11689
11690
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 Short Title|S
11696 \end_layout
11697
11698 \end_inset
11699
11700
11701 \begin_inset Quotes erd
11702 \end_inset
11703
11704 ).
11705  This specification is optional.
11706  If it is not given the 
11707 \begin_inset Flex Code
11708 status collapsed
11709
11710 \begin_layout Plain Layout
11711 LabelString
11712 \end_layout
11713
11714 \end_inset
11715
11716  will be used instead for the menu.
11717 \end_layout
11718
11719 \begin_layout Itemize
11720 \begin_inset Flex Code
11721 status collapsed
11722
11723 \begin_layout Plain Layout
11724 Tooltip
11725 \end_layout
11726
11727 \end_inset
11728
11729  
11730 \begin_inset Flex Code
11731 status collapsed
11732
11733 \begin_layout Plain Layout
11734 [string]
11735 \end_layout
11736
11737 \end_inset
11738
11739  A longer explanatory text that appears in the tooltip when hovering over
11740  the argument inset.
11741 \end_layout
11742
11743 \begin_layout Itemize
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748 Mandatory
11749 \end_layout
11750
11751 \end_inset
11752
11753  [
11754 \begin_inset Flex Code
11755 status collapsed
11756
11757 \begin_layout Plain Layout
11758
11759 \emph on
11760 0
11761 \end_layout
11762
11763 \end_inset
11764
11765 ,
11766 \begin_inset space \thinspace{}
11767 \end_inset
11768
11769
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 1
11775 \end_layout
11776
11777 \end_inset
11778
11779 ] Declare if this is a mandatory (1) or an optional (0) argument.
11780  Mandatory arguments will be output empty if not given, while optional arguments
11781  will not be output at all.
11782  By default, mandatory arguments are delimited by 
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 {...}
11788 \end_layout
11789
11790 \end_inset
11791
11792 , while optional arguments are delimited by 
11793 \begin_inset Flex Code
11794 status collapsed
11795
11796 \begin_layout Plain Layout
11797 [...]
11798 \end_layout
11799
11800 \end_inset
11801
11802
11803 \end_layout
11804
11805 \begin_layout Itemize
11806 \begin_inset Flex Code
11807 status collapsed
11808
11809 \begin_layout Plain Layout
11810 Requires
11811 \end_layout
11812
11813 \end_inset
11814
11815  
11816 \begin_inset Flex Code
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820 [int=0]
11821 \end_layout
11822
11823 \end_inset
11824
11825  defines another argument (by its number) which this argument requires to
11826  be output if it is itself output.
11827  E.
11828 \begin_inset space \thinspace{}
11829 \end_inset
11830
11831 g., in \SpecialChar LaTeX
11832  commands, optional arguments often require previous optional arguments
11833  to be output (at least empty), as in 
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838
11839 \backslash
11840 command[][argument]{text}
11841 \end_layout
11842
11843 \end_inset
11844
11845 .
11846  This can be achieved by the statement 
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 Requires 1
11852 \end_layout
11853
11854 \end_inset
11855
11856  within 
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 Argument 2
11862 \end_layout
11863
11864 \end_inset
11865
11866 .
11867 \end_layout
11868
11869 \begin_layout Itemize
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 LeftDelim
11875 \end_layout
11876
11877 \end_inset
11878
11879  
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884 [string]
11885 \end_layout
11886
11887 \end_inset
11888
11889  defines a custom left delimiter (instead of 
11890 \begin_inset Flex Code
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 {
11895 \end_layout
11896
11897 \end_inset
11898
11899  or 
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 [
11905 \end_layout
11906
11907 \end_inset
11908
11909 ).
11910  A line break in the output can be indicated by 
11911 \begin_inset Flex Code
11912 status collapsed
11913
11914 \begin_layout Plain Layout
11915 <br/>
11916 \end_layout
11917
11918 \end_inset
11919
11920 .
11921 \end_layout
11922
11923 \begin_layout Itemize
11924 \begin_inset Flex Code
11925 status collapsed
11926
11927 \begin_layout Plain Layout
11928 RightDelim
11929 \end_layout
11930
11931 \end_inset
11932
11933  
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938 [string]
11939 \end_layout
11940
11941 \end_inset
11942
11943  defines a custom right delimiter (instead of 
11944 \begin_inset Flex Code
11945 status collapsed
11946
11947 \begin_layout Plain Layout
11948 }
11949 \end_layout
11950
11951 \end_inset
11952
11953  or 
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 ]
11959 \end_layout
11960
11961 \end_inset
11962
11963 ).
11964  A line break in the output can be indicated by 
11965 \begin_inset Flex Code
11966 status collapsed
11967
11968 \begin_layout Plain Layout
11969 <br/>
11970 \end_layout
11971
11972 \end_inset
11973
11974 .
11975 \end_layout
11976
11977 \begin_layout Itemize
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 DefaultArg
11983 \end_layout
11984
11985 \end_inset
11986
11987  
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 [string]
11993 \end_layout
11994
11995 \end_inset
11996
11997  defines an argument that is inserted if and only if no user-specified arguments
11998  were given, i.
11999 \begin_inset space \thinspace{}
12000 \end_inset
12001
12002 e.
12003 \begin_inset space \space{}
12004 \end_inset
12005
12006 if no argument inset has been inserted (note that also an empty argument
12007  inset omits the DefaultArg).
12008  Multiple arguments need to be separated by comma.
12009 \end_layout
12010
12011 \begin_layout Itemize
12012 \begin_inset Flex Code
12013 status collapsed
12014
12015 \begin_layout Plain Layout
12016 PresetArg
12017 \end_layout
12018
12019 \end_inset
12020
12021  
12022 \begin_inset Flex Code
12023 status collapsed
12024
12025 \begin_layout Plain Layout
12026 [string]
12027 \end_layout
12028
12029 \end_inset
12030
12031  defines an argument that is inserted in any case (alone or in addition
12032  to user-specified arguments).
12033  Multiple arguments need to be separated by comma.
12034 \end_layout
12035
12036 \begin_layout Itemize
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 Font
12042 \end_layout
12043
12044 \end_inset
12045
12046  The font used for the argument content, see 
12047 \begin_inset CommandInset ref
12048 LatexCommand ref
12049 reference "subsec:Font-description"
12050
12051 \end_inset
12052
12053 .
12054 \end_layout
12055
12056 \begin_layout Itemize
12057 \begin_inset Flex Code
12058 status collapsed
12059
12060 \begin_layout Plain Layout
12061 LabelFont
12062 \end_layout
12063
12064 \end_inset
12065
12066  The font used for the label; see 
12067 \begin_inset CommandInset ref
12068 LatexCommand ref
12069 reference "subsec:Font-description"
12070
12071 \end_inset
12072
12073 .
12074 \end_layout
12075
12076 \begin_layout Itemize
12077 \begin_inset Flex Code
12078 status collapsed
12079
12080 \begin_layout Plain Layout
12081 Decoration
12082 \end_layout
12083
12084 \end_inset
12085
12086  [
12087 \begin_inset Flex Code
12088 status collapsed
12089
12090 \begin_layout Plain Layout
12091
12092 \emph on
12093 Classic
12094 \emph default
12095 , Minimalistic, Conglomerate
12096 \end_layout
12097
12098 \end_inset
12099
12100 ] describes the rendering style used for the inset's frame and buttons.
12101 \end_layout
12102
12103 \begin_layout Itemize
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108 AutoInsert
12109 \end_layout
12110
12111 \end_inset
12112
12113  
12114 \begin_inset Flex Code
12115 status collapsed
12116
12117 \begin_layout Plain Layout
12118 [int=0]
12119 \end_layout
12120
12121 \end_inset
12122
12123  If this is set to 
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 1
12129 \end_layout
12130
12131 \end_inset
12132
12133 , this argument is automatically inserted when the respective style is selected.
12134  Currently, only one argument per style\SpecialChar breakableslash
12135 layout can be automatically inserted.
12136 \end_layout
12137
12138 \begin_layout Itemize
12139 \begin_inset Flex Code
12140 status collapsed
12141
12142 \begin_layout Plain Layout
12143 InsertCotext
12144 \end_layout
12145
12146 \end_inset
12147
12148  
12149 \begin_inset Flex Code
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 [int=0]
12154 \end_layout
12155
12156 \end_inset
12157
12158  If this is set to 
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 1
12164 \end_layout
12165
12166 \end_inset
12167
12168 , this argument will be inserted with a copy of the co-text (either selected
12169  text or the whole paragraph) as content.
12170 \end_layout
12171
12172 \begin_layout Itemize
12173 \begin_inset Flex Code
12174 status collapsed
12175
12176 \begin_layout Plain Layout
12177 PassThru
12178 \end_layout
12179
12180 \end_inset
12181
12182  [
12183 \begin_inset Flex Code
12184 status collapsed
12185
12186 \begin_layout Plain Layout
12187
12188 \emph on
12189 inherited
12190 \emph default
12191 , true, false
12192 \end_layout
12193
12194 \end_inset
12195
12196 ] Whether the contents of this argument should be output in raw form, meaning
12197  without special translations that \SpecialChar LaTeX
12198  would require.
12199  By default, the 
12200 \begin_inset Flex Code
12201 status collapsed
12202
12203 \begin_layout Plain Layout
12204 PassThru
12205 \end_layout
12206
12207 \end_inset
12208
12209  status is inherited by the inset or paragraph layout the argument belongs
12210  to, true and false change the status for the given argument only.
12211 \end_layout
12212
12213 \begin_layout Itemize
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 PassThruChars
12219 \end_layout
12220
12221 \end_inset
12222
12223  [
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 string of characters
12229 \end_layout
12230
12231 \end_inset
12232
12233 ]
12234 \family typewriter
12235  
12236 \family default
12237 Defines individual characters
12238 \begin_inset Newline linebreak
12239 \end_inset
12240
12241 that should be output in raw form, meaning without special translations
12242  that \SpecialChar LaTeX
12243  would require.
12244  Note that, contrary to PassThru, this needs to be explicitly defined for
12245  arguments.
12246  That is, arguments do not inherit PassThruChars from their parent inset
12247  or layout.
12248 \end_layout
12249
12250 \begin_layout Itemize
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 IsTocCaption
12256 \end_layout
12257
12258 \end_inset
12259
12260  [
12261 \begin_inset Flex Code
12262 status collapsed
12263
12264 \begin_layout Plain Layout
12265
12266 \emph on
12267 0
12268 \end_layout
12269
12270 \end_inset
12271
12272 ,
12273 \begin_inset space \thinspace{}
12274 \end_inset
12275
12276
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281 1
12282 \end_layout
12283
12284 \end_inset
12285
12286 ] If this is set to 1, the argument will output its content in the corresponding
12287  item in the table of contents.
12288  See AddToToc.
12289 \end_layout
12290
12291 \begin_layout Standard
12292 By default, the text entered in the \SpecialChar LyX
12293  workarea in the respective layout is
12294  the last (mandatory) argument of a command if the 
12295 \begin_inset Flex Code
12296 status collapsed
12297
12298 \begin_layout Plain Layout
12299 LatexType
12300 \end_layout
12301
12302 \end_inset
12303
12304  is 
12305 \begin_inset Flex Code
12306 status collapsed
12307
12308 \begin_layout Plain Layout
12309 Command
12310 \end_layout
12311
12312 \end_inset
12313
12314 .
12315  However, arguments with the prefix 
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 post:
12321 \end_layout
12322
12323 \end_inset
12324
12325  are output after this workarea argument.
12326  Note that post-argument numbering restarts at 1, so the first argument
12327  following the workarea argument is 
12328 \begin_inset Flex Code
12329 status collapsed
12330
12331 \begin_layout Plain Layout
12332 post:1
12333 \end_layout
12334
12335 \end_inset
12336
12337 .
12338  Post-arguments are ignored in any other 
12339 \begin_inset Flex Code
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343 LatexType
12344 \end_layout
12345
12346 \end_inset
12347
12348  than 
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353 Command
12354 \end_layout
12355
12356 \end_inset
12357
12358 .
12359 \end_layout
12360
12361 \begin_layout Standard
12362 Arguments for list 
12363 \begin_inset Flex Code
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367
12368 \backslash
12369 item
12370 \end_layout
12371
12372 \end_inset
12373
12374 s (as in 
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379
12380 \backslash
12381 item[foo]
12382 \end_layout
12383
12384 \end_inset
12385
12386 ) have the prefix 
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 item:
12392 \end_layout
12393
12394 \end_inset
12395
12396  followed by the number (e.
12397 \begin_inset space \thinspace{}
12398 \end_inset
12399
12400 g.
12401 \begin_inset space \space{}
12402 \end_inset
12403
12404
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 Argument item:1
12410 \end_layout
12411
12412 \end_inset
12413
12414 ).
12415 \change_inserted -712698321 1534487781
12416
12417 \end_layout
12418
12419 \begin_layout Standard
12420
12421 \change_inserted -712698321 1534488561
12422 Finally, there is a special argument type with the prefix 
12423 \begin_inset Flex Code
12424 status collapsed
12425
12426 \begin_layout Plain Layout
12427
12428 \change_inserted -712698321 1534487844
12429 listpreamble:
12430 \change_unchanged
12431
12432 \end_layout
12433
12434 \end_inset
12435
12436 .
12437  It is not really an argument, but uses the argument interface (thus, the
12438  prefix is also followed by a number, e.
12439 \begin_inset space \thinspace{}
12440 \end_inset
12441
12442 g.
12443  
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448
12449 \change_inserted -712698321 1534488412
12450 Argument listpreamble:1
12451 \end_layout
12452
12453 \end_inset
12454
12455 ).
12456  As the name implies, it is targeted at lists such as 
12457 \family sans
12458 Itemize
12459 \family default
12460
12461 \family sans
12462 Enumerate
12463 \family default
12464
12465 \family sans
12466 Description
12467 \family default
12468 , or 
12469 \family sans
12470 Bibliography
12471 \family default
12472 .
12473  Its content will be output at the list start, before the first 
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478
12479 \change_inserted -712698321 1534488058
12480
12481 \backslash
12482 item
12483 \change_unchanged
12484
12485 \end_layout
12486
12487 \end_inset
12488
12489 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12490 ).
12491  This way, users can insert redefinitions (of lengths etc.) to individual
12492  lists.
12493  By default, these arguments do not have a delimiter.
12494 \change_unchanged
12495
12496 \end_layout
12497
12498 \end_deeper
12499 \begin_layout Description
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 AutoNests
12505 \end_layout
12506
12507 \end_inset
12508
12509  Includes a comma-separated list of layouts that should be nested in and
12510  after the current layout.
12511  Only makes sense for nestable layouts (such as environments).
12512  Must be ended by 
12513 \begin_inset Quotes eld
12514 \end_inset
12515
12516
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 EndAutoNests
12522 \end_layout
12523
12524 \end_inset
12525
12526
12527 \begin_inset Quotes erd
12528 \end_inset
12529
12530 .
12531  See also 
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 IsAutoNestedBy
12537 \end_layout
12538
12539 \end_inset
12540
12541 .
12542 \end_layout
12543
12544 \begin_layout Description
12545 \begin_inset Flex Code
12546 status collapsed
12547
12548 \begin_layout Plain Layout
12549 BabelPreamble
12550 \end_layout
12551
12552 \end_inset
12553
12554  Note that this will completely override any prior 
12555 \begin_inset Flex Code
12556 status collapsed
12557
12558 \begin_layout Plain Layout
12559 BabelPreamble
12560 \end_layout
12561
12562 \end_inset
12563
12564  declaration for this style.
12565  Must end with 
12566 \begin_inset Quotes eld
12567 \end_inset
12568
12569
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574 EndBabelPreamble
12575 \end_layout
12576
12577 \end_inset
12578
12579
12580 \begin_inset Quotes erd
12581 \end_inset
12582
12583 .
12584  See 
12585 \begin_inset CommandInset ref
12586 LatexCommand ref
12587 reference "subsec:I18n"
12588
12589 \end_inset
12590
12591  for details on its use.
12592 \end_layout
12593
12594 \begin_layout Description
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 BottomSep
12600 \end_layout
12601
12602 \end_inset
12603
12604  [
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 float=0
12610 \end_layout
12611
12612 \end_inset
12613
12614 ]
12615 \begin_inset Foot
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 Note that a `float' here is a real number, such as: 1.5.
12620 \end_layout
12621
12622 \end_inset
12623
12624  The vertical space with which the last of a chain of paragraphs with this
12625  style is separated from the following paragraph.
12626  If the next paragraph has another style, the separations are not simply
12627  added, but the maximum is taken.
12628 \end_layout
12629
12630 \begin_layout Description
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 Category
12636 \end_layout
12637
12638 \end_inset
12639
12640  [
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 string
12646 \end_layout
12647
12648 \end_inset
12649
12650 ] The category for this style.
12651  This is used to group related styles in the style combobox on the toolbar.
12652  Any string can be used, but you may want to use existing categories with
12653  your own styles.
12654  
12655 \end_layout
12656
12657 \begin_layout Description
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 CommandDepth
12663 \end_layout
12664
12665 \end_inset
12666
12667  Depth of XML command.
12668  Used only with XML-type formats.
12669 \end_layout
12670
12671 \begin_layout Description
12672 \begin_inset Flex Code
12673 status collapsed
12674
12675 \begin_layout Plain Layout
12676 CopyStyle
12677 \end_layout
12678
12679 \end_inset
12680
12681  [
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 string
12687 \end_layout
12688
12689 \end_inset
12690
12691 ] Copies all the features of an existing style into the current one.
12692  
12693 \end_layout
12694
12695 \begin_layout Description
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 DependsOn
12701 \end_layout
12702
12703 \end_inset
12704
12705  [
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 <name>
12711 \end_layout
12712
12713 \end_inset
12714
12715 ] The name of a style whose preamble should be output 
12716 \emph on
12717 before
12718 \emph default
12719  this one.
12720  This allows to ensure some ordering of the preamble snippets when macros
12721  definitions depend on one another.
12722 \begin_inset Foot
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 Note that, besides that functionality, there is no way to ensure any ordering
12727  of preambles.
12728  The ordering that you see in a given version of \SpecialChar LyX
12729  may change without warning
12730  in later versions.
12731 \end_layout
12732
12733 \end_inset
12734
12735
12736 \end_layout
12737
12738 \begin_layout Description
12739 \begin_inset Flex Code
12740 status collapsed
12741
12742 \begin_layout Plain Layout
12743 EndLabeltype
12744 \end_layout
12745
12746 \end_inset
12747
12748  [
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753
12754 \emph on
12755 No_Label
12756 \emph default
12757 , Box, Filled_Box, Static
12758 \end_layout
12759
12760 \end_inset
12761
12762 ] The type of label that stands at the end of the paragraph (or sequence
12763  of paragraphs if 
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 LatexType
12769 \end_layout
12770
12771 \end_inset
12772
12773  is
12774 \begin_inset Newline newline
12775 \end_inset
12776
12777
12778 \begin_inset Flex Code
12779 status collapsed
12780
12781 \begin_layout Plain Layout
12782 Environment
12783 \end_layout
12784
12785 \end_inset
12786
12787
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792 Item_Environment
12793 \end_layout
12794
12795 \end_inset
12796
12797  or 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 List_Environment
12803 \end_layout
12804
12805 \end_inset
12806
12807 ).
12808  
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 No_Label
12814 \end_layout
12815
12816 \end_inset
12817
12818  means 
12819 \begin_inset Quotes eld
12820 \end_inset
12821
12822 nothing
12823 \begin_inset Quotes erd
12824 \end_inset
12825
12826
12827 \begin_inset Flex Code
12828 status collapsed
12829
12830 \begin_layout Plain Layout
12831 Box
12832 \end_layout
12833
12834 \end_inset
12835
12836  (resp.
12837 \begin_inset space \space{}
12838 \end_inset
12839
12840
12841 \begin_inset Flex Code
12842 status collapsed
12843
12844 \begin_layout Plain Layout
12845 Filled_Box
12846 \end_layout
12847
12848 \end_inset
12849
12850 ) is a white (resp.
12851 \begin_inset space ~
12852 \end_inset
12853
12854 black) square suitable for end of proof markers, 
12855 \begin_inset Flex Code
12856 status collapsed
12857
12858 \begin_layout Plain Layout
12859 Static
12860 \end_layout
12861
12862 \end_inset
12863
12864  is an explicit text string.
12865 \end_layout
12866
12867 \begin_layout Description
12868 \begin_inset Flex Code
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872 EndLabelString
12873 \end_layout
12874
12875 \end_inset
12876
12877  [
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 string=""
12883 \end_layout
12884
12885 \end_inset
12886
12887 ] The string used for a label with a 
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892 Static
12893 \end_layout
12894
12895 \end_inset
12896
12897
12898 \begin_inset Newline newline
12899 \end_inset
12900
12901
12902 \begin_inset Flex Code
12903 status collapsed
12904
12905 \begin_layout Plain Layout
12906 EndLabelType
12907 \end_layout
12908
12909 \end_inset
12910
12911 .
12912  
12913 \end_layout
12914
12915 \begin_layout Description
12916 \begin_inset Flex Code
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920 Font
12921 \end_layout
12922
12923 \end_inset
12924
12925  The font used for both the text body 
12926 \emph on
12927 and
12928 \emph default
12929  the label.
12930  See 
12931 \begin_inset CommandInset ref
12932 LatexCommand ref
12933 reference "subsec:Font-description"
12934
12935 \end_inset
12936
12937 .
12938  Note that defining this font automatically defines the 
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 LabelFont
12944 \end_layout
12945
12946 \end_inset
12947
12948  to the same value.
12949  So you should define this one first if you also want to define 
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 LabelFont
12955 \end_layout
12956
12957 \end_inset
12958
12959 .
12960 \end_layout
12961
12962 \begin_layout Description
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 ForceLocal
12968 \end_layout
12969
12970 \end_inset
12971
12972  [
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 int=0
12978 \end_layout
12979
12980 \end_inset
12981
12982 ] Used for backporting new styles to stable \SpecialChar LyX
12983  versions.
12984  The first stable version that supports this tag is \SpecialChar LyX
12985  2.1.0.
12986  The argument is a number which may either be 0, -1 or any value greater
12987  than zero.
12988  If the 
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 ForceLocal
12994 \end_layout
12995
12996 \end_inset
12997
12998  flag of a style is greater than zero, it will always be written to the
12999  document header.
13000  If a .lyx file is read, the style definitions from the document header are
13001  added to the document class.
13002  Therefore even older \SpecialChar LyX
13003  versions can handle the style.
13004  The argument of 
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 ForceLocal
13010 \end_layout
13011
13012 \end_inset
13013
13014  is a version number: if the style is read, and the version number is less
13015  than the version number of the already existing style in the document class,
13016  the new style is ignored.
13017  If the version number is greater, the new style replaces the existing style.
13018  A value of -1 means an infinite version number, i.
13019 \begin_inset space \thinspace{}
13020 \end_inset
13021
13022 e.
13023 \begin_inset space \space{}
13024 \end_inset
13025
13026 the style is always used.
13027 \end_layout
13028
13029 \begin_layout Description
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 FreeSpacing
13035 \end_layout
13036
13037 \end_inset
13038
13039  [
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044
13045 \emph on
13046 0
13047 \end_layout
13048
13049 \end_inset
13050
13051 ,
13052 \begin_inset space \thinspace{}
13053 \end_inset
13054
13055
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 1
13061 \end_layout
13062
13063 \end_inset
13064
13065 ] Usually \SpecialChar LyX
13066  does not allow you to insert more than one space between words,
13067  since a space is considered as the separation between two words, not a
13068  character or symbol of its own.
13069  This is a very fine thing but sometimes annoying, for example, when typing
13070  program code or plain \SpecialChar LaTeX
13071  code.
13072  For this reason, 
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 FreeSpacing
13078 \end_layout
13079
13080 \end_inset
13081
13082  can be enabled.
13083  Note that \SpecialChar LyX
13084  will create protected blanks for the additional blanks when
13085  in another mode than \SpecialChar LaTeX
13086 -mode.
13087 \end_layout
13088
13089 \begin_layout Description
13090 \begin_inset Flex Code
13091 status collapsed
13092
13093 \begin_layout Plain Layout
13094 HTML*
13095 \end_layout
13096
13097 \end_inset
13098
13099  These tags are used with XHTML output.
13100  See 
13101 \begin_inset CommandInset ref
13102 LatexCommand ref
13103 reference "subsec:Paragraph-Style-XHTML"
13104
13105 \end_inset
13106
13107 .
13108 \end_layout
13109
13110 \begin_layout Description
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 InnerTag
13116 \end_layout
13117
13118 \end_inset
13119
13120  [FIXME] (Used only with XML-type formats.)
13121 \end_layout
13122
13123 \begin_layout Description
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 InPreamble
13129 \end_layout
13130
13131 \end_inset
13132
13133  [
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138
13139 \emph on
13140 0
13141 \end_layout
13142
13143 \end_inset
13144
13145 ,
13146 \begin_inset space \thinspace{}
13147 \end_inset
13148
13149
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 1
13155 \end_layout
13156
13157 \end_inset
13158
13159 ] If 
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 1
13165 \end_layout
13166
13167 \end_inset
13168
13169 , marks the style as to be included in the document preamble and not in
13170  the document body.
13171  This is useful for document classes that want such information as the title
13172  and author to appear in the preamble.
13173  Note that this works only for styles for which the 
13174 \begin_inset Flex Code
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178 LatexType
13179 \end_layout
13180
13181 \end_inset
13182
13183  is 
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188 Command
13189 \end_layout
13190
13191 \end_inset
13192
13193  or 
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 Paragraph
13199 \end_layout
13200
13201 \end_inset
13202
13203 .
13204 \end_layout
13205
13206 \begin_layout Description
13207 \begin_inset Flex Code
13208 status collapsed
13209
13210 \begin_layout Plain Layout
13211 InTitle
13212 \end_layout
13213
13214 \end_inset
13215
13216  [
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221
13222 \emph on
13223 0
13224 \end_layout
13225
13226 \end_inset
13227
13228 ,
13229 \begin_inset space \thinspace{}
13230 \end_inset
13231
13232
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 1
13238 \end_layout
13239
13240 \end_inset
13241
13242 ] If 
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 1
13248 \end_layout
13249
13250 \end_inset
13251
13252 , marks the style as being part of a title block (see also the 
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 TitleLatexType
13258 \end_layout
13259
13260 \end_inset
13261
13262  and 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 TitleLatexName
13268 \end_layout
13269
13270 \end_inset
13271
13272  global entries).
13273 \end_layout
13274
13275 \begin_layout Description
13276 \begin_inset Flex Code
13277 status collapsed
13278
13279 \begin_layout Plain Layout
13280 IsAutoNestedBy
13281 \end_layout
13282
13283 \end_inset
13284
13285  Includes a comma-separated list of layouts after which this one should
13286  be nested.
13287  Only makes sense with regard to nestable layouts (such as environments).
13288  Must be ended by 
13289 \begin_inset Quotes eld
13290 \end_inset
13291
13292
13293 \begin_inset Flex Code
13294 status collapsed
13295
13296 \begin_layout Plain Layout
13297 EndIsAutoNestedBy
13298 \end_layout
13299
13300 \end_inset
13301
13302
13303 \begin_inset Quotes erd
13304 \end_inset
13305
13306 .
13307  See also 
13308 \begin_inset Flex Code
13309 status collapsed
13310
13311 \begin_layout Plain Layout
13312 AutoNests
13313 \end_layout
13314
13315 \end_inset
13316
13317 .
13318 \end_layout
13319
13320 \begin_layout Description
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 IsTocCaption
13326 \end_layout
13327
13328 \end_inset
13329
13330  [
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335
13336 \emph on
13337 0
13338 \end_layout
13339
13340 \end_inset
13341
13342 ,
13343 \begin_inset space \thinspace{}
13344 \end_inset
13345
13346
13347 \begin_inset Flex Code
13348 status collapsed
13349
13350 \begin_layout Plain Layout
13351 1
13352 \end_layout
13353
13354 \end_inset
13355
13356 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13357  of its contents in its item in the table of contents.
13358  Otherwise, only the label, if it exists, appears.
13359 \end_layout
13360
13361 \begin_layout Description
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366 ItemCommand
13367 \end_layout
13368
13369 \end_inset
13370
13371  [
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376 string="item"
13377 \end_layout
13378
13379 \end_inset
13380
13381 ] The \SpecialChar LaTeX
13382  command sequence declaring an item in a list.
13383  The command is to be defined without the preceding backslash (the default
13384  is 
13385 \begin_inset Quotes eld
13386 \end_inset
13387
13388 item
13389 \begin_inset Quotes erd
13390 \end_inset
13391
13392 , resulting in 
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397
13398 \backslash
13399 item
13400 \end_layout
13401
13402 \end_inset
13403
13404  in the \SpecialChar LaTeX
13405  output).
13406 \end_layout
13407
13408 \begin_layout Description
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 ItemSep
13414 \end_layout
13415
13416 \end_inset
13417
13418  [
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 float=0
13424 \end_layout
13425
13426 \end_inset
13427
13428 ] This provides extra space between paragraphs that have the same style.
13429  If you put other styles into an environment, each is separated with the
13430  environment's 
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 ParSep
13436 \end_layout
13437
13438 \end_inset
13439
13440 .
13441  But the whole items of the environment are additionally separated with
13442  this 
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447 ItemSep
13448 \end_layout
13449
13450 \end_inset
13451
13452 .
13453  Note that this is a
13454 \emph on
13455  multiplier.
13456 \end_layout
13457
13458 \begin_layout Description
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 ItemTag
13464 \end_layout
13465
13466 \end_inset
13467
13468  [FIXME] (Used only with XML-type formats.)
13469 \end_layout
13470
13471 \begin_layout Description
13472 \begin_inset Flex Code
13473 status collapsed
13474
13475 \begin_layout Plain Layout
13476 KeepEmpty
13477 \end_layout
13478
13479 \end_inset
13480
13481  [
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486
13487 \emph on
13488 0
13489 \end_layout
13490
13491 \end_inset
13492
13493 ,
13494 \begin_inset space \thinspace{}
13495 \end_inset
13496
13497
13498 \begin_inset Flex Code
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 1
13503 \end_layout
13504
13505 \end_inset
13506
13507 ] Usually \SpecialChar LyX
13508  does not allow you to leave a paragraph empty, since it would
13509  lead to empty \SpecialChar LaTeX
13510  output.
13511  There are some cases where this could be desirable however: in a letter
13512  template, the required fields can be provided as empty fields, so that
13513  people do not forget them; in some special classes, a style can be used
13514  as some kind of break, which does not contain actual text.
13515 \end_layout
13516
13517 \begin_layout Description
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 LabelBottomsep
13523 \end_layout
13524
13525 \end_inset
13526
13527  [
13528 \begin_inset Flex Code
13529 status collapsed
13530
13531 \begin_layout Plain Layout
13532 float=0
13533 \end_layout
13534
13535 \end_inset
13536
13537 ] The vertical space between the label and the text body.
13538  Only used for labels that are above the text body (
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 Top_Environment
13544 \end_layout
13545
13546 \end_inset
13547
13548  and
13549 \begin_inset Newline newline
13550 \end_inset
13551
13552
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557 Centered_Top_Environment
13558 \end_layout
13559
13560 \end_inset
13561
13562 ).
13563 \end_layout
13564
13565 \begin_layout Description
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 LabelCounter
13571 \end_layout
13572
13573 \end_inset
13574
13575  [
13576 \begin_inset Flex Code
13577 status collapsed
13578
13579 \begin_layout Plain Layout
13580 string=""
13581 \end_layout
13582
13583 \end_inset
13584
13585 ] The name of the counter for automatic numbering.
13586  In order to have the counter appear with your label, you will need to reference
13587  it in the 
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592
13593 \family typewriter
13594 LabelString
13595 \end_layout
13596
13597 \end_inset
13598
13599 .
13600  This will work with 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 LabelType
13606 \end_layout
13607
13608 \end_inset
13609
13610 s, 
13611 \begin_inset Flex Code
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615 Static
13616 \end_layout
13617
13618 \end_inset
13619
13620
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 Above
13626 \end_layout
13627
13628 \end_inset
13629
13630  and 
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 Centered
13636 \end_layout
13637
13638 \end_inset
13639
13640 , at least.
13641 \begin_inset Newline newline
13642 \end_inset
13643
13644 This 
13645 \emph on
13646 may
13647 \emph default
13648  also be given if 
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 LabelType
13654 \end_layout
13655
13656 \end_inset
13657
13658  is 
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 Enumerate
13664 \end_layout
13665
13666 \end_inset
13667
13668 , though this case is a bit complicated.
13669  Suppose you declare 
13670 \begin_inset Quotes eld
13671 \end_inset
13672
13673
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 LabelCounter myenum
13679 \end_layout
13680
13681 \end_inset
13682
13683
13684 \begin_inset Quotes erd
13685 \end_inset
13686
13687 .
13688  Then the actual counters used are 
13689 \begin_inset Flex Code
13690 status collapsed
13691
13692 \begin_layout Plain Layout
13693 myenumi
13694 \end_layout
13695
13696 \end_inset
13697
13698
13699 \begin_inset Flex Code
13700 status collapsed
13701
13702 \begin_layout Plain Layout
13703 myenumii
13704 \end_layout
13705
13706 \end_inset
13707
13708
13709 \begin_inset Flex Code
13710 status collapsed
13711
13712 \begin_layout Plain Layout
13713 myenumiii
13714 \end_layout
13715
13716 \end_inset
13717
13718  and 
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 myenumiv
13724 \end_layout
13725
13726 \end_inset
13727
13728 , much as in \SpecialChar LaTeX
13729 .
13730  These counters must all be declared separately.
13731 \begin_inset Newline newline
13732 \end_inset
13733
13734 See 
13735 \begin_inset CommandInset ref
13736 LatexCommand ref
13737 reference "subsec:Counters"
13738
13739 \end_inset
13740
13741  for details on counters.
13742 \end_layout
13743
13744 \begin_layout Description
13745 \begin_inset Flex Code
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 LabelFont
13750 \end_layout
13751
13752 \end_inset
13753
13754  The font used for the label.
13755  See 
13756 \begin_inset CommandInset ref
13757 LatexCommand ref
13758 reference "subsec:Font-description"
13759
13760 \end_inset
13761
13762 .
13763 \end_layout
13764
13765 \begin_layout Description
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 LabelIndent
13771 \end_layout
13772
13773 \end_inset
13774
13775  [
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 string=""
13781 \end_layout
13782
13783 \end_inset
13784
13785 ] Text that indicates how far a label should be indented.
13786 \end_layout
13787
13788 \begin_layout Description
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793 LabelSep
13794 \end_layout
13795
13796 \end_inset
13797
13798  [
13799 \begin_inset Flex Code
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 string=""
13804 \end_layout
13805
13806 \end_inset
13807
13808 ] Text that indicates the amount of horizontal space between the label and
13809  the text body.
13810  Only used for labels that are not above the text body.
13811 \end_layout
13812
13813 \begin_layout Description
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 LabelString
13819 \end_layout
13820
13821 \end_inset
13822
13823  [
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 string=""
13829 \end_layout
13830
13831 \end_inset
13832
13833 ] The string used for the label.
13834  When 
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 LabelCounter
13840 \end_layout
13841
13842 \end_inset
13843
13844  is set, this string can be contain the special formatting commands described
13845  in 
13846 \begin_inset CommandInset ref
13847 LatexCommand ref
13848 reference "subsec:Counters"
13849
13850 \end_inset
13851
13852 .
13853 \end_layout
13854
13855 \begin_layout Description
13856 \begin_inset Flex Code
13857 status collapsed
13858
13859 \begin_layout Plain Layout
13860 LabelStringAppendix
13861 \end_layout
13862
13863 \end_inset
13864
13865  [
13866 \begin_inset Flex Code
13867 status collapsed
13868
13869 \begin_layout Plain Layout
13870 string=""
13871 \end_layout
13872
13873 \end_inset
13874
13875 ] This is used inside the appendix instead of
13876 \begin_inset Newline newline
13877 \end_inset
13878
13879
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 LabelString
13885 \end_layout
13886
13887 \end_inset
13888
13889 .
13890  Note that every 
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 LabelString
13896 \end_layout
13897
13898 \end_inset
13899
13900  statement resets
13901 \begin_inset Newline newline
13902 \end_inset
13903
13904
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  too.
13915 \end_layout
13916
13917 \begin_layout Description
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 LabelTag
13923 \end_layout
13924
13925 \end_inset
13926
13927  [FIXME] (Used only with XML-type formats.)
13928 \end_layout
13929
13930 \begin_layout Description
13931 \begin_inset Flex Code
13932 status collapsed
13933
13934 \begin_layout Plain Layout
13935 LabelType
13936 \end_layout
13937
13938 \end_inset
13939
13940  [
13941 \begin_inset Flex Code
13942 status collapsed
13943
13944 \begin_layout Plain Layout
13945
13946 \emph on
13947 No_Label
13948 \emph default
13949 , Manual, Static, Above, 
13950 \begin_inset Newline newline
13951 \end_inset
13952
13953 Centered, Sensitive, Enumerate,
13954 \begin_inset Newline newline
13955 \end_inset
13956
13957 Itemize, Bibliography
13958 \end_layout
13959
13960 \end_inset
13961
13962 ]
13963 \end_layout
13964
13965 \begin_deeper
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 Manual
13972 \end_layout
13973
13974 \end_inset
13975
13976  means the label is the very first word (up to the first real blank).
13977  Use protected spaces if you want more than one word as the label.
13978  
13979 \end_layout
13980
13981 \begin_layout Description
13982 \begin_inset Flex Code
13983 status collapsed
13984
13985 \begin_layout Plain Layout
13986 Static
13987 \end_layout
13988
13989 \end_inset
13990
13991  means the label is simply what is declared as 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 LabelString
13997 \end_layout
13998
13999 \end_inset
14000
14001 .
14002  This will be displayed 
14003 \begin_inset Quotes eld
14004 \end_inset
14005
14006 inline
14007 \begin_inset Quotes erd
14008 \end_inset
14009
14010 , at the beginning of the paragraph.
14011  If the 
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 LatexType
14017 \end_layout
14018
14019 \end_inset
14020
14021  is 
14022 \begin_inset Flex Code
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 Environment
14027 \end_layout
14028
14029 \end_inset
14030
14031 , then it will be displayed only in the first paragraph of any sequence
14032  of paragraphs with the same 
14033 \begin_inset Flex Code
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 Style
14038 \end_layout
14039
14040 \end_inset
14041
14042 .
14043 \end_layout
14044
14045 \begin_layout Description
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 Above
14051 \end_layout
14052
14053 \end_inset
14054
14055
14056 \begin_inset space ~
14057 \end_inset
14058
14059 and
14060 \begin_inset space ~
14061 \end_inset
14062
14063
14064 \begin_inset Flex Code
14065 status collapsed
14066
14067 \begin_layout Plain Layout
14068 Centered
14069 \end_layout
14070
14071 \end_inset
14072
14073  are special cases of 
14074 \begin_inset Flex Code
14075 status collapsed
14076
14077 \begin_layout Plain Layout
14078 Static
14079 \end_layout
14080
14081 \end_inset
14082
14083 .
14084  The label will be printed above the paragraph either at the beginning of
14085  the line or centered.
14086 \end_layout
14087
14088 \begin_layout Description
14089 \begin_inset Flex Code
14090 status collapsed
14091
14092 \begin_layout Plain Layout
14093 Sensitive
14094 \end_layout
14095
14096 \end_inset
14097
14098  is a special case for the caption-labels 
14099 \begin_inset Quotes eld
14100 \end_inset
14101
14102 Figure
14103 \begin_inset Quotes erd
14104 \end_inset
14105
14106  and 
14107 \begin_inset Quotes eld
14108 \end_inset
14109
14110 Table
14111 \begin_inset Quotes erd
14112 \end_inset
14113
14114 .
14115 \begin_inset Newline newline
14116 \end_inset
14117
14118
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 Sensitive
14124 \end_layout
14125
14126 \end_inset
14127
14128  means the (hardcoded) label string depends on the kind of float: It is
14129  hardcoded to be `FloatType N', where N is the value of the counter associated
14130  with the float.
14131  For the case that a caption is inserted outside of a float the 
14132 \begin_inset Flex Code
14133 status collapsed
14134
14135 \begin_layout Plain Layout
14136 LabelString
14137 \end_layout
14138
14139 \end_inset
14140
14141  will appear as 
14142 \begin_inset Quotes eld
14143 \end_inset
14144
14145 Senseless!
14146 \begin_inset Quotes erd
14147 \end_inset
14148
14149 .
14150 \end_layout
14151
14152 \begin_layout Description
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 Enumerate
14158 \end_layout
14159
14160 \end_inset
14161
14162  produces the usual sort of enumeration labels.
14163  The number type needs to be set in the 
14164 \family sans
14165 Counter
14166 \family default
14167 , see 
14168 \begin_inset CommandInset ref
14169 LatexCommand ref
14170 reference "subsec:Counters"
14171
14172 \end_inset
14173
14174 .
14175 \end_layout
14176
14177 \begin_layout Description
14178 \begin_inset Flex Code
14179 status collapsed
14180
14181 \begin_layout Plain Layout
14182 Itemize
14183 \end_layout
14184
14185 \end_inset
14186
14187  produces various bullets at the different levels.
14188  The bullet types displayed can be set via 
14189 \begin_inset Flex Noun
14190 status collapsed
14191
14192 \begin_layout Plain Layout
14193 Document\SpecialChar menuseparator
14194 Settings\SpecialChar menuseparator
14195 Bullets
14196 \end_layout
14197
14198 \end_inset
14199
14200 .
14201 \end_layout
14202
14203 \begin_layout Description
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 Bibliography
14209 \end_layout
14210
14211 \end_inset
14212
14213  should be used only with 
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 LatexType BibEnvironment
14219 \end_layout
14220
14221 \end_inset
14222
14223 .
14224 \end_layout
14225
14226 \end_deeper
14227 \begin_layout Description
14228 \begin_inset Flex Code
14229 status collapsed
14230
14231 \begin_layout Plain Layout
14232 LangPreamble
14233 \end_layout
14234
14235 \end_inset
14236
14237  Note that this will completely override any prior 
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 LangPreamble
14243 \end_layout
14244
14245 \end_inset
14246
14247  declaration for this style.
14248  Must end with 
14249 \begin_inset Quotes eld
14250 \end_inset
14251
14252
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 EndLangPreamble
14258 \end_layout
14259
14260 \end_inset
14261
14262
14263 \begin_inset Quotes erd
14264 \end_inset
14265
14266 .
14267  See 
14268 \begin_inset CommandInset ref
14269 LatexCommand ref
14270 reference "subsec:I18n"
14271
14272 \end_inset
14273
14274  for details on its use.
14275 \end_layout
14276
14277 \begin_layout Description
14278 \begin_inset Flex Code
14279 status collapsed
14280
14281 \begin_layout Plain Layout
14282 LatexName
14283 \end_layout
14284
14285 \end_inset
14286
14287  [
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 <name>
14293 \end_layout
14294
14295 \end_inset
14296
14297 ] The name of the corresponding \SpecialChar LaTeX
14298  stuff.
14299  Either the environment or command name.
14300 \end_layout
14301
14302 \begin_layout Description
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 LatexParam
14308 \end_layout
14309
14310 \end_inset
14311
14312  [
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 <parameter>
14318 \end_layout
14319
14320 \end_inset
14321
14322 ] An optional parameter for the corresponding 
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 LatexName
14328 \end_layout
14329
14330 \end_inset
14331
14332  stuff.
14333  This parameter cannot be changed from within \SpecialChar LyX
14334  (use 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 Argument
14340 \end_layout
14341
14342 \end_inset
14343
14344  for customizable parameters).
14345  This will be output as is after all \SpecialChar LaTeX
14346  
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 Argument
14352 \end_layout
14353
14354 \end_inset
14355
14356 s.
14357 \end_layout
14358
14359 \begin_layout Description
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 LatexType
14365 \end_layout
14366
14367 \end_inset
14368
14369  [
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374
14375 \emph on
14376 Paragraph
14377 \emph default
14378 , Command, Environment, Item_Environment,
14379 \begin_inset Newline newline
14380 \end_inset
14381
14382 List_Environment, Bib_Environment
14383 \end_layout
14384
14385 \end_inset
14386
14387 ] How the style should be translated into \SpecialChar LaTeX
14388 .
14389 \begin_inset Foot
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 LatexType
14398 \end_layout
14399
14400 \end_inset
14401
14402  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14403  Visit the SGML class files for specific examples.
14404 \end_layout
14405
14406 \end_inset
14407
14408
14409 \end_layout
14410
14411 \begin_deeper
14412 \begin_layout Description
14413 \begin_inset Flex Code
14414 status collapsed
14415
14416 \begin_layout Plain Layout
14417 Paragraph
14418 \end_layout
14419
14420 \end_inset
14421
14422  means nothing special.
14423 \end_layout
14424
14425 \begin_layout Description
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 Command
14431 \end_layout
14432
14433 \end_inset
14434
14435  means 
14436 \begin_inset Flex Code
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440
14441 \backslash
14442
14443 \emph on
14444 LatexName
14445 \emph default
14446 {\SpecialChar ldots
14447 }
14448 \end_layout
14449
14450 \end_inset
14451
14452 .
14453 \end_layout
14454
14455 \begin_layout Description
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460 Environment
14461 \end_layout
14462
14463 \end_inset
14464
14465  means 
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470
14471 \backslash
14472 begin{
14473 \emph on
14474 LatexName
14475 \emph default
14476 }\SpecialChar ldots
14477
14478 \backslash
14479 end{
14480 \emph on
14481 LatexName
14482 \emph default
14483 }
14484 \end_layout
14485
14486 \end_inset
14487
14488 .
14489  
14490 \end_layout
14491
14492 \begin_layout Description
14493 \begin_inset Flex Code
14494 status collapsed
14495
14496 \begin_layout Plain Layout
14497 Item_Environment
14498 \end_layout
14499
14500 \end_inset
14501
14502  is the same as 
14503 \begin_inset Flex Code
14504 status collapsed
14505
14506 \begin_layout Plain Layout
14507 Environment
14508 \end_layout
14509
14510 \end_inset
14511
14512 , except that an 
14513 \begin_inset Flex Code
14514 status collapsed
14515
14516 \begin_layout Plain Layout
14517
14518 \backslash
14519 item
14520 \end_layout
14521
14522 \end_inset
14523
14524  is generated for each paragraph of this environment.
14525  
14526 \end_layout
14527
14528 \begin_layout Description
14529 \begin_inset Flex Code
14530 status collapsed
14531
14532 \begin_layout Plain Layout
14533 List_Environment
14534 \end_layout
14535
14536 \end_inset
14537
14538  is the same as 
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 Item_Environment
14544 \end_layout
14545
14546 \end_inset
14547
14548 , except that
14549 \begin_inset Newline newline
14550 \end_inset
14551
14552
14553 \begin_inset Flex Code
14554 status collapsed
14555
14556 \begin_layout Plain Layout
14557 LabelWidthString
14558 \end_layout
14559
14560 \end_inset
14561
14562  is passed as an argument to the environment.
14563 \begin_inset Newline newline
14564 \end_inset
14565
14566
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 LabelWidthString
14572 \end_layout
14573
14574 \end_inset
14575
14576  can be defined in the 
14577 \begin_inset Flex Noun
14578 status collapsed
14579
14580 \begin_layout Plain Layout
14581 Edit\SpecialChar menuseparator
14582 Paragraph
14583 \begin_inset space ~
14584 \end_inset
14585
14586 settings
14587 \end_layout
14588
14589 \end_inset
14590
14591  dialog.
14592 \end_layout
14593
14594 \begin_layout Description
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 Bib_Environment
14600 \end_layout
14601
14602 \end_inset
14603
14604  is like 
14605 \begin_inset Flex Code
14606 status collapsed
14607
14608 \begin_layout Plain Layout
14609 Environment
14610 \end_layout
14611
14612 \end_inset
14613
14614  but adds the necessary mandatory argument (the longest label) to the begin
14615  statement of the bibliography environment:
14616 \begin_inset Newline newline
14617 \end_inset
14618
14619
14620 \begin_inset Flex Code
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624
14625 \backslash
14626 begin{thebibliography}{99}
14627 \end_layout
14628
14629 \end_inset
14630
14631 .
14632  It is therefore only useful for bibliography environments.
14633  The default longest label 
14634 \begin_inset Quotes eld
14635 \end_inset
14636
14637 99
14638 \begin_inset Quotes erd
14639 \end_inset
14640
14641  can be changed by the user in the paragraph settings of a bibliography
14642  item.
14643 \end_layout
14644
14645 \begin_layout Standard
14646 Putting the last few things together, the \SpecialChar LaTeX
14647  output will be either: 
14648 \end_layout
14649
14650 \begin_layout LyX-Code
14651
14652 \backslash
14653 LatexName[LatexParam]{\SpecialChar ldots
14654 }
14655 \end_layout
14656
14657 \begin_layout Standard
14658 or: 
14659 \end_layout
14660
14661 \begin_layout LyX-Code
14662
14663 \backslash
14664 begin{LatexName}[LatexParam] \SpecialChar ldots
14665  
14666 \backslash
14667 end{LatexName}.
14668 \end_layout
14669
14670 \begin_layout Standard
14671 depending upon the \SpecialChar LaTeX
14672  type.
14673 \end_layout
14674
14675 \end_deeper
14676 \begin_layout Description
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 LeftDelim
14682 \end_layout
14683
14684 \end_inset
14685
14686  [
14687 \begin_inset Flex Code
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691 string
14692 \end_layout
14693
14694 \end_inset
14695
14696 ] A string that is put at the beginning of the style content.
14697  A line break in the output can be indicated by 
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 <br/>
14703 \end_layout
14704
14705 \end_inset
14706
14707 .
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 LeftMargin
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 string=""
14726 \end_layout
14727
14728 \end_inset
14729
14730 ] If you put styles into environments, the different 
14731 \begin_inset Flex Code
14732 status collapsed
14733
14734 \begin_layout Plain Layout
14735 LeftMargin
14736 \end_layout
14737
14738 \end_inset
14739
14740  are not simply added, but added with a factor 
14741 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14742 \end_inset
14743
14744 .
14745  Note that this parameter is also used when 
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Margin
14751 \end_layout
14752
14753 \end_inset
14754
14755  is defined as 
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Manual
14761 \end_layout
14762
14763 \end_inset
14764
14765  or 
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 Dynamic
14771 \end_layout
14772
14773 \end_inset
14774
14775 .
14776  Then it is added to the manual or dynamic margin.
14777 \begin_inset Newline newline
14778 \end_inset
14779
14780 For example 
14781 \begin_inset Quotes eld
14782 \end_inset
14783
14784
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 MM
14790 \end_layout
14791
14792 \end_inset
14793
14794
14795 \begin_inset Quotes erd
14796 \end_inset
14797
14798  means that the paragraph is indented with the width of 
14799 \begin_inset Quotes eld
14800 \end_inset
14801
14802
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 MM
14808 \end_layout
14809
14810 \end_inset
14811
14812
14813 \begin_inset Quotes erd
14814 \end_inset
14815
14816  in the normal font.
14817  You can get a negative width by prefixing the string with 
14818 \begin_inset Quotes eld
14819 \end_inset
14820
14821
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 -
14827 \end_layout
14828
14829 \end_inset
14830
14831
14832 \begin_inset Quotes erd
14833 \end_inset
14834
14835 .
14836  This way was chosen so that the look is the same with each used screen
14837  font.
14838 \end_layout
14839
14840 \begin_layout Description
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 Margin
14846 \end_layout
14847
14848 \end_inset
14849
14850  [
14851 \begin_inset Flex Code
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855
14856 \emph on
14857 Static
14858 \emph default
14859 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14860 \end_layout
14861
14862 \end_inset
14863
14864
14865 \begin_inset Newline newline
14866 \end_inset
14867
14868 The kind of margin that the style has on the left side.
14869 \end_layout
14870
14871 \begin_deeper
14872 \begin_layout Description
14873 \begin_inset Flex Code
14874 status collapsed
14875
14876 \begin_layout Plain Layout
14877 Static
14878 \end_layout
14879
14880 \end_inset
14881
14882  just means a fixed margin.
14883 \end_layout
14884
14885 \begin_layout Description
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 Manual
14891 \end_layout
14892
14893 \end_inset
14894
14895  means that the left margin depends on the string entered in the 
14896 \begin_inset Flex Noun
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Edit\SpecialChar menuseparator
14901 Paragraph
14902 \begin_inset space ~
14903 \end_inset
14904
14905 Settings
14906 \end_layout
14907
14908 \end_inset
14909
14910  dialog.
14911  This is used to typeset nice lists without tabulators.
14912 \end_layout
14913
14914 \begin_layout Description
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 Dynamic
14920 \end_layout
14921
14922 \end_inset
14923
14924  means that the margin depends on the size of the label.
14925  This is used for automatic enumerated headlines.
14926  It is obvious that the headline 
14927 \begin_inset Quotes eld
14928 \end_inset
14929
14930 5.4.3.2.1 Very long headline
14931 \begin_inset Quotes erd
14932 \end_inset
14933
14934  must have a wider left margin (as wide as 
14935 \begin_inset Quotes eld
14936 \end_inset
14937
14938 5.4.3.2.1
14939 \begin_inset Quotes erd
14940 \end_inset
14941
14942  plus the space) than 
14943 \begin_inset Quotes eld
14944 \end_inset
14945
14946 3.2 Very long headline
14947 \begin_inset Quotes erd
14948 \end_inset
14949
14950 , even if standard 
14951 \begin_inset Quotes eld
14952 \end_inset
14953
14954 word processors
14955 \begin_inset Quotes erd
14956 \end_inset
14957
14958  are not able to do this.
14959 \end_layout
14960
14961 \begin_layout Description
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 First_Dynamic
14967 \end_layout
14968
14969 \end_inset
14970
14971  is similar, but only the very first row of the paragraph is dynamic, while
14972  the others are static; this is used, for example, for descriptions.
14973 \end_layout
14974
14975 \begin_layout Description
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 Right_Address_Box
14981 \end_layout
14982
14983 \end_inset
14984
14985  means the margin is chosen in a way that the longest row of this paragraph
14986  fits to the right margin.
14987  This is used to typeset an address on the right edge of the page.
14988 \end_layout
14989
14990 \end_deeper
14991 \begin_layout Description
14992 \begin_inset Flex Code
14993 status collapsed
14994
14995 \begin_layout Plain Layout
14996 NeedProtect
14997 \end_layout
14998
14999 \end_inset
15000
15001  [
15002 \begin_inset Flex Code
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006
15007 \emph on
15008 0
15009 \end_layout
15010
15011 \end_inset
15012
15013 ,
15014 \begin_inset space \thinspace{}
15015 \end_inset
15016
15017
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 1
15023 \end_layout
15024
15025 \end_inset
15026
15027 ] Whether fragile commands in this style should be 
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032
15033 \backslash
15034 protect
15035 \end_layout
15036
15037 \end_inset
15038
15039 'ed.
15040  (Note: This is 
15041 \emph on
15042 not
15043 \emph default
15044  whether this command should itself be protected.)
15045 \change_inserted -712698321 1523696949
15046
15047 \end_layout
15048
15049 \begin_layout Description
15050
15051 \change_inserted -712698321 1523696969
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056
15057 \change_inserted -712698321 1523696950
15058 NeedCProtect
15059 \end_layout
15060
15061 \end_inset
15062
15063  [
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068
15069 \change_inserted -712698321 1523696950
15070
15071 \emph on
15072 0
15073 \end_layout
15074
15075 \end_inset
15076
15077 ,
15078 \begin_inset space \thinspace{}
15079 \end_inset
15080
15081
15082 \begin_inset Flex Code
15083 status collapsed
15084
15085 \begin_layout Plain Layout
15086
15087 \change_inserted -712698321 1523696950
15088 1
15089 \end_layout
15090
15091 \end_inset
15092
15093 ] This causes macros that contain this layout to be protected with 
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098
15099 \change_inserted -712698321 1523696950
15100
15101 \backslash
15102 cprotect
15103 \end_layout
15104
15105 \end_inset
15106
15107  (cf.
15108  package 
15109 \family sans
15110 cprotect
15111 \family default
15112 ) if necessary and thus allows (some) verbatim stuff in macros.
15113 \change_unchanged
15114
15115 \end_layout
15116
15117 \begin_layout Description
15118 \begin_inset Flex Code
15119 status collapsed
15120
15121 \begin_layout Plain Layout
15122 Newline
15123 \end_layout
15124
15125 \end_inset
15126
15127  [
15128 \begin_inset Flex Code
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132 0
15133 \end_layout
15134
15135 \end_inset
15136
15137 ,
15138 \begin_inset space \thinspace{}
15139 \end_inset
15140
15141
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146
15147 \emph on
15148 1
15149 \end_layout
15150
15151 \end_inset
15152
15153 ] Whether newlines are translated into \SpecialChar LaTeX
15154  newlines (
15155 \begin_inset Flex Code
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159
15160 \backslash
15161
15162 \backslash
15163
15164 \end_layout
15165
15166 \end_inset
15167
15168 ) or not.
15169  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15170  editing
15171  inside \SpecialChar LyX
15172 .
15173 \end_layout
15174
15175 \begin_layout Description
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 NextNoIndent
15181 \end_layout
15182
15183 \end_inset
15184
15185  [
15186 \begin_inset Flex Code
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190
15191 \emph on
15192 0
15193 \end_layout
15194
15195 \end_inset
15196
15197 ,
15198 \begin_inset space \thinspace{}
15199 \end_inset
15200
15201
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206 1
15207 \end_layout
15208
15209 \end_inset
15210
15211 ] If set to true, and if 
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 DefaultStyle
15217 \end_layout
15218
15219 \end_inset
15220
15221  (usually 
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 Standard
15227 \end_layout
15228
15229 \end_inset
15230
15231 ) paragraphs are being indented, then the indentation of such a paragraph
15232  following one of this type will be suppressed.
15233  (So this will not affect the display of non-default paragraphs.)
15234 \end_layout
15235
15236 \begin_layout Description
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 ObsoletedBy
15242 \end_layout
15243
15244 \end_inset
15245
15246  [
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 <name>
15252 \end_layout
15253
15254 \end_inset
15255
15256 ] Name of a style that has replaced this style.
15257  This is used to rename a style, while keeping backward compatibility.
15258 \end_layout
15259
15260 \begin_layout Description
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 ParagraphGroup
15266 \end_layout
15267
15268 \end_inset
15269
15270  [
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 0
15276 \end_layout
15277
15278 \end_inset
15279
15280 ,
15281 \begin_inset space \thinspace{}
15282 \end_inset
15283
15284
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 1
15290 \end_layout
15291
15292 \end_inset
15293
15294 ] Determines whether consecutive paragraphs of the same type are treated
15295  as belonging together.
15296  This has the effect that the 
15297 \begin_inset Flex Code
15298 status collapsed
15299
15300 \begin_layout Plain Layout
15301 GuiLabel
15302 \end_layout
15303
15304 \end_inset
15305
15306  is only printed once before such a group.
15307  By default, this is true for 
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 LaTeXType
15313 \end_layout
15314
15315 \end_inset
15316
15317  
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 Environment
15323 \end_layout
15324
15325 \end_inset
15326
15327  and 
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 Bib_Environment
15333 \end_layout
15334
15335 \end_inset
15336
15337  and false for all other types.
15338 \end_layout
15339
15340 \begin_layout Description
15341 \begin_inset Flex Code
15342 status collapsed
15343
15344 \begin_layout Plain Layout
15345 ParbreakIsNewline
15346 \end_layout
15347
15348 \end_inset
15349
15350  [
15351 \begin_inset Flex Code
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355
15356 \emph on
15357 0
15358 \end_layout
15359
15360 \end_inset
15361
15362 ,
15363 \begin_inset space \thinspace{}
15364 \end_inset
15365
15366
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 1
15372 \end_layout
15373
15374 \end_inset
15375
15376 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15377  output,
15378  but only by a line break; together with 
15379 \begin_inset Flex Code
15380 status collapsed
15381
15382 \begin_layout Plain Layout
15383 PassThru 1
15384 \end_layout
15385
15386 \end_inset
15387
15388 , this allows to emulate a plain text editor (like the ERT inset).
15389 \end_layout
15390
15391 \begin_layout Description
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 ParIndent
15397 \end_layout
15398
15399 \end_inset
15400
15401  [
15402 \begin_inset Flex Code
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 string=""
15407 \end_layout
15408
15409 \end_inset
15410
15411 ] The indent of the very first line of a paragraph.
15412  The
15413 \begin_inset Newline newline
15414 \end_inset
15415
15416
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 Parindent
15422 \end_layout
15423
15424 \end_inset
15425
15426  will be fixed for a certain style.
15427  The exception is the default style, since the indentation for these paragraphs
15428  can be prohibited with 
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 NextNoIndent
15434 \end_layout
15435
15436 \end_inset
15437
15438 .
15439  Also, 
15440 \begin_inset Flex Code
15441 status collapsed
15442
15443 \begin_layout Plain Layout
15444 Standard
15445 \end_layout
15446
15447 \end_inset
15448
15449  style paragraphs inside environments use the 
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 Parindent
15455 \end_layout
15456
15457 \end_inset
15458
15459  of the environment, not their native one.
15460  For example, 
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 Standard
15466 \end_layout
15467
15468 \end_inset
15469
15470  paragraphs inside an enumeration are not indented.
15471 \end_layout
15472
15473 \begin_layout Description
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 ParSep
15479 \end_layout
15480
15481 \end_inset
15482
15483  [
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 float=0
15489 \end_layout
15490
15491 \end_inset
15492
15493 ] The vertical space between two paragraphs of this style.
15494 \end_layout
15495
15496 \begin_layout Description
15497 \begin_inset Flex Code
15498 status collapsed
15499
15500 \begin_layout Plain Layout
15501 Parskip
15502 \end_layout
15503
15504 \end_inset
15505
15506  [
15507 \begin_inset Flex Code
15508 status collapsed
15509
15510 \begin_layout Plain Layout
15511 float=0
15512 \end_layout
15513
15514 \end_inset
15515
15516 ] \SpecialChar LyX
15517  allows the user to choose either 
15518 \begin_inset Quotes eld
15519 \end_inset
15520
15521 indent
15522 \begin_inset Quotes erd
15523 \end_inset
15524
15525  or 
15526 \begin_inset Quotes eld
15527 \end_inset
15528
15529 skip
15530 \begin_inset Quotes erd
15531 \end_inset
15532
15533  to separate paragraphs.
15534  When 
15535 \begin_inset Quotes eld
15536 \end_inset
15537
15538 indent
15539 \begin_inset Quotes erd
15540 \end_inset
15541
15542  is chosen, 
15543 \begin_inset Flex Code
15544 status collapsed
15545
15546 \begin_layout Plain Layout
15547 Parskip
15548 \end_layout
15549
15550 \end_inset
15551
15552  is ignored.
15553  When 
15554 \begin_inset Quotes eld
15555 \end_inset
15556
15557 skip
15558 \begin_inset Quotes erd
15559 \end_inset
15560
15561  is chosen, 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 ParIndent
15567 \end_layout
15568
15569 \end_inset
15570
15571  is ignored and all paragraphs are separated by the 
15572 \begin_inset Flex Code
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576 Parskip
15577 \end_layout
15578
15579 \end_inset
15580
15581  argument.
15582  The vertical space is calculated with 
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 Parskip
15588 \begin_inset space ~
15589 \end_inset
15590
15591 * DefaultHeight
15592 \end_layout
15593
15594 \end_inset
15595
15596  where 
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 DefaultHeight
15602 \end_layout
15603
15604 \end_inset
15605
15606  is the height of a row with the normal font.
15607  This way, the look stays the same with different screen fonts.
15608 \end_layout
15609
15610 \begin_layout Description
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 PassThru
15616 \end_layout
15617
15618 \end_inset
15619
15620  [
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625
15626 \emph on
15627 0
15628 \end_layout
15629
15630 \end_inset
15631
15632 ,
15633 \begin_inset space \thinspace{}
15634 \end_inset
15635
15636
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 1
15642 \end_layout
15643
15644 \end_inset
15645
15646 ] Whether the contents of this paragraph should be output in raw form, meaning
15647  without special translations that \SpecialChar LaTeX
15648  would require.
15649 \end_layout
15650
15651 \begin_layout Description
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 PassThruChars
15657 \end_layout
15658
15659 \end_inset
15660
15661  [
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666 string
15667 \end_layout
15668
15669 \end_inset
15670
15671 ]
15672 \family typewriter
15673  
15674 \family default
15675 Defines individual characters that should be output in raw form, meaning
15676  without special translations that \SpecialChar LaTeX
15677  would require.
15678 \end_layout
15679
15680 \begin_layout Description
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 Preamble
15686 \end_layout
15687
15688 \end_inset
15689
15690  Information to be included in the \SpecialChar LaTeX
15691  preamble when this style is used.
15692  Used to define macros, load packages, etc., required by this particular
15693  style.
15694  Must end with 
15695 \begin_inset Quotes eld
15696 \end_inset
15697
15698
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 EndPreamble
15704 \end_layout
15705
15706 \end_inset
15707
15708
15709 \begin_inset Quotes erd
15710 \end_inset
15711
15712 .
15713 \end_layout
15714
15715 \begin_layout Description
15716 \begin_inset Flex Code
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720 RefPrefix
15721 \end_layout
15722
15723 \end_inset
15724
15725  [
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 string
15731 \end_layout
15732
15733 \end_inset
15734
15735 ] The prefix to use when creating labels referring to paragraphs of this
15736  type.
15737  This allows the use of formatted references.
15738 \end_layout
15739
15740 \begin_layout Description
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745 Requires 
15746 \end_layout
15747
15748 \end_inset
15749
15750  [
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755 string
15756 \end_layout
15757
15758 \end_inset
15759
15760 ] Whether the style requires the feature 
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 string
15766 \end_layout
15767
15768 \end_inset
15769
15770  (see 
15771 \begin_inset CommandInset ref
15772 LatexCommand ref
15773 reference "chap:List-of-functions"
15774
15775 \end_inset
15776
15777  for the list of features).
15778  If you require a package with specific options, you can additionally use
15779  
15780 \begin_inset Flex Code
15781 status collapsed
15782
15783 \begin_layout Plain Layout
15784 PackageOptions
15785 \end_layout
15786
15787 \end_inset
15788
15789  as a general text class parameter (see 
15790 \begin_inset CommandInset ref
15791 LatexCommand ref
15792 reference "subsec:General-text-class"
15793
15794 \end_inset
15795
15796 ).
15797 \end_layout
15798
15799 \begin_layout Description
15800 \begin_inset Flex Code
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 ResetArgs
15805 \end_layout
15806
15807 \end_inset
15808
15809  [
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814
15815 \emph on
15816 0
15817 \end_layout
15818
15819 \end_inset
15820
15821 ,
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826 1
15827 \end_layout
15828
15829 \end_inset
15830
15831 ] Resets the \SpecialChar LaTeX
15832  arguments of this style (as defined via the 
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 Argument
15838 \end_layout
15839
15840 \end_inset
15841
15842  tag).
15843  This is useful if you have copied a style via 
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 CopyStyle
15849 \end_layout
15850
15851 \end_inset
15852
15853 , but you do not want to inherit its (required and optional) arguments.
15854 \end_layout
15855
15856 \begin_layout Description
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861 ResumeCounter
15862 \end_layout
15863
15864 \end_inset
15865
15866  [
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871
15872 \emph on
15873 0
15874 \end_layout
15875
15876 \end_inset
15877
15878 ,
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 1
15884 \end_layout
15885
15886 \end_inset
15887
15888 ] Resumes a counter that is usually reset at each new sequence of layouts.
15889  This is currently only useful when 
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 LabelType
15895 \end_layout
15896
15897 \end_inset
15898
15899  is 
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 Enumerate
15905 \end_layout
15906
15907 \end_inset
15908
15909 .
15910 \end_layout
15911
15912 \begin_layout Description
15913 \begin_inset Flex Code
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917 RightDelim
15918 \end_layout
15919
15920 \end_inset
15921
15922  [
15923 \begin_inset Flex Code
15924 status collapsed
15925
15926 \begin_layout Plain Layout
15927 string
15928 \end_layout
15929
15930 \end_inset
15931
15932 ] A string that is put at the end of the layout content.
15933  A line break in the output can be indicated by 
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 <br/>
15939 \end_layout
15940
15941 \end_inset
15942
15943 .
15944 \end_layout
15945
15946 \begin_layout Description
15947 \begin_inset Flex Code
15948 status collapsed
15949
15950 \begin_layout Plain Layout
15951 RightMargin
15952 \end_layout
15953
15954 \end_inset
15955
15956  [
15957 \begin_inset Flex Code
15958 status collapsed
15959
15960 \begin_layout Plain Layout
15961 string=""
15962 \end_layout
15963
15964 \end_inset
15965
15966 ] Similar to 
15967 \begin_inset Flex Code
15968 status collapsed
15969
15970 \begin_layout Plain Layout
15971 LeftMargin
15972 \end_layout
15973
15974 \end_inset
15975
15976 .
15977 \end_layout
15978
15979 \begin_layout Description
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 Spacing
15985 \end_layout
15986
15987 \end_inset
15988
15989  [
15990 \begin_inset Flex Code
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994
15995 \emph on
15996 single
15997 \end_layout
15998
15999 \end_inset
16000
16001
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006 onehalf
16007 \end_layout
16008
16009 \end_inset
16010
16011
16012 \begin_inset Flex Code
16013 status collapsed
16014
16015 \begin_layout Plain Layout
16016 double
16017 \end_layout
16018
16019 \end_inset
16020
16021
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026 other
16027 \begin_inset space ~
16028 \end_inset
16029
16030 <value>
16031 \end_layout
16032
16033 \end_inset
16034
16035 ] This defines what the default spacing should be in the style.
16036  The arguments 
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041 single
16042 \end_layout
16043
16044 \end_inset
16045
16046
16047 \begin_inset Flex Code
16048 status collapsed
16049
16050 \begin_layout Plain Layout
16051 onehalf
16052 \end_layout
16053
16054 \end_inset
16055
16056  and 
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 double
16062 \end_layout
16063
16064 \end_inset
16065
16066  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16067  If you specify the argument 
16068 \begin_inset Flex Code
16069 status collapsed
16070
16071 \begin_layout Plain Layout
16072 other
16073 \end_layout
16074
16075 \end_inset
16076
16077 , then you must also provide a value argument which will be the actual multiplie
16078 r value.
16079  Note that, contrary to other parameters, 
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 Spacing
16085 \end_layout
16086
16087 \end_inset
16088
16089  implies the generation of specific \SpecialChar LaTeX
16090  code, using the \SpecialChar LaTeX
16091  package 
16092 \family roman
16093
16094 \begin_inset Flex Code
16095 status collapsed
16096
16097 \begin_layout Plain Layout
16098 setspace
16099 \end_layout
16100
16101 \end_inset
16102
16103 .
16104 \end_layout
16105
16106 \begin_layout Description
16107 \begin_inset Flex Code
16108 status collapsed
16109
16110 \begin_layout Plain Layout
16111 Spellcheck
16112 \end_layout
16113
16114 \end_inset
16115
16116  [
16117 \begin_inset Flex Code
16118 status collapsed
16119
16120 \begin_layout Plain Layout
16121 0
16122 \end_layout
16123
16124 \end_inset
16125
16126 ,
16127 \begin_inset space \thinspace{}
16128 \end_inset
16129
16130
16131 \begin_inset Flex Code
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135
16136 \emph on
16137 1
16138 \end_layout
16139
16140 \end_inset
16141
16142 ] Allow spell-checking paragraphs of this style.
16143  Default is true.
16144 \end_layout
16145
16146 \begin_layout Description
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 StepMasterCounter
16152 \end_layout
16153
16154 \end_inset
16155
16156  [
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161
16162 \emph on
16163 0
16164 \end_layout
16165
16166 \end_inset
16167
16168 ,
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 1
16174 \end_layout
16175
16176 \end_inset
16177
16178 ] Steps the master counter of a given counter at the beginning of a new
16179  sequence of layouts.
16180  This is currently only useful when 
16181 \begin_inset Flex Code
16182 status collapsed
16183
16184 \begin_layout Plain Layout
16185 LabelType
16186 \end_layout
16187
16188 \end_inset
16189
16190  is 
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 Enumerate
16196 \end_layout
16197
16198 \end_inset
16199
16200 .
16201 \end_layout
16202
16203 \begin_layout Description
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 TextFont
16209 \end_layout
16210
16211 \end_inset
16212
16213  The font used for the text body .
16214  See 
16215 \begin_inset CommandInset ref
16216 LatexCommand ref
16217 reference "subsec:Font-description"
16218
16219 \end_inset
16220
16221 .
16222 \end_layout
16223
16224 \begin_layout Description
16225 \begin_inset Flex Code
16226 status collapsed
16227
16228 \begin_layout Plain Layout
16229 TocLevel
16230 \end_layout
16231
16232 \end_inset
16233
16234
16235 \series medium
16236  [
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \series medium
16243 int=3
16244 \end_layout
16245
16246 \end_inset
16247
16248 ]
16249 \series default
16250  The level of the style in the table of contents.
16251  This is used for automatic numbering of section headings.
16252 \end_layout
16253
16254 \begin_layout Description
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 ToggleIndent
16260 \end_layout
16261
16262 \end_inset
16263
16264  [
16265 \emph on
16266
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271
16272 \emph on
16273 default
16274 \end_layout
16275
16276 \end_inset
16277
16278
16279 \emph default
16280
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 always
16286 \end_layout
16287
16288 \end_inset
16289
16290
16291 \begin_inset Flex Code
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295 never
16296 \end_layout
16297
16298 \end_inset
16299
16300 ] This tag determines whether the first line indentation of this paragraph
16301  can be toggled via the Paragraph settings dialog.
16302  If 
16303 \emph on
16304
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309
16310 \emph off
16311 default
16312 \end_layout
16313
16314 \end_inset
16315
16316
16317 \emph default
16318  is set, indentation can be toggled if the document settings use 
16319 \begin_inset Quotes eld
16320 \end_inset
16321
16322 indent
16323 \begin_inset Quotes erd
16324 \end_inset
16325
16326  paragraph style, with 
16327 \begin_inset Flex Code
16328 status collapsed
16329
16330 \begin_layout Plain Layout
16331 always
16332 \end_layout
16333
16334 \end_inset
16335
16336 , indentation can always be toggled, notwithstanding the document settings,
16337  with 
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 never
16343 \end_layout
16344
16345 \end_inset
16346
16347 , indentation can never be toggled.
16348 \end_layout
16349
16350 \begin_layout Description
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 TopSep
16356 \end_layout
16357
16358 \end_inset
16359
16360  [
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 float=0
16366 \end_layout
16367
16368 \end_inset
16369
16370 ] The vertical space with which the very first of a chain of paragraphs
16371  with this style is separated from the previous paragraph.
16372  If the previous paragraph has another style, the separations are not simply
16373  added, but the maximum is taken.
16374 \end_layout
16375
16376 \begin_layout Subsection
16377 \begin_inset CommandInset label
16378 LatexCommand label
16379 name "subsec:I18n"
16380
16381 \end_inset
16382
16383 Internationalization of Paragraph Styles
16384 \end_layout
16385
16386 \begin_layout Standard
16387 \SpecialChar LyX
16388  has long supported internationalization of layout information, but, until
16389  version 2.0, this applied only to the user interface and not to, say, PDF
16390  output.
16391  Thus, French authors were forced to resort to ugly hacks if they wanted
16392  `
16393 \lang french
16394 Théorème
16395 \lang english
16396  1' instead of `Theorem 1'.
16397  Thanks to Georg Baum, that is no longer the case.
16398 \end_layout
16399
16400 \begin_layout Standard
16401 If a 
16402 \begin_inset Flex Code
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 Style
16407 \end_layout
16408
16409 \end_inset
16410
16411  defines text that is to appear in the typeset document, it may use 
16412 \begin_inset Flex Code
16413 status collapsed
16414
16415 \begin_layout Plain Layout
16416 LangPreamble
16417 \end_layout
16418
16419 \end_inset
16420
16421  and 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 BabelPreamble
16427 \end_layout
16428
16429 \end_inset
16430
16431  to support non-English and even multi-language documents correctly.
16432  The following excerpt (from the 
16433 \begin_inset Flex Code
16434 status collapsed
16435
16436 \begin_layout Plain Layout
16437 theorems-ams.inc
16438 \end_layout
16439
16440 \end_inset
16441
16442  file) shows how this works:
16443 \end_layout
16444
16445 \begin_layout LyX-Code
16446 Preamble
16447 \end_layout
16448
16449 \begin_deeper
16450 \begin_layout LyX-Code
16451   
16452 \backslash
16453 theoremstyle{remark}
16454 \end_layout
16455
16456 \begin_layout LyX-Code
16457   
16458 \backslash
16459 newtheorem{claim}[thm]{
16460 \backslash
16461 protect
16462 \backslash
16463 claimname}
16464 \end_layout
16465
16466 \begin_layout LyX-Code
16467 EndPreamble
16468 \end_layout
16469
16470 \begin_layout LyX-Code
16471 LangPreamble
16472 \end_layout
16473
16474 \begin_layout LyX-Code
16475   
16476 \backslash
16477 providecommand{
16478 \backslash
16479 claimname}{_(Claim)}
16480 \end_layout
16481
16482 \begin_layout LyX-Code
16483 EndLangPreamble
16484 \end_layout
16485
16486 \begin_layout LyX-Code
16487 BabelPreamble
16488 \end_layout
16489
16490 \begin_layout LyX-Code
16491     
16492 \backslash
16493 addto
16494 \backslash
16495 captions$$lang{
16496 \backslash
16497 renewcommand{
16498 \backslash
16499 claimname}{_(Claim)}}
16500 \end_layout
16501
16502 \begin_layout LyX-Code
16503 EndBabelPreamble
16504 \end_layout
16505
16506 \end_deeper
16507 \begin_layout Standard
16508 In principle, any legal \SpecialChar LaTeX
16509  may appear in the 
16510 \begin_inset Flex Code
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514 LangPreamble
16515 \end_layout
16516
16517 \end_inset
16518
16519  and 
16520 \begin_inset Flex Code
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 BabelPreamble
16525 \end_layout
16526
16527 \end_inset
16528
16529  tags, but in practice they will typically look as they do here.
16530  The key to correct translation of the typeset text is the definition of
16531  the \SpecialChar LaTeX
16532  command 
16533 \begin_inset Flex Code
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537
16538 \backslash
16539 claimname
16540 \end_layout
16541
16542 \end_inset
16543
16544  and its use in 
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549
16550 \backslash
16551 newtheorem
16552 \end_layout
16553
16554 \end_inset
16555
16556 .
16557  
16558 \end_layout
16559
16560 \begin_layout Standard
16561 The 
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 LangPreamble
16567 \end_layout
16568
16569 \end_inset
16570
16571  tag provides for internationalization based upon the overall language of
16572  the document.
16573  The contents of the tag will be included in the preamble, just as with
16574  the 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 Preamble
16580 \end_layout
16581
16582 \end_inset
16583
16584  tag.
16585  What makes it special is the use of the 
16586 \begin_inset Quotes eld
16587 \end_inset
16588
16589 function
16590 \begin_inset Quotes erd
16591 \end_inset
16592
16593  
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 _()
16599 \end_layout
16600
16601 \end_inset
16602
16603 , which will be replaced, when \SpecialChar LyX
16604  produces \SpecialChar LaTeX
16605  output, with the translation of
16606  its argument into the document language.
16607 \end_layout
16608
16609 \begin_layout Standard
16610 The 
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615 BabelPreamble
16616 \end_layout
16617
16618 \end_inset
16619
16620  tag is more complex, since it is meant to provide support for multi-language
16621  documents and so offers an interface to the 
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626 babel
16627 \end_layout
16628
16629 \end_inset
16630
16631  package.
16632  Its contents will be added to the preamble once for each language that
16633  appears in the document.
16634  In this case, the argument to 
16635 \begin_inset Flex Code
16636 status collapsed
16637
16638 \begin_layout Plain Layout
16639 _()
16640 \end_layout
16641
16642 \end_inset
16643
16644  will be replaced with its translation into the language in question; the
16645  expression 
16646 \begin_inset Flex Code
16647 status collapsed
16648
16649 \begin_layout Plain Layout
16650 $$lang
16651 \end_layout
16652
16653 \end_inset
16654
16655  is replaced by the language name (as used by the babel package).
16656 \end_layout
16657
16658 \begin_layout Standard
16659 A German document that also included a French section would thus have the
16660  following in the preamble:
16661 \end_layout
16662
16663 \begin_layout LyX-Code
16664
16665 \backslash
16666 addto
16667 \backslash
16668 captionsfrench{
16669 \backslash
16670 renewcommand{
16671 \backslash
16672 claimname}{Affirmation}}
16673 \begin_inset Newline newline
16674 \end_inset
16675
16676
16677 \backslash
16678 addto
16679 \backslash
16680 captionsngerman{
16681 \backslash
16682 renewcommand{
16683 \backslash
16684 claimname}{Behauptung}}
16685 \begin_inset Newline newline
16686 \end_inset
16687
16688
16689 \backslash
16690 providecommand{
16691 \backslash
16692 claimname}{Behauptung}
16693 \end_layout
16694
16695 \begin_layout Standard
16696 \SpecialChar LaTeX
16697  and 
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 babel
16703 \end_layout
16704
16705 \end_inset
16706
16707  will then conspire to produce the correct text in the output.
16708 \end_layout
16709
16710 \begin_layout Standard
16711 One important point to note here is that the translations are provided by
16712  \SpecialChar LyX
16713  itself, through the file 
16714 \begin_inset Flex Code
16715 status collapsed
16716
16717 \begin_layout Plain Layout
16718 layouttranslations
16719 \end_layout
16720
16721 \end_inset
16722
16723 .
16724  This means, in effect, that 
16725 \begin_inset Flex Code
16726 status collapsed
16727
16728 \begin_layout Plain Layout
16729 LangPreamble
16730 \end_layout
16731
16732 \end_inset
16733
16734  and 
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 BabelPreamble
16740 \end_layout
16741
16742 \end_inset
16743
16744  are really only of use in layout files that are provided with \SpecialChar LyX
16745 , since text
16746  entered in user-created layout files will not be seen by \SpecialChar LyX
16747 's internationalizatio
16748 n routines unless the 
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 layouttranslations
16754 \end_layout
16755
16756 \end_inset
16757
16758  file is modified accordingly.
16759  That said, however, any layout created with the intention that it will
16760  be included with \SpecialChar LyX
16761  should use these tags where appropriate.
16762  Please note that the paragraph style translations provided by \SpecialChar LyX
16763  will never
16764  change with a minor update (e.
16765 \begin_inset space \thinspace{}
16766 \end_inset
16767
16768 g.
16769 \begin_inset space \space{}
16770 \end_inset
16771
16772 from version 2.1.x to 2.1.y).
16773  It is however quite likely that a major update (e.
16774 \begin_inset space \thinspace{}
16775 \end_inset
16776
16777 g.
16778 \begin_inset space \space{}
16779 \end_inset
16780
16781 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16782 \end_layout
16783
16784 \begin_layout Subsection
16785 Floats
16786 \begin_inset CommandInset label
16787 LatexCommand label
16788 name "subsec:Floats"
16789
16790 \end_inset
16791
16792
16793 \end_layout
16794
16795 \begin_layout Standard
16796 It is necessary to define the floats (
16797 \begin_inset Flex Noun
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 figure
16802 \end_layout
16803
16804 \end_inset
16805
16806
16807 \begin_inset Flex Noun
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 table
16812 \end_layout
16813
16814 \end_inset
16815
16816 , \SpecialChar ldots
16817 ) in the text class itself.
16818  Standard floats are included in the file 
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823 stdfloats.inc
16824 \end_layout
16825
16826 \end_inset
16827
16828 , so you may have to do no more than add
16829 \end_layout
16830
16831 \begin_layout LyX-Code
16832 Input stdfloats.inc
16833 \end_layout
16834
16835 \begin_layout Standard
16836 to your layout file.
16837  If you want to implement a text class that proposes some other float types
16838  (like the AGU class bundled with \SpecialChar LyX
16839 ), the information below will hopefully
16840  help you:
16841 \end_layout
16842
16843 \begin_layout Description
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 AllowedPlacement
16849 \end_layout
16850
16851 \end_inset
16852
16853  [
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 string
16859 \end_layout
16860
16861 \end_inset
16862
16863 =!htbpH] Allowed placement options for this float type.
16864  The value is a string of placement characters.
16865  Possible characters include: 
16866 \emph on
16867 h
16868 \emph default
16869  (
16870 \begin_inset Quotes eld
16871 \end_inset
16872
16873 here if possible
16874 \begin_inset Quotes erd
16875 \end_inset
16876
16877 ), 
16878 \emph on
16879 t
16880 \emph default
16881  (
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885 top of page
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889 ), 
16890 \emph on
16891 b
16892 \emph default
16893  (
16894 \begin_inset Quotes eld
16895 \end_inset
16896
16897 bottom of page
16898 \begin_inset Quotes erd
16899 \end_inset
16900
16901 ), 
16902 \emph on
16903 p
16904 \emph default
16905  (
16906 \begin_inset Quotes eld
16907 \end_inset
16908
16909 page of floats
16910 \begin_inset Quotes erd
16911 \end_inset
16912
16913 ), 
16914 \emph on
16915 H
16916 \emph default
16917  (
16918 \begin_inset Quotes eld
16919 \end_inset
16920
16921 here definitely
16922 \begin_inset Quotes erd
16923 \end_inset
16924
16925 ) and 
16926 \emph on
16927 !
16928 \emph default
16929  (
16930 \begin_inset Quotes eld
16931 \end_inset
16932
16933 ignore LaTeX rules
16934 \begin_inset Quotes erd
16935 \end_inset
16936
16937 ).
16938  The order of the characters in the string does not matter.
16939  If no placement options are allowed, use the string 
16940 \emph on
16941 none
16942 \emph default
16943 .
16944 \end_layout
16945
16946 \begin_layout Description
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 AllowsSideways
16952 \end_layout
16953
16954 \end_inset
16955
16956  [
16957 \begin_inset Flex Code
16958 status collapsed
16959
16960 \begin_layout Plain Layout
16961
16962 \emph off
16963 0
16964 \end_layout
16965
16966 \end_inset
16967
16968 ,
16969 \begin_inset space \thinspace{}
16970 \end_inset
16971
16972
16973 \emph on
16974
16975 \begin_inset Flex Code
16976 status collapsed
16977
16978 \begin_layout Plain Layout
16979
16980 \emph on
16981 1
16982 \end_layout
16983
16984 \end_inset
16985
16986
16987 \emph default
16988 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16989 -package 
16990 \family typewriter
16991 rotfloat
16992 \family default
16993  (sidewaysfloat).
16994  Set to 
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 0
17000 \end_layout
17001
17002 \end_inset
17003
17004  if the float does not support this feature.
17005 \end_layout
17006
17007 \begin_layout Description
17008 \begin_inset Flex Code
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 AllowsWide
17013 \end_layout
17014
17015 \end_inset
17016
17017  [
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022
17023 \emph off
17024 0
17025 \end_layout
17026
17027 \end_inset
17028
17029 ,
17030 \begin_inset space \thinspace{}
17031 \end_inset
17032
17033
17034 \emph on
17035
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040
17041 \emph on
17042 1
17043 \end_layout
17044
17045 \end_inset
17046
17047
17048 \emph default
17049 ] Defines whether the float has a starred variant that spans columns in
17050  a two column paragraph.
17051  Set to 
17052 \begin_inset Flex Code
17053 status collapsed
17054
17055 \begin_layout Plain Layout
17056 0
17057 \end_layout
17058
17059 \end_inset
17060
17061  if the float does not support this feature.
17062 \end_layout
17063
17064 \begin_layout Description
17065 \begin_inset Flex Code
17066 status collapsed
17067
17068 \begin_layout Plain Layout
17069 Extension
17070 \end_layout
17071
17072 \end_inset
17073
17074  [
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079 string
17080 \end_layout
17081
17082 \end_inset
17083
17084 =
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088
17089 \begin_inset Quotes erd
17090 \end_inset
17091
17092 ] The file name extension of an auxiliary file for the list of figures (or
17093  whatever).
17094  \SpecialChar LaTeX
17095  writes the captions to this file.
17096 \end_layout
17097
17098 \begin_layout Description
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 GuiName
17104 \end_layout
17105
17106 \end_inset
17107
17108  [
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 string
17114 \end_layout
17115
17116 \end_inset
17117
17118 =
17119 \begin_inset Quotes erd
17120 \end_inset
17121
17122
17123 \begin_inset Quotes erd
17124 \end_inset
17125
17126 ] The string that will be used in the menus and also for the caption.
17127  This is translated to the current language if babel is used.
17128 \end_layout
17129
17130 \begin_layout Description
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 HTML*
17136 \end_layout
17137
17138 \end_inset
17139
17140  These tags control the XHTML output.
17141  See 
17142 \begin_inset CommandInset ref
17143 LatexCommand ref
17144 reference "sec:Tags-for-XHTML"
17145
17146 \end_inset
17147
17148 .
17149 \end_layout
17150
17151 \begin_layout Description
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156 IsPredefined
17157 \end_layout
17158
17159 \end_inset
17160
17161  [
17162 \emph on
17163
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 0
17169 \end_layout
17170
17171 \end_inset
17172
17173
17174 \emph default
17175 ,
17176 \begin_inset space \thinspace{}
17177 \end_inset
17178
17179
17180 \begin_inset Flex Code
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184 1
17185 \end_layout
17186
17187 \end_inset
17188
17189 ] Indicates whether the float is already defined in the document class or
17190  if instead the \SpecialChar LaTeX
17191  package 
17192 \begin_inset Flex Code
17193 status collapsed
17194
17195 \begin_layout Plain Layout
17196 float
17197 \end_layout
17198
17199 \end_inset
17200
17201  needs to be loaded to define it on-the-fly.
17202  The default is 
17203 \begin_inset Flex Code
17204 status collapsed
17205
17206 \begin_layout Plain Layout
17207 0
17208 \end_layout
17209
17210 \end_inset
17211
17212 , which means: 
17213 \begin_inset Flex Code
17214 status collapsed
17215
17216 \begin_layout Plain Layout
17217 float
17218 \end_layout
17219
17220 \end_inset
17221
17222  is used.
17223  It should be set to 
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228 1
17229 \end_layout
17230
17231 \end_inset
17232
17233  if the float is already defined by the \SpecialChar LaTeX
17234  document class.
17235 \end_layout
17236
17237 \begin_layout Description
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 ListCommand
17243 \end_layout
17244
17245 \end_inset
17246
17247  [
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252 string
17253 \end_layout
17254
17255 \end_inset
17256
17257 =
17258 \begin_inset Quotes erd
17259 \end_inset
17260
17261
17262 \begin_inset Quotes erd
17263 \end_inset
17264
17265 ] The command used to generate a list of floats of this type; the leading
17266  `
17267 \backslash
17268 ' must be omitted.
17269  This 
17270 \emph on
17271 must
17272 \emph default
17273  be given if 
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 UsesFloatPkg
17279 \end_layout
17280
17281 \end_inset
17282
17283  is false, since there is no standard way to generate this command.
17284  It is ignored if 
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 UsesFloatPkg
17290 \end_layout
17291
17292 \end_inset
17293
17294  is true, since in that case there is a standard way to define the command.
17295 \end_layout
17296
17297 \begin_layout Description
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302 ListName
17303 \end_layout
17304
17305 \end_inset
17306
17307  [
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 string
17313 \end_layout
17314
17315 \end_inset
17316
17317 =
17318 \begin_inset Quotes erd
17319 \end_inset
17320
17321
17322 \begin_inset Quotes erd
17323 \end_inset
17324
17325 ] A title for a list of floats of this kind (list of figures, tables, or
17326  whatever).
17327  It is used for the screen label within \SpecialChar LyX
17328 , it is used by \SpecialChar LaTeX
17329  for the title and
17330  it is used as the title in the XHTML output.
17331  It will be translated to the document language.
17332 \end_layout
17333
17334 \begin_layout Description
17335 \begin_inset Flex Code
17336 status collapsed
17337
17338 \begin_layout Plain Layout
17339 NumberWithin
17340 \end_layout
17341
17342 \end_inset
17343
17344  [
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 string
17350 \end_layout
17351
17352 \end_inset
17353
17354 =
17355 \begin_inset Quotes erd
17356 \end_inset
17357
17358
17359 \begin_inset Quotes erd
17360 \end_inset
17361
17362 ] This (optional) argument determines whether floats of this class will
17363  be numbered within some sectional unit of the document.
17364  For example, if 
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 NumberWithin
17370 \end_layout
17371
17372 \end_inset
17373
17374  is set to 
17375 \begin_inset Quotes eld
17376 \end_inset
17377
17378
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383 chapter
17384 \end_layout
17385
17386 \end_inset
17387
17388
17389 \begin_inset Quotes erd
17390 \end_inset
17391
17392 , the floats will be numbered within chapters.
17393  
17394 \end_layout
17395
17396 \begin_layout Description
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401 Placement
17402 \end_layout
17403
17404 \end_inset
17405
17406  [
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411 string
17412 \end_layout
17413
17414 \end_inset
17415
17416 =
17417 \begin_inset Quotes erd
17418 \end_inset
17419
17420
17421 \begin_inset Quotes erd
17422 \end_inset
17423
17424 ] The default placement for the given class of floats.
17425  The string should be as in standard \SpecialChar LaTeX
17426
17427 \begin_inset Flex Code
17428 status collapsed
17429
17430 \begin_layout Plain Layout
17431 t
17432 \end_layout
17433
17434 \end_inset
17435
17436
17437 \begin_inset Flex Code
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441 b
17442 \end_layout
17443
17444 \end_inset
17445
17446
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 p
17452 \end_layout
17453
17454 \end_inset
17455
17456  and 
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 h
17462 \end_layout
17463
17464 \end_inset
17465
17466  for top, bottom, page, and here, respectively.
17467 \begin_inset Foot
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471 Note that the order of these letters in the string is irrelevant, like in
17472  \SpecialChar LaTeX
17473 .
17474 \end_layout
17475
17476 \end_inset
17477
17478  On top of that there is a new type, 
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 H
17484 \end_layout
17485
17486 \end_inset
17487
17488 , which does not really correspond to a float, since it means: put it 
17489 \begin_inset Quotes eld
17490 \end_inset
17491
17492 here
17493 \begin_inset Quotes erd
17494 \end_inset
17495
17496  and nowhere else.
17497  Note however that the 
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502 H
17503 \end_layout
17504
17505 \end_inset
17506
17507  specifier is special and, because of implementation details, cannot be
17508  used in non-built in float types.
17509  If you do not understand what this means, just use 
17510 \begin_inset Quotes eld
17511 \end_inset
17512
17513
17514 \begin_inset Flex Code
17515 status collapsed
17516
17517 \begin_layout Plain Layout
17518 tbp
17519 \end_layout
17520
17521 \end_inset
17522
17523
17524 \begin_inset Quotes erd
17525 \end_inset
17526
17527 .
17528 \end_layout
17529
17530 \begin_layout Description
17531 \begin_inset Flex Code
17532 status collapsed
17533
17534 \begin_layout Plain Layout
17535 RefPrefix
17536 \end_layout
17537
17538 \end_inset
17539
17540  [
17541 \begin_inset Flex Code
17542 status collapsed
17543
17544 \begin_layout Plain Layout
17545 string
17546 \end_layout
17547
17548 \end_inset
17549
17550 ] The prefix to use when creating labels referring to floats of this type.
17551  This allows the use of formatted references.
17552  Note that you can remove any 
17553 \begin_inset Flex Code
17554 status collapsed
17555
17556 \begin_layout Plain Layout
17557 RefPrefix
17558 \end_layout
17559
17560 \end_inset
17561
17562  set by a copied style by using the special value 
17563 \begin_inset Quotes eld
17564 \end_inset
17565
17566 OFF
17567 \begin_inset Quotes erd
17568 \end_inset
17569
17570 , which must be all caps.
17571 \end_layout
17572
17573 \begin_layout Description
17574 \begin_inset Flex Code
17575 status collapsed
17576
17577 \begin_layout Plain Layout
17578 Style
17579 \end_layout
17580
17581 \end_inset
17582
17583  [
17584 \begin_inset Flex Code
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588 string
17589 \end_layout
17590
17591 \end_inset
17592
17593 =
17594 \begin_inset Quotes erd
17595 \end_inset
17596
17597
17598 \begin_inset Quotes erd
17599 \end_inset
17600
17601 ] The style used when defining the float using 
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606
17607 \backslash
17608 newfloat
17609 \end_layout
17610
17611 \end_inset
17612
17613 .
17614 \end_layout
17615
17616 \begin_layout Description
17617 \begin_inset Flex Code
17618 status collapsed
17619
17620 \begin_layout Plain Layout
17621 Type
17622 \end_layout
17623
17624 \end_inset
17625
17626  [
17627 \begin_inset Flex Code
17628 status collapsed
17629
17630 \begin_layout Plain Layout
17631 string
17632 \end_layout
17633
17634 \end_inset
17635
17636 =
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640
17641 \begin_inset Quotes erd
17642 \end_inset
17643
17644 ] The 
17645 \begin_inset Quotes eld
17646 \end_inset
17647
17648 type
17649 \begin_inset Quotes erd
17650 \end_inset
17651
17652  of the new class of floats, like program or algorithm.
17653  After the appropriate 
17654 \begin_inset Flex Code
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658
17659 \backslash
17660 newfloat
17661 \end_layout
17662
17663 \end_inset
17664
17665 , commands such as 
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670
17671 \backslash
17672 begin{program}
17673 \end_layout
17674
17675 \end_inset
17676
17677  or 
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682
17683 \backslash
17684 end{algorithm*}
17685 \end_layout
17686
17687 \end_inset
17688
17689  will be available.
17690 \end_layout
17691
17692 \begin_layout Description
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697 UsesFloatPkg
17698 \end_layout
17699
17700 \end_inset
17701
17702  [
17703 \begin_inset Flex Code
17704 status collapsed
17705
17706 \begin_layout Plain Layout
17707 0
17708 \end_layout
17709
17710 \end_inset
17711
17712 ,
17713 \begin_inset space \thinspace{}
17714 \end_inset
17715
17716
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721
17722 \emph on
17723 1
17724 \end_layout
17725
17726 \end_inset
17727
17728 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17729  package 
17730 \begin_inset Flex Code
17731 status collapsed
17732
17733 \begin_layout Plain Layout
17734 float
17735 \end_layout
17736
17737 \end_inset
17738
17739 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17740  itself.
17741 \end_layout
17742
17743 \begin_layout Standard
17744 Note that defining a float with type 
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749
17750 \emph on
17751 type
17752 \end_layout
17753
17754 \end_inset
17755
17756  automatically defines the corresponding counter with name 
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761
17762 \emph on
17763 type
17764 \end_layout
17765
17766 \end_inset
17767
17768 .
17769 \end_layout
17770
17771 \begin_layout Subsection
17772 Flex insets and InsetLayout
17773 \begin_inset CommandInset label
17774 LatexCommand label
17775 name "subsec:Flex-insets-and"
17776
17777 \end_inset
17778
17779
17780 \end_layout
17781
17782 \begin_layout Standard
17783 Flex insets come in three different kinds: 
17784 \end_layout
17785
17786 \begin_layout Itemize
17787 character style (
17788 \begin_inset Flex Code
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 CharStyle
17793 \end_layout
17794
17795 \end_inset
17796
17797 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17798  commands as 
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803
17804 \backslash
17805 noun
17806 \end_layout
17807
17808 \end_inset
17809
17810  and 
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815
17816 \backslash
17817 code
17818 \end_layout
17819
17820 \end_inset
17821
17822 .
17823 \end_layout
17824
17825 \begin_layout Itemize
17826 user custom (
17827 \begin_inset Flex Code
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831 Custom
17832 \end_layout
17833
17834 \end_inset
17835
17836 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17837  code,
17838  footnote, and the like.
17839  An obvious example is an endnote inset, which is defined in the 
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 endnote
17845 \end_layout
17846
17847 \end_inset
17848
17849  module.
17850 \end_layout
17851
17852 \begin_layout Itemize
17853 XML elements (
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 Element
17859 \end_layout
17860
17861 \end_inset
17862
17863 ): For use with DocBook classes.
17864 \end_layout
17865
17866 \begin_layout Standard
17867 Flex insets are defined using the 
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 InsetLayout
17873 \end_layout
17874
17875 \end_inset
17876
17877  tag, which shall be explained in a moment.
17878 \end_layout
17879
17880 \begin_layout Standard
17881 The 
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 InsetLayout
17887 \end_layout
17888
17889 \end_inset
17890
17891  tag also serves another function: It can be used to customize the general
17892  layout of many different types of insets.
17893  Currently, 
17894 \begin_inset Flex Code
17895 status collapsed
17896
17897 \begin_layout Plain Layout
17898 InsetLayout
17899 \end_layout
17900
17901 \end_inset
17902
17903  can be used to customize the layout parameters for footnotes, marginal
17904  notes, note insets, \SpecialChar TeX
17905  code (ERT) insets, branches, listings, indexes, boxes,
17906  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17907 \end_layout
17908
17909 \begin_layout Standard
17910 The 
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 InsetLayout
17916 \end_layout
17917
17918 \end_inset
17919
17920  definition must begin with a line of the form:
17921 \end_layout
17922
17923 \begin_layout LyX-Code
17924 InsetLayout <type>
17925 \end_layout
17926
17927 \begin_layout Standard
17928 Here 
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 <Type>
17934 \end_layout
17935
17936 \end_inset
17937
17938  indicates the inset whose layout is being defined, and here there are four
17939  cases.
17940 \end_layout
17941
17942 \begin_layout Enumerate
17943 The layout for a pre-existing inset is being modified.
17944  In this case, can be 
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 <Type>
17950 \end_layout
17951
17952 \end_inset
17953
17954  any one of the following: 
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 Algorithm
17960 \end_layout
17961
17962 \end_inset
17963
17964
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 Branch
17970 \end_layout
17971
17972 \end_inset
17973
17974
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 Box
17980 \end_layout
17981
17982 \end_inset
17983
17984
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 Box:shaded
17990 \end_layout
17991
17992 \end_inset
17993
17994
17995 \begin_inset Flex Code
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999 Caption:Standard
18000 \end_layout
18001
18002 \end_inset
18003
18004
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 ERT
18010 \end_layout
18011
18012 \end_inset
18013
18014
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019 Figure
18020 \end_layout
18021
18022 \end_inset
18023
18024
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 Foot
18030 \end_layout
18031
18032 \end_inset
18033
18034
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 Index
18040 \end_layout
18041
18042 \end_inset
18043
18044
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 Info
18050 \end_layout
18051
18052 \end_inset
18053
18054
18055 \begin_inset Flex Code
18056 status collapsed
18057
18058 \begin_layout Plain Layout
18059 Info:menu
18060 \end_layout
18061
18062 \end_inset
18063
18064
18065 \begin_inset Flex Code
18066 status collapsed
18067
18068 \begin_layout Plain Layout
18069 Info:shortcut
18070 \end_layout
18071
18072 \end_inset
18073
18074
18075 \begin_inset Flex Code
18076 status collapsed
18077
18078 \begin_layout Plain Layout
18079 Info:shortcuts
18080 \end_layout
18081
18082 \end_inset
18083
18084
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 Listings
18090 \end_layout
18091
18092 \end_inset
18093
18094
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 Marginal
18100 \end_layout
18101
18102 \end_inset
18103
18104
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 Note:Comment
18110 \end_layout
18111
18112 \end_inset
18113
18114
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 Note:Note
18120 \end_layout
18121
18122 \end_inset
18123
18124
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129 Note:Greyedout
18130 \end_layout
18131
18132 \end_inset
18133
18134
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 Table
18140 \end_layout
18141
18142 \end_inset
18143
18144 , or 
18145 \begin_inset Flex Code
18146 status collapsed
18147
18148 \begin_layout Plain Layout
18149 URL
18150 \end_layout
18151
18152 \end_inset
18153
18154 .
18155 \end_layout
18156
18157 \begin_layout Enumerate
18158 The layout for a Flex inset is being defined.
18159  In this case, 
18160 \begin_inset Flex Code
18161 status collapsed
18162
18163 \begin_layout Plain Layout
18164 <Type>
18165 \end_layout
18166
18167 \end_inset
18168
18169  must be of the form 
18170 \begin_inset Quotes eld
18171 \end_inset
18172
18173
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Flex:<name>
18179 \end_layout
18180
18181 \end_inset
18182
18183
18184 \begin_inset Quotes erd
18185 \end_inset
18186
18187 , where 
18188 \begin_inset Flex Code
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 name
18193 \end_layout
18194
18195 \end_inset
18196
18197  may be be any valid identifier not used by a pre-existing Flex inset.
18198  The identifier may include spaces, but in that case the whole thing must
18199  be wrapped in quotes.
18200  Note that the definition of a flex inset 
18201 \emph on
18202 must 
18203 \emph default
18204 also include a 
18205 \begin_inset Flex Code
18206 status collapsed
18207
18208 \begin_layout Plain Layout
18209 LyXType
18210 \end_layout
18211
18212 \end_inset
18213
18214  entry, declaring which type of inset it defines.
18215 \end_layout
18216
18217 \begin_layout Enumerate
18218 The layout for user specific branch is being defined.
18219  In this case, 
18220 \begin_inset Flex Code
18221 status collapsed
18222
18223 \begin_layout Plain Layout
18224 <Type>
18225 \end_layout
18226
18227 \end_inset
18228
18229  must be of the form 
18230 \begin_inset Quotes eld
18231 \end_inset
18232
18233
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 Branch:<name>
18239 \end_layout
18240
18241 \end_inset
18242
18243
18244 \begin_inset Quotes erd
18245 \end_inset
18246
18247 , where 
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 name
18253 \end_layout
18254
18255 \end_inset
18256
18257  may be be any valid identifier of branch defined in user's document.
18258  The identifier may include spaces, but in that case the whole thing must
18259  be wrapped in quotes.
18260  The main purpose of this feature is to allow \SpecialChar LaTeX
18261  wrapping around specific
18262  branches as user needs.
18263 \end_layout
18264
18265 \begin_layout Enumerate
18266 The layout of a user (or class) specific caption is being defined.
18267  In this case, 
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 <Type>
18273 \end_layout
18274
18275 \end_inset
18276
18277  must be of the form 
18278 \begin_inset Quotes eld
18279 \end_inset
18280
18281
18282 \begin_inset Flex Code
18283 status collapsed
18284
18285 \begin_layout Plain Layout
18286 Caption:<name>
18287 \end_layout
18288
18289 \end_inset
18290
18291
18292 \begin_inset Quotes erd
18293 \end_inset
18294
18295 , where 
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 name
18301 \end_layout
18302
18303 \end_inset
18304
18305  specifies the name of the caption as it appears in the menu.
18306  Have a look at the standard caption (
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 Caption:Standard
18312 \end_layout
18313
18314 \end_inset
18315
18316 ), the specific captions of the KOMA-Script classes (
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 Caption:Above
18322 \end_layout
18323
18324 \end_inset
18325
18326
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331 Caption:Below
18332 \end_layout
18333
18334 \end_inset
18335
18336 ) or the module 
18337 \family sans
18338 Multilingual
18339 \begin_inset space ~
18340 \end_inset
18341
18342 Captions
18343 \begin_inset Newline linebreak
18344 \end_inset
18345
18346
18347 \family default
18348 (
18349 \begin_inset Flex Code
18350 status collapsed
18351
18352 \begin_layout Plain Layout
18353 Caption:Bicaption
18354 \end_layout
18355
18356 \end_inset
18357
18358 ) for applications.
18359 \end_layout
18360
18361 \begin_layout Standard
18362 The 
18363 \begin_inset Flex Code
18364 status collapsed
18365
18366 \begin_layout Plain Layout
18367 InsetLayout
18368 \end_layout
18369
18370 \end_inset
18371
18372  definition can contain the following entries:
18373 \end_layout
18374
18375 \begin_layout Description
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 AddToToc
18381 \end_layout
18382
18383 \end_inset
18384
18385  [
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390 string
18391 \end_layout
18392
18393 \end_inset
18394
18395 =""] This inset will appear in the table of contents of the given type.
18396  An empty string disables.
18397  See also the OutlinerName and the IsTocCaption commands.
18398  This is only implemented for Flex insets.
18399  Default: disabled.
18400 \end_layout
18401
18402 \begin_layout Description
18403 \begin_inset Flex Code
18404 status collapsed
18405
18406 \begin_layout Plain Layout
18407 Argument
18408 \end_layout
18409
18410 \end_inset
18411
18412  [
18413 \begin_inset Flex Code
18414 status collapsed
18415
18416 \begin_layout Plain Layout
18417 int
18418 \end_layout
18419
18420 \end_inset
18421
18422 ] Defines argument number of a command\SpecialChar breakableslash
18423 environment associated with the current
18424  layout.
18425  The definition must end with 
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 EndArgument
18431 \end_layout
18432
18433 \end_inset
18434
18435 .
18436  See 
18437 \begin_inset CommandInset ref
18438 LatexCommand ref
18439 reference "subsec:Paragraph-Styles"
18440
18441 \end_inset
18442
18443  for details.
18444 \end_layout
18445
18446 \begin_layout Description
18447 \begin_inset Flex Code
18448 status collapsed
18449
18450 \begin_layout Plain Layout
18451 BabelPreamble
18452 \end_layout
18453
18454 \end_inset
18455
18456  Preamble for changing language commands; see 
18457 \begin_inset CommandInset ref
18458 LatexCommand ref
18459 reference "subsec:I18n"
18460
18461 \end_inset
18462
18463 .
18464 \end_layout
18465
18466 \begin_layout Description
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471 BgColor
18472 \end_layout
18473
18474 \end_inset
18475
18476  [
18477 \begin_inset Flex Code
18478 status collapsed
18479
18480 \begin_layout Plain Layout
18481 <name>
18482 \end_layout
18483
18484 \end_inset
18485
18486 ] The color for the inset's background.
18487  See 
18488 \begin_inset CommandInset ref
18489 LatexCommand ref
18490 reference "chap:Names-of-colors"
18491
18492 \end_inset
18493
18494  for a list of the available color names.
18495 \end_layout
18496
18497 \begin_layout Description
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 ContentAsLabel
18503 \end_layout
18504
18505 \end_inset
18506
18507  [
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512
18513 \emph on
18514 0
18515 \end_layout
18516
18517 \end_inset
18518
18519 ,
18520 \begin_inset space \thinspace{}
18521 \end_inset
18522
18523
18524 \begin_inset Flex Code
18525 status collapsed
18526
18527 \begin_layout Plain Layout
18528 1
18529 \end_layout
18530
18531 \end_inset
18532
18533 ] Whether to use the content of the inset as the label, when the inset is
18534  closed.
18535  Default is false.
18536 \end_layout
18537
18538 \begin_layout Description
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 CopyStyle
18544 \end_layout
18545
18546 \end_inset
18547
18548  [
18549 \begin_inset Flex Code
18550 status collapsed
18551
18552 \begin_layout Plain Layout
18553 <type>
18554 \end_layout
18555
18556 \end_inset
18557
18558 ] As with paragraph styles, see 
18559 \begin_inset CommandInset ref
18560 LatexCommand ref
18561 reference "subsec:Paragraph-Styles"
18562
18563 \end_inset
18564
18565 .
18566  Note that you need to specify the complete type, e.
18567 \begin_inset space \thinspace{}
18568 \end_inset
18569
18570 g.
18571 \begin_inset space ~
18572 \end_inset
18573
18574
18575 \begin_inset Flex Code
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579 CopyStyle Flex:<name>
18580 \end_layout
18581
18582 \end_inset
18583
18584 .
18585 \end_layout
18586
18587 \begin_layout Description
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 CustomPars
18593 \end_layout
18594
18595 \end_inset
18596
18597  [
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602
18603 \emph on
18604 0
18605 \end_layout
18606
18607 \end_inset
18608
18609 ,
18610 \begin_inset space \thinspace{}
18611 \end_inset
18612
18613
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 1
18619 \end_layout
18620
18621 \end_inset
18622
18623 ] Indicates whether the user may employ the Paragraph Settings dialog to
18624  customize the paragraph.
18625 \end_layout
18626
18627 \begin_layout Description
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 Decoration
18633 \end_layout
18634
18635 \end_inset
18636
18637  can be 
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 Classic
18643 \end_layout
18644
18645 \end_inset
18646
18647
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652 Minimalistic
18653 \end_layout
18654
18655 \end_inset
18656
18657 , or 
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 Conglomerate
18663 \end_layout
18664
18665 \end_inset
18666
18667 , describing the rendering style used for the inset's frame and buttons.
18668  Footnotes generally use 
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673 Classic
18674 \end_layout
18675
18676 \end_inset
18677
18678 , ERT insets generally 
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 Minimalistic
18684 \end_layout
18685
18686 \end_inset
18687
18688 , and character styles 
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693 Conglomerate
18694 \end_layout
18695
18696 \end_inset
18697
18698 .
18699 \end_layout
18700
18701 \begin_layout Description
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 Display
18707 \end_layout
18708
18709 \end_inset
18710
18711  [
18712 \begin_inset Flex Code
18713 status collapsed
18714
18715 \begin_layout Plain Layout
18716 0
18717 \end_layout
18718
18719 \end_inset
18720
18721 ,
18722 \emph on
18723
18724 \begin_inset space \thinspace{}
18725 \end_inset
18726
18727
18728 \emph default
18729
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734
18735 \emph on
18736 1
18737 \end_layout
18738
18739 \end_inset
18740
18741 ] Only useful if 
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 LatexType
18747 \end_layout
18748
18749 \end_inset
18750
18751  is 
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 Environment
18757 \end_layout
18758
18759 \end_inset
18760
18761 .
18762  Indicates whether the environment will stand on its own in the output or
18763  will appear inline with the surrounding text.
18764  If set to false, it is supposed that the \SpecialChar LaTeX
18765  environment ignores white space
18766  (including one newline character) after the 
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771
18772 \backslash
18773 begin{
18774 \emph on
18775 LatexName
18776 \emph default
18777 }
18778 \end_layout
18779
18780 \end_inset
18781
18782  and 
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787
18788 \backslash
18789 end{
18790 \emph on
18791 LatexName
18792 \emph default
18793 }
18794 \end_layout
18795
18796 \end_inset
18797
18798  tags.
18799  Default is true.
18800 \change_inserted 731793113 1538674858
18801
18802 \end_layout
18803
18804 \begin_layout Description
18805
18806 \change_inserted 731793113 1538674891
18807 \begin_inset Flex Code
18808 status open
18809
18810 \begin_layout Plain Layout
18811
18812 \change_inserted 731793113 1538674863
18813 EditExternal
18814 \change_unchanged
18815
18816 \end_layout
18817
18818 \end_inset
18819
18820  [
18821 \emph on
18822 0
18823 \emph default
18824 ,1] Allow the contents of the inset to be edited externally (using whatever
18825  editor is defined for the document's output format).
18826 \change_unchanged
18827
18828 \end_layout
18829
18830 \begin_layout Description
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 End
18836 \end_layout
18837
18838 \end_inset
18839
18840  Required at the end of the 
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 InsetLayout
18846 \end_layout
18847
18848 \end_inset
18849
18850  declarations.
18851 \end_layout
18852
18853 \begin_layout Description
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 Font
18859 \end_layout
18860
18861 \end_inset
18862
18863  The font used for both the text body 
18864 \emph on
18865 and
18866 \emph default
18867  the label.
18868  See 
18869 \begin_inset CommandInset ref
18870 LatexCommand ref
18871 reference "subsec:Font-description"
18872
18873 \end_inset
18874
18875 .
18876  Note that defining this font automatically defines the 
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 LabelFont
18882 \end_layout
18883
18884 \end_inset
18885
18886  to the same value, so define this first and define 
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 LabelFont
18892 \end_layout
18893
18894 \end_inset
18895
18896  later if you want them to be different.
18897 \end_layout
18898
18899 \begin_layout Description
18900 \begin_inset Flex Code
18901 status collapsed
18902
18903 \begin_layout Plain Layout
18904 FixedWidthPreambleEncoding
18905 \end_layout
18906
18907 \end_inset
18908
18909  [
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914
18915 \emph on
18916 0
18917 \end_layout
18918
18919 \end_inset
18920
18921 ,
18922 \begin_inset space \thinspace{}
18923 \end_inset
18924
18925
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 1
18931 \end_layout
18932
18933 \end_inset
18934
18935 ] Force a fixed width encoding for the translated contents of 
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 BabelPreamble
18941 \end_layout
18942
18943 \end_inset
18944
18945  and 
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950 LangPreamble
18951 \end_layout
18952
18953 \end_inset
18954
18955  code generated by this layout.
18956  This is needed for special \SpecialChar LaTeX
18957 -packages like 
18958 \family typewriter
18959 listings
18960 \family default
18961  that do not work with variable width encodings such as 
18962 \family sans
18963 utf8
18964 \family default
18965 .
18966  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18967  backends such as Xe\SpecialChar TeX
18968  or
18969  Lua\SpecialChar TeX
18970  are used.
18971 \end_layout
18972
18973 \begin_layout Description
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 ForceLocalFontSwitch
18979 \end_layout
18980
18981 \end_inset
18982
18983  [
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988
18989 \emph on
18990 0
18991 \end_layout
18992
18993 \end_inset
18994
18995 ,
18996 \begin_inset space \thinspace{}
18997 \end_inset
18998
18999
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 1
19005 \end_layout
19006
19007 \end_inset
19008
19009 ] When using babel, always use a local font switch (
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014
19015 \backslash
19016 foreignlanguage
19017 \end_layout
19018
19019 \end_inset
19020
19021 ), never a global one (such as 
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026
19027 \backslash
19028 selectlanguage
19029 \end_layout
19030
19031 \end_inset
19032
19033 ).
19034 \end_layout
19035
19036 \begin_layout Description
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 ForceLTR
19042 \end_layout
19043
19044 \end_inset
19045
19046  [
19047 \begin_inset Flex Code
19048 status collapsed
19049
19050 \begin_layout Plain Layout
19051
19052 \emph on
19053 0
19054 \end_layout
19055
19056 \end_inset
19057
19058 ,
19059 \begin_inset space \thinspace{}
19060 \end_inset
19061
19062
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 1
19068 \end_layout
19069
19070 \end_inset
19071
19072 ] Force the 
19073 \begin_inset Quotes eld
19074 \end_inset
19075
19076 latex
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080  language, leading to Left-to-Right (Latin) output, e.
19081 \begin_inset space \thinspace{}
19082 \end_inset
19083
19084 g.
19085 \begin_inset space \space{}
19086 \end_inset
19087
19088 in \SpecialChar TeX
19089  code or URL.
19090  A kludge.
19091 \end_layout
19092
19093 \begin_layout Description
19094 \begin_inset Flex Code
19095 status collapsed
19096
19097 \begin_layout Plain Layout
19098 ForceOwnlines
19099 \end_layout
19100
19101 \end_inset
19102
19103  [
19104 \begin_inset Flex Code
19105 status collapsed
19106
19107 \begin_layout Plain Layout
19108
19109 \emph on
19110 0
19111 \end_layout
19112
19113 \end_inset
19114
19115 ,
19116 \begin_inset space \thinspace{}
19117 \end_inset
19118
19119
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 1
19125 \end_layout
19126
19127 \end_inset
19128
19129 ] Force a a line break in the \SpecialChar LaTeX
19130  output before the inset starts and after
19131  the inset ends.
19132  This assures the inset itself is output on its own lines, for parsing purposes.
19133 \end_layout
19134
19135 \begin_layout Description
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 ForcePlain
19141 \end_layout
19142
19143 \end_inset
19144
19145  [
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150
19151 \emph on
19152 0
19153 \end_layout
19154
19155 \end_inset
19156
19157 ,
19158 \begin_inset space \thinspace{}
19159 \end_inset
19160
19161
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 1
19167 \end_layout
19168
19169 \end_inset
19170
19171 ] Indicates whether the 
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 PlainLayout
19177 \end_layout
19178
19179 \end_inset
19180
19181  should be used or, instead, the user can change the paragraph style used
19182  in the inset.
19183  Default is false.
19184 \end_layout
19185
19186 \begin_layout Description
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 FreeSpacing
19192 \end_layout
19193
19194 \end_inset
19195
19196  [
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201
19202 \emph on
19203 0
19204 \end_layout
19205
19206 \end_inset
19207
19208 ,
19209 \begin_inset space \thinspace{}
19210 \end_inset
19211
19212
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 1
19218 \end_layout
19219
19220 \end_inset
19221
19222 ] As with paragraph styles, see 
19223 \begin_inset CommandInset ref
19224 LatexCommand ref
19225 reference "subsec:Paragraph-Styles"
19226
19227 \end_inset
19228
19229 .
19230 \end_layout
19231
19232 \begin_layout Description
19233 \begin_inset Flex Code
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 HTML*
19238 \end_layout
19239
19240 \end_inset
19241
19242  These tags control the XHTML output.
19243  See 
19244 \begin_inset CommandInset ref
19245 LatexCommand ref
19246 reference "sec:Tags-for-XHTML"
19247
19248 \end_inset
19249
19250 .
19251 \end_layout
19252
19253 \begin_layout Description
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 InToc
19259 \end_layout
19260
19261 \end_inset
19262
19263  [
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268
19269 \emph on
19270 0
19271 \end_layout
19272
19273 \end_inset
19274
19275 ,
19276 \begin_inset space \thinspace{}
19277 \end_inset
19278
19279
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 1
19285 \end_layout
19286
19287 \end_inset
19288
19289 ] Whether to include the contents of this inset in the strings generated
19290  for the `Outline' pane for all table of contents, regardless of the AddToToc
19291  setting.
19292  One would not, for example, want the content of a footnote in a section
19293  header to be included in the TOC displayed in the outline, but one would
19294  normally want the content of a character style displayed.
19295  Default is false: not to include.
19296 \end_layout
19297
19298 \begin_layout Description
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 IsTocCaption
19304 \end_layout
19305
19306 \end_inset
19307
19308  [
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313
19314 \emph on
19315 0
19316 \end_layout
19317
19318 \end_inset
19319
19320 ,
19321 \begin_inset space \thinspace{}
19322 \end_inset
19323
19324
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 1
19330 \end_layout
19331
19332 \end_inset
19333
19334 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19335  of its contents in its item in the table of contents.
19336  Otherwise, only the label appears.
19337 \end_layout
19338
19339 \begin_layout Description
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 KeepEmpty
19345 \end_layout
19346
19347 \end_inset
19348
19349  [
19350 \emph on
19351
19352 \begin_inset Flex Code
19353 status collapsed
19354
19355 \begin_layout Plain Layout
19356 0
19357 \end_layout
19358
19359 \end_inset
19360
19361
19362 \emph default
19363 ,
19364 \begin_inset space \thinspace{}
19365 \end_inset
19366
19367
19368 \begin_inset Flex Code
19369 status collapsed
19370
19371 \begin_layout Plain Layout
19372 1
19373 \end_layout
19374
19375 \end_inset
19376
19377 ] As with paragraph styles, see 
19378 \begin_inset CommandInset ref
19379 LatexCommand ref
19380 reference "subsec:Paragraph-Styles"
19381
19382 \end_inset
19383
19384 .
19385 \end_layout
19386
19387 \begin_layout Description
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 LabelFont
19393 \end_layout
19394
19395 \end_inset
19396
19397  The font used for the label.
19398  See 
19399 \begin_inset CommandInset ref
19400 LatexCommand ref
19401 reference "subsec:Font-description"
19402
19403 \end_inset
19404
19405 .
19406  Note that this definition can never appear before 
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 Font
19412 \end_layout
19413
19414 \end_inset
19415
19416 , lest it be ineffective.
19417 \end_layout
19418
19419 \begin_layout Description
19420 \begin_inset Flex Code
19421 status collapsed
19422
19423 \begin_layout Plain Layout
19424 LabelString
19425 \end_layout
19426
19427 \end_inset
19428
19429  [
19430 \begin_inset Flex Code
19431 status collapsed
19432
19433 \begin_layout Plain Layout
19434 string
19435 \end_layout
19436
19437 \end_inset
19438
19439 =
19440 \begin_inset Quotes erd
19441 \end_inset
19442
19443
19444 \begin_inset Quotes erd
19445 \end_inset
19446
19447 ] What will be displayed on the button or elsewhere as the inset label.
19448  Some inset types (
19449 \begin_inset Flex Code
19450 status collapsed
19451
19452 \begin_layout Plain Layout
19453 \SpecialChar TeX
19454  code
19455 \end_layout
19456
19457 \end_inset
19458
19459  and 
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 Branch
19465 \end_layout
19466
19467 \end_inset
19468
19469 ) modify this label on the fly.
19470 \end_layout
19471
19472 \begin_layout Description
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 LangPreamble
19478 \end_layout
19479
19480 \end_inset
19481
19482  Language dependent preamble; see 
19483 \begin_inset CommandInset ref
19484 LatexCommand ref
19485 reference "subsec:I18n"
19486
19487 \end_inset
19488
19489 .
19490 \end_layout
19491
19492 \begin_layout Description
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 LatexName
19498 \end_layout
19499
19500 \end_inset
19501
19502  [
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 <name>
19508 \end_layout
19509
19510 \end_inset
19511
19512 ] The name of the corresponding \SpecialChar LaTeX
19513  stuff.
19514  Either the environment or command name.
19515 \end_layout
19516
19517 \begin_layout Description
19518 \begin_inset Flex Code
19519 status collapsed
19520
19521 \begin_layout Plain Layout
19522 LatexParam
19523 \end_layout
19524
19525 \end_inset
19526
19527  [
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 <parameter>
19533 \end_layout
19534
19535 \end_inset
19536
19537 ] The optional parameter for the corresponding 
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 LatexName
19543 \end_layout
19544
19545 \end_inset
19546
19547  stuff, including possible bracket pairs like 
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 []
19553 \end_layout
19554
19555 \end_inset
19556
19557 .
19558  This parameter cannot be changed from within \SpecialChar LyX
19559  (use 
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 Argument
19565 \end_layout
19566
19567 \end_inset
19568
19569  for customizable parameters).
19570  It will be output as is after all \SpecialChar LaTeX
19571  
19572 \begin_inset Flex Code
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 Argument
19577 \end_layout
19578
19579 \end_inset
19580
19581 s.
19582 \end_layout
19583
19584 \begin_layout Description
19585 \begin_inset Flex Code
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 LatexType
19590 \end_layout
19591
19592 \end_inset
19593
19594  [
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 Command, Environment, None
19600 \end_layout
19601
19602 \end_inset
19603
19604 ] How the style should be translated into \SpecialChar LaTeX
19605 .
19606 \begin_inset Foot
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 LatexType
19615 \end_layout
19616
19617 \end_inset
19618
19619  is perhaps a bit misleading, since these rules apply to SGML classes too.
19620  Visit the SGML class files for specific examples.
19621 \end_layout
19622
19623 \end_inset
19624
19625
19626 \end_layout
19627
19628 \begin_deeper
19629 \begin_layout Description
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 None
19635 \end_layout
19636
19637 \end_inset
19638
19639  means nothing special
19640 \end_layout
19641
19642 \begin_layout Description
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 Command
19648 \end_layout
19649
19650 \end_inset
19651
19652  means 
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657
19658 \backslash
19659
19660 \emph on
19661 LatexName
19662 \emph default
19663 {\SpecialChar ldots
19664 }
19665 \end_layout
19666
19667 \end_inset
19668
19669
19670 \end_layout
19671
19672 \begin_layout Description
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677 Environment
19678 \end_layout
19679
19680 \end_inset
19681
19682  means 
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687
19688 \backslash
19689 begin{
19690 \emph on
19691 LatexName
19692 \emph default
19693 }\SpecialChar ldots
19694
19695 \backslash
19696 end{
19697 \emph on
19698 LatexName
19699 \emph default
19700 }
19701 \end_layout
19702
19703 \end_inset
19704
19705
19706 \end_layout
19707
19708 \begin_layout Standard
19709 Putting the last few things together, the \SpecialChar LaTeX
19710  output will be either: 
19711 \end_layout
19712
19713 \begin_layout LyX-Code
19714
19715 \backslash
19716 LatexName[LatexParam]{\SpecialChar ldots
19717 }
19718 \end_layout
19719
19720 \begin_layout Standard
19721 or: 
19722 \end_layout
19723
19724 \begin_layout LyX-Code
19725
19726 \backslash
19727 begin{LatexName}[LatexParam] \SpecialChar ldots
19728  
19729 \backslash
19730 end{LatexName}
19731 \end_layout
19732
19733 \begin_layout Standard
19734 depending upon the \SpecialChar LaTeX
19735  type.
19736 \end_layout
19737
19738 \end_deeper
19739 \begin_layout Description
19740 \begin_inset Flex Code
19741 status collapsed
19742
19743 \begin_layout Plain Layout
19744 LeftDelim
19745 \end_layout
19746
19747 \end_inset
19748
19749  [
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 string
19755 \end_layout
19756
19757 \end_inset
19758
19759 ] A string that is put at the beginning of the layout content.
19760  A line break in the output can be indicated by 
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765 <br/>
19766 \end_layout
19767
19768 \end_inset
19769
19770 .
19771 \end_layout
19772
19773 \begin_layout Description
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 LyxType
19779 \end_layout
19780
19781 \end_inset
19782
19783  Can be 
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 charstyle
19789 \end_layout
19790
19791 \end_inset
19792
19793
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 custom
19799 \end_layout
19800
19801 \end_inset
19802
19803
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 element
19809 \end_layout
19810
19811 \end_inset
19812
19813  or 
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 end
19819 \end_layout
19820
19821 \end_inset
19822
19823  (indicating a dummy definition ending definitions of charstyles, etc).
19824  This entry is required in and is only meaningful for Flex insets.
19825  Among other things, it determines on which menu this inset will appear.
19826  Setting 
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 LyxType
19832 \end_layout
19833
19834 \end_inset
19835
19836  to 
19837 \begin_inset Flex Code
19838 status collapsed
19839
19840 \begin_layout Plain Layout
19841 charstyle
19842 \end_layout
19843
19844 \end_inset
19845
19846  will automatically set 
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 MultiPar
19852 \end_layout
19853
19854 \end_inset
19855
19856  to false and 
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 ForcePlain
19862 \end_layout
19863
19864 \end_inset
19865
19866  to true.
19867  
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 MultiPar
19873 \end_layout
19874
19875 \end_inset
19876
19877  can be set to true, or 
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 ForcePlain
19883 \end_layout
19884
19885 \end_inset
19886
19887  to false, for 
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 charstyle
19893 \end_layout
19894
19895 \end_inset
19896
19897  insets by setting it 
19898 \emph on
19899 after
19900 \emph default
19901  you set the 
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 LyxType
19907 \end_layout
19908
19909 \end_inset
19910
19911 .
19912 \end_layout
19913
19914 \begin_layout Description
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 MultiPar
19920 \end_layout
19921
19922 \end_inset
19923
19924  [
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929
19930 \emph on
19931 0
19932 \end_layout
19933
19934 \end_inset
19935
19936 ,
19937 \begin_inset space \thinspace{}
19938 \end_inset
19939
19940
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 1
19946 \end_layout
19947
19948 \end_inset
19949
19950 ] Whether multiple paragraphs are permitted in this inset.
19951  This will also set 
19952 \begin_inset Flex Code
19953 status collapsed
19954
19955 \begin_layout Plain Layout
19956 CustomPars
19957 \end_layout
19958
19959 \end_inset
19960
19961  to the same value and 
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 ForcePlain
19967 \end_layout
19968
19969 \end_inset
19970
19971  to the opposite value.
19972  These can be reset to other values, if they are used 
19973 \emph on
19974 after
19975 \emph default
19976  
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 MultiPar
19982 \end_layout
19983
19984 \end_inset
19985
19986 .
19987  Default is true.
19988 \end_layout
19989
19990 \begin_layout Description
19991 \begin_inset Flex Code
19992 status collapsed
19993
19994 \begin_layout Plain Layout
19995 NeedProtect
19996 \end_layout
19997
19998 \end_inset
19999
20000  [
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005
20006 \emph on
20007 0
20008 \end_layout
20009
20010 \end_inset
20011
20012 ,
20013 \begin_inset space \thinspace{}
20014 \end_inset
20015
20016
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 1
20022 \end_layout
20023
20024 \end_inset
20025
20026 ] Whether fragile commands in this inset should be 
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031
20032 \backslash
20033 protect
20034 \end_layout
20035
20036 \end_inset
20037
20038 'ed.
20039  (Note: This is 
20040 \emph on
20041 not
20042 \emph default
20043  whether the command should itself be protected.) Default is false.
20044 \change_inserted -712698321 1523633958
20045
20046 \end_layout
20047
20048 \begin_layout Description
20049
20050 \change_inserted -712698321 1523634088
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055
20056 \change_inserted -712698321 1523633961
20057 NeedCProtect
20058 \end_layout
20059
20060 \end_inset
20061
20062  [
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067
20068 \change_inserted -712698321 1523633958
20069
20070 \emph on
20071 0
20072 \end_layout
20073
20074 \end_inset
20075
20076 ,
20077 \begin_inset space \thinspace{}
20078 \end_inset
20079
20080
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085
20086 \change_inserted -712698321 1523633958
20087 1
20088 \end_layout
20089
20090 \end_inset
20091
20092 ] This causes macros that contain this inset to be protected with 
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097
20098 \change_inserted -712698321 1523634038
20099
20100 \backslash
20101 cprotect
20102 \change_unchanged
20103
20104 \end_layout
20105
20106 \end_inset
20107
20108  (cf.
20109  package 
20110 \family sans
20111 cprotect
20112 \family default
20113 ) if necessary and thus allows (some) verbatim stuff in macros.
20114  Default is false.
20115 \change_unchanged
20116
20117 \end_layout
20118
20119 \begin_layout Description
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 NoInsetLayout
20125 \end_layout
20126
20127 \end_inset
20128
20129  [
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 <layout>
20135 \end_layout
20136
20137 \end_inset
20138
20139 ] Deletes an existing 
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 InsetLayout
20145 \end_layout
20146
20147 \end_inset
20148
20149 .
20150 \end_layout
20151
20152 \begin_layout Description
20153 \begin_inset Flex Code
20154 status collapsed
20155
20156 \begin_layout Plain Layout
20157 ObsoletedBy
20158 \end_layout
20159
20160 \end_inset
20161
20162  [
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 <layout>
20168 \end_layout
20169
20170 \end_inset
20171
20172 ] Name of an 
20173 \begin_inset Flex Code
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 InsetLayout
20178 \end_layout
20179
20180 \end_inset
20181
20182  that has replaced this 
20183 \begin_inset Flex Code
20184 status collapsed
20185
20186 \begin_layout Plain Layout
20187 InsetLayout
20188 \end_layout
20189
20190 \end_inset
20191
20192 .
20193  This is used to rename an 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 InsetLayout
20199 \end_layout
20200
20201 \end_inset
20202
20203 , while keeping backward compatibility.
20204 \end_layout
20205
20206 \begin_layout Description
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 ParbreakIsNewline
20212 \end_layout
20213
20214 \end_inset
20215
20216  [
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221
20222 \emph on
20223 0
20224 \end_layout
20225
20226 \end_inset
20227
20228 ,
20229 \begin_inset space \thinspace{}
20230 \end_inset
20231
20232
20233 \begin_inset Flex Code
20234 status collapsed
20235
20236 \begin_layout Plain Layout
20237 1
20238 \end_layout
20239
20240 \end_inset
20241
20242 ] As with paragraph styles, see 
20243 \begin_inset CommandInset ref
20244 LatexCommand ref
20245 reference "subsec:Paragraph-Styles"
20246
20247 \end_inset
20248
20249 .
20250  Default is false.
20251 \end_layout
20252
20253 \begin_layout Description
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 PassThru
20259 \end_layout
20260
20261 \end_inset
20262
20263  [
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268
20269 \emph on
20270 0
20271 \end_layout
20272
20273 \end_inset
20274
20275 ,
20276 \begin_inset space \thinspace{}
20277 \end_inset
20278
20279
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 1
20285 \end_layout
20286
20287 \end_inset
20288
20289 ] As with paragraph styles, see 
20290 \begin_inset CommandInset ref
20291 LatexCommand ref
20292 reference "subsec:Paragraph-Styles"
20293
20294 \end_inset
20295
20296 .
20297  Default is false.
20298 \end_layout
20299
20300 \begin_layout Description
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 Preamble
20306 \end_layout
20307
20308 \end_inset
20309
20310  As with paragraph styles, see 
20311 \begin_inset CommandInset ref
20312 LatexCommand ref
20313 reference "subsec:Paragraph-Styles"
20314
20315 \end_inset
20316
20317 .
20318 \end_layout
20319
20320 \begin_layout Description
20321 \begin_inset Flex Code
20322 status collapsed
20323
20324 \begin_layout Plain Layout
20325 RefPrefix
20326 \end_layout
20327
20328 \end_inset
20329
20330  [
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 string
20336 \end_layout
20337
20338 \end_inset
20339
20340 ] The prefix to use when creating labels referring to insets of this type.
20341  This allows the use of formatted references.
20342 \end_layout
20343
20344 \begin_layout Description
20345 \begin_inset Flex Code
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349 Requires
20350 \end_layout
20351
20352 \end_inset
20353
20354  [
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359 string
20360 \end_layout
20361
20362 \end_inset
20363
20364 ] As with paragraph styles, see 
20365 \begin_inset CommandInset ref
20366 LatexCommand ref
20367 reference "subsec:Paragraph-Styles"
20368
20369 \end_inset
20370
20371 .
20372 \end_layout
20373
20374 \begin_layout Description
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 ResetArgs
20380 \end_layout
20381
20382 \end_inset
20383
20384  [
20385 \begin_inset Flex Code
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389
20390 \emph on
20391 0
20392 \end_layout
20393
20394 \end_inset
20395
20396 ,
20397 \begin_inset space \thinspace{}
20398 \end_inset
20399
20400
20401 \begin_inset Flex Code
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405 1
20406 \end_layout
20407
20408 \end_inset
20409
20410 ] Resets the \SpecialChar LaTeX
20411  arguments of this layout (as defined via the 
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Argument
20417 \end_layout
20418
20419 \end_inset
20420
20421  tag).
20422  This is useful if you have copied a style via 
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 CopyStyle
20428 \end_layout
20429
20430 \end_inset
20431
20432 , but you do not want to inherit its (required and optional) arguments.
20433 \end_layout
20434
20435 \begin_layout Description
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440 ResetsFont
20441 \end_layout
20442
20443 \end_inset
20444
20445  [
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 0
20451 \end_layout
20452
20453 \end_inset
20454
20455 ,
20456 \begin_inset space \thinspace{}
20457 \end_inset
20458
20459
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464
20465 \emph on
20466 1
20467 \end_layout
20468
20469 \end_inset
20470
20471 ] Whether this inset should use the font of its surrounding environment
20472  or uses its own.
20473  Default is false: use the font of the surrounding environment.
20474 \end_layout
20475
20476 \begin_layout Description
20477 \begin_inset Flex Code
20478 status collapsed
20479
20480 \begin_layout Plain Layout
20481 RightDelim
20482 \end_layout
20483
20484 \end_inset
20485
20486  [
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 string
20492 \end_layout
20493
20494 \end_inset
20495
20496 ] A string that is put at the end of the layout content.
20497  A line break in the output can be indicated by 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 <br/>
20503 \end_layout
20504
20505 \end_inset
20506
20507 .
20508 \end_layout
20509
20510 \begin_layout Description
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 Spellcheck
20516 \end_layout
20517
20518 \end_inset
20519
20520  [
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 0
20526 \end_layout
20527
20528 \end_inset
20529
20530 ,
20531 \begin_inset space \thinspace{}
20532 \end_inset
20533
20534
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539
20540 \emph on
20541 1
20542 \end_layout
20543
20544 \end_inset
20545
20546 ] Allow spell-checking the contents of this inset.
20547  Default is true.
20548 \end_layout
20549
20550 \begin_layout Subsection
20551 Counters
20552 \begin_inset CommandInset label
20553 LatexCommand label
20554 name "subsec:Counters"
20555
20556 \end_inset
20557
20558
20559 \end_layout
20560
20561 \begin_layout Standard
20562 It is necessary to define the counters (
20563 \begin_inset Flex Noun
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567 chapter
20568 \end_layout
20569
20570 \end_inset
20571
20572
20573 \begin_inset Flex Noun
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 figure
20578 \end_layout
20579
20580 \end_inset
20581
20582 , \SpecialChar ldots
20583 ) in the text class itself.
20584  The standard counters are defined in the file 
20585 \begin_inset Flex Code
20586 status collapsed
20587
20588 \begin_layout Plain Layout
20589 stdcounters.inc
20590 \end_layout
20591
20592 \end_inset
20593
20594 , so you may have to do no more than add
20595 \end_layout
20596
20597 \begin_layout LyX-Code
20598 Input stdcounters.inc
20599 \end_layout
20600
20601 \begin_layout Standard
20602 to your layout file to get them to work.
20603  But if you want to define custom counters, then you can do so.
20604  The counter declaration must begin with:
20605 \end_layout
20606
20607 \begin_layout LyX-Code
20608 Counter CounterName
20609 \end_layout
20610
20611 \begin_layout Standard
20612 where of course `
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 CounterName
20618 \end_layout
20619
20620 \end_inset
20621
20622 ' is replaced by the name of the counter.
20623  And it must end with 
20624 \begin_inset Quotes eld
20625 \end_inset
20626
20627
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 End
20633 \end_layout
20634
20635 \end_inset
20636
20637
20638 \begin_inset Quotes erd
20639 \end_inset
20640
20641 .
20642  The following parameters can also be used:
20643 \end_layout
20644
20645 \begin_layout Description
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 InitialValue
20651 \end_layout
20652
20653 \end_inset
20654
20655  [
20656 \begin_inset Flex Code
20657 status collapsed
20658
20659 \begin_layout Plain Layout
20660 int=1
20661 \end_layout
20662
20663 \end_inset
20664
20665 ] Sets the initial value for the counter, to which it will be reset whenever
20666  that happens.
20667  Normally, one will want the default, 1.
20668 \end_layout
20669
20670 \begin_layout Description
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 LabelString
20676 \end_layout
20677
20678 \end_inset
20679
20680  [
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 string
20686 \end_layout
20687
20688 \end_inset
20689
20690 =
20691 \begin_inset Quotes erd
20692 \end_inset
20693
20694
20695 \begin_inset Quotes erd
20696 \end_inset
20697
20698 ] When defined, this string defines how the counter is displayed.
20699  Setting this value sets 
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 LabelStringAppendix
20705 \end_layout
20706
20707 \end_inset
20708
20709  to the same value.
20710  The following special constructs can be used in the string:
20711 \end_layout
20712
20713 \begin_deeper
20714 \begin_layout Itemize
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719
20720 \backslash
20721 thecounter
20722 \end_layout
20723
20724 \end_inset
20725
20726  will be replaced by the expansion of the 
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 LabelString
20732 \end_layout
20733
20734 \end_inset
20735
20736  (or 
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 LabelStringAppendix
20742 \end_layout
20743
20744 \end_inset
20745
20746 ) of the counter 
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 counter
20752 \end_layout
20753
20754 \end_inset
20755
20756 .
20757  
20758 \end_layout
20759
20760 \begin_layout Itemize
20761 counter values can be expressed using \SpecialChar LaTeX
20762 -like macros
20763 \begin_inset Newline newline
20764 \end_inset
20765
20766
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771
20772 \backslash
20773
20774 \emph on
20775 numbertype
20776 \emph default
20777 {
20778 \emph on
20779 counter
20780 \emph default
20781 }
20782 \end_layout
20783
20784 \end_inset
20785
20786 , where 
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791
20792 \emph on
20793 numbertype
20794 \end_layout
20795
20796 \end_inset
20797
20798  can be:
20799 \begin_inset Foot
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803
20804 \family roman
20805 \series medium
20806 \shape up
20807 \size normal
20808 \emph off
20809 \bar no
20810 \noun off
20811 \color none
20812 Actually, the situation is a bit more complicated: any
20813 \family default
20814 \series default
20815 \shape default
20816 \emph default
20817 \bar default
20818  
20819 \size default
20820 \emph on
20821 \noun default
20822 \color inherit
20823 numbertype
20824 \family roman
20825 \series medium
20826 \shape up
20827 \size normal
20828 \emph off
20829 \bar no
20830 \noun off
20831  other than those described below will produce arabic numerals.
20832  It would not be surprising to see this change in the future.
20833 \end_layout
20834
20835 \end_inset
20836
20837  
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 arabic
20843 \end_layout
20844
20845 \end_inset
20846
20847 : 1, 2, 3,\SpecialChar ldots
20848
20849 \begin_inset Flex Code
20850 status collapsed
20851
20852 \begin_layout Plain Layout
20853 alph
20854 \end_layout
20855
20856 \end_inset
20857
20858  for lower-case letters: a, b, c, \SpecialChar ldots
20859
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 Alph
20865 \end_layout
20866
20867 \end_inset
20868
20869  for upper-case letters: A, B, C, \SpecialChar ldots
20870
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 roman
20876 \end_layout
20877
20878 \end_inset
20879
20880  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20881
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 Roman
20887 \end_layout
20888
20889 \end_inset
20890
20891  for upper-case roman numerals: I, II, III\SpecialChar ldots
20892
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 hebrew
20898 \end_layout
20899
20900 \end_inset
20901
20902  for hebrew numerals.
20903 \end_layout
20904
20905 \end_deeper
20906 \begin_layout Standard
20907 If LabelString is not defined, a default value is constructed as follows:
20908  if the counter has a master counter 
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 master
20914 \end_layout
20915
20916 \end_inset
20917
20918  (defined via 
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 Within
20924 \end_layout
20925
20926 \end_inset
20927
20928 ), the string
20929 \begin_inset Newline newline
20930 \end_inset
20931
20932
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937
20938 \backslash
20939 themaster.
20940 \backslash
20941 arabic{counter}
20942 \end_layout
20943
20944 \end_inset
20945
20946  is used; otherwise the string 
20947 \begin_inset Flex Code
20948 status collapsed
20949
20950 \begin_layout Plain Layout
20951
20952 \backslash
20953 arabic{counter}
20954 \end_layout
20955
20956 \end_inset
20957
20958  is used.
20959 \end_layout
20960
20961 \begin_layout Description
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 LabelStringAppendix
20967 \end_layout
20968
20969 \end_inset
20970
20971  [
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 string
20977 \end_layout
20978
20979 \end_inset
20980
20981 =
20982 \begin_inset Quotes erd
20983 \end_inset
20984
20985
20986 \begin_inset Quotes erd
20987 \end_inset
20988
20989 ] Same as 
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 LabelString
20995 \end_layout
20996
20997 \end_inset
20998
20999 , but for use in the Appendix.
21000 \end_layout
21001
21002 \begin_layout Description
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 PrettyFormat
21008 \end_layout
21009
21010 \end_inset
21011
21012  [
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 string
21018 \end_layout
21019
21020 \end_inset
21021
21022 =
21023 \begin_inset Quotes erd
21024 \end_inset
21025
21026
21027 \begin_inset Quotes erd
21028 \end_inset
21029
21030 ] A format for use with formatted references to this counter.
21031  For example, one might want to have references to section numbers appear
21032  as 
21033 \begin_inset Quotes eld
21034 \end_inset
21035
21036 Section 2.4
21037 \begin_inset Quotes erd
21038 \end_inset
21039
21040 .
21041  The string should contain 
21042 \begin_inset Quotes eld
21043 \end_inset
21044
21045 ##
21046 \begin_inset Quotes erd
21047 \end_inset
21048
21049 .
21050  This will be replaced by the counter number itself.
21051  So, for sections, it would be: Section ##.
21052 \end_layout
21053
21054 \begin_layout Description
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 Within
21060 \end_layout
21061
21062 \end_inset
21063
21064  [
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 string
21070 \end_layout
21071
21072 \end_inset
21073
21074 =
21075 \begin_inset Quotes erd
21076 \end_inset
21077
21078
21079 \begin_inset Quotes erd
21080 \end_inset
21081
21082 ] If this is set to the name of another counter, the present counter will
21083  be reset every time the other one is increased.
21084  For example, 
21085 \begin_inset Flex Code
21086 status collapsed
21087
21088 \begin_layout Plain Layout
21089 subsection
21090 \end_layout
21091
21092 \end_inset
21093
21094  is numbered inside 
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 section
21100 \end_layout
21101
21102 \end_inset
21103
21104 .
21105 \end_layout
21106
21107 \begin_layout Subsection
21108 Font description
21109 \begin_inset CommandInset label
21110 LatexCommand label
21111 name "subsec:Font-description"
21112
21113 \end_inset
21114
21115
21116 \end_layout
21117
21118 \begin_layout Standard
21119 A font description looks like this:
21120 \end_layout
21121
21122 \begin_layout LyX-Code
21123 Font 
21124 \family roman
21125 \emph on
21126 or
21127 \family default
21128 \emph default
21129  LabelFont
21130 \emph on
21131  
21132 \family roman
21133 or
21134 \family default
21135 \emph default
21136  DefaultFont
21137 \end_layout
21138
21139 \begin_layout LyX-Code
21140  ...
21141 \end_layout
21142
21143 \begin_layout LyX-Code
21144 EndFont
21145 \end_layout
21146
21147 \begin_layout Standard
21148 The following commands are available:
21149 \end_layout
21150
21151 \begin_layout Description
21152 \begin_inset Flex Code
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 Color
21157 \end_layout
21158
21159 \end_inset
21160
21161  [
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166
21167 \emph on
21168 none
21169 \end_layout
21170
21171 \end_inset
21172
21173
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 black
21179 \end_layout
21180
21181 \end_inset
21182
21183
21184 \begin_inset Flex Code
21185 status collapsed
21186
21187 \begin_layout Plain Layout
21188 white
21189 \end_layout
21190
21191 \end_inset
21192
21193
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 red
21199 \end_layout
21200
21201 \end_inset
21202
21203
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 green
21209 \end_layout
21210
21211 \end_inset
21212
21213
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 blue
21219 \end_layout
21220
21221 \end_inset
21222
21223
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 cyan
21229 \end_layout
21230
21231 \end_inset
21232
21233
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 magenta
21239 \end_layout
21240
21241 \end_inset
21242
21243
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 yellow
21249 \end_layout
21250
21251 \end_inset
21252
21253
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 brown
21259 \end_layout
21260
21261 \end_inset
21262
21263
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 darkgray
21269 \end_layout
21270
21271 \end_inset
21272
21273
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 gray
21279 \end_layout
21280
21281 \end_inset
21282
21283
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 lightgray
21289 \end_layout
21290
21291 \end_inset
21292
21293
21294 \begin_inset Flex Code
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 lime
21299 \end_layout
21300
21301 \end_inset
21302
21303
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 orange
21309 \end_layout
21310
21311 \end_inset
21312
21313
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 olive
21319 \end_layout
21320
21321 \end_inset
21322
21323
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 pink
21329 \end_layout
21330
21331 \end_inset
21332
21333
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 purple
21339 \end_layout
21340
21341 \end_inset
21342
21343
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 teal
21349 \end_layout
21350
21351 \end_inset
21352
21353
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 violet
21359 \end_layout
21360
21361 \end_inset
21362
21363 ]
21364 \end_layout
21365
21366 \begin_layout Description
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 Family
21372 \end_layout
21373
21374 \end_inset
21375
21376  [
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381
21382 \emph on
21383 Roman
21384 \end_layout
21385
21386 \end_inset
21387
21388
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 Sans
21394 \end_layout
21395
21396 \end_inset
21397
21398
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403 Typewriter
21404 \end_layout
21405
21406 \end_inset
21407
21408 ]
21409 \end_layout
21410
21411 \begin_layout Description
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 Misc
21417 \end_layout
21418
21419 \end_inset
21420
21421  [
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 string
21427 \end_layout
21428
21429 \end_inset
21430
21431 ] Valid arguments are: 
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 emph
21437 \end_layout
21438
21439 \end_inset
21440
21441
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 noun
21447 \end_layout
21448
21449 \end_inset
21450
21451
21452 \begin_inset Flex Code
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 strikeout
21457 \end_layout
21458
21459 \end_inset
21460
21461
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 underbar
21467 \end_layout
21468
21469 \end_inset
21470
21471
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 uuline
21477 \end_layout
21478
21479 \end_inset
21480
21481
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 uwave
21487 \end_layout
21488
21489 \end_inset
21490
21491
21492 \begin_inset Flex Code
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 no_emph
21497 \end_layout
21498
21499 \end_inset
21500
21501
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 no_noun
21507 \end_layout
21508
21509 \end_inset
21510
21511
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 no_strikeout
21517 \end_layout
21518
21519 \end_inset
21520
21521
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 no_bar
21527 \end_layout
21528
21529 \end_inset
21530
21531
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 no_uuline
21537 \end_layout
21538
21539 \end_inset
21540
21541  and 
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 no_uwave
21547 \end_layout
21548
21549 \end_inset
21550
21551 .
21552  Each of these turns on or off the corresponding attribute.
21553  For example, 
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 emph
21559 \end_layout
21560
21561 \end_inset
21562
21563  turns on emphasis, and 
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 no_emph
21569 \end_layout
21570
21571 \end_inset
21572
21573  turns it off.
21574  
21575 \begin_inset Newline newline
21576 \end_inset
21577
21578 If the latter seems puzzling, remember that the font settings for the present
21579  context are generally inherited from the surrounding context.
21580  So 
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 no_emph
21586 \end_layout
21587
21588 \end_inset
21589
21590  would turn off the emphasis that was anyway in effect, say, in a theorem
21591  environment.
21592 \end_layout
21593
21594 \begin_layout Description
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 Series
21600 \end_layout
21601
21602 \end_inset
21603
21604  [
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609
21610 \emph on
21611 Medium
21612 \end_layout
21613
21614 \end_inset
21615
21616
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 Bold
21622 \end_layout
21623
21624 \end_inset
21625
21626
21627 \end_layout
21628
21629 \begin_layout Description
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 Shape
21635 \end_layout
21636
21637 \end_inset
21638
21639  [
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644
21645 \emph on
21646 Up
21647 \end_layout
21648
21649 \end_inset
21650
21651
21652 \begin_inset Flex Code
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656 Italic
21657 \end_layout
21658
21659 \end_inset
21660
21661
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666 SmallCaps
21667 \end_layout
21668
21669 \end_inset
21670
21671
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 Slanted
21677 \end_layout
21678
21679 \end_inset
21680
21681
21682 \end_layout
21683
21684 \begin_layout Description
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 Size
21690 \end_layout
21691
21692 \end_inset
21693
21694  [
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 tiny
21700 \end_layout
21701
21702 \end_inset
21703
21704
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 small
21710 \end_layout
21711
21712 \end_inset
21713
21714
21715 \begin_inset Flex Code
21716 status collapsed
21717
21718 \begin_layout Plain Layout
21719
21720 \emph on
21721 normal
21722 \end_layout
21723
21724 \end_inset
21725
21726
21727 \begin_inset Flex Code
21728 status collapsed
21729
21730 \begin_layout Plain Layout
21731 large
21732 \end_layout
21733
21734 \end_inset
21735
21736
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741 larger
21742 \end_layout
21743
21744 \end_inset
21745
21746
21747 \begin_inset Flex Code
21748 status collapsed
21749
21750 \begin_layout Plain Layout
21751 largest
21752 \end_layout
21753
21754 \end_inset
21755
21756
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 huge
21762 \end_layout
21763
21764 \end_inset
21765
21766
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771 giant
21772 \end_layout
21773
21774 \end_inset
21775
21776 ]
21777 \end_layout
21778
21779 \begin_layout Subsection
21780 \begin_inset CommandInset label
21781 LatexCommand label
21782 name "subsec:Citation-engine-description"
21783
21784 \end_inset
21785
21786 Cite engine description
21787 \end_layout
21788
21789 \begin_layout Standard
21790 The 
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795 CiteEngine
21796 \end_layout
21797
21798 \end_inset
21799
21800  blocks, as used mainly in cite engine files (see 
21801 \begin_inset CommandInset ref
21802 LatexCommand ref
21803 reference "subsec:Cite-Engine-Files"
21804 plural "false"
21805 caps "false"
21806 noprefix "false"
21807
21808 \end_inset
21809
21810 ), define the citation commands provided by a specific 
21811 \begin_inset Quotes eld
21812 \end_inset
21813
21814 cite engine
21815 \begin_inset Quotes erd
21816 \end_inset
21817
21818 .
21819  A cite engine, in \SpecialChar LyX
21820  terms, is way specific way to format citations, using
21821  numbers, author names and/or years.
21822  Currently, \SpecialChar LyX
21823  supports three such engine types, namely:
21824 \end_layout
21825
21826 \begin_layout Enumerate
21827 \begin_inset Flex Code
21828 status collapsed
21829
21830 \begin_layout Plain Layout
21831 default
21832 \end_layout
21833
21834 \end_inset
21835
21836 : the default Bib\SpecialChar TeX
21837  way to format citations, a simple numeric style (e.
21838 \begin_inset space \thinspace{}
21839 \end_inset
21840
21841 g., 
21842 \begin_inset Quotes eld
21843 \end_inset
21844
21845 [1]
21846 \begin_inset Quotes erd
21847 \end_inset
21848
21849 )
21850 \end_layout
21851
21852 \begin_layout Enumerate
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857 authoryear
21858 \end_layout
21859
21860 \end_inset
21861
21862 : Harvard-styled citations using author names and publication year (e.
21863 \begin_inset space \thinspace{}
21864 \end_inset
21865
21866 g., 
21867 \begin_inset Quotes eld
21868 \end_inset
21869
21870 Smith and Miller (2017b)
21871 \begin_inset Quotes erd
21872 \end_inset
21873
21874 )
21875 \end_layout
21876
21877 \begin_layout Enumerate
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 numerical
21883 \end_layout
21884
21885 \end_inset
21886
21887 : extended numerical citations that also allow for author or title next
21888  to the number (e.
21889 \begin_inset space \thinspace{}
21890 \end_inset
21891
21892 g., 
21893 \begin_inset Quotes eld
21894 \end_inset
21895
21896 Smith and Miller [1]
21897 \begin_inset Quotes erd
21898 \end_inset
21899
21900 )
21901 \end_layout
21902
21903 \begin_layout Standard
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 CiteEngine
21909 \end_layout
21910
21911 \end_inset
21912
21913  blocks look like this:
21914 \end_layout
21915
21916 \begin_layout LyX-Code
21917 CiteEngine default
21918 \end_layout
21919
21920 \begin_layout LyX-Code
21921  cite
21922 \end_layout
21923
21924 \begin_layout LyX-Code
21925  Citep*[][]
21926 \end_layout
21927
21928 \begin_layout LyX-Code
21929  citeyearpar[][]=parencite*
21930 \end_layout
21931
21932 \begin_layout LyX-Code
21933  ...
21934 \end_layout
21935
21936 \begin_layout LyX-Code
21937 End
21938 \end_layout
21939
21940 \begin_layout Standard
21941 The tag following 
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 CiteEngine
21947 \end_layout
21948
21949 \end_inset
21950
21951  denotes the engine.
21952  The individual lines respectively define a cite command or cite command
21953  paradigm supported by this engine.
21954  The line can be as simple as a cite command that is used both to name the
21955  respective \SpecialChar LyX
21956  command and the \SpecialChar LaTeX
21957  output or more complex in order to differentiate
21958  things.
21959  The full syntax is:
21960 \end_layout
21961
21962 \begin_layout LyX-Code
21963 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21964 \end_layout
21965
21966 \begin_layout Itemize
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971 LyXName
21972 \end_layout
21973
21974 \end_inset
21975
21976 : The name as used in the 
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 *.lyx
21982 \end_layout
21983
21984 \end_inset
21985
21986  file.
21987 \end_layout
21988
21989 \begin_deeper
21990 \begin_layout Standard
21991 For portability reasons, we try to use the same name for same-formatted
21992  commands in different cite packages (thus many names stem from natbib,
21993  and thus we need to differentiate a 
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 latexcmd
21999 \end_layout
22000
22001 \end_inset
22002
22003  sometimes, if the \SpecialChar LaTeX
22004  command names differ).
22005 \end_layout
22006
22007 \end_deeper
22008 \begin_layout Itemize
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 alias
22014 \end_layout
22015
22016 \end_inset
22017
22018 : a (comma-separated) list of commands that fall back to the given 
22019 \begin_inset Flex Code
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023 LyXName
22024 \end_layout
22025
22026 \end_inset
22027
22028  in the current engine.
22029  This eases the switch of citation packages and engines.
22030  The 
22031 \begin_inset Flex Code
22032 status collapsed
22033
22034 \begin_layout Plain Layout
22035 alias
22036 \end_layout
22037
22038 \end_inset
22039
22040  can be compared to 
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 ObsoletedBy
22046 \end_layout
22047
22048 \end_inset
22049
22050  in layout definitions.
22051 \end_layout
22052
22053 \begin_layout Itemize
22054 \begin_inset Flex Code
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058 latexcmd
22059 \end_layout
22060
22061 \end_inset
22062
22063 : The actual \SpecialChar LaTeX
22064  command that is output.
22065  
22066 \end_layout
22067
22068 \begin_layout Standard
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 Alias
22074 \end_layout
22075
22076 \end_inset
22077
22078  and 
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 latexcmd
22084 \end_layout
22085
22086 \end_inset
22087
22088  are optional.
22089  If no 
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 latexcmd
22095 \end_layout
22096
22097 \end_inset
22098
22099  is given, the 
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 LyXName
22105 \end_layout
22106
22107 \end_inset
22108
22109  will be output to \SpecialChar LaTeX
22110 .
22111 \end_layout
22112
22113 \begin_layout Standard
22114 Note further:
22115 \end_layout
22116
22117 \begin_layout Itemize
22118 Capitalization indicates that the command also has a capitalized form (
22119 \begin_inset Flex Code
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123
22124 \backslash
22125 Latexcmd
22126 \end_layout
22127
22128 \end_inset
22129
22130  vs.
22131  
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136
22137 \backslash
22138 latexcmd
22139 \end_layout
22140
22141 \end_inset
22142
22143 ).
22144  These usually enforce up-casing of name prefixes (
22145 \emph on
22146 von Goethe
22147 \emph default
22148  
22149 \begin_inset Formula $\Rightarrow$
22150 \end_inset
22151
22152  
22153 \emph on
22154 Von Goethe
22155 \emph default
22156 ).
22157 \end_layout
22158
22159 \begin_layout Itemize
22160 Brackets 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 []
22166 \end_layout
22167
22168 \end_inset
22169
22170  indicate the number of optional arguments (there can be 0–2).
22171 \end_layout
22172
22173 \begin_layout Itemize
22174 A star 
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 *
22180 \end_layout
22181
22182 \end_inset
22183
22184  indicates there is a starred version of the command (
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189
22190 \backslash
22191 latexcmd*
22192 \end_layout
22193
22194 \end_inset
22195
22196  vs.
22197  
22198 \begin_inset Flex Code
22199 status collapsed
22200
22201 \begin_layout Plain Layout
22202
22203 \backslash
22204 latexcmd
22205 \end_layout
22206
22207 \end_inset
22208
22209 ).
22210  
22211 \end_layout
22212
22213 \begin_deeper
22214 \begin_layout Standard
22215 By default, the starred version means: Output all authors even if it should
22216  be shortened with 
22217 \begin_inset Quotes eld
22218 \end_inset
22219
22220 et al.
22221 \begin_inset Quotes erd
22222 \end_inset
22223
22224  due to the 
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 MaxCiteNames
22230 \end_layout
22231
22232 \end_inset
22233
22234  threshold.
22235 \end_layout
22236
22237 \begin_layout Standard
22238 If the star has a different meaning for a given command, it can be specified
22239  in angle brackets: 
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 <!_stardesc!_stardesctooltip>
22245 \end_layout
22246
22247 \end_inset
22248
22249 .
22250  Maximal two translatable macro keywords, marked by the prefix 
22251 \begin_inset Flex Code
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255 !_
22256 \end_layout
22257
22258 \end_inset
22259
22260 , can be given.
22261  The first points to the string that replaces the 
22262 \begin_inset Quotes eld
22263 \end_inset
22264
22265 Full aut&hor list
22266 \begin_inset Quotes erd
22267 \end_inset
22268
22269  checkbox label in the citation dialog, the second one to an optional tool
22270  tip for this checkbox.
22271  
22272 \end_layout
22273
22274 \begin_layout Standard
22275 Note that these two macros have to be defined in a 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280 CiteFormat
22281 \end_layout
22282
22283 \end_inset
22284
22285  (see next section), dropping the 
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 !
22291 \end_layout
22292
22293 \end_inset
22294
22295  from the prefix, like this: 
22296 \end_layout
22297
22298 \begin_layout LyX-Code
22299 _stardesc Sta&rred command label
22300 \end_layout
22301
22302 \begin_layout LyX-Code
22303 _stardesctooltip Tooltip for the starred command checkbox.
22304 \end_layout
22305
22306 \end_deeper
22307 \begin_layout Itemize
22308 A dollar sign 
22309 \begin_inset Flex Code
22310 status collapsed
22311
22312 \begin_layout Plain Layout
22313 $
22314 \end_layout
22315
22316 \end_inset
22317
22318  indicates that this command features 
22319 \begin_inset Quotes eld
22320 \end_inset
22321
22322 qualified citation lists
22323 \begin_inset Quotes erd
22324 \end_inset
22325
22326 .
22327  This is a 
22328 \family sans
22329 Biblatex
22330 \family default
22331 -specific feature for multi-reference citations where an individual pre-
22332  and postnote can be given to each reference in the list.
22333  Please refer to the 
22334 \family sans
22335 Biblatex
22336 \family default
22337  manual for details.
22338 \change_inserted -712698321 1526898670
22339
22340 \end_layout
22341
22342 \begin_layout Standard
22343
22344 \change_inserted -712698321 1526899524
22345 If you want to add a cite command to a cite engine (e.
22346 \begin_inset space \thinspace{}
22347 \end_inset
22348
22349 g., add a specific command provided by a class), you can use 
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354
22355 \change_inserted -712698321 1526898768
22356 AddToCiteEngine <engine type> \SpecialChar ldots
22357  End
22358 \change_unchanged
22359
22360 \end_layout
22361
22362 \end_inset
22363
22364 .
22365  Note that only cite commands that do not exist yet are added.
22366 \change_unchanged
22367
22368 \end_layout
22369
22370 \begin_layout Subsection
22371 \begin_inset CommandInset label
22372 LatexCommand label
22373 name "subsec:Citation-format-description"
22374
22375 \end_inset
22376
22377 Cite format description
22378 \end_layout
22379
22380 \begin_layout Standard
22381 The 
22382 \begin_inset Flex Code
22383 status collapsed
22384
22385 \begin_layout Plain Layout
22386 CiteFormat
22387 \end_layout
22388
22389 \end_inset
22390
22391  blocks are used to describe how bibliographic information should be displayed,
22392  both within \SpecialChar LyX
22393  itself (in the citation dialog and in tooltips, for example)
22394  and in XHTML output.
22395  Such a block might look like this:
22396 \end_layout
22397
22398 \begin_layout LyX-Code
22399 CiteFormat
22400 \end_layout
22401
22402 \begin_layout LyX-Code
22403  article ...
22404 \end_layout
22405
22406 \begin_layout LyX-Code
22407  book ...
22408 \end_layout
22409
22410 \begin_layout LyX-Code
22411 End
22412 \end_layout
22413
22414 \begin_layout Standard
22415 or
22416 \end_layout
22417
22418 \begin_layout LyX-Code
22419 CiteFormat
22420 \end_layout
22421
22422 \begin_layout LyX-Code
22423  cite ...
22424 \end_layout
22425
22426 \begin_layout LyX-Code
22427  citet*[][] ...
22428 \end_layout
22429
22430 \begin_layout LyX-Code
22431 End
22432 \end_layout
22433
22434 \begin_layout Standard
22435 In the first case, the individual lines define how the bibliographic information
22436  associated with an article or book, respectively, is to be displayed, and
22437  such a definition can be given for any 
22438 \begin_inset Quotes els
22439 \end_inset
22440
22441 entry type
22442 \begin_inset Quotes ers
22443 \end_inset
22444
22445  that might be present in a Bib\SpecialChar TeX
22446  file.
22447  \SpecialChar LyX
22448  defines a default format in the source code that will be used if no specific
22449  definition has been given.
22450  \SpecialChar LyX
22451  predefines several formats in the file 
22452 \begin_inset Flex Code
22453 status collapsed
22454
22455 \begin_layout Plain Layout
22456 stdciteformats.inc
22457 \end_layout
22458
22459 \end_inset
22460
22461 , which is included in most of \SpecialChar LyX
22462 's document classes.
22463 \end_layout
22464
22465 \begin_layout Standard
22466 In the second case, the lines define how a specific citation command (in
22467  the example 
22468 \begin_inset Flex Code
22469 status collapsed
22470
22471 \begin_layout Plain Layout
22472
22473 \backslash
22474 cite
22475 \end_layout
22476
22477 \end_inset
22478
22479
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484
22485 \backslash
22486 citet
22487 \end_layout
22488
22489 \end_inset
22490
22491 ) is to be displayed on the citation inset label, in the citation dialog,
22492  menu or XHTML output.
22493  \SpecialChar LyX
22494  defines such formats for the citation style variants it supports via 
22495 \family sans
22496 Document\SpecialChar menuseparator
22497 Setting\SpecialChar menuseparator
22498 Bibliography\SpecialChar ldots
22499
22500 \family default
22501  in specific 
22502 \begin_inset Flex Code
22503 status collapsed
22504
22505 \begin_layout Plain Layout
22506 *.citeengine
22507 \end_layout
22508
22509 \end_inset
22510
22511  files that are shipped with \SpecialChar LyX
22512  (see 
22513 \begin_inset CommandInset ref
22514 LatexCommand ref
22515 reference "subsec:Cite-Engine-Files"
22516 plural "false"
22517 caps "false"
22518 noprefix "false"
22519
22520 \end_inset
22521
22522 ).
22523 \end_layout
22524
22525 \begin_layout Standard
22526 The definitions use a simple language that allows Bib\SpecialChar TeX
22527  keys to be replaced
22528  with their values.
22529  Keys should be enclosed in 
22530 \begin_inset Flex Code
22531 status collapsed
22532
22533 \begin_layout Plain Layout
22534 %
22535 \end_layout
22536
22537 \end_inset
22538
22539  signs, e.g.: 
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 %author%
22545 \end_layout
22546
22547 \end_inset
22548
22549 .
22550  So a simple definition might look like this:
22551 \end_layout
22552
22553 \begin_layout LyX-Code
22554 misc %author%, 
22555 \begin_inset Quotes eld
22556 \end_inset
22557
22558 %title%
22559 \begin_inset Quotes erd
22560 \end_inset
22561
22562 .
22563 \end_layout
22564
22565 \begin_layout Standard
22566 This would print the author, followed by a comma, followed by the title,
22567  in quotes, followed by a period.
22568 \end_layout
22569
22570 \begin_layout Standard
22571 Of course, sometimes you may want to print a key only if it exists.
22572  This can be done by using a conditional construction, such as: 
22573 \begin_inset Flex Code
22574 status collapsed
22575
22576 \begin_layout Plain Layout
22577 {%volume%[[vol.
22578 \begin_inset space ~
22579 \end_inset
22580
22581 %volume%]]}
22582 \end_layout
22583
22584 \end_inset
22585
22586 .
22587  This says: If the 
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 volume
22593 \end_layout
22594
22595 \end_inset
22596
22597  key exists, then print 
22598 \begin_inset Quotes eld
22599 \end_inset
22600
22601 vol.
22602 \begin_inset space ~
22603 \end_inset
22604
22605
22606 \begin_inset Quotes erd
22607 \end_inset
22608
22609  followed by the volume key.
22610  It is also possible to have an else clause in the conditional, such as:
22611 \begin_inset Newline newline
22612 \end_inset
22613
22614
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 {%author%[[%author%]][[%editor%, ed.]]}
22620 \end_layout
22621
22622 \end_inset
22623
22624 .
22625 \begin_inset Newline newline
22626 \end_inset
22627
22628 Here, the 
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633 author
22634 \end_layout
22635
22636 \end_inset
22637
22638  key is printed if it exists; otherwise, the editor key is printed, followed
22639  by 
22640 \begin_inset Quotes eld
22641 \end_inset
22642
22643 ,
22644 \begin_inset space ~
22645 \end_inset
22646
22647 ed.
22648 \begin_inset Quotes erd
22649 \end_inset
22650
22651  Note that the key is again enclosed in 
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 %
22657 \end_layout
22658
22659 \end_inset
22660
22661  signs; the entire conditional is enclosed in braces; and the if and else
22662  clauses are enclosed in double brackets, 
22663 \begin_inset Quotes eld
22664 \end_inset
22665
22666
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671 [[
22672 \end_layout
22673
22674 \end_inset
22675
22676
22677 \begin_inset Quotes eld
22678 \end_inset
22679
22680  and 
22681 \begin_inset Quotes eld
22682 \end_inset
22683
22684
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 ]]
22690 \end_layout
22691
22692 \end_inset
22693
22694
22695 \begin_inset Quotes erd
22696 \end_inset
22697
22698 .
22699  There must be no space between any of these.
22700 \end_layout
22701
22702 \begin_layout Standard
22703 Next to the entry keys, there are some special keys that can be used for
22704  these conditionals:
22705 \end_layout
22706
22707 \begin_layout Itemize
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 {%dialog%[[true]][[false]]}
22713 \end_layout
22714
22715 \end_inset
22716
22717 : process the 
22718 \begin_inset Quotes eld
22719 \end_inset
22720
22721 true
22722 \begin_inset Quotes erd
22723 \end_inset
22724
22725  part for dialogs and menus, the 
22726 \begin_inset Quotes eld
22727 \end_inset
22728
22729 false
22730 \begin_inset Quotes erd
22731 \end_inset
22732
22733  part for other contexts (workarea, export)
22734 \end_layout
22735
22736 \begin_layout Itemize
22737 \begin_inset Flex Code
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741 {%export%[[true]][[false]]}
22742 \end_layout
22743
22744 \end_inset
22745
22746 : process the 
22747 \begin_inset Quotes eld
22748 \end_inset
22749
22750 true
22751 \begin_inset Quotes erd
22752 \end_inset
22753
22754  part for export and menus, the 
22755 \begin_inset Quotes eld
22756 \end_inset
22757
22758 false
22759 \begin_inset Quotes erd
22760 \end_inset
22761
22762  part for other contexts (workarea, dialog)
22763 \end_layout
22764
22765 \begin_layout Itemize
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 {%next%[[true]]}
22771 \end_layout
22772
22773 \end_inset
22774
22775 : process the 
22776 \begin_inset Quotes eld
22777 \end_inset
22778
22779 true
22780 \begin_inset Quotes erd
22781 \end_inset
22782
22783  part if another item follows (e.
22784 \begin_inset space \thinspace{}
22785 \end_inset
22786
22787 g., in a citation with multiple keys)
22788 \end_layout
22789
22790 \begin_layout Itemize
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 {%second%[[true]][[false]]}
22796 \end_layout
22797
22798 \end_inset
22799
22800 : process the 
22801 \begin_inset Quotes eld
22802 \end_inset
22803
22804 true
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808  if this is the second of multiple items, else the 
22809 \begin_inset Quotes eld
22810 \end_inset
22811
22812 false
22813 \begin_inset Quotes erd
22814 \end_inset
22815
22816  part
22817 \end_layout
22818
22819 \begin_layout Itemize
22820 \begin_inset Flex Code
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824 {%ifstar%[[true]][[false]]}
22825 \end_layout
22826
22827 \end_inset
22828
22829 : process the 
22830 \begin_inset Quotes eld
22831 \end_inset
22832
22833 true
22834 \begin_inset Quotes erd
22835 \end_inset
22836
22837  part for starred citation commands (such as 
22838 \begin_inset Flex Code
22839 status collapsed
22840
22841 \begin_layout Plain Layout
22842
22843 \backslash
22844 cite*
22845 \end_layout
22846
22847 \end_inset
22848
22849 ), the false part for unstarred
22850 \end_layout
22851
22852 \begin_layout Itemize
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 {%ifentrytype:<type>%[[true]][[false]]}
22858 \end_layout
22859
22860 \end_inset
22861
22862 : process the 
22863 \begin_inset Quotes eld
22864 \end_inset
22865
22866 true
22867 \begin_inset Quotes erd
22868 \end_inset
22869
22870  if the current entry type matches 
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 <type>
22876 \end_layout
22877
22878 \end_inset
22879
22880 , else the false part (e.g., in a citation definition: 
22881 \begin_inset Flex Code
22882 status collapsed
22883
22884 \begin_layout Plain Layout
22885 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22886 \end_layout
22887
22888 \end_inset
22889
22890 )
22891 \end_layout
22892
22893 \begin_layout Itemize
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 {%ifmultiple:<authortype>%[[true]][[false]]}
22899 \end_layout
22900
22901 \end_inset
22902
22903 : process the 
22904 \begin_inset Quotes eld
22905 \end_inset
22906
22907 true
22908 \begin_inset Quotes erd
22909 \end_inset
22910
22911  if the current author type (author, editor etc.) has multiple authors, else
22912  the false part (e.g., in a bibliography definition: 
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 {%ifmultiple:editor%[[eds.]][[ed.]]}
22918 \end_layout
22919
22920 \end_inset
22921
22922 )
22923 \end_layout
22924
22925 \begin_layout Itemize
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 {%ifqualified%[[true]][[false]]}
22931 \end_layout
22932
22933 \end_inset
22934
22935 : process the 
22936 \begin_inset Quotes eld
22937 \end_inset
22938
22939 true
22940 \begin_inset Quotes erd
22941 \end_inset
22942
22943  part if the current citation is a qualified citation list (a specific 
22944 \family sans
22945 Biblatex
22946 \family default
22947  format for multi-reference citations), the false part if this is not the
22948  case.
22949 \end_layout
22950
22951 \begin_layout Standard
22952 We said that 
22953 \begin_inset Flex Code
22954 status collapsed
22955
22956 \begin_layout Plain Layout
22957 %author%
22958 \end_layout
22959
22960 \end_inset
22961
22962  prints the author key as it is recorded in the bibliography file.
22963  This might not be what you want, since it will result in a string such
22964  as 
22965 \begin_inset Quotes eld
22966 \end_inset
22967
22968 Miller, Peter and Smith, Mary and White, Jane
22969 \begin_inset Quotes erd
22970 \end_inset
22971
22972  (since 
22973 \begin_inset Quotes eld
22974 \end_inset
22975
22976 and
22977 \begin_inset Quotes erd
22978 \end_inset
22979
22980  is used by Bib\SpecialChar TeX
22981  to delimit authors).
22982  \SpecialChar LyX
22983  therefore provides some methods to get properly formatted name lists (which
22984  will also get translated).
22985  The following keys are provided:
22986 \end_layout
22987
22988 \begin_layout Enumerate
22989 For name lists with pre- and surname, suitable for the main authors/editors
22990  of a bibliography item.
22991  The 
22992 \begin_inset Flex Code
22993 status collapsed
22994
22995 \begin_layout Plain Layout
22996 <nametype>
22997 \end_layout
22998
22999 \end_inset
23000
23001  part denotes the kind of list that is requested (e.g.
23002  
23003 \begin_inset Flex Code
23004 status collapsed
23005
23006 \begin_layout Plain Layout
23007 <nametype:author>
23008 \end_layout
23009
23010 \end_inset
23011
23012 ):
23013 \end_layout
23014
23015 \begin_deeper
23016 \begin_layout Itemize
23017 \begin_inset Flex Code
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 %abbrvnames:<nametype>%
23022 \end_layout
23023
23024 \end_inset
23025
23026 : Provides a name list which is abbreviated (with 
23027 \begin_inset Quotes eld
23028 \end_inset
23029
23030 et al.
23031 \begin_inset Quotes erd
23032 \end_inset
23033
23034 ) when 
23035 \begin_inset Flex Code
23036 status collapsed
23037
23038 \begin_layout Plain Layout
23039 MaxCiteNames
23040 \end_layout
23041
23042 \end_inset
23043
23044  is reached.
23045 \end_layout
23046
23047 \begin_layout Itemize
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 %fullnames:<nametype>%
23053 \end_layout
23054
23055 \end_inset
23056
23057 : Provides a full name list (never abbreviated with 
23058 \begin_inset Quotes eld
23059 \end_inset
23060
23061 et al.
23062 \begin_inset Quotes erd
23063 \end_inset
23064
23065 ).
23066 \end_layout
23067
23068 \begin_layout Itemize
23069 \begin_inset Flex Code
23070 status collapsed
23071
23072 \begin_layout Plain Layout
23073 %forceabbrvnames:<nametype>%
23074 \end_layout
23075
23076 \end_inset
23077
23078 : Provides a name list which is always abbreviated (with 
23079 \begin_inset Quotes eld
23080 \end_inset
23081
23082 et al.
23083 \begin_inset Quotes erd
23084 \end_inset
23085
23086 ) irrespective of 
23087 \begin_inset Flex Code
23088 status collapsed
23089
23090 \begin_layout Plain Layout
23091 MaxCiteNames
23092 \end_layout
23093
23094 \end_inset
23095
23096 .
23097 \end_layout
23098
23099 \end_deeper
23100 \begin_layout Enumerate
23101 Alternative name lists with pre- and surname, if the order of pre- and surname
23102  inside the bibliography item differs (as in: 
23103 \begin_inset Quotes eld
23104 \end_inset
23105
23106 Miller, John: Some text, in: Mary Smith, ed.: A volume
23107 \begin_inset Quotes erd
23108 \end_inset
23109
23110 ):
23111 \end_layout
23112
23113 \begin_deeper
23114 \begin_layout Itemize
23115 \begin_inset Flex Code
23116 status collapsed
23117
23118 \begin_layout Plain Layout
23119 %abbrvbynames:<nametype>%
23120 \end_layout
23121
23122 \end_inset
23123
23124 : Provides a name list which is abbreviated (with 
23125 \begin_inset Quotes eld
23126 \end_inset
23127
23128 et al.
23129 \begin_inset Quotes erd
23130 \end_inset
23131
23132 ) when 
23133 \begin_inset Flex Code
23134 status collapsed
23135
23136 \begin_layout Plain Layout
23137 MaxCiteNames
23138 \end_layout
23139
23140 \end_inset
23141
23142  is reached.
23143 \end_layout
23144
23145 \begin_layout Itemize
23146 \begin_inset Flex Code
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150 %fullbynames:<nametype>%
23151 \end_layout
23152
23153 \end_inset
23154
23155 : Provides a full name list (never abbreviated with 
23156 \begin_inset Quotes eld
23157 \end_inset
23158
23159 et al.
23160 \begin_inset Quotes erd
23161 \end_inset
23162
23163 ).
23164 \end_layout
23165
23166 \begin_layout Itemize
23167 \begin_inset Flex Code
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171 %forceabbrvbynames:<nametype>%
23172 \end_layout
23173
23174 \end_inset
23175
23176 : Provides a name list which is always abbreviated (with 
23177 \begin_inset Quotes eld
23178 \end_inset
23179
23180 et al.
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184 ) irrespective of 
23185 \begin_inset Flex Code
23186 status collapsed
23187
23188 \begin_layout Plain Layout
23189 MaxCiteNames
23190 \end_layout
23191
23192 \end_inset
23193
23194 .
23195 \end_layout
23196
23197 \end_deeper
23198 \begin_layout Enumerate
23199 And finally name lists which consist of family names only, as used in author-yea
23200 r citation labels.
23201  These do not take a 
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 <nametype>
23207 \end_layout
23208
23209 \end_inset
23210
23211  part, but always return either an author list or, if this does not exist,
23212  an editor list (as common in author-year labels):
23213 \end_layout
23214
23215 \begin_deeper
23216 \begin_layout Itemize
23217 \begin_inset Flex Code
23218 status collapsed
23219
23220 \begin_layout Plain Layout
23221 %abbrvciteauthor%
23222 \end_layout
23223
23224 \end_inset
23225
23226 : Provides a name list which is abbreviated (with 
23227 \begin_inset Quotes eld
23228 \end_inset
23229
23230 et al.
23231 \begin_inset Quotes erd
23232 \end_inset
23233
23234 ) when 
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239 MaxCiteNames
23240 \end_layout
23241
23242 \end_inset
23243
23244  is reached.
23245 \end_layout
23246
23247 \begin_layout Itemize
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252 %fullciteauthor%
23253 \end_layout
23254
23255 \end_inset
23256
23257 : Provides a full name list (never abbreviated with 
23258 \begin_inset Quotes eld
23259 \end_inset
23260
23261 et al.
23262 \begin_inset Quotes erd
23263 \end_inset
23264
23265 ).
23266 \end_layout
23267
23268 \begin_layout Itemize
23269 \begin_inset Flex Code
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 %forceabbrvciteauthor%
23274 \end_layout
23275
23276 \end_inset
23277
23278 : Provides a name list which is always abbreviated (with 
23279 \begin_inset Quotes eld
23280 \end_inset
23281
23282 et al.
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 ) irrespective of 
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 .
23297 \end_layout
23298
23299 \end_deeper
23300 \begin_layout Standard
23301 The order of pre- and surname in the former two lists can be adjusted by
23302  these macros:
23303 \end_layout
23304
23305 \begin_layout Itemize
23306 \begin_inset Flex Code
23307 status collapsed
23308
23309 \begin_layout Plain Layout
23310 !firstnameform %surname%, %prename%
23311 \end_layout
23312
23313 \end_inset
23314
23315  (first author in lists of type 1)
23316 \end_layout
23317
23318 \begin_layout Itemize
23319 \begin_inset Flex Code
23320 status collapsed
23321
23322 \begin_layout Plain Layout
23323 !othernameform %surname%, %prename%
23324 \end_layout
23325
23326 \end_inset
23327
23328  (other authors in lists of type 1)
23329 \end_layout
23330
23331 \begin_layout Itemize
23332 \begin_inset Flex Code
23333 status collapsed
23334
23335 \begin_layout Plain Layout
23336 !firstbynameform %prename% %surname%
23337 \end_layout
23338
23339 \end_inset
23340
23341  (first author in lists of type 2)
23342 \end_layout
23343
23344 \begin_layout Itemize
23345 \begin_inset Flex Code
23346 status collapsed
23347
23348 \begin_layout Plain Layout
23349 !otherbynameform %prename% %surname%
23350 \end_layout
23351
23352 \end_inset
23353
23354  (other authors in lists of type 2)
23355 \end_layout
23356
23357 \begin_layout Standard
23358 This allows you to configure namings like 
23359 \begin_inset Quotes eld
23360 \end_inset
23361
23362 Miller, Peter and Mary Smith: \SpecialChar ldots
23363 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23364
23365 \begin_inset Quotes erd
23366 \end_inset
23367
23368 .
23369 \end_layout
23370
23371 \begin_layout Standard
23372 There is one other piece of syntax available in definitions, which looks
23373  like this: 
23374 \begin_inset Flex Code
23375 status collapsed
23376
23377 \begin_layout Plain Layout
23378 {!<i>!}
23379 \end_layout
23380
23381 \end_inset
23382
23383 .
23384  This defines a piece of formatting information that is to be used when
23385  creating 
23386 \begin_inset Quotes eld
23387 \end_inset
23388
23389 rich text
23390 \begin_inset Quotes erd
23391 \end_inset
23392
23393 .
23394  Obviously, we do not want to output HTML tags when writing plain text,
23395  so they should be wrapped in 
23396 \begin_inset Quotes eld
23397 \end_inset
23398
23399 {!
23400 \begin_inset Quotes erd
23401 \end_inset
23402
23403  and 
23404 \begin_inset Quotes eld
23405 \end_inset
23406
23407 !}
23408 \begin_inset Quotes erd
23409 \end_inset
23410
23411 .
23412 \end_layout
23413
23414 \begin_layout Standard
23415 Two special sorts of definitions are also possible in a 
23416 \begin_inset Flex Code
23417 status collapsed
23418
23419 \begin_layout Plain Layout
23420 CiteFormat
23421 \end_layout
23422
23423 \end_inset
23424
23425  block.
23426  An example of the first would be:
23427 \end_layout
23428
23429 \begin_layout LyX-Code
23430 !quotetitle 
23431 \begin_inset Quotes eld
23432 \end_inset
23433
23434 %title%
23435 \begin_inset Quotes erd
23436 \end_inset
23437
23438
23439 \end_layout
23440
23441 \begin_layout Standard
23442 This is an abbreviation, or macro, and it can be used by treating it as
23443  if it were a key: 
23444 \begin_inset Flex Code
23445 status collapsed
23446
23447 \begin_layout Plain Layout
23448 %!quotetitle%
23449 \end_layout
23450
23451 \end_inset
23452
23453 .
23454  \SpecialChar LyX
23455  will treat 
23456 \begin_inset Flex Code
23457 status collapsed
23458
23459 \begin_layout Plain Layout
23460 %!quotetitle%
23461 \end_layout
23462
23463 \end_inset
23464
23465  exactly as it would treat its definition.
23466  So, let us issue the obvious 
23467 \emph on
23468 warning
23469 \emph default
23470 .
23471  Do not do this:
23472 \end_layout
23473
23474 \begin_layout LyX-Code
23475 !funfun %funfun%
23476 \end_layout
23477
23478 \begin_layout Standard
23479 or anything like it.
23480  \SpecialChar LyX
23481  shouldn't go into an infinite loop, but it may go into a long one before
23482  it gives up.
23483 \end_layout
23484
23485 \begin_layout Standard
23486 The second sort of special definition might look like this:
23487 \end_layout
23488
23489 \begin_layout LyX-Code
23490 B_pptext pp.
23491 \end_layout
23492
23493 \begin_layout Standard
23494 This defines a translatable piece of text, which allows relevant parts of
23495  the bibliography or citation to be translated.
23496  It can be included in a definition by treating it as a key: 
23497 \begin_inset Flex Code
23498 status collapsed
23499
23500 \begin_layout Plain Layout
23501 %B_pptext%
23502 \end_layout
23503
23504 \end_inset
23505
23506 .
23507  Note that there are two different translation paths: All definitions starting
23508  with 
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513 B_
23514 \end_layout
23515
23516 \end_inset
23517
23518 , such as in the example above, will be translated to the currently active
23519  buffer language (so the translation will match the generated document).
23520  All definitions starting with underscore only will be translated to the
23521  GUI language.
23522  This is the proper translation for strings that only occur in the dialogs
23523  or on buttons, such as this one:
23524 \end_layout
23525
23526 \begin_layout LyX-Code
23527 _addtobib Add to bibliography only.
23528 \end_layout
23529
23530 \begin_layout Standard
23531 Several of these translatable strings are predefined in 
23532 \begin_inset Flex Code
23533 status collapsed
23534
23535 \begin_layout Plain Layout
23536 stdciteformats.inc
23537 \end_layout
23538
23539 \end_inset
23540
23541  and the diverse 
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 *.citeengine
23547 \end_layout
23548
23549 \end_inset
23550
23551  files.
23552  Note that these are not macros, in the sense just defined.
23553  They will not be expanded.
23554 \end_layout
23555
23556 \begin_layout Standard
23557 So here then is an example that uses several of these features:
23558 \begin_inset VSpace defskip
23559 \end_inset
23560
23561
23562 \end_layout
23563
23564 \begin_layout Standard
23565 \noindent
23566
23567 \family sans
23568 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23569 \end_layout
23570
23571 \begin_layout Standard
23572 \begin_inset VSpace defskip
23573 \end_inset
23574
23575 This defines a macro that prints the author, followed by a comma, if the
23576  
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 author
23582 \end_layout
23583
23584 \end_inset
23585
23586  key is defined, or else prints the name of the editor, followed by the
23587  
23588 \begin_inset Flex Code
23589 status collapsed
23590
23591 \begin_layout Plain Layout
23592 B_edtext
23593 \end_layout
23594
23595 \end_inset
23596
23597  or its translation (it is by default 
23598 \begin_inset Quotes eld
23599 \end_inset
23600
23601 ed.
23602 \begin_inset Quotes erd
23603 \end_inset
23604
23605 ), if the 
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 editor
23611 \end_layout
23612
23613 \end_inset
23614
23615  key is defined.
23616  Note that this is in fact defined in 
23617 \begin_inset Flex Code
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621 stdciteformats.inc
23622 \end_layout
23623
23624 \end_inset
23625
23626 , so you can use it in your own definitions, or re-definitions, if you load
23627  that file first.
23628 \end_layout
23629
23630 \begin_layout Section
23631 \begin_inset CommandInset label
23632 LatexCommand label
23633 name "sec:Tags-for-XHTML"
23634
23635 \end_inset
23636
23637 Tags for XHTML output
23638 \end_layout
23639
23640 \begin_layout Standard
23641 As with \SpecialChar LaTeX
23642  or DocBook, the format of \SpecialChar LyX
23643 's XHTML output is also controlled by
23644  layout information.
23645  In general, \SpecialChar LyX
23646  provides sensible defaults and, as mentioned earlier, it will
23647  even construct default CSS style rules from the other layout tags.
23648  For example, \SpecialChar LyX
23649  will attempt to use the information provided in the 
23650 \begin_inset Flex Code
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654 Font
23655 \end_layout
23656
23657 \end_inset
23658
23659  declaration for the Chapter style to write CSS that will appropriately
23660  format chapter headings.
23661 \end_layout
23662
23663 \begin_layout Standard
23664 In many cases, then, you may not have to do anything at all to get acceptable
23665  XHTML output for your own environments, custom insets, and so forth.
23666  But in some cases you will, and so \SpecialChar LyX
23667  provides a number of layout tags that
23668  can be used to customize the XHTML and CSS that are generated.
23669 \end_layout
23670
23671 \begin_layout Standard
23672 Note that there are two tags, 
23673 \begin_inset Flex Code
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677 HTMLPreamble
23678 \end_layout
23679
23680 \end_inset
23681
23682  and 
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 AddToHTMLPreamble
23688 \end_layout
23689
23690 \end_inset
23691
23692  that may appear outside style and inset declarations.
23693  See 
23694 \begin_inset CommandInset ref
23695 LatexCommand ref
23696 reference "subsec:General-text-class"
23697
23698 \end_inset
23699
23700  for details on these.
23701 \end_layout
23702
23703 \begin_layout Subsection
23704 \begin_inset CommandInset label
23705 LatexCommand label
23706 name "subsec:Paragraph-Style-XHTML"
23707
23708 \end_inset
23709
23710 Paragraph styles
23711 \end_layout
23712
23713 \begin_layout Standard
23714 The sort of XHTML \SpecialChar LyX
23715  outputs for a paragraph depends upon whether we are dealing
23716  with a normal paragraph, a command, or an environment, where this is itself
23717  determined by the contents of the corresponding 
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 \SpecialChar LaTeX
23723 Type
23724 \end_layout
23725
23726 \end_inset
23727
23728  tag.
23729  
23730 \end_layout
23731
23732 \begin_layout Standard
23733 For a command or normal paragraph, the output XHTML has the following form:
23734 \end_layout
23735
23736 \begin_layout LyX-Code
23737
23738 \family sans
23739 <tag attr=
23740 \begin_inset Quotes erd
23741 \end_inset
23742
23743 value
23744 \begin_inset Quotes erd
23745 \end_inset
23746
23747 >
23748 \end_layout
23749
23750 \begin_layout LyX-Code
23751
23752 \family sans
23753 <labeltag attr=
23754 \begin_inset Quotes erd
23755 \end_inset
23756
23757 value
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761 >Label</labeltag>
23762 \end_layout
23763
23764 \begin_layout LyX-Code
23765
23766 \family sans
23767 Contents of the paragraph.
23768 \end_layout
23769
23770 \begin_layout LyX-Code
23771
23772 \family sans
23773 </tag>
23774 \end_layout
23775
23776 \begin_layout Standard
23777 The label tags are of course omitted if the paragraph does not have a label.
23778 \end_layout
23779
23780 \begin_layout Standard
23781 For an environment that is not some sort of list, the XHTML takes this form:
23782 \end_layout
23783
23784 \begin_layout LyX-Code
23785
23786 \family sans
23787 <tag attr=
23788 \begin_inset Quotes erd
23789 \end_inset
23790
23791 value
23792 \begin_inset Quotes erd
23793 \end_inset
23794
23795 >
23796 \end_layout
23797
23798 \begin_layout LyX-Code
23799
23800 \family sans
23801 <itemtag attr=
23802 \begin_inset Quotes erd
23803 \end_inset
23804
23805 value
23806 \begin_inset Quotes erd
23807 \end_inset
23808
23809 ><labeltag attr=
23810 \begin_inset Quotes erd
23811 \end_inset
23812
23813 value
23814 \begin_inset Quotes erd
23815 \end_inset
23816
23817 >Environment Label</labeltag>First paragraph.</itemtag>
23818 \end_layout
23819
23820 \begin_layout LyX-Code
23821
23822 \family sans
23823 <itemtag>Second paragraph.</itemtag>
23824 \end_layout
23825
23826 \begin_layout LyX-Code
23827
23828 \family sans
23829 </tag>
23830 \end_layout
23831
23832 \begin_layout Standard
23833 Note that the label is output only for the first paragraph, as it should
23834  be for a theorem, for example.
23835  
23836 \end_layout
23837
23838 \begin_layout Standard
23839 For a list, we have one of these forms:
23840 \end_layout
23841
23842 \begin_layout LyX-Code
23843
23844 \family sans
23845 <tag attr=
23846 \begin_inset Quotes erd
23847 \end_inset
23848
23849 value
23850 \begin_inset Quotes erd
23851 \end_inset
23852
23853 >
23854 \end_layout
23855
23856 \begin_layout LyX-Code
23857
23858 \family sans
23859 <itemtag attr=
23860 \begin_inset Quotes erd
23861 \end_inset
23862
23863 value
23864 \begin_inset Quotes erd
23865 \end_inset
23866
23867 ><labeltag attr=
23868 \begin_inset Quotes erd
23869 \end_inset
23870
23871 value
23872 \begin_inset Quotes erd
23873 \end_inset
23874
23875 >List Label</labeltag>First item.</itemtag>
23876 \end_layout
23877
23878 \begin_layout LyX-Code
23879
23880 \family sans
23881 <itemtag attr=
23882 \begin_inset Quotes erd
23883 \end_inset
23884
23885 value
23886 \begin_inset Quotes erd
23887 \end_inset
23888
23889 ><labeltag attr=
23890 \begin_inset Quotes erd
23891 \end_inset
23892
23893 value
23894 \begin_inset Quotes erd
23895 \end_inset
23896
23897 >List Label</labeltag>Second item.</itemtag>
23898 \end_layout
23899
23900 \begin_layout LyX-Code
23901
23902 \family sans
23903 </tag>
23904 \end_layout
23905
23906 \begin_layout LyX-Code
23907
23908 \end_layout
23909
23910 \begin_layout LyX-Code
23911
23912 \family sans
23913 <tag attr=
23914 \begin_inset Quotes erd
23915 \end_inset
23916
23917 value
23918 \begin_inset Quotes erd
23919 \end_inset
23920
23921 >
23922 \end_layout
23923
23924 \begin_layout LyX-Code
23925
23926 \family sans
23927 <labeltag attr=
23928 \begin_inset Quotes erd
23929 \end_inset
23930
23931 value
23932 \begin_inset Quotes erd
23933 \end_inset
23934
23935 >List Label</labeltag><itemtag attr=
23936 \begin_inset Quotes erd
23937 \end_inset
23938
23939 value
23940 \begin_inset Quotes erd
23941 \end_inset
23942
23943 >First item.</itemtag>
23944 \end_layout
23945
23946 \begin_layout LyX-Code
23947
23948 \family sans
23949 <labeltag attr=
23950 \begin_inset Quotes erd
23951 \end_inset
23952
23953 value
23954 \begin_inset Quotes erd
23955 \end_inset
23956
23957 >List Label</labeltag><itemtag attr=
23958 \begin_inset Quotes erd
23959 \end_inset
23960
23961 value
23962 \begin_inset Quotes erd
23963 \end_inset
23964
23965 >Second item.</itemtag>
23966 \end_layout
23967
23968 \begin_layout LyX-Code
23969
23970 \family sans
23971 </tag>
23972 \end_layout
23973
23974 \begin_layout Standard
23975 Note the different orders of 
23976 \begin_inset Flex Code
23977 status collapsed
23978
23979 \begin_layout Plain Layout
23980 labeltag
23981 \end_layout
23982
23983 \end_inset
23984
23985  and 
23986 \begin_inset Flex Code
23987 status collapsed
23988
23989 \begin_layout Plain Layout
23990 itemtag
23991 \end_layout
23992
23993 \end_inset
23994
23995 .
23996  Which order we get depends upon the setting of 
23997 \begin_inset Flex Code
23998 status collapsed
23999
24000 \begin_layout Plain Layout
24001 HTMLLabelFirst
24002 \end_layout
24003
24004 \end_inset
24005
24006 : If 
24007 \begin_inset Flex Code
24008 status collapsed
24009
24010 \begin_layout Plain Layout
24011 HTMLLabelFirst
24012 \end_layout
24013
24014 \end_inset
24015
24016  is false (the default), you get the first of these, with the label within
24017  the item; if true, you get the second, with the label outside the item.
24018 \end_layout
24019
24020 \begin_layout Standard
24021 The specific tags and attributes output for each paragraph type can be controlle
24022 d by means of the layout tags we are about to describe.
24023  As mentioned earlier, however, \SpecialChar LyX
24024  uses sensible defaults for many of these,
24025  so you often may not need to do very much to get good XHTML output.
24026  Think of the available tags as there so you can tweak things to your liking.
24027 \end_layout
24028
24029 \begin_layout Description
24030 \begin_inset Flex Code
24031 status collapsed
24032
24033 \begin_layout Plain Layout
24034 HTMLAttr
24035 \end_layout
24036
24037 \end_inset
24038
24039  [
24040 \begin_inset Flex Code
24041 status collapsed
24042
24043 \begin_layout Plain Layout
24044 string
24045 \end_layout
24046
24047 \end_inset
24048
24049 ] Specifies attribute information to be output with the main tag.
24050  For example, 
24051 \begin_inset Quotes eld
24052 \end_inset
24053
24054
24055 \begin_inset Flex Code
24056 status collapsed
24057
24058 \begin_layout Plain Layout
24059 class=`mydiv'
24060 \end_layout
24061
24062 \end_inset
24063
24064
24065 \begin_inset Quotes erd
24066 \end_inset
24067
24068 .
24069  By default, \SpecialChar LyX
24070  will output 
24071 \begin_inset Quotes eld
24072 \end_inset
24073
24074
24075 \begin_inset Flex Code
24076 status collapsed
24077
24078 \begin_layout Plain Layout
24079 class=`layoutname'
24080 \end_layout
24081
24082 \end_inset
24083
24084
24085 \begin_inset Quotes erd
24086 \end_inset
24087
24088 , where 
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 layoutname
24094 \end_layout
24095
24096 \end_inset
24097
24098  is the \SpecialChar LyX
24099  name of the layout, made lowercase, for example: chapter.
24100  This should 
24101 \emph on
24102 not
24103 \emph default
24104  contain any style information.
24105  Use 
24106 \begin_inset Flex Code
24107 status collapsed
24108
24109 \begin_layout Plain Layout
24110 HTMLStyle
24111 \end_layout
24112
24113 \end_inset
24114
24115  for that purpose.
24116 \end_layout
24117
24118 \begin_layout Description
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 HTMLForceCSS
24124 \end_layout
24125
24126 \end_inset
24127
24128  [
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133
24134 \emph on
24135 0
24136 \emph default
24137 ,1
24138 \end_layout
24139
24140 \end_inset
24141
24142 ] Whether to output the default CSS information \SpecialChar LyX
24143  generates for this layout,
24144  even if additional information is explicitly provided via 
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 HTMLStyle
24150 \end_layout
24151
24152 \end_inset
24153
24154 .
24155  Setting this to 
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 1
24161 \end_layout
24162
24163 \end_inset
24164
24165  allows you to alter or augment the generated CSS, rather than to override
24166  it completely.
24167  Default is 
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 0
24173 \end_layout
24174
24175 \end_inset
24176
24177 .
24178 \end_layout
24179
24180 \begin_layout Description
24181 \begin_inset Flex Code
24182 status collapsed
24183
24184 \begin_layout Plain Layout
24185 HTMLItem
24186 \end_layout
24187
24188 \end_inset
24189
24190  [
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 string
24196 \end_layout
24197
24198 \end_inset
24199
24200 ] The tag to be used for individual paragraphs of environments, replacing
24201  
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 itemtag
24207 \end_layout
24208
24209 \end_inset
24210
24211  in the examples above.
24212  Defaults to 
24213 \begin_inset Flex Code
24214 status collapsed
24215
24216 \begin_layout Plain Layout
24217 div
24218 \end_layout
24219
24220 \end_inset
24221
24222 .
24223 \end_layout
24224
24225 \begin_layout Description
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 HTMLItemAttr
24231 \end_layout
24232
24233 \end_inset
24234
24235  [
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 string
24241 \end_layout
24242
24243 \end_inset
24244
24245 ] Attributes for the item tag.
24246  Defaults to
24247 \begin_inset Newline newline
24248 \end_inset
24249
24250
24251 \begin_inset Quotes eld
24252 \end_inset
24253
24254
24255 \begin_inset Flex Code
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259 class=`layoutname_item'
24260 \end_layout
24261
24262 \end_inset
24263
24264
24265 \begin_inset Quotes erd
24266 \end_inset
24267
24268 .
24269  This should 
24270 \emph on
24271 not
24272 \emph default
24273  contain any style information.
24274  Use 
24275 \begin_inset Flex Code
24276 status collapsed
24277
24278 \begin_layout Plain Layout
24279 HTMLStyle
24280 \end_layout
24281
24282 \end_inset
24283
24284  for that purpose.
24285 \end_layout
24286
24287 \begin_layout Description
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292 HTMLLabel
24293 \end_layout
24294
24295 \end_inset
24296
24297  [
24298 \begin_inset Flex Code
24299 status collapsed
24300
24301 \begin_layout Plain Layout
24302 string
24303 \end_layout
24304
24305 \end_inset
24306
24307 ] The tag to be used for paragraph and item labels, replacing 
24308 \begin_inset Flex Code
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312 labeltag
24313 \end_layout
24314
24315 \end_inset
24316
24317  in the examples above.
24318  Defaults to 
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323 span
24324 \end_layout
24325
24326 \end_inset
24327
24328 , unless 
24329 \begin_inset Flex Code
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 LabelType
24334 \end_layout
24335
24336 \end_inset
24337
24338  is either 
24339 \begin_inset Flex Code
24340 status collapsed
24341
24342 \begin_layout Plain Layout
24343 Top_Environment
24344 \end_layout
24345
24346 \end_inset
24347
24348  or 
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 Centered_Top_Environment
24354 \end_layout
24355
24356 \end_inset
24357
24358 , in which case it defaults to 
24359 \begin_inset Flex Code
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363 div
24364 \end_layout
24365
24366 \end_inset
24367
24368 .
24369 \end_layout
24370
24371 \begin_layout Description
24372 \begin_inset Flex Code
24373 status collapsed
24374
24375 \begin_layout Plain Layout
24376 HTMLLabelAttr
24377 \end_layout
24378
24379 \end_inset
24380
24381  [
24382 \begin_inset Flex Code
24383 status collapsed
24384
24385 \begin_layout Plain Layout
24386 string
24387 \end_layout
24388
24389 \end_inset
24390
24391 ] Attributes for the label tag.
24392  Defaults to
24393 \begin_inset Newline newline
24394 \end_inset
24395
24396
24397 \begin_inset Quotes eld
24398 \end_inset
24399
24400
24401 \begin_inset Flex Code
24402 status collapsed
24403
24404 \begin_layout Plain Layout
24405 class=`layoutname_label'
24406 \end_layout
24407
24408 \end_inset
24409
24410
24411 \begin_inset Quotes erd
24412 \end_inset
24413
24414 .
24415  This should 
24416 \emph on
24417 not
24418 \emph default
24419  contain any style information.
24420  Use 
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 HTMLStyle
24426 \end_layout
24427
24428 \end_inset
24429
24430  for that purpose.
24431 \end_layout
24432
24433 \begin_layout Description
24434 \begin_inset Flex Code
24435 status collapsed
24436
24437 \begin_layout Plain Layout
24438 HTMLLabelFirst
24439 \end_layout
24440
24441 \end_inset
24442
24443  [
24444 \begin_inset Flex Code
24445 status collapsed
24446
24447 \begin_layout Plain Layout
24448
24449 \emph on
24450 0
24451 \emph default
24452 ,1
24453 \end_layout
24454
24455 \end_inset
24456
24457 ] Meaningful only for list-like environments, this tag controls whether
24458  the label tag is output before or inside the item tag.
24459  This is used, for example, in the description environment, where we want
24460  `
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465 <dt>\SpecialChar ldots
24466 </dt><dd>\SpecialChar ldots
24467 </dd>
24468 \end_layout
24469
24470 \end_inset
24471
24472 .
24473  Default is 
24474 \begin_inset Flex Code
24475 status collapsed
24476
24477 \begin_layout Plain Layout
24478 0
24479 \end_layout
24480
24481 \end_inset
24482
24483 : The label tag is output inside the item tag.
24484 \end_layout
24485
24486 \begin_layout Description
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 HTMLPreamble
24492 \end_layout
24493
24494 \end_inset
24495
24496  Information to be output in the 
24497 \begin_inset Flex Code
24498 status collapsed
24499
24500 \begin_layout Plain Layout
24501 <head>
24502 \end_layout
24503
24504 \end_inset
24505
24506  section when this style is used.
24507  This might, for example, be used to include a 
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512 <script>
24513 \end_layout
24514
24515 \end_inset
24516
24517  block defining an 
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 onclick
24523 \end_layout
24524
24525 \end_inset
24526
24527  handler.
24528 \end_layout
24529
24530 \begin_layout Description
24531 \begin_inset Flex Code
24532 status collapsed
24533
24534 \begin_layout Plain Layout
24535 HTMLStyle
24536 \end_layout
24537
24538 \end_inset
24539
24540  CSS style information to be included when this style is used.
24541  Note that this will automatically be wrapped in a layout-generated 
24542 \begin_inset Flex Code
24543 status collapsed
24544
24545 \begin_layout Plain Layout
24546 <style>
24547 \end_layout
24548
24549 \end_inset
24550
24551  block, so only the CSS itself need be included.
24552  Must end with 
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 EndHTMLStyle
24558 \end_layout
24559
24560 \end_inset
24561
24562 .
24563 \end_layout
24564
24565 \begin_layout Description
24566 \begin_inset Flex Code
24567 status collapsed
24568
24569 \begin_layout Plain Layout
24570 HTMLTag
24571 \end_layout
24572
24573 \end_inset
24574
24575  [
24576 \begin_inset Flex Code
24577 status collapsed
24578
24579 \begin_layout Plain Layout
24580 string
24581 \end_layout
24582
24583 \end_inset
24584
24585 ] The tag to be used for the main label, replacing 
24586 \begin_inset Flex Code
24587 status collapsed
24588
24589 \begin_layout Plain Layout
24590 tag
24591 \end_layout
24592
24593 \end_inset
24594
24595  in the examples above.
24596  Defaults to 
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601 div
24602 \end_layout
24603
24604 \end_inset
24605
24606 .
24607 \end_layout
24608
24609 \begin_layout Description
24610 \begin_inset Flex Code
24611 status collapsed
24612
24613 \begin_layout Plain Layout
24614 HTMLTitle
24615 \end_layout
24616
24617 \end_inset
24618
24619  [
24620 \begin_inset Flex Code
24621 status collapsed
24622
24623 \begin_layout Plain Layout
24624
24625 \emph on
24626 0
24627 \emph default
24628 ,1
24629 \end_layout
24630
24631 \end_inset
24632
24633 ] Marks this style as the one to be used to generate the 
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638 <title>
24639 \end_layout
24640
24641 \end_inset
24642
24643  tag for the XHTML file.
24644  By default, it is false.
24645  The 
24646 \begin_inset Flex Code
24647 status collapsed
24648
24649 \begin_layout Plain Layout
24650 stdtitle.inc
24651 \end_layout
24652
24653 \end_inset
24654
24655  file sets it to true for the 
24656 \begin_inset Flex Code
24657 status collapsed
24658
24659 \begin_layout Plain Layout
24660 title
24661 \end_layout
24662
24663 \end_inset
24664
24665  environment.
24666  
24667 \end_layout
24668
24669 \begin_layout Subsection
24670 InsetLayout XHTML
24671 \end_layout
24672
24673 \begin_layout Standard
24674 The XHTML output of insets can also be controlled by information in layout
24675  files.
24676 \begin_inset Foot
24677 status collapsed
24678
24679 \begin_layout Plain Layout
24680 At present, this is true only for 
24681 \begin_inset Quotes eld
24682 \end_inset
24683
24684 text
24685 \begin_inset Quotes erd
24686 \end_inset
24687
24688  insets (insets you can type into) and is not true for 
24689 \begin_inset Quotes eld
24690 \end_inset
24691
24692 command
24693 \begin_inset Quotes erd
24694 \end_inset
24695
24696  insets (insets that are associated with dialog boxes).
24697 \end_layout
24698
24699 \end_inset
24700
24701  Here, too, \SpecialChar LyX
24702  tries to provide sensible defaults, and it constructs default
24703  CSS style rules.
24704  But everything can be customized.
24705 \end_layout
24706
24707 \begin_layout Standard
24708 The XHTML \SpecialChar LyX
24709  outputs for an inset has the following form:
24710 \end_layout
24711
24712 \begin_layout LyX-Code
24713 <tag attr=
24714 \begin_inset Quotes erd
24715 \end_inset
24716
24717 value
24718 \begin_inset Quotes erd
24719 \end_inset
24720
24721 >
24722 \end_layout
24723
24724 \begin_layout LyX-Code
24725 <labeltag>Label</labeltag>
24726 \end_layout
24727
24728 \begin_layout LyX-Code
24729 <innertag attr=
24730 \begin_inset Quotes erd
24731 \end_inset
24732
24733 value
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737 >Contents of the inset.</innertag>
24738 \end_layout
24739
24740 \begin_layout LyX-Code
24741 </tag>
24742 \end_layout
24743
24744 \begin_layout Standard
24745 If the inset permits multiple paragraphs—that is, if 
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750 MultiPar
24751 \end_layout
24752
24753 \end_inset
24754
24755  is true—then the contents of the inset will itself be output as paragraphs
24756  formatted according to the styles used for those paragraphs (standard,
24757  quote, and the like).
24758  The label tag is of course omitted if the paragraph does not have a label
24759  and, at present, is always 
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 span
24765 \end_layout
24766
24767 \end_inset
24768
24769 .
24770  The inner tag is optional and, by default, does not appear.
24771 \end_layout
24772
24773 \begin_layout Standard
24774 The specific tags and attributes output for each inset can be controlled
24775  by means of the following layout tags.
24776 \end_layout
24777
24778 \begin_layout Description
24779 \begin_inset Flex Code
24780 status collapsed
24781
24782 \begin_layout Plain Layout
24783 HTMLAttr
24784 \end_layout
24785
24786 \end_inset
24787
24788  [
24789 \begin_inset Flex Code
24790 status collapsed
24791
24792 \begin_layout Plain Layout
24793 string
24794 \end_layout
24795
24796 \end_inset
24797
24798 ] Specifies attribute information to be output with the main tag.
24799  For example, 
24800 \begin_inset Quotes eld
24801 \end_inset
24802
24803
24804 \begin_inset Flex Code
24805 status collapsed
24806
24807 \begin_layout Plain Layout
24808 class=`myinset' onclick=`\SpecialChar ldots
24809 '
24810 \end_layout
24811
24812 \end_inset
24813
24814
24815 \begin_inset Quotes erd
24816 \end_inset
24817
24818 .
24819  By default, \SpecialChar LyX
24820  will output 
24821 \begin_inset Quotes eld
24822 \end_inset
24823
24824
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 class=`insetname'
24830 \end_layout
24831
24832 \end_inset
24833
24834
24835 \begin_inset Quotes erd
24836 \end_inset
24837
24838 , where 
24839 \begin_inset Flex Code
24840 status collapsed
24841
24842 \begin_layout Plain Layout
24843 insetname
24844 \end_layout
24845
24846 \end_inset
24847
24848  is the \SpecialChar LyX
24849  name of the inset, made lowercase and with non-alphanumeric characters
24850  converted to underscores, for example: footnote.
24851 \end_layout
24852
24853 \begin_layout Description
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 HTMLForceCSS
24859 \end_layout
24860
24861 \end_inset
24862
24863  [
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868
24869 \emph on
24870 0
24871 \emph default
24872 ,1
24873 \end_layout
24874
24875 \end_inset
24876
24877 ] Whether to output the default CSS information \SpecialChar LyX
24878  generates for this layout,
24879  even if additional information is explicitly provided via 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 HTMLStyle
24885 \end_layout
24886
24887 \end_inset
24888
24889 .
24890  Setting this to 
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 1
24896 \end_layout
24897
24898 \end_inset
24899
24900  allows you to alter or augment the generated CSS, rather than to override
24901  it completely.
24902  Default is 0.
24903 \end_layout
24904
24905 \begin_layout Description
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 HTMLInnerAttr
24911 \end_layout
24912
24913 \end_inset
24914
24915  [
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 string
24921 \end_layout
24922
24923 \end_inset
24924
24925 ] Attributes for the inner tag.
24926  Defaults to
24927 \begin_inset Newline newline
24928 \end_inset
24929
24930
24931 \begin_inset Quotes eld
24932 \end_inset
24933
24934
24935 \begin_inset Flex Code
24936 status collapsed
24937
24938 \begin_layout Plain Layout
24939 class=`insetname_inner'
24940 \end_layout
24941
24942 \end_inset
24943
24944
24945 \begin_inset Quotes erd
24946 \end_inset
24947
24948 .
24949 \end_layout
24950
24951 \begin_layout Description
24952 \begin_inset Flex Code
24953 status collapsed
24954
24955 \begin_layout Plain Layout
24956 HTMLInnerTag
24957 \end_layout
24958
24959 \end_inset
24960
24961  [
24962 \begin_inset Flex Code
24963 status collapsed
24964
24965 \begin_layout Plain Layout
24966 string
24967 \end_layout
24968
24969 \end_inset
24970
24971 ] The inner tag, replacing 
24972 \begin_inset Flex Code
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976 innertag
24977 \end_layout
24978
24979 \end_inset
24980
24981  in the examples above.
24982  By default, there is none.
24983 \end_layout
24984
24985 \begin_layout Description
24986 \begin_inset Flex Code
24987 status collapsed
24988
24989 \begin_layout Plain Layout
24990 HTMLIsBlock
24991 \end_layout
24992
24993 \end_inset
24994
24995  [
24996 \begin_inset Flex Code
24997 status collapsed
24998
24999 \begin_layout Plain Layout
25000 0,
25001 \emph on
25002 1
25003 \end_layout
25004
25005 \end_inset
25006
25007 ] Whether this inset represents a standalone block of text (such as a footnote)
25008  or instead represents material that is included in the surrounding text
25009  (such as a branch).
25010  Defaults to 1.
25011 \end_layout
25012
25013 \begin_layout Description
25014 \begin_inset Flex Code
25015 status collapsed
25016
25017 \begin_layout Plain Layout
25018 HTMLLabel
25019 \end_layout
25020
25021 \end_inset
25022
25023  [
25024 \begin_inset Flex Code
25025 status collapsed
25026
25027 \begin_layout Plain Layout
25028 string
25029 \end_layout
25030
25031 \end_inset
25032
25033 ] A label for this inset, possibly including a reference to a counter.
25034  For example, for footnote, it might be: 
25035 \begin_inset Flex Code
25036 status collapsed
25037
25038 \begin_layout Plain Layout
25039
25040 \backslash
25041 arabic{footnote}
25042 \end_layout
25043
25044 \end_inset
25045
25046 .
25047  This is optional, and there is no default.
25048 \end_layout
25049
25050 \begin_layout Description
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055 HTMLPreamble
25056 \end_layout
25057
25058 \end_inset
25059
25060  Information to be output in the 
25061 \begin_inset Flex Code
25062 status collapsed
25063
25064 \begin_layout Plain Layout
25065 <head>
25066 \end_layout
25067
25068 \end_inset
25069
25070  section when this style is used.
25071  This might, for example, be used to include a 
25072 \begin_inset Flex Code
25073 status collapsed
25074
25075 \begin_layout Plain Layout
25076 <script>
25077 \end_layout
25078
25079 \end_inset
25080
25081  block defining an 
25082 \begin_inset Flex Code
25083 status collapsed
25084
25085 \begin_layout Plain Layout
25086 onclick
25087 \end_layout
25088
25089 \end_inset
25090
25091  handler.
25092 \end_layout
25093
25094 \begin_layout Description
25095 \begin_inset Flex Code
25096 status collapsed
25097
25098 \begin_layout Plain Layout
25099 HTMLStyle
25100 \end_layout
25101
25102 \end_inset
25103
25104  CSS style information to be included when this style is used.
25105  Note that this will automatically be wrapped in a layout-generated 
25106 \begin_inset Flex Code
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110 <style>
25111 \end_layout
25112
25113 \end_inset
25114
25115  block, so only the CSS itself need be included.
25116 \end_layout
25117
25118 \begin_layout Description
25119 \begin_inset Flex Code
25120 status collapsed
25121
25122 \begin_layout Plain Layout
25123 HTMLTag
25124 \end_layout
25125
25126 \end_inset
25127
25128  [
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 string
25134 \end_layout
25135
25136 \end_inset
25137
25138 ] The tag to be used for the main label, replacing 
25139 \begin_inset Flex Code
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143 tag
25144 \end_layout
25145
25146 \end_inset
25147
25148  in the examples above.
25149  The default depends upon the setting of 
25150 \begin_inset Flex Code
25151 status collapsed
25152
25153 \begin_layout Plain Layout
25154 MultiPar
25155 \end_layout
25156
25157 \end_inset
25158
25159 : If 
25160 \begin_inset Flex Code
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164 MultiPar
25165 \end_layout
25166
25167 \end_inset
25168
25169  is true, the default is 
25170 \begin_inset Flex Code
25171 status collapsed
25172
25173 \begin_layout Plain Layout
25174 div
25175 \end_layout
25176
25177 \end_inset
25178
25179 ; if it is false, the default is 
25180 \begin_inset Flex Code
25181 status collapsed
25182
25183 \begin_layout Plain Layout
25184 span
25185 \end_layout
25186
25187 \end_inset
25188
25189 .
25190 \end_layout
25191
25192 \begin_layout Subsection
25193 Float XHTML
25194 \end_layout
25195
25196 \begin_layout Standard
25197 The XHTML output for floats too can be controlled by layout information.
25198  The output has the following form:
25199 \end_layout
25200
25201 \begin_layout LyX-Code
25202 <tag attr=
25203 \begin_inset Quotes erd
25204 \end_inset
25205
25206 value
25207 \begin_inset Quotes erd
25208 \end_inset
25209
25210 >
25211 \end_layout
25212
25213 \begin_layout LyX-Code
25214 Contents of the float.
25215 \end_layout
25216
25217 \begin_layout LyX-Code
25218 </tag>
25219 \end_layout
25220
25221 \begin_layout Standard
25222 The caption, if there is one, is a separate inset and will be output as
25223  such.
25224  Its appearance can be controlled via the InsetLayout for caption insets.
25225  
25226 \end_layout
25227
25228 \begin_layout Description
25229 \begin_inset Flex Code
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233 HTMLAttr
25234 \end_layout
25235
25236 \end_inset
25237
25238  [
25239 \begin_inset Flex Code
25240 status collapsed
25241
25242 \begin_layout Plain Layout
25243 string
25244 \end_layout
25245
25246 \end_inset
25247
25248 ] Specifies attribute information to be output with the main tag.
25249  For example, 
25250 \begin_inset Quotes eld
25251 \end_inset
25252
25253
25254 \begin_inset Flex Code
25255 status collapsed
25256
25257 \begin_layout Plain Layout
25258 class=`myfloat' onclick=`\SpecialChar ldots
25259 '
25260 \end_layout
25261
25262 \end_inset
25263
25264
25265 \begin_inset Quotes erd
25266 \end_inset
25267
25268 .
25269  By default, \SpecialChar LyX
25270  will output 
25271 \begin_inset Quotes eld
25272 \end_inset
25273
25274
25275 \begin_inset Flex Code
25276 status collapsed
25277
25278 \begin_layout Plain Layout
25279 class=`float float-floattype'
25280 \end_layout
25281
25282 \end_inset
25283
25284
25285 \begin_inset Quotes erd
25286 \end_inset
25287
25288 , where 
25289 \begin_inset Flex Code
25290 status collapsed
25291
25292 \begin_layout Plain Layout
25293 floattype
25294 \end_layout
25295
25296 \end_inset
25297
25298  is \SpecialChar LyX
25299 's name for this type of float, as determined by the float declaration
25300  (see 
25301 \begin_inset CommandInset ref
25302 LatexCommand ref
25303 reference "subsec:Floats"
25304
25305 \end_inset
25306
25307 ), though made lowercase and with non-alphanumeric characters converted
25308  to underscores, for example: float-table.
25309 \end_layout
25310
25311 \begin_layout Description
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 HTMLStyle
25317 \end_layout
25318
25319 \end_inset
25320
25321  CSS style information to be included when this float is used.
25322  Note that this will automatically be wrapped in a layout-generated 
25323 \begin_inset Flex Code
25324 status collapsed
25325
25326 \begin_layout Plain Layout
25327 <style>
25328 \end_layout
25329
25330 \end_inset
25331
25332  block, so only the CSS itself need be included.
25333 \end_layout
25334
25335 \begin_layout Description
25336 \begin_inset Flex Code
25337 status collapsed
25338
25339 \begin_layout Plain Layout
25340 HTMLTag
25341 \end_layout
25342
25343 \end_inset
25344
25345  [
25346 \begin_inset Flex Code
25347 status collapsed
25348
25349 \begin_layout Plain Layout
25350 string
25351 \end_layout
25352
25353 \end_inset
25354
25355 ] The tag to be used for this float, replacing 
25356 \begin_inset Quotes eld
25357 \end_inset
25358
25359
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 tag
25365 \end_layout
25366
25367 \end_inset
25368
25369
25370 \begin_inset Quotes erd
25371 \end_inset
25372
25373  in the example above.
25374  The default is 
25375 \begin_inset Flex Code
25376 status collapsed
25377
25378 \begin_layout Plain Layout
25379 div
25380 \end_layout
25381
25382 \end_inset
25383
25384  and will rarely need changing.
25385 \end_layout
25386
25387 \begin_layout Subsection
25388 Bibliography formatting
25389 \end_layout
25390
25391 \begin_layout Standard
25392 The bibliography can be formatted using 
25393 \begin_inset Flex Code
25394 status collapsed
25395
25396 \begin_layout Plain Layout
25397 CiteFormat
25398 \end_layout
25399
25400 \end_inset
25401
25402  blocks.
25403  See 
25404 \begin_inset CommandInset ref
25405 LatexCommand ref
25406 reference "subsec:Citation-format-description"
25407
25408 \end_inset
25409
25410  for the details.
25411 \end_layout
25412
25413 \begin_layout Subsection
25414 \SpecialChar LyX
25415 -generated CSS
25416 \end_layout
25417
25418 \begin_layout Standard
25419 We have several times mentioned that \SpecialChar LyX
25420  will generate default CSS style rules
25421  for both insets and paragraph styles, based upon the other layout information
25422  that is provided.
25423  In this section, we shall say a word about which layout information \SpecialChar LyX
25424  uses
25425  and how.
25426 \end_layout
25427
25428 \begin_layout Standard
25429 At present, \SpecialChar LyX
25430  auto-generates CSS only for font information, making use of
25431  the 
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 Family
25437 \end_layout
25438
25439 \end_inset
25440
25441
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 Series
25447 \end_layout
25448
25449 \end_inset
25450
25451
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 Shape
25457 \end_layout
25458
25459 \end_inset
25460
25461 , and 
25462 \begin_inset Flex Code
25463 status collapsed
25464
25465 \begin_layout Plain Layout
25466 Size
25467 \end_layout
25468
25469 \end_inset
25470
25471  specified in the 
25472 \begin_inset Flex Code
25473 status collapsed
25474
25475 \begin_layout Plain Layout
25476 Font
25477 \end_layout
25478
25479 \end_inset
25480
25481  declaration (see 
25482 \begin_inset CommandInset ref
25483 LatexCommand ref
25484 reference "subsec:Font-description"
25485
25486 \end_inset
25487
25488 ).
25489  The translation is mostly straightforward and obvious.
25490  For example, 
25491 \begin_inset Quotes eld
25492 \end_inset
25493
25494
25495 \begin_inset Flex Code
25496 status collapsed
25497
25498 \begin_layout Plain Layout
25499 Family Sans
25500 \end_layout
25501
25502 \end_inset
25503
25504
25505 \begin_inset Quotes erd
25506 \end_inset
25507
25508  becomes 
25509 \begin_inset Quotes eld
25510 \end_inset
25511
25512
25513 \begin_inset Flex Code
25514 status collapsed
25515
25516 \begin_layout Plain Layout
25517 font-family: sans-serif;
25518 \end_layout
25519
25520 \end_inset
25521
25522
25523 \begin_inset Quotes erd
25524 \end_inset
25525
25526 .
25527  The correspondence of \SpecialChar LyX
25528  sizes and CSS sizes is a little less obvious but
25529  nonetheless intuitive.
25530  See the 
25531 \begin_inset Flex Code
25532 status collapsed
25533
25534 \begin_layout Plain Layout
25535 getSizeCSS()
25536 \end_layout
25537
25538 \end_inset
25539
25540  function in 
25541 \begin_inset Flex URL
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545
25546 src/FontInfo.cpp
25547 \end_layout
25548
25549 \end_inset
25550
25551  for the details.
25552 \end_layout
25553
25554 \begin_layout Chapter
25555 Including External Material
25556 \begin_inset CommandInset label
25557 LatexCommand label
25558 name "chap:Including-External-Material"
25559
25560 \end_inset
25561
25562
25563 \end_layout
25564
25565 \begin_layout Standard
25566 \begin_inset Box Shadowbox
25567 position "t"
25568 hor_pos "c"
25569 has_inner_box 1
25570 inner_pos "t"
25571 use_parbox 0
25572 use_makebox 0
25573 width "100col%"
25574 special "none"
25575 height "1in"
25576 height_special "totalheight"
25577 thickness "0.4pt"
25578 separation "3pt"
25579 shadowsize "4pt"
25580 framecolor "black"
25581 backgroundcolor "none"
25582 status open
25583
25584 \begin_layout Plain Layout
25585 WARNING: This portion of the documentation has not been updated for some
25586  time.
25587  We certainly hope that it is still accurate, but there are no guarantees.
25588 \end_layout
25589
25590 \end_inset
25591
25592
25593 \end_layout
25594
25595 \begin_layout Standard
25596 The use of material from sources external to \SpecialChar LyX
25597  is covered in detail in the
25598  
25599 \emph on
25600 Embedded Objects
25601 \emph default
25602  manual.
25603  This part of the manual covers what needs to happen behind the scenes for
25604  new sorts of material to be included.
25605 \end_layout
25606
25607 \begin_layout Section
25608 How does it work?
25609 \end_layout
25610
25611 \begin_layout Standard
25612 The external material feature is based on the concept of a 
25613 \emph on
25614 template
25615 \emph default
25616 .
25617  A template is a specification of how \SpecialChar LyX
25618  should interface with a certain kind
25619  of material.
25620  As bundled, \SpecialChar LyX
25621  comes with predefined templates for Xfig figures, various
25622  raster format images, chess diagrams, and LilyPond music notation.
25623  You can check the actual list by using the menu 
25624 \begin_inset Flex Noun
25625 status collapsed
25626
25627 \begin_layout Plain Layout
25628 Insert\SpecialChar menuseparator
25629 File\SpecialChar menuseparator
25630 External Material
25631 \end_layout
25632
25633 \end_inset
25634
25635 .
25636  Furthermore, it is possible to roll your own template to support a specific
25637  kind of material.
25638  Later we'll describe in more detail what is involved, and hopefully you
25639  will submit all the templates you create so we can include them in a later
25640  \SpecialChar LyX
25641  version.
25642 \end_layout
25643
25644 \begin_layout Standard
25645 Another basic idea of the external material feature is to distinguish between
25646  the original file that serves as a base for final material and the produced
25647  file that is included in your exported or printed document.
25648  For example, consider the case of a figure produced with 
25649 \begin_inset Flex Code
25650 status collapsed
25651
25652 \begin_layout Plain Layout
25653 Xfig
25654 \end_layout
25655
25656 \end_inset
25657
25658 .
25659  The Xfig application itself works on an original file with the 
25660 \begin_inset Flex Code
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 .fig
25665 \end_layout
25666
25667 \end_inset
25668
25669  extension.
25670  Within Xfig, you create and change your figure, and when you are done,
25671  you save the 
25672 \begin_inset Flex Code
25673 status collapsed
25674
25675 \begin_layout Plain Layout
25676 fig
25677 \end_layout
25678
25679 \end_inset
25680
25681 -file.
25682  When you want to include the figure in your document, you invoke 
25683 \begin_inset Flex Code
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 transfig
25688 \end_layout
25689
25690 \end_inset
25691
25692  in order to create a PostScript file that can readily be included in your
25693  \SpecialChar LaTeX
25694  file.
25695  In this case, the 
25696 \begin_inset Flex Code
25697 status collapsed
25698
25699 \begin_layout Plain Layout
25700 .fig
25701 \end_layout
25702
25703 \end_inset
25704
25705  file is the original file, and the PostScript file is the produced file.
25706 \end_layout
25707
25708 \begin_layout Standard
25709 This distinction is important in order to allow updating of the material
25710  while you are in the process of writing the document.
25711  Furthermore, it provides us with the flexibility that is needed to support
25712  multiple export formats.
25713  For instance, in the case of a plain text file, it is not exactly an award-winn
25714 ing idea to include the figure as raw PostScript.
25715  Instead, you would either prefer to just include a reference to the figure
25716  or try to invoke some graphics to ASCII converter to make the final result
25717  look similar to the real graphics.
25718  The external material management allows you to do this, because it is parametri
25719 zed on the different export formats that \SpecialChar LyX
25720  supports.
25721 \end_layout
25722
25723 \begin_layout Standard
25724 Besides supporting the production of different products according to the
25725  exported format, it supports tight integration with editing and viewing
25726  applications.
25727  In the case of an Xfig figure, you are able to invoke Xfig on the original
25728  file with a single click from within the external material dialog in \SpecialChar LyX
25729 ,
25730  and also preview the produced PostScript file with Ghostview with another
25731  click.
25732  No more fiddling around with the command line and/or file browsers to locate
25733  and manipulate the original or produced files.
25734  In this way, you are finally able to take full advantage of the many different
25735  applications that are relevant to use when you write your documents, and
25736  ultimately be more productive.
25737 \end_layout
25738
25739 \begin_layout Section
25740 The external template configuration files
25741 \end_layout
25742
25743 \begin_layout Standard
25744 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25745 .
25746  However, be aware that doing this in an careless manner most probably 
25747 \emph on
25748 will
25749 \emph default
25750  introduce an easily exploitable security hole.
25751  So before you do this, please read the discussion about security in 
25752 \begin_inset CommandInset ref
25753 LatexCommand ref
25754 reference "sec:Security-discussion"
25755
25756 \end_inset
25757
25758 .
25759 \end_layout
25760
25761 \begin_layout Standard
25762 Having said that, we encourage you to submit any interesting templates that
25763  you create.
25764  
25765 \end_layout
25766
25767 \begin_layout Standard
25768 The external templates are defined in the 
25769 \begin_inset Flex Code
25770 status collapsed
25771
25772 \begin_layout Plain Layout
25773 *.xtemplate
25774 \end_layout
25775
25776 \end_inset
25777
25778  files that are stored in the 
25779 \begin_inset Flex Code
25780 status collapsed
25781
25782 \begin_layout Plain Layout
25783 LyXDir/lib/xtemplates/
25784 \end_layout
25785
25786 \end_inset
25787
25788  directory.
25789  Each template is defined in a file of its own.
25790  You can place your own templates in 
25791 \begin_inset Flex Code
25792 status collapsed
25793
25794 \begin_layout Plain Layout
25795 UserDir/xtemplates/
25796 \end_layout
25797
25798 \end_inset
25799
25800  or copy existing templates to that directory in order to modify them.
25801 \end_layout
25802
25803 \begin_layout Standard
25804 A typical template looks like this:
25805 \end_layout
25806
25807 \begin_layout LyX-Code
25808 Template XFig
25809 \end_layout
25810
25811 \begin_layout LyX-Code
25812 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25813 \end_layout
25814
25815 \begin_layout LyX-Code
25816 HelpText
25817 \end_layout
25818
25819 \begin_layout LyX-Code
25820 An XFig figure.
25821 \end_layout
25822
25823 \begin_layout LyX-Code
25824 HelpTextEnd
25825 \end_layout
25826
25827 \begin_layout LyX-Code
25828 InputFormat fig
25829 \end_layout
25830
25831 \begin_layout LyX-Code
25832 FileFilter "*.fig"
25833 \end_layout
25834
25835 \begin_layout LyX-Code
25836 AutomaticProduction true
25837 \end_layout
25838
25839 \begin_layout LyX-Code
25840 Transform Rotate
25841 \end_layout
25842
25843 \begin_layout LyX-Code
25844 Transform Resize
25845 \end_layout
25846
25847 \begin_layout LyX-Code
25848 Format LaTeX
25849 \end_layout
25850
25851 \begin_layout LyX-Code
25852 TransformCommand Rotate RotationLatexCommand
25853 \end_layout
25854
25855 \begin_layout LyX-Code
25856 TransformCommand Resize ResizeLatexCommand
25857 \end_layout
25858
25859 \begin_layout LyX-Code
25860 Product "$$RotateFront$$ResizeFront
25861 \end_layout
25862
25863 \begin_layout LyX-Code
25864          
25865 \backslash
25866
25867 \backslash
25868 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25869 \end_layout
25870
25871 \begin_layout LyX-Code
25872          $$ResizeBack$$RotateBack"
25873 \end_layout
25874
25875 \begin_layout LyX-Code
25876 UpdateFormat pstex
25877 \end_layout
25878
25879 \begin_layout LyX-Code
25880 UpdateResult "$$AbsPath$$Basename.pstex_t"
25881 \end_layout
25882
25883 \begin_layout LyX-Code
25884 Requirement "graphicx"
25885 \end_layout
25886
25887 \begin_layout LyX-Code
25888 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25889 \end_layout
25890
25891 \begin_layout LyX-Code
25892 ReferencedFile latex "$$AbsPath$$Basename.eps"
25893 \end_layout
25894
25895 \begin_layout LyX-Code
25896 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25897 \end_layout
25898
25899 \begin_layout LyX-Code
25900 FormatEnd
25901 \end_layout
25902
25903 \begin_layout LyX-Code
25904 Format PDFLaTeX
25905 \end_layout
25906
25907 \begin_layout LyX-Code
25908 TransformCommand Rotate RotationLatexCommand
25909 \end_layout
25910
25911 \begin_layout LyX-Code
25912 TransformCommand Resize ResizeLatexCommand
25913 \end_layout
25914
25915 \begin_layout LyX-Code
25916 Product "$$RotateFront$$ResizeFront
25917 \end_layout
25918
25919 \begin_layout LyX-Code
25920          
25921 \backslash
25922
25923 \backslash
25924 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25925 \end_layout
25926
25927 \begin_layout LyX-Code
25928          $$ResizeBack$$RotateBack"
25929 \end_layout
25930
25931 \begin_layout LyX-Code
25932 UpdateFormat pdftex
25933 \end_layout
25934
25935 \begin_layout LyX-Code
25936 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25937 \end_layout
25938
25939 \begin_layout LyX-Code
25940 Requirement "graphicx"
25941 \end_layout
25942
25943 \begin_layout LyX-Code
25944 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25945 \end_layout
25946
25947 \begin_layout LyX-Code
25948 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25949 \end_layout
25950
25951 \begin_layout LyX-Code
25952 FormatEnd
25953 \end_layout
25954
25955 \begin_layout LyX-Code
25956 Format Ascii
25957 \end_layout
25958
25959 \begin_layout LyX-Code
25960 Product "[XFig: $$FName]"
25961 \end_layout
25962
25963 \begin_layout LyX-Code
25964 FormatEnd
25965 \end_layout
25966
25967 \begin_layout LyX-Code
25968 Format DocBook
25969 \end_layout
25970
25971 \begin_layout LyX-Code
25972 Product "<graphic fileref=
25973 \backslash
25974 "$$AbsOrRelPathMaster$$Basename.eps
25975 \backslash
25976 ">
25977 \end_layout
25978
25979 \begin_layout LyX-Code
25980          </graphic>"
25981 \end_layout
25982
25983 \begin_layout LyX-Code
25984 UpdateFormat eps
25985 \end_layout
25986
25987 \begin_layout LyX-Code
25988 UpdateResult "$$AbsPath$$Basename.eps"
25989 \end_layout
25990
25991 \begin_layout LyX-Code
25992 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25993 \end_layout
25994
25995 \begin_layout LyX-Code
25996 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25997 \end_layout
25998
25999 \begin_layout LyX-Code
26000 FormatEnd
26001 \end_layout
26002
26003 \begin_layout LyX-Code
26004 TemplateEnd
26005 \end_layout
26006
26007 \begin_layout Standard
26008 As you can see, the template is enclosed in 
26009 \begin_inset Flex Code
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013 Template
26014 \end_layout
26015
26016 \end_inset
26017
26018  \SpecialChar ldots
26019  
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024 TemplateEnd
26025 \end_layout
26026
26027 \end_inset
26028
26029 .
26030  It contains a header specifying some general settings and, for each supported
26031  primary document file format, a section 
26032 \begin_inset Flex Code
26033 status collapsed
26034
26035 \begin_layout Plain Layout
26036 Format
26037 \end_layout
26038
26039 \end_inset
26040
26041  \SpecialChar ldots
26042  
26043 \begin_inset Flex Code
26044 status collapsed
26045
26046 \begin_layout Plain Layout
26047 FormatEnd
26048 \end_layout
26049
26050 \end_inset
26051
26052 .
26053 \end_layout
26054
26055 \begin_layout Subsection
26056 The template header
26057 \end_layout
26058
26059 \begin_layout Description
26060 \begin_inset Flex Code
26061 status collapsed
26062
26063 \begin_layout Plain Layout
26064 AutomaticProduction
26065 \begin_inset space ~
26066 \end_inset
26067
26068 true|false
26069 \end_layout
26070
26071 \end_inset
26072
26073  Whether the file represented by the template must be generated by \SpecialChar LyX
26074 .
26075  This command must occur exactly once.
26076 \end_layout
26077
26078 \begin_layout Description
26079 \begin_inset Flex Code
26080 status collapsed
26081
26082 \begin_layout Plain Layout
26083 FileFilter
26084 \begin_inset space ~
26085 \end_inset
26086
26087 <pattern>
26088 \end_layout
26089
26090 \end_inset
26091
26092  A glob pattern that is used in the file dialog to filter out the desired
26093  files.
26094  If there is more than one possible file extension (e.
26095 \begin_inset space \thinspace{}
26096 \end_inset
26097
26098 g.
26099 \begin_inset space \space{}
26100 \end_inset
26101
26102 tgif has 
26103 \begin_inset Flex Code
26104 status collapsed
26105
26106 \begin_layout Plain Layout
26107 .obj
26108 \end_layout
26109
26110 \end_inset
26111
26112  and 
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 .tgo
26118 \end_layout
26119
26120 \end_inset
26121
26122 ), use something like 
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 "*.{obj,tgo}"
26128 \end_layout
26129
26130 \end_inset
26131
26132 .
26133  This command must occur exactly once.
26134 \end_layout
26135
26136 \begin_layout Description
26137 \begin_inset Flex Code
26138 status collapsed
26139
26140 \begin_layout Plain Layout
26141 GuiName
26142 \begin_inset space ~
26143 \end_inset
26144
26145 <guiname>
26146 \end_layout
26147
26148 \end_inset
26149
26150  The text that is displayed on the button.
26151  This command must occur exactly once.
26152 \end_layout
26153
26154 \begin_layout Description
26155 \begin_inset Flex Code
26156 status collapsed
26157
26158 \begin_layout Plain Layout
26159 HelpText
26160 \begin_inset space ~
26161 \end_inset
26162
26163 <text>
26164 \begin_inset space ~
26165 \end_inset
26166
26167 HelpTextEnd
26168 \end_layout
26169
26170 \end_inset
26171
26172  The help text that is used in the External dialog.
26173  Provide enough information to explain to the user just what the template
26174  can provide him with.
26175  This command must occur exactly once.
26176 \end_layout
26177
26178 \begin_layout Description
26179 \begin_inset Flex Code
26180 status collapsed
26181
26182 \begin_layout Plain Layout
26183 InputFormat
26184 \begin_inset space ~
26185 \end_inset
26186
26187 <format>
26188 \end_layout
26189
26190 \end_inset
26191
26192  The file format of the original file.
26193  This must be the name of a format that is known to \SpecialChar LyX
26194  (see 
26195 \begin_inset CommandInset ref
26196 LatexCommand ref
26197 reference "sec:Formats"
26198
26199 \end_inset
26200
26201 ).
26202  Use 
26203 \begin_inset Quotes eld
26204 \end_inset
26205
26206
26207 \begin_inset Flex Code
26208 status collapsed
26209
26210 \begin_layout Plain Layout
26211 *
26212 \end_layout
26213
26214 \end_inset
26215
26216
26217 \begin_inset Quotes erd
26218 \end_inset
26219
26220  if the template can handle original files of more than one format.
26221  \SpecialChar LyX
26222  will attempt to interrogate the file itself in order to deduce its format
26223  in this case.
26224  This command must occur exactly once.
26225 \end_layout
26226
26227 \begin_layout Description
26228 \begin_inset Flex Code
26229 status collapsed
26230
26231 \begin_layout Plain Layout
26232 Template
26233 \begin_inset space ~
26234 \end_inset
26235
26236 <id>
26237 \end_layout
26238
26239 \end_inset
26240
26241  A unique name for the template.
26242  It must not contain substitution macros (see below).
26243 \end_layout
26244
26245 \begin_layout Description
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 Transform
26251 \begin_inset space ~
26252 \end_inset
26253
26254 Rotate|Resize|Clip|Extra
26255 \end_layout
26256
26257 \end_inset
26258
26259  This command specifies which transformations are supported by this template.
26260  It may occur zero or more times.
26261  This command enables the corresponding tabs in the external dialog.
26262  Each 
26263 \begin_inset Flex Code
26264 status collapsed
26265
26266 \begin_layout Plain Layout
26267 Transform
26268 \end_layout
26269
26270 \end_inset
26271
26272  command must have either a corresponding 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 TransformCommand
26278 \end_layout
26279
26280 \end_inset
26281
26282  or a 
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 TransformOption
26288 \end_layout
26289
26290 \end_inset
26291
26292  command in the 
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 Format
26298 \end_layout
26299
26300 \end_inset
26301
26302  section.
26303  Otherwise the transformation will not be supported by that format.
26304 \end_layout
26305
26306 \begin_layout Subsection
26307 The Format section
26308 \end_layout
26309
26310 \begin_layout Description
26311 \begin_inset Flex Code
26312 status collapsed
26313
26314 \begin_layout Plain Layout
26315 Format
26316 \begin_inset space ~
26317 \end_inset
26318
26319 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26320 \end_layout
26321
26322 \end_inset
26323
26324  The primary document file format that this format definition is for.
26325  Not every template has a sensible representation in all document file formats.
26326  Please define nevertheless a 
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 Format
26332 \end_layout
26333
26334 \end_inset
26335
26336  section for all templates.
26337  Use a dummy text when no representation is available.
26338  Then you can at least see a reference to the external material in the exported
26339  document.
26340 \end_layout
26341
26342 \begin_layout Description
26343 \begin_inset Flex Code
26344 status collapsed
26345
26346 \begin_layout Plain Layout
26347 Option
26348 \begin_inset space ~
26349 \end_inset
26350
26351 <name>
26352 \begin_inset space ~
26353 \end_inset
26354
26355 <value>
26356 \end_layout
26357
26358 \end_inset
26359
26360  This command defines an additional macro 
26361 \begin_inset Flex Code
26362 status collapsed
26363
26364 \begin_layout Plain Layout
26365 $$<name>
26366 \end_layout
26367
26368 \end_inset
26369
26370  for substitution in 
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 Product
26376 \end_layout
26377
26378 \end_inset
26379
26380 .
26381  
26382 \begin_inset Flex Code
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386 <value>
26387 \end_layout
26388
26389 \end_inset
26390
26391  itself may contain substitution macros.
26392  The advantage over using 
26393 \begin_inset Flex Code
26394 status collapsed
26395
26396 \begin_layout Plain Layout
26397 <value>
26398 \end_layout
26399
26400 \end_inset
26401
26402  directly in 
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 Product
26408 \end_layout
26409
26410 \end_inset
26411
26412  is that the substituted value of 
26413 \begin_inset Flex Code
26414 status collapsed
26415
26416 \begin_layout Plain Layout
26417 $$<name>
26418 \end_layout
26419
26420 \end_inset
26421
26422  is sanitized so that it is a valid optional argument in the document format.
26423  This command may occur zero or more times.
26424 \end_layout
26425
26426 \begin_layout Description
26427 \begin_inset Flex Code
26428 status collapsed
26429
26430 \begin_layout Plain Layout
26431 Product
26432 \begin_inset space ~
26433 \end_inset
26434
26435 <text>
26436 \end_layout
26437
26438 \end_inset
26439
26440  The text that is inserted in the exported document.
26441  This is actually the most important command and can be quite complex.
26442  This command must occur exactly once.
26443 \end_layout
26444
26445 \begin_layout Description
26446 \begin_inset Flex Code
26447 status collapsed
26448
26449 \begin_layout Plain Layout
26450 Preamble
26451 \begin_inset space ~
26452 \end_inset
26453
26454 <name>
26455 \end_layout
26456
26457 \end_inset
26458
26459  This command specifies a preamble snippet that will be included in the
26460  \SpecialChar LaTeX
26461  preamble.
26462  It has to be defined using 
26463 \begin_inset Flex Code
26464 status collapsed
26465
26466 \begin_layout Plain Layout
26467 PreambleDef
26468 \end_layout
26469
26470 \end_inset
26471
26472  \SpecialChar ldots
26473  
26474 \begin_inset Flex Code
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 PreambleDefEnd
26479 \end_layout
26480
26481 \end_inset
26482
26483 .
26484  This command may occur zero or more times.
26485 \end_layout
26486
26487 \begin_layout Description
26488 \begin_inset Flex Code
26489 status collapsed
26490
26491 \begin_layout Plain Layout
26492 ReferencedFile
26493 \begin_inset space ~
26494 \end_inset
26495
26496 <format>
26497 \begin_inset space ~
26498 \end_inset
26499
26500 <filename>
26501 \end_layout
26502
26503 \end_inset
26504
26505  This command denotes files that are created by the conversion process and
26506  are needed for a particular export format.
26507  If the filename is relative, it is interpreted relative to the master document.
26508  This command may be given zero or more times.
26509 \end_layout
26510
26511 \begin_layout Description
26512 \begin_inset Flex Code
26513 status collapsed
26514
26515 \begin_layout Plain Layout
26516 Requirement
26517 \begin_inset space ~
26518 \end_inset
26519
26520 <package>
26521 \end_layout
26522
26523 \end_inset
26524
26525  The name of a required \SpecialChar LaTeX
26526  package.
26527  The package is included via 
26528 \begin_inset Flex Code
26529 status collapsed
26530
26531 \begin_layout Plain Layout
26532
26533 \backslash
26534 usepackage{}
26535 \end_layout
26536
26537 \end_inset
26538
26539  in the \SpecialChar LaTeX
26540  preamble.
26541  This command may occur zero or more times.
26542 \end_layout
26543
26544 \begin_layout Description
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 TransformCommand
26550 \begin_inset space ~
26551 \end_inset
26552
26553 Rotate
26554 \begin_inset space ~
26555 \end_inset
26556
26557 RotationLatexCommand
26558 \end_layout
26559
26560 \end_inset
26561
26562  This command specifies that the built in \SpecialChar LaTeX
26563  command should be used for rotation.
26564  This command may occur once or not at all.
26565 \end_layout
26566
26567 \begin_layout Description
26568 \begin_inset Flex Code
26569 status collapsed
26570
26571 \begin_layout Plain Layout
26572 TransformCommand
26573 \begin_inset space ~
26574 \end_inset
26575
26576 Resize
26577 \begin_inset space ~
26578 \end_inset
26579
26580 ResizeLatexCommand
26581 \end_layout
26582
26583 \end_inset
26584
26585  This command specifies that the built in \SpecialChar LaTeX
26586  command should be used for resizing.
26587  This command may occur once or not at all.
26588 \end_layout
26589
26590 \begin_layout Description
26591 \begin_inset Flex Code
26592 status collapsed
26593
26594 \begin_layout Plain Layout
26595 TransformOption
26596 \begin_inset space ~
26597 \end_inset
26598
26599 Rotate
26600 \begin_inset space ~
26601 \end_inset
26602
26603 RotationLatexOption
26604 \end_layout
26605
26606 \end_inset
26607
26608  This command specifies that rotation is done via an optional argument.
26609  This command may occur once or not at all.
26610 \end_layout
26611
26612 \begin_layout Description
26613 \begin_inset Flex Code
26614 status collapsed
26615
26616 \begin_layout Plain Layout
26617 TransformOption
26618 \begin_inset space ~
26619 \end_inset
26620
26621 Resize
26622 \begin_inset space ~
26623 \end_inset
26624
26625 ResizeLatexOption
26626 \end_layout
26627
26628 \end_inset
26629
26630  This command specifies that resizing is done via an optional argument.
26631  This command may occur once or not at all.
26632 \end_layout
26633
26634 \begin_layout Description
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639 TransformOption
26640 \begin_inset space ~
26641 \end_inset
26642
26643 Clip
26644 \begin_inset space ~
26645 \end_inset
26646
26647 ClipLatexOption
26648 \end_layout
26649
26650 \end_inset
26651
26652  This command specifies that clipping is done via an optional argument.
26653  This command may occur once or not at all.
26654 \end_layout
26655
26656 \begin_layout Description
26657 \begin_inset Flex Code
26658 status collapsed
26659
26660 \begin_layout Plain Layout
26661 TransformOption
26662 \begin_inset space ~
26663 \end_inset
26664
26665 Extra
26666 \begin_inset space ~
26667 \end_inset
26668
26669 ExtraLatexOption
26670 \end_layout
26671
26672 \end_inset
26673
26674  This command specifies that an extra optional argument is used.
26675  This command may occur once or not at all.
26676 \end_layout
26677
26678 \begin_layout Description
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683 UpdateFormat
26684 \begin_inset space ~
26685 \end_inset
26686
26687 <format>
26688 \end_layout
26689
26690 \end_inset
26691
26692  The file format of the converted file.
26693  This must be the name of a format that is known to \SpecialChar LyX
26694  (see the 
26695 \begin_inset Flex Noun
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 Tools\SpecialChar menuseparator
26700 Preferences\SpecialChar menuseparator
26701 File Handling\SpecialChar menuseparator
26702 File Format
26703 \end_layout
26704
26705 \end_inset
26706
26707  dialog).
26708  This command must occur exactly once.
26709  If the resulting file format is PDF, you need to specify the format 
26710 \begin_inset Flex Code
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 pdf6
26715 \end_layout
26716
26717 \end_inset
26718
26719 .
26720  This is the PDF format used for including graphics.
26721  The other defined PDF formats are for document export.
26722 \end_layout
26723
26724 \begin_layout Description
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 UpdateResult
26730 \begin_inset space ~
26731 \end_inset
26732
26733 <filename>
26734 \end_layout
26735
26736 \end_inset
26737
26738  The file name of the converted file.
26739  The file name must be absolute.
26740  This command must occur exactly once.
26741 \end_layout
26742
26743 \begin_layout Subsection
26744 Preamble definitions
26745 \end_layout
26746
26747 \begin_layout Standard
26748 The external template configuration file may contain additional preamble
26749  definitions enclosed by 
26750 \begin_inset Flex Code
26751 status collapsed
26752
26753 \begin_layout Plain Layout
26754 PreambleDef
26755 \end_layout
26756
26757 \end_inset
26758
26759  \SpecialChar ldots
26760  
26761 \begin_inset Flex Code
26762 status collapsed
26763
26764 \begin_layout Plain Layout
26765 PreambleDefEnd
26766 \end_layout
26767
26768 \end_inset
26769
26770 .
26771  They can be used by the templates in the 
26772 \begin_inset Flex Code
26773 status collapsed
26774
26775 \begin_layout Plain Layout
26776 Format
26777 \end_layout
26778
26779 \end_inset
26780
26781  section.
26782 \end_layout
26783
26784 \begin_layout Section
26785 The substitution mechanism
26786 \end_layout
26787
26788 \begin_layout Standard
26789 When the external material facility invokes an external program, it is done
26790  on the basis of a command defined in the template configuration file.
26791  These commands can contain various macros that are expanded before execution.
26792  Execution always take place in the directory of the containing document.
26793 \end_layout
26794
26795 \begin_layout Standard
26796 Also, whenever external material is to be displayed, the name will be produced
26797  by the substitution mechanism, and most other commands in the template
26798  definition support substitution as well.
26799 \end_layout
26800
26801 \begin_layout Standard
26802 The available macros are the following:
26803 \end_layout
26804
26805 \begin_layout Description
26806 \begin_inset Flex Code
26807 status collapsed
26808
26809 \begin_layout Plain Layout
26810 $$AbsOrRelPathMaster
26811 \end_layout
26812
26813 \end_inset
26814
26815  The file path, absolute or relative to the master \SpecialChar LyX
26816  document.
26817 \end_layout
26818
26819 \begin_layout Description
26820 \begin_inset Flex Code
26821 status collapsed
26822
26823 \begin_layout Plain Layout
26824 $$AbsOrRelPathParent
26825 \end_layout
26826
26827 \end_inset
26828
26829  The file path, absolute or relative to the \SpecialChar LyX
26830  document.
26831 \end_layout
26832
26833 \begin_layout Description
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 $$AbsPath
26839 \end_layout
26840
26841 \end_inset
26842
26843  The absolute file path.
26844 \end_layout
26845
26846 \begin_layout Description
26847 \begin_inset Flex Code
26848 status collapsed
26849
26850 \begin_layout Plain Layout
26851 $$Basename
26852 \end_layout
26853
26854 \end_inset
26855
26856  The filename without path and without the extension.
26857 \end_layout
26858
26859 \begin_layout Description
26860 \begin_inset Flex Code
26861 status collapsed
26862
26863 \begin_layout Plain Layout
26864 $$Contents(
26865 \begin_inset Quotes eld
26866 \end_inset
26867
26868 filename.ext
26869 \begin_inset Quotes erd
26870 \end_inset
26871
26872 )
26873 \end_layout
26874
26875 \end_inset
26876
26877  This macro will expand to the contents of the file with the name 
26878 \begin_inset Flex Code
26879 status collapsed
26880
26881 \begin_layout Plain Layout
26882 filename.ext
26883 \end_layout
26884
26885 \end_inset
26886
26887 .
26888 \end_layout
26889
26890 \begin_layout Description
26891 \begin_inset Flex Code
26892 status collapsed
26893
26894 \begin_layout Plain Layout
26895 $$Extension
26896 \end_layout
26897
26898 \end_inset
26899
26900  The file extension (including the dot).
26901 \end_layout
26902
26903 \begin_layout Description
26904 \begin_inset Flex Code
26905 status collapsed
26906
26907 \begin_layout Plain Layout
26908 $$pngOrjpg
26909 \end_layout
26910
26911 \end_inset
26912
26913  This will be the string 
26914 \begin_inset Quotes eld
26915 \end_inset
26916
26917 jpg
26918 \begin_inset Quotes erd
26919 \end_inset
26920
26921  if the file is in JPEG format, otherwise it will be the string 
26922 \begin_inset Quotes eld
26923 \end_inset
26924
26925 png
26926 \begin_inset Quotes erd
26927 \end_inset
26928
26929 .
26930  This is useful to avoid uneeded conversions for output formats that support
26931  both PNG and JPEG fomats.
26932  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26933  output
26934  format.
26935 \end_layout
26936
26937 \begin_layout Description
26938 \begin_inset Flex Code
26939 status collapsed
26940
26941 \begin_layout Plain Layout
26942 $$FName
26943 \end_layout
26944
26945 \end_inset
26946
26947  The filename of the file specified in the external material dialog.
26948  This is either an absolute name, or it is relative to the \SpecialChar LyX
26949  document.
26950 \end_layout
26951
26952 \begin_layout Description
26953 \begin_inset Flex Code
26954 status collapsed
26955
26956 \begin_layout Plain Layout
26957 $$FPath
26958 \end_layout
26959
26960 \end_inset
26961
26962  The path part of 
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 $$FName
26968 \end_layout
26969
26970 \end_inset
26971
26972  (absolute name or relative to the \SpecialChar LyX
26973  document).
26974 \end_layout
26975
26976 \begin_layout Description
26977 \begin_inset Flex Code
26978 status collapsed
26979
26980 \begin_layout Plain Layout
26981 $$RelPathMaster
26982 \end_layout
26983
26984 \end_inset
26985
26986  The file path, relative to the master \SpecialChar LyX
26987  document.
26988 \end_layout
26989
26990 \begin_layout Description
26991 \begin_inset Flex Code
26992 status collapsed
26993
26994 \begin_layout Plain Layout
26995 $$RelPathParent
26996 \end_layout
26997
26998 \end_inset
26999
27000  The file path, relative to the \SpecialChar LyX
27001  document.
27002 \end_layout
27003
27004 \begin_layout Description
27005 \begin_inset Flex Code
27006 status collapsed
27007
27008 \begin_layout Plain Layout
27009 $$Sysdir
27010 \end_layout
27011
27012 \end_inset
27013
27014  This macro will expand to the absolute path of the system directory.
27015  This is typically used to point to the various helper scripts that are
27016  bundled with \SpecialChar LyX
27017 .
27018 \end_layout
27019
27020 \begin_layout Description
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025 $$Tempname
27026 \end_layout
27027
27028 \end_inset
27029
27030  A name and full path to a temporary file which will be automatically deleted
27031  whenever the containing document is closed, or the external material insertion
27032  deleted.
27033 \end_layout
27034
27035 \begin_layout Standard
27036 All path macros contain a trailing directory separator, so you can construct
27037  e.
27038 \begin_inset space \thinspace{}
27039 \end_inset
27040
27041 g.
27042 \begin_inset space \space{}
27043 \end_inset
27044
27045 the absolute filename with 
27046 \begin_inset Flex Code
27047 status collapsed
27048
27049 \begin_layout Plain Layout
27050 $$AbsPath$$Basename$$Extension
27051 \end_layout
27052
27053 \end_inset
27054
27055 .
27056 \end_layout
27057
27058 \begin_layout Standard
27059 The macros above are substituted in all commands unless otherwise noted.
27060  The command 
27061 \begin_inset Flex Code
27062 status collapsed
27063
27064 \begin_layout Plain Layout
27065 Product
27066 \end_layout
27067
27068 \end_inset
27069
27070  supports additionally the following substitutions if they are enabled by
27071  the 
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 Transform
27077 \end_layout
27078
27079 \end_inset
27080
27081  and 
27082 \begin_inset Flex Code
27083 status collapsed
27084
27085 \begin_layout Plain Layout
27086 TransformCommand
27087 \end_layout
27088
27089 \end_inset
27090
27091  commands:
27092 \end_layout
27093
27094 \begin_layout Description
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 $$ResizeFront
27100 \end_layout
27101
27102 \end_inset
27103
27104  The front part of the resize command.
27105 \end_layout
27106
27107 \begin_layout Description
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 $$ResizeBack
27113 \end_layout
27114
27115 \end_inset
27116
27117  The back part of the resize command.
27118 \end_layout
27119
27120 \begin_layout Description
27121 \begin_inset Flex Code
27122 status collapsed
27123
27124 \begin_layout Plain Layout
27125 $$RotateFront
27126 \end_layout
27127
27128 \end_inset
27129
27130  The front part of the rotation command.
27131 \end_layout
27132
27133 \begin_layout Description
27134 \begin_inset Flex Code
27135 status collapsed
27136
27137 \begin_layout Plain Layout
27138 $$RotateBack
27139 \end_layout
27140
27141 \end_inset
27142
27143  The back part of the rotation command.
27144 \end_layout
27145
27146 \begin_layout Standard
27147 The value string of the 
27148 \begin_inset Flex Code
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 Option
27153 \end_layout
27154
27155 \end_inset
27156
27157  command supports additionally the following substitutions if they are enabled
27158  by the 
27159 \begin_inset Flex Code
27160 status collapsed
27161
27162 \begin_layout Plain Layout
27163 Transform
27164 \end_layout
27165
27166 \end_inset
27167
27168  and 
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173 TransformOption
27174 \end_layout
27175
27176 \end_inset
27177
27178  commands:
27179 \end_layout
27180
27181 \begin_layout Description
27182 \begin_inset Flex Code
27183 status collapsed
27184
27185 \begin_layout Plain Layout
27186 $$Clip
27187 \end_layout
27188
27189 \end_inset
27190
27191  The clip option.
27192 \end_layout
27193
27194 \begin_layout Description
27195 \begin_inset Flex Code
27196 status collapsed
27197
27198 \begin_layout Plain Layout
27199 $$Extra
27200 \end_layout
27201
27202 \end_inset
27203
27204  The extra option.
27205 \end_layout
27206
27207 \begin_layout Description
27208 \begin_inset Flex Code
27209 status collapsed
27210
27211 \begin_layout Plain Layout
27212 $$Resize
27213 \end_layout
27214
27215 \end_inset
27216
27217  The resize option.
27218 \end_layout
27219
27220 \begin_layout Description
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225 $$Rotate
27226 \end_layout
27227
27228 \end_inset
27229
27230  The rotation option.
27231 \end_layout
27232
27233 \begin_layout Standard
27234 You may ask why there are so many path macros.
27235  There are mainly two reasons:
27236 \end_layout
27237
27238 \begin_layout Enumerate
27239 Relative and absolute file names should remain relative or absolute, respectivel
27240 y.
27241  Users may have reasons to prefer either form.
27242  Relative names are useful for portable documents that should work on different
27243  machines, for example.
27244  Absolute names may be required by some programs.
27245 \end_layout
27246
27247 \begin_layout Enumerate
27248 \SpecialChar LaTeX
27249  treats relative file names differently than \SpecialChar LyX
27250  and other programs in nested
27251  included files.
27252  For \SpecialChar LyX
27253 , a relative file name is always relative to the document that contains
27254  the file name.
27255  For \SpecialChar LaTeX
27256 , it is always relative to the master document.
27257  These two definitions are identical if you have only one document, but
27258  differ if you have a master document that includes part documents.
27259  That means that relative filenames must be transformed when presented to
27260  \SpecialChar LaTeX
27261 .
27262  Fortunately \SpecialChar LyX
27263  does this automatically for you if you choose the right macros.
27264 \end_layout
27265
27266 \begin_layout Standard
27267 So which path macro should be used in new template definitions? The rule
27268  is not difficult:
27269 \end_layout
27270
27271 \begin_layout Itemize
27272 Use 
27273 \begin_inset Flex Code
27274 status collapsed
27275
27276 \begin_layout Plain Layout
27277 $$AbsPath
27278 \end_layout
27279
27280 \end_inset
27281
27282  if an absolute path is required.
27283 \end_layout
27284
27285 \begin_layout Itemize
27286 Use 
27287 \begin_inset Flex Code
27288 status collapsed
27289
27290 \begin_layout Plain Layout
27291 $$AbsOrRelPathMaster
27292 \end_layout
27293
27294 \end_inset
27295
27296  if the substituted string is some kind of \SpecialChar LaTeX
27297  input.
27298 \end_layout
27299
27300 \begin_layout Itemize
27301 Else use 
27302 \begin_inset Flex Code
27303 status collapsed
27304
27305 \begin_layout Plain Layout
27306 $$AbsOrRelPathParent
27307 \end_layout
27308
27309 \end_inset
27310
27311  in order to preserve the user's choice.
27312 \end_layout
27313
27314 \begin_layout Standard
27315 There are special cases where this rule does not work and e.
27316 \begin_inset space \thinspace{}
27317 \end_inset
27318
27319 g.
27320 \begin_inset space \space{}
27321 \end_inset
27322
27323 relative names are needed, but normally it will work just fine.
27324  One example for such a case is the command 
27325 \begin_inset Flex Code
27326 status collapsed
27327
27328 \begin_layout Plain Layout
27329 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27330 \end_layout
27331
27332 \end_inset
27333
27334  in the XFig template above: We can't use the absolute name because the
27335  copier for 
27336 \begin_inset Flex Code
27337 status collapsed
27338
27339 \begin_layout Plain Layout
27340 .pstex_t
27341 \end_layout
27342
27343 \end_inset
27344
27345  files needs the relative name in order to rewrite the file content.
27346 \end_layout
27347
27348 \begin_layout Section
27349 Security discussion
27350 \begin_inset CommandInset label
27351 LatexCommand label
27352 name "sec:Security-discussion"
27353
27354 \end_inset
27355
27356
27357 \end_layout
27358
27359 \begin_layout Standard
27360 The external material feature interfaces with a lot of external programs
27361  and does so automatically, so we have to consider the security implications
27362  of this.
27363  In particular, since you have the option of including your own filenames
27364  and/or parameter strings and those are expanded into a command, it seems
27365  that it would be possible to create a malicious document which executes
27366  arbitrary commands when a user views or prints the document.
27367  This is something we definitely want to avoid.
27368 \end_layout
27369
27370 \begin_layout Standard
27371 However, since the external program commands are specified in the template
27372  configuration file only, there are no security issues if \SpecialChar LyX
27373  is properly configure
27374 d with safe templates only.
27375  This is so because the external programs are invoked with the 
27376 \begin_inset Flex Code
27377 status collapsed
27378
27379 \begin_layout Plain Layout
27380 execvp
27381 \end_layout
27382
27383 \end_inset
27384
27385 -system call rather than the 
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 system
27391 \end_layout
27392
27393 \end_inset
27394
27395  system-call, so it's not possible to execute arbitrary commands from the
27396  filename or parameter section via the shell.
27397 \end_layout
27398
27399 \begin_layout Standard
27400 This also implies that you are restricted in what command strings you can
27401  use in the external material templates.
27402  In particular, pipes and redirection are not readily available.
27403  This has to be so if \SpecialChar LyX
27404  should remain safe.
27405  If you want to use some of the shell features, you should write a safe
27406  script to do this in a controlled manner, and then invoke the script from
27407  the command string.
27408  
27409 \end_layout
27410
27411 \begin_layout Standard
27412 It is possible to design a template that interacts directly with the shell,
27413  but since this would allow a malicious user to execute arbitrary commands
27414  by writing clever filenames and/or parameters, we generally recommend that
27415  you only use safe scripts that work with the 
27416 \begin_inset Flex Code
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 execvp
27421 \end_layout
27422
27423 \end_inset
27424
27425  system call in a controlled manner.
27426  Of course, for use in a controlled environment, it can be tempting to just
27427  fall back to use ordinary shell scripts.
27428  If you do so, be aware that you 
27429 \emph on
27430 will
27431 \emph default
27432  provide an easily exploitable security hole in your system.
27433  Of course it stands to reason that such unsafe templates will never be
27434  included in the standard \SpecialChar LyX
27435  distribution, although we do encourage people
27436  to submit new templates in the open source tradition.
27437  But \SpecialChar LyX
27438  as shipped from the official distribution channels will never have
27439  unsafe templates.
27440 \end_layout
27441
27442 \begin_layout Standard
27443 Including external material provides a lot of power, and you have to be
27444  careful not to introduce security hazards with this power.
27445  A subtle error in a single line in an innocent looking script can open
27446  the door to huge security problems.
27447  So if you do not fully understand the issues, we recommend that you consult
27448  a knowledgeable security professional or the \SpecialChar LyX
27449  development team if you have
27450  any questions about whether a given template is safe or not.
27451  And do this before you use it in an uncontrolled environment.
27452 \end_layout
27453
27454 \begin_layout Chapter
27455 \start_of_appendix
27456 List of supported \SpecialChar LyX
27457  functions to be used in layouts
27458 \begin_inset CommandInset label
27459 LatexCommand label
27460 name "chap:List-of-functions"
27461
27462 \end_inset
27463
27464
27465 \end_layout
27466
27467 \begin_layout Standard
27468 \align center
27469 \begin_inset Tabular
27470 <lyxtabular version="3" rows="11" columns="8">
27471 <features tabularvalignment="middle">
27472 <column alignment="left" valignment="top">
27473 <column alignment="left" valignment="top">
27474 <column alignment="left" valignment="top">
27475 <column alignment="left" valignment="top">
27476 <column alignment="left" valignment="top">
27477 <column alignment="left" valignment="top">
27478 <column alignment="left" valignment="top">
27479 <column alignment="left" valignment="top">
27480 <row>
27481 <cell alignment="left" valignment="top" usebox="none">
27482 \begin_inset Text
27483
27484 \begin_layout Plain Layout
27485 accents
27486 \end_layout
27487
27488 \end_inset
27489 </cell>
27490 <cell alignment="left" valignment="top" usebox="none">
27491 \begin_inset Text
27492
27493 \begin_layout Plain Layout
27494 booktabs
27495 \end_layout
27496
27497 \end_inset
27498 </cell>
27499 <cell alignment="left" valignment="top" usebox="none">
27500 \begin_inset Text
27501
27502 \begin_layout Plain Layout
27503 feyn
27504 \end_layout
27505
27506 \end_inset
27507 </cell>
27508 <cell alignment="left" valignment="top" usebox="none">
27509 \begin_inset Text
27510
27511 \begin_layout Plain Layout
27512 listings
27513 \end_layout
27514
27515 \end_inset
27516 </cell>
27517 <cell alignment="center" valignment="top" usebox="none">
27518 \begin_inset Text
27519
27520 \begin_layout Plain Layout
27521 natbib
27522 \end_layout
27523
27524 \end_inset
27525 </cell>
27526 <cell alignment="center" valignment="top" usebox="none">
27527 \begin_inset Text
27528
27529 \begin_layout Plain Layout
27530 rotfloat
27531 \end_layout
27532
27533 \end_inset
27534 </cell>
27535 <cell alignment="center" valignment="top" usebox="none">
27536 \begin_inset Text
27537
27538 \begin_layout Plain Layout
27539 tfrupee
27540 \end_layout
27541
27542 \end_inset
27543 </cell>
27544 <cell alignment="center" valignment="top" usebox="none">
27545 \begin_inset Text
27546
27547 \begin_layout Plain Layout
27548 wasysym
27549 \end_layout
27550
27551 \end_inset
27552 </cell>
27553 </row>
27554 <row>
27555 <cell alignment="left" valignment="top" usebox="none">
27556 \begin_inset Text
27557
27558 \begin_layout Plain Layout
27559 amsbsy
27560 \end_layout
27561
27562 \end_inset
27563 </cell>
27564 <cell alignment="left" valignment="top" usebox="none">
27565 \begin_inset Text
27566
27567 \begin_layout Plain Layout
27568 calc
27569 \end_layout
27570
27571 \end_inset
27572 </cell>
27573 <cell alignment="left" valignment="top" usebox="none">
27574 \begin_inset Text
27575
27576 \begin_layout Plain Layout
27577 fixltx2e
27578 \end_layout
27579
27580 \end_inset
27581 </cell>
27582 <cell alignment="left" valignment="top" usebox="none">
27583 \begin_inset Text
27584
27585 \begin_layout Plain Layout
27586 longtable
27587 \end_layout
27588
27589 \end_inset
27590 </cell>
27591 <cell alignment="center" valignment="top" usebox="none">
27592 \begin_inset Text
27593
27594 \begin_layout Plain Layout
27595 nomencl
27596 \end_layout
27597
27598 \end_inset
27599 </cell>
27600 <cell alignment="center" valignment="top" usebox="none">
27601 \begin_inset Text
27602
27603 \begin_layout Plain Layout
27604 rsphrase
27605 \end_layout
27606
27607 \end_inset
27608 </cell>
27609 <cell alignment="center" valignment="top" usebox="none">
27610 \begin_inset Text
27611
27612 \begin_layout Plain Layout
27613 tipa
27614 \end_layout
27615
27616 \end_inset
27617 </cell>
27618 <cell alignment="center" valignment="top" usebox="none">
27619 \begin_inset Text
27620
27621 \begin_layout Plain Layout
27622 wrapfig
27623 \end_layout
27624
27625 \end_inset
27626 </cell>
27627 </row>
27628 <row>
27629 <cell alignment="left" valignment="top" usebox="none">
27630 \begin_inset Text
27631
27632 \begin_layout Plain Layout
27633 amscd
27634 \end_layout
27635
27636 \end_inset
27637 </cell>
27638 <cell alignment="left" valignment="top" usebox="none">
27639 \begin_inset Text
27640
27641 \begin_layout Plain Layout
27642 CJK
27643 \end_layout
27644
27645 \end_inset
27646 </cell>
27647 <cell alignment="left" valignment="top" usebox="none">
27648 \begin_inset Text
27649
27650 \begin_layout Plain Layout
27651 float
27652 \end_layout
27653
27654 \end_inset
27655 </cell>
27656 <cell alignment="left" valignment="top" usebox="none">
27657 \begin_inset Text
27658
27659 \begin_layout Plain Layout
27660 lyxskak
27661 \end_layout
27662
27663 \end_inset
27664 </cell>
27665 <cell alignment="center" valignment="top" usebox="none">
27666 \begin_inset Text
27667
27668 \begin_layout Plain Layout
27669 pdfcolmk
27670 \end_layout
27671
27672 \end_inset
27673 </cell>
27674 <cell alignment="center" valignment="top" usebox="none">
27675 \begin_inset Text
27676
27677 \begin_layout Plain Layout
27678 setspace
27679 \end_layout
27680
27681 \end_inset
27682 </cell>
27683 <cell alignment="center" valignment="top" usebox="none">
27684 \begin_inset Text
27685
27686 \begin_layout Plain Layout
27687 tipx
27688 \end_layout
27689
27690 \end_inset
27691 </cell>
27692 <cell alignment="center" valignment="top" usebox="none">
27693 \begin_inset Text
27694
27695 \begin_layout Plain Layout
27696 xargs
27697 \end_layout
27698
27699 \end_inset
27700 </cell>
27701 </row>
27702 <row>
27703 <cell alignment="left" valignment="top" usebox="none">
27704 \begin_inset Text
27705
27706 \begin_layout Plain Layout
27707 amsmath
27708 \end_layout
27709
27710 \end_inset
27711 </cell>
27712 <cell alignment="left" valignment="top" usebox="none">
27713 \begin_inset Text
27714
27715 \begin_layout Plain Layout
27716 color
27717 \end_layout
27718
27719 \end_inset
27720 </cell>
27721 <cell alignment="left" valignment="top" usebox="none">
27722 \begin_inset Text
27723
27724 \begin_layout Plain Layout
27725 framed
27726 \end_layout
27727
27728 \end_inset
27729 </cell>
27730 <cell alignment="left" valignment="top" usebox="none">
27731 \begin_inset Text
27732
27733 \begin_layout Plain Layout
27734 makeidx
27735 \end_layout
27736
27737 \end_inset
27738 </cell>
27739 <cell alignment="center" valignment="top" usebox="none">
27740 \begin_inset Text
27741
27742 \begin_layout Plain Layout
27743 pdfpages
27744 \end_layout
27745
27746 \end_inset
27747 </cell>
27748 <cell alignment="center" valignment="top" usebox="none">
27749 \begin_inset Text
27750
27751 \begin_layout Plain Layout
27752 shapepar
27753 \end_layout
27754
27755 \end_inset
27756 </cell>
27757 <cell alignment="center" valignment="top" usebox="none">
27758 \begin_inset Text
27759
27760 \begin_layout Plain Layout
27761 tone
27762 \end_layout
27763
27764 \end_inset
27765 </cell>
27766 <cell alignment="center" valignment="top" usebox="none">
27767 \begin_inset Text
27768
27769 \begin_layout Plain Layout
27770 xcolor
27771 \end_layout
27772
27773 \end_inset
27774 </cell>
27775 </row>
27776 <row>
27777 <cell alignment="left" valignment="top" usebox="none">
27778 \begin_inset Text
27779
27780 \begin_layout Plain Layout
27781 amssymb
27782 \end_layout
27783
27784 \end_inset
27785 </cell>
27786 <cell alignment="left" valignment="top" usebox="none">
27787 \begin_inset Text
27788
27789 \begin_layout Plain Layout
27790 covington
27791 \end_layout
27792
27793 \end_inset
27794 </cell>
27795 <cell alignment="left" valignment="top" usebox="none">
27796 \begin_inset Text
27797
27798 \begin_layout Plain Layout
27799 graphicx
27800 \end_layout
27801
27802 \end_inset
27803 </cell>
27804 <cell alignment="left" valignment="top" usebox="none">
27805 \begin_inset Text
27806
27807 \begin_layout Plain Layout
27808 marvosym
27809 \end_layout
27810
27811 \end_inset
27812 </cell>
27813 <cell alignment="center" valignment="top" usebox="none">
27814 \begin_inset Text
27815
27816 \begin_layout Plain Layout
27817 pifont
27818 \end_layout
27819
27820 \end_inset
27821 </cell>
27822 <cell alignment="center" valignment="top" usebox="none">
27823 \begin_inset Text
27824
27825 \begin_layout Plain Layout
27826 slashed
27827 \end_layout
27828
27829 \end_inset
27830 </cell>
27831 <cell alignment="center" valignment="top" usebox="none">
27832 \begin_inset Text
27833
27834 \begin_layout Plain Layout
27835 txfonts
27836 \end_layout
27837
27838 \end_inset
27839 </cell>
27840 <cell alignment="center" valignment="top" usebox="none">
27841 \begin_inset Text
27842
27843 \begin_layout Plain Layout
27844 xy
27845 \end_layout
27846
27847 \end_inset
27848 </cell>
27849 </row>
27850 <row>
27851 <cell alignment="left" valignment="top" usebox="none">
27852 \begin_inset Text
27853
27854 \begin_layout Plain Layout
27855 amstext
27856 \end_layout
27857
27858 \end_inset
27859 </cell>
27860 <cell alignment="left" valignment="top" usebox="none">
27861 \begin_inset Text
27862
27863 \begin_layout Plain Layout
27864 csquotes
27865 \end_layout
27866
27867 \end_inset
27868 </cell>
27869 <cell alignment="left" valignment="top" usebox="none">
27870 \begin_inset Text
27871
27872 \begin_layout Plain Layout
27873 hhline
27874 \end_layout
27875
27876 \end_inset
27877 </cell>
27878 <cell alignment="left" valignment="top" usebox="none">
27879 \begin_inset Text
27880
27881 \begin_layout Plain Layout
27882 mathdesign
27883 \end_layout
27884
27885 \end_inset
27886 </cell>
27887 <cell alignment="center" valignment="top" usebox="none">
27888 \begin_inset Text
27889
27890 \begin_layout Plain Layout
27891 pmboxdraw
27892 \end_layout
27893
27894 \end_inset
27895 </cell>
27896 <cell alignment="center" valignment="top" usebox="none">
27897 \begin_inset Text
27898
27899 \begin_layout Plain Layout
27900 soul
27901 \end_layout
27902
27903 \end_inset
27904 </cell>
27905 <cell alignment="center" valignment="top" usebox="none">
27906 \begin_inset Text
27907
27908 \begin_layout Plain Layout
27909 ulem
27910 \end_layout
27911
27912 \end_inset
27913 </cell>
27914 <cell alignment="center" valignment="top" usebox="none">
27915 \begin_inset Text
27916
27917 \begin_layout Plain Layout
27918 yhmath
27919 \end_layout
27920
27921 \end_inset
27922 </cell>
27923 </row>
27924 <row>
27925 <cell alignment="left" valignment="top" usebox="none">
27926 \begin_inset Text
27927
27928 \begin_layout Plain Layout
27929 amsthm
27930 \end_layout
27931
27932 \end_inset
27933 </cell>
27934 <cell alignment="left" valignment="top" usebox="none">
27935 \begin_inset Text
27936
27937 \begin_layout Plain Layout
27938 dvipost
27939 \end_layout
27940
27941 \end_inset
27942 </cell>
27943 <cell alignment="left" valignment="top" usebox="none">
27944 \begin_inset Text
27945
27946 \begin_layout Plain Layout
27947 hyperref
27948 \end_layout
27949
27950 \end_inset
27951 </cell>
27952 <cell alignment="left" valignment="top" usebox="none">
27953 \begin_inset Text
27954
27955 \begin_layout Plain Layout
27956 mathdots
27957 \end_layout
27958
27959 \end_inset
27960 </cell>
27961 <cell alignment="center" valignment="top" usebox="none">
27962 \begin_inset Text
27963
27964 \begin_layout Plain Layout
27965 polyglossia
27966 \end_layout
27967
27968 \end_inset
27969 </cell>
27970 <cell alignment="center" valignment="top" usebox="none">
27971 \begin_inset Text
27972
27973 \begin_layout Plain Layout
27974 splitidx
27975 \end_layout
27976
27977 \end_inset
27978 </cell>
27979 <cell alignment="center" valignment="top" usebox="none">
27980 \begin_inset Text
27981
27982 \begin_layout Plain Layout
27983 undertilde
27984 \end_layout
27985
27986 \end_inset
27987 </cell>
27988 <cell alignment="center" valignment="top" usebox="none">
27989 \begin_inset Text
27990
27991 \begin_layout Plain Layout
27992
27993 \end_layout
27994
27995 \end_inset
27996 </cell>
27997 </row>
27998 <row>
27999 <cell alignment="left" valignment="top" usebox="none">
28000 \begin_inset Text
28001
28002 \begin_layout Plain Layout
28003 array
28004 \end_layout
28005
28006 \end_inset
28007 </cell>
28008 <cell alignment="left" valignment="top" usebox="none">
28009 \begin_inset Text
28010
28011 \begin_layout Plain Layout
28012 endnotes
28013 \end_layout
28014
28015 \end_inset
28016 </cell>
28017 <cell alignment="left" valignment="top" usebox="none">
28018 \begin_inset Text
28019
28020 \begin_layout Plain Layout
28021 ifsym
28022 \end_layout
28023
28024 \end_inset
28025 </cell>
28026 <cell alignment="left" valignment="top" usebox="none">
28027 \begin_inset Text
28028
28029 \begin_layout Plain Layout
28030 mathrsfs
28031 \end_layout
28032
28033 \end_inset
28034 </cell>
28035 <cell alignment="center" valignment="top" usebox="none">
28036 \begin_inset Text
28037
28038 \begin_layout Plain Layout
28039 prettyref
28040 \end_layout
28041
28042 \end_inset
28043 </cell>
28044 <cell alignment="center" valignment="top" usebox="none">
28045 \begin_inset Text
28046
28047 \begin_layout Plain Layout
28048 subfig
28049 \end_layout
28050
28051 \end_inset
28052 </cell>
28053 <cell alignment="center" valignment="top" usebox="none">
28054 \begin_inset Text
28055
28056 \begin_layout Plain Layout
28057 units
28058 \end_layout
28059
28060 \end_inset
28061 </cell>
28062 <cell alignment="center" valignment="top" usebox="none">
28063 \begin_inset Text
28064
28065 \begin_layout Plain Layout
28066
28067 \end_layout
28068
28069 \end_inset
28070 </cell>
28071 </row>
28072 <row>
28073 <cell alignment="left" valignment="top" usebox="none">
28074 \begin_inset Text
28075
28076 \begin_layout Plain Layout
28077 ascii
28078 \end_layout
28079
28080 \end_inset
28081 </cell>
28082 <cell alignment="left" valignment="top" usebox="none">
28083 \begin_inset Text
28084
28085 \begin_layout Plain Layout
28086 enumitem
28087 \end_layout
28088
28089 \end_inset
28090 </cell>
28091 <cell alignment="left" valignment="top" usebox="none">
28092 \begin_inset Text
28093
28094 \begin_layout Plain Layout
28095 ifthen
28096 \end_layout
28097
28098 \end_inset
28099 </cell>
28100 <cell alignment="left" valignment="top" usebox="none">
28101 \begin_inset Text
28102
28103 \begin_layout Plain Layout
28104 mhchem
28105 \end_layout
28106
28107 \end_inset
28108 </cell>
28109 <cell alignment="center" valignment="top" usebox="none">
28110 \begin_inset Text
28111
28112 \begin_layout Plain Layout
28113 pxfonts
28114 \end_layout
28115
28116 \end_inset
28117 </cell>
28118 <cell alignment="center" valignment="top" usebox="none">
28119 \begin_inset Text
28120
28121 \begin_layout Plain Layout
28122 subscript
28123 \end_layout
28124
28125 \end_inset
28126 </cell>
28127 <cell alignment="center" valignment="top" usebox="none">
28128 \begin_inset Text
28129
28130 \begin_layout Plain Layout
28131 url
28132 \end_layout
28133
28134 \end_inset
28135 </cell>
28136 <cell alignment="center" valignment="top" usebox="none">
28137 \begin_inset Text
28138
28139 \begin_layout Plain Layout
28140
28141 \end_layout
28142
28143 \end_inset
28144 </cell>
28145 </row>
28146 <row>
28147 <cell alignment="left" valignment="top" usebox="none">
28148 \begin_inset Text
28149
28150 \begin_layout Plain Layout
28151 bbding
28152 \end_layout
28153
28154 \end_inset
28155 </cell>
28156 <cell alignment="left" valignment="top" usebox="none">
28157 \begin_inset Text
28158
28159 \begin_layout Plain Layout
28160 esint
28161 \end_layout
28162
28163 \end_inset
28164 </cell>
28165 <cell alignment="left" valignment="top" usebox="none">
28166 \begin_inset Text
28167
28168 \begin_layout Plain Layout
28169 jurabib
28170 \end_layout
28171
28172 \end_inset
28173 </cell>
28174 <cell alignment="left" valignment="top" usebox="none">
28175 \begin_inset Text
28176
28177 \begin_layout Plain Layout
28178 multicol
28179 \end_layout
28180
28181 \end_inset
28182 </cell>
28183 <cell alignment="center" valignment="top" usebox="none">
28184 \begin_inset Text
28185
28186 \begin_layout Plain Layout
28187 refstyle
28188 \end_layout
28189
28190 \end_inset
28191 </cell>
28192 <cell alignment="center" valignment="top" usebox="none">
28193 \begin_inset Text
28194
28195 \begin_layout Plain Layout
28196 textcomp
28197 \end_layout
28198
28199 \end_inset
28200 </cell>
28201 <cell alignment="center" valignment="top" usebox="none">
28202 \begin_inset Text
28203
28204 \begin_layout Plain Layout
28205 varioref
28206 \end_layout
28207
28208 \end_inset
28209 </cell>
28210 <cell alignment="center" valignment="top" usebox="none">
28211 \begin_inset Text
28212
28213 \begin_layout Plain Layout
28214
28215 \end_layout
28216
28217 \end_inset
28218 </cell>
28219 </row>
28220 <row>
28221 <cell alignment="center" valignment="top" usebox="none">
28222 \begin_inset Text
28223
28224 \begin_layout Plain Layout
28225 bm
28226 \end_layout
28227
28228 \end_inset
28229 </cell>
28230 <cell alignment="center" valignment="top" usebox="none">
28231 \begin_inset Text
28232
28233 \begin_layout Plain Layout
28234 fancybox
28235 \end_layout
28236
28237 \end_inset
28238 </cell>
28239 <cell alignment="center" valignment="top" usebox="none">
28240 \begin_inset Text
28241
28242 \begin_layout Plain Layout
28243 latexsym
28244 \end_layout
28245
28246 \end_inset
28247 </cell>
28248 <cell alignment="center" valignment="top" usebox="none">
28249 \begin_inset Text
28250
28251 \begin_layout Plain Layout
28252 multirow
28253 \end_layout
28254
28255 \end_inset
28256 </cell>
28257 <cell alignment="center" valignment="top" usebox="none">
28258 \begin_inset Text
28259
28260 \begin_layout Plain Layout
28261 rotating
28262 \end_layout
28263
28264 \end_inset
28265 </cell>
28266 <cell alignment="center" valignment="top" usebox="none">
28267 \begin_inset Text
28268
28269 \begin_layout Plain Layout
28270 textgreek
28271 \end_layout
28272
28273 \end_inset
28274 </cell>
28275 <cell alignment="center" valignment="top" usebox="none">
28276 \begin_inset Text
28277
28278 \begin_layout Plain Layout
28279 verbatim
28280 \end_layout
28281
28282 \end_inset
28283 </cell>
28284 <cell alignment="center" valignment="top" usebox="none">
28285 \begin_inset Text
28286
28287 \begin_layout Plain Layout
28288
28289 \end_layout
28290
28291 \end_inset
28292 </cell>
28293 </row>
28294 </lyxtabular>
28295
28296 \end_inset
28297
28298
28299 \end_layout
28300
28301 \begin_layout Chapter
28302 Names of available colors to be used in layouts
28303 \begin_inset CommandInset label
28304 LatexCommand label
28305 name "chap:Names-of-colors"
28306
28307 \end_inset
28308
28309
28310 \end_layout
28311
28312 \begin_layout Standard
28313 The colors listed below are the standard colors and those that you can adjust
28314  in the \SpecialChar LyX
28315  preferences.
28316 \end_layout
28317
28318 \begin_layout Section
28319 Color functions
28320 \end_layout
28321
28322 \begin_layout Standard
28323 The following are no real colors, but rather act on color definitions:
28324 \end_layout
28325
28326 \begin_layout Description
28327 ignore The color is ignored
28328 \end_layout
28329
28330 \begin_layout Description
28331 inherit The color is inherited
28332 \end_layout
28333
28334 \begin_layout Description
28335 none
28336 \family roman
28337 \series medium
28338 \shape up
28339 \size normal
28340 \emph off
28341 \bar no
28342 \strikeout off
28343 \uuline off
28344 \uwave off
28345 \noun off
28346 \color none
28347  No particular color – clear or default
28348 \end_layout
28349
28350 \begin_layout Section
28351 Static colors
28352 \end_layout
28353
28354 \begin_layout Standard
28355 These are fixed colors that cannot me customized:
28356 \end_layout
28357
28358 \begin_layout Description
28359 black
28360 \end_layout
28361
28362 \begin_layout Description
28363 white
28364 \end_layout
28365
28366 \begin_layout Description
28367 blue
28368 \end_layout
28369
28370 \begin_layout Description
28371 brown
28372 \end_layout
28373
28374 \begin_layout Description
28375 cyan
28376 \end_layout
28377
28378 \begin_layout Description
28379 darkgray
28380 \end_layout
28381
28382 \begin_layout Description
28383 gray
28384 \end_layout
28385
28386 \begin_layout Description
28387 green
28388 \end_layout
28389
28390 \begin_layout Description
28391 lightgray
28392 \end_layout
28393
28394 \begin_layout Description
28395 lime
28396 \end_layout
28397
28398 \begin_layout Description
28399 magenta
28400 \end_layout
28401
28402 \begin_layout Description
28403 olive
28404 \end_layout
28405
28406 \begin_layout Description
28407 orange
28408 \end_layout
28409
28410 \begin_layout Description
28411 pink
28412 \end_layout
28413
28414 \begin_layout Description
28415 purple
28416 \end_layout
28417
28418 \begin_layout Description
28419 red
28420 \end_layout
28421
28422 \begin_layout Description
28423 teal
28424 \end_layout
28425
28426 \begin_layout Description
28427 violet
28428 \end_layout
28429
28430 \begin_layout Description
28431 yellow
28432 \end_layout
28433
28434 \begin_layout Section
28435 Dynamic colors
28436 \end_layout
28437
28438 \begin_layout Standard
28439 These are the colors allocated to specific elements in 
28440 \begin_inset Info
28441 type  "menu"
28442 arg   "dialog-show prefs"
28443 \end_inset
28444
28445 :
28446 \end_layout
28447
28448 \begin_layout Description
28449 added_space Added space color
28450 \end_layout
28451
28452 \begin_layout Description
28453 addedtext Added text color
28454 \end_layout
28455
28456 \begin_layout Description
28457 appendix Appendix marker color
28458 \end_layout
28459
28460 \begin_layout Description
28461 background Background color
28462 \end_layout
28463
28464 \begin_layout Description
28465 bottomarea Bottom area color
28466 \end_layout
28467
28468 \begin_layout Description
28469 branchlabel Label color for branches
28470 \end_layout
28471
28472 \begin_layout Description
28473 buttonbg Color used for button background
28474 \end_layout
28475
28476 \begin_layout Description
28477 buttonframe Color for inset button frames
28478 \end_layout
28479
28480 \begin_layout Description
28481 buttonhoverbg Color used for button background under focus
28482 \end_layout
28483
28484 \begin_layout Description
28485 changebar Changebar color
28486 \end_layout
28487
28488 \begin_layout Description
28489 changedtextauthor1 Changed text color author 1
28490 \end_layout
28491
28492 \begin_layout Description
28493 changedtextauthor2 Changed text color author 2
28494 \end_layout
28495
28496 \begin_layout Description
28497 changedtextauthor3 Changed text color author 3
28498 \end_layout
28499
28500 \begin_layout Description
28501 changedtextauthor4 Changed text color author 4
28502 \end_layout
28503
28504 \begin_layout Description
28505 changedtextauthor5 Changed text color author 5
28506 \end_layout
28507
28508 \begin_layout Description
28509 collapsible Collapsible insets text color
28510 \end_layout
28511
28512 \begin_layout Description
28513 collapsibleframe Collapsible insets framecolor
28514 \end_layout
28515
28516 \begin_layout Description
28517 command Text color for command insets
28518 \end_layout
28519
28520 \begin_layout Description
28521 commandbg Background color for command insets
28522 \end_layout
28523
28524 \begin_layout Description
28525 commandframe Frame color for command insets
28526 \end_layout
28527
28528 \begin_layout Description
28529 comment Label color for comments
28530 \end_layout
28531
28532 \begin_layout Description
28533 commentbg Background color of comments
28534 \end_layout
28535
28536 \begin_layout Description
28537 cursor Cursor color
28538 \end_layout
28539
28540 \begin_layout Description
28541 deletedtext Deleted text color
28542 \end_layout
28543
28544 \begin_layout Description
28545 deletedtextmodifier Deleted text modifying color
28546 \end_layout
28547
28548 \begin_layout Description
28549 depthbar Color for the depth bars in the margin
28550 \end_layout
28551
28552 \begin_layout Description
28553 eolmarker End of line marker color
28554 \end_layout
28555
28556 \begin_layout Description
28557 error Color of the \SpecialChar LaTeX
28558  error box
28559 \end_layout
28560
28561 \begin_layout Description
28562 footlabel Label color for footnotes
28563 \end_layout
28564
28565 \begin_layout Description
28566 foreground Foreground color
28567 \end_layout
28568
28569 \begin_layout Description
28570 graphicsbg Graphics inset background color
28571 \end_layout
28572
28573 \begin_layout Description
28574 greyedoutbg Background color of greyedout inset
28575 \end_layout
28576
28577 \begin_layout Description
28578 greyedoutlabel Label color for greyedout insets
28579 \end_layout
28580
28581 \begin_layout Description
28582 greyedouttext Color for greyedout inset text
28583 \end_layout
28584
28585 \begin_layout Description
28586 indexlabel Label color for index insets
28587 \end_layout
28588
28589 \begin_layout Description
28590 inlinecompletion Inline completion color
28591 \end_layout
28592
28593 \begin_layout Description
28594 insetbg Inset marker background color
28595 \end_layout
28596
28597 \begin_layout Description
28598 insetframe Inset marker frame color
28599 \end_layout
28600
28601 \begin_layout Description
28602 language Color for marking foreign language words
28603 \end_layout
28604
28605 \begin_layout Description
28606 latex Text color in \SpecialChar LaTeX
28607  mode
28608 \end_layout
28609
28610 \begin_layout Description
28611 listingsbg Background color of listings inset
28612 \end_layout
28613
28614 \begin_layout Description
28615 marginlabel Label color for margin notes
28616 \end_layout
28617
28618 \begin_layout Description
28619 math Math inset text color
28620 \end_layout
28621
28622 \begin_layout Description
28623 mathbg Math inset background color
28624 \end_layout
28625
28626 \begin_layout Description
28627 mathcorners Math inset frame color not under focus
28628 \end_layout
28629
28630 \begin_layout Description
28631 mathframe Math inset frame color under focus
28632 \end_layout
28633
28634 \begin_layout Description
28635 mathline Math line color
28636 \end_layout
28637
28638 \begin_layout Description
28639 mathmacrobg Macro math inset background color
28640 \end_layout
28641
28642 \begin_layout Description
28643 mathmacroblend Macro math blended color
28644 \end_layout
28645
28646 \begin_layout Description
28647 mathmacroframe Macro math frame color
28648 \end_layout
28649
28650 \begin_layout Description
28651 mathmacrohoverbg Macro math inset background color hovered
28652 \end_layout
28653
28654 \begin_layout Description
28655 mathmacrolabel Macro math label color
28656 \end_layout
28657
28658 \begin_layout Description
28659 mathmacronewarg Macro template color for new parameters
28660 \end_layout
28661
28662 \begin_layout Description
28663 mathmacrooldarg Macro template color for old parameters
28664 \end_layout
28665
28666 \begin_layout Description
28667 newpage New page color
28668 \end_layout
28669
28670 \begin_layout Description
28671 nonunique_inlinecompletion Inline completion color for the non-unique part
28672 \end_layout
28673
28674 \begin_layout Description
28675 note Label color for notes
28676 \end_layout
28677
28678 \begin_layout Description
28679 notebg Background color of notes
28680 \end_layout
28681
28682 \begin_layout Description
28683 pagebreak Page break/line break color
28684 \end_layout
28685
28686 \begin_layout Description
28687 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28688 \end_layout
28689
28690 \begin_layout Description
28691 phantomtext Text color for phantom insets
28692 \end_layout
28693
28694 \begin_layout Description
28695 preview The color used for previews
28696 \end_layout
28697
28698 \begin_layout Description
28699 previewframe Preview frame color
28700 \end_layout
28701
28702 \begin_layout Description
28703 regexpframe Color for regexp frame
28704 \end_layout
28705
28706 \begin_layout Description
28707 scroll Color that indicates when a row can be scrolled 
28708 \end_layout
28709
28710 \begin_layout Description
28711 selection Background color of selected text
28712 \end_layout
28713
28714 \begin_layout Description
28715 selectiontext Foreground color of selected text
28716 \end_layout
28717
28718 \begin_layout Description
28719 shadedbg Background color of shaded box
28720 \end_layout
28721
28722 \begin_layout Description
28723 special Special chars text color
28724 \end_layout
28725
28726 \begin_layout Description
28727 tabularline Table line color
28728 \end_layout
28729
28730 \begin_layout Description
28731 tabularonoffline Table line color
28732 \end_layout
28733
28734 \begin_layout Description
28735 urllabel Label color for URL insets
28736 \end_layout
28737
28738 \begin_layout Description
28739 urltext Color for URL inset text
28740 \end_layout
28741
28742 \end_body
28743 \end_document