]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
8be4a555c9b91e8296477cee5e2575867c77370a
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 503
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \usepackage{ifpdf} % part of the hyperref bundle
18 \ifpdf % if pdflatex is used
19
20  % set fonts for nicer pdf view
21  \IfFileExists{lmodern.sty}
22   {\usepackage{lmodern}}{}
23
24 \fi % end if pdflatex is used
25
26 % the pages of the TOC is numbered roman
27 % and a pdf-bookmark for the TOC is added
28 \let\myTOC\tableofcontents
29 \renewcommand\tableofcontents{%
30   \frontmatter
31   \pdfbookmark[1]{\contentsname}{}
32   \myTOC
33   \mainmatter }
34
35 % increase link area for cross-references and autoname them,
36 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
37 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
38 \@ifpackageloaded{babel}{
39  \addto\extrasenglish{%
40   \renewcommand*{\equationautorefname}[1]{}%
41   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
42   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
43   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
44  }
45 }{}
46 \end_preamble
47 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
48 \use_default_options false
49 \begin_modules
50 logicalmkup
51 \end_modules
52 \maintain_unincluded_children false
53 \begin_local_layout
54 Format 57
55 InsetLayout Flex:MenuItem
56 LyxType               charstyle
57 LabelString           menu
58 LatexType             command
59 LatexName             menuitem
60 Font
61 Family              Sans
62 EndFont
63 Preamble
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 EndPreamble
66 ResetsFont true
67 End
68 # In case we need to do with sans...
69 #InsetLayout CharStyle:Code
70 #Font
71 #Family              Sans
72 #EndFont
73 #Preamble
74 #\renewcommand{\code}[1]{{\sffamily #1}}
75 #EndPreamble
76 #End
77 \end_local_layout
78 \language english
79 \language_package default
80 \inputencoding auto
81 \fontencoding global
82 \font_roman "default" "default"
83 \font_sans "default" "default"
84 \font_typewriter "default" "default"
85 \font_math "auto" "auto"
86 \font_default_family default
87 \use_non_tex_fonts false
88 \font_sc false
89 \font_osf false
90 \font_sf_scale 100 100
91 \font_tt_scale 100 100
92 \graphics default
93 \default_output_format default
94 \output_sync 0
95 \bibtex_command default
96 \index_command default
97 \paperfontsize 12
98 \spacing single
99 \use_hyperref true
100 \pdf_title "LyX Configuration Manual"
101 \pdf_author "LyX Team"
102 \pdf_subject "LyX-documentation Customization"
103 \pdf_keywords "LyX, documentation, customization"
104 \pdf_bookmarks true
105 \pdf_bookmarksnumbered true
106 \pdf_bookmarksopen true
107 \pdf_bookmarksopenlevel 1
108 \pdf_breaklinks false
109 \pdf_pdfborder false
110 \pdf_colorlinks true
111 \pdf_backref false
112 \pdf_pdfusetitle false
113 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
114 \papersize default
115 \use_geometry false
116 \use_package amsmath 0
117 \use_package amssymb 0
118 \use_package cancel 0
119 \use_package esint 0
120 \use_package mathdots 1
121 \use_package mathtools 0
122 \use_package mhchem 0
123 \use_package stackrel 0
124 \use_package stmaryrd 0
125 \use_package undertilde 0
126 \cite_engine basic
127 \cite_engine_type default
128 \biblio_style plain
129 \use_bibtopic false
130 \use_indices false
131 \paperorientation portrait
132 \suppress_date false
133 \justification true
134 \use_refstyle 0
135 \branch OutDated
136 \selected 0
137 \filename_suffix 0
138 \color #f5fae7
139 \end_branch
140 \index Index
141 \shortcut idx
142 \color #008000
143 \end_index
144 \secnumdepth 3
145 \tocdepth 3
146 \paragraph_separation indent
147 \paragraph_indentation default
148 \quotes_language english
149 \papercolumns 1
150 \papersides 2
151 \paperpagestyle headings
152 \tracking_changes false
153 \output_changes false
154 \html_math_output 0
155 \html_css_as_file 0
156 \html_be_strict true
157 \end_header
158
159 \begin_body
160
161 \begin_layout Title
162 Customizing \SpecialChar LyX
163 : Features for the Advanced User
164 \end_layout
165
166 \begin_layout Author
167 by the \SpecialChar LyX
168  Team
169 \begin_inset Foot
170 status collapsed
171
172 \begin_layout Plain Layout
173 \noindent
174 If you have comments or error corrections, please send them to the \SpecialChar LyX
175  Documentatio
176 n mailing list, 
177 \begin_inset CommandInset href
178 LatexCommand href
179 target "lyx-docs@lists.lyx.org"
180 type "mailto:"
181
182 \end_inset
183
184 .
185  Include 
186 \begin_inset Quotes eld
187 \end_inset
188
189 [Customization]
190 \begin_inset Quotes erd
191 \end_inset
192
193  in the subject header, and please cc the current maintainer of this file,
194  Richard Heck <rgheck@comcast.net>.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.2.x 
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 status collapsed
258
259 \begin_layout Standard
260 Information from previous versions of this document that now seems to be
261  outdated is contained in the OutDated branch of this document.
262  By default, this information will not appear in the \SpecialChar LaTeX
263  output.
264 \end_layout
265
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout Chapter
272 \SpecialChar LyX
273  configuration files
274 \end_layout
275
276 \begin_layout Standard
277 This chapter aims to help you to find your way through the \SpecialChar LyX
278  configuration
279  files.
280  Before continuing to read this chapter, you should find out where your
281  \SpecialChar LyX
282  library and user directories are by using 
283 \begin_inset Flex MenuItem
284 status collapsed
285
286 \begin_layout Plain Layout
287 Help\SpecialChar menuseparator
288 About
289 \begin_inset space ~
290 \end_inset
291
292 LyX
293 \end_layout
294
295 \end_inset
296
297 .
298  The library directory is the place where \SpecialChar LyX
299  places its system-wide configuration
300  files; the user directory is where you can place your modified versions.
301  We will call the former 
302 \begin_inset Flex Code
303 status collapsed
304
305 \begin_layout Plain Layout
306 LyXDir
307 \end_layout
308
309 \end_inset
310
311  and the latter 
312 \begin_inset Flex MenuItem
313 status collapsed
314
315 \begin_layout Plain Layout
316 UserDir
317 \end_layout
318
319 \end_inset
320
321  in the remainder of this document.
322  
323 \end_layout
324
325 \begin_layout Section
326 What's in 
327 \begin_inset Flex Code
328 status collapsed
329
330 \begin_layout Plain Layout
331 LyXDir
332 \end_layout
333
334 \end_inset
335
336 ?
337 \end_layout
338
339 \begin_layout Standard
340 \begin_inset Flex Code
341 status collapsed
342
343 \begin_layout Plain Layout
344 LyXDir
345 \end_layout
346
347 \end_inset
348
349  and its sub-directories contain a number of files and that can be used
350  to customize \SpecialChar LyX
351 's behavior.
352  You can change many of these files from within \SpecialChar LyX
353  itself through the 
354 \begin_inset Flex MenuItem
355 status collapsed
356
357 \begin_layout Plain Layout
358 Tools\SpecialChar menuseparator
359 Preferences
360 \end_layout
361
362 \end_inset
363
364  dialog.
365  Most customization that you will want to do in \SpecialChar LyX
366  is possible through this
367  dialog.
368  However, many other inner aspects of \SpecialChar LyX
369  can be customized by modifying the
370  files in 
371 \begin_inset Flex Code
372 status collapsed
373
374 \begin_layout Plain Layout
375 LyXDir
376 \end_layout
377
378 \end_inset
379
380 .
381  These files fall in different categories, described in the following subsection
382 s.
383 \end_layout
384
385 \begin_layout Subsection
386 Automatically generated files
387 \end_layout
388
389 \begin_layout Standard
390 The files, which are to be found in 
391 \begin_inset Flex MenuItem
392 status collapsed
393
394 \begin_layout Plain Layout
395 UserDir
396 \end_layout
397
398 \end_inset
399
400 , are generated when you configure \SpecialChar LyX
401 .
402  They contain various default values that are guessed by inspection.
403  In general, it is not a good idea to modify them, since they might be overwritt
404 en at any time.
405 \end_layout
406
407 \begin_layout Labeling
408 \labelwidthstring 00.00.0000
409 \begin_inset Flex Code
410 status collapsed
411
412 \begin_layout Plain Layout
413 lyxrc.defaults
414 \end_layout
415
416 \end_inset
417
418  contains defaults for various commands.
419 \end_layout
420
421 \begin_layout Labeling
422 \labelwidthstring 00.00.0000
423 \begin_inset Flex Code
424 status collapsed
425
426 \begin_layout Plain Layout
427 packages.lst
428 \end_layout
429
430 \end_inset
431
432  contains the list of packages that have been recognized by \SpecialChar LyX
433 .
434  It is currently unused by the \SpecialChar LyX
435  program itself, but the information extracted,
436  and more, is made available with 
437 \begin_inset Flex MenuItem
438 status collapsed
439
440 \begin_layout Plain Layout
441 Help\SpecialChar menuseparator
442 \SpecialChar LaTeX
443
444 \begin_inset space ~
445 \end_inset
446
447 Configuration
448 \end_layout
449
450 \end_inset
451
452 .
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 textclass.lst
462 \end_layout
463
464 \end_inset
465
466  the list of text classes that have been found in your 
467 \begin_inset Flex Code
468 status collapsed
469
470 \begin_layout Plain Layout
471 layout/
472 \end_layout
473
474 \end_inset
475
476  directories, along with the associated \SpecialChar LaTeX
477  document class and their description.
478 \end_layout
479
480 \begin_layout Labeling
481 \labelwidthstring 00.00.0000
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 lyxmodules.lst
487 \end_layout
488
489 \end_inset
490
491  the list of layout modules found in your 
492 \begin_inset Flex Code
493 status collapsed
494
495 \begin_layout Plain Layout
496 layout/
497 \end_layout
498
499 \end_inset
500
501  directories
502 \end_layout
503
504 \begin_layout Labeling
505 \labelwidthstring 00.00.0000
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 *files.lst
511 \end_layout
512
513 \end_inset
514
515  lists of various sorts of \SpecialChar LaTeX
516 -related files found on your system
517 \end_layout
518
519 \begin_layout Labeling
520 \labelwidthstring 00.00.0000
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 doc/\SpecialChar LaTeX
526 Config.lyx
527 \end_layout
528
529 \end_inset
530
531  is automatically generated during configuration from the file 
532 \begin_inset Flex Code
533 status collapsed
534
535 \begin_layout Plain Layout
536 \SpecialChar LaTeX
537 Config.lyx.in
538 \end_layout
539
540 \end_inset
541
542 .
543  It contains information on your \SpecialChar LaTeX
544  configuration.
545 \end_layout
546
547 \begin_layout Subsection
548 Directories
549 \end_layout
550
551 \begin_layout Standard
552 These directories are duplicated between 
553 \begin_inset Flex Code
554 status collapsed
555
556 \begin_layout Plain Layout
557 LyXDir
558 \end_layout
559
560 \end_inset
561
562  and 
563 \begin_inset Flex Code
564 status collapsed
565
566 \begin_layout Plain Layout
567 UserDir
568 \end_layout
569
570 \end_inset
571
572 .
573  If a particular files exists in both places, the one in 
574 \begin_inset Flex Code
575 status collapsed
576
577 \begin_layout Plain Layout
578 UserDir
579 \end_layout
580
581 \end_inset
582
583  will be used.
584 \end_layout
585
586 \begin_layout Labeling
587 \labelwidthstring 00.00.0000
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 bind/
593 \end_layout
594
595 \end_inset
596
597  this directory contains files with the extension 
598 \begin_inset Flex Code
599 status collapsed
600
601 \begin_layout Plain Layout
602 .bind
603 \end_layout
604
605 \end_inset
606
607  that define the keybindings used in \SpecialChar LyX
608 .
609  If there exists an internationalized version of the bind file named 
610 \begin_inset Flex Code
611 status collapsed
612
613 \begin_layout Plain Layout
614 $LANG_xxx.bind
615 \end_layout
616
617 \end_inset
618
619 , that will be used first.
620 \end_layout
621
622 \begin_layout Labeling
623 \labelwidthstring 00.00.0000
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 clipart/
629 \end_layout
630
631 \end_inset
632
633  contains graphics files that can be included in documents.
634  
635 \end_layout
636
637 \begin_layout Labeling
638 \labelwidthstring 00.00.0000
639 \begin_inset Flex Code
640 status collapsed
641
642 \begin_layout Plain Layout
643 doc/
644 \end_layout
645
646 \end_inset
647
648  contains \SpecialChar LyX
649  documentation files (including the one you are currently reading).
650  The file 
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 \SpecialChar LaTeX
656 Config.lyx
657 \end_layout
658
659 \end_inset
660
661  deserves special attention, as noted above.
662  The internationalized help docs are in subdirectories 
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 doc/xx
668 \end_layout
669
670 \end_inset
671
672  where 
673 \begin_inset Quotes eld
674 \end_inset
675
676 xx
677 \begin_inset Quotes erd
678 \end_inset
679
680  is the ISO language code.
681  See 
682 \begin_inset CommandInset ref
683 LatexCommand ref
684 reference "cha:Internationalizing-LyX"
685
686 \end_inset
687
688  for details.
689 \end_layout
690
691 \begin_layout Labeling
692 \labelwidthstring 00.00.0000
693 \begin_inset Flex Code
694 status collapsed
695
696 \begin_layout Plain Layout
697 examples/
698 \end_layout
699
700 \end_inset
701
702  contains example files that explain how to use some features.
703  In the file browser, press the 
704 \begin_inset Flex MenuItem
705 status collapsed
706
707 \begin_layout Plain Layout
708 Examples
709 \end_layout
710
711 \end_inset
712
713  button to get there.
714 \end_layout
715
716 \begin_layout Labeling
717 \labelwidthstring 00.00.0000
718 \begin_inset Flex Code
719 status collapsed
720
721 \begin_layout Plain Layout
722 images/
723 \end_layout
724
725 \end_inset
726
727  contains image files that are used by the 
728 \begin_inset Flex MenuItem
729 status collapsed
730
731 \begin_layout Plain Layout
732 Document
733 \end_layout
734
735 \end_inset
736
737  dialog.
738  In addition, it also contains the individual icons used in the toolbar
739  and the banners that can be shown when \SpecialChar LyX
740  is launched.
741 \end_layout
742
743 \begin_layout Labeling
744 \labelwidthstring 00.00.0000
745 \begin_inset Flex Code
746 status collapsed
747
748 \begin_layout Plain Layout
749 kbd/
750 \end_layout
751
752 \end_inset
753
754  contains keyboard keymapping files.
755  See 
756 \begin_inset CommandInset ref
757 LatexCommand ref
758 reference "sec:International-Keymap-Stuff"
759
760 \end_inset
761
762  for details.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 layouts/
772 \end_layout
773
774 \end_inset
775
776  contains the text class and module files described in 
777 \begin_inset CommandInset ref
778 LatexCommand ref
779 reference "cha:Installing-New-Document"
780
781 \end_inset
782
783 .
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 lyx2lyx
793 \end_layout
794
795 \end_inset
796
797  contains the 
798 \begin_inset Flex Code
799 status collapsed
800
801 \begin_layout Plain Layout
802 lyx2lyx
803 \end_layout
804
805 \end_inset
806
807  Python scripts used to convert between \SpecialChar LyX
808  versions.
809  These can be run from the command line if, say, you want to batch-convert
810  files.
811 \end_layout
812
813 \begin_layout Labeling
814 \labelwidthstring 00.00.0000
815 \begin_inset Flex Code
816 status collapsed
817
818 \begin_layout Plain Layout
819 scripts/
820 \end_layout
821
822 \end_inset
823
824  contains some files that demonstrate the capabilities of the 
825 \begin_inset Flex MenuItem
826 status collapsed
827
828 \begin_layout Plain Layout
829 External
830 \begin_inset space ~
831 \end_inset
832
833 Template
834 \end_layout
835
836 \end_inset
837
838  feature.
839  Also contains some scripts used by \SpecialChar LyX
840  itself.
841 \end_layout
842
843 \begin_layout Labeling
844 \labelwidthstring 00.00.0000
845 \begin_inset Flex Code
846 status collapsed
847
848 \begin_layout Plain Layout
849 templates/
850 \end_layout
851
852 \end_inset
853
854  contains the standard \SpecialChar LyX
855  template files described in 
856 \begin_inset CommandInset ref
857 LatexCommand ref
858 reference "subsec:Creating-Templates"
859
860 \end_inset
861
862 .
863 \end_layout
864
865 \begin_layout Labeling
866 \labelwidthstring 00.00.0000
867 \begin_inset Flex Code
868 status collapsed
869
870 \begin_layout Plain Layout
871 ui/
872 \end_layout
873
874 \end_inset
875
876  contains files with the extension 
877 \begin_inset Flex Code
878 status collapsed
879
880 \begin_layout Plain Layout
881 .ui
882 \end_layout
883
884 \end_inset
885
886  that define the user interface to \SpecialChar LyX
887 .
888  That is, the files define which items appear in which menus and the items
889  appearing on the toolbar.
890 \end_layout
891
892 \begin_layout Subsection
893 Files you don't want to modify
894 \end_layout
895
896 \begin_layout Standard
897 These files are used internally by \SpecialChar LyX
898  and you generally do not need to modify
899  them unless you are a developer.
900 \end_layout
901
902 \begin_layout Labeling
903 \labelwidthstring 00.00.0000
904 \begin_inset Flex Code
905 status collapsed
906
907 \begin_layout Plain Layout
908 CREDITS
909 \end_layout
910
911 \end_inset
912
913  this file contains the list of \SpecialChar LyX
914  developers.
915  The contents are displayed with the menu entry 
916 \begin_inset Flex MenuItem
917 status collapsed
918
919 \begin_layout Plain Layout
920 Help\SpecialChar menuseparator
921 About
922 \begin_inset space ~
923 \end_inset
924
925 LyX
926 \end_layout
927
928 \end_inset
929
930 .
931 \end_layout
932
933 \begin_layout Labeling
934 \labelwidthstring 00.00.0000
935 \begin_inset Flex Code
936 status collapsed
937
938 \begin_layout Plain Layout
939 chkconfig.ltx
940 \end_layout
941
942 \end_inset
943
944  this is a \SpecialChar LaTeX
945  script used during the configuration process.
946  Do not run directly.
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 configure.py
956 \end_layout
957
958 \end_inset
959
960  this is a Python script that is used to re-configure \SpecialChar LyX
961 .
962  It creates configuration files in the directory it was run from.
963 \end_layout
964
965 \begin_layout Subsection
966 Other files needing a line or two
967 \end_layout
968
969 \begin_layout Labeling
970 \labelwidthstring 00.00.0000
971 \begin_inset Flex Code
972 status collapsed
973
974 \begin_layout Plain Layout
975 encodings
976 \end_layout
977
978 \end_inset
979
980  this contains tables describing how different character encodings can be
981  mapped to Unicode
982 \end_layout
983
984 \begin_layout Labeling
985 \labelwidthstring 00.00.0000
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990 external_templates
991 \end_layout
992
993 \end_inset
994
995  this file contains the templates available to the new 
996 \begin_inset Flex MenuItem
997 status collapsed
998
999 \begin_layout Plain Layout
1000 External
1001 \begin_inset space ~
1002 \end_inset
1003
1004 Template
1005 \end_layout
1006
1007 \end_inset
1008
1009  feature, see 
1010 \begin_inset CommandInset ref
1011 LatexCommand ref
1012 reference "chap:Including-External-Material"
1013
1014 \end_inset
1015
1016 .
1017 \end_layout
1018
1019 \begin_layout Labeling
1020 \labelwidthstring 00.00.0000
1021 \begin_inset Flex Code
1022 status collapsed
1023
1024 \begin_layout Plain Layout
1025 languages
1026 \end_layout
1027
1028 \end_inset
1029
1030  this file contains a list of all the languages currently supported by \SpecialChar LyX
1031 .
1032 \end_layout
1033
1034 \begin_layout Labeling
1035 \labelwidthstring 00.00.0000
1036 \begin_inset Flex Code
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040 latexfonts
1041 \end_layout
1042
1043 \end_inset
1044
1045  contains information about the supported fonts.
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 layouttranslations
1055 \end_layout
1056
1057 \end_inset
1058
1059  this file contains translations for internationalized paragraph styles
1060  (see 
1061 \begin_inset CommandInset ref
1062 LatexCommand ref
1063 reference "subsec:I18n"
1064
1065 \end_inset
1066
1067 ).
1068 \end_layout
1069
1070 \begin_layout Labeling
1071 \labelwidthstring 00.00.0000
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 unicodesymbols
1077 \end_layout
1078
1079 \end_inset
1080
1081  this file contains information about unicode-encoded glyphs and the way
1082  they are supported by \SpecialChar LyX
1083  via \SpecialChar LaTeX
1084 .
1085 \end_layout
1086
1087 \begin_layout Section
1088 Your local configuration directory
1089 \end_layout
1090
1091 \begin_layout Standard
1092 Even if you are using \SpecialChar LyX
1093  as an unprivileged user, you might want to change
1094  \SpecialChar LyX
1095  configuration for your own use.
1096  The 
1097 \begin_inset Flex Code
1098 status collapsed
1099
1100 \begin_layout Plain Layout
1101 UserDir
1102 \end_layout
1103
1104 \end_inset
1105
1106  directory contains all your personal configuration files.
1107  This is the directory described as 
1108 \begin_inset Quotes eld
1109 \end_inset
1110
1111 user directory
1112 \begin_inset Quotes erd
1113 \end_inset
1114
1115  in 
1116 \begin_inset Flex MenuItem
1117 status collapsed
1118
1119 \begin_layout Plain Layout
1120 Help\SpecialChar menuseparator
1121 About
1122 \begin_inset space ~
1123 \end_inset
1124
1125 LyX
1126 \end_layout
1127
1128 \end_inset
1129
1130 .
1131  This directory is used as a mirror of 
1132 \begin_inset Flex Code
1133 status collapsed
1134
1135 \begin_layout Plain Layout
1136 LyXDir
1137 \end_layout
1138
1139 \end_inset
1140
1141 , which means that every file in 
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 UserDir
1147 \end_layout
1148
1149 \end_inset
1150
1151  is a replacement for the corresponding file in 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 LyXDir
1157 \end_layout
1158
1159 \end_inset
1160
1161 .
1162  Any configuration file described in the above sections can be placed either
1163  in the system-wide directory, in which case it will affect all users, or
1164  in your local directory for your own use.
1165 \end_layout
1166
1167 \begin_layout Standard
1168 To make things clearer, let's provide a few examples:
1169 \end_layout
1170
1171 \begin_layout Itemize
1172 The preferences set in the 
1173 \begin_inset Flex MenuItem
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Tools\SpecialChar menuseparator
1178 Preferences
1179 \end_layout
1180
1181 \end_inset
1182
1183  dialog are saved to a file 
1184 \begin_inset Flex Code
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 preferences
1189 \end_layout
1190
1191 \end_inset
1192
1193  in 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 UserDir
1199 \end_layout
1200
1201 \end_inset
1202
1203 .
1204 \end_layout
1205
1206 \begin_layout Itemize
1207 When you reconfigure using 
1208 \begin_inset Flex MenuItem
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 Tools\SpecialChar menuseparator
1213 Reconfigure
1214 \end_layout
1215
1216 \end_inset
1217
1218 , \SpecialChar LyX
1219  runs the 
1220 \begin_inset Flex Code
1221 status collapsed
1222
1223 \begin_layout Plain Layout
1224 configure.py
1225 \end_layout
1226
1227 \end_inset
1228
1229  script, and the resulting files are written in your local configuration
1230  directory.
1231  This means that any additional text class file that you might have added
1232  in 
1233 \begin_inset Flex Code
1234 status collapsed
1235
1236 \begin_layout Plain Layout
1237 UserDir/layouts
1238 \end_layout
1239
1240 \end_inset
1241
1242  will be added to the list of classes in the 
1243 \begin_inset Flex MenuItem
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 Document\SpecialChar menuseparator
1248 Settings
1249 \end_layout
1250
1251 \end_inset
1252
1253  dialog.
1254 \end_layout
1255
1256 \begin_layout Itemize
1257 If you get some updated documentation from \SpecialChar LyX
1258  ftp site and cannot install
1259  it because you do not have sysadmin rights on your system, you can just
1260  copy the files in 
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 UserDir/doc/
1266 \end_layout
1267
1268 \end_inset
1269
1270  and the items in the 
1271 \begin_inset Flex MenuItem
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 Help
1276 \end_layout
1277
1278 \end_inset
1279
1280  menu will open them!
1281 \end_layout
1282
1283 \begin_layout Section
1284 Running \SpecialChar LyX
1285  with multiple configurations
1286 \end_layout
1287
1288 \begin_layout Standard
1289 The configuration freedom of the local configuration directory may not suffice
1290  if you want to have more than one configuration at your disposal.
1291  For example, you may want to be use different key bindings or printer settings
1292  at different times.
1293  You can achieve this by having several such directories.
1294  You then specify which directory to use at run-time.
1295 \end_layout
1296
1297 \begin_layout Standard
1298 Invoking \SpecialChar LyX
1299  with the command line switch 
1300 \begin_inset Flex Code
1301 status collapsed
1302
1303 \begin_layout Plain Layout
1304 -userdir
1305 \end_layout
1306
1307 \end_inset
1308
1309  
1310 \emph on
1311 <some directory>
1312 \emph default
1313  instructs the program to read the configuration from that directory, and
1314  not from the default directory.
1315  (You can determine the default directory by running \SpecialChar LyX
1316  without the 
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321 -userdir
1322 \end_layout
1323
1324 \end_inset
1325
1326  switch.) If the specified directory does not exist, \SpecialChar LyX
1327  offers to create it
1328  for you, just like it does for the default directory on the first time
1329  you run the program.
1330  You can modify the configuration options in this additional user directory
1331  exactly as you would for the default directory.
1332  These directories are completely independent (but read on).
1333  Note that setting the environment variable 
1334 \begin_inset Flex Code
1335 status collapsed
1336
1337 \begin_layout Plain Layout
1338 LYX_USERDIR_VER
1339 \end_layout
1340
1341 \end_inset
1342
1343  to some value has exactly the same effect.
1344 \end_layout
1345
1346 \begin_layout Standard
1347 Having several configurations also requires more maintenance: if you want
1348  to add a new layout to 
1349 \begin_inset Flex Code
1350 status collapsed
1351
1352 \begin_layout Plain Layout
1353 NewUserDir/layouts
1354 \end_layout
1355
1356 \end_inset
1357
1358  which you want available from all your configurations, you must add it
1359  to each directory separately.
1360  You can avoid this with the following trick: after \SpecialChar LyX
1361  creates the additional
1362  directory, most of the subdirectories (see above) are empty.
1363  If you want the new configuration to mirror an existing one, replace the
1364  empty subdirectory with a symbolic link to the matching subdirectory in
1365  the existing configuration.
1366  Take care with the 
1367 \begin_inset Flex Code
1368 status collapsed
1369
1370 \begin_layout Plain Layout
1371 doc/
1372 \end_layout
1373
1374 \end_inset
1375
1376  subdirectory, however, since it contains a file written by the configuration
1377  script (also accessible through 
1378 \begin_inset Flex MenuItem
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 Tools\SpecialChar menuseparator
1383 Reconfigure
1384 \end_layout
1385
1386 \end_inset
1387
1388 ) which is configuration-specific.
1389 \end_layout
1390
1391 \begin_layout Chapter
1392 The Preferences dialog
1393 \end_layout
1394
1395 \begin_layout Standard
1396 All options of the preferences dialog are described in the Appendix 
1397 \emph on
1398 The Preferences Dialog
1399 \emph default
1400  in the 
1401 \emph on
1402 User's Guide
1403 \emph default
1404 .
1405  For some options you might find here more details.
1406 \end_layout
1407
1408 \begin_layout Section
1409 Formats
1410 \begin_inset CommandInset label
1411 LatexCommand label
1412 name "sec:Formats"
1413
1414 \end_inset
1415
1416
1417 \end_layout
1418
1419 \begin_layout Standard
1420 The first step is to define your file formats if they are not already defined.
1421  To do so, open the 
1422 \begin_inset Flex MenuItem
1423 status collapsed
1424
1425 \begin_layout Plain Layout
1426 Tools\SpecialChar menuseparator
1427 Preferences
1428 \end_layout
1429
1430 \end_inset
1431
1432  dialog.
1433  Under 
1434 \begin_inset Flex MenuItem
1435 status collapsed
1436
1437 \begin_layout Plain Layout
1438 File Handling\SpecialChar menuseparator
1439 File formats
1440 \end_layout
1441
1442 \end_inset
1443
1444  press the 
1445 \begin_inset Flex MenuItem
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 New
1450 \end_layout
1451
1452 \end_inset
1453
1454  button to define your new format.
1455  The 
1456 \begin_inset Flex MenuItem
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 Format
1461 \end_layout
1462
1463 \end_inset
1464
1465  field contains the name used to identify the format in the GUI.
1466  The 
1467 \begin_inset Flex MenuItem
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Short Name
1472 \end_layout
1473
1474 \end_inset
1475
1476  is used to identify the format internally.
1477  You will also need to enter a file extension.
1478  These are all required.
1479  The optional 
1480 \begin_inset Flex MenuItem
1481 status collapsed
1482
1483 \begin_layout Plain Layout
1484 Shortcut
1485 \end_layout
1486
1487 \end_inset
1488
1489  field is used to provide a keyboard shortcut on the menus.
1490  (For example, pressing 
1491 \begin_inset Flex MenuItem
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Ctrl+D
1496 \end_layout
1497
1498 \end_inset
1499
1500  will 
1501 \begin_inset Flex MenuItem
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 Document\SpecialChar menuseparator
1506 View (Other Formats)\SpecialChar menuseparator
1507 DVI
1508 \end_layout
1509
1510 \end_inset
1511
1512 .) 
1513 \end_layout
1514
1515 \begin_layout Standard
1516 A Format can have a 
1517 \begin_inset Flex MenuItem
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521 Viewer
1522 \end_layout
1523
1524 \end_inset
1525
1526  and an 
1527 \begin_inset Flex MenuItem
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 Editor
1532 \end_layout
1533
1534 \end_inset
1535
1536  associated with it.
1537  For example, you might want to use 
1538 \begin_inset Flex MenuItem
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Ghostview
1543 \end_layout
1544
1545 \end_inset
1546
1547  to view PostScript files.
1548  You can enter the command needed to start the program in the corresponding
1549  fields.
1550  In defining this command, you can use the four variables listed in the
1551  next section.
1552  The viewer is launched when you view an image in \SpecialChar LyX
1553  or use the 
1554 \begin_inset Flex MenuItem
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 Document\SpecialChar menuseparator
1559 View
1560 \end_layout
1561
1562 \end_inset
1563
1564  menu.
1565  The editor is for example launched when you right-click on an image and
1566  choose 
1567 \begin_inset Flex MenuItem
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 Edit externally
1572 \end_layout
1573
1574 \end_inset
1575
1576  in the appearing context menu.
1577 \end_layout
1578
1579 \begin_layout Standard
1580 The 
1581 \begin_inset Flex MenuItem
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 MIME
1586 \end_layout
1587
1588 \end_inset
1589
1590  type of a format is optional, but if it is specified, it must be unique
1591  across all formats.
1592  It is used to detect files of this format from the file contents.
1593  For some important file formats there is no MIME type officially registered
1594  with the 
1595 \begin_inset CommandInset href
1596 LatexCommand href
1597 name "IANA"
1598 target "http://www.iana.org/assignments/media-types/"
1599
1600 \end_inset
1601
1602 .
1603  Therefore \SpecialChar LyX
1604  uses the extended list of MIME types as specified by 
1605 \begin_inset CommandInset href
1606 LatexCommand href
1607 name "freedesktop.org"
1608 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1609
1610 \end_inset
1611
1612 .
1613 \end_layout
1614
1615 \begin_layout Standard
1616 The 
1617 \begin_inset Flex MenuItem
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 Document format
1622 \end_layout
1623
1624 \end_inset
1625
1626  option tells \SpecialChar LyX
1627  that a format is suitable for document export.
1628  If this is set and if a suitable conversion route exists (see 
1629 \begin_inset CommandInset ref
1630 LatexCommand ref
1631 reference "sec:Converters"
1632
1633 \end_inset
1634
1635 ), the format will appear in the 
1636 \begin_inset Flex MenuItem
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 File\SpecialChar menuseparator
1641 Export
1642 \end_layout
1643
1644 \end_inset
1645
1646  menu.
1647  The format will also appear in the 
1648 \begin_inset Flex MenuItem
1649 status collapsed
1650
1651 \begin_layout Plain Layout
1652 Document\SpecialChar menuseparator
1653 View
1654 \end_layout
1655
1656 \end_inset
1657
1658  menu if a viewer is specified for the format.
1659  Pure image formats, such as 
1660 \begin_inset Flex Code
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 png
1665 \end_layout
1666
1667 \end_inset
1668
1669 , should not use this option.
1670  Formats that can both represent vector graphics and documents like 
1671 \begin_inset Flex Code
1672 status collapsed
1673
1674 \begin_layout Plain Layout
1675 pdf
1676 \end_layout
1677
1678 \end_inset
1679
1680  should use it.
1681 \end_layout
1682
1683 \begin_layout Standard
1684 The option 
1685 \begin_inset Flex MenuItem
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 Vector graphics format
1690 \end_layout
1691
1692 \end_inset
1693
1694  tells \SpecialChar LyX
1695  that a format can contain vector graphics.
1696  This information is used to determine the target format of included graphics
1697  for 
1698 \begin_inset Flex MenuItem
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 pdflatex
1703 \end_layout
1704
1705 \end_inset
1706
1707  export.
1708  Included graphics may need to be converted to either 
1709 \begin_inset Flex MenuItem
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 pdf
1714 \end_layout
1715
1716 \end_inset
1717
1718
1719 \begin_inset Flex MenuItem
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 png
1724 \end_layout
1725
1726 \end_inset
1727
1728 , or 
1729 \begin_inset Flex MenuItem
1730 status collapsed
1731
1732 \begin_layout Plain Layout
1733 jpg
1734 \end_layout
1735
1736 \end_inset
1737
1738 , since 
1739 \begin_inset Flex MenuItem
1740 status collapsed
1741
1742 \begin_layout Plain Layout
1743 pdflatex
1744 \end_layout
1745
1746 \end_inset
1747
1748  cannot handle other image formats.
1749  If an included graphic is not already in 
1750 \begin_inset Flex MenuItem
1751 status collapsed
1752
1753 \begin_layout Plain Layout
1754 pdf
1755 \end_layout
1756
1757 \end_inset
1758
1759
1760 \begin_inset Flex MenuItem
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 png
1765 \end_layout
1766
1767 \end_inset
1768
1769 , or 
1770 \begin_inset Flex MenuItem
1771 status collapsed
1772
1773 \begin_layout Plain Layout
1774 jpg
1775 \end_layout
1776
1777 \end_inset
1778
1779  format, it is converted to 
1780 \begin_inset Flex MenuItem
1781 status collapsed
1782
1783 \begin_layout Plain Layout
1784 pdf
1785 \end_layout
1786
1787 \end_inset
1788
1789  if the vector format option is set, and otherwise to 
1790 \begin_inset Flex MenuItem
1791 status collapsed
1792
1793 \begin_layout Plain Layout
1794 png
1795 \end_layout
1796
1797 \end_inset
1798
1799 .
1800 \end_layout
1801
1802 \begin_layout Section
1803 Copiers
1804 \end_layout
1805
1806 \begin_layout Standard
1807 Since all conversions from one format to another take place in \SpecialChar LyX
1808 's temporary
1809  directory, it is sometimes necessary to modify a file before copying it
1810  to the temporary directory in order that the conversion may be performed.
1811 \begin_inset Foot
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 For example, the file may refer to other files—images, for example—using
1816  relative file names, and these may become invalid when the file is copied
1817  to the temporary directory.
1818 \end_layout
1819
1820 \end_inset
1821
1822  This is done by a Copier: It copies a file to (or from) the temporary directory
1823  and may modify it in the process.
1824 \end_layout
1825
1826 \begin_layout Standard
1827 The definitions of the copiers may use four variables:
1828 \end_layout
1829
1830 \begin_layout Labeling
1831 \labelwidthstring 00.00.0000
1832 \begin_inset Flex Code
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 $$s
1837 \end_layout
1838
1839 \end_inset
1840
1841  The \SpecialChar LyX
1842  system directory (e.
1843 \begin_inset space \thinspace{}
1844 \end_inset
1845
1846 g.
1847 \begin_inset space \space{}
1848 \end_inset
1849
1850
1851 \begin_inset Flex MenuItem
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 /usr/share/lyx
1856 \end_layout
1857
1858 \end_inset
1859
1860 ).
1861 \end_layout
1862
1863 \begin_layout Labeling
1864 \labelwidthstring 00.00.0000
1865 \begin_inset Flex Code
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 $$i
1870 \end_layout
1871
1872 \end_inset
1873
1874  The input file
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 $$o
1884 \end_layout
1885
1886 \end_inset
1887
1888  The output 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 $$b
1898 \end_layout
1899
1900 \end_inset
1901
1902  The base name (without filename extension) in the \SpecialChar LyX
1903  temporary directory
1904 \end_layout
1905
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Flex Code
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 $$p
1913 \end_layout
1914
1915 \end_inset
1916
1917  The full directory path of the \SpecialChar LyX
1918  temporary directory
1919 \end_layout
1920
1921 \begin_layout Labeling
1922 \labelwidthstring 00.00.0000
1923 \begin_inset Flex Code
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 $$r
1928 \end_layout
1929
1930 \end_inset
1931
1932  The full pathname to the original \SpecialChar LyX
1933  file being processed
1934 \end_layout
1935
1936 \begin_layout Labeling
1937 \labelwidthstring 00.00.0000
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 $$f
1943 \end_layout
1944
1945 \end_inset
1946
1947  The filename (without any directory path) of the \SpecialChar LyX
1948  file.
1949 \end_layout
1950
1951 \begin_layout Labeling
1952 \labelwidthstring 00.00.0000
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 $$l
1958 \end_layout
1959
1960 \end_inset
1961
1962  The `\SpecialChar LaTeX
1963  name'
1964 \end_layout
1965
1966 \begin_layout Standard
1967 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1968 's 
1969 \series bold
1970
1971 \backslash
1972 include
1973 \series default
1974  command.
1975  It is relevant only when exporting files suitable for such inclusion.
1976 \end_layout
1977
1978 \begin_layout Standard
1979 Copiers can be used to do almost anything with output files.
1980  For example, suppose you want generated pdf files to be copied to a special
1981  directory, 
1982 \begin_inset Flex Code
1983 status collapsed
1984
1985 \begin_layout Plain Layout
1986 /home/you/pdf/
1987 \end_layout
1988
1989 \end_inset
1990
1991 .
1992  Then you could write a shell script such as this one:
1993 \end_layout
1994
1995 \begin_layout Standard
1996 \begin_inset listings
1997 inline false
1998 status open
1999
2000 \begin_layout Plain Layout
2001
2002 #!/bin/bash
2003 \end_layout
2004
2005 \begin_layout Plain Layout
2006
2007 FROMFILE=$1
2008 \end_layout
2009
2010 \begin_layout Plain Layout
2011
2012 TOFILE=`basename $2`
2013 \end_layout
2014
2015 \begin_layout Plain Layout
2016
2017 cp $FROMFILE /home/you/pdf/$TOFILE
2018 \end_layout
2019
2020 \end_inset
2021
2022 Save it in your local \SpecialChar LyX
2023  directory—say, 
2024 \begin_inset Flex Code
2025 status collapsed
2026
2027 \begin_layout Plain Layout
2028 /home/you/.lyx/scripts/pdfcopier.sh
2029 \end_layout
2030
2031 \end_inset
2032
2033 —and make it executable, if you need to do so on your platform.
2034  Then, in the 
2035 \begin_inset Flex MenuItem
2036 status collapsed
2037
2038 \begin_layout Plain Layout
2039 Tools\SpecialChar menuseparator
2040 Preferences
2041 \end_layout
2042
2043 \end_inset
2044
2045  dialog, select under 
2046 \begin_inset Flex MenuItem
2047 status collapsed
2048
2049 \begin_layout Plain Layout
2050 File Handling\SpecialChar menuseparator
2051 File formats
2052 \end_layout
2053
2054 \end_inset
2055
2056  the 
2057 \begin_inset Flex MenuItem
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 PDF(pdflatex)
2062 \end_layout
2063
2064 \end_inset
2065
2066  format—or one of the other pdf formats—and enter 
2067 \begin_inset Flex Code
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 pdfcopier.sh $$i $$o
2072 \end_layout
2073
2074 \end_inset
2075
2076  into the 
2077 \begin_inset Flex MenuItem
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 Copier
2082 \end_layout
2083
2084 \end_inset
2085
2086  field.
2087  
2088 \end_layout
2089
2090 \begin_layout Standard
2091 Copiers are used by \SpecialChar LyX
2092  in various of its own conversions.
2093  For example, if appropriate programs are found, \SpecialChar LyX
2094  will automatically install
2095  copiers for the 
2096 \begin_inset Flex MenuItem
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100 HTML
2101 \end_layout
2102
2103 \end_inset
2104
2105  and 
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110 HTML
2111 \begin_inset space ~
2112 \end_inset
2113
2114 (MS Word)
2115 \end_layout
2116
2117 \end_inset
2118
2119  formats.
2120  When these formats are exported, the copier sees that not just the main
2121  HTML file but various associated files (style files, images, etc.) are also
2122  copied.
2123  All these files are written to a subdirectory of the directory in which
2124  the original \SpecialChar LyX
2125  file was found.
2126 \begin_inset Foot
2127 status collapsed
2128
2129 \begin_layout Plain Layout
2130 This copier can be customized.
2131  The optional 
2132 \begin_inset Quotes eld
2133 \end_inset
2134
2135 -e
2136 \begin_inset Quotes erd
2137 \end_inset
2138
2139  argument takes a comma-separated list of extensions to be copied; if it
2140  is omitted, all files will be copied.
2141  The 
2142 \begin_inset Quotes eld
2143 \end_inset
2144
2145 -t
2146 \begin_inset Quotes erd
2147 \end_inset
2148
2149  argument determines the extension added to the generated directory.
2150  By default, it is 
2151 \begin_inset Quotes eld
2152 \end_inset
2153
2154
2155 \begin_inset Flex MenuItem
2156 status collapsed
2157
2158 \begin_layout Plain Layout
2159 LyXconv
2160 \end_layout
2161
2162 \end_inset
2163
2164
2165 \begin_inset Quotes erd
2166 \end_inset
2167
2168 , so HTML generated from 
2169 \begin_inset Flex MenuItem
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 /path/to/filename.lyx
2174 \end_layout
2175
2176 \end_inset
2177
2178  will end up in 
2179 \begin_inset Flex MenuItem
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 /path/to/filename.html.LyXconv
2184 \end_layout
2185
2186 \end_inset
2187
2188 .
2189  
2190 \end_layout
2191
2192 \end_inset
2193
2194
2195 \end_layout
2196
2197 \begin_layout Section
2198 Converters
2199 \begin_inset CommandInset label
2200 LatexCommand label
2201 name "sec:Converters"
2202
2203 \end_inset
2204
2205
2206 \end_layout
2207
2208 \begin_layout Standard
2209 You can define your own Converters to convert files between different formats.
2210  This is done in the 
2211 \begin_inset Flex MenuItem
2212 status collapsed
2213
2214 \begin_layout Plain Layout
2215 Tools\SpecialChar menuseparator
2216 Preferences\SpecialChar menuseparator
2217 File Handling\SpecialChar menuseparator
2218 Converters
2219 \end_layout
2220
2221 \end_inset
2222
2223  dialog.
2224 \end_layout
2225
2226 \begin_layout Standard
2227 To define a new converter, select the 
2228 \begin_inset Flex MenuItem
2229 status collapsed
2230
2231 \begin_layout Plain Layout
2232 From
2233 \begin_inset space ~
2234 \end_inset
2235
2236 format
2237 \end_layout
2238
2239 \end_inset
2240
2241  and 
2242 \begin_inset Flex MenuItem
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 To
2247 \begin_inset space ~
2248 \end_inset
2249
2250 format
2251 \end_layout
2252
2253 \end_inset
2254
2255  from the drop-down lists, enter the command needed for the conversion,
2256  and then press the 
2257 \begin_inset Flex MenuItem
2258 status collapsed
2259
2260 \begin_layout Plain Layout
2261 Add
2262 \end_layout
2263
2264 \end_inset
2265
2266  button.
2267  Several variables can be used in the definition of converters:
2268 \end_layout
2269
2270 \begin_layout Labeling
2271 \labelwidthstring 00.00.0000
2272 \begin_inset Flex Code
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 $$s
2277 \end_layout
2278
2279 \end_inset
2280
2281  The \SpecialChar LyX
2282  system directory
2283 \end_layout
2284
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Flex Code
2288 status collapsed
2289
2290 \begin_layout Plain Layout
2291 $$i
2292 \end_layout
2293
2294 \end_inset
2295
2296  The input file
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 $$o
2306 \end_layout
2307
2308 \end_inset
2309
2310  The output 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 $$b
2320 \end_layout
2321
2322 \end_inset
2323
2324  The base filename of the input file (i.
2325 \begin_inset space \thinspace{}
2326 \end_inset
2327
2328 g., without the extension)
2329 \end_layout
2330
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Flex Code
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 $$p
2338 \end_layout
2339
2340 \end_inset
2341
2342  The path to the input file
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 $$r
2352 \end_layout
2353
2354 \end_inset
2355
2356  The path to the original input file (this is different from $$p when a
2357  chain of converters is called)
2358 \end_layout
2359
2360 \begin_layout Labeling
2361 \labelwidthstring 00.00.0000
2362 \begin_inset Flex Code
2363 status collapsed
2364
2365 \begin_layout Plain Layout
2366 $$e
2367 \end_layout
2368
2369 \end_inset
2370
2371  The iconv name for the encoding of the document.
2372 \end_layout
2373
2374 \begin_layout Standard
2375 In the 
2376 \begin_inset Flex MenuItem
2377 status collapsed
2378
2379 \begin_layout Plain Layout
2380 Extra
2381 \begin_inset space ~
2382 \end_inset
2383
2384 Flag
2385 \end_layout
2386
2387 \end_inset
2388
2389  field you can enter the following flags, separated by commas:
2390 \end_layout
2391
2392 \begin_layout Labeling
2393 \labelwidthstring 00.00.0000
2394 \begin_inset Flex Code
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 latex
2399 \end_layout
2400
2401 \end_inset
2402
2403  This converter runs some form of \SpecialChar LaTeX
2404 .
2405  This will make \SpecialChar LyX
2406 's \SpecialChar LaTeX
2407  error logs available.
2408 \end_layout
2409
2410 \begin_layout Labeling
2411 \labelwidthstring 00.00.0000
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 needaux
2417 \end_layout
2418
2419 \end_inset
2420
2421  Needs the \SpecialChar LaTeX
2422  
2423 \begin_inset Flex MenuItem
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 .aux
2428 \end_layout
2429
2430 \end_inset
2431
2432  file for the conversion.
2433 \end_layout
2434
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 nice
2442 \end_layout
2443
2444 \end_inset
2445
2446  Needs a 
2447 \begin_inset Quotes eld
2448 \end_inset
2449
2450 nice
2451 \begin_inset Quotes erd
2452 \end_inset
2453
2454  file from the backend, which in practice means a \SpecialChar LaTeX
2455  file like the one we
2456  would export, without 
2457 \begin_inset Flex Code
2458 status collapsed
2459
2460 \begin_layout Plain Layout
2461 input@path
2462 \end_layout
2463
2464 \end_inset
2465
2466 .
2467 \end_layout
2468
2469 \begin_layout Labeling
2470 \labelwidthstring 00.00.0000
2471 \begin_inset Flex Code
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 xml
2476 \end_layout
2477
2478 \end_inset
2479
2480  Output is XML.
2481 \end_layout
2482
2483 \begin_layout Standard
2484 The following three flags are not really flags at all because they take
2485  an argument in the 
2486 \begin_inset Flex MenuItem
2487 status collapsed
2488
2489 \begin_layout Plain Layout
2490 key
2491 \begin_inset space ~
2492 \end_inset
2493
2494 =
2495 \begin_inset space ~
2496 \end_inset
2497
2498 value
2499 \end_layout
2500
2501 \end_inset
2502
2503  format:
2504 \end_layout
2505
2506 \begin_layout Labeling
2507 \labelwidthstring 00.00.0000
2508 \begin_inset Flex Code
2509 status collapsed
2510
2511 \begin_layout Plain Layout
2512 parselog
2513 \end_layout
2514
2515 \end_inset
2516
2517  If set, the converter's standard error will be redirected to a file 
2518 \begin_inset Flex Code
2519 status collapsed
2520
2521 \begin_layout Plain Layout
2522 infile.out
2523 \end_layout
2524
2525 \end_inset
2526
2527 , and the script given as argument will be run as: 
2528 \begin_inset Flex Code
2529 status collapsed
2530
2531 \begin_layout Plain Layout
2532 script < infile.out > infile.log
2533 \end_layout
2534
2535 \end_inset
2536
2537 .
2538  The argument may contain 
2539 \begin_inset Flex Code
2540 status collapsed
2541
2542 \begin_layout Plain Layout
2543 $$s
2544 \end_layout
2545
2546 \end_inset
2547
2548 .
2549 \end_layout
2550
2551 \begin_layout Labeling
2552 \labelwidthstring 00.00.0000
2553 \begin_inset Flex Code
2554 status collapsed
2555
2556 \begin_layout Plain Layout
2557 resultdir
2558 \end_layout
2559
2560 \end_inset
2561
2562  The name of the directory in which the converter will dump the generated
2563  files.
2564  \SpecialChar LyX
2565  will not create this directory, and it does not copy anything into it,
2566  though it will copy this directory to the destination.
2567  The argument may contain 
2568 \begin_inset Flex Code
2569 status collapsed
2570
2571 \begin_layout Plain Layout
2572 $$b
2573 \end_layout
2574
2575 \end_inset
2576
2577 , which will be replaced by the base name of the input and output files,
2578  respectively, when the directory is copied.
2579 \begin_inset Newline newline
2580 \end_inset
2581
2582 Note that resultdir and usetempdir make no sense together.
2583  The latter will be ignored if the former is given.
2584 \end_layout
2585
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 resultfile
2593 \end_layout
2594
2595 \end_inset
2596
2597  Determines the output file name and may, contain 
2598 \begin_inset Flex Code
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 $$b
2603 \end_layout
2604
2605 \end_inset
2606
2607 .
2608  Sensible only with resultdir and optional even then; if not given, it defaults
2609  to `index'.
2610 \end_layout
2611
2612 \begin_layout Standard
2613 None of these last three are presently used in any of the converters that
2614  are installed with \SpecialChar LyX
2615 .
2616  
2617 \end_layout
2618
2619 \begin_layout Standard
2620 You do not have to define converters for all formats between which you want
2621  to convert.
2622  For example, you will note that there is no `\SpecialChar LyX
2623  to PostScript' converter,
2624  but \SpecialChar LyX
2625  will export PostScript.
2626  It does so by first creating a \SpecialChar LaTeX
2627  file (no converter needs to be defined
2628  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2629  to DVI' converter,
2630  and finally converting the resulting DVI file to PostScript.
2631  \SpecialChar LyX
2632  finds such `chains' of converters automatically, and it will always choose
2633  the shortest possible chain.
2634  You can, though, still define multiple conversion methods between file
2635  formats.
2636  For example, the standard \SpecialChar LyX
2637  configuration provides five ways to convert
2638  \SpecialChar LaTeX
2639  to PDF:
2640 \end_layout
2641
2642 \begin_layout Enumerate
2643 Directly, using 
2644 \begin_inset Flex MenuItem
2645 status collapsed
2646
2647 \begin_layout Plain Layout
2648 pdflatex
2649 \end_layout
2650
2651 \end_inset
2652
2653
2654 \end_layout
2655
2656 \begin_layout Enumerate
2657 via (DVI and) PostScript, using 
2658 \begin_inset Flex MenuItem
2659 status collapsed
2660
2661 \begin_layout Plain Layout
2662 ps2pdf
2663 \end_layout
2664
2665 \end_inset
2666
2667
2668 \end_layout
2669
2670 \begin_layout Enumerate
2671 via DVI, using 
2672 \begin_inset Flex MenuItem
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 dvipdfm
2677 \end_layout
2678
2679 \end_inset
2680
2681
2682 \end_layout
2683
2684 \begin_layout Enumerate
2685 directly using 
2686 \begin_inset Flex MenuItem
2687 status collapsed
2688
2689 \begin_layout Plain Layout
2690 Xe\SpecialChar TeX
2691
2692 \end_layout
2693
2694 \end_inset
2695
2696
2697 \end_layout
2698
2699 \begin_layout Enumerate
2700 directly using 
2701 \begin_inset Flex MenuItem
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Lua\SpecialChar TeX
2706
2707 \end_layout
2708
2709 \end_inset
2710
2711
2712 \end_layout
2713
2714 \begin_layout Standard
2715 To define such alternate chains, you must define multiple target `file formats',
2716  as described in 
2717 \begin_inset CommandInset ref
2718 LatexCommand ref
2719 reference "sec:Formats"
2720
2721 \end_inset
2722
2723 .
2724  For example, in the standard configuration, the formats named 
2725 \begin_inset Flex MenuItem
2726 status collapsed
2727
2728 \begin_layout Plain Layout
2729 pdf
2730 \end_layout
2731
2732 \end_inset
2733
2734  (for 
2735 \begin_inset Flex MenuItem
2736 status collapsed
2737
2738 \begin_layout Plain Layout
2739 ps2pdf
2740 \end_layout
2741
2742 \end_inset
2743
2744 ), 
2745 \begin_inset Flex MenuItem
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 pdf2
2750 \end_layout
2751
2752 \end_inset
2753
2754  (for 
2755 \begin_inset Flex MenuItem
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 pdflatex
2760 \end_layout
2761
2762 \end_inset
2763
2764 ), 
2765 \begin_inset Flex MenuItem
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 pdf3
2770 \end_layout
2771
2772 \end_inset
2773
2774  (for 
2775 \begin_inset Flex MenuItem
2776 status collapsed
2777
2778 \begin_layout Plain Layout
2779 dvipdfm
2780 \end_layout
2781
2782 \end_inset
2783
2784 ), 
2785 \begin_inset Flex MenuItem
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789 pdf4
2790 \end_layout
2791
2792 \end_inset
2793
2794  (for 
2795 \begin_inset Flex MenuItem
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799 Xe\SpecialChar TeX
2800
2801 \end_layout
2802
2803 \end_inset
2804
2805 ), and 
2806 \begin_inset Flex MenuItem
2807 status collapsed
2808
2809 \begin_layout Plain Layout
2810 pdf5
2811 \end_layout
2812
2813 \end_inset
2814
2815  (for 
2816 \begin_inset Flex MenuItem
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 Lua\SpecialChar TeX
2821
2822 \end_layout
2823
2824 \end_inset
2825
2826 ) are defined, all of which share the extension 
2827 \begin_inset Flex MenuItem
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 .pdf
2832 \end_layout
2833
2834 \end_inset
2835
2836 , and which correspond to the conversion methods just mentioned.
2837 \end_layout
2838
2839 \begin_layout Chapter
2840 Internationalizing \SpecialChar LyX
2841
2842 \begin_inset CommandInset label
2843 LatexCommand label
2844 name "cha:Internationalizing-LyX"
2845
2846 \end_inset
2847
2848
2849 \end_layout
2850
2851 \begin_layout Standard
2852 \SpecialChar LyX
2853  supports using a translated interface.
2854  Last time we checked, \SpecialChar LyX
2855  provided text in thirty languages.
2856  The language of choice is called your 
2857 \emph on
2858 locale
2859 \emph default
2860 .
2861  (For further reading on locale settings, see also the documentation for
2862  locale that comes with your operating system.
2863  For Linux, the manual page for 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868 locale(5)
2869 \end_layout
2870
2871 \end_inset
2872
2873  could be a good place to start).
2874 \end_layout
2875
2876 \begin_layout Standard
2877 Notice that these translations will work, but do contain a few flaws.
2878  In particular, all dialogs have been designed with the English text in
2879  mind, which means that some of the translated text will be too large to
2880  fit within the space allocated.
2881  This is only a display problem and will not cause any harm.
2882  Also, you will find that some of the translations do not define shortcut
2883  keys for everything.
2884  Sometimes, there are simply not enough free letters to do it.
2885  Other times, the translator just hasn't got around to doing it yet.
2886  Our localization team, which you may wish to join,
2887 \begin_inset Foot
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891 If you are a fluent speaker of a language other than English, joining these
2892  teams is a great way to give back to the \SpecialChar LyX
2893  community!
2894 \end_layout
2895
2896 \end_inset
2897
2898  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2899 .
2900 \end_layout
2901
2902 \begin_layout Section
2903 Translating \SpecialChar LyX
2904
2905 \end_layout
2906
2907 \begin_layout Subsection
2908 Translating the graphical user interface (text messages).
2909 \end_layout
2910
2911 \begin_layout Standard
2912 \SpecialChar LyX
2913  uses the GNU 
2914 \begin_inset Flex Code
2915 status collapsed
2916
2917 \begin_layout Plain Layout
2918 gettext
2919 \end_layout
2920
2921 \end_inset
2922
2923  library to handle the internationalization of the interface.
2924  To have \SpecialChar LyX
2925  speak your favorite language in all menus and dialogs, you need
2926  a 
2927 \begin_inset Flex Code
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 po
2932 \end_layout
2933
2934 \end_inset
2935
2936 -file for that language.
2937  When this is available, you'll have to generate a 
2938 \begin_inset Flex Code
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 mo
2943 \end_layout
2944
2945 \end_inset
2946
2947 -file from it and install the 
2948 \begin_inset Flex Code
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 mo
2953 \end_layout
2954
2955 \end_inset
2956
2957 -file.
2958  The process of doing all of this is explained in the documentation for
2959  GNU 
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 gettext
2965 \end_layout
2966
2967 \end_inset
2968
2969 .
2970  It is possible to do this just for yourself, but if you're going to do
2971  it, you might as well share the results of your labors with the rest of
2972  the \SpecialChar LyX
2973  community.
2974  Send a message to the \SpecialChar LyX
2975  developers' list for more information about how
2976  to proceed.
2977 \end_layout
2978
2979 \begin_layout Standard
2980 In short, this is what you should do (xx denotes the language code):
2981 \end_layout
2982
2983 \begin_layout Itemize
2984 Check out the \SpecialChar LyX
2985  source code.
2986  (See the 
2987 \begin_inset CommandInset href
2988 LatexCommand href
2989 name "information on the web"
2990 target "http://www.lyx.org/HowToUseSVN"
2991
2992 \end_inset
2993
2994 .)
2995 \end_layout
2996
2997 \begin_layout Itemize
2998 Copy the file 
2999 \begin_inset Flex Code
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 lyx.pot
3004 \end_layout
3005
3006 \end_inset
3007
3008  to the folder of the 
3009 \begin_inset Flex Code
3010 status collapsed
3011
3012 \begin_layout Plain Layout
3013 **.po
3014 \end_layout
3015
3016 \end_inset
3017
3018  files.
3019  Then rename it to 
3020 \begin_inset Flex Code
3021 status collapsed
3022
3023 \begin_layout Plain Layout
3024 xx.po
3025 \end_layout
3026
3027 \end_inset
3028
3029 .
3030  (If 
3031 \begin_inset Flex Code
3032 status collapsed
3033
3034 \begin_layout Plain Layout
3035 lyx.pot
3036 \end_layout
3037
3038 \end_inset
3039
3040  doesn't exist anywhere, it can be remade with the console command 
3041 \begin_inset Flex Code
3042 status collapsed
3043
3044 \begin_layout Plain Layout
3045 make lyx.pot
3046 \end_layout
3047
3048 \end_inset
3049
3050  in that directory, or you can use an existing po-file for some other language
3051  as a template).
3052 \end_layout
3053
3054 \begin_layout Itemize
3055 Edit 
3056 \begin_inset Flex Code
3057 status collapsed
3058
3059 \begin_layout Plain Layout
3060 xx.po
3061 \end_layout
3062
3063 \end_inset
3064
3065 .
3066 \begin_inset Foot
3067 status collapsed
3068
3069 \begin_layout Plain Layout
3070 This is just a text file, so it can be edited in any text editor.
3071  But there are also specialized programs that support such editing, such
3072  as 
3073 \family typewriter
3074 Poedit
3075 \family default
3076  (for all platforms) or 
3077 \family typewriter
3078 KBabel
3079 \family default
3080  (for KDE).
3081  
3082 \family typewriter
3083 Emacs
3084 \family default
3085  contains a `mode' for editing 
3086 \begin_inset Flex Code
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 po
3091 \end_layout
3092
3093 \end_inset
3094
3095  files, as well.
3096 \end_layout
3097
3098 \end_inset
3099
3100  For some menu- and widget-labels, there are also shortcut keys that should
3101  be translated.
3102  Those keys are marked after a `|', and should be translated according to
3103  the words and phrases of the language.
3104  You should also fill also out the information at the beginning of the new
3105  
3106 \begin_inset Flex Code
3107 status collapsed
3108
3109 \begin_layout Plain Layout
3110 po
3111 \end_layout
3112
3113 \end_inset
3114
3115 -file with your email-address, etc., so people know where to reach you with
3116  suggestions and entertaining flames.
3117 \end_layout
3118
3119 \begin_layout Standard
3120 If you are just doing this on your own, then:
3121 \end_layout
3122
3123 \begin_layout Itemize
3124 Generate 
3125 \begin_inset Flex Code
3126 status collapsed
3127
3128 \begin_layout Plain Layout
3129 xx.mo
3130 \end_layout
3131
3132 \end_inset
3133
3134 .
3135  This can be done with 
3136 \begin_inset Flex Code
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 msgfmt -o xx.mo < xx.po
3141 \end_layout
3142
3143 \end_inset
3144
3145 .
3146 \end_layout
3147
3148 \begin_layout Itemize
3149 Copy the 
3150 \begin_inset Flex Code
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 mo
3155 \end_layout
3156
3157 \end_inset
3158
3159 -file to your locale-tree, at the correct directory for application messages
3160  for the language
3161 \series bold
3162  
3163 \series default
3164 xx, and under the name 
3165 \begin_inset Flex Code
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 lyx.mo
3170 \end_layout
3171
3172 \end_inset
3173
3174  (e.
3175 \begin_inset space \thinspace{}
3176 \end_inset
3177
3178 g.
3179 \begin_inset space \space{}
3180 \end_inset
3181
3182
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3188 \end_layout
3189
3190 \end_inset
3191
3192
3193 \series bold
3194 .
3195 \end_layout
3196
3197 \begin_layout Standard
3198 As said, however, it would be best if the new 
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 po
3204 \end_layout
3205
3206 \end_inset
3207
3208  file could be added to the \SpecialChar LyX
3209  distribution, so others can use it.
3210  Adding it involves making additional changes to \SpecialChar LyX
3211 .
3212  So send an email to the developers' mailing list if you're interested in
3213  doing that.
3214 \end_layout
3215
3216 \begin_layout Subsubsection
3217 Ambiguous messages
3218 \end_layout
3219
3220 \begin_layout Standard
3221 Sometimes it turns out that one English message needs to be translated into
3222  different messages in the target language.
3223  One example is the message 
3224 \begin_inset Flex Code
3225 status collapsed
3226
3227 \begin_layout Plain Layout
3228 To
3229 \end_layout
3230
3231 \end_inset
3232
3233  which has the German translation 
3234 \lang german
3235 Nach
3236 \lang english
3237  or 
3238 \lang german
3239 Bis
3240 \lang english
3241 , depending upon exactly what the English 
3242 \begin_inset Quotes eld
3243 \end_inset
3244
3245 to
3246 \begin_inset Quotes erd
3247 \end_inset
3248
3249  means.
3250  GNU 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 gettext
3256 \end_layout
3257
3258 \end_inset
3259
3260  does not handle such ambiguous translations.
3261  Therefore you have to add some context information to the message: Instead
3262  of 
3263 \begin_inset Flex Code
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267 To
3268 \end_layout
3269
3270 \end_inset
3271
3272  it becomes 
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 To[[as in 'From format x to format y']]
3278 \end_layout
3279
3280 \end_inset
3281
3282  and 
3283 \begin_inset Flex Code
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 To[[as in 'From page x to page y']].
3288 \end_layout
3289
3290 \end_inset
3291
3292  Now the two occurrences of 
3293 \begin_inset Flex Code
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297 To
3298 \end_layout
3299
3300 \end_inset
3301
3302  are different for 
3303 \begin_inset Flex Code
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 gettext
3308 \end_layout
3309
3310 \end_inset
3311
3312  and can be translated correctly to 
3313 \lang german
3314 Nach
3315 \lang english
3316  and 
3317 \lang german
3318 Bis
3319 \lang english
3320 , respectively.
3321 \end_layout
3322
3323 \begin_layout Standard
3324 Of course the context information needs to be stripped off the original
3325  message when no translation is used.
3326  Therefore you have to put it in double square brackets at the end of the
3327  message (see the example above).
3328  The translation mechanism of \SpecialChar LyX
3329  ensures that everything in double square
3330  brackets at the end of messages is removed before displaying the message.
3331 \end_layout
3332
3333 \begin_layout Subsection
3334 Translating the documentation.
3335 \end_layout
3336
3337 \begin_layout Standard
3338 The online documentation (in the 
3339 \begin_inset Flex MenuItem
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 Help
3344 \end_layout
3345
3346 \end_inset
3347
3348 -menu) can (and should!) be translated.
3349  If there are translated versions of the documentation available
3350 \begin_inset Foot
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354 As of March 2008, at least some of the documents have been translated into
3355  fourteen languages, with the Tutorial available in a few more.
3356 \end_layout
3357
3358 \end_inset
3359
3360  and the locale is set accordingly, these will be used automagically by
3361  \SpecialChar LyX
3362 .
3363  \SpecialChar LyX
3364  looks for translated versions as 
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 LyXDir/doc/xx/DocName.lyx
3370 \end_layout
3371
3372 \end_inset
3373
3374 , where 
3375 \begin_inset Flex Code
3376 status collapsed
3377
3378 \begin_layout Plain Layout
3379 xx
3380 \end_layout
3381
3382 \end_inset
3383
3384  is the code for the language currently in use.
3385  If there are no translated documents, the default English versions will
3386  be displayed.
3387  Note that the translated versions must have the same filenames (
3388 \begin_inset Flex Code
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 DocName
3393 \end_layout
3394
3395 \end_inset
3396
3397  above) as the original.
3398  If you feel up to translating the documentation (an excellent way to proof-read
3399  the original documentation by the way!), there are a few things you should
3400  do right away:
3401 \end_layout
3402
3403 \begin_layout Itemize
3404 Check out the documentation translation web page at 
3405 \begin_inset CommandInset href
3406 LatexCommand href
3407 name "http://www.lyx.org/Translation"
3408 target "http://www.lyx.org/Translation"
3409
3410 \end_inset
3411
3412 .
3413  That way, you can find out which (if any) documents have already been translate
3414 d into your language.
3415  You can also find out who (if anyone) is organizing the effort to translate
3416  the documentation into your language.
3417  If no one is organizing the effort, please let us know that you're interested.
3418 \end_layout
3419
3420 \begin_layout Standard
3421 Once you get to actually translating, here's a few hints for you that may
3422  save you trouble:
3423 \end_layout
3424
3425 \begin_layout Itemize
3426 Join the documentation team! There is information on how to do that in 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 Intro.lyx
3432 \end_layout
3433
3434 \end_inset
3435
3436  (
3437 \begin_inset Flex MenuItem
3438 status collapsed
3439
3440 \begin_layout Plain Layout
3441 Help\SpecialChar menuseparator
3442 Introduction
3443 \end_layout
3444
3445 \end_inset
3446
3447 ), which by the way is the first document you should translate.
3448 \end_layout
3449
3450 \begin_layout Itemize
3451 Learn the typographic conventions for the language you are translating to.
3452  Typography is an ancient art and over the centuries, a great variety of
3453  conventions have developed throughout different parts of the world.
3454  Also study the professional terminology amongst typographers in your country.
3455  Inventing your own terminology will only confuse the users.
3456  
3457 \emph on
3458 (Warning! Typography is addictive!)
3459 \end_layout
3460
3461 \begin_layout Itemize
3462 Make a copy of the document.
3463  This will be your working copy.
3464  You can use this as your personal translated help-file by placing it in
3465  your 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470 UserDir/doc/xx/
3471 \end_layout
3472
3473 \end_inset
3474
3475  directory.
3476 \end_layout
3477
3478 \begin_layout Itemize
3479 Sometimes the original document (from the \SpecialChar LyX
3480  team) will be updated.
3481  Use the source viewer at 
3482 \begin_inset CommandInset href
3483 LatexCommand href
3484 name "http://www.lyx.org/trac/timeline"
3485 target "http://www.lyx.org/trac/timeline"
3486
3487 \end_inset
3488
3489  to see what has been changed.
3490  That way you can easily see which parts of the translated document need
3491  to be updated.
3492 \end_layout
3493
3494 \begin_layout Standard
3495 If you ever find an error in the original document, fix it and notify the
3496  rest of the documentation team of the changes! (You didn't forget to join
3497  the documentation team, did you?)
3498 \end_layout
3499
3500 \begin_layout Standard
3501 \begin_inset Branch OutDated
3502 status collapsed
3503
3504 \begin_layout Section
3505 International Keyboard Support
3506 \end_layout
3507
3508 \begin_layout Standard
3509
3510 \emph on
3511 [Editor's Note: The following section is by
3512 \emph default
3513  
3514 \shape smallcaps
3515 \emph on
3516 Ivan Schreter
3517 \shape default
3518 .
3519  It needs to be fixed to conform to the new Documentation Style sheet and
3520  to make use of the new v1.0 features.
3521  The whole thing also needs to be merged with the section following it.-jw
3522  It may also be badly out of date.-rh (2008)]
3523 \end_layout
3524
3525 \begin_layout Subsection
3526 Defining Own Keymaps: Keymap File Format
3527 \end_layout
3528
3529 \begin_layout Standard
3530 Let's look at a keyboard definition file a little closer.
3531  It is a plain text file defining
3532 \end_layout
3533
3534 \begin_layout Itemize
3535 key-to-key or key-to-string translations
3536 \end_layout
3537
3538 \begin_layout Itemize
3539 dead keys
3540 \end_layout
3541
3542 \begin_layout Itemize
3543 dead keys exceptions
3544 \end_layout
3545
3546 \begin_layout Standard
3547 To define key-to-key or key-to-string translation, use this command:
3548 \end_layout
3549
3550 \begin_layout Quotation
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555
3556 \backslash
3557 kmap
3558 \end_layout
3559
3560 \end_inset
3561
3562  
3563 \begin_inset Flex Code
3564 status collapsed
3565
3566 \begin_layout Plain Layout
3567 key
3568 \end_layout
3569
3570 \end_inset
3571
3572  outstring 
3573 \end_layout
3574
3575 \begin_layout Standard
3576 where 
3577 \begin_inset Flex Code
3578 status collapsed
3579
3580 \begin_layout Plain Layout
3581 key
3582 \end_layout
3583
3584 \end_inset
3585
3586  is the key to be translated and 
3587 \begin_inset Flex Code
3588 status collapsed
3589
3590 \begin_layout Plain Layout
3591 outstring
3592 \end_layout
3593
3594 \end_inset
3595
3596  is the string to be inserted into the document.
3597  To define dead keys, use:
3598 \end_layout
3599
3600 \begin_layout Quotation
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605
3606 \backslash
3607 kmod
3608 \end_layout
3609
3610 \end_inset
3611
3612  
3613 \begin_inset Flex Code
3614 status collapsed
3615
3616 \begin_layout Plain Layout
3617 key
3618 \end_layout
3619
3620 \end_inset
3621
3622  deadkey
3623 \end_layout
3624
3625 \begin_layout Standard
3626 where 
3627 \begin_inset Flex Code
3628 status collapsed
3629
3630 \begin_layout Plain Layout
3631 key
3632 \end_layout
3633
3634 \end_inset
3635
3636  is a keyboard key and 
3637 \begin_inset Flex Code
3638 status collapsed
3639
3640 \begin_layout Plain Layout
3641 deadkey
3642 \end_layout
3643
3644 \end_inset
3645
3646  is dead key name.
3647  The following dead keys are supported (shortcut name is in parentheses):
3648 \end_layout
3649
3650 \begin_layout Quotation
3651
3652 \emph on
3653 Name
3654 \begin_inset space \hfill{}
3655 \end_inset
3656
3657 Example
3658 \end_layout
3659
3660 \begin_layout Quotation
3661 acute (acu)
3662 \begin_inset space \hfill{}
3663 \end_inset
3664
3665 áéíóú
3666 \end_layout
3667
3668 \begin_layout Quotation
3669 grave (gra)
3670 \begin_inset space \hfill{}
3671 \end_inset
3672
3673 àèìòù
3674 \end_layout
3675
3676 \begin_layout Quotation
3677 macron (mac)
3678 \begin_inset space \hfill{}
3679 \end_inset
3680
3681  ō
3682 \end_layout
3683
3684 \begin_layout Quotation
3685 tilde (til)
3686 \begin_inset space \hfill{}
3687 \end_inset
3688
3689 ñÑ
3690 \end_layout
3691
3692 \begin_layout Quotation
3693 underbar (underb)
3694 \begin_inset space \hfill{}
3695 \end_inset
3696
3697
3698 \begin_inset ERT
3699 status open
3700
3701 \begin_layout Plain Layout
3702
3703
3704 \backslash
3705 b o
3706 \end_layout
3707
3708 \end_inset
3709
3710
3711 \end_layout
3712
3713 \begin_layout Quotation
3714 cedilla (ced)
3715 \begin_inset space \hfill{}
3716 \end_inset
3717
3718 çÇ
3719 \end_layout
3720
3721 \begin_layout Quotation
3722 underdot (underd)
3723 \begin_inset space \hfill{}
3724 \end_inset
3725
3726
3727 \begin_inset ERT
3728 status open
3729
3730 \begin_layout Plain Layout
3731
3732
3733 \backslash
3734 d o
3735 \end_layout
3736
3737 \end_inset
3738
3739
3740 \end_layout
3741
3742 \begin_layout Quotation
3743 circumflex (circu)
3744 \begin_inset space \hfill{}
3745 \end_inset
3746
3747 âêîôû
3748 \end_layout
3749
3750 \begin_layout Quotation
3751 circle (circl)
3752 \begin_inset space \hfill{}
3753 \end_inset
3754
3755 ÅůŮ
3756 \end_layout
3757
3758 \begin_layout Quotation
3759 tie (tie)
3760 \begin_inset space \hfill{}
3761 \end_inset
3762
3763
3764 \begin_inset ERT
3765 status open
3766
3767 \begin_layout Plain Layout
3768
3769
3770 \backslash
3771 t o
3772 \end_layout
3773
3774 \end_inset
3775
3776
3777 \end_layout
3778
3779 \begin_layout Quotation
3780 breve (bre)
3781 \begin_inset space \hfill{}
3782 \end_inset
3783
3784 ă
3785 \begin_inset ERT
3786 status open
3787
3788 \begin_layout Plain Layout
3789
3790
3791 \backslash
3792 u o
3793 \end_layout
3794
3795 \end_inset
3796
3797
3798 \end_layout
3799
3800 \begin_layout Quotation
3801 caron (car)
3802 \begin_inset space \hfill{}
3803 \end_inset
3804
3805 čšž
3806 \end_layout
3807
3808 \begin_layout Quotation
3809 hungarian umlaut (hug)
3810 \begin_inset space \hfill{}
3811 \end_inset
3812
3813 őű
3814 \end_layout
3815
3816 \begin_layout Quotation
3817 umlaut (uml)
3818 \begin_inset space \hfill{}
3819 \end_inset
3820
3821 äöü
3822 \end_layout
3823
3824 \begin_layout Quotation
3825 dot (dot)
3826 \begin_inset space \hfill{}
3827 \end_inset
3828
3829 ż
3830 \begin_inset ERT
3831 status open
3832
3833 \begin_layout Plain Layout
3834
3835
3836 \backslash
3837 .s
3838 \end_layout
3839
3840 \end_inset
3841
3842
3843 \end_layout
3844
3845 \begin_layout Standard
3846 Since in many international keyboards there are exceptions to what some
3847  dead keys should do, you can define them using
3848 \end_layout
3849
3850 \begin_layout Quotation
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855
3856 \backslash
3857 kxmod
3858 \end_layout
3859
3860 \end_inset
3861
3862  deadkey key outstring
3863 \end_layout
3864
3865 \begin_layout Standard
3866 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3867 , so you put in
3868 \end_layout
3869
3870 \begin_layout Quotation
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875
3876 \backslash
3877 kxmod
3878 \end_layout
3879
3880 \end_inset
3881
3882  caron o "
3883 \backslash
3884 ^o"
3885 \end_layout
3886
3887 \begin_layout Standard
3888 to make it work correctly.
3889  Also, you have to define as exceptions dead keys over i and j, to remove
3890  the dot from them before inserting an accent mark.
3891  I will change this when the time comes, but so far I haven't had time.
3892 \end_layout
3893
3894 \begin_layout Standard
3895 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3896  double backslash.
3897  Also, quotes and 
3898 \begin_inset Flex Code
3899 status collapsed
3900
3901 \begin_layout Plain Layout
3902 #
3903 \end_layout
3904
3905 \end_inset
3906
3907  have different meaning.
3908  
3909 \begin_inset Flex Code
3910 status collapsed
3911
3912 \begin_layout Plain Layout
3913 #
3914 \end_layout
3915
3916 \end_inset
3917
3918  marks comments, quotes start and end \SpecialChar LaTeX
3919 -style commands.
3920  To enter quote, you'll need to use 
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925
3926 \backslash
3927 "
3928 \end_layout
3929
3930 \end_inset
3931
3932 , to enter 
3933 \begin_inset Flex Code
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937 #
3938 \end_layout
3939
3940 \end_inset
3941
3942 , use 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947
3948 \backslash
3949 #
3950 \end_layout
3951
3952 \end_inset
3953
3954 .
3955 \end_layout
3956
3957 \begin_layout Standard
3958 If you make a keyboard description file that works for your language, please
3959  mail it to me, so I can include it in the next keymap distribution.
3960 \end_layout
3961
3962 \begin_layout Standard
3963 More keywords will be supported in keymap configuration file in future,
3964  like
3965 \end_layout
3966
3967 \begin_layout Itemize
3968 \begin_inset Flex Code
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972
3973 \backslash
3974 kinclude filename
3975 \end_layout
3976
3977 \end_inset
3978
3979
3980 \emph on
3981
3982 \begin_inset space \hfill{}
3983 \end_inset
3984
3985
3986 \begin_inset Flex Code
3987 status collapsed
3988
3989 \begin_layout Plain Layout
3990 include
3991 \end_layout
3992
3993 \end_inset
3994
3995  another file
3996 \end_layout
3997
3998 \begin_layout Itemize
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003
4004 \backslash
4005 kprog program
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \emph on
4012
4013 \begin_inset space \hfill{}
4014 \end_inset
4015
4016
4017 \begin_inset Flex Code
4018 status collapsed
4019
4020 \begin_layout Plain Layout
4021 define
4022 \end_layout
4023
4024 \end_inset
4025
4026  an external keymap translation program 
4027 \end_layout
4028
4029 \begin_layout Standard
4030 Also, it should look into 
4031 \begin_inset Flex Code
4032 status collapsed
4033
4034 \begin_layout Plain Layout
4035 lyxrc
4036 \end_layout
4037
4038 \end_inset
4039
4040  file for defaults, too (for example, a 
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045
4046 \backslash
4047 kinclude
4048 \end_layout
4049
4050 \end_inset
4051
4052  option to include default keyboard).
4053 \end_layout
4054
4055 \end_inset
4056
4057
4058 \end_layout
4059
4060 \begin_layout Section
4061 International Keymap Stuff
4062 \begin_inset CommandInset label
4063 LatexCommand label
4064 name "sec:International-Keymap-Stuff"
4065
4066 \end_inset
4067
4068
4069 \end_layout
4070
4071 \begin_layout Standard
4072 \begin_inset Note Note
4073 status open
4074
4075 \begin_layout Plain Layout
4076 In doing the revisions on this document in March 2008, I did not look over
4077  this stuff, as I do not understand it.
4078  It would be good if someone else could do so.
4079  (RH)
4080 \end_layout
4081
4082 \end_inset
4083
4084
4085 \end_layout
4086
4087 \begin_layout Standard
4088 The next two sections describe the 
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093
4094 \shape up
4095 .kmap
4096 \end_layout
4097
4098 \end_inset
4099
4100  and 
4101 \begin_inset Flex Code
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105
4106 \shape up
4107 .cdef
4108 \end_layout
4109
4110 \end_inset
4111
4112  file syntax in detail.
4113  These sections should help you design your own key map if the ones provided
4114  do not meet your needs.
4115 \end_layout
4116
4117 \begin_layout Subsection
4118 The .kmap File
4119 \end_layout
4120
4121 \begin_layout Standard
4122
4123 \shape up
4124 .
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129 kmap
4130 \end_layout
4131
4132 \end_inset
4133
4134  file maps keystrokes to characters or strings.
4135  As the name suggests, it sets a keyboard mapping.
4136  The 
4137 \begin_inset Flex Code
4138 status collapsed
4139
4140 \begin_layout Plain Layout
4141 .kmap
4142 \end_layout
4143
4144 \end_inset
4145
4146
4147 \shape default
4148  file keywords 
4149 \shape up
4150
4151 \begin_inset Flex Code
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155
4156 \shape up
4157 kmap
4158 \end_layout
4159
4160 \end_inset
4161
4162
4163 \shape default
4164 ,
4165 \shape up
4166  
4167 \shape default
4168
4169 \begin_inset Flex Code
4170 status collapsed
4171
4172 \begin_layout Plain Layout
4173
4174 \shape up
4175 kmod
4176 \end_layout
4177
4178 \end_inset
4179
4180 ,
4181 \shape up
4182  
4183 \shape default
4184
4185 \begin_inset Flex Code
4186 status collapsed
4187
4188 \begin_layout Plain Layout
4189
4190 \shape up
4191 kxmod
4192 \end_layout
4193
4194 \end_inset
4195
4196 , and 
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201
4202 \shape up
4203 kcomb
4204 \end_layout
4205
4206 \end_inset
4207
4208  are described in this section.
4209 \end_layout
4210
4211 \begin_layout Labeling
4212 \labelwidthstring 00.00.0000
4213 \begin_inset Flex Code
4214 status collapsed
4215
4216 \begin_layout Plain Layout
4217
4218 \shape up
4219 kmap
4220 \end_layout
4221
4222 \end_inset
4223
4224  Map a character to a string
4225 \end_layout
4226
4227 \begin_layout LyX-Code
4228
4229 \backslash
4230 kmap 
4231 \family roman
4232 \emph on
4233 char
4234 \family default
4235 \emph default
4236  
4237 \family roman
4238 \emph on
4239 string
4240 \end_layout
4241
4242 \begin_layout Standard
4243 This will ma
4244 \family roman
4245 p
4246 \family default
4247  
4248 \family roman
4249 \emph on
4250 char
4251 \family default
4252 \emph default
4253  
4254 \family roman
4255 to
4256 \family default
4257  
4258 \family roman
4259 \emph on
4260 string
4261 \emph default
4262 .
4263  Note that in
4264 \family default
4265  
4266 \family roman
4267 \emph on
4268 string
4269 \emph default
4270 ,
4271 \family default
4272  
4273 \family roman
4274 \shape up
4275 the double-quote (")
4276 \family default
4277 \shape default
4278  
4279 \family roman
4280 and
4281 \family default
4282  
4283 \family roman
4284 \shape up
4285 the backslash (
4286 \backslash
4287 )
4288 \family default
4289 \shape default
4290  
4291 \family roman
4292 must be escaped with a preceding backslash (
4293 \shape up
4294
4295 \backslash
4296
4297 \shape default
4298 )
4299 \family default
4300 .
4301 \end_layout
4302
4303 \begin_layout Standard
4304 An example of a 
4305 \begin_inset Flex MenuItem
4306 status collapsed
4307
4308 \begin_layout Plain Layout
4309
4310 \shape up
4311 kmap
4312 \end_layout
4313
4314 \end_inset
4315
4316  statement to cause the symbol 
4317 \begin_inset Flex MenuItem
4318 status collapsed
4319
4320 \begin_layout Plain Layout
4321
4322 \shape up
4323 /
4324 \end_layout
4325
4326 \end_inset
4327
4328  to be output for the keystroke 
4329 \begin_inset Flex MenuItem
4330 status collapsed
4331
4332 \begin_layout Plain Layout
4333
4334 \shape up
4335 &
4336 \end_layout
4337
4338 \end_inset
4339
4340  is:
4341 \end_layout
4342
4343 \begin_layout LyX-Code
4344
4345 \backslash
4346 kmap & /
4347 \end_layout
4348
4349 \begin_layout Labeling
4350 \labelwidthstring 00.00.0000
4351 \begin_inset Flex Code
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355
4356 \shape up
4357 kmod
4358 \end_layout
4359
4360 \end_inset
4361
4362  Specify an accent character
4363 \end_layout
4364
4365 \begin_layout LyX-Code
4366
4367 \backslash
4368 kmod 
4369 \family roman
4370 \emph on
4371 char accent allowed
4372 \end_layout
4373
4374 \begin_layout Standard
4375 This will make the cha
4376 \family roman
4377 racter
4378 \family default
4379  
4380 \family roman
4381 \emph on
4382 char
4383 \family default
4384 \emph default
4385  
4386 \family roman
4387 \shape up
4388 \emph on
4389 be an accent
4390 \family default
4391 \shape default
4392 \emph default
4393  
4394 \family roman
4395 \shape up
4396 on the
4397 \family default
4398 \shape default
4399  
4400 \family roman
4401 \shape up
4402 \emph on
4403 allowed
4404 \family default
4405 \shape default
4406 \emph default
4407  
4408 \family roman
4409 \shape up
4410 cha
4411 \family default
4412 racter(s).
4413  This is the dead key
4414 \begin_inset Foot
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 The term 
4419 \family roman
4420 \emph on
4421 dead key
4422 \family default
4423 \emph default
4424  refers to a key that does not produce a character by itself, but when followed
4425  with another key, produces the desired accent character.
4426  For example, a German characte
4427 \family roman
4428 r with an umlaut like
4429 \family default
4430  
4431 \family roman
4432 \emph on
4433 ä
4434 \family default
4435 \emph default
4436  
4437 \family roman
4438 can be produced in this manner.
4439 \end_layout
4440
4441 \end_inset
4442
4443  mechanism.
4444  
4445 \end_layout
4446
4447 \begin_layout Standard
4448 If you 
4449 \family roman
4450 hit
4451 \family default
4452  
4453 \family roman
4454 \emph on
4455 char
4456 \family default
4457 \emph default
4458  
4459 \family roman
4460 and then another key not in
4461 \family default
4462  
4463 \family roman
4464 \emph on
4465 allowed
4466 \emph default
4467 , you will get a
4468 \family default
4469  
4470 \family roman
4471 \emph on
4472 char
4473 \family default
4474 \emph default
4475  
4476 \family roman
4477 followed by the other, not allowed key, as output.
4478
4479 \family default
4480  Note that a 
4481 \begin_inset Flex MenuItem
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485
4486 \shape up
4487 Backspace
4488 \end_layout
4489
4490 \end_inset
4491
4492  cancels a dead key, so if 
4493 \family roman
4494 you hit
4495 \family default
4496  
4497 \family roman
4498 \emph on
4499 char
4500 \family default
4501 \emph default
4502  
4503 \begin_inset Flex MenuItem
4504 status collapsed
4505
4506 \begin_layout Plain Layout
4507
4508 \shape up
4509 \emph on
4510 Backspace
4511 \end_layout
4512
4513 \end_inset
4514
4515 , the cursor will not go one position backwards but will instead cancel
4516  the effect t
4517 \family roman
4518 hat
4519 \family default
4520  
4521 \family roman
4522 \shape up
4523 \emph on
4524 char
4525 \family default
4526 \shape default
4527 \emph default
4528  
4529 \family roman
4530 \shape up
4531 might have had on the next keystroke.
4532  
4533 \end_layout
4534
4535 \begin_layout Standard
4536 The following example specifies that the character ' is to be an acute accent,
4537  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4538 \end_layout
4539
4540 \begin_layout LyX-Code
4541
4542 \backslash
4543 kmod ' acute aeiouAEIOU
4544 \end_layout
4545
4546 \begin_layout Labeling
4547 \labelwidthstring 00.00.0000
4548 \begin_inset Flex Code
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552 kxmod
4553 \end_layout
4554
4555 \end_inset
4556
4557  Specify an exception to the accent character
4558 \end_layout
4559
4560 \begin_layout LyX-Code
4561
4562 \backslash
4563 kxmod  
4564 \family roman
4565 \emph on
4566 accent char result
4567 \end_layout
4568
4569 \begin_layout Standard
4570 This defines an exce
4571 \family roman
4572 ption for
4573 \family default
4574  
4575 \family roman
4576 \emph on
4577 accent
4578 \family default
4579 \emph default
4580  
4581 \family roman
4582 on
4583 \family default
4584  
4585 \family roman
4586 \emph on
4587 char
4588 \emph default
4589 .
4590  T
4591 \shape up
4592 he
4593 \family default
4594 \shape default
4595  
4596 \family roman
4597 \shape up
4598 \emph on
4599 accent
4600 \family default
4601 \shape default
4602 \emph default
4603  
4604 \family roman
4605 \shape up
4606 must
4607 \family default
4608 \shape default
4609  
4610 \shape up
4611 have been assigned a keystroke with a previous
4612 \shape default
4613  
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618
4619 \shape up
4620
4621 \backslash
4622 kmo
4623 \shape default
4624 d
4625 \end_layout
4626
4627 \end_inset
4628
4629  declar
4630 \family roman
4631 ation and
4632 \family default
4633  
4634 \family roman
4635 \emph on
4636 char
4637 \family default
4638 \emph default
4639  
4640 \family roman
4641 must not belong in the
4642 \family default
4643  
4644 \family roman
4645 \emph on
4646 allowed
4647 \family default
4648 \emph default
4649  
4650 \family roman
4651 set of
4652 \family default
4653  
4654 \family roman
4655 \emph on
4656 accent
4657 \emph default
4658 .
4659  When
4660 \family default
4661  
4662 \family roman
4663 \shape up
4664 you enter the
4665 \family default
4666 \shape default
4667  
4668 \family roman
4669 \shape up
4670 \emph on
4671 accent char
4672 \family default
4673 \shape default
4674 \emph default
4675  
4676 \family roman
4677 \shape up
4678 sequence,
4679 \family default
4680 \shape default
4681  
4682 \family roman
4683 \shape up
4684 \emph on
4685 result
4686 \emph default
4687  is produced.
4688  If such a declaration does not exist in
4689 \family default
4690 \shape default
4691  
4692 \shape up
4693 the
4694 \shape default
4695  
4696 \begin_inset Flex Code
4697 status collapsed
4698
4699 \begin_layout Plain Layout
4700
4701 \shape up
4702 .kmap
4703 \end_layout
4704
4705 \end_inset
4706
4707  file and yo
4708 \family roman
4709 u enter
4710 \family default
4711  
4712 \family roman
4713 \emph on
4714 accent char
4715 \emph default
4716 , you get
4717 \family default
4718  
4719 \family roman
4720 \emph on
4721 accent_key char
4722 \emph default
4723  where
4724 \family default
4725  
4726 \family roman
4727 \emph on
4728 accent_key
4729 \emph default
4730  is the first arg
4731 \family default
4732 ument of the 
4733 \begin_inset Flex Code
4734 status collapsed
4735
4736 \begin_layout Plain Layout
4737
4738 \shape up
4739
4740 \backslash
4741 kmod
4742 \end_layout
4743
4744 \end_inset
4745
4746  declaration.
4747  
4748 \end_layout
4749
4750 \begin_layout Standard
4751 The following command produces causes äi to be produced when you enter acute-i
4752  ('i):
4753 \end_layout
4754
4755 \begin_layout LyX-Code
4756
4757 \backslash
4758 kxmod acute i "
4759 \backslash
4760
4761 \backslash
4762 '{
4763 \backslash
4764
4765 \backslash
4766 i}"
4767 \end_layout
4768
4769 \begin_layout Labeling
4770 \labelwidthstring 00.00.0000
4771 \begin_inset Flex Code
4772 status collapsed
4773
4774 \begin_layout Plain Layout
4775 kcomb
4776 \end_layout
4777
4778 \end_inset
4779
4780  Combine two accent characters
4781 \end_layout
4782
4783 \begin_layout LyX-Code
4784
4785 \backslash
4786 kcomb 
4787 \family roman
4788 \emph on
4789 accent1 accent2 allowed
4790 \end_layout
4791
4792 \begin_layout Standard
4793 This one is getting pretty esoteric.
4794  It allows you to combine the effect 
4795 \family roman
4796 of
4797 \family default
4798  
4799 \family roman
4800 \emph on
4801 accent1
4802 \family default
4803 \emph default
4804  
4805 \family roman
4806 and
4807 \family default
4808  
4809 \family roman
4810 \emph on
4811 accent2
4812 \family default
4813 \emph default
4814  
4815 \family roman
4816 (in that order!) on
4817 \family default
4818  
4819 \family roman
4820 \emph on
4821 allowed
4822 \family default
4823 \emph default
4824  
4825 \family roman
4826 chars.
4827  The keystrokes for
4828 \family default
4829  
4830 \family roman
4831 \emph on
4832 accent1
4833 \family default
4834 \emph default
4835  
4836 \family roman
4837 and
4838 \family default
4839  
4840 \family roman
4841 \emph on
4842 accent2
4843 \family default
4844 \emph default
4845  
4846 \family roman
4847 must have be
4848 \family default
4849 en set with a 
4850 \begin_inset Flex Code
4851 status collapsed
4852
4853 \begin_layout Plain Layout
4854
4855 \shape up
4856
4857 \backslash
4858 kmod
4859 \end_layout
4860
4861 \end_inset
4862
4863  command at 
4864 \family roman
4865 a
4866 \family default
4867  
4868 \family roman
4869 \emph on
4870 previous
4871 \family default
4872 \emph default
4873  
4874 \family roman
4875 point in the
4876 \family default
4877  file.
4878  
4879 \end_layout
4880
4881 \begin_layout Standard
4882 Consider this example from the 
4883 \begin_inset Flex Code
4884 status collapsed
4885
4886 \begin_layout Plain Layout
4887
4888 \shape up
4889 greek.kmap
4890 \end_layout
4891
4892 \end_inset
4893
4894  file:
4895 \end_layout
4896
4897 \begin_layout LyX-Code
4898
4899 \backslash
4900 kmod ; acute aeioyvhAEIOYVH 
4901 \backslash
4902 kmod : umlaut iyIY 
4903 \backslash
4904 kcomb acute umlaut iyIY
4905 \end_layout
4906
4907 \begin_layout Standard
4908 This allows you to press 
4909 \begin_inset Flex MenuItem
4910 status collapsed
4911
4912 \begin_layout Plain Layout
4913
4914 \shape up
4915 ;:i
4916 \end_layout
4917
4918 \end_inset
4919
4920  and get the effect of 
4921 \begin_inset Flex Code
4922 status collapsed
4923
4924 \begin_layout Plain Layout
4925
4926 \shape up
4927
4928 \backslash
4929 '{
4930 \backslash
4931 "{i}}
4932 \end_layout
4933
4934 \end_inset
4935
4936 .
4937  
4938 \family roman
4939 \shape up
4940 A backspace
4941 \family default
4942 \shape default
4943  in this case cancels the last dead key, so if you press 
4944 \begin_inset Flex MenuItem
4945 status collapsed
4946
4947 \begin_layout Plain Layout
4948
4949 \shape up
4950 ;: Backspace i
4951 \end_layout
4952
4953 \end_inset
4954
4955  you get 
4956 \begin_inset Flex Code
4957 status collapsed
4958
4959 \begin_layout Plain Layout
4960
4961 \shape up
4962
4963 \backslash
4964 '{i}
4965 \end_layout
4966
4967 \end_inset
4968
4969 .
4970 \end_layout
4971
4972 \begin_layout Subsection
4973 The .cdef File
4974 \end_layout
4975
4976 \begin_layout Standard
4977 After the 
4978 \begin_inset Flex Code
4979 status collapsed
4980
4981 \begin_layout Plain Layout
4982
4983 \shape up
4984 .kmap
4985 \end_layout
4986
4987 \end_inset
4988
4989  mapping is performed, a 
4990 \begin_inset Flex Code
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994
4995 \shape up
4996 .cde
4997 \shape default
4998 f
4999 \end_layout
5000
5001 \end_inset
5002
5003  file maps the strings that the symbols generate to characters in the current
5004  font.
5005  The \SpecialChar LyX
5006  distribution currently includes at least the 
5007 \begin_inset Flex Code
5008 status collapsed
5009
5010 \begin_layout Plain Layout
5011
5012 \shape up
5013 iso8859-1.cdef
5014 \end_layout
5015
5016 \end_inset
5017
5018  and 
5019 \begin_inset Flex Code
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023
5024 \shape up
5025 iso8859-2.cdef
5026 \end_layout
5027
5028 \end_inset
5029
5030  files.
5031 \end_layout
5032
5033 \begin_layout Standard
5034 In general the 
5035 \begin_inset Flex Code
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039
5040 \shape up
5041 .cdef
5042 \end_layout
5043
5044 \end_inset
5045
5046  file is a sequence of declarations of the form
5047 \end_layout
5048
5049 \begin_layout LyX-Code
5050
5051 \family roman
5052 \emph on
5053 char_index_in_set
5054 \family default
5055 \emph default
5056  
5057 \family roman
5058 \emph on
5059  string
5060 \end_layout
5061
5062 \begin_layout Standard
5063 For example, in order to map 
5064 \begin_inset Flex MenuItem
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068
5069 \shape up
5070
5071 \backslash
5072 '{e}
5073 \end_layout
5074
5075 \end_inset
5076
5077  to the corresponding character in the iso-8859-1 set (233), the following
5078  declaration is used
5079 \end_layout
5080
5081 \begin_layout LyX-Code
5082 233 "
5083 \backslash
5084
5085 \backslash
5086 '{e}"
5087 \end_layout
5088
5089 \begin_layout Standard
5090 with 
5091 \begin_inset Flex Code
5092 status collapsed
5093
5094 \begin_layout Plain Layout
5095
5096 \backslash
5097
5098 \end_layout
5099
5100 \end_inset
5101
5102  and 
5103 \begin_inset Flex Code
5104 status collapsed
5105
5106 \begin_layout Plain Layout
5107 "
5108 \end_layout
5109
5110 \end_inset
5111
5112  being escap
5113 \family roman
5114 ed in
5115 \family default
5116  
5117 \family roman
5118 \emph on
5119 string
5120 \emph default
5121 .
5122  Note that
5123 \family default
5124  the same character can apply to more than one string.
5125  In the 
5126 \begin_inset Flex Code
5127 status collapsed
5128
5129 \begin_layout Plain Layout
5130 i
5131 \shape up
5132 so-8859-7.cdef
5133 \end_layout
5134
5135 \end_inset
5136
5137  file you have
5138 \end_layout
5139
5140 \begin_layout LyX-Code
5141 192 "
5142 \backslash
5143
5144 \backslash
5145 '{
5146 \backslash
5147
5148 \backslash
5149
5150 \backslash
5151 "{i}}"
5152 \begin_inset Newline newline
5153 \end_inset
5154
5155 192 "
5156 \backslash
5157
5158 \backslash
5159
5160 \backslash
5161 "{
5162 \backslash
5163
5164 \backslash
5165 '{i}}"
5166 \end_layout
5167
5168 \begin_layout Standard
5169 If \SpecialChar LyX
5170  cannot find a mapping for the string produced by the keystroke or a
5171  deadkey sequence, it will check if it looks like an accented char and try
5172  to draw an accent over the character on screen.
5173 \end_layout
5174
5175 \begin_layout Subsection
5176 Dead Keys
5177 \end_layout
5178
5179 \begin_layout Standard
5180 There is a second way to add support for international characters through
5181  so-called dead-keys.
5182  A dead-key works in combination with a letter to produce an accented character.
5183  Here, we'll explain how to create a really simple dead-key to illustrate
5184  how they work.
5185 \end_layout
5186
5187 \begin_layout Standard
5188 Suppose you happen to need the circumflex character, 
5189 \begin_inset Quotes eld
5190 \end_inset
5191
5192  ̂
5193 \begin_inset Quotes erd
5194 \end_inset
5195
5196 .
5197  You could bind the 
5198 \begin_inset Flex MenuItem
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 ^
5203 \end_layout
5204
5205 \end_inset
5206
5207 -key [a.k.a.
5208 \begin_inset space ~
5209 \end_inset
5210
5211
5212 \begin_inset Flex MenuItem
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216 Shift-6
5217 \end_layout
5218
5219 \end_inset
5220
5221 ] to the \SpecialChar LyX
5222  command 
5223 \begin_inset Flex Code
5224 status collapsed
5225
5226 \begin_layout Plain Layout
5227 accent-circumflex
5228 \end_layout
5229
5230 \end_inset
5231
5232  in your 
5233 \begin_inset Flex Code
5234 status collapsed
5235
5236 \begin_layout Plain Layout
5237 lyxrc
5238 \end_layout
5239
5240 \end_inset
5241
5242  file.
5243  Now, whenever you type the 
5244 \begin_inset Flex MenuItem
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248 ^
5249 \end_layout
5250
5251 \end_inset
5252
5253 -key followed by a letter, that letter will have a circumflex accent on
5254  it.
5255  For example, the sequence 
5256 \begin_inset Quotes eld
5257 \end_inset
5258
5259
5260 \begin_inset Flex MenuItem
5261 status collapsed
5262
5263 \begin_layout Plain Layout
5264 ^e
5265 \end_layout
5266
5267 \end_inset
5268
5269
5270 \begin_inset Quotes erd
5271 \end_inset
5272
5273  produces the letter: 
5274 \begin_inset Quotes eld
5275 \end_inset
5276
5277 ê
5278 \begin_inset Quotes erd
5279 \end_inset
5280
5281 .
5282  If you tried to type 
5283 \begin_inset Quotes eld
5284 \end_inset
5285
5286
5287 \begin_inset Flex MenuItem
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 ^t
5292 \end_layout
5293
5294 \end_inset
5295
5296
5297 \begin_inset Quotes erd
5298 \end_inset
5299
5300 , however, \SpecialChar LyX
5301  will complain with a beep, since a 
5302 \begin_inset Quotes eld
5303 \end_inset
5304
5305
5306 \begin_inset Flex MenuItem
5307 status collapsed
5308
5309 \begin_layout Plain Layout
5310 t
5311 \end_layout
5312
5313 \end_inset
5314
5315
5316 \begin_inset Quotes erd
5317 \end_inset
5318
5319  never takes a circumflex accent.
5320  Hitting 
5321 \begin_inset Flex MenuItem
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325 Space
5326 \end_layout
5327
5328 \end_inset
5329
5330  after a dead-key produces the bare-accent.
5331  Please note this last point! If you bind a key to a dead-key, you'll need
5332  to rebind the character on that key to yet another key.
5333  Binding the 
5334 \begin_inset Flex MenuItem
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338 ,-key
5339 \end_layout
5340
5341 \end_inset
5342
5343  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5344 \end_layout
5345
5346 \begin_layout Standard
5347 One common way to bind dead-keys is to use 
5348 \begin_inset Flex MenuItem
5349 status collapsed
5350
5351 \begin_layout Plain Layout
5352 Meta-
5353 \end_layout
5354
5355 \end_inset
5356
5357
5358 \begin_inset Flex MenuItem
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 Ctrl-
5363 \end_layout
5364
5365 \end_inset
5366
5367 , and 
5368 \begin_inset Flex MenuItem
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372 Shift-
5373 \end_layout
5374
5375 \end_inset
5376
5377  in combination with an accent, like 
5378 \begin_inset Quotes eld
5379 \end_inset
5380
5381
5382 \begin_inset Flex MenuItem
5383 status collapsed
5384
5385 \begin_layout Plain Layout
5386 ~
5387 \end_layout
5388
5389 \end_inset
5390
5391
5392 \begin_inset Quotes erd
5393 \end_inset
5394
5395  or 
5396 \begin_inset Quotes eld
5397 \end_inset
5398
5399
5400 \begin_inset Flex MenuItem
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 ,
5405 \end_layout
5406
5407 \end_inset
5408
5409
5410 \begin_inset Quotes erd
5411 \end_inset
5412
5413  or 
5414 \begin_inset Quotes eld
5415 \end_inset
5416
5417
5418 \begin_inset Flex MenuItem
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422 ^
5423 \end_layout
5424
5425 \end_inset
5426
5427
5428 \begin_inset Quotes erd
5429 \end_inset
5430
5431 .
5432  Another way involves using 
5433 \begin_inset Flex Code
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 xmodmap
5438 \end_layout
5439
5440 \end_inset
5441
5442  and 
5443 \begin_inset Flex Code
5444 status collapsed
5445
5446 \begin_layout Plain Layout
5447 xkeycaps
5448 \end_layout
5449
5450 \end_inset
5451
5452  to set up the special 
5453 \begin_inset Flex Code
5454 status collapsed
5455
5456 \begin_layout Plain Layout
5457 Mode_Switch
5458 \end_layout
5459
5460 \end_inset
5461
5462  key.
5463  The 
5464 \begin_inset Flex Code
5465 status collapsed
5466
5467 \begin_layout Plain Layout
5468 Mode_Switch
5469 \end_layout
5470
5471 \end_inset
5472
5473  acts in some ways just like 
5474 \begin_inset Flex MenuItem
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478 Shift
5479 \end_layout
5480
5481 \end_inset
5482
5483  and permits you to bind keys to accented characters.
5484  You can also turn keys into dead-keys by binding them to something like
5485  
5486 \begin_inset Flex Code
5487 status collapsed
5488
5489 \begin_layout Plain Layout
5490 usldead_cedilla
5491 \end_layout
5492
5493 \end_inset
5494
5495  and then binding this symbolic key to the corresponding \SpecialChar LyX
5496  command.
5497 \begin_inset Foot
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501 Note from 
5502 \noun on
5503 John Weiss
5504 \noun default
5505 : This is exactly what I do in my 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510 ~/.lyx/lyxrc
5511 \end_layout
5512
5513 \end_inset
5514
5515  and my 
5516 \begin_inset Flex Code
5517 status collapsed
5518
5519 \begin_layout Plain Layout
5520 ~/.xmodmap
5521 \end_layout
5522
5523 \end_inset
5524
5525  files.
5526  I have my 
5527 \begin_inset Flex MenuItem
5528 status collapsed
5529
5530 \begin_layout Plain Layout
5531 Scroll
5532 \begin_inset space ~
5533 \end_inset
5534
5535 Lock
5536 \end_layout
5537
5538 \end_inset
5539
5540  key set up as 
5541 \begin_inset Flex Code
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 Mode_Shift
5546 \end_layout
5547
5548 \end_inset
5549
5550  and a bunch of these 
5551 \begin_inset Quotes eld
5552 \end_inset
5553
5554
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 usldead_*
5560 \end_layout
5561
5562 \end_inset
5563
5564
5565 \begin_inset Quotes erd
5566 \end_inset
5567
5568  symbolic keys bound such things as 
5569 \begin_inset Flex MenuItem
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 Scroll
5574 \begin_inset space ~
5575 \end_inset
5576
5577 Lock-^
5578 \end_layout
5579
5580 \end_inset
5581
5582  and 
5583 \begin_inset Flex MenuItem
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 Scroll
5588 \begin_inset space ~
5589 \end_inset
5590
5591 Lock-~
5592 \end_layout
5593
5594 \end_inset
5595
5596 .
5597  This is how I produce my accented characters.
5598 \end_layout
5599
5600 \end_inset
5601
5602  You can make just about anything into the 
5603 \begin_inset Flex Code
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 Mode_Switch
5608 \end_layout
5609
5610 \end_inset
5611
5612  key: One of the 
5613 \begin_inset Flex MenuItem
5614 status collapsed
5615
5616 \begin_layout Plain Layout
5617 Ctrl-
5618 \end_layout
5619
5620 \end_inset
5621
5622  keys, a spare function key, etc.
5623  As for the \SpecialChar LyX
5624  commands that produce accents, check the entry for 
5625 \begin_inset Flex Code
5626 status collapsed
5627
5628 \begin_layout Plain Layout
5629 accent-acute
5630 \end_layout
5631
5632 \end_inset
5633
5634  in the 
5635 \emph on
5636 Reference Manual
5637 \emph default
5638 .
5639  You'll find the complete list there.
5640 \end_layout
5641
5642 \begin_layout Subsection
5643 Saving your Language Configuration
5644 \end_layout
5645
5646 \begin_layout Standard
5647 You can edit your preferences so that your desired language environment
5648  is automatically configured when \SpecialChar LyX
5649  starts up, via the 
5650 \begin_inset Flex MenuItem
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 Edit\SpecialChar menuseparator
5655 Preferences
5656 \end_layout
5657
5658 \end_inset
5659
5660  dialog.
5661 \end_layout
5662
5663 \begin_layout Chapter
5664 Installing New Document Classes, Layouts, and Templates
5665 \begin_inset CommandInset label
5666 LatexCommand label
5667 name "cha:Installing-New-Document"
5668
5669 \end_inset
5670
5671
5672 \begin_inset Argument 1
5673 status collapsed
5674
5675 \begin_layout Plain Layout
5676 Installing New Document Classes
5677 \end_layout
5678
5679 \end_inset
5680
5681
5682 \end_layout
5683
5684 \begin_layout Standard
5685 In this chapter, we describe the procedures for creating and installing
5686  new \SpecialChar LyX
5687  layout and template files, as well as offer a refresher on correctly
5688  installing new \SpecialChar LaTeX
5689  document classes.
5690  
5691 \end_layout
5692
5693 \begin_layout Standard
5694 First, let us a say a few words about how one ought to think about the relation
5695  between \SpecialChar LyX
5696  and \SpecialChar LaTeX
5697 .
5698  The thing to understand is that, in a certain sense, \SpecialChar LyX
5699  doesn't know anything
5700  about \SpecialChar LaTeX
5701 .
5702  Indeed, from \SpecialChar LyX
5703 's point of view, \SpecialChar LaTeX
5704  is just one of several 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708 backend formats
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712  in which it is capable of producing output.
5713  Other such formats are DocBook, plaintext, and XHTML.
5714  \SpecialChar LaTeX
5715  is, of course, a particularly important format, but very little of the
5716  information \SpecialChar LyX
5717  has about \SpecialChar LaTeX
5718  is actually contained in the program itself.
5719 \begin_inset Foot
5720 status collapsed
5721
5722 \begin_layout Plain Layout
5723 Some commands are sufficiently complex that they are 
5724 \begin_inset Quotes eld
5725 \end_inset
5726
5727 hardcoded
5728 \begin_inset Quotes erd
5729 \end_inset
5730
5731  into \SpecialChar LyX
5732 .
5733  But the developers generally regard this as a Bad Thing.
5734 \end_layout
5735
5736 \end_inset
5737
5738  Rather, that information, even for the standard classes like 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 article.cls
5744 \end_layout
5745
5746 \end_inset
5747
5748 , is contained in `layout files'.
5749  Similarly, \SpecialChar LyX
5750  itself does not know much about DocBook or XHTML.
5751  What it knows is contained in layout files.
5752 \end_layout
5753
5754 \begin_layout Standard
5755 You can think of the layout file for a given document class as a translation
5756  manual between \SpecialChar LyX
5757  constructs—paragraphs with their corresponding styles,
5758  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5759 , DocBook, or XHTML
5760  constructs.
5761  Almost everything \SpecialChar LyX
5762  knows about 
5763 \begin_inset Flex Code
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 article.cls
5768 \end_layout
5769
5770 \end_inset
5771
5772 , for example, is contained in the file 
5773 \begin_inset Flex Code
5774 status collapsed
5775
5776 \begin_layout Plain Layout
5777 article.layout
5778 \end_layout
5779
5780 \end_inset
5781
5782  and in various other files it includes.
5783  For this reason, anyone intending to write layout files should plan to
5784  study the existing files.
5785  A good place to start is with 
5786 \begin_inset Flex Code
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 stdsections.inc
5791 \end_layout
5792
5793 \end_inset
5794
5795 , which is included in 
5796 \begin_inset Flex Code
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 article.layout
5801 \end_layout
5802
5803 \end_inset
5804
5805
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 book.layout
5811 \end_layout
5812
5813 \end_inset
5814
5815 , and many of the other layout files for document classes.
5816  This file is where sections and the like are defined: 
5817 \begin_inset Flex Code
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 stdsections.inc
5822 \end_layout
5823
5824 \end_inset
5825
5826  tells \SpecialChar LyX
5827  how paragraphs that are marked with the Section, Subsection, etc,
5828  styles can be translated into corresponding \SpecialChar LaTeX
5829 , DocBook, and XHTML commands
5830  and tags.
5831  The 
5832 \begin_inset Flex Code
5833 status collapsed
5834
5835 \begin_layout Plain Layout
5836 article.layout
5837 \end_layout
5838
5839 \end_inset
5840
5841  file basically just includes several of these 
5842 \begin_inset Flex Code
5843 status collapsed
5844
5845 \begin_layout Plain Layout
5846 std*.inc
5847 \end_layout
5848
5849 \end_inset
5850
5851  files.
5852 \end_layout
5853
5854 \begin_layout Standard
5855 Defining the \SpecialChar LyX
5856 –\SpecialChar LaTeX
5857  correspondence is not the only thing layout files do, though.
5858  Their other job is to define how the \SpecialChar LyX
5859  constructs themselves will appear
5860  on-screen.
5861  The fact that layout files have these two jobs is often a source of confusion,
5862  because they are completely separate.
5863  Telling \SpecialChar LyX
5864  how to translate a certain paragraph style into \SpecialChar LaTeX
5865  does not tell
5866  \SpecialChar LyX
5867  how to display it; conversely, telling \SpecialChar LyX
5868  how to display a certain paragraph
5869  style does not tell \SpecialChar LyX
5870  how to translate it into \SpecialChar LaTeX
5871  (let alone tell \SpecialChar LaTeX
5872  how to
5873  display it).
5874  So, in general, when you define a new \SpecialChar LyX
5875  construct, you must always do two
5876  quite separate things: (i)
5877 \begin_inset space ~
5878 \end_inset
5879
5880 tell \SpecialChar LyX
5881  how to translate it into \SpecialChar LaTeX
5882  and (ii)
5883 \begin_inset space ~
5884 \end_inset
5885
5886 tell \SpecialChar LyX
5887  how to display it.
5888 \end_layout
5889
5890 \begin_layout Standard
5891 Much the same is true, of course, as regards \SpecialChar LyX
5892 's other backend formats, though
5893  XHTML is in some ways different, because in that case \SpecialChar LyX
5894  
5895 \emph on
5896 is
5897 \emph default
5898  able, to some extent, to use information about how it should display a
5899  paragraph on the screen to output information (in the form of CSS) about
5900  how the paragraph should be displayed in a browser.
5901  Even in this case, however, the distinction between what \SpecialChar LyX
5902  does internally
5903  and how things are rendered externally remains in force, and the two can
5904  be controlled separately.
5905  See 
5906 \begin_inset CommandInset ref
5907 LatexCommand ref
5908 reference "sec:Tags-for-XHTML"
5909
5910 \end_inset
5911
5912  for the details.
5913 \end_layout
5914
5915 \begin_layout Section
5916 Installing new \SpecialChar LaTeX
5917  files
5918 \end_layout
5919
5920 \begin_layout Standard
5921 Some installations may not include a \SpecialChar LaTeX
5922  package or class file that you would
5923  like to use within \SpecialChar LyX
5924 .
5925  For example, you might need Foil\SpecialChar TeX
5926 , a package for preparing slides for overhead
5927  projectors.
5928  Modern \SpecialChar LaTeX
5929  distributions like \SpecialChar TeX
5930 Live (2008 or newer) or MiK\SpecialChar TeX
5931  provide a user interface
5932  for installing such packages.
5933  For example, with MiK\SpecialChar TeX
5934 , you start the program 
5935 \begin_inset Quotes eld
5936 \end_inset
5937
5938 Package
5939 \begin_inset space ~
5940 \end_inset
5941
5942 Manager
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946  to get a list of available packages.
5947  To install one of them, right click on it or use the corresponding toolbar
5948  button.
5949 \end_layout
5950
5951 \begin_layout Standard
5952 If your \SpecialChar LaTeX
5953  distribution does not provide such a `package manager', or if the
5954  package is not available from your distribution, then follow these steps
5955  to install it manually:
5956 \end_layout
5957
5958 \begin_layout Enumerate
5959 Get the package from 
5960 \begin_inset CommandInset href
5961 LatexCommand href
5962 name "CTAN"
5963 target "http://www.ctan.org/"
5964
5965 \end_inset
5966
5967  or wherever.
5968 \end_layout
5969
5970 \begin_layout Enumerate
5971 If the package contains a file with the ending 
5972 \begin_inset Quotes eld
5973 \end_inset
5974
5975
5976 \begin_inset Flex Code
5977 status collapsed
5978
5979 \begin_layout Plain Layout
5980 .ins
5981 \end_layout
5982
5983 \end_inset
5984
5985
5986 \begin_inset Quotes erd
5987 \end_inset
5988
5989  (is the case for Foil\SpecialChar TeX
5990 ) then open a console, change to the folder of this
5991  file and execute the command 
5992 \begin_inset Flex Code
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996 latex foiltex.ins
5997 \end_layout
5998
5999 \end_inset
6000
6001 .
6002  You have now unpacked the package and have all files to install it.
6003  Most \SpecialChar LaTeX
6004 -packages are not packed and you can skip this step.
6005 \end_layout
6006
6007 \begin_layout Enumerate
6008 Now you need to decide if the package should be available for all users
6009  or only for you.
6010 \begin_inset Separator parbreak
6011 \end_inset
6012
6013
6014 \end_layout
6015
6016 \begin_deeper
6017 \begin_layout Enumerate
6018 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6019  for all users on your system, then install it in your `local' \SpecialChar TeX
6020  tree, otherwise
6021  install it in your own `user' \SpecialChar TeX
6022  tree.
6023  Where these trees should be created, if they do not already exist, depends
6024  on your system.
6025  To find this out, look in the file 
6026 \begin_inset Flex Code
6027 status collapsed
6028
6029 \begin_layout Plain Layout
6030 texmf.cnf
6031 \end_layout
6032
6033 \end_inset
6034
6035 .
6036 \begin_inset Foot
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 This is usually in the directory 
6041 \begin_inset Flex Code
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 $TEXMF/web2c
6046 \end_layout
6047
6048 \end_inset
6049
6050 , though you can execute the command 
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 kpsewhich texmf.cnf
6056 \end_layout
6057
6058 \end_inset
6059
6060  to locate it.
6061 \end_layout
6062
6063 \end_inset
6064
6065  The location of the `local' \SpecialChar TeX
6066  tree is defined by the 
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 TEXMFLOCAL
6072 \end_layout
6073
6074 \end_inset
6075
6076  variable; this is usually somewhere like 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 /usr/local/share/texmf
6082 \end_layout
6083
6084 \end_inset
6085
6086 .
6087  The location of the `user' \SpecialChar TeX
6088  tree is defined by 
6089 \begin_inset Flex Code
6090 status collapsed
6091
6092 \begin_layout Plain Layout
6093 TEXMFHOME
6094 \end_layout
6095
6096 \end_inset
6097
6098  and is commonly 
6099 \begin_inset Flex Code
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 $HOME/texmf
6104 \end_layout
6105
6106 \end_inset
6107
6108 .
6109  (If these variables are not predefined, you have to define them.) You'll
6110  probably need root permissions to create or modify the `local' tree, but
6111  not for your `user' tree.
6112 \begin_inset Newline newline
6113 \end_inset
6114
6115 In general, it is recommended to install in the user tree because your user
6116  will not be modified or even overwritten when you upgrade your system.
6117  It will typically also be backed up together with everything else when
6118  you backup your home directory (which, of course, you do on a regular basis).
6119 \end_layout
6120
6121 \begin_layout Enumerate
6122 On Windows, if you want the new package to be available for all users on
6123  your system, change to the folder where \SpecialChar LaTeX
6124  is installed and then change to
6125  the subfolder 
6126 \begin_inset Flex Code
6127 status collapsed
6128
6129 \begin_layout Plain Layout
6130 ~
6131 \backslash
6132 tex
6133 \backslash
6134 latex
6135 \end_layout
6136
6137 \end_inset
6138
6139 .
6140  (For MiK\SpecialChar TeX
6141 , this would be by default the folder 
6142 \begin_inset Flex Code
6143 status collapsed
6144
6145 \begin_layout Plain Layout
6146 ~:
6147 \backslash
6148 Programs
6149 \backslash
6150 MiKTeX
6151 \backslash
6152 tex
6153 \backslash
6154 latex
6155 \end_layout
6156
6157 \end_inset
6158
6159 .)
6160 \begin_inset Foot
6161 status open
6162
6163 \begin_layout Plain Layout
6164 Note that this will be the correct path only on English installations.
6165  On a German one, it would be 
6166 \begin_inset Flex Code
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 ~:
6171 \backslash
6172 Programme
6173 \backslash
6174 MiKTeX
6175 \backslash
6176 tex
6177 \backslash
6178 latex
6179 \end_layout
6180
6181 \end_inset
6182
6183 , and similarly for other languages.
6184 \end_layout
6185
6186 \end_inset
6187
6188  Create there a new folder 
6189 \begin_inset Flex Code
6190 status collapsed
6191
6192 \begin_layout Plain Layout
6193 foiltex
6194 \end_layout
6195
6196 \end_inset
6197
6198  and copy all files of the package into it.
6199  
6200 \begin_inset Newline newline
6201 \end_inset
6202
6203 If the package should only available for you or you don't have admin permissions
6204 , do the same, but in the local \SpecialChar LaTeX
6205  folder.
6206  E.
6207 \begin_inset space \thinspace{}
6208 \end_inset
6209
6210 g., for MiK\SpecialChar TeX
6211
6212 \begin_inset space ~
6213 \end_inset
6214
6215 2.8 under Windows XP, this would be the folder:
6216 \begin_inset Newline newline
6217 \end_inset
6218
6219
6220 \family sans
6221
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 ~:
6227 \backslash
6228 Documents and Settings
6229 \backslash
6230 <username>
6231 \backslash
6232 Application Data
6233 \backslash
6234
6235 \end_layout
6236
6237 \end_inset
6238
6239
6240 \begin_inset Newline newline
6241 \end_inset
6242
6243
6244 \family default
6245
6246 \begin_inset Phantom HPhantom
6247 status open
6248
6249 \begin_layout Plain Layout
6250
6251 \family sans
6252 ~:
6253 \backslash
6254
6255 \end_layout
6256
6257 \end_inset
6258
6259
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 MiKTeX
6265 \backslash
6266 2.8
6267 \backslash
6268 tex
6269 \backslash
6270 latex
6271 \end_layout
6272
6273 \end_inset
6274
6275
6276 \begin_inset Newline newline
6277 \end_inset
6278
6279 On Vista, it would be:
6280 \begin_inset Newline newline
6281 \end_inset
6282
6283
6284 \begin_inset Flex Code
6285 status collapsed
6286
6287 \begin_layout Plain Layout
6288 ~:
6289 \backslash
6290 Users
6291 \backslash
6292 <username>
6293 \backslash
6294 AppData
6295 \backslash
6296 Roaming
6297 \backslash
6298 2.8
6299 \backslash
6300 MiKTeX
6301 \backslash
6302 tex
6303 \backslash
6304 latex
6305 \end_layout
6306
6307 \end_inset
6308
6309
6310 \end_layout
6311
6312 \end_deeper
6313 \begin_layout Enumerate
6314 Now one only need to tell \SpecialChar LaTeX
6315  that there are new files.
6316  This depends on the used \SpecialChar LaTeX
6317 -Distribution:
6318 \begin_inset Separator parbreak
6319 \end_inset
6320
6321
6322 \end_layout
6323
6324 \begin_deeper
6325 \begin_layout Enumerate
6326 For \SpecialChar TeX
6327 Live execute the command 
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 texhash
6333 \end_layout
6334
6335 \end_inset
6336
6337  from a console.
6338  If you installed the package for all users, then you will probably need
6339  to have root permissions for that.
6340 \end_layout
6341
6342 \begin_layout Enumerate
6343 For MiK\SpecialChar TeX
6344 , if you have installed the package for all users, start the program
6345  
6346 \begin_inset Quotes eld
6347 \end_inset
6348
6349 Settings
6350 \begin_inset space ~
6351 \end_inset
6352
6353 (Admin)
6354 \begin_inset Quotes erd
6355 \end_inset
6356
6357  and press the button marked 
6358 \begin_inset Quotes eld
6359 \end_inset
6360
6361 Refresh FNDB
6362 \begin_inset Quotes erd
6363 \end_inset
6364
6365 .
6366  Otherwise start the program 
6367 \begin_inset Quotes eld
6368 \end_inset
6369
6370 Settings
6371 \begin_inset Quotes erd
6372 \end_inset
6373
6374  and do the same.
6375 \end_layout
6376
6377 \end_deeper
6378 \begin_layout Enumerate
6379 Finally, you need to tell \SpecialChar LyX
6380  that there are new packages available.
6381  So, in \SpecialChar LyX
6382 , use the menu 
6383 \begin_inset Flex MenuItem
6384 status collapsed
6385
6386 \begin_layout Plain Layout
6387 Tools
6388 \family sans
6389 \SpecialChar menuseparator
6390 Reconfigure
6391 \end_layout
6392
6393 \end_inset
6394
6395  and then restart \SpecialChar LyX
6396 .
6397 \end_layout
6398
6399 \begin_layout Standard
6400 Now the package is installed.
6401  In our example, the document class 
6402 \begin_inset Flex Code
6403 status collapsed
6404
6405 \begin_layout Plain Layout
6406 Slides
6407 \begin_inset space ~
6408 \end_inset
6409
6410 (FoilTex)
6411 \end_layout
6412
6413 \end_inset
6414
6415  will now be available under 
6416 \begin_inset Flex MenuItem
6417 status collapsed
6418
6419 \begin_layout Plain Layout
6420 Document\SpecialChar menuseparator
6421 Settings\SpecialChar menuseparator
6422 Document Class
6423 \end_layout
6424
6425 \end_inset
6426
6427 .
6428  
6429 \end_layout
6430
6431 \begin_layout Standard
6432 If you would like to use a \SpecialChar LaTeX
6433  document class that is not even listed in the
6434  menu 
6435 \begin_inset Flex MenuItem
6436 status collapsed
6437
6438 \begin_layout Plain Layout
6439 Document\SpecialChar menuseparator
6440 Settings\SpecialChar menuseparator
6441 Document Class
6442 \end_layout
6443
6444 \end_inset
6445
6446 , then you need to create a `layout' file for it.
6447  That is the topic of the next section.
6448 \end_layout
6449
6450 \begin_layout Section
6451 Types of layout files
6452 \end_layout
6453
6454 \begin_layout Standard
6455 This section describes the various sorts of \SpecialChar LyX
6456  files that contain layout informati
6457 on.
6458  These files describe various paragraph and character styles, determining
6459  how \SpecialChar LyX
6460  should display them and how they should be translated into \SpecialChar LaTeX
6461 , DocBook,
6462  XHTML, or whatever output format is being used.
6463  
6464 \end_layout
6465
6466 \begin_layout Standard
6467 We shall try to provide a thorough description of the process of writing
6468  layout files here.
6469  However, there are so many different types of documents supported even
6470  by just \SpecialChar LaTeX
6471  that we can't hope to cover every different possibility or problem
6472  you might encounter.
6473  The \SpecialChar LyX
6474  users' list is frequented by people with lots of experience with layout
6475  design who are willing to share what they've learned, so please feel free
6476  to ask questions there.
6477 \end_layout
6478
6479 \begin_layout Standard
6480 As you prepare to write a new layout, it is extremely helpful to look at
6481  the layouts distributed with \SpecialChar LyX
6482 .
6483  If you write a \SpecialChar LyX
6484  layout for a \SpecialChar LaTeX
6485  document class that might also be used by
6486  others, or write a module that might be useful to others, then you should
6487  consider posting your layout to the 
6488 \begin_inset CommandInset href
6489 LatexCommand href
6490 name "layout section on the LyX wiki"
6491 target "http://wiki.lyx.org/Layouts/Layouts"
6492
6493 \end_inset
6494
6495  or even to the \SpecialChar LyX
6496  developers' list, so that it might be included in \SpecialChar LyX
6497  itself.
6498 \begin_inset Foot
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 Note that \SpecialChar LyX
6503  is licensed under the General Public License, so any material
6504  that is contributed to \SpecialChar LyX
6505  must be similarly licensed.
6506 \end_layout
6507
6508 \end_inset
6509
6510
6511 \end_layout
6512
6513 \begin_layout Subsection
6514 Layout modules
6515 \begin_inset CommandInset label
6516 LatexCommand label
6517 name "subsec:Layout-modules"
6518
6519 \end_inset
6520
6521
6522 \end_layout
6523
6524 \begin_layout Standard
6525 We have spoken to this point about `layout files'.
6526  But there are different sorts of files that contain layout information.
6527  Layout files, strictly so called, have the 
6528 \begin_inset Flex Code
6529 status collapsed
6530
6531 \begin_layout Plain Layout
6532 .layout
6533 \end_layout
6534
6535 \end_inset
6536
6537  extension and provide \SpecialChar LyX
6538  with information about document classes.
6539  Since \SpecialChar LyX
6540  1.6 layout information can also be contained in layout 
6541 \emph on
6542 modules
6543 \emph default
6544 , which have the 
6545 \begin_inset Flex Code
6546 status collapsed
6547
6548 \begin_layout Plain Layout
6549 .module
6550 \end_layout
6551
6552 \end_inset
6553
6554  extension.
6555  Modules are to \SpecialChar LaTeX
6556  packages much as layouts are to \SpecialChar LaTeX
6557  classes, and some modules—such
6558  as the 
6559 \begin_inset Flex Code
6560 status collapsed
6561
6562 \begin_layout Plain Layout
6563 endnotes
6564 \end_layout
6565
6566 \end_inset
6567
6568  module—specifically provide support for one package.
6569  In a sense, layout modules are similar to included
6570 \begin_inset Foot
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 These can have any extension, but by convention have the 
6575 \begin_inset Flex Code
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579 .inc
6580 \end_layout
6581
6582 \end_inset
6583
6584  extension.
6585 \end_layout
6586
6587 \end_inset
6588
6589  files—files like 
6590 \begin_inset Flex Code
6591 status collapsed
6592
6593 \begin_layout Plain Layout
6594 stdsections.inc
6595 \end_layout
6596
6597 \end_inset
6598
6599 —in that modules are not specific to a given document class but may be used
6600  with many different classes.
6601  The difference is that using an included file with 
6602 \begin_inset Flex Code
6603 status collapsed
6604
6605 \begin_layout Plain Layout
6606 article.cls
6607 \end_layout
6608
6609 \end_inset
6610
6611  requires editing that file.
6612  Modules, by contrast, are selected in the 
6613 \begin_inset Flex MenuItem
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 Document\SpecialChar menuseparator
6618 Settings
6619 \end_layout
6620
6621 \end_inset
6622
6623  dialog.
6624 \end_layout
6625
6626 \begin_layout Standard
6627 Building modules is the easiest way to get started with layout editing,
6628  since it can be as simple as adding a single new paragraph style or flex
6629  inset.
6630  But modules may, in principle, contain anything a layout file can contain.
6631 \end_layout
6632
6633 \begin_layout Standard
6634 After creating a new module and copying it to the 
6635 \begin_inset Flex Code
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 layouts/
6640 \end_layout
6641
6642 \end_inset
6643
6644  folder, you will need to reconfigure and then restart \SpecialChar LyX
6645  for the module to
6646  appear in the menu.
6647  However, changes you make to the module will be seen immediately, if you
6648  open 
6649 \begin_inset Flex MenuItem
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 Document\SpecialChar menuseparator
6654 Settings
6655 \end_layout
6656
6657 \end_inset
6658
6659 , highlight something, and then hit 
6660 \begin_inset Quotes eld
6661 \end_inset
6662
6663 OK
6664 \begin_inset Quotes erd
6665 \end_inset
6666
6667 .
6668  
6669 \emph on
6670 It is strongly recommended that you save your work before doing this
6671 \emph default
6672 .
6673  In fact, 
6674 \emph on
6675 it is strongly recommended that you not attempt to edit modules while simultaneo
6676 usly working on actual documents
6677 \emph default
6678 .
6679  Though of course the developers strive to keep \SpecialChar LyX
6680  stable in such situations,
6681  syntax errors and the like in your module file could cause strange behavior.
6682 \end_layout
6683
6684 \begin_layout Subsubsection
6685 Local Layout
6686 \end_layout
6687
6688 \begin_layout Standard
6689 Modules are to \SpecialChar LyX
6690  as packages are to \SpecialChar LaTeX
6691 .
6692  Sometimes, however, you find yourself wanting a specific inset or character
6693  style just for one document and writing a module that will also be available
6694  to other documents makes little sense.
6695  What you need is \SpecialChar LyX
6696 's 
6697 \begin_inset Quotes eld
6698 \end_inset
6699
6700 Local Layout
6701 \begin_inset Quotes erd
6702 \end_inset
6703
6704 .
6705 \end_layout
6706
6707 \begin_layout Standard
6708 You will find it under 
6709 \family sans
6710 Document\SpecialChar menuseparator
6711 Settings\SpecialChar menuseparator
6712 Local Layout
6713 \family default
6714 .
6715  The large text box allows you to enter anything that you might enter in
6716  a layout file or module.
6717  You can think of a document's local layout, in fact, as a module that belongs
6718  just to it.
6719  So, in particular, you must enter a 
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 Format
6725 \end_layout
6726
6727 \end_inset
6728
6729  tag.
6730  Any format is acceptable, but one would normally use the format current
6731  at the time.
6732  (In \SpecialChar LyX
6733  2.1, the current layout format is 48.) You should be aware that local
6734  layout is not supported by versions of \SpecialChar LyX
6735  prior to 1.6, so you should not
6736  use it if you want to be able to export your document to \SpecialChar LyX
6737  1.5 or earlier
6738  (without, that is, losing the local layout information).
6739  If you wish to be able to export to 1.6—local layout is supported in 1.6,
6740  though there is no UI for it—then you should use format 11 and, of course,
6741  use only layout constructs that were available in \SpecialChar LyX
6742  1.6.
6743 \end_layout
6744
6745 \begin_layout Standard
6746 When you have entered something in the 
6747 \begin_inset Flex Code
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 Local Layout
6752 \end_layout
6753
6754 \end_inset
6755
6756  pane, \SpecialChar LyX
6757  will enable the 
6758 \begin_inset Quotes eld
6759 \end_inset
6760
6761 Validate
6762 \begin_inset Quotes erd
6763 \end_inset
6764
6765  button at the bottom.
6766  Clicking this button will cause \SpecialChar LyX
6767  to determine whether what you have entered
6768  is valid layout information for the chosen format.
6769  \SpecialChar LyX
6770  will report the result but, unfortunately, will not tell you what errors
6771  there might have been.
6772  These will be written to the terminal, however, if \SpecialChar LyX
6773  is started from a terminal.
6774  You will not be permitted to save your local layout until you have entered
6775  something valid.
6776 \end_layout
6777
6778 \begin_layout Standard
6779 The warnings at the end of the previous section apply here, too.
6780  Do not play with local layout while you are actually working, especially
6781  if you have not saved your document.
6782  That said, using local layout with a test document can be a very convenient
6783  way to try out layout ideas, or even to start developing a module.
6784 \end_layout
6785
6786 \begin_layout Subsection
6787 Layout for 
6788 \begin_inset Flex MenuItem
6789 status collapsed
6790
6791 \begin_layout Plain Layout
6792 .sty
6793 \end_layout
6794
6795 \end_inset
6796
6797  files
6798 \end_layout
6799
6800 \begin_layout Standard
6801 There are two situations you are likely to encounter when wanting to support
6802  a new \SpecialChar LaTeX
6803  document class, involving style (
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 .sty
6809 \end_layout
6810
6811 \end_inset
6812
6813 ) files and \SpecialChar LaTeX2e
6814  class (
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 .cls
6820 \end_layout
6821
6822 \end_inset
6823
6824 ) .
6825  Supporting a style file is usually fairly easy.
6826  Supporting a new class file is a bit harder.
6827  We'll discuss the former in this section and the latter in the next.
6828  Similar remarks apply, of course, if you want to support a new DocBook
6829  DTD.
6830 \end_layout
6831
6832 \begin_layout Standard
6833 The easier case is the one in which your new document class is provided
6834  as a style file that is to be used in conjunction with an already supported
6835  document class.
6836  For the sake of the example, we'll assume that the style file is called
6837  
6838 \begin_inset Flex MenuItem
6839 status collapsed
6840
6841 \begin_layout Plain Layout
6842 myclass.sty
6843 \end_layout
6844
6845 \end_inset
6846
6847  and that it is meant to be used with 
6848 \begin_inset Flex MenuItem
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 report.cls
6853 \end_layout
6854
6855 \end_inset
6856
6857 , which is a standard class.
6858  
6859 \end_layout
6860
6861 \begin_layout Standard
6862 Start by copying the existing class's layout file into your local directory:
6863 \begin_inset Foot
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 Of course, which directory is your local directory will vary by platform,
6868  and \SpecialChar LyX
6869  allows you to specify your local directory on startup, too, using
6870  the 
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 -userdir
6876 \end_layout
6877
6878 \end_inset
6879
6880  option.
6881 \end_layout
6882
6883 \end_inset
6884
6885
6886 \end_layout
6887
6888 \begin_layout LyX-Code
6889 cp report.layout ~/.lyx/layouts/myclass.layout
6890 \end_layout
6891
6892 \begin_layout Standard
6893 Then edit 
6894 \begin_inset Flex Code
6895 status collapsed
6896
6897 \begin_layout Plain Layout
6898 myclass.layout
6899 \end_layout
6900
6901 \end_inset
6902
6903  and change the line: 
6904 \end_layout
6905
6906 \begin_layout LyX-Code
6907
6908 \backslash
6909 Declare\SpecialChar LaTeX
6910 Class{report}
6911 \end_layout
6912
6913 \begin_layout Standard
6914 to read
6915 \end_layout
6916
6917 \begin_layout LyX-Code
6918
6919 \backslash
6920 Declare\SpecialChar LaTeX
6921 Class[report, myclass.sty]{report (myclass)}
6922 \end_layout
6923
6924 \begin_layout Standard
6925 Then add:
6926 \end_layout
6927
6928 \begin_layout LyX-Code
6929 Preamble 
6930 \begin_inset Newline newline
6931 \end_inset
6932
6933     
6934 \backslash
6935 usepackage{myclass}
6936 \begin_inset Newline newline
6937 \end_inset
6938
6939 EndPreamble
6940 \end_layout
6941
6942 \begin_layout Standard
6943 near the top of the file.
6944 \end_layout
6945
6946 \begin_layout Standard
6947 Start \SpecialChar LyX
6948  and select 
6949 \begin_inset Flex MenuItem
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 Tools\SpecialChar menuseparator
6954 Reconfigure
6955 \end_layout
6956
6957 \end_inset
6958
6959 .
6960  Then restart \SpecialChar LyX
6961  and try creating a new document.
6962  You should see "
6963 \begin_inset Flex MenuItem
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 report (myclass)
6968 \end_layout
6969
6970 \end_inset
6971
6972 " as a document class option in the 
6973 \begin_inset Flex MenuItem
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 Document\SpecialChar menuseparator
6978 Settings
6979 \end_layout
6980
6981 \end_inset
6982
6983  dialog.
6984  It is likely that some of the sectioning commands and such in your new
6985  class will work differently from how they worked in the base class—
6986 \begin_inset Flex Code
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 report
6991 \end_layout
6992
6993 \end_inset
6994
6995  in this example—so you can fiddle around with the settings for the different
6996  sections if you wish.
6997  The layout information for sections is contained in 
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 stdsections.inc
7003 \end_layout
7004
7005 \end_inset
7006
7007 , but you do not need to copy and change this file.
7008  Instead, you can simply add your changes to your layout file, after the
7009  line 
7010 \begin_inset Flex Code
7011 status collapsed
7012
7013 \begin_layout Plain Layout
7014 Input stdclass.inc
7015 \end_layout
7016
7017 \end_inset
7018
7019 , which itself includes 
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 stdsections.inc
7025 \end_layout
7026
7027 \end_inset
7028
7029 .
7030  For example, you might add these lines:
7031 \end_layout
7032
7033 \begin_layout LyX-Code
7034 Style Chapter
7035 \end_layout
7036
7037 \begin_layout LyX-Code
7038     Font
7039 \end_layout
7040
7041 \begin_layout LyX-Code
7042         Family Sans
7043 \end_layout
7044
7045 \begin_layout LyX-Code
7046     EndFont
7047 \end_layout
7048
7049 \begin_layout LyX-Code
7050 End
7051 \end_layout
7052
7053 \begin_layout Standard
7054 to change the font for chapter headings to sans-serif.
7055  This will override (or, in this case, add to) the existing declaration
7056  for the Chapter style.
7057  
7058 \end_layout
7059
7060 \begin_layout Standard
7061 Your new package may also provide commands or environments not present in
7062  the base class.
7063  In this case, you will want to add these to the layout file.
7064  See 
7065 \begin_inset CommandInset ref
7066 LatexCommand ref
7067 reference "sec:TextClass"
7068
7069 \end_inset
7070
7071  for information on how to do so.
7072 \end_layout
7073
7074 \begin_layout Standard
7075 If 
7076 \begin_inset Flex MenuItem
7077 status collapsed
7078
7079 \begin_layout Plain Layout
7080 myclass.sty
7081 \end_layout
7082
7083 \end_inset
7084
7085  can be used with several different document classes, and even if it cannot,
7086  you might find it easiest just to write a module that you can load with
7087  the base class.
7088  The simplest possible such module would be:
7089 \end_layout
7090
7091 \begin_layout LyX-Code
7092 #
7093 \backslash
7094 DeclareLyXModule{My Package} 
7095 \end_layout
7096
7097 \begin_layout LyX-Code
7098 #DescriptionBegin 
7099 \end_layout
7100
7101 \begin_layout LyX-Code
7102 #Support for mypkg.sty.
7103 \end_layout
7104
7105 \begin_layout LyX-Code
7106 #DescriptionEnd
7107 \begin_inset Newline newline
7108 \end_inset
7109
7110
7111 \end_layout
7112
7113 \begin_layout LyX-Code
7114 Format 35
7115 \begin_inset Newline newline
7116 \end_inset
7117
7118
7119 \end_layout
7120
7121 \begin_layout LyX-Code
7122 Preamble
7123 \begin_inset Newline newline
7124 \end_inset
7125
7126     
7127 \backslash
7128 usepackage{mypkg}
7129 \begin_inset Newline newline
7130 \end_inset
7131
7132 EndPreamble
7133 \end_layout
7134
7135 \begin_layout Standard
7136 A more complex module might modify the behavior of some existing constructs
7137  or define some new ones.
7138  Again, see 
7139 \begin_inset CommandInset ref
7140 LatexCommand ref
7141 reference "sec:TextClass"
7142
7143 \end_inset
7144
7145  for discussion.
7146 \end_layout
7147
7148 \begin_layout Subsection
7149 Layout for 
7150 \begin_inset Flex MenuItem
7151 status collapsed
7152
7153 \begin_layout Plain Layout
7154 .cls
7155 \end_layout
7156
7157 \end_inset
7158
7159  files
7160 \end_layout
7161
7162 \begin_layout Standard
7163 There are two possibilities here.
7164  One is that the class file is itself based upon an existing document class.
7165  For example, many thesis classes are based upon 
7166 \begin_inset Flex MenuItem
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170 book.cls
7171 \end_layout
7172
7173 \end_inset
7174
7175 .
7176  To see whether yours is, look for a line like
7177 \end_layout
7178
7179 \begin_layout LyX-Code
7180
7181 \backslash
7182 LoadClass{book}
7183 \end_layout
7184
7185 \begin_layout Standard
7186 in the file.
7187  If so, then you may proceed largely as in the previous section, though
7188  the 
7189 \begin_inset Flex Code
7190 status collapsed
7191
7192 \begin_layout Plain Layout
7193 Declare\SpecialChar LaTeX
7194 Class
7195 \end_layout
7196
7197 \end_inset
7198
7199  line will be different.
7200  If your new class is 
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 thesis
7206 \end_layout
7207
7208 \end_inset
7209
7210  and it is based upon 
7211 \begin_inset Flex Code
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 book
7216 \end_layout
7217
7218 \end_inset
7219
7220 , then the line should read:
7221 \begin_inset Foot
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 And it will be easiest if you save the file to 
7226 \begin_inset Flex Code
7227 status collapsed
7228
7229 \begin_layout Plain Layout
7230 thesis.layout
7231 \end_layout
7232
7233 \end_inset
7234
7235 : \SpecialChar LyX
7236  assumes that the document class has the same name as the layout file.
7237  
7238 \end_layout
7239
7240 \end_inset
7241
7242
7243 \end_layout
7244
7245 \begin_layout LyX-Code
7246
7247 \backslash
7248 Declare\SpecialChar LaTeX
7249 Class[thesis,book]{thesis}
7250 \end_layout
7251
7252 \begin_layout Standard
7253 If, on the other hand, the new class is not based upon an existing class,
7254  you will probably have to 
7255 \begin_inset Quotes eld
7256 \end_inset
7257
7258 roll your own
7259 \begin_inset Quotes erd
7260 \end_inset
7261
7262  layout.
7263  We strongly suggest copying an existing layout file which uses a similar
7264  \SpecialChar LaTeX
7265  class and then modifying it, if you can do so.
7266  At least use an existing file as a starting point so you can find out what
7267  items you need to worry about.
7268  Again, the specifics are covered below.
7269 \end_layout
7270
7271 \begin_layout Subsection
7272 Creating templates
7273 \begin_inset CommandInset label
7274 LatexCommand label
7275 name "subsec:Creating-Templates"
7276
7277 \end_inset
7278
7279
7280 \end_layout
7281
7282 \begin_layout Standard
7283 Once you have written a layout file for a new document class, you might
7284  want to consider writing a 
7285 \emph on
7286 template
7287 \emph default
7288  for it, too.
7289  A template acts as a kind of tutorial for your layout, showing how it might
7290  be used, though containing dummy content.
7291  You can of course look at the various templates included with \SpecialChar LyX
7292  for ideas.
7293 \end_layout
7294
7295 \begin_layout Standard
7296 Templates are created just like usual documents: using \SpecialChar LyX
7297 .
7298  The only difference is that usual documents contain all possible settings,
7299  including the font scheme and the paper size.
7300  Usually a user doesn't want a template to overwrite his preferred settings
7301  for such parameters.
7302  For that reason, the designer of a template should remove the corresponding
7303  commands like 
7304 \begin_inset Flex Code
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308
7309 \backslash
7310 font_roman
7311 \end_layout
7312
7313 \end_inset
7314
7315  or 
7316 \begin_inset Flex Code
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320
7321 \backslash
7322 papersize
7323 \end_layout
7324
7325 \end_inset
7326
7327  from the template \SpecialChar LyX
7328  file.
7329  This can be done with any simple text-editor, for example 
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 vi
7335 \end_layout
7336
7337 \end_inset
7338
7339  or 
7340 \begin_inset Flex Code
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344 notepad
7345 \end_layout
7346
7347 \end_inset
7348
7349 .
7350 \end_layout
7351
7352 \begin_layout Standard
7353 Put the edited template files you create in 
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 UserDir/templates/
7359 \end_layout
7360
7361 \end_inset
7362
7363 , copy the ones you use from the global template directory in 
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 LyXDir/templates/
7369 \end_layout
7370
7371 \end_inset
7372
7373  to the same place, and redefine the template path in the 
7374 \begin_inset Flex MenuItem
7375 status collapsed
7376
7377 \begin_layout Plain Layout
7378 Tools\SpecialChar menuseparator
7379 Preferences\SpecialChar menuseparator
7380 Paths
7381 \end_layout
7382
7383 \end_inset
7384
7385  dialog.
7386 \end_layout
7387
7388 \begin_layout Standard
7389 Note, by the way, that there is a template which has a particular meaning:
7390  
7391 \begin_inset Flex Code
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395 defaults.lyx
7396 \end_layout
7397
7398 \end_inset
7399
7400 .
7401  This template is loaded every time you create a new document with 
7402 \begin_inset Flex MenuItem
7403 status collapsed
7404
7405 \begin_layout Plain Layout
7406 File\SpecialChar menuseparator
7407 New
7408 \end_layout
7409
7410 \end_inset
7411
7412  in order to provide useful defaults.
7413  To create this template from inside \SpecialChar LyX
7414 , all you have to do is to open a document
7415  with the correct settings, and use the 
7416 \begin_inset Flex MenuItem
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 Save as Document Defaults
7421 \end_layout
7422
7423 \end_inset
7424
7425  button.
7426 \end_layout
7427
7428 \begin_layout Subsection
7429 Upgrading old layout files
7430 \end_layout
7431
7432 \begin_layout Standard
7433 The format of layout files changes with each \SpecialChar LyX
7434  release, so old layout files
7435  need to be converted to the new format.
7436  If \SpecialChar LyX
7437  reads a layout file in an older format, it automatically calls the
7438  script 
7439 \begin_inset Flex Code
7440 status collapsed
7441
7442 \begin_layout Plain Layout
7443 layout2layout.py
7444 \end_layout
7445
7446 \end_inset
7447
7448  to convert it to a temporary file in current format.
7449  The original file is left untouched.
7450  If you use the layout file often, then, you may want to convert it permanently,
7451  so that \SpecialChar LyX
7452  does not have to do so itself every time.
7453  To do this, you can call the converter manually:
7454 \end_layout
7455
7456 \begin_layout Enumerate
7457 rename the file 
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 myclass.layout
7463 \end_layout
7464
7465 \end_inset
7466
7467  to 
7468 \begin_inset Flex Code
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 myclass.old
7473 \end_layout
7474
7475 \end_inset
7476
7477
7478 \end_layout
7479
7480 \begin_layout Enumerate
7481 Call the command
7482 \begin_inset Newline newline
7483 \end_inset
7484
7485
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7491 \end_layout
7492
7493 \end_inset
7494
7495
7496 \begin_inset Newline newline
7497 \end_inset
7498
7499 where 
7500 \begin_inset Flex Code
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 LyXDir
7505 \end_layout
7506
7507 \end_inset
7508
7509  is the name of your \SpecialChar LyX
7510  system directory.
7511 \end_layout
7512
7513 \begin_layout Standard
7514 Note that manual conversion does not affect included files, so these will
7515  have to be converted separately.
7516 \end_layout
7517
7518 \begin_layout Section
7519 \begin_inset CommandInset label
7520 LatexCommand label
7521 name "sec:TextClass"
7522
7523 \end_inset
7524
7525 The layout file format
7526 \end_layout
7527
7528 \begin_layout Standard
7529 The following sections describe how layout files are structured and written.
7530  Our advice is to go slowly, save and test often.
7531  It is really not that hard, except that the multitude of options can become
7532  overwhelming, especially if you try to check out too many at once.
7533  It becomes easier if you use existing layouts of \SpecialChar LyX
7534  as examples/reference
7535  or if you modify an existing layout to your needs.
7536 \end_layout
7537
7538 \begin_layout Standard
7539 Note that all the tags used in layout files are case-insensitive.
7540  This means that 
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 Style
7546 \end_layout
7547
7548 \end_inset
7549
7550
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 style
7556 \end_layout
7557
7558 \end_inset
7559
7560  and 
7561 \begin_inset Flex Code
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 StYlE
7566 \end_layout
7567
7568 \end_inset
7569
7570  are really the same tag.
7571  The possible arguments are printed in brackets after the tag's name.
7572  The default argument is typeset 
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577
7578 \emph on
7579 emphasized
7580 \end_layout
7581
7582 \end_inset
7583
7584 .
7585  If the argument has a data type like 
7586 \begin_inset Quotes eld
7587 \end_inset
7588
7589 string
7590 \begin_inset Quotes erd
7591 \end_inset
7592
7593  or 
7594 \begin_inset Quotes eld
7595 \end_inset
7596
7597 float
7598 \begin_inset Quotes erd
7599 \end_inset
7600
7601 , the default is shown like this: 
7602 \begin_inset Flex Code
7603 status collapsed
7604
7605 \begin_layout Plain Layout
7606 float=
7607 \emph on
7608 default
7609 \end_layout
7610
7611 \end_inset
7612
7613 .
7614 \end_layout
7615
7616 \begin_layout Subsection
7617 The document class declaration and classification
7618 \end_layout
7619
7620 \begin_layout Standard
7621 Lines in a layout file which begin with 
7622 \begin_inset Flex Code
7623 status collapsed
7624
7625 \begin_layout Plain Layout
7626 #
7627 \end_layout
7628
7629 \end_inset
7630
7631  are comments.
7632  There is one exception to this rule.
7633  All 
7634 \begin_inset Flex Code
7635 status collapsed
7636
7637 \begin_layout Plain Layout
7638 *.layout
7639 \end_layout
7640
7641 \end_inset
7642
7643  files should begin with lines like:
7644 \end_layout
7645
7646 \begin_layout LyX-Code
7647
7648 \size small
7649 #% Do not delete the line below; configure depends on this 
7650 \end_layout
7651
7652 \begin_layout LyX-Code
7653
7654 \size small
7655 #  
7656 \backslash
7657 DeclareLaTeXClass{Article (Standard Class)}
7658 \end_layout
7659
7660 \begin_layout LyX-Code
7661
7662 \size small
7663 #  
7664 \backslash
7665 DeclareCategory{Articles}
7666 \end_layout
7667
7668 \begin_layout Standard
7669 The second and third lines are used when you (re)configure \SpecialChar LyX
7670 .
7671  The layout file is read by the \SpecialChar LaTeX
7672  script 
7673 \begin_inset Flex Code
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 chkconfig.ltx
7678 \end_layout
7679
7680 \end_inset
7681
7682 , in a special mode where 
7683 \begin_inset Flex Code
7684 status collapsed
7685
7686 \begin_layout Plain Layout
7687 #
7688 \end_layout
7689
7690 \end_inset
7691
7692  is ignored.
7693  The first line is just a \SpecialChar LaTeX
7694  comment, the second one contains the mandatory
7695  declaration of the text class and the third line contains the optional
7696  classification of the class.
7697  If these lines appear in a file named 
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 article.layout
7703 \end_layout
7704
7705 \end_inset
7706
7707 , then they define a text class of name 
7708 \begin_inset Flex Code
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 article
7713 \end_layout
7714
7715 \end_inset
7716
7717  (the name of the layout file) which uses the \SpecialChar LaTeX
7718  document class 
7719 \begin_inset Flex Code
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723 article.cls
7724 \end_layout
7725
7726 \end_inset
7727
7728  (the default is to use the same name as the layout).
7729  The string 
7730 \begin_inset Quotes eld
7731 \end_inset
7732
7733 Article (Standard Class)
7734 \begin_inset Quotes erd
7735 \end_inset
7736
7737  that appears above is used as a description of the text class in the 
7738 \begin_inset Flex MenuItem
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 Document\SpecialChar menuseparator
7743 Settings
7744 \end_layout
7745
7746 \end_inset
7747
7748  dialog.
7749  The category (
7750 \begin_inset Quotes eld
7751 \end_inset
7752
7753 Articles
7754 \begin_inset Quotes erd
7755 \end_inset
7756
7757  in the example) is also used in the 
7758 \begin_inset Flex MenuItem
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 Document\SpecialChar menuseparator
7763 Settings
7764 \end_layout
7765
7766 \end_inset
7767
7768  dialog: the text classes are grouped by these categories (which are usually
7769  genres, so typical categories are 
7770 \begin_inset Quotes eld
7771 \end_inset
7772
7773 Articles
7774 \begin_inset Quotes erd
7775 \end_inset
7776
7777
7778 \begin_inset Quotes eld
7779 \end_inset
7780
7781 Books
7782 \begin_inset Quotes erd
7783 \end_inset
7784
7785
7786 \begin_inset Quotes eld
7787 \end_inset
7788
7789 Reports
7790 \begin_inset Quotes erd
7791 \end_inset
7792
7793
7794 \begin_inset Quotes eld
7795 \end_inset
7796
7797 Letters
7798 \begin_inset Quotes erd
7799 \end_inset
7800
7801
7802 \begin_inset Quotes eld
7803 \end_inset
7804
7805 Presentations
7806 \begin_inset Quotes erd
7807 \end_inset
7808
7809
7810 \begin_inset Quotes eld
7811 \end_inset
7812
7813 Curricula Vitae
7814 \begin_inset Quotes erd
7815 \end_inset
7816
7817  etc.).
7818  If no category has been declared, the class will be put in the 
7819 \begin_inset Quotes eld
7820 \end_inset
7821
7822 Uncategorized
7823 \begin_inset Quotes erd
7824 \end_inset
7825
7826  group.
7827 \end_layout
7828
7829 \begin_layout Standard
7830 Let's assume that you wrote your own text class that uses the 
7831 \begin_inset Flex Code
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835 article.cls
7836 \end_layout
7837
7838 \end_inset
7839
7840  document class, but where you changed the appearance of the section headings.
7841  If you put it in a file 
7842 \begin_inset Flex Code
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846 myarticle.layout
7847 \end_layout
7848
7849 \end_inset
7850
7851 , the header of this file should be:
7852 \end_layout
7853
7854 \begin_layout LyX-Code
7855
7856 \size small
7857 #% Do not delete the line below; configure depends on this 
7858 \end_layout
7859
7860 \begin_layout LyX-Code
7861
7862 \size small
7863 #  
7864 \backslash
7865 DeclareLaTeXClass[article]{Article (with My Own Headings)}
7866 \end_layout
7867
7868 \begin_layout LyX-Code
7869
7870 \size small
7871 #  
7872 \backslash
7873 DeclareCategory{Articles}
7874 \end_layout
7875
7876 \begin_layout Standard
7877 This declares a text class 
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 myarticle
7883 \end_layout
7884
7885 \end_inset
7886
7887 , associated with the \SpecialChar LaTeX
7888  document class 
7889 \begin_inset Flex Code
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 article.cls
7894 \end_layout
7895
7896 \end_inset
7897
7898  and described as 
7899 \begin_inset Quotes eld
7900 \end_inset
7901
7902 Article (with My Own Headings)
7903 \begin_inset Quotes erd
7904 \end_inset
7905
7906 .
7907  If your text class depends on several packages, you can declare it as:
7908 \end_layout
7909
7910 \begin_layout LyX-Code
7911
7912 \size small
7913 #% Do not delete the line below; configure depends on this 
7914 \end_layout
7915
7916 \begin_layout LyX-Code
7917
7918 \size small
7919 #  
7920 \backslash
7921 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7922 \end_layout
7923
7924 \begin_layout LyX-Code
7925
7926 \size small
7927 #  
7928 \backslash
7929 DeclareCategory{Articles}
7930 \end_layout
7931
7932 \begin_layout Standard
7933 This indicates that your text class uses the 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 foo.sty
7939 \end_layout
7940
7941 \end_inset
7942
7943  package.
7944  Finally, it is also possible to declare classes for DocBook code.
7945  Typical declarations will look like:
7946 \end_layout
7947
7948 \begin_layout LyX-Code
7949
7950 \size small
7951 #% Do not delete the line below; configure depends on this 
7952 \end_layout
7953
7954 \begin_layout LyX-Code
7955
7956 \size small
7957
7958 \backslash
7959 DeclareDocBookClass[article]{SGML (DocBook Article)}
7960 \end_layout
7961
7962 \begin_layout LyX-Code
7963
7964 \size small
7965
7966 \backslash
7967 DeclareCategory{Articles (DocBook)}
7968 \end_layout
7969
7970 \begin_layout Standard
7971 Note that these declarations can also be given an optional parameter declaring
7972  the name of the document class (but not a list).
7973 \end_layout
7974
7975 \begin_layout Standard
7976 So, to be as explicit as possible, the form of the layout declaration is:
7977 \end_layout
7978
7979 \begin_layout LyX-Code
7980
7981 \size small
7982 #  
7983 \backslash
7984 DeclareLaTeXClass[class,package.sty]{layout description}
7985 \end_layout
7986
7987 \begin_layout LyX-Code
7988
7989 \size small
7990 #  
7991 \backslash
7992 DeclareCategory{category}
7993 \end_layout
7994
7995 \begin_layout Standard
7996 The class need only be specified if the name of the \SpecialChar LaTeX
7997  class file and the
7998  name of the layout file are different or if there are packages to load.
7999  If the name of the class file is not specified, then \SpecialChar LyX
8000  will simply assume
8001  that it is the same as the name of the layout file.
8002 \end_layout
8003
8004 \begin_layout Standard
8005 When the text class has been modified to your taste, all you have to do
8006  is to copy it either to 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 LyXDir/layouts/
8012 \end_layout
8013
8014 \end_inset
8015
8016  or to 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 UserDir/layouts
8022 \end_layout
8023
8024 \end_inset
8025
8026 , run 
8027 \begin_inset Flex MenuItem
8028 status collapsed
8029
8030 \begin_layout Plain Layout
8031 Tools\SpecialChar menuseparator
8032 Reconfigure
8033 \end_layout
8034
8035 \end_inset
8036
8037 , exit \SpecialChar LyX
8038  and restart.
8039  Then your new text class should be available along with the others.
8040 \end_layout
8041
8042 \begin_layout Standard
8043 Once the layout file is installed, you can edit it and see your changes
8044  without having to reconfigure or to restart \SpecialChar LyX
8045 .
8046  
8047 \begin_inset Foot
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 In versions of \SpecialChar LyX
8052  prior to 1.6, this was not true.
8053  As a result, editing layout files was very time consuming, since you had
8054  constantly to restart \SpecialChar LyX
8055  to see changes.
8056 \end_layout
8057
8058 \end_inset
8059
8060  You can force a reload of the current layout by using the \SpecialChar LyX
8061  function 
8062 \begin_inset Flex MenuItem
8063 status collapsed
8064
8065 \begin_layout Plain Layout
8066 layout-reload
8067 \end_layout
8068
8069 \end_inset
8070
8071 .
8072  There is no default binding for this function—though, of course, you can
8073  bind it to a key yourself.
8074  But you will normally use this function simply by entering it in the mini-buffe
8075 r.
8076  
8077 \end_layout
8078
8079 \begin_layout Standard
8080
8081 \emph on
8082 Warning
8083 \emph default
8084
8085 \begin_inset Flex MenuItem
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 layout-reload
8090 \end_layout
8091
8092 \end_inset
8093
8094  is very much an `advanced feature'.
8095  It is 
8096 \emph on
8097 strongly
8098 \emph default
8099  recommended that you save your work before using this function.
8100  In fact, it is 
8101 \emph on
8102 strongly
8103 \emph default
8104  recommended that you not attempt to edit layout information while simultaneousl
8105 y working on a document that you care about.
8106  Use a test document.
8107  Syntax errors and the like in your layout file could cause peculiar behavior.
8108  In particular, such errors could cause \SpecialChar LyX
8109  to regard the current layout as
8110  invalid and to attempt to switch to some other layout.
8111 \begin_inset Foot
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 Really bad syntax errors may even caused \SpecialChar LyX
8116  to exit.
8117  This is because certain sorts of errors may make \SpecialChar LyX
8118  unable to read 
8119 \emph on
8120 any
8121 \emph default
8122  layout information.
8123  Please be careful.
8124 \end_layout
8125
8126 \end_inset
8127
8128  The \SpecialChar LyX
8129  team strives to keep \SpecialChar LyX
8130  stable in such situations, but safe is better
8131  than sorry.
8132 \begin_inset Foot
8133 status collapsed
8134
8135 \begin_layout Plain Layout
8136 While we're giving advice: make regular backups.
8137  And be nice to your mother.
8138 \end_layout
8139
8140 \end_inset
8141
8142
8143 \end_layout
8144
8145 \begin_layout Subsection
8146 The Module declaration
8147 \end_layout
8148
8149 \begin_layout Standard
8150 A module must begin with a line like the following:
8151 \end_layout
8152
8153 \begin_layout LyX-Code
8154 #
8155 \backslash
8156 DeclareLyXModule[endnotes.sty]{Endnotes} 
8157 \end_layout
8158
8159 \begin_layout Standard
8160 The mandatory argument, in curly brackets, is the name of the module, as
8161  it should appear in 
8162 \begin_inset Flex MenuItem
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166 Document\SpecialChar menuseparator
8167 Settings\SpecialChar menuseparator
8168 Modules
8169 \end_layout
8170
8171 \end_inset
8172
8173 .
8174  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8175  packages
8176  on which the module depends.
8177  It is also possible to use the form 
8178 \begin_inset Flex MenuItem
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 from->to
8183 \end_layout
8184
8185 \end_inset
8186
8187  as an optional argument, which declares that the module can only be used
8188  when there exists a conversion chain between the formats `
8189 \begin_inset Flex Code
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 from
8194 \end_layout
8195
8196 \end_inset
8197
8198 ' and `
8199 \begin_inset Flex Code
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203 to
8204 \end_layout
8205
8206 \end_inset
8207
8208 '.
8209 \end_layout
8210
8211 \begin_layout Standard
8212 The module declaration should then be followed by lines like the following
8213 \begin_inset Foot
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 Preferably in English if the module should be published with \SpecialChar LyX
8218 .
8219  This description will appear in the list of messages to be translated and
8220  will be thus translated with the next interface update.
8221 \end_layout
8222
8223 \end_inset
8224
8225 :
8226 \end_layout
8227
8228 \begin_layout LyX-Code
8229 #DescriptionBegin 
8230 \end_layout
8231
8232 \begin_layout LyX-Code
8233 #Adds an endnote command, in addition to footnotes.
8234  
8235 \end_layout
8236
8237 \begin_layout LyX-Code
8238 #You will need to add  
8239 \backslash
8240 theendnotes in TeX code where you 
8241 \end_layout
8242
8243 \begin_layout LyX-Code
8244 #want the endnotes to appear.
8245  
8246 \end_layout
8247
8248 \begin_layout LyX-Code
8249 #DescriptionEnd 
8250 \end_layout
8251
8252 \begin_layout LyX-Code
8253 #Requires: somemodule | othermodule
8254 \end_layout
8255
8256 \begin_layout LyX-Code
8257 #Excludes: badmodule
8258 \end_layout
8259
8260 \begin_layout Standard
8261 The description is used in 
8262 \begin_inset Flex MenuItem
8263 status collapsed
8264
8265 \begin_layout Plain Layout
8266 Document\SpecialChar menuseparator
8267 Settings\SpecialChar menuseparator
8268 Modules
8269 \end_layout
8270
8271 \end_inset
8272
8273  to provide the user with information about what the module does.
8274  The 
8275 \begin_inset Flex Code
8276 status collapsed
8277
8278 \begin_layout Plain Layout
8279 Requires
8280 \end_layout
8281
8282 \end_inset
8283
8284  line is used to identify other modules with which this one must be used;
8285  the 
8286 \begin_inset Flex Code
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 Excludes
8291 \end_layout
8292
8293 \end_inset
8294
8295  line is used to identify modules with which this one may not be used.
8296  Both are optional, and, as shown, multiple modules should be separated
8297  with the pipe symbol: |.
8298  Note that the required modules are treated disjunctively: 
8299 \emph on
8300 at least one
8301 \emph default
8302  of the required modules must be used.
8303  Similarly, 
8304 \emph on
8305 no
8306 \emph default
8307  excluded module may be used.
8308  Note that modules are identified here by their filenames without the 
8309 \begin_inset Flex Code
8310 status collapsed
8311
8312 \begin_layout Plain Layout
8313 .module
8314 \end_layout
8315
8316 \end_inset
8317
8318  extension.
8319  So 
8320 \begin_inset Flex Code
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 somemodule
8325 \end_layout
8326
8327 \end_inset
8328
8329  is really 
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 somemodule.module
8335 \end_layout
8336
8337 \end_inset
8338
8339 .
8340 \end_layout
8341
8342 \begin_layout Subsection
8343 Format number
8344 \end_layout
8345
8346 \begin_layout Standard
8347 The first non-comment line of any layout file, included file, or module
8348  
8349 \emph on
8350 must
8351 \emph default
8352  contain the file format number:
8353 \end_layout
8354
8355 \begin_layout Description
8356 \begin_inset Flex Code
8357 status collapsed
8358
8359 \begin_layout Plain Layout
8360 Format
8361 \end_layout
8362
8363 \end_inset
8364
8365  [
8366 \begin_inset Flex Code
8367 status collapsed
8368
8369 \begin_layout Plain Layout
8370 int
8371 \end_layout
8372
8373 \end_inset
8374
8375 ] The format number of the layout file.
8376 \end_layout
8377
8378 \begin_layout Standard
8379 This tag was introduced with \SpecialChar LyX
8380
8381 \begin_inset space ~
8382 \end_inset
8383
8384 1.4.0.
8385  Layout files from older \SpecialChar LyX
8386  versions do not have an explicit file format and
8387  are considered to have 
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 Format
8393 \begin_inset space ~
8394 \end_inset
8395
8396 1
8397 \end_layout
8398
8399 \end_inset
8400
8401 .
8402  The format for the present version of \SpecialChar LyX
8403  is format 35.
8404  But each version of \SpecialChar LyX
8405  is capable of reading earlier versions' layout files,
8406  just as they are capable of reading files produced by earlier versions
8407  of \SpecialChar LyX
8408 .
8409  There is, however, no provision for converting to earlier formats.
8410 \end_layout
8411
8412 \begin_layout Subsection
8413 \begin_inset CommandInset label
8414 LatexCommand label
8415 name "subsec:General-text-class"
8416
8417 \end_inset
8418
8419 General text class parameters
8420 \end_layout
8421
8422 \begin_layout Standard
8423 These are general parameters that govern the behavior of an entire document
8424  class.
8425  (This does 
8426 \emph on
8427 not
8428 \emph default
8429  mean that they must appear in 
8430 \begin_inset Flex Code
8431 status collapsed
8432
8433 \begin_layout Plain Layout
8434 .layout
8435 \end_layout
8436
8437 \end_inset
8438
8439  files rather than in modules.
8440  A module can contain any layout tag.)
8441 \end_layout
8442
8443 \begin_layout Description
8444 \begin_inset Flex Code
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448 AddToHTMLPreamble
8449 \end_layout
8450
8451 \end_inset
8452
8453  Adds information that will be output in the 
8454 \begin_inset Flex Code
8455 status collapsed
8456
8457 \begin_layout Plain Layout
8458 <head>
8459 \end_layout
8460
8461 \end_inset
8462
8463  block when the document is output to XHTML.
8464  Typically, this would be used to output CSS style information, but it can
8465  be used for anything that can appear in 
8466 \begin_inset Flex Code
8467 status collapsed
8468
8469 \begin_layout Plain Layout
8470 <head>
8471 \end_layout
8472
8473 \end_inset
8474
8475 .
8476  Must end with 
8477 \begin_inset Quotes eld
8478 \end_inset
8479
8480
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 EndPreamble
8486 \end_layout
8487
8488 \end_inset
8489
8490
8491 \begin_inset Quotes erd
8492 \end_inset
8493
8494 .
8495 \end_layout
8496
8497 \begin_layout Description
8498 \begin_inset Flex Code
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 AddToPreamble
8503 \end_layout
8504
8505 \end_inset
8506
8507  Adds information to the document preamble.
8508  Must end with
8509 \begin_inset Newline newline
8510 \end_inset
8511
8512
8513 \begin_inset Quotes eld
8514 \end_inset
8515
8516
8517 \begin_inset Flex Code
8518 status collapsed
8519
8520 \begin_layout Plain Layout
8521 EndPreamble
8522 \end_layout
8523
8524 \end_inset
8525
8526
8527 \begin_inset Quotes erd
8528 \end_inset
8529
8530 .
8531 \end_layout
8532
8533 \begin_layout Description
8534 \begin_inset Flex Code
8535 status collapsed
8536
8537 \begin_layout Plain Layout
8538 CiteFormat
8539 \end_layout
8540
8541 \end_inset
8542
8543  Defines formats for use in the display of bibliographic information.
8544  See 
8545 \begin_inset CommandInset ref
8546 LatexCommand ref
8547 reference "subsec:Citation-format-description"
8548
8549 \end_inset
8550
8551  for details.
8552  Must end with 
8553 \begin_inset Quotes eld
8554 \end_inset
8555
8556
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 End
8562 \end_layout
8563
8564 \end_inset
8565
8566
8567 \begin_inset Quotes erd
8568 \end_inset
8569
8570 .
8571 \end_layout
8572
8573 \begin_layout Description
8574 \begin_inset Flex Code
8575 status collapsed
8576
8577 \begin_layout Plain Layout
8578 ClassOptions
8579 \end_layout
8580
8581 \end_inset
8582
8583  Describes various global options supported by the document class.
8584  See 
8585 \begin_inset CommandInset ref
8586 LatexCommand ref
8587 reference "subsec:ClassOptions"
8588
8589 \end_inset
8590
8591  for a description.
8592  Must end with 
8593 \begin_inset Quotes eld
8594 \end_inset
8595
8596
8597 \begin_inset Flex Code
8598 status collapsed
8599
8600 \begin_layout Plain Layout
8601 End
8602 \end_layout
8603
8604 \end_inset
8605
8606
8607 \begin_inset Quotes erd
8608 \end_inset
8609
8610 .
8611 \end_layout
8612
8613 \begin_layout Description
8614 \begin_inset Flex Code
8615 status collapsed
8616
8617 \begin_layout Plain Layout
8618 Columns
8619 \end_layout
8620
8621 \end_inset
8622
8623  [
8624 \begin_inset Flex Code
8625 status collapsed
8626
8627 \begin_layout Plain Layout
8628
8629 \emph on
8630 1
8631 \end_layout
8632
8633 \end_inset
8634
8635 ,
8636 \begin_inset space \thinspace{}
8637 \end_inset
8638
8639
8640 \begin_inset Flex Code
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 2
8645 \end_layout
8646
8647 \end_inset
8648
8649 ] Whether the class should 
8650 \emph on
8651 default
8652 \emph default
8653  to having one or two columns.
8654  Can be changed in the 
8655 \begin_inset Flex MenuItem
8656 status collapsed
8657
8658 \begin_layout Plain Layout
8659 Document\SpecialChar menuseparator
8660 Settings
8661 \end_layout
8662
8663 \end_inset
8664
8665  dialog.
8666 \end_layout
8667
8668 \begin_layout Description
8669 \begin_inset Flex Code
8670 status collapsed
8671
8672 \begin_layout Plain Layout
8673 Counter
8674 \end_layout
8675
8676 \end_inset
8677
8678  [
8679 \begin_inset Flex Code
8680 status collapsed
8681
8682 \begin_layout Plain Layout
8683 string
8684 \end_layout
8685
8686 \end_inset
8687
8688 ] This sequence defines the properties for a counter.
8689  If the counter does not yet exist, it is created; if it does exist, it
8690  is modified.
8691  Must end with 
8692 \begin_inset Quotes eld
8693 \end_inset
8694
8695
8696 \begin_inset Flex Code
8697 status collapsed
8698
8699 \begin_layout Plain Layout
8700 End
8701 \end_layout
8702
8703 \end_inset
8704
8705
8706 \begin_inset Quotes erd
8707 \end_inset
8708
8709 .
8710 \begin_inset Newline newline
8711 \end_inset
8712
8713 See 
8714 \begin_inset CommandInset ref
8715 LatexCommand ref
8716 reference "subsec:Counters"
8717
8718 \end_inset
8719
8720  for details on counters.
8721 \end_layout
8722
8723 \begin_layout Description
8724 \begin_inset Flex Code
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 DefaultFont
8729 \end_layout
8730
8731 \end_inset
8732
8733  Sets the default font used to display the document.
8734  See 
8735 \begin_inset CommandInset ref
8736 LatexCommand ref
8737 reference "subsec:Font-description"
8738
8739 \end_inset
8740
8741  for how to declare fonts.
8742  Must end with 
8743 \begin_inset Quotes eld
8744 \end_inset
8745
8746
8747 \begin_inset Flex Code
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 EndFont
8752 \end_layout
8753
8754 \end_inset
8755
8756
8757 \begin_inset Quotes erd
8758 \end_inset
8759
8760 .
8761 \end_layout
8762
8763 \begin_layout Description
8764 \begin_inset Flex Code
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768 DefaultModule
8769 \end_layout
8770
8771 \end_inset
8772
8773  [
8774 \begin_inset Flex Code
8775 status collapsed
8776
8777 \begin_layout Plain Layout
8778 <module>
8779 \end_layout
8780
8781 \end_inset
8782
8783 ] Specifies a module to be included by default with this document class.
8784  The module is specified as filename without the 
8785 \begin_inset Flex Code
8786 status collapsed
8787
8788 \begin_layout Plain Layout
8789 .module
8790 \end_layout
8791
8792 \end_inset
8793
8794  extension.
8795  The user can still remove the module, but it will be active at the outset.
8796  (This applies only when new files are created, or when this class is chosen
8797  for an existing document.)
8798 \end_layout
8799
8800 \begin_layout Description
8801 \begin_inset Flex Code
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 DefaultStyle
8806 \end_layout
8807
8808 \end_inset
8809
8810  [
8811 \begin_inset Flex Code
8812 status collapsed
8813
8814 \begin_layout Plain Layout
8815 <style>
8816 \end_layout
8817
8818 \end_inset
8819
8820 ] This is the style that will be assigned to new paragraphs, usually 
8821 \begin_inset Flex MenuItem
8822 status collapsed
8823
8824 \begin_layout Plain Layout
8825 Standard
8826 \end_layout
8827
8828 \end_inset
8829
8830 .
8831  This will default to the first defined style if not given, but you are
8832  encouraged to use this directive.
8833 \end_layout
8834
8835 \begin_layout Description
8836 \begin_inset Flex Code
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 ExcludesModule
8841 \end_layout
8842
8843 \end_inset
8844
8845  [
8846 \begin_inset Flex Code
8847 status collapsed
8848
8849 \begin_layout Plain Layout
8850 <module>
8851 \end_layout
8852
8853 \end_inset
8854
8855 ] This tag indicates that the module (which is specified by filename without
8856  the 
8857 \begin_inset Flex Code
8858 status collapsed
8859
8860 \begin_layout Plain Layout
8861 .module
8862 \end_layout
8863
8864 \end_inset
8865
8866  extension) cannot be used with this document class.
8867  This might be used in a journal-specific layout file to prevent, say, the
8868  use of the 
8869 \begin_inset Flex Code
8870 status collapsed
8871
8872 \begin_layout Plain Layout
8873 theorems-sec
8874 \end_layout
8875
8876 \end_inset
8877
8878  module that numbers theorems by section.
8879  This tag may 
8880 \emph on
8881 not
8882 \emph default
8883  be used in a module.
8884  Modules have their own way of excluding other modules (see 
8885 \begin_inset CommandInset ref
8886 LatexCommand ref
8887 reference "subsec:Layout-modules"
8888
8889 \end_inset
8890
8891 ).
8892 \end_layout
8893
8894 \begin_layout Description
8895 \begin_inset Flex Code
8896 status collapsed
8897
8898 \begin_layout Plain Layout
8899 Float
8900 \end_layout
8901
8902 \end_inset
8903
8904  Defines a new float.
8905  See 
8906 \begin_inset CommandInset ref
8907 LatexCommand ref
8908 reference "subsec:Floats"
8909
8910 \end_inset
8911
8912  for details.
8913  Must end with 
8914 \begin_inset Quotes eld
8915 \end_inset
8916
8917
8918 \begin_inset Flex Code
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 End
8923 \end_layout
8924
8925 \end_inset
8926
8927
8928 \begin_inset Quotes erd
8929 \end_inset
8930
8931 .
8932 \end_layout
8933
8934 \begin_layout Description
8935 \begin_inset Flex Code
8936 status collapsed
8937
8938 \begin_layout Plain Layout
8939 HTMLPreamble
8940 \end_layout
8941
8942 \end_inset
8943
8944  Sets the information that will be output in the 
8945 \begin_inset Flex Code
8946 status collapsed
8947
8948 \begin_layout Plain Layout
8949 <head>
8950 \end_layout
8951
8952 \end_inset
8953
8954  block when this document class is output to XHTML.
8955  Note that this will completely override any prior 
8956 \begin_inset Flex Code
8957 status collapsed
8958
8959 \begin_layout Plain Layout
8960 HTMLPreamble
8961 \end_layout
8962
8963 \end_inset
8964
8965  or 
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 AddToHTMLPreamble
8971 \end_layout
8972
8973 \end_inset
8974
8975  declarations.
8976  (Use
8977 \begin_inset Newline newline
8978 \end_inset
8979
8980
8981 \begin_inset Flex Code
8982 status collapsed
8983
8984 \begin_layout Plain Layout
8985 AddToHTMLPreamble
8986 \end_layout
8987
8988 \end_inset
8989
8990  if you just want to add material to the preamble.) Must end with 
8991 \begin_inset Quotes eld
8992 \end_inset
8993
8994
8995 \begin_inset Flex Code
8996 status collapsed
8997
8998 \begin_layout Plain Layout
8999 EndPreamble
9000 \end_layout
9001
9002 \end_inset
9003
9004
9005 \begin_inset Quotes erd
9006 \end_inset
9007
9008 .
9009 \end_layout
9010
9011 \begin_layout Description
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 HTMLTOCSection
9017 \end_layout
9018
9019 \end_inset
9020
9021  [
9022 \begin_inset Flex Code
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026 <style>
9027 \end_layout
9028
9029 \end_inset
9030
9031 ] The style to use for the table of contents, bibliography, and so forth,
9032  when the document is output to HTML.
9033  For articles, this should normally be 
9034 \begin_inset Flex Code
9035 status collapsed
9036
9037 \begin_layout Plain Layout
9038 Section
9039 \end_layout
9040
9041 \end_inset
9042
9043 ; for books 
9044 \begin_inset Flex Code
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 Chapter
9049 \end_layout
9050
9051 \end_inset
9052
9053 .
9054  If it is not given, then \SpecialChar LyX
9055  will attempt to figure out which layout to use.
9056 \end_layout
9057
9058 \begin_layout Description
9059 \begin_inset Flex Code
9060 status collapsed
9061
9062 \begin_layout Plain Layout
9063 IfCounter
9064 \end_layout
9065
9066 \end_inset
9067
9068  [
9069 \begin_inset Flex Code
9070 status collapsed
9071
9072 \begin_layout Plain Layout
9073 <counter>
9074 \end_layout
9075
9076 \end_inset
9077
9078 ] Modifies the properties of the given counter.
9079  If the counter does not exist, the statement is ignored.
9080  Must end with 
9081 \begin_inset Quotes eld
9082 \end_inset
9083
9084
9085 \begin_inset Flex Code
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089 End
9090 \end_layout
9091
9092 \end_inset
9093
9094
9095 \begin_inset Quotes erd
9096 \end_inset
9097
9098 .
9099 \begin_inset Newline newline
9100 \end_inset
9101
9102 See 
9103 \begin_inset CommandInset ref
9104 LatexCommand ref
9105 reference "subsec:Counters"
9106
9107 \end_inset
9108
9109  for details on counters.
9110 \end_layout
9111
9112 \begin_layout Description
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 IfStyle
9118 \end_layout
9119
9120 \end_inset
9121
9122  [
9123 \begin_inset Flex Code
9124 status collapsed
9125
9126 \begin_layout Plain Layout
9127 <style>
9128 \end_layout
9129
9130 \end_inset
9131
9132 ] Modifies the properties of the given paragraph style.
9133  If the style does not exist, the statement is ignored.
9134  Must end with 
9135 \begin_inset Quotes eld
9136 \end_inset
9137
9138
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 End
9144 \end_layout
9145
9146 \end_inset
9147
9148
9149 \begin_inset Quotes erd
9150 \end_inset
9151
9152 .
9153 \end_layout
9154
9155 \begin_layout Description
9156 \begin_inset Flex Code
9157 status collapsed
9158
9159 \begin_layout Plain Layout
9160 Input
9161 \end_layout
9162
9163 \end_inset
9164
9165  [
9166 \begin_inset Flex Code
9167 status collapsed
9168
9169 \begin_layout Plain Layout
9170 <filename>
9171 \end_layout
9172
9173 \end_inset
9174
9175 ] This allows you to include another layout definition file within yours
9176  to avoid duplicating commands.
9177  Common examples are the standard layout files, for example, 
9178 \begin_inset Flex Code
9179 status collapsed
9180
9181 \begin_layout Plain Layout
9182 stdclass.inc
9183 \end_layout
9184
9185 \end_inset
9186
9187 , which contains most of the basic layouts.
9188 \end_layout
9189
9190 \begin_layout Description
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 InsetLayout
9196 \end_layout
9197
9198 \end_inset
9199
9200  [
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 <type>
9206 \end_layout
9207
9208 \end_inset
9209
9210 ] This section (re-)defines the layout of an inset.
9211  It can be applied to an existing inset or to a new, user-defined inset,
9212  e.g., a new character style.
9213  Must end with 
9214 \begin_inset Quotes eld
9215 \end_inset
9216
9217
9218 \begin_inset Flex Code
9219 status collapsed
9220
9221 \begin_layout Plain Layout
9222 End
9223 \end_layout
9224
9225 \end_inset
9226
9227
9228 \begin_inset Quotes erd
9229 \end_inset
9230
9231 .
9232 \begin_inset Newline newline
9233 \end_inset
9234
9235 See 
9236 \begin_inset CommandInset ref
9237 LatexCommand ref
9238 reference "subsec:Flex-insets-and"
9239
9240 \end_inset
9241
9242  for more information.
9243  
9244 \end_layout
9245
9246 \begin_layout Description
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 LeftMargin
9252 \end_layout
9253
9254 \end_inset
9255
9256  [
9257 \begin_inset Flex Code
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261 string
9262 \end_layout
9263
9264 \end_inset
9265
9266 ] A string that indicates the width of the left margin on the screen, for
9267  example, 
9268 \begin_inset Quotes eld
9269 \end_inset
9270
9271
9272 \begin_inset Flex Code
9273 status collapsed
9274
9275 \begin_layout Plain Layout
9276 MMMMM
9277 \end_layout
9278
9279 \end_inset
9280
9281
9282 \begin_inset Quotes erd
9283 \end_inset
9284
9285 .
9286  (Note that this is not a `length', like 
9287 \begin_inset Quotes eld
9288 \end_inset
9289
9290 2ex
9291 \begin_inset Quotes erd
9292 \end_inset
9293
9294 .)
9295 \end_layout
9296
9297 \begin_layout Description
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302 NoCounter
9303 \end_layout
9304
9305 \end_inset
9306
9307  [
9308 \begin_inset Flex Code
9309 status collapsed
9310
9311 \begin_layout Plain Layout
9312 <counter>
9313 \end_layout
9314
9315 \end_inset
9316
9317 ] Deletes an existing counter, usually one defined in an included file.
9318 \end_layout
9319
9320 \begin_layout Description
9321 \begin_inset Flex Code
9322 status collapsed
9323
9324 \begin_layout Plain Layout
9325 NoFloat
9326 \end_layout
9327
9328 \end_inset
9329
9330  [
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 <float>
9336 \end_layout
9337
9338 \end_inset
9339
9340 ] Deletes an existing float.
9341  This is particularly useful when you want to suppress a float that has
9342  been defined in an input file.
9343 \end_layout
9344
9345 \begin_layout Description
9346 \begin_inset Flex Code
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350 NoStyle
9351 \end_layout
9352
9353 \end_inset
9354
9355  [
9356 \begin_inset Flex Code
9357 status collapsed
9358
9359 \begin_layout Plain Layout
9360 <style>
9361 \end_layout
9362
9363 \end_inset
9364
9365 ] Deletes an existing style.
9366 \end_layout
9367
9368 \begin_layout Description
9369 \begin_inset Flex Code
9370 status collapsed
9371
9372 \begin_layout Plain Layout
9373 OutputFormat
9374 \end_layout
9375
9376 \end_inset
9377
9378  [
9379 \begin_inset Flex Code
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 <format>
9384 \end_layout
9385
9386 \end_inset
9387
9388 ] The file format (as defined in the \SpecialChar LyX
9389  preferences) produced by this document
9390  class.
9391  It is mainly useful when 
9392 \begin_inset Flex Code
9393 status collapsed
9394
9395 \begin_layout Plain Layout
9396 OutputType
9397 \end_layout
9398
9399 \end_inset
9400
9401  is 
9402 \begin_inset Flex Code
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 literate
9407 \end_layout
9408
9409 \end_inset
9410
9411  and one wants to define a new type of literate document.
9412  The format is reset to 
9413 \begin_inset Quotes eld
9414 \end_inset
9415
9416
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421 docbook
9422 \end_layout
9423
9424 \end_inset
9425
9426
9427 \begin_inset Quotes erd
9428 \end_inset
9429
9430  or 
9431 \begin_inset Quotes eld
9432 \end_inset
9433
9434
9435 \begin_inset Flex Code
9436 status collapsed
9437
9438 \begin_layout Plain Layout
9439 latex
9440 \end_layout
9441
9442 \end_inset
9443
9444
9445 \begin_inset Quotes erd
9446 \end_inset
9447
9448  when the corresponding 
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453 OutputType
9454 \end_layout
9455
9456 \end_inset
9457
9458  parameter is encountered.
9459 \end_layout
9460
9461 \begin_layout Description
9462 \begin_inset Flex Code
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466 OutputType
9467 \end_layout
9468
9469 \end_inset
9470
9471  [
9472 \begin_inset Flex Code
9473 status collapsed
9474
9475 \begin_layout Plain Layout
9476
9477 \emph on
9478 lat
9479 \emph default
9480 ex
9481 \end_layout
9482
9483 \end_inset
9484
9485
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 docbook
9491 \end_layout
9492
9493 \end_inset
9494
9495
9496 \begin_inset Flex Code
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 literate
9501 \end_layout
9502
9503 \end_inset
9504
9505 ] Specifies what sort of output documents using this class will produce.
9506 \end_layout
9507
9508 \begin_layout Description
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513 PackageOptions
9514 \end_layout
9515
9516 \end_inset
9517
9518  [
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 string
9524 \end_layout
9525
9526 \end_inset
9527
9528  
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 string
9534 \end_layout
9535
9536 \end_inset
9537
9538 ] Specifies options, given in the second string, for the package named by
9539  the first string.
9540  For example, 
9541 \begin_inset Quotes eld
9542 \end_inset
9543
9544
9545 \begin_inset Flex Code
9546 status collapsed
9547
9548 \begin_layout Plain Layout
9549 PackageOptions natbib square
9550 \end_layout
9551
9552 \end_inset
9553
9554
9555 \begin_inset Quotes erd
9556 \end_inset
9557
9558  will cause 
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 natbib
9564 \end_layout
9565
9566 \end_inset
9567
9568  to be loaded with the 
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 square
9574 \end_layout
9575
9576 \end_inset
9577
9578  option.
9579  (For \SpecialChar TeX
9580 perts, this causes \SpecialChar LyX
9581  to output: 
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586
9587 \backslash
9588 PassOptionsToPackage{natbib}{square}
9589 \end_layout
9590
9591 \end_inset
9592
9593  prior to loading 
9594 \begin_inset Flex Code
9595 status collapsed
9596
9597 \begin_layout Plain Layout
9598 natbib
9599 \end_layout
9600
9601 \end_inset
9602
9603 .)
9604 \end_layout
9605
9606 \begin_layout Description
9607 \begin_inset Flex Code
9608 status collapsed
9609
9610 \begin_layout Plain Layout
9611 PageStyle
9612 \end_layout
9613
9614 \end_inset
9615
9616  [
9617 \begin_inset Flex Code
9618 status collapsed
9619
9620 \begin_layout Plain Layout
9621
9622 \emph on
9623 plain
9624 \end_layout
9625
9626 \end_inset
9627
9628
9629 \begin_inset Flex Code
9630 status collapsed
9631
9632 \begin_layout Plain Layout
9633 empty
9634 \end_layout
9635
9636 \end_inset
9637
9638
9639 \begin_inset Flex Code
9640 status collapsed
9641
9642 \begin_layout Plain Layout
9643 headings
9644 \end_layout
9645
9646 \end_inset
9647
9648 ] The default pagestyle.
9649  Can be changed in the 
9650 \begin_inset Flex MenuItem
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 Document\SpecialChar menuseparator
9655 Settings
9656 \end_layout
9657
9658 \end_inset
9659
9660  dialog.
9661 \end_layout
9662
9663 \begin_layout Description
9664 \begin_inset Flex Code
9665 status collapsed
9666
9667 \begin_layout Plain Layout
9668 Preamble
9669 \end_layout
9670
9671 \end_inset
9672
9673  Sets the preamble for the \SpecialChar LaTeX
9674  document.
9675  Note that this will completely override any prior 
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 Preamble
9681 \end_layout
9682
9683 \end_inset
9684
9685  or 
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 AddToPreamble
9691 \end_layout
9692
9693 \end_inset
9694
9695  declarations.
9696  (Use 
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 AddToPreamble
9702 \end_layout
9703
9704 \end_inset
9705
9706  if you just want to add material to the preamble.) Must end with 
9707 \begin_inset Quotes eld
9708 \end_inset
9709
9710
9711 \begin_inset Flex Code
9712 status collapsed
9713
9714 \begin_layout Plain Layout
9715 EndPreamble
9716 \end_layout
9717
9718 \end_inset
9719
9720
9721 \begin_inset Quotes erd
9722 \end_inset
9723
9724 .
9725 \end_layout
9726
9727 \begin_layout Description
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732 Provides
9733 \end_layout
9734
9735 \end_inset
9736
9737  [
9738 \begin_inset Flex Code
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 string
9743 \end_layout
9744
9745 \end_inset
9746
9747 ] [
9748 \begin_inset Flex Code
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752
9753 \emph on
9754 0
9755 \end_layout
9756
9757 \end_inset
9758
9759 ,
9760 \begin_inset space \thinspace{}
9761 \end_inset
9762
9763
9764 \begin_inset Flex Code
9765 status collapsed
9766
9767 \begin_layout Plain Layout
9768 1
9769 \end_layout
9770
9771 \end_inset
9772
9773 ] Whether the class already provides the feature 
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 string
9779 \end_layout
9780
9781 \end_inset
9782
9783 .
9784  A feature is in general the name of a package (e.
9785 \begin_inset space \thinspace{}
9786 \end_inset
9787
9788 g.
9789 \begin_inset space \space{}
9790 \end_inset
9791
9792
9793 \begin_inset Flex Code
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 amsmath
9798 \end_layout
9799
9800 \end_inset
9801
9802  or 
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 makeidx
9808 \end_layout
9809
9810 \end_inset
9811
9812 ) or a macro (e.
9813 \begin_inset space \thinspace{}
9814 \end_inset
9815
9816 g.
9817 \begin_inset space \space{}
9818 \end_inset
9819
9820
9821 \begin_inset Flex Code
9822 status collapsed
9823
9824 \begin_layout Plain Layout
9825 url
9826 \end_layout
9827
9828 \end_inset
9829
9830  or 
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 boldsymbol
9836 \end_layout
9837
9838 \end_inset
9839
9840 ).
9841  See 
9842 \begin_inset CommandInset ref
9843 LatexCommand ref
9844 reference "chap:List-of-functions"
9845
9846 \end_inset
9847
9848  for the list of features.
9849 \end_layout
9850
9851 \begin_layout Description
9852 \begin_inset Flex Code
9853 status collapsed
9854
9855 \begin_layout Plain Layout
9856 ProvidesModule
9857 \end_layout
9858
9859 \end_inset
9860
9861  [
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 string
9867 \end_layout
9868
9869 \end_inset
9870
9871 ] Indicates that this layout provides the functionality of the module mentioned,
9872  which should be specified by the filename without the 
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 .module
9878 \end_layout
9879
9880 \end_inset
9881
9882  extension.
9883  This will typically be used if the layout includes the module directly,
9884  rather than using the 
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 DefaultModule
9890 \end_layout
9891
9892 \end_inset
9893
9894  tag to indicate that it ought to be used.
9895  It could also be used in a module that provided an alternate implementation
9896  of the same functionality.
9897 \end_layout
9898
9899 \begin_layout Description
9900 \begin_inset Flex Code
9901 status collapsed
9902
9903 \begin_layout Plain Layout
9904 Requires
9905 \end_layout
9906
9907 \end_inset
9908
9909  [
9910 \begin_inset Flex Code
9911 status collapsed
9912
9913 \begin_layout Plain Layout
9914 string
9915 \end_layout
9916
9917 \end_inset
9918
9919 ] Whether the class requires the feature 
9920 \begin_inset Flex Code
9921 status collapsed
9922
9923 \begin_layout Plain Layout
9924 string
9925 \end_layout
9926
9927 \end_inset
9928
9929 .
9930  Multiple features must be separated by commas.
9931  Note that you can only request supported features.
9932  (See 
9933 \begin_inset CommandInset ref
9934 LatexCommand ref
9935 reference "chap:List-of-functions"
9936
9937 \end_inset
9938
9939  for the list of features.).
9940  If you require a package with specific options, you can additionally use
9941  
9942 \begin_inset Flex Code
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 PackageOptions
9947 \end_layout
9948
9949 \end_inset
9950
9951 .
9952 \end_layout
9953
9954 \begin_layout Description
9955 \begin_inset Flex Code
9956 status collapsed
9957
9958 \begin_layout Plain Layout
9959 RightMargin
9960 \end_layout
9961
9962 \end_inset
9963
9964  [
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969 string
9970 \end_layout
9971
9972 \end_inset
9973
9974 ] A string that indicates the width of the right margin on the screen, for
9975  example, 
9976 \begin_inset Quotes eld
9977 \end_inset
9978
9979
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 MMMMM
9985 \end_layout
9986
9987 \end_inset
9988
9989
9990 \begin_inset Quotes erd
9991 \end_inset
9992
9993 .
9994 \end_layout
9995
9996 \begin_layout Description
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 SecNumDepth
10002 \end_layout
10003
10004 \end_inset
10005
10006  [
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 int=3
10012 \end_layout
10013
10014 \end_inset
10015
10016 ] Sets which divisions get numbered.
10017  Corresponds to the
10018 \begin_inset Newline newline
10019 \end_inset
10020
10021
10022 \begin_inset Flex Code
10023 status collapsed
10024
10025 \begin_layout Plain Layout
10026 secnumdepth
10027 \end_layout
10028
10029 \end_inset
10030
10031  counter in \SpecialChar LaTeX
10032 .
10033 \end_layout
10034
10035 \begin_layout Description
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 Sides
10041 \end_layout
10042
10043 \end_inset
10044
10045  [
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050
10051 \emph on
10052 1
10053 \end_layout
10054
10055 \end_inset
10056
10057 ,
10058 \begin_inset space \thinspace{}
10059 \end_inset
10060
10061
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 2
10067 \end_layout
10068
10069 \end_inset
10070
10071 ] Whether the class-default should be printing on one or both sides of the
10072  paper.
10073  Can be changed in the 
10074 \begin_inset Flex MenuItem
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 Document\SpecialChar menuseparator
10079 Settings
10080 \end_layout
10081
10082 \end_inset
10083
10084  dialog.
10085 \end_layout
10086
10087 \begin_layout Description
10088 \begin_inset Flex Code
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 Style
10093 \end_layout
10094
10095 \end_inset
10096
10097  [
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 <name>
10103 \end_layout
10104
10105 \end_inset
10106
10107 ] This sequence defines a paragraph style.
10108  If the style does not yet exist, it is created; if it does exist, its parameter
10109 s are modified.
10110  Must end with 
10111 \begin_inset Quotes eld
10112 \end_inset
10113
10114
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 End
10120 \end_layout
10121
10122 \end_inset
10123
10124
10125 \begin_inset Quotes erd
10126 \end_inset
10127
10128 .
10129 \begin_inset Newline newline
10130 \end_inset
10131
10132 See 
10133 \begin_inset CommandInset ref
10134 LatexCommand ref
10135 reference "subsec:Paragraph-Styles"
10136
10137 \end_inset
10138
10139  for details on paragraph styles.
10140 \end_layout
10141
10142 \begin_layout Description
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 TitleLatexName
10148 \end_layout
10149
10150 \end_inset
10151
10152  [
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 string="maketitle"
10158 \end_layout
10159
10160 \end_inset
10161
10162 ] The name of the command or environment to be used with 
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 TitleLatexType
10168 \end_layout
10169
10170 \end_inset
10171
10172 .
10173 \end_layout
10174
10175 \begin_layout Description
10176 \begin_inset Flex Code
10177 status collapsed
10178
10179 \begin_layout Plain Layout
10180 TitleLatexType
10181 \end_layout
10182
10183 \end_inset
10184
10185  [
10186 \begin_inset Flex Code
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190
10191 \emph on
10192 CommandAfter
10193 \end_layout
10194
10195 \end_inset
10196
10197
10198 \begin_inset Flex Code
10199 status collapsed
10200
10201 \begin_layout Plain Layout
10202 Environment
10203 \end_layout
10204
10205 \end_inset
10206
10207 ] Indicates what kind of markup is used to define the title of a document.
10208  
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 CommandAfter
10214 \end_layout
10215
10216 \end_inset
10217
10218  means that the macro with name 
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 TitleLatexName
10224 \end_layout
10225
10226 \end_inset
10227
10228  will be inserted after the last layout which has 
10229 \begin_inset Quotes eld
10230 \end_inset
10231
10232
10233 \begin_inset Flex Code
10234 status collapsed
10235
10236 \begin_layout Plain Layout
10237 InTitle
10238 \begin_inset space ~
10239 \end_inset
10240
10241 1
10242 \end_layout
10243
10244 \end_inset
10245
10246
10247 \begin_inset Quotes erd
10248 \end_inset
10249
10250 .
10251  
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 Environment
10257 \end_layout
10258
10259 \end_inset
10260
10261  corresponds to the case where all layouts which have 
10262 \begin_inset Quotes eld
10263 \end_inset
10264
10265
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 InTitle
10271 \begin_inset space ~
10272 \end_inset
10273
10274 1
10275 \end_layout
10276
10277 \end_inset
10278
10279
10280 \begin_inset Quotes erd
10281 \end_inset
10282
10283  should be enclosed into the 
10284 \begin_inset Flex Code
10285 status collapsed
10286
10287 \begin_layout Plain Layout
10288 TitleLatexName
10289 \end_layout
10290
10291 \end_inset
10292
10293  environment.
10294 \end_layout
10295
10296 \begin_layout Description
10297 \begin_inset Flex Code
10298 status collapsed
10299
10300 \begin_layout Plain Layout
10301 TocDepth
10302 \end_layout
10303
10304 \end_inset
10305
10306  [
10307 \begin_inset Flex Code
10308 status collapsed
10309
10310 \begin_layout Plain Layout
10311 int=3
10312 \end_layout
10313
10314 \end_inset
10315
10316 ] Sets which divisions are included in the table of contents.
10317  Corresponds to the 
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 tocdepth
10323 \end_layout
10324
10325 \end_inset
10326
10327  counter in \SpecialChar LaTeX
10328 .
10329 \end_layout
10330
10331 \begin_layout Subsection
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 ClassOptions
10337 \end_layout
10338
10339 \end_inset
10340
10341  section
10342 \begin_inset CommandInset label
10343 LatexCommand label
10344 name "subsec:ClassOptions"
10345
10346 \end_inset
10347
10348
10349 \end_layout
10350
10351 \begin_layout Standard
10352 The 
10353 \begin_inset Flex Code
10354 status collapsed
10355
10356 \begin_layout Plain Layout
10357 ClassOptions
10358 \end_layout
10359
10360 \end_inset
10361
10362  section can contain the following entries:
10363 \end_layout
10364
10365 \begin_layout Description
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 FontSize
10371 \end_layout
10372
10373 \end_inset
10374
10375  [
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 string="10|11|12"
10381 \end_layout
10382
10383 \end_inset
10384
10385 ] The list of available font sizes for the document's main font, separated
10386  by 
10387 \begin_inset Quotes eld
10388 \end_inset
10389
10390
10391 \begin_inset Flex Code
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 |
10396 \end_layout
10397
10398 \end_inset
10399
10400
10401 \begin_inset Quotes erd
10402 \end_inset
10403
10404 .
10405 \end_layout
10406
10407 \begin_layout Description
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 Header
10413 \end_layout
10414
10415 \end_inset
10416
10417  Used to set the DTD line with XML-based output classes.
10418  E.
10419 \begin_inset space \thinspace{}
10420 \end_inset
10421
10422 g.: PUBLIC 
10423 \begin_inset Quotes eld
10424 \end_inset
10425
10426 -//OASIS//DTD DocBook V4.2//EN
10427 \begin_inset Quotes erd
10428 \end_inset
10429
10430 .
10431 \end_layout
10432
10433 \begin_layout Description
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 PageStyle
10439 \end_layout
10440
10441 \end_inset
10442
10443  [
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448 string="empty|plain|headings|fancy"
10449 \end_layout
10450
10451 \end_inset
10452
10453 ] The list of available page sty\SpecialChar softhyphen
10454 les, separated by 
10455 \begin_inset Quotes eld
10456 \end_inset
10457
10458
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 |
10464 \end_layout
10465
10466 \end_inset
10467
10468
10469 \begin_inset Quotes erd
10470 \end_inset
10471
10472 .
10473 \end_layout
10474
10475 \begin_layout Description
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 Other
10481 \end_layout
10482
10483 \end_inset
10484
10485  [
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490 string=""
10491 \end_layout
10492
10493 \end_inset
10494
10495 ] Some document class options, separated by a comma, that will be added
10496  to the optional part of the 
10497 \begin_inset Flex Code
10498 status collapsed
10499
10500 \begin_layout Plain Layout
10501
10502 \backslash
10503 documentclass
10504 \end_layout
10505
10506 \end_inset
10507
10508  command.
10509 \end_layout
10510
10511 \begin_layout Standard
10512 The 
10513 \begin_inset Flex Code
10514 status collapsed
10515
10516 \begin_layout Plain Layout
10517 ClassOptions
10518 \end_layout
10519
10520 \end_inset
10521
10522  section must end with 
10523 \begin_inset Quotes eld
10524 \end_inset
10525
10526
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 End
10532 \end_layout
10533
10534 \end_inset
10535
10536
10537 \begin_inset Quotes erd
10538 \end_inset
10539
10540 .
10541 \end_layout
10542
10543 \begin_layout Subsection
10544 Paragraph styles
10545 \begin_inset CommandInset label
10546 LatexCommand label
10547 name "subsec:Paragraph-Styles"
10548
10549 \end_inset
10550
10551
10552 \end_layout
10553
10554 \begin_layout Standard
10555 A paragraph style description looks like this:
10556 \begin_inset Foot
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 Note that this will either define a new style or modify an existing one.
10561 \end_layout
10562
10563 \end_inset
10564
10565
10566 \end_layout
10567
10568 \begin_layout LyX-Code
10569 Style 
10570 \family roman
10571 \emph on
10572 name
10573 \end_layout
10574
10575 \begin_layout LyX-Code
10576  ...
10577 \end_layout
10578
10579 \begin_layout LyX-Code
10580 End
10581 \end_layout
10582
10583 \begin_layout Standard
10584 where the following commands are allowed:
10585 \end_layout
10586
10587 \begin_layout Description
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592 Align
10593 \end_layout
10594
10595 \end_inset
10596
10597  [
10598 \begin_inset Flex Code
10599 status collapsed
10600
10601 \begin_layout Plain Layout
10602
10603 \emph on
10604 block
10605 \emph default
10606 , left, right, center
10607 \end_layout
10608
10609 \end_inset
10610
10611 ] Paragraph alignment.
10612 \end_layout
10613
10614 \begin_layout Description
10615 \begin_inset Flex Code
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 AlignPossible
10620 \end_layout
10621
10622 \end_inset
10623
10624  [
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629
10630 \emph on
10631 block
10632 \emph default
10633 , left, right, center
10634 \end_layout
10635
10636 \end_inset
10637
10638 ] A comma separated list of permitted alignments.
10639  (Some \SpecialChar LaTeX
10640  styles prohibit certain alignments, since those wouldn't make sense.
10641  For example a right-aligned or centered enumeration isn't possible.)
10642 \end_layout
10643
10644 \begin_layout Description
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 Argument
10650 \end_layout
10651
10652 \end_inset
10653
10654  [
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 int
10660 \end_layout
10661
10662 \end_inset
10663
10664 ] Defines argument number <int> of a command\SpecialChar breakableslash
10665 environment associated with
10666  the current style.
10667  This is useful for things like section headings, and only makes sense with
10668  \SpecialChar LaTeX
10669 .
10670  Every (optional or required) argument of a command or environment – except
10671  for the required argument that is associated with the content of the paragraph
10672  itself – has a separate definition, where the number specifies the order
10673  of the arguments.
10674  The definition must end with 
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 EndArgument
10680 \end_layout
10681
10682 \end_inset
10683
10684 .
10685  So a command with two optional arguments has:
10686 \begin_inset Separator parbreak
10687 \end_inset
10688
10689
10690 \end_layout
10691
10692 \begin_deeper
10693 \begin_layout Quote
10694
10695 \family typewriter
10696 Argument 1
10697 \end_layout
10698
10699 \begin_layout Quote
10700
10701 \family typewriter
10702 ...
10703 \end_layout
10704
10705 \begin_layout Quote
10706
10707 \family typewriter
10708 EndArgument
10709 \end_layout
10710
10711 \begin_layout Quote
10712
10713 \family typewriter
10714 Argument 2
10715 \end_layout
10716
10717 \begin_layout Quote
10718
10719 \family typewriter
10720 ...
10721 \end_layout
10722
10723 \begin_layout Quote
10724
10725 \family typewriter
10726 EndArgument
10727 \end_layout
10728
10729 \begin_layout Standard
10730 Inside the 
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 Argument
10736 \end_layout
10737
10738 \end_inset
10739
10740  definition, the following specifications are possible:
10741 \end_layout
10742
10743 \begin_layout Itemize
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 LabelString
10749 \end_layout
10750
10751 \end_inset
10752
10753  
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 [string]
10759 \end_layout
10760
10761 \end_inset
10762
10763  The string that will appear both in the menu (to insert this argument)
10764  and on the argument inset button (unless you also specify a separate 
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 MenuString
10770 \end_layout
10771
10772 \end_inset
10773
10774 ).
10775  For the menu, you can define an accelerator by appending the respective
10776  character to the string, divided by 
10777 \begin_inset Quotes eld
10778 \end_inset
10779
10780 |
10781 \begin_inset Quotes erd
10782 \end_inset
10783
10784  (e.
10785 \begin_inset space \thinspace{}
10786 \end_inset
10787
10788 g.
10789 \begin_inset space \space{}
10790 \end_inset
10791
10792
10793 \begin_inset Quotes eld
10794 \end_inset
10795
10796
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801 Short Title|S
10802 \end_layout
10803
10804 \end_inset
10805
10806
10807 \begin_inset Quotes erd
10808 \end_inset
10809
10810 ).
10811 \end_layout
10812
10813 \begin_layout Itemize
10814 \begin_inset Flex Code
10815 status collapsed
10816
10817 \begin_layout Plain Layout
10818 MenuString
10819 \end_layout
10820
10821 \end_inset
10822
10823  
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 [string]
10829 \end_layout
10830
10831 \end_inset
10832
10833  A separate string for the menu.
10834  You can define an accelerator by appending the respective character to
10835  the string, divided by 
10836 \begin_inset Quotes eld
10837 \end_inset
10838
10839 |
10840 \begin_inset Quotes erd
10841 \end_inset
10842
10843  (e.
10844 \begin_inset space \thinspace{}
10845 \end_inset
10846
10847 g.
10848 \begin_inset space \space{}
10849 \end_inset
10850
10851
10852 \begin_inset Quotes eld
10853 \end_inset
10854
10855
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 Short Title|S
10861 \end_layout
10862
10863 \end_inset
10864
10865
10866 \begin_inset Quotes erd
10867 \end_inset
10868
10869 ).
10870  This specification is optional.
10871  If it is not given the 
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 LabelString
10877 \end_layout
10878
10879 \end_inset
10880
10881  will be used instead for the menu.
10882 \end_layout
10883
10884 \begin_layout Itemize
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 Tooltip
10890 \end_layout
10891
10892 \end_inset
10893
10894  
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 [string]
10900 \end_layout
10901
10902 \end_inset
10903
10904  A longer explanatory text that appears in the tooltip when hovering over
10905  the argument inset.
10906 \end_layout
10907
10908 \begin_layout Itemize
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 Mandatory
10914 \end_layout
10915
10916 \end_inset
10917
10918  [
10919 \begin_inset Flex Code
10920 status collapsed
10921
10922 \begin_layout Plain Layout
10923
10924 \emph on
10925 0
10926 \end_layout
10927
10928 \end_inset
10929
10930 ,
10931 \begin_inset space \thinspace{}
10932 \end_inset
10933
10934
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 1
10940 \end_layout
10941
10942 \end_inset
10943
10944 ] Declare if this is a mandatory (1) or an optional (0) argument.
10945  Mandatory arguments will be output empty if not given, while optional arguments
10946  will not be output at all.
10947  By default, mandatory arguments are delimited by 
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 {...}
10953 \end_layout
10954
10955 \end_inset
10956
10957 , while optional arguments are delimited by 
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 [...]
10963 \end_layout
10964
10965 \end_inset
10966
10967
10968 \end_layout
10969
10970 \begin_layout Itemize
10971 \begin_inset Flex Code
10972 status collapsed
10973
10974 \begin_layout Plain Layout
10975 Requires
10976 \end_layout
10977
10978 \end_inset
10979
10980  
10981 \begin_inset Flex Code
10982 status collapsed
10983
10984 \begin_layout Plain Layout
10985 [int=0]
10986 \end_layout
10987
10988 \end_inset
10989
10990  defines another argument (by its number) which this argument requires to
10991  be output if it is itself output.
10992  E.
10993 \begin_inset space \thinspace{}
10994 \end_inset
10995
10996 g., in \SpecialChar LaTeX
10997  commands, optional arguments often require previous optional arguments
10998  to be output (at least empty), as in 
10999 \begin_inset Flex Code
11000 status collapsed
11001
11002 \begin_layout Plain Layout
11003
11004 \backslash
11005 command[][argument]{text}
11006 \end_layout
11007
11008 \end_inset
11009
11010 .
11011  This can be achieved by the statement 
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 Requires 1
11017 \end_layout
11018
11019 \end_inset
11020
11021  within 
11022 \begin_inset Flex Code
11023 status collapsed
11024
11025 \begin_layout Plain Layout
11026 Argument 2
11027 \end_layout
11028
11029 \end_inset
11030
11031 .
11032 \end_layout
11033
11034 \begin_layout Itemize
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 LeftDelim
11040 \end_layout
11041
11042 \end_inset
11043
11044  
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 [string]
11050 \end_layout
11051
11052 \end_inset
11053
11054  defines a custom left delimiter (instead of 
11055 \begin_inset Flex Code
11056 status collapsed
11057
11058 \begin_layout Plain Layout
11059 {
11060 \end_layout
11061
11062 \end_inset
11063
11064  or 
11065 \begin_inset Flex Code
11066 status collapsed
11067
11068 \begin_layout Plain Layout
11069 [
11070 \end_layout
11071
11072 \end_inset
11073
11074 ).
11075  A line break in the output can be indicated by 
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 <br/>
11081 \end_layout
11082
11083 \end_inset
11084
11085 .
11086 \end_layout
11087
11088 \begin_layout Itemize
11089 \begin_inset Flex Code
11090 status collapsed
11091
11092 \begin_layout Plain Layout
11093 RightDelim
11094 \end_layout
11095
11096 \end_inset
11097
11098  
11099 \begin_inset Flex Code
11100 status collapsed
11101
11102 \begin_layout Plain Layout
11103 [string]
11104 \end_layout
11105
11106 \end_inset
11107
11108  defines a custom right delimiter (instead of 
11109 \begin_inset Flex Code
11110 status collapsed
11111
11112 \begin_layout Plain Layout
11113 }
11114 \end_layout
11115
11116 \end_inset
11117
11118  or 
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 ]
11124 \end_layout
11125
11126 \end_inset
11127
11128 ).
11129  A line break in the output can be indicated by 
11130 \begin_inset Flex Code
11131 status collapsed
11132
11133 \begin_layout Plain Layout
11134 <br/>
11135 \end_layout
11136
11137 \end_inset
11138
11139 .
11140 \end_layout
11141
11142 \begin_layout Itemize
11143 \begin_inset Flex Code
11144 status collapsed
11145
11146 \begin_layout Plain Layout
11147 DefaultArg
11148 \end_layout
11149
11150 \end_inset
11151
11152  
11153 \begin_inset Flex Code
11154 status collapsed
11155
11156 \begin_layout Plain Layout
11157 [string]
11158 \end_layout
11159
11160 \end_inset
11161
11162  defines an argument that is inserted if and only if no user-specified arguments
11163  were given, i.
11164 \begin_inset space \thinspace{}
11165 \end_inset
11166
11167 e.
11168 \begin_inset space \space{}
11169 \end_inset
11170
11171 if no argument inset has been inserted (note that also an empty argument
11172  inset omits the DefaultArg).
11173  Multiple arguments need to be separated by comma.
11174 \end_layout
11175
11176 \begin_layout Itemize
11177 \begin_inset Flex Code
11178 status collapsed
11179
11180 \begin_layout Plain Layout
11181 PresetArg
11182 \end_layout
11183
11184 \end_inset
11185
11186  
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 [string]
11192 \end_layout
11193
11194 \end_inset
11195
11196  defines an argument that is inserted in any case (alone or in addition
11197  to user-specified arguments).
11198  Multiple arguments need to be separated by comma.
11199 \end_layout
11200
11201 \begin_layout Itemize
11202 \begin_inset Flex Code
11203 status collapsed
11204
11205 \begin_layout Plain Layout
11206 Font
11207 \end_layout
11208
11209 \end_inset
11210
11211  The font used for the argument content, see 
11212 \begin_inset CommandInset ref
11213 LatexCommand ref
11214 reference "subsec:Font-description"
11215
11216 \end_inset
11217
11218 .
11219 \end_layout
11220
11221 \begin_layout Itemize
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 LabelFont
11227 \end_layout
11228
11229 \end_inset
11230
11231  The font used for the label; see 
11232 \begin_inset CommandInset ref
11233 LatexCommand ref
11234 reference "subsec:Font-description"
11235
11236 \end_inset
11237
11238 .
11239 \end_layout
11240
11241 \begin_layout Itemize
11242 \begin_inset Flex Code
11243 status collapsed
11244
11245 \begin_layout Plain Layout
11246 Decoration
11247 \end_layout
11248
11249 \end_inset
11250
11251  [
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256
11257 \emph on
11258 Classic
11259 \emph default
11260 , Minimalistic, Conglomerate
11261 \end_layout
11262
11263 \end_inset
11264
11265 ] describes the rendering style used for the inset's frame and buttons.
11266 \end_layout
11267
11268 \begin_layout Itemize
11269 \begin_inset Flex Code
11270 status collapsed
11271
11272 \begin_layout Plain Layout
11273 AutoInsert
11274 \end_layout
11275
11276 \end_inset
11277
11278  
11279 \begin_inset Flex Code
11280 status collapsed
11281
11282 \begin_layout Plain Layout
11283 [int=0]
11284 \end_layout
11285
11286 \end_inset
11287
11288  If this is set to 
11289 \begin_inset Flex Code
11290 status collapsed
11291
11292 \begin_layout Plain Layout
11293 1
11294 \end_layout
11295
11296 \end_inset
11297
11298 , this argument is automatically inserted when the respective style is selected.
11299  Currently, only one argument per style\SpecialChar breakableslash
11300 layout can be automatically inserted.
11301 \end_layout
11302
11303 \begin_layout Itemize
11304 \begin_inset Flex Code
11305 status collapsed
11306
11307 \begin_layout Plain Layout
11308 InsertCotext
11309 \end_layout
11310
11311 \end_inset
11312
11313  
11314 \begin_inset Flex Code
11315 status collapsed
11316
11317 \begin_layout Plain Layout
11318 [int=0]
11319 \end_layout
11320
11321 \end_inset
11322
11323  If this is set to 
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 1
11329 \end_layout
11330
11331 \end_inset
11332
11333 , this argument will be inserted with a copy of the co-text (either selected
11334  text or the whole paragraph) as content.
11335 \end_layout
11336
11337 \begin_layout Itemize
11338 \begin_inset Flex Code
11339 status collapsed
11340
11341 \begin_layout Plain Layout
11342 PassThruChars
11343 \end_layout
11344
11345 \end_inset
11346
11347  [
11348 \begin_inset Flex Code
11349 status collapsed
11350
11351 \begin_layout Plain Layout
11352 string of characters
11353 \end_layout
11354
11355 \end_inset
11356
11357 ]
11358 \family typewriter
11359  
11360 \family default
11361 Defines individual characters that should be output in raw form, meaning
11362  without special translations that \SpecialChar LaTeX
11363  would require.
11364  Note that, contrary to PassThru, this needs to be explicitly defined for
11365  arguments.
11366  That is, arguments do not inherit PassThruChars from their parent inset
11367  or layout.
11368 \end_layout
11369
11370 \begin_layout Standard
11371 By default, the text entered in the \SpecialChar LyX
11372  workarea in the respective layout is
11373  the last (mandatory) argument of a command if the 
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 LatexType
11379 \end_layout
11380
11381 \end_inset
11382
11383  is 
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 Command
11389 \end_layout
11390
11391 \end_inset
11392
11393 .
11394  However, arguments with the prefix 
11395 \begin_inset Flex Code
11396 status collapsed
11397
11398 \begin_layout Plain Layout
11399 post:
11400 \end_layout
11401
11402 \end_inset
11403
11404  are output after this workarea argument.
11405  Note that post-argument numbering restarts at 1, so the first argument
11406  following the workarea argument is 
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411 post:1
11412 \end_layout
11413
11414 \end_inset
11415
11416 .
11417  Post-arguments are ignored in any other 
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 LatexType
11423 \end_layout
11424
11425 \end_inset
11426
11427  than 
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 Command
11433 \end_layout
11434
11435 \end_inset
11436
11437 .
11438 \end_layout
11439
11440 \begin_layout Standard
11441 Arguments for list 
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446
11447 \backslash
11448 item
11449 \end_layout
11450
11451 \end_inset
11452
11453 s (as in 
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458
11459 \backslash
11460 item[foo]
11461 \end_layout
11462
11463 \end_inset
11464
11465 ) have the prefix 
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470 item:
11471 \end_layout
11472
11473 \end_inset
11474
11475  followed by the number (e.
11476 \begin_inset space \thinspace{}
11477 \end_inset
11478
11479 g.
11480 \begin_inset space \space{}
11481 \end_inset
11482
11483
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Argument item:1
11489 \end_layout
11490
11491 \end_inset
11492
11493 )
11494 \end_layout
11495
11496 \end_deeper
11497 \begin_layout Description
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 BabelPreamble
11503 \end_layout
11504
11505 \end_inset
11506
11507  Note that this will completely override any prior 
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 BabelPreamble
11513 \end_layout
11514
11515 \end_inset
11516
11517  declaration for this style.
11518  Must end with 
11519 \begin_inset Quotes eld
11520 \end_inset
11521
11522
11523 \begin_inset Flex Code
11524 status collapsed
11525
11526 \begin_layout Plain Layout
11527 EndBabelPreamble
11528 \end_layout
11529
11530 \end_inset
11531
11532
11533 \begin_inset Quotes erd
11534 \end_inset
11535
11536 .
11537  See 
11538 \begin_inset CommandInset ref
11539 LatexCommand ref
11540 reference "subsec:I18n"
11541
11542 \end_inset
11543
11544  for details on its use.
11545 \end_layout
11546
11547 \begin_layout Description
11548 \begin_inset Flex Code
11549 status collapsed
11550
11551 \begin_layout Plain Layout
11552 BottomSep
11553 \end_layout
11554
11555 \end_inset
11556
11557  [
11558 \begin_inset Flex Code
11559 status collapsed
11560
11561 \begin_layout Plain Layout
11562 float=0
11563 \end_layout
11564
11565 \end_inset
11566
11567 ]
11568 \begin_inset Foot
11569 status collapsed
11570
11571 \begin_layout Plain Layout
11572 Note that a `float' here is a real number, such as: 1.5.
11573 \end_layout
11574
11575 \end_inset
11576
11577  The vertical space with which the last of a chain of paragraphs with this
11578  style is separated from the following paragraph.
11579  If the next paragraph has another style, the separations are not simply
11580  added, but the maximum is taken.
11581 \end_layout
11582
11583 \begin_layout Description
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588 Category
11589 \end_layout
11590
11591 \end_inset
11592
11593  [
11594 \begin_inset Flex Code
11595 status collapsed
11596
11597 \begin_layout Plain Layout
11598 string
11599 \end_layout
11600
11601 \end_inset
11602
11603 ] The category for this style.
11604  This is used to group related styles in the style combobox on the toolbar.
11605  Any string can be used, but you may want to use existing categories with
11606  your own styles.
11607  
11608 \end_layout
11609
11610 \begin_layout Description
11611 \begin_inset Flex Code
11612 status collapsed
11613
11614 \begin_layout Plain Layout
11615 CommandDepth
11616 \end_layout
11617
11618 \end_inset
11619
11620  Depth of XML command.
11621  Used only with XML-type formats.
11622 \end_layout
11623
11624 \begin_layout Description
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 CopyStyle
11630 \end_layout
11631
11632 \end_inset
11633
11634  [
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 string
11640 \end_layout
11641
11642 \end_inset
11643
11644 ] Copies all the features of an existing style into the current one.
11645  
11646 \end_layout
11647
11648 \begin_layout Description
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 DependsOn
11654 \end_layout
11655
11656 \end_inset
11657
11658  [
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 <name>
11664 \end_layout
11665
11666 \end_inset
11667
11668 ] The name of a style whose preamble should be output 
11669 \emph on
11670 before
11671 \emph default
11672  this one.
11673  This allows to ensure some ordering of the preamble snippets when macros
11674  definitions depend on one another.
11675 \begin_inset Foot
11676 status collapsed
11677
11678 \begin_layout Plain Layout
11679 Note that, besides that functionality, there is no way to ensure any ordering
11680  of preambles.
11681  The ordering that you see in a given version of \SpecialChar LyX
11682  may change without warning
11683  in later versions.
11684 \end_layout
11685
11686 \end_inset
11687
11688
11689 \end_layout
11690
11691 \begin_layout Description
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 EndLabeltype
11697 \end_layout
11698
11699 \end_inset
11700
11701  [
11702 \begin_inset Flex Code
11703 status collapsed
11704
11705 \begin_layout Plain Layout
11706
11707 \emph on
11708 No_Label
11709 \emph default
11710 , Box, Filled_Box, Static
11711 \end_layout
11712
11713 \end_inset
11714
11715 ] The type of label that stands at the end of the paragraph (or sequence
11716  of paragraphs if 
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 LatexType
11722 \end_layout
11723
11724 \end_inset
11725
11726  is
11727 \begin_inset Newline newline
11728 \end_inset
11729
11730
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 Environment
11736 \end_layout
11737
11738 \end_inset
11739
11740
11741 \begin_inset Flex Code
11742 status collapsed
11743
11744 \begin_layout Plain Layout
11745 Item_Environment
11746 \end_layout
11747
11748 \end_inset
11749
11750  or 
11751 \begin_inset Flex Code
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755 List_Environment
11756 \end_layout
11757
11758 \end_inset
11759
11760 ).
11761  
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 No_Label
11767 \end_layout
11768
11769 \end_inset
11770
11771  means 
11772 \begin_inset Quotes eld
11773 \end_inset
11774
11775 nothing
11776 \begin_inset Quotes erd
11777 \end_inset
11778
11779
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 Box
11785 \end_layout
11786
11787 \end_inset
11788
11789  (resp.
11790 \begin_inset space \space{}
11791 \end_inset
11792
11793
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 Filled_Box
11799 \end_layout
11800
11801 \end_inset
11802
11803 ) is a white (resp.
11804 \begin_inset space ~
11805 \end_inset
11806
11807 black) square suitable for end of proof markers, 
11808 \begin_inset Flex Code
11809 status collapsed
11810
11811 \begin_layout Plain Layout
11812 Static
11813 \end_layout
11814
11815 \end_inset
11816
11817  is an explicit text string.
11818 \end_layout
11819
11820 \begin_layout Description
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 EndLabelString
11826 \end_layout
11827
11828 \end_inset
11829
11830  [
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835 string=""
11836 \end_layout
11837
11838 \end_inset
11839
11840 ] The string used for a label with a 
11841 \begin_inset Flex Code
11842 status collapsed
11843
11844 \begin_layout Plain Layout
11845 Static
11846 \end_layout
11847
11848 \end_inset
11849
11850
11851 \begin_inset Newline newline
11852 \end_inset
11853
11854
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 EndLabelType
11860 \end_layout
11861
11862 \end_inset
11863
11864 .
11865  
11866 \end_layout
11867
11868 \begin_layout Description
11869 \begin_inset Flex Code
11870 status collapsed
11871
11872 \begin_layout Plain Layout
11873 Font
11874 \end_layout
11875
11876 \end_inset
11877
11878  The font used for both the text body 
11879 \emph on
11880 and
11881 \emph default
11882  the label.
11883  See 
11884 \begin_inset CommandInset ref
11885 LatexCommand ref
11886 reference "subsec:Font-description"
11887
11888 \end_inset
11889
11890 .
11891  Note that defining this font automatically defines the 
11892 \begin_inset Flex Code
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896 LabelFont
11897 \end_layout
11898
11899 \end_inset
11900
11901  to the same value.
11902  So you should define this one first if you also want to define 
11903 \begin_inset Flex Code
11904 status collapsed
11905
11906 \begin_layout Plain Layout
11907 LabelFont
11908 \end_layout
11909
11910 \end_inset
11911
11912 .
11913 \end_layout
11914
11915 \begin_layout Description
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 ForceLocal
11921 \end_layout
11922
11923 \end_inset
11924
11925  [
11926 \begin_inset Flex Code
11927 status collapsed
11928
11929 \begin_layout Plain Layout
11930 int=0
11931 \end_layout
11932
11933 \end_inset
11934
11935 ] Used for backporting new styles to stable \SpecialChar LyX
11936  versions.
11937  The first stable version that supports this tag is \SpecialChar LyX
11938  2.1.0.
11939  The argument is a number which may either be 0, -1 or any value greater
11940  than zero.
11941  If the 
11942 \begin_inset Flex Code
11943 status collapsed
11944
11945 \begin_layout Plain Layout
11946 ForceLocal
11947 \end_layout
11948
11949 \end_inset
11950
11951  flag of a style is greater than zero, it will always be written to the
11952  document header.
11953  If a .lyx file is read, the style definitions from the document header are
11954  added to the document class.
11955  Therefore even older \SpecialChar LyX
11956  versions can handle the style.
11957  The argument of 
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 ForceLocal
11963 \end_layout
11964
11965 \end_inset
11966
11967  is a version number: If the style is read, and the version number is less
11968  than the version number of the already existing style in the document class,
11969  the new style is ignored.
11970  If the version number is greater, the new style replaces the existing style.
11971  A value of -1 means an infinite version number, i.
11972 \begin_inset space \thinspace{}
11973 \end_inset
11974
11975 e.
11976 \begin_inset space \space{}
11977 \end_inset
11978
11979 the style is always used.
11980 \end_layout
11981
11982 \begin_layout Description
11983 \begin_inset Flex Code
11984 status collapsed
11985
11986 \begin_layout Plain Layout
11987 FreeSpacing
11988 \end_layout
11989
11990 \end_inset
11991
11992  [
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997
11998 \emph on
11999 0
12000 \end_layout
12001
12002 \end_inset
12003
12004 ,
12005 \begin_inset space \thinspace{}
12006 \end_inset
12007
12008
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013 1
12014 \end_layout
12015
12016 \end_inset
12017
12018 ] Usually \SpecialChar LyX
12019  does not allow you to insert more than one space between words,
12020  since a space is considered as the separation between two words, not a
12021  character or symbol of its own.
12022  This is a very fine thing but sometimes annoying, for example, when typing
12023  program code or plain \SpecialChar LaTeX
12024  code.
12025  For this reason, 
12026 \begin_inset Flex Code
12027 status collapsed
12028
12029 \begin_layout Plain Layout
12030 FreeSpacing
12031 \end_layout
12032
12033 \end_inset
12034
12035  can be enabled.
12036  Note that \SpecialChar LyX
12037  will create protected blanks for the additional blanks when
12038  in another mode than \SpecialChar LaTeX
12039 -mode.
12040 \end_layout
12041
12042 \begin_layout Description
12043 \begin_inset Flex Code
12044 status collapsed
12045
12046 \begin_layout Plain Layout
12047 HTML*
12048 \end_layout
12049
12050 \end_inset
12051
12052  These tags are used with XHTML output.
12053  See 
12054 \begin_inset CommandInset ref
12055 LatexCommand ref
12056 reference "subsec:Paragraph-Style-XHTML"
12057
12058 \end_inset
12059
12060 .
12061 \end_layout
12062
12063 \begin_layout Description
12064 \begin_inset Flex Code
12065 status collapsed
12066
12067 \begin_layout Plain Layout
12068 InnerTag
12069 \end_layout
12070
12071 \end_inset
12072
12073  [FIXME] (Used only with XML-type formats.)
12074 \end_layout
12075
12076 \begin_layout Description
12077 \begin_inset Flex Code
12078 status collapsed
12079
12080 \begin_layout Plain Layout
12081 InPreamble
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 0
12094 \end_layout
12095
12096 \end_inset
12097
12098 ,
12099 \begin_inset space \thinspace{}
12100 \end_inset
12101
12102
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 1
12108 \end_layout
12109
12110 \end_inset
12111
12112 ] If 
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 1
12118 \end_layout
12119
12120 \end_inset
12121
12122 , marks the style as to be included in the document preamble and not in
12123  the document body.
12124  This is useful for document classes that want such information as the title
12125  and author to appear in the preamble.
12126  Note that this works only for styles for which the 
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 LatexType
12132 \end_layout
12133
12134 \end_inset
12135
12136  is 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 Command
12142 \end_layout
12143
12144 \end_inset
12145
12146  or 
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 Paragraph
12152 \end_layout
12153
12154 \end_inset
12155
12156 .
12157 \end_layout
12158
12159 \begin_layout Description
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 InTitle
12165 \end_layout
12166
12167 \end_inset
12168
12169  [
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174
12175 \emph on
12176 0
12177 \end_layout
12178
12179 \end_inset
12180
12181 ,
12182 \begin_inset space \thinspace{}
12183 \end_inset
12184
12185
12186 \begin_inset Flex Code
12187 status collapsed
12188
12189 \begin_layout Plain Layout
12190 1
12191 \end_layout
12192
12193 \end_inset
12194
12195 ] If 
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 1
12201 \end_layout
12202
12203 \end_inset
12204
12205 , marks the style as being part of a title block (see also the 
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 TitleLatexType
12211 \end_layout
12212
12213 \end_inset
12214
12215  and 
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 TitleLatexName
12221 \end_layout
12222
12223 \end_inset
12224
12225  global entries).
12226 \end_layout
12227
12228 \begin_layout Description
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 ItemCommand
12234 \end_layout
12235
12236 \end_inset
12237
12238  [
12239 \begin_inset Flex Code
12240 status collapsed
12241
12242 \begin_layout Plain Layout
12243 string="item"
12244 \end_layout
12245
12246 \end_inset
12247
12248 ] The \SpecialChar LaTeX
12249  command sequence declaring an item in a list.
12250  The command is to be defined without the preceding backslash (the default
12251  is 
12252 \begin_inset Quotes eld
12253 \end_inset
12254
12255 item
12256 \begin_inset Quotes erd
12257 \end_inset
12258
12259 , resulting in 
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264
12265 \backslash
12266 item
12267 \end_layout
12268
12269 \end_inset
12270
12271  in the \SpecialChar LaTeX
12272  output).
12273 \end_layout
12274
12275 \begin_layout Description
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280 ItemSep
12281 \end_layout
12282
12283 \end_inset
12284
12285  [
12286 \begin_inset Flex Code
12287 status collapsed
12288
12289 \begin_layout Plain Layout
12290 float=0
12291 \end_layout
12292
12293 \end_inset
12294
12295 ] This provides extra space between paragraphs that have the same style.
12296  If you put other styles into an environment, each is separated with the
12297  environment's 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 ParSep
12303 \end_layout
12304
12305 \end_inset
12306
12307 .
12308  But the whole items of the environment are additionally separated with
12309  this 
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314 ItemSep
12315 \end_layout
12316
12317 \end_inset
12318
12319 .
12320  Note that this is a
12321 \emph on
12322  multiplier.
12323 \end_layout
12324
12325 \begin_layout Description
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 ItemTag
12331 \end_layout
12332
12333 \end_inset
12334
12335  [FIXME] (Used only with XML-type formats.)
12336 \end_layout
12337
12338 \begin_layout Description
12339 \begin_inset Flex Code
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343 KeepEmpty
12344 \end_layout
12345
12346 \end_inset
12347
12348  [
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353
12354 \emph on
12355 0
12356 \end_layout
12357
12358 \end_inset
12359
12360 ,
12361 \begin_inset space \thinspace{}
12362 \end_inset
12363
12364
12365 \begin_inset Flex Code
12366 status collapsed
12367
12368 \begin_layout Plain Layout
12369 1
12370 \end_layout
12371
12372 \end_inset
12373
12374 ] Usually \SpecialChar LyX
12375  does not allow you to leave a paragraph empty, since it would
12376  lead to empty \SpecialChar LaTeX
12377  output.
12378  There are some cases where this could be desirable however: in a letter
12379  template, the required fields can be provided as empty fields, so that
12380  people do not forget them; in some special classes, a style can be used
12381  as some kind of break, which does not contain actual text.
12382 \end_layout
12383
12384 \begin_layout Description
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 LabelBottomsep
12390 \end_layout
12391
12392 \end_inset
12393
12394  [
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 float=0
12400 \end_layout
12401
12402 \end_inset
12403
12404 ] The vertical space between the label and the text body.
12405  Only used for labels that are above the text body (
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 Top_Environment
12411 \end_layout
12412
12413 \end_inset
12414
12415  and
12416 \begin_inset Newline newline
12417 \end_inset
12418
12419
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 Centered_Top_Environment
12425 \end_layout
12426
12427 \end_inset
12428
12429 ).
12430 \end_layout
12431
12432 \begin_layout Description
12433 \begin_inset Flex Code
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437 LabelCounter
12438 \end_layout
12439
12440 \end_inset
12441
12442  [
12443 \begin_inset Flex Code
12444 status collapsed
12445
12446 \begin_layout Plain Layout
12447 string=""
12448 \end_layout
12449
12450 \end_inset
12451
12452 ] The name of the counter for automatic numbering.
12453  In order to have the counter appear with your label, you will need to reference
12454  it in the 
12455 \begin_inset Flex Code
12456 status collapsed
12457
12458 \begin_layout Plain Layout
12459
12460 \family typewriter
12461 LabelString
12462 \end_layout
12463
12464 \end_inset
12465
12466 .
12467  This will work with 
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 LabelType
12473 \end_layout
12474
12475 \end_inset
12476
12477 s, 
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 Static
12483 \end_layout
12484
12485 \end_inset
12486
12487
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 Above
12493 \end_layout
12494
12495 \end_inset
12496
12497  and 
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 Centered
12503 \end_layout
12504
12505 \end_inset
12506
12507 , at least.
12508 \begin_inset Newline newline
12509 \end_inset
12510
12511 This 
12512 \emph on
12513 may
12514 \emph default
12515  also be given if 
12516 \begin_inset Flex Code
12517 status collapsed
12518
12519 \begin_layout Plain Layout
12520 LabelType
12521 \end_layout
12522
12523 \end_inset
12524
12525  is 
12526 \begin_inset Flex Code
12527 status collapsed
12528
12529 \begin_layout Plain Layout
12530 Enumerate
12531 \end_layout
12532
12533 \end_inset
12534
12535 , though this case is a bit complicated.
12536  Suppose you declare 
12537 \begin_inset Quotes eld
12538 \end_inset
12539
12540
12541 \begin_inset Flex Code
12542 status collapsed
12543
12544 \begin_layout Plain Layout
12545 LabelCounter myenum
12546 \end_layout
12547
12548 \end_inset
12549
12550
12551 \begin_inset Quotes erd
12552 \end_inset
12553
12554 .
12555  Then the actual counters used are 
12556 \begin_inset Flex Code
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560 myenumi
12561 \end_layout
12562
12563 \end_inset
12564
12565
12566 \begin_inset Flex Code
12567 status collapsed
12568
12569 \begin_layout Plain Layout
12570 myenumii
12571 \end_layout
12572
12573 \end_inset
12574
12575
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 myenumiii
12581 \end_layout
12582
12583 \end_inset
12584
12585  and 
12586 \begin_inset Flex Code
12587 status collapsed
12588
12589 \begin_layout Plain Layout
12590 myenumiv
12591 \end_layout
12592
12593 \end_inset
12594
12595 , much as in \SpecialChar LaTeX
12596 .
12597  These counters must all be declared separately.
12598 \begin_inset Newline newline
12599 \end_inset
12600
12601 See 
12602 \begin_inset CommandInset ref
12603 LatexCommand ref
12604 reference "subsec:Counters"
12605
12606 \end_inset
12607
12608  for details on counters.
12609 \end_layout
12610
12611 \begin_layout Description
12612 \begin_inset Flex Code
12613 status collapsed
12614
12615 \begin_layout Plain Layout
12616 LabelFont
12617 \end_layout
12618
12619 \end_inset
12620
12621  The font used for the label.
12622  See 
12623 \begin_inset CommandInset ref
12624 LatexCommand ref
12625 reference "subsec:Font-description"
12626
12627 \end_inset
12628
12629 .
12630 \end_layout
12631
12632 \begin_layout Description
12633 \begin_inset Flex Code
12634 status collapsed
12635
12636 \begin_layout Plain Layout
12637 LabelIndent
12638 \end_layout
12639
12640 \end_inset
12641
12642  [
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 string=""
12648 \end_layout
12649
12650 \end_inset
12651
12652 ] Text that indicates how far a label should be indented.
12653 \end_layout
12654
12655 \begin_layout Description
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 LabelSep
12661 \end_layout
12662
12663 \end_inset
12664
12665  [
12666 \begin_inset Flex Code
12667 status collapsed
12668
12669 \begin_layout Plain Layout
12670 string=""
12671 \end_layout
12672
12673 \end_inset
12674
12675 ] Text that indicates the amount of horizontal space between the label and
12676  the text body.
12677  Only used for labels that are not above the text body.
12678 \end_layout
12679
12680 \begin_layout Description
12681 \begin_inset Flex Code
12682 status collapsed
12683
12684 \begin_layout Plain Layout
12685 LabelString
12686 \end_layout
12687
12688 \end_inset
12689
12690  [
12691 \begin_inset Flex Code
12692 status collapsed
12693
12694 \begin_layout Plain Layout
12695 string=""
12696 \end_layout
12697
12698 \end_inset
12699
12700 ] The string used for the label.
12701  When 
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 LabelCounter
12707 \end_layout
12708
12709 \end_inset
12710
12711  is set, this string can be contain the special formatting commands described
12712  in 
12713 \begin_inset CommandInset ref
12714 LatexCommand ref
12715 reference "subsec:Counters"
12716
12717 \end_inset
12718
12719 .
12720 \end_layout
12721
12722 \begin_layout Description
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 LabelStringAppendix
12728 \end_layout
12729
12730 \end_inset
12731
12732  [
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737 string=""
12738 \end_layout
12739
12740 \end_inset
12741
12742 ] This is used inside the appendix instead of
12743 \begin_inset Newline newline
12744 \end_inset
12745
12746
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751 LabelString
12752 \end_layout
12753
12754 \end_inset
12755
12756 .
12757  Note that every 
12758 \begin_inset Flex Code
12759 status collapsed
12760
12761 \begin_layout Plain Layout
12762 LabelString
12763 \end_layout
12764
12765 \end_inset
12766
12767  statement resets
12768 \begin_inset Newline newline
12769 \end_inset
12770
12771
12772 \begin_inset Flex Code
12773 status collapsed
12774
12775 \begin_layout Plain Layout
12776 LabelStringAppendix
12777 \end_layout
12778
12779 \end_inset
12780
12781  too.
12782 \end_layout
12783
12784 \begin_layout Description
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 LabelTag
12790 \end_layout
12791
12792 \end_inset
12793
12794  [FIXME] (Used only with XML-type formats.)
12795 \end_layout
12796
12797 \begin_layout Description
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 LabelType
12803 \end_layout
12804
12805 \end_inset
12806
12807  [
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812
12813 \emph on
12814 No_Label
12815 \emph default
12816 , Manual, Static, Above, 
12817 \begin_inset Newline newline
12818 \end_inset
12819
12820 Centered, Sensitive, Enumerate,
12821 \begin_inset Newline newline
12822 \end_inset
12823
12824 Itemize, Bibliography
12825 \end_layout
12826
12827 \end_inset
12828
12829 ]
12830 \begin_inset Separator parbreak
12831 \end_inset
12832
12833
12834 \end_layout
12835
12836 \begin_deeper
12837 \begin_layout Description
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 Manual
12843 \end_layout
12844
12845 \end_inset
12846
12847  means the label is the very first word (up to the first real blank).
12848  Use protected spaces if you want more than one word as the label.
12849  
12850 \end_layout
12851
12852 \begin_layout Description
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 Static
12858 \end_layout
12859
12860 \end_inset
12861
12862  means the label is simply what is declared as 
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867 LabelString
12868 \end_layout
12869
12870 \end_inset
12871
12872 .
12873  This will be displayed 
12874 \begin_inset Quotes eld
12875 \end_inset
12876
12877 inline
12878 \begin_inset Quotes erd
12879 \end_inset
12880
12881 , at the beginning of the paragraph.
12882  If the 
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 LatexType
12888 \end_layout
12889
12890 \end_inset
12891
12892  is 
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 Environment
12898 \end_layout
12899
12900 \end_inset
12901
12902 , then it will be displayed only in the first paragraph of any sequence
12903  of paragraphs with the same 
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Style
12909 \end_layout
12910
12911 \end_inset
12912
12913 .
12914 \end_layout
12915
12916 \begin_layout Description
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 Above
12922 \end_layout
12923
12924 \end_inset
12925
12926
12927 \begin_inset space ~
12928 \end_inset
12929
12930 and
12931 \begin_inset space ~
12932 \end_inset
12933
12934
12935 \begin_inset Flex Code
12936 status collapsed
12937
12938 \begin_layout Plain Layout
12939 Centered
12940 \end_layout
12941
12942 \end_inset
12943
12944  are special cases of 
12945 \begin_inset Flex Code
12946 status collapsed
12947
12948 \begin_layout Plain Layout
12949 Static
12950 \end_layout
12951
12952 \end_inset
12953
12954 .
12955  The label will be printed above the paragraph either at the beginning of
12956  the line or centered.
12957 \end_layout
12958
12959 \begin_layout Description
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 Sensitive
12965 \end_layout
12966
12967 \end_inset
12968
12969  is a special case for the caption-labels 
12970 \begin_inset Quotes eld
12971 \end_inset
12972
12973 Figure
12974 \begin_inset Quotes erd
12975 \end_inset
12976
12977  and 
12978 \begin_inset Quotes eld
12979 \end_inset
12980
12981 Table
12982 \begin_inset Quotes erd
12983 \end_inset
12984
12985 .
12986 \begin_inset Newline newline
12987 \end_inset
12988
12989
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 Sensitive
12995 \end_layout
12996
12997 \end_inset
12998
12999  means the (hardcoded) label string depends on the kind of float: It is
13000  hardcoded to be `FloatType N', where N is the value of the counter associated
13001  with the float.
13002  For the case that a caption is inserted outside of a float the 
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 LabelString
13008 \end_layout
13009
13010 \end_inset
13011
13012  will appear as 
13013 \begin_inset Quotes eld
13014 \end_inset
13015
13016 Senseless!
13017 \begin_inset Quotes erd
13018 \end_inset
13019
13020 .
13021 \end_layout
13022
13023 \begin_layout Description
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 Enumerate
13029 \end_layout
13030
13031 \end_inset
13032
13033  produces the usual sort of enumeration labels.
13034  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13035  small Roman numerals, and uppercase letters for the four possible depths.
13036 \end_layout
13037
13038 \begin_layout Description
13039 \begin_inset Flex Code
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043 Itemize
13044 \end_layout
13045
13046 \end_inset
13047
13048  produces various bullets at the different levels.
13049  It is also hardcoded.
13050 \end_layout
13051
13052 \begin_layout Description
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057 Bibliography
13058 \end_layout
13059
13060 \end_inset
13061
13062  should be used only with 
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067 LatexType BibEnvironment
13068 \end_layout
13069
13070 \end_inset
13071
13072 .
13073 \end_layout
13074
13075 \end_deeper
13076 \begin_layout Description
13077 \begin_inset Flex Code
13078 status collapsed
13079
13080 \begin_layout Plain Layout
13081 LangPreamble
13082 \end_layout
13083
13084 \end_inset
13085
13086  Note that this will completely override any prior 
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 LangPreamble
13092 \end_layout
13093
13094 \end_inset
13095
13096  declaration for this style.
13097  Must end with 
13098 \begin_inset Quotes eld
13099 \end_inset
13100
13101
13102 \begin_inset Flex Code
13103 status collapsed
13104
13105 \begin_layout Plain Layout
13106 EndLangPreamble
13107 \end_layout
13108
13109 \end_inset
13110
13111
13112 \begin_inset Quotes erd
13113 \end_inset
13114
13115 .
13116  See 
13117 \begin_inset CommandInset ref
13118 LatexCommand ref
13119 reference "subsec:I18n"
13120
13121 \end_inset
13122
13123  for details on its use.
13124 \end_layout
13125
13126 \begin_layout Description
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 LatexName
13132 \end_layout
13133
13134 \end_inset
13135
13136  [
13137 \begin_inset Flex Code
13138 status collapsed
13139
13140 \begin_layout Plain Layout
13141 <name>
13142 \end_layout
13143
13144 \end_inset
13145
13146 ] The name of the corresponding \SpecialChar LaTeX
13147  stuff.
13148  Either the environment or command name.
13149 \end_layout
13150
13151 \begin_layout Description
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 LatexParam
13157 \end_layout
13158
13159 \end_inset
13160
13161  [
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 <parameter>
13167 \end_layout
13168
13169 \end_inset
13170
13171 ] An optional parameter for the corresponding 
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176 LatexName
13177 \end_layout
13178
13179 \end_inset
13180
13181  stuff.
13182  This parameter cannot be changed from within \SpecialChar LyX
13183  (use 
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188 Argument
13189 \end_layout
13190
13191 \end_inset
13192
13193  for customizable parameters).
13194  This will be output as is after all \SpecialChar LaTeX
13195  
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 Argument
13201 \end_layout
13202
13203 \end_inset
13204
13205 s.
13206 \end_layout
13207
13208 \begin_layout Description
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 LatexType
13214 \end_layout
13215
13216 \end_inset
13217
13218  [
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223
13224 \emph on
13225 Paragraph
13226 \emph default
13227 , Command, Environment, Item_Environment,
13228 \begin_inset Newline newline
13229 \end_inset
13230
13231 List_Environment, Bib_Environment
13232 \end_layout
13233
13234 \end_inset
13235
13236 ] How the style should be translated into \SpecialChar LaTeX
13237 .
13238 \begin_inset Foot
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 LatexType
13247 \end_layout
13248
13249 \end_inset
13250
13251  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13252  Visit the SGML class files for specific examples.
13253 \end_layout
13254
13255 \end_inset
13256
13257
13258 \begin_inset Separator parbreak
13259 \end_inset
13260
13261
13262 \end_layout
13263
13264 \begin_deeper
13265 \begin_layout Description
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 Paragraph
13271 \end_layout
13272
13273 \end_inset
13274
13275  means nothing special.
13276 \end_layout
13277
13278 \begin_layout Description
13279 \begin_inset Flex Code
13280 status collapsed
13281
13282 \begin_layout Plain Layout
13283 Command
13284 \end_layout
13285
13286 \end_inset
13287
13288  means 
13289 \begin_inset Flex Code
13290 status collapsed
13291
13292 \begin_layout Plain Layout
13293
13294 \backslash
13295
13296 \emph on
13297 LatexName
13298 \emph default
13299 {\SpecialChar ldots
13300 }
13301 \end_layout
13302
13303 \end_inset
13304
13305 .
13306 \end_layout
13307
13308 \begin_layout Description
13309 \begin_inset Flex Code
13310 status collapsed
13311
13312 \begin_layout Plain Layout
13313 Environment
13314 \end_layout
13315
13316 \end_inset
13317
13318  means 
13319 \begin_inset Flex Code
13320 status collapsed
13321
13322 \begin_layout Plain Layout
13323
13324 \backslash
13325 begin{
13326 \emph on
13327 LatexName
13328 \emph default
13329 }\SpecialChar ldots
13330
13331 \backslash
13332 end{
13333 \emph on
13334 LatexName
13335 \emph default
13336 }
13337 \end_layout
13338
13339 \end_inset
13340
13341 .
13342  
13343 \end_layout
13344
13345 \begin_layout Description
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 Item_Environment
13351 \end_layout
13352
13353 \end_inset
13354
13355  is the same as 
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 Environment
13361 \end_layout
13362
13363 \end_inset
13364
13365 , except that an 
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370
13371 \backslash
13372 item
13373 \end_layout
13374
13375 \end_inset
13376
13377  is generated for each paragraph of this environment.
13378  
13379 \end_layout
13380
13381 \begin_layout Description
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 List_Environment
13387 \end_layout
13388
13389 \end_inset
13390
13391  is the same as 
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 Item_Environment
13397 \end_layout
13398
13399 \end_inset
13400
13401 , except that
13402 \begin_inset Newline newline
13403 \end_inset
13404
13405
13406 \begin_inset Flex Code
13407 status collapsed
13408
13409 \begin_layout Plain Layout
13410 LabelWidthString
13411 \end_layout
13412
13413 \end_inset
13414
13415  is passed as an argument to the environment.
13416 \begin_inset Newline newline
13417 \end_inset
13418
13419
13420 \begin_inset Flex Code
13421 status collapsed
13422
13423 \begin_layout Plain Layout
13424 LabelWidthString
13425 \end_layout
13426
13427 \end_inset
13428
13429  can be defined in the 
13430 \begin_inset Flex MenuItem
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 Edit\SpecialChar menuseparator
13435 Paragraph
13436 \begin_inset space ~
13437 \end_inset
13438
13439 settings
13440 \end_layout
13441
13442 \end_inset
13443
13444  dialog.
13445 \end_layout
13446
13447 \begin_layout Description
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 Bib_Environment
13453 \end_layout
13454
13455 \end_inset
13456
13457  is like 
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 Environment
13463 \end_layout
13464
13465 \end_inset
13466
13467  but adds additionally the necessary mandatory argument (the longest label)
13468  to the begin statement of the bibliography environment:
13469 \begin_inset Newline newline
13470 \end_inset
13471
13472
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477
13478 \backslash
13479 begin{thebibliography}{99}
13480 \end_layout
13481
13482 \end_inset
13483
13484  It is therefore only useful for bibliography environments.
13485  The default longest label 
13486 \begin_inset Quotes eld
13487 \end_inset
13488
13489 99
13490 \begin_inset Quotes erd
13491 \end_inset
13492
13493  can be changed by the user in the paragraph settings of a bibliography
13494  item.
13495 \end_layout
13496
13497 \begin_layout Standard
13498 Putting the last few things together, the \SpecialChar LaTeX
13499  output will be either: 
13500 \end_layout
13501
13502 \begin_layout LyX-Code
13503
13504 \backslash
13505 LatexName[LatexParam]{\SpecialChar ldots
13506 }
13507 \end_layout
13508
13509 \begin_layout Standard
13510 or: 
13511 \end_layout
13512
13513 \begin_layout LyX-Code
13514
13515 \backslash
13516 begin{LatexName}[LatexParam] \SpecialChar ldots
13517  
13518 \backslash
13519 end{LatexName}.
13520 \end_layout
13521
13522 \begin_layout Standard
13523 depending upon the \SpecialChar LaTeX
13524  type.
13525 \end_layout
13526
13527 \end_deeper
13528 \begin_layout Description
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 LeftDelim
13534 \end_layout
13535
13536 \end_inset
13537
13538  [
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 string
13544 \end_layout
13545
13546 \end_inset
13547
13548 ] A string that is put at the beginning of the style content.
13549  A line break in the output can be indicated by 
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 <br/>
13555 \end_layout
13556
13557 \end_inset
13558
13559 .
13560 \end_layout
13561
13562 \begin_layout Description
13563 \begin_inset Flex Code
13564 status collapsed
13565
13566 \begin_layout Plain Layout
13567 LeftMargin
13568 \end_layout
13569
13570 \end_inset
13571
13572  [
13573 \begin_inset Flex Code
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577 string=""
13578 \end_layout
13579
13580 \end_inset
13581
13582 ] If you put styles into environments, the different 
13583 \begin_inset Flex Code
13584 status collapsed
13585
13586 \begin_layout Plain Layout
13587 LeftMargin
13588 \end_layout
13589
13590 \end_inset
13591
13592  are not simply added, but added with a factor 
13593 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13594 \end_inset
13595
13596 .
13597  Note that this parameter is also used when 
13598 \begin_inset Flex Code
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602 Margin
13603 \end_layout
13604
13605 \end_inset
13606
13607  is defined as 
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 Manual
13613 \end_layout
13614
13615 \end_inset
13616
13617  or 
13618 \begin_inset Flex Code
13619 status collapsed
13620
13621 \begin_layout Plain Layout
13622 Dynamic
13623 \end_layout
13624
13625 \end_inset
13626
13627 .
13628  Then it is added to the manual or dynamic margin.
13629 \begin_inset Newline newline
13630 \end_inset
13631
13632 For example 
13633 \begin_inset Quotes eld
13634 \end_inset
13635
13636
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641 MM
13642 \end_layout
13643
13644 \end_inset
13645
13646
13647 \begin_inset Quotes erd
13648 \end_inset
13649
13650  means that the paragraph is indented with the width of 
13651 \begin_inset Quotes eld
13652 \end_inset
13653
13654
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659 MM
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \begin_inset Quotes erd
13666 \end_inset
13667
13668  in the normal font.
13669  You can get a negative width by prefixing the string with 
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 -
13679 \end_layout
13680
13681 \end_inset
13682
13683
13684 \begin_inset Quotes erd
13685 \end_inset
13686
13687 .
13688  This way was chosen so that the look is the same with each used screen
13689  font.
13690 \end_layout
13691
13692 \begin_layout Description
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 Margin
13698 \end_layout
13699
13700 \end_inset
13701
13702  [
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707
13708 \emph on
13709 Static
13710 \emph default
13711 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13712 \end_layout
13713
13714 \end_inset
13715
13716
13717 \begin_inset Newline newline
13718 \end_inset
13719
13720 The kind of margin that the style has on the left side.
13721 \begin_inset Separator parbreak
13722 \end_inset
13723
13724
13725 \end_layout
13726
13727 \begin_deeper
13728 \begin_layout Description
13729 \begin_inset Flex Code
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733 Static
13734 \end_layout
13735
13736 \end_inset
13737
13738  just means a fixed margin.
13739 \end_layout
13740
13741 \begin_layout Description
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 Manual
13747 \end_layout
13748
13749 \end_inset
13750
13751  means that the left margin depends on the string entered in the 
13752 \begin_inset Flex MenuItem
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 Edit\SpecialChar menuseparator
13757 Paragraph
13758 \begin_inset space ~
13759 \end_inset
13760
13761 Settings
13762 \end_layout
13763
13764 \end_inset
13765
13766  dialog.
13767  This is used to typeset nice lists without tabulators.
13768 \end_layout
13769
13770 \begin_layout Description
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 Dynamic
13776 \end_layout
13777
13778 \end_inset
13779
13780  means that the margin depends on the size of the label.
13781  This is used for automatic enumerated headlines.
13782  It is obvious that the headline 
13783 \begin_inset Quotes eld
13784 \end_inset
13785
13786 5.4.3.2.1 Very long headline
13787 \begin_inset Quotes erd
13788 \end_inset
13789
13790  must have a wider left margin (as wide as 
13791 \begin_inset Quotes eld
13792 \end_inset
13793
13794 5.4.3.2.1
13795 \begin_inset Quotes erd
13796 \end_inset
13797
13798  plus the space) than 
13799 \begin_inset Quotes eld
13800 \end_inset
13801
13802 3.2 Very long headline
13803 \begin_inset Quotes erd
13804 \end_inset
13805
13806 , even if standard 
13807 \begin_inset Quotes eld
13808 \end_inset
13809
13810 word processors
13811 \begin_inset Quotes erd
13812 \end_inset
13813
13814  are not able to do this.
13815 \end_layout
13816
13817 \begin_layout Description
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822 First_Dynamic
13823 \end_layout
13824
13825 \end_inset
13826
13827  is similar, but only the very first row of the paragraph is dynamic, while
13828  the others are static; this is used, for example, for descriptions.
13829 \end_layout
13830
13831 \begin_layout Description
13832 \begin_inset Flex Code
13833 status collapsed
13834
13835 \begin_layout Plain Layout
13836 Right_Address_Box
13837 \end_layout
13838
13839 \end_inset
13840
13841  means the margin is chosen in a way that the longest row of this paragraph
13842  fits to the right margin.
13843  This is used to typeset an address on the right edge of the page.
13844 \end_layout
13845
13846 \end_deeper
13847 \begin_layout Description
13848 \begin_inset Flex Code
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 NeedProtect
13853 \end_layout
13854
13855 \end_inset
13856
13857  [
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862
13863 \emph on
13864 0
13865 \end_layout
13866
13867 \end_inset
13868
13869 ,
13870 \begin_inset space \thinspace{}
13871 \end_inset
13872
13873
13874 \begin_inset Flex Code
13875 status collapsed
13876
13877 \begin_layout Plain Layout
13878 1
13879 \end_layout
13880
13881 \end_inset
13882
13883 ] Whether fragile commands in this style should be 
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888
13889 \backslash
13890 protect
13891 \end_layout
13892
13893 \end_inset
13894
13895 'ed.
13896  (Note: This is 
13897 \emph on
13898 not
13899 \emph default
13900  whether this command should itself be protected.)
13901 \end_layout
13902
13903 \begin_layout Description
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 Newline
13909 \end_layout
13910
13911 \end_inset
13912
13913  [
13914 \begin_inset Flex Code
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918 0
13919 \end_layout
13920
13921 \end_inset
13922
13923 ,
13924 \begin_inset space \thinspace{}
13925 \end_inset
13926
13927
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932
13933 \emph on
13934 1
13935 \end_layout
13936
13937 \end_inset
13938
13939 ] Whether newlines are translated into \SpecialChar LaTeX
13940  newlines (
13941 \begin_inset Flex Code
13942 status collapsed
13943
13944 \begin_layout Plain Layout
13945
13946 \backslash
13947
13948 \backslash
13949
13950 \end_layout
13951
13952 \end_inset
13953
13954 ) or not.
13955  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
13956  editing
13957  inside \SpecialChar LyX
13958 .
13959 \end_layout
13960
13961 \begin_layout Description
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 NextNoIndent
13967 \end_layout
13968
13969 \end_inset
13970
13971  [
13972 \begin_inset Flex Code
13973 status collapsed
13974
13975 \begin_layout Plain Layout
13976
13977 \emph on
13978 0
13979 \end_layout
13980
13981 \end_inset
13982
13983 ,
13984 \begin_inset space \thinspace{}
13985 \end_inset
13986
13987
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 1
13993 \end_layout
13994
13995 \end_inset
13996
13997 ] If set to true, and if 
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 DefaultStyle
14003 \end_layout
14004
14005 \end_inset
14006
14007  (usually 
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 Standard
14013 \end_layout
14014
14015 \end_inset
14016
14017 ) paragraphs are being indented, then the indentation of such a paragraph
14018  following one of this type will be suppressed.
14019  (So this will not affect the display of non-default paragraphs.)
14020 \end_layout
14021
14022 \begin_layout Description
14023 \begin_inset Flex Code
14024 status collapsed
14025
14026 \begin_layout Plain Layout
14027 ObsoletedBy
14028 \end_layout
14029
14030 \end_inset
14031
14032  [
14033 \begin_inset Flex Code
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 <name>
14038 \end_layout
14039
14040 \end_inset
14041
14042 ] Name of a style that has replaced this style.
14043  This is used to rename a style, while keeping backward compatibility.
14044 \end_layout
14045
14046 \begin_layout Description
14047 \begin_inset Flex Code
14048 status collapsed
14049
14050 \begin_layout Plain Layout
14051 ParagraphGroup
14052 \end_layout
14053
14054 \end_inset
14055
14056  [
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061 0
14062 \end_layout
14063
14064 \end_inset
14065
14066 ,
14067 \begin_inset space \thinspace{}
14068 \end_inset
14069
14070
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075 1
14076 \end_layout
14077
14078 \end_inset
14079
14080 ] Determines whether consecutive pragraphs of the same type are treated
14081  as belonging together.
14082  This has the effect that the 
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 GuiLabel
14088 \end_layout
14089
14090 \end_inset
14091
14092  is only printed once before such a group.
14093  By default, this is true for 
14094 \begin_inset Flex Code
14095 status collapsed
14096
14097 \begin_layout Plain Layout
14098 LaTeXType
14099 \end_layout
14100
14101 \end_inset
14102
14103  
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 Environment
14109 \end_layout
14110
14111 \end_inset
14112
14113  and 
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 Bib_Environment
14119 \end_layout
14120
14121 \end_inset
14122
14123  and false for all other types.
14124 \end_layout
14125
14126 \begin_layout Description
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 ParbreakIsNewline
14132 \end_layout
14133
14134 \end_inset
14135
14136  [
14137 \begin_inset Flex Code
14138 status collapsed
14139
14140 \begin_layout Plain Layout
14141
14142 \emph on
14143 0
14144 \end_layout
14145
14146 \end_inset
14147
14148 ,
14149 \begin_inset space \thinspace{}
14150 \end_inset
14151
14152
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 1
14158 \end_layout
14159
14160 \end_inset
14161
14162 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14163  output,
14164  but only by a line break; together with 
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 PassThru 1
14170 \end_layout
14171
14172 \end_inset
14173
14174 , this allows to emulate a plain text editor (like the ERT inset).
14175 \end_layout
14176
14177 \begin_layout Description
14178 \begin_inset Flex Code
14179 status collapsed
14180
14181 \begin_layout Plain Layout
14182 ParIndent
14183 \end_layout
14184
14185 \end_inset
14186
14187  [
14188 \begin_inset Flex Code
14189 status collapsed
14190
14191 \begin_layout Plain Layout
14192 string=""
14193 \end_layout
14194
14195 \end_inset
14196
14197 ] The indent of the very first line of a paragraph.
14198  The
14199 \begin_inset Newline newline
14200 \end_inset
14201
14202
14203 \begin_inset Flex Code
14204 status collapsed
14205
14206 \begin_layout Plain Layout
14207 Parindent
14208 \end_layout
14209
14210 \end_inset
14211
14212  will be fixed for a certain style.
14213  The exception is the default style, since the indentation for these paragraphs
14214  can be prohibited with 
14215 \begin_inset Flex Code
14216 status collapsed
14217
14218 \begin_layout Plain Layout
14219 NextNoIndent
14220 \end_layout
14221
14222 \end_inset
14223
14224 .
14225  Also, 
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 Standard
14231 \end_layout
14232
14233 \end_inset
14234
14235  style paragraphs inside environments use the 
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 Parindent
14241 \end_layout
14242
14243 \end_inset
14244
14245  of the environment, not their native one.
14246  For example, 
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 Standard
14252 \end_layout
14253
14254 \end_inset
14255
14256  paragraphs inside an enumeration are not indented.
14257 \end_layout
14258
14259 \begin_layout Description
14260 \begin_inset Flex Code
14261 status collapsed
14262
14263 \begin_layout Plain Layout
14264 ParSep
14265 \end_layout
14266
14267 \end_inset
14268
14269  [
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 float=0
14275 \end_layout
14276
14277 \end_inset
14278
14279 ] The vertical space between two paragraphs of this style.
14280 \end_layout
14281
14282 \begin_layout Description
14283 \begin_inset Flex Code
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287 Parskip
14288 \end_layout
14289
14290 \end_inset
14291
14292  [
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 float=0
14298 \end_layout
14299
14300 \end_inset
14301
14302 ] \SpecialChar LyX
14303  allows the user to choose either 
14304 \begin_inset Quotes eld
14305 \end_inset
14306
14307 indent
14308 \begin_inset Quotes erd
14309 \end_inset
14310
14311  or 
14312 \begin_inset Quotes eld
14313 \end_inset
14314
14315 skip
14316 \begin_inset Quotes erd
14317 \end_inset
14318
14319  to separate paragraphs.
14320  When 
14321 \begin_inset Quotes eld
14322 \end_inset
14323
14324 indent
14325 \begin_inset Quotes erd
14326 \end_inset
14327
14328  is chosen, 
14329 \begin_inset Flex Code
14330 status collapsed
14331
14332 \begin_layout Plain Layout
14333 Parskip
14334 \end_layout
14335
14336 \end_inset
14337
14338  is ignored.
14339  When 
14340 \begin_inset Quotes eld
14341 \end_inset
14342
14343 skip
14344 \begin_inset Quotes erd
14345 \end_inset
14346
14347  is chosen, 
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352 ParIndent
14353 \end_layout
14354
14355 \end_inset
14356
14357  is ignored and all paragraphs are separated by the 
14358 \begin_inset Flex Code
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362 Parskip
14363 \end_layout
14364
14365 \end_inset
14366
14367  argument.
14368  The vertical space is calculated with 
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 Parskip
14374 \begin_inset space ~
14375 \end_inset
14376
14377 * DefaultHeight
14378 \end_layout
14379
14380 \end_inset
14381
14382  where 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 DefaultHeight
14388 \end_layout
14389
14390 \end_inset
14391
14392  is the height of a row with the normal font.
14393  This way, the look stays the same with different screen fonts.
14394 \end_layout
14395
14396 \begin_layout Description
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 PassThru
14402 \end_layout
14403
14404 \end_inset
14405
14406  [
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411
14412 \emph on
14413 0
14414 \end_layout
14415
14416 \end_inset
14417
14418 ,
14419 \begin_inset space \thinspace{}
14420 \end_inset
14421
14422
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 1
14428 \end_layout
14429
14430 \end_inset
14431
14432 ] Whether the contents of this paragraph should be output in raw form, meaning
14433  without special translations that \SpecialChar LaTeX
14434  would require.
14435 \end_layout
14436
14437 \begin_layout Description
14438 \begin_inset Flex Code
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442 PassThruChars
14443 \end_layout
14444
14445 \end_inset
14446
14447  [
14448 \begin_inset Flex Code
14449 status collapsed
14450
14451 \begin_layout Plain Layout
14452 string
14453 \end_layout
14454
14455 \end_inset
14456
14457 ]
14458 \family typewriter
14459  
14460 \family default
14461 Defines individual characters that should be output in raw form, meaning
14462  without special translations that \SpecialChar LaTeX
14463  would require.
14464 \end_layout
14465
14466 \begin_layout Description
14467 \begin_inset Flex Code
14468 status collapsed
14469
14470 \begin_layout Plain Layout
14471 Preamble
14472 \end_layout
14473
14474 \end_inset
14475
14476  Information to be included in the \SpecialChar LaTeX
14477  preamble when this style is used.
14478  Used to define macros, load packages, etc., required by this particular
14479  style.
14480  Must end with 
14481 \begin_inset Quotes eld
14482 \end_inset
14483
14484
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 EndPreamble
14490 \end_layout
14491
14492 \end_inset
14493
14494
14495 \begin_inset Quotes erd
14496 \end_inset
14497
14498 .
14499 \end_layout
14500
14501 \begin_layout Description
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 RefPrefix
14507 \end_layout
14508
14509 \end_inset
14510
14511  [
14512 \begin_inset Flex Code
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 string
14517 \end_layout
14518
14519 \end_inset
14520
14521 ] The prefix to use when creating labels referring to paragraphs of this
14522  type.
14523  This allows the use of formatted references.
14524 \end_layout
14525
14526 \begin_layout Description
14527 \begin_inset Flex Code
14528 status collapsed
14529
14530 \begin_layout Plain Layout
14531 Requires 
14532 \end_layout
14533
14534 \end_inset
14535
14536  [
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 string
14542 \end_layout
14543
14544 \end_inset
14545
14546 ] Whether the style requires the feature 
14547 \begin_inset Flex Code
14548 status collapsed
14549
14550 \begin_layout Plain Layout
14551 string
14552 \end_layout
14553
14554 \end_inset
14555
14556  (see 
14557 \begin_inset CommandInset ref
14558 LatexCommand ref
14559 reference "chap:List-of-functions"
14560
14561 \end_inset
14562
14563  for the list of features).
14564  If you require a package with specific options, you can additionally use
14565  
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570 PackageOptions
14571 \end_layout
14572
14573 \end_inset
14574
14575  as a general text class parameter (see 
14576 \begin_inset CommandInset ref
14577 LatexCommand ref
14578 reference "subsec:General-text-class"
14579
14580 \end_inset
14581
14582 ).
14583 \end_layout
14584
14585 \begin_layout Description
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 ResetArgs
14591 \end_layout
14592
14593 \end_inset
14594
14595  [
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600
14601 \emph on
14602 0
14603 \end_layout
14604
14605 \end_inset
14606
14607 ,
14608 \begin_inset Flex Code
14609 status collapsed
14610
14611 \begin_layout Plain Layout
14612 1
14613 \end_layout
14614
14615 \end_inset
14616
14617 ] Resets the \SpecialChar LaTeX
14618  arguments of this style (as defined via the 
14619 \begin_inset Flex Code
14620 status collapsed
14621
14622 \begin_layout Plain Layout
14623 Argument
14624 \end_layout
14625
14626 \end_inset
14627
14628  tag).
14629  This is useful if you have copied a style via 
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 CopyStyle
14635 \end_layout
14636
14637 \end_inset
14638
14639 , but you do not want to inherit its (required and optional) arguments.
14640 \end_layout
14641
14642 \begin_layout Description
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 RightDelim
14648 \end_layout
14649
14650 \end_inset
14651
14652  [
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 string
14658 \end_layout
14659
14660 \end_inset
14661
14662 ] A string that is put at the end of the layout content.
14663  A line break in the output can be indicated by 
14664 \begin_inset Flex Code
14665 status collapsed
14666
14667 \begin_layout Plain Layout
14668 <br/>
14669 \end_layout
14670
14671 \end_inset
14672
14673 .
14674 \end_layout
14675
14676 \begin_layout Description
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 RightMargin
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 ] Similar to 
14697 \begin_inset Flex Code
14698 status collapsed
14699
14700 \begin_layout Plain Layout
14701 LeftMargin
14702 \end_layout
14703
14704 \end_inset
14705
14706 .
14707 \end_layout
14708
14709 \begin_layout Description
14710 \begin_inset Flex Code
14711 status collapsed
14712
14713 \begin_layout Plain Layout
14714 Spacing
14715 \end_layout
14716
14717 \end_inset
14718
14719  [
14720 \begin_inset Flex Code
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724
14725 \emph on
14726 single
14727 \end_layout
14728
14729 \end_inset
14730
14731
14732 \begin_inset Flex Code
14733 status collapsed
14734
14735 \begin_layout Plain Layout
14736 onehalf
14737 \end_layout
14738
14739 \end_inset
14740
14741
14742 \begin_inset Flex Code
14743 status collapsed
14744
14745 \begin_layout Plain Layout
14746 double
14747 \end_layout
14748
14749 \end_inset
14750
14751
14752 \begin_inset Flex Code
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 other
14757 \begin_inset space ~
14758 \end_inset
14759
14760 <value>
14761 \end_layout
14762
14763 \end_inset
14764
14765 ] This defines what the default spacing should be in the style.
14766  The arguments 
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 single
14772 \end_layout
14773
14774 \end_inset
14775
14776
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781 onehalf
14782 \end_layout
14783
14784 \end_inset
14785
14786  and 
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 double
14792 \end_layout
14793
14794 \end_inset
14795
14796  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14797  If you specify the argument 
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 other
14803 \end_layout
14804
14805 \end_inset
14806
14807 , then you must also provide a value argument which will be the actual multiplie
14808 r value.
14809  Note that, contrary to other parameters, 
14810 \begin_inset Flex Code
14811 status collapsed
14812
14813 \begin_layout Plain Layout
14814 Spacing
14815 \end_layout
14816
14817 \end_inset
14818
14819  implies the generation of specific \SpecialChar LaTeX
14820  code, using the \SpecialChar LaTeX
14821  package 
14822 \family roman
14823
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 setspace
14829 \end_layout
14830
14831 \end_inset
14832
14833 .
14834 \end_layout
14835
14836 \begin_layout Description
14837 \begin_inset Flex Code
14838 status collapsed
14839
14840 \begin_layout Plain Layout
14841 Spellcheck
14842 \end_layout
14843
14844 \end_inset
14845
14846  [
14847 \begin_inset Flex Code
14848 status collapsed
14849
14850 \begin_layout Plain Layout
14851 0
14852 \end_layout
14853
14854 \end_inset
14855
14856 ,
14857 \begin_inset space \thinspace{}
14858 \end_inset
14859
14860
14861 \begin_inset Flex Code
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865
14866 \emph on
14867 1
14868 \end_layout
14869
14870 \end_inset
14871
14872 ] Allow spell-checking paragraphs of this style.
14873  Default is true.
14874 \end_layout
14875
14876 \begin_layout Description
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 TextFont
14882 \end_layout
14883
14884 \end_inset
14885
14886  The font used for the text body .
14887  See 
14888 \begin_inset CommandInset ref
14889 LatexCommand ref
14890 reference "subsec:Font-description"
14891
14892 \end_inset
14893
14894 .
14895 \end_layout
14896
14897 \begin_layout Description
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 TocLevel
14903 \end_layout
14904
14905 \end_inset
14906
14907
14908 \series medium
14909  [
14910 \begin_inset Flex Code
14911 status collapsed
14912
14913 \begin_layout Plain Layout
14914
14915 \series medium
14916 int=3
14917 \end_layout
14918
14919 \end_inset
14920
14921 ]
14922 \series default
14923  The level of the style in the table of contents.
14924  This is used for automatic numbering of section headings.
14925 \end_layout
14926
14927 \begin_layout Description
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 ToggleIndent
14933 \end_layout
14934
14935 \end_inset
14936
14937  [
14938 \emph on
14939
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944
14945 \emph on
14946 default
14947 \end_layout
14948
14949 \end_inset
14950
14951
14952 \emph default
14953
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 always
14959 \end_layout
14960
14961 \end_inset
14962
14963
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 never
14969 \end_layout
14970
14971 \end_inset
14972
14973 ] This tag determines whether the first line indentation of this paragraph
14974  can be toggled via the Paragraph settings dialog.
14975  If 
14976 \emph on
14977
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982
14983 \emph off
14984 default
14985 \end_layout
14986
14987 \end_inset
14988
14989
14990 \emph default
14991  is set, indentation can be toggled if the document settings use 
14992 \begin_inset Quotes eld
14993 \end_inset
14994
14995 indent
14996 \begin_inset Quotes erd
14997 \end_inset
14998
14999  paragraph style, with 
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 always
15005 \end_layout
15006
15007 \end_inset
15008
15009 , indentation can always be toggled, notwithstanding the document settings,
15010  with 
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 never
15016 \end_layout
15017
15018 \end_inset
15019
15020 , indentation can never be toggled.
15021 \end_layout
15022
15023 \begin_layout Description
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 TopSep
15029 \end_layout
15030
15031 \end_inset
15032
15033  [
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 float=0
15039 \end_layout
15040
15041 \end_inset
15042
15043 ] The vertical space with which the very first of a chain of paragraphs
15044  with this style is separated from the previous paragraph.
15045  If the previous paragraph has another style, the separations are not simply
15046  added, but the maximum is taken.
15047 \end_layout
15048
15049 \begin_layout Subsection
15050 \begin_inset CommandInset label
15051 LatexCommand label
15052 name "subsec:I18n"
15053
15054 \end_inset
15055
15056 Internationalization of Paragraph Styles
15057 \end_layout
15058
15059 \begin_layout Standard
15060 \SpecialChar LyX
15061  has long supported internationalization of layout information, but, until
15062  version 2.0, this applied only to the user interface and not to, say, PDF
15063  output.
15064  Thus, French authors were forced to resort to ugly hacks if they wanted
15065  `
15066 \lang french
15067 Théorème
15068 \lang english
15069  1' instead of `Theorem 1'.
15070  Thanks to Georg Baum, that is no longer the case.
15071 \end_layout
15072
15073 \begin_layout Standard
15074 If a 
15075 \begin_inset Flex Code
15076 status collapsed
15077
15078 \begin_layout Plain Layout
15079 Style
15080 \end_layout
15081
15082 \end_inset
15083
15084  defines text that is to appear in the typeset document, it may use 
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 LangPreamble
15090 \end_layout
15091
15092 \end_inset
15093
15094  and 
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 BabelPreamble
15100 \end_layout
15101
15102 \end_inset
15103
15104  to support non-English and even multi-language documents correctly.
15105  The following excerpt (from the 
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 theorems-ams.inc
15111 \end_layout
15112
15113 \end_inset
15114
15115  file) shows how this works:
15116 \end_layout
15117
15118 \begin_layout LyX-Code
15119 Preamble
15120 \begin_inset Separator parbreak
15121 \end_inset
15122
15123
15124 \end_layout
15125
15126 \begin_deeper
15127 \begin_layout LyX-Code
15128   
15129 \backslash
15130 theoremstyle{remark}
15131 \end_layout
15132
15133 \begin_layout LyX-Code
15134   
15135 \backslash
15136 newtheorem{claim}[thm]{
15137 \backslash
15138 protect
15139 \backslash
15140 claimname}
15141 \end_layout
15142
15143 \begin_layout LyX-Code
15144 EndPreamble
15145 \end_layout
15146
15147 \begin_layout LyX-Code
15148 LangPreamble
15149 \end_layout
15150
15151 \begin_layout LyX-Code
15152   
15153 \backslash
15154 providecommand{
15155 \backslash
15156 claimname}{_(Claim)}
15157 \end_layout
15158
15159 \begin_layout LyX-Code
15160 EndLangPreamble
15161 \end_layout
15162
15163 \begin_layout LyX-Code
15164 BabelPreamble
15165 \end_layout
15166
15167 \begin_layout LyX-Code
15168     
15169 \backslash
15170 addto
15171 \backslash
15172 captions$$lang{
15173 \backslash
15174 renewcommand{
15175 \backslash
15176 claimname}{_(Claim)}}
15177 \end_layout
15178
15179 \begin_layout LyX-Code
15180 EndBabelPreamble
15181 \end_layout
15182
15183 \end_deeper
15184 \begin_layout Standard
15185 In principle, any legal \SpecialChar LaTeX
15186  may appear in the 
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 LangPreamble
15192 \end_layout
15193
15194 \end_inset
15195
15196  and 
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201 BabelPreamble
15202 \end_layout
15203
15204 \end_inset
15205
15206  tags, but in practice they will typically look as they do here.
15207  The key to correct translation of the typeset text is the definition of
15208  the \SpecialChar LaTeX
15209  command 
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214
15215 \backslash
15216 claimname
15217 \end_layout
15218
15219 \end_inset
15220
15221  and its use in 
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226
15227 \backslash
15228 newtheorem
15229 \end_layout
15230
15231 \end_inset
15232
15233 .
15234  
15235 \end_layout
15236
15237 \begin_layout Standard
15238 The 
15239 \begin_inset Flex Code
15240 status collapsed
15241
15242 \begin_layout Plain Layout
15243 LangPreamble
15244 \end_layout
15245
15246 \end_inset
15247
15248  tag provides for internationalization based upon the overall language of
15249  the document.
15250  The contents of the tag will be included in the preamble, just as with
15251  the 
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 Preamble
15257 \end_layout
15258
15259 \end_inset
15260
15261  tag.
15262  What makes it special is the use of the 
15263 \begin_inset Quotes eld
15264 \end_inset
15265
15266 function
15267 \begin_inset Quotes erd
15268 \end_inset
15269
15270  
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 _()
15276 \end_layout
15277
15278 \end_inset
15279
15280 , which will be replaced, when \SpecialChar LyX
15281  produces \SpecialChar LaTeX
15282  output, with the translation of
15283  its argument into the document language.
15284 \end_layout
15285
15286 \begin_layout Standard
15287 The 
15288 \begin_inset Flex Code
15289 status collapsed
15290
15291 \begin_layout Plain Layout
15292 BabelPreamble
15293 \end_layout
15294
15295 \end_inset
15296
15297  tag is more complex, since it is meant to provide support for multi-language
15298  documents and so offers an interface to the 
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 babel
15304 \end_layout
15305
15306 \end_inset
15307
15308  package.
15309  Its contents will be added to the preamble once for each language that
15310  appears in the document.
15311  In this case, the argument to 
15312 \begin_inset Flex Code
15313 status collapsed
15314
15315 \begin_layout Plain Layout
15316 _()
15317 \end_layout
15318
15319 \end_inset
15320
15321  will be replaced with its translation into the language in question; the
15322  expression 
15323 \begin_inset Flex Code
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 $$lang
15328 \end_layout
15329
15330 \end_inset
15331
15332  is replaced by the language name (as used by the babel package).
15333 \end_layout
15334
15335 \begin_layout Standard
15336 A German document that also included a French section would thus have the
15337  following in the preamble:
15338 \end_layout
15339
15340 \begin_layout LyX-Code
15341
15342 \backslash
15343 addto
15344 \backslash
15345 captionsfrench{
15346 \backslash
15347 renewcommand{
15348 \backslash
15349 claimname}{Affirmation}}
15350 \begin_inset Newline newline
15351 \end_inset
15352
15353
15354 \backslash
15355 addto
15356 \backslash
15357 captionsngerman{
15358 \backslash
15359 renewcommand{
15360 \backslash
15361 claimname}{Behauptung}}
15362 \begin_inset Newline newline
15363 \end_inset
15364
15365
15366 \backslash
15367 providecommand{
15368 \backslash
15369 claimname}{Behauptung}
15370 \end_layout
15371
15372 \begin_layout Standard
15373 \SpecialChar LaTeX
15374  and 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 babel
15380 \end_layout
15381
15382 \end_inset
15383
15384  will then conspire to produce the correct text in the output.
15385 \end_layout
15386
15387 \begin_layout Standard
15388 One important point to note here is that the translations are provided by
15389  \SpecialChar LyX
15390  itself, through the file 
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395 layouttranslations
15396 \end_layout
15397
15398 \end_inset
15399
15400 .
15401  This means, in effect, that 
15402 \begin_inset Flex Code
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 LangPreamble
15407 \end_layout
15408
15409 \end_inset
15410
15411  and 
15412 \begin_inset Flex Code
15413 status collapsed
15414
15415 \begin_layout Plain Layout
15416 BabelPreamble
15417 \end_layout
15418
15419 \end_inset
15420
15421  are really only of use in layout files that are provided with \SpecialChar LyX
15422 , since text
15423  entered in user-created layout files will not be seen by \SpecialChar LyX
15424 's internationalizatio
15425 n routines unless the 
15426 \begin_inset Flex Code
15427 status collapsed
15428
15429 \begin_layout Plain Layout
15430 layouttranslations
15431 \end_layout
15432
15433 \end_inset
15434
15435  file is modified accordingly.
15436  That said, however, any layout created with the intention that it will
15437  be included with \SpecialChar LyX
15438  should use these tags where appropriate.
15439  Please note that the paragraph style translations provided by \SpecialChar LyX
15440  will never
15441  change with a minor update (e.
15442 \begin_inset space \thinspace{}
15443 \end_inset
15444
15445 g.
15446 \begin_inset space \space{}
15447 \end_inset
15448
15449 from version 2.1.x to 2.1.y).
15450  It is however quite likely that a major update (e.
15451 \begin_inset space \thinspace{}
15452 \end_inset
15453
15454 g.
15455 \begin_inset space \space{}
15456 \end_inset
15457
15458 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15459 \end_layout
15460
15461 \begin_layout Subsection
15462 Floats
15463 \begin_inset CommandInset label
15464 LatexCommand label
15465 name "subsec:Floats"
15466
15467 \end_inset
15468
15469
15470 \end_layout
15471
15472 \begin_layout Standard
15473 It is necessary to define the floats (
15474 \begin_inset Flex MenuItem
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478 figure
15479 \end_layout
15480
15481 \end_inset
15482
15483
15484 \begin_inset Flex MenuItem
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 table
15489 \end_layout
15490
15491 \end_inset
15492
15493 , \SpecialChar ldots
15494 ) in the text class itself.
15495  Standard floats are included in the file 
15496 \begin_inset Flex Code
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500 stdfloats.inc
15501 \end_layout
15502
15503 \end_inset
15504
15505 , so you may have to do no more than add
15506 \end_layout
15507
15508 \begin_layout LyX-Code
15509 Input stdfloats.inc
15510 \end_layout
15511
15512 \begin_layout Standard
15513 to your layout file.
15514  If you want to implement a text class that proposes some other float types
15515  (like the AGU class bundled with \SpecialChar LyX
15516 ), the information below will hopefully
15517  help you:
15518 \end_layout
15519
15520 \begin_layout Description
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525 AllowedPlacement
15526 \end_layout
15527
15528 \end_inset
15529
15530  [
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535 string
15536 \end_layout
15537
15538 \end_inset
15539
15540 =!htbpH] Allowed placement options for this float type.
15541  The value is a string of placement characters.
15542  Possible characters include: 
15543 \emph on
15544 h
15545 \emph default
15546  (
15547 \begin_inset Quotes eld
15548 \end_inset
15549
15550 here if possible
15551 \begin_inset Quotes erd
15552 \end_inset
15553
15554 ), 
15555 \emph on
15556 t
15557 \emph default
15558  (
15559 \begin_inset Quotes eld
15560 \end_inset
15561
15562 top of page
15563 \begin_inset Quotes erd
15564 \end_inset
15565
15566 ), 
15567 \emph on
15568 b
15569 \emph default
15570  (
15571 \begin_inset Quotes eld
15572 \end_inset
15573
15574 bottom of page
15575 \begin_inset Quotes erd
15576 \end_inset
15577
15578 ), 
15579 \emph on
15580 p
15581 \emph default
15582  (
15583 \begin_inset Quotes eld
15584 \end_inset
15585
15586 page of floats
15587 \begin_inset Quotes erd
15588 \end_inset
15589
15590 ), 
15591 \emph on
15592 H
15593 \emph default
15594  (
15595 \begin_inset Quotes eld
15596 \end_inset
15597
15598 here definitely
15599 \begin_inset Quotes erd
15600 \end_inset
15601
15602 ) and 
15603 \emph on
15604 !
15605 \emph default
15606  (
15607 \begin_inset Quotes eld
15608 \end_inset
15609
15610 ignore LaTeX rules
15611 \begin_inset Quotes erd
15612 \end_inset
15613
15614 ).
15615  The order of the characters in the string does not matter.
15616  If no placement options are allowed, use the string 
15617 \emph on
15618 none
15619 \emph default
15620 .
15621 \end_layout
15622
15623 \begin_layout Description
15624 \begin_inset Flex Code
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 AllowsSideways
15629 \end_layout
15630
15631 \end_inset
15632
15633  [
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638
15639 \emph off
15640 0
15641 \end_layout
15642
15643 \end_inset
15644
15645 ,
15646 \begin_inset space \thinspace{}
15647 \end_inset
15648
15649
15650 \emph on
15651
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656
15657 \emph on
15658 1
15659 \end_layout
15660
15661 \end_inset
15662
15663
15664 \emph default
15665 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
15666 -package 
15667 \family typewriter
15668 rotfloat
15669 \family default
15670  (sidewaysfloat).
15671  Set to 
15672 \begin_inset Flex Code
15673 status collapsed
15674
15675 \begin_layout Plain Layout
15676 0
15677 \end_layout
15678
15679 \end_inset
15680
15681  if the float does not support this feature.
15682 \end_layout
15683
15684 \begin_layout Description
15685 \begin_inset Flex Code
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 AllowsWide
15690 \end_layout
15691
15692 \end_inset
15693
15694  [
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699
15700 \emph off
15701 0
15702 \end_layout
15703
15704 \end_inset
15705
15706 ,
15707 \begin_inset space \thinspace{}
15708 \end_inset
15709
15710
15711 \emph on
15712
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717
15718 \emph on
15719 1
15720 \end_layout
15721
15722 \end_inset
15723
15724
15725 \emph default
15726 ] Defines whether the float has a starred variant that spans columns in
15727  a two column paragraph.
15728  Set to 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 0
15734 \end_layout
15735
15736 \end_inset
15737
15738  if the float does not support this feature.
15739 \end_layout
15740
15741 \begin_layout Description
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 Extension
15747 \end_layout
15748
15749 \end_inset
15750
15751  [
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 string
15757 \end_layout
15758
15759 \end_inset
15760
15761 =
15762 \begin_inset Quotes erd
15763 \end_inset
15764
15765
15766 \begin_inset Quotes erd
15767 \end_inset
15768
15769 ] The file name extension of an auxiliary file for the list of figures (or
15770  whatever).
15771  \SpecialChar LaTeX
15772  writes the captions to this file.
15773 \end_layout
15774
15775 \begin_layout Description
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 GuiName
15781 \end_layout
15782
15783 \end_inset
15784
15785  [
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790 string
15791 \end_layout
15792
15793 \end_inset
15794
15795 =
15796 \begin_inset Quotes erd
15797 \end_inset
15798
15799
15800 \begin_inset Quotes erd
15801 \end_inset
15802
15803 ] The string that will be used in the menus and also for the caption.
15804  This is translated to the current language if babel is used.
15805 \end_layout
15806
15807 \begin_layout Description
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 HTML*
15813 \end_layout
15814
15815 \end_inset
15816
15817  These tags control the XHTML output.
15818  See 
15819 \begin_inset CommandInset ref
15820 LatexCommand ref
15821 reference "sec:Tags-for-XHTML"
15822
15823 \end_inset
15824
15825 .
15826 \end_layout
15827
15828 \begin_layout Description
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 IsPredefined
15834 \end_layout
15835
15836 \end_inset
15837
15838  [
15839 \emph on
15840
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 0
15846 \end_layout
15847
15848 \end_inset
15849
15850
15851 \emph default
15852 ,
15853 \begin_inset space \thinspace{}
15854 \end_inset
15855
15856
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861 1
15862 \end_layout
15863
15864 \end_inset
15865
15866 ] Indicates whether the float is already defined in the document class or
15867  if instead the \SpecialChar LaTeX
15868  package 
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 float
15874 \end_layout
15875
15876 \end_inset
15877
15878  needs to be loaded to define it on-the-fly.
15879  The default is 
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884 0
15885 \end_layout
15886
15887 \end_inset
15888
15889 , which means: 
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 float
15895 \end_layout
15896
15897 \end_inset
15898
15899  is used.
15900  It should be set to 
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905 1
15906 \end_layout
15907
15908 \end_inset
15909
15910  if the float is already defined by the \SpecialChar LaTeX
15911  document class.
15912 \end_layout
15913
15914 \begin_layout Description
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 ListCommand
15920 \end_layout
15921
15922 \end_inset
15923
15924  [
15925 \begin_inset Flex Code
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 string
15930 \end_layout
15931
15932 \end_inset
15933
15934 =
15935 \begin_inset Quotes erd
15936 \end_inset
15937
15938
15939 \begin_inset Quotes erd
15940 \end_inset
15941
15942 ] The command used to generate a list of floats of this type; the leading
15943  `
15944 \backslash
15945 ' must be omitted.
15946  This 
15947 \emph on
15948 must
15949 \emph default
15950  be given if 
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 UsesFloatPkg
15956 \end_layout
15957
15958 \end_inset
15959
15960  is false, since there is no standard way to generate this command.
15961  It is ignored if 
15962 \begin_inset Flex Code
15963 status collapsed
15964
15965 \begin_layout Plain Layout
15966 UsesFloatPkg
15967 \end_layout
15968
15969 \end_inset
15970
15971  is true, since in that case there is a standard way to define the command.
15972 \end_layout
15973
15974 \begin_layout Description
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 ListName
15980 \end_layout
15981
15982 \end_inset
15983
15984  [
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 string
15990 \end_layout
15991
15992 \end_inset
15993
15994 =
15995 \begin_inset Quotes erd
15996 \end_inset
15997
15998
15999 \begin_inset Quotes erd
16000 \end_inset
16001
16002 ] A title for a list of floats of this kind (list of figures, tables, or
16003  whatever).
16004  It is used for the screen label within \SpecialChar LyX
16005 , it is used by \SpecialChar LaTeX
16006  for the title and
16007  it is used as the title in the XHTML output.
16008  It will be translated to the document language.
16009 \end_layout
16010
16011 \begin_layout Description
16012 \begin_inset Flex Code
16013 status collapsed
16014
16015 \begin_layout Plain Layout
16016 NumberWithin
16017 \end_layout
16018
16019 \end_inset
16020
16021  [
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026 string
16027 \end_layout
16028
16029 \end_inset
16030
16031 =
16032 \begin_inset Quotes erd
16033 \end_inset
16034
16035
16036 \begin_inset Quotes erd
16037 \end_inset
16038
16039 ] This (optional) argument determines whether floats of this class will
16040  be numbered within some sectional unit of the document.
16041  For example, if 
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 NumberWithin
16047 \end_layout
16048
16049 \end_inset
16050
16051  is set to 
16052 \begin_inset Quotes eld
16053 \end_inset
16054
16055
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 chapter
16061 \end_layout
16062
16063 \end_inset
16064
16065
16066 \begin_inset Quotes erd
16067 \end_inset
16068
16069 , the floats will be numbered within chapters.
16070  
16071 \end_layout
16072
16073 \begin_layout Description
16074 \begin_inset Flex Code
16075 status collapsed
16076
16077 \begin_layout Plain Layout
16078 Placement
16079 \end_layout
16080
16081 \end_inset
16082
16083  [
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 string
16089 \end_layout
16090
16091 \end_inset
16092
16093 =
16094 \begin_inset Quotes erd
16095 \end_inset
16096
16097
16098 \begin_inset Quotes erd
16099 \end_inset
16100
16101 ] The default placement for the given class of floats.
16102  The string should be as in standard \SpecialChar LaTeX
16103
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 t
16109 \end_layout
16110
16111 \end_inset
16112
16113
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 b
16119 \end_layout
16120
16121 \end_inset
16122
16123
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128 p
16129 \end_layout
16130
16131 \end_inset
16132
16133  and 
16134 \begin_inset Flex Code
16135 status collapsed
16136
16137 \begin_layout Plain Layout
16138 h
16139 \end_layout
16140
16141 \end_inset
16142
16143  for top, bottom, page, and here, respectively.
16144 \begin_inset Foot
16145 status collapsed
16146
16147 \begin_layout Plain Layout
16148 Note that the order of these letters in the string is irrelevant, like in
16149  \SpecialChar LaTeX
16150 .
16151 \end_layout
16152
16153 \end_inset
16154
16155  On top of that there is a new type, 
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 H
16161 \end_layout
16162
16163 \end_inset
16164
16165 , which does not really correspond to a float, since it means: put it 
16166 \begin_inset Quotes eld
16167 \end_inset
16168
16169 here
16170 \begin_inset Quotes erd
16171 \end_inset
16172
16173  and nowhere else.
16174  Note however that the 
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 H
16180 \end_layout
16181
16182 \end_inset
16183
16184  specifier is special and, because of implementation details, cannot be
16185  used in non-built in float types.
16186  If you do not understand what this means, just use 
16187 \begin_inset Quotes eld
16188 \end_inset
16189
16190
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 tbp
16196 \end_layout
16197
16198 \end_inset
16199
16200
16201 \begin_inset Quotes erd
16202 \end_inset
16203
16204 .
16205 \end_layout
16206
16207 \begin_layout Description
16208 \begin_inset Flex Code
16209 status collapsed
16210
16211 \begin_layout Plain Layout
16212 RefPrefix
16213 \end_layout
16214
16215 \end_inset
16216
16217  [
16218 \begin_inset Flex Code
16219 status collapsed
16220
16221 \begin_layout Plain Layout
16222 string
16223 \end_layout
16224
16225 \end_inset
16226
16227 ] The prefix to use when creating labels referring to floats of this type.
16228  This allows the use of formatted references.
16229  Note that you can remove any 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 RefPrefix
16235 \end_layout
16236
16237 \end_inset
16238
16239  set by a copied style by using the special value 
16240 \begin_inset Quotes eld
16241 \end_inset
16242
16243 OFF
16244 \begin_inset Quotes erd
16245 \end_inset
16246
16247 , which must be all caps.
16248 \end_layout
16249
16250 \begin_layout Description
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255 Style
16256 \end_layout
16257
16258 \end_inset
16259
16260  [
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 string
16266 \end_layout
16267
16268 \end_inset
16269
16270 =
16271 \begin_inset Quotes erd
16272 \end_inset
16273
16274
16275 \begin_inset Quotes erd
16276 \end_inset
16277
16278 ] The style used when defining the float using 
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283
16284 \backslash
16285 newfloat
16286 \end_layout
16287
16288 \end_inset
16289
16290 .
16291 \end_layout
16292
16293 \begin_layout Description
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 Type
16299 \end_layout
16300
16301 \end_inset
16302
16303  [
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 string
16309 \end_layout
16310
16311 \end_inset
16312
16313 =
16314 \begin_inset Quotes erd
16315 \end_inset
16316
16317
16318 \begin_inset Quotes erd
16319 \end_inset
16320
16321 ] The 
16322 \begin_inset Quotes eld
16323 \end_inset
16324
16325 type
16326 \begin_inset Quotes erd
16327 \end_inset
16328
16329  of the new class of floats, like program or algorithm.
16330  After the appropriate 
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335
16336 \backslash
16337 newfloat
16338 \end_layout
16339
16340 \end_inset
16341
16342 , commands such as 
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347
16348 \backslash
16349 begin{program}
16350 \end_layout
16351
16352 \end_inset
16353
16354  or 
16355 \begin_inset Flex Code
16356 status collapsed
16357
16358 \begin_layout Plain Layout
16359
16360 \backslash
16361 end{algorithm*}
16362 \end_layout
16363
16364 \end_inset
16365
16366  will be available.
16367 \end_layout
16368
16369 \begin_layout Description
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 UsesFloatPkg
16375 \end_layout
16376
16377 \end_inset
16378
16379  [
16380 \begin_inset Flex Code
16381 status collapsed
16382
16383 \begin_layout Plain Layout
16384 0
16385 \end_layout
16386
16387 \end_inset
16388
16389 ,
16390 \begin_inset space \thinspace{}
16391 \end_inset
16392
16393
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398
16399 \emph on
16400 1
16401 \end_layout
16402
16403 \end_inset
16404
16405 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16406  package 
16407 \begin_inset Flex Code
16408 status collapsed
16409
16410 \begin_layout Plain Layout
16411 float
16412 \end_layout
16413
16414 \end_inset
16415
16416 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16417  itself.
16418 \end_layout
16419
16420 \begin_layout Standard
16421 Note that defining a float with type 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426
16427 \emph on
16428 type
16429 \end_layout
16430
16431 \end_inset
16432
16433  automatically defines the corresponding counter with name 
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438
16439 \emph on
16440 type
16441 \end_layout
16442
16443 \end_inset
16444
16445 .
16446 \end_layout
16447
16448 \begin_layout Subsection
16449 Flex insets and InsetLayout
16450 \begin_inset CommandInset label
16451 LatexCommand label
16452 name "subsec:Flex-insets-and"
16453
16454 \end_inset
16455
16456
16457 \end_layout
16458
16459 \begin_layout Standard
16460 Flex insets come in three different kinds: 
16461 \end_layout
16462
16463 \begin_layout Itemize
16464 character style (
16465 \begin_inset Flex Code
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469 CharStyle
16470 \end_layout
16471
16472 \end_inset
16473
16474 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16475  commands as 
16476 \begin_inset Flex Code
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480
16481 \backslash
16482 noun
16483 \end_layout
16484
16485 \end_inset
16486
16487  and 
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492
16493 \backslash
16494 code
16495 \end_layout
16496
16497 \end_inset
16498
16499 .
16500 \end_layout
16501
16502 \begin_layout Itemize
16503 user custom (
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 Custom
16509 \end_layout
16510
16511 \end_inset
16512
16513 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16514  code,
16515  footnote, and the like.
16516  An obvious example is an endnote inset, which is defined in the 
16517 \begin_inset Flex Code
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521 endnote
16522 \end_layout
16523
16524 \end_inset
16525
16526  module.
16527 \end_layout
16528
16529 \begin_layout Itemize
16530 XML elements (
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Element
16536 \end_layout
16537
16538 \end_inset
16539
16540 ): For use with DocBook classes.
16541 \end_layout
16542
16543 \begin_layout Standard
16544 Flex insets are defined using the 
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 InsetLayout
16550 \end_layout
16551
16552 \end_inset
16553
16554  tag, which shall be explained in a moment.
16555 \end_layout
16556
16557 \begin_layout Standard
16558 The 
16559 \begin_inset Flex Code
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 InsetLayout
16564 \end_layout
16565
16566 \end_inset
16567
16568  tag also serves another function: It can be used to customize the general
16569  layout of many different types of insets.
16570  Currently, 
16571 \begin_inset Flex Code
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 InsetLayout
16576 \end_layout
16577
16578 \end_inset
16579
16580  can be used to customize the layout parameters for footnotes, marginal
16581  notes, note insets, \SpecialChar TeX
16582  code (ERT) insets, branches, listings, indexes, boxes,
16583  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16584 \end_layout
16585
16586 \begin_layout Standard
16587 The 
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 InsetLayout
16593 \end_layout
16594
16595 \end_inset
16596
16597  definition must begin with a line of the form:
16598 \end_layout
16599
16600 \begin_layout LyX-Code
16601 InsetLayout <type>
16602 \end_layout
16603
16604 \begin_layout Standard
16605 Here 
16606 \begin_inset Flex Code
16607 status collapsed
16608
16609 \begin_layout Plain Layout
16610 <Type>
16611 \end_layout
16612
16613 \end_inset
16614
16615  indicates the inset whose layout is being defined, and here there are four
16616  cases.
16617 \end_layout
16618
16619 \begin_layout Enumerate
16620 The layout for a pre-existing inset is being modified.
16621  In this case, can be 
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626 <Type>
16627 \end_layout
16628
16629 \end_inset
16630
16631  any one of the following: 
16632 \begin_inset Flex Code
16633 status collapsed
16634
16635 \begin_layout Plain Layout
16636 Algorithm
16637 \end_layout
16638
16639 \end_inset
16640
16641
16642 \begin_inset Flex Code
16643 status collapsed
16644
16645 \begin_layout Plain Layout
16646 Branch
16647 \end_layout
16648
16649 \end_inset
16650
16651
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656 Box
16657 \end_layout
16658
16659 \end_inset
16660
16661
16662 \begin_inset Flex Code
16663 status collapsed
16664
16665 \begin_layout Plain Layout
16666 Box:shaded
16667 \end_layout
16668
16669 \end_inset
16670
16671
16672 \begin_inset Flex Code
16673 status collapsed
16674
16675 \begin_layout Plain Layout
16676 Caption:Standard
16677 \end_layout
16678
16679 \end_inset
16680
16681
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686 ERT
16687 \end_layout
16688
16689 \end_inset
16690
16691
16692 \begin_inset Flex Code
16693 status collapsed
16694
16695 \begin_layout Plain Layout
16696 Figure
16697 \end_layout
16698
16699 \end_inset
16700
16701
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 Foot
16707 \end_layout
16708
16709 \end_inset
16710
16711
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 Index
16717 \end_layout
16718
16719 \end_inset
16720
16721
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 Info
16727 \end_layout
16728
16729 \end_inset
16730
16731
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 Info:menu
16737 \end_layout
16738
16739 \end_inset
16740
16741
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 Info:shortcut
16747 \end_layout
16748
16749 \end_inset
16750
16751
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 Info:shortcuts
16757 \end_layout
16758
16759 \end_inset
16760
16761
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 Listings
16767 \end_layout
16768
16769 \end_inset
16770
16771
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 Marginal
16777 \end_layout
16778
16779 \end_inset
16780
16781
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 Note:Comment
16787 \end_layout
16788
16789 \end_inset
16790
16791
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 Note:Note
16797 \end_layout
16798
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Note:Greyedout
16807 \end_layout
16808
16809 \end_inset
16810
16811
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 Table
16817 \end_layout
16818
16819 \end_inset
16820
16821 , or 
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 URL
16827 \end_layout
16828
16829 \end_inset
16830
16831 .
16832 \end_layout
16833
16834 \begin_layout Enumerate
16835 The layout for a Flex inset is being defined.
16836  In this case, 
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841 <Type>
16842 \end_layout
16843
16844 \end_inset
16845
16846  must be of the form 
16847 \begin_inset Quotes eld
16848 \end_inset
16849
16850
16851 \begin_inset Flex Code
16852 status collapsed
16853
16854 \begin_layout Plain Layout
16855 Flex:<name>
16856 \end_layout
16857
16858 \end_inset
16859
16860
16861 \begin_inset Quotes erd
16862 \end_inset
16863
16864 , where 
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 name
16870 \end_layout
16871
16872 \end_inset
16873
16874  may be be any valid identifier not used by a pre-existing Flex inset.
16875  The identifier may include spaces, but in that case the whole thing must
16876  be wrapped in quotes.
16877  Note that the definition of a flex inset 
16878 \emph on
16879 must 
16880 \emph default
16881 also include a 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 LyXType
16887 \end_layout
16888
16889 \end_inset
16890
16891  entry, declaring which type of inset it defines.
16892 \end_layout
16893
16894 \begin_layout Enumerate
16895 The layout for user specific branch is being defined.
16896  In this case, 
16897 \begin_inset Flex Code
16898 status collapsed
16899
16900 \begin_layout Plain Layout
16901 <Type>
16902 \end_layout
16903
16904 \end_inset
16905
16906  must be of the form 
16907 \begin_inset Quotes eld
16908 \end_inset
16909
16910
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 Branch:<name>
16916 \end_layout
16917
16918 \end_inset
16919
16920
16921 \begin_inset Quotes erd
16922 \end_inset
16923
16924 , where 
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 name
16930 \end_layout
16931
16932 \end_inset
16933
16934  may be be any valid identifier of branch defined in user's document.
16935  The identifier may include spaces, but in that case the whole thing must
16936  be wrapped in quotes.
16937  The main purpose of this feature is to allow \SpecialChar LaTeX
16938  wrapping around specific
16939  branches as user needs.
16940 \end_layout
16941
16942 \begin_layout Enumerate
16943 The layout of a user (or class) specific caption is being defined.
16944  In this case, 
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 <Type>
16950 \end_layout
16951
16952 \end_inset
16953
16954  must be of the form 
16955 \begin_inset Quotes eld
16956 \end_inset
16957
16958
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 Caption:<name>
16964 \end_layout
16965
16966 \end_inset
16967
16968
16969 \begin_inset Quotes erd
16970 \end_inset
16971
16972 , where 
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 name
16978 \end_layout
16979
16980 \end_inset
16981
16982  specifies the name of the caption as it appears in the menu.
16983  Have a look at the standard caption (
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 Caption:Standard
16989 \end_layout
16990
16991 \end_inset
16992
16993 ), the specific captions of the KOMA-Script classes (
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 Caption:Above
16999 \end_layout
17000
17001 \end_inset
17002
17003
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 Caption:Below
17009 \end_layout
17010
17011 \end_inset
17012
17013 ) or the module 
17014 \family sans
17015 Multilingual
17016 \begin_inset space ~
17017 \end_inset
17018
17019 Captions 
17020 \family default
17021 (
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026 Caption:Bicaption
17027 \end_layout
17028
17029 \end_inset
17030
17031 ) for applications.
17032 \end_layout
17033
17034 \begin_layout Standard
17035 The 
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 InsetLayout
17041 \end_layout
17042
17043 \end_inset
17044
17045  definition can contain the following entries:
17046 \end_layout
17047
17048 \begin_layout Description
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 Argument
17054 \end_layout
17055
17056 \end_inset
17057
17058  [
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 int
17064 \end_layout
17065
17066 \end_inset
17067
17068 ] Defines argument number of a command\SpecialChar breakableslash
17069 environment associated with the current
17070  layout.
17071  The definition must end with 
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 EndArgument
17077 \end_layout
17078
17079 \end_inset
17080
17081 .
17082  See 
17083 \begin_inset CommandInset ref
17084 LatexCommand ref
17085 reference "subsec:Paragraph-Styles"
17086
17087 \end_inset
17088
17089  for details.
17090 \end_layout
17091
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 BabelPreamble
17098 \end_layout
17099
17100 \end_inset
17101
17102  Preamble for changing language commands; see 
17103 \begin_inset CommandInset ref
17104 LatexCommand ref
17105 reference "subsec:I18n"
17106
17107 \end_inset
17108
17109 .
17110 \end_layout
17111
17112 \begin_layout Description
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 BgColor
17118 \end_layout
17119
17120 \end_inset
17121
17122  [
17123 \begin_inset Flex Code
17124 status collapsed
17125
17126 \begin_layout Plain Layout
17127 <name>
17128 \end_layout
17129
17130 \end_inset
17131
17132 ] The color for the inset's background.
17133  See 
17134 \begin_inset CommandInset ref
17135 LatexCommand ref
17136 reference "chap:Names-of-colors"
17137
17138 \end_inset
17139
17140  for a list of the available color names.
17141 \end_layout
17142
17143 \begin_layout Description
17144 \begin_inset Flex Code
17145 status collapsed
17146
17147 \begin_layout Plain Layout
17148 ContentAsLabel
17149 \end_layout
17150
17151 \end_inset
17152
17153  [
17154 \begin_inset Flex Code
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158
17159 \emph on
17160 0
17161 \end_layout
17162
17163 \end_inset
17164
17165 ,
17166 \begin_inset space \thinspace{}
17167 \end_inset
17168
17169
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174 1
17175 \end_layout
17176
17177 \end_inset
17178
17179 ] Whether to use the content of the inset as the label, when the inset is
17180  closed.
17181  Default is false.
17182 \end_layout
17183
17184 \begin_layout Description
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 CopyStyle
17190 \end_layout
17191
17192 \end_inset
17193
17194  [
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 <type>
17200 \end_layout
17201
17202 \end_inset
17203
17204 ] As with paragraph styles, see 
17205 \begin_inset CommandInset ref
17206 LatexCommand ref
17207 reference "subsec:Paragraph-Styles"
17208
17209 \end_inset
17210
17211 .
17212  Note that you need to specify the complete type, e.
17213 \begin_inset space \thinspace{}
17214 \end_inset
17215
17216 g.
17217 \begin_inset space ~
17218 \end_inset
17219
17220
17221 \begin_inset Flex Code
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225 CopyStyle Flex:<name>
17226 \end_layout
17227
17228 \end_inset
17229
17230 .
17231 \end_layout
17232
17233 \begin_layout Description
17234 \begin_inset Flex Code
17235 status collapsed
17236
17237 \begin_layout Plain Layout
17238 CustomPars
17239 \end_layout
17240
17241 \end_inset
17242
17243  [
17244 \begin_inset Flex Code
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248
17249 \emph on
17250 0
17251 \end_layout
17252
17253 \end_inset
17254
17255 ,
17256 \begin_inset space \thinspace{}
17257 \end_inset
17258
17259
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 1
17265 \end_layout
17266
17267 \end_inset
17268
17269 ] Indicates whether the user may employ the Paragraph Settings dialog to
17270  customize the paragraph.
17271 \end_layout
17272
17273 \begin_layout Description
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 Decoration
17279 \end_layout
17280
17281 \end_inset
17282
17283  can be 
17284 \begin_inset Flex Code
17285 status collapsed
17286
17287 \begin_layout Plain Layout
17288 Classic
17289 \end_layout
17290
17291 \end_inset
17292
17293
17294 \begin_inset Flex Code
17295 status collapsed
17296
17297 \begin_layout Plain Layout
17298 Minimalistic
17299 \end_layout
17300
17301 \end_inset
17302
17303 , or 
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 Conglomerate
17309 \end_layout
17310
17311 \end_inset
17312
17313 , describing the rendering style used for the inset's frame and buttons.
17314  Footnotes generally use 
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319 Classic
17320 \end_layout
17321
17322 \end_inset
17323
17324 , ERT insets generally 
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 Minimalistic
17330 \end_layout
17331
17332 \end_inset
17333
17334 , and character styles 
17335 \begin_inset Flex Code
17336 status collapsed
17337
17338 \begin_layout Plain Layout
17339 Conglomerate
17340 \end_layout
17341
17342 \end_inset
17343
17344 .
17345 \end_layout
17346
17347 \begin_layout Description
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 Display
17353 \end_layout
17354
17355 \end_inset
17356
17357  [
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 0
17363 \end_layout
17364
17365 \end_inset
17366
17367 ,
17368 \emph on
17369
17370 \begin_inset space \thinspace{}
17371 \end_inset
17372
17373
17374 \emph default
17375
17376 \begin_inset Flex Code
17377 status collapsed
17378
17379 \begin_layout Plain Layout
17380
17381 \emph on
17382 1
17383 \end_layout
17384
17385 \end_inset
17386
17387 ] Only useful if 
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 LatexType
17393 \end_layout
17394
17395 \end_inset
17396
17397  is 
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 Environment
17403 \end_layout
17404
17405 \end_inset
17406
17407 .
17408  Indicates whether the environment will stand on its own in the output or
17409  will appear inline with the surrounding text.
17410  If set to false, it is supposed that the \SpecialChar LaTeX
17411  environment ignores white space
17412  (including one newline character) after the 
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417
17418 \backslash
17419 begin{
17420 \emph on
17421 LatexName
17422 \emph default
17423 }
17424 \end_layout
17425
17426 \end_inset
17427
17428  and 
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433
17434 \backslash
17435 end{
17436 \emph on
17437 LatexName
17438 \emph default
17439 }
17440 \end_layout
17441
17442 \end_inset
17443
17444  tags.
17445  Default is true.
17446 \end_layout
17447
17448 \begin_layout Description
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 End
17454 \end_layout
17455
17456 \end_inset
17457
17458  Required at the end of the 
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 InsetLayout
17464 \end_layout
17465
17466 \end_inset
17467
17468  declarations.
17469 \end_layout
17470
17471 \begin_layout Description
17472 \begin_inset Flex Code
17473 status collapsed
17474
17475 \begin_layout Plain Layout
17476 Font
17477 \end_layout
17478
17479 \end_inset
17480
17481  The font used for both the text body 
17482 \emph on
17483 and
17484 \emph default
17485  the label.
17486  See 
17487 \begin_inset CommandInset ref
17488 LatexCommand ref
17489 reference "subsec:Font-description"
17490
17491 \end_inset
17492
17493 .
17494  Note that defining this font automatically defines the 
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 LabelFont
17500 \end_layout
17501
17502 \end_inset
17503
17504  to the same value, so define this first and define 
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 LabelFont
17510 \end_layout
17511
17512 \end_inset
17513
17514  later if you want them to be different.
17515 \end_layout
17516
17517 \begin_layout Description
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 FixedWidthPreambleEncoding
17523 \end_layout
17524
17525 \end_inset
17526
17527  [
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532
17533 \emph on
17534 0
17535 \end_layout
17536
17537 \end_inset
17538
17539 ,
17540 \begin_inset space \thinspace{}
17541 \end_inset
17542
17543
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548 1
17549 \end_layout
17550
17551 \end_inset
17552
17553 ] Force a fixed width encoding for the translated contents of 
17554 \begin_inset Flex Code
17555 status collapsed
17556
17557 \begin_layout Plain Layout
17558 BabelPreamble
17559 \end_layout
17560
17561 \end_inset
17562
17563  and 
17564 \begin_inset Flex Code
17565 status collapsed
17566
17567 \begin_layout Plain Layout
17568 LangPreamble
17569 \end_layout
17570
17571 \end_inset
17572
17573  code generated by this layout.
17574  This is needed for special \SpecialChar LaTeX
17575 -packages like 
17576 \family typewriter
17577 listings
17578 \family default
17579  that do not work with variable width encodings such as 
17580 \family sans
17581 utf8
17582 \family default
17583 .
17584  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
17585  backends such as Xe\SpecialChar TeX
17586  or
17587  Lua\SpecialChar TeX
17588  are used.
17589 \end_layout
17590
17591 \begin_layout Description
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 ForceLocalFontSwitch
17597 \end_layout
17598
17599 \end_inset
17600
17601  [
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606
17607 \emph on
17608 0
17609 \end_layout
17610
17611 \end_inset
17612
17613 ,
17614 \begin_inset space \thinspace{}
17615 \end_inset
17616
17617
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 1
17623 \end_layout
17624
17625 \end_inset
17626
17627 ] When using babel, always use a local font switch (
17628 \begin_inset Flex Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632
17633 \backslash
17634 foreignlanguage
17635 \end_layout
17636
17637 \end_inset
17638
17639 ), never a global one (such as 
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644
17645 \backslash
17646 selectlanguage
17647 \end_layout
17648
17649 \end_inset
17650
17651 ).
17652 \end_layout
17653
17654 \begin_layout Description
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 ForceLTR
17660 \end_layout
17661
17662 \end_inset
17663
17664  [
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669
17670 \emph on
17671 0
17672 \end_layout
17673
17674 \end_inset
17675
17676 ,
17677 \begin_inset space \thinspace{}
17678 \end_inset
17679
17680
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 1
17686 \end_layout
17687
17688 \end_inset
17689
17690 ] Force the 
17691 \begin_inset Quotes eld
17692 \end_inset
17693
17694 latex
17695 \begin_inset Quotes erd
17696 \end_inset
17697
17698  language, leading to Left-to-Right (Latin) output, e.
17699 \begin_inset space \thinspace{}
17700 \end_inset
17701
17702 g.
17703 \begin_inset space \space{}
17704 \end_inset
17705
17706 in \SpecialChar TeX
17707  code or URL.
17708  A kludge.
17709 \end_layout
17710
17711 \begin_layout Description
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 ForceOwnlines
17717 \end_layout
17718
17719 \end_inset
17720
17721  [
17722 \begin_inset Flex Code
17723 status collapsed
17724
17725 \begin_layout Plain Layout
17726
17727 \emph on
17728 0
17729 \end_layout
17730
17731 \end_inset
17732
17733 ,
17734 \begin_inset space \thinspace{}
17735 \end_inset
17736
17737
17738 \begin_inset Flex Code
17739 status collapsed
17740
17741 \begin_layout Plain Layout
17742 1
17743 \end_layout
17744
17745 \end_inset
17746
17747 ] Force a a line break in the \SpecialChar LaTeX
17748  output before the inset starts and after
17749  the inset ends.
17750  This assures the inset itself is output on its own lines, for parsing purposes.
17751 \end_layout
17752
17753 \begin_layout Description
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 ForcePlain
17759 \end_layout
17760
17761 \end_inset
17762
17763  [
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768
17769 \emph on
17770 0
17771 \end_layout
17772
17773 \end_inset
17774
17775 ,
17776 \begin_inset space \thinspace{}
17777 \end_inset
17778
17779
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 1
17785 \end_layout
17786
17787 \end_inset
17788
17789 ] Indicates whether the 
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 PlainLayout
17795 \end_layout
17796
17797 \end_inset
17798
17799  should be used or, instead, the user can change the paragraph style used
17800  in the inset.
17801  Default is false.
17802 \end_layout
17803
17804 \begin_layout Description
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 FreeSpacing
17810 \end_layout
17811
17812 \end_inset
17813
17814  [
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819
17820 \emph on
17821 0
17822 \end_layout
17823
17824 \end_inset
17825
17826 ,
17827 \begin_inset space \thinspace{}
17828 \end_inset
17829
17830
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 1
17836 \end_layout
17837
17838 \end_inset
17839
17840 ] As with paragraph styles, see 
17841 \begin_inset CommandInset ref
17842 LatexCommand ref
17843 reference "subsec:Paragraph-Styles"
17844
17845 \end_inset
17846
17847 .
17848 \end_layout
17849
17850 \begin_layout Description
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855 HTML*
17856 \end_layout
17857
17858 \end_inset
17859
17860  These tags control the XHTML output.
17861  See 
17862 \begin_inset CommandInset ref
17863 LatexCommand ref
17864 reference "sec:Tags-for-XHTML"
17865
17866 \end_inset
17867
17868 .
17869 \end_layout
17870
17871 \begin_layout Description
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 InToc
17877 \end_layout
17878
17879 \end_inset
17880
17881  [
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886
17887 \emph on
17888 0
17889 \end_layout
17890
17891 \end_inset
17892
17893 ,
17894 \begin_inset space \thinspace{}
17895 \end_inset
17896
17897
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 1
17903 \end_layout
17904
17905 \end_inset
17906
17907 ] Whether to include the contents of this inset in the strings generated
17908  for the `Outline' pane.
17909  One would not, for example, want the content of a footnote in a section
17910  header to be included in the TOC displayed in the outline, but one would
17911  normally want the content of a character style displayed.
17912  Default is false: not to include.
17913 \end_layout
17914
17915 \begin_layout Description
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 KeepEmpty
17921 \end_layout
17922
17923 \end_inset
17924
17925  [
17926 \emph on
17927
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 0
17933 \end_layout
17934
17935 \end_inset
17936
17937
17938 \emph default
17939 ,
17940 \begin_inset space \thinspace{}
17941 \end_inset
17942
17943
17944 \begin_inset Flex Code
17945 status collapsed
17946
17947 \begin_layout Plain Layout
17948 1
17949 \end_layout
17950
17951 \end_inset
17952
17953 ] As with paragraph styles, see 
17954 \begin_inset CommandInset ref
17955 LatexCommand ref
17956 reference "subsec:Paragraph-Styles"
17957
17958 \end_inset
17959
17960 .
17961 \end_layout
17962
17963 \begin_layout Description
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 LabelFont
17969 \end_layout
17970
17971 \end_inset
17972
17973  The font used for the label.
17974  See 
17975 \begin_inset CommandInset ref
17976 LatexCommand ref
17977 reference "subsec:Font-description"
17978
17979 \end_inset
17980
17981 .
17982  Note that this definition can never appear before 
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987 Font
17988 \end_layout
17989
17990 \end_inset
17991
17992 , lest it be ineffective.
17993 \end_layout
17994
17995 \begin_layout Description
17996 \begin_inset Flex Code
17997 status collapsed
17998
17999 \begin_layout Plain Layout
18000 LabelString
18001 \end_layout
18002
18003 \end_inset
18004
18005  [
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 string
18011 \end_layout
18012
18013 \end_inset
18014
18015 =
18016 \begin_inset Quotes erd
18017 \end_inset
18018
18019
18020 \begin_inset Quotes erd
18021 \end_inset
18022
18023 ] What will be displayed on the button or elsewhere as the inset label.
18024  Some inset types (
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 \SpecialChar TeX
18030  code
18031 \end_layout
18032
18033 \end_inset
18034
18035  and 
18036 \begin_inset Flex Code
18037 status collapsed
18038
18039 \begin_layout Plain Layout
18040 Branch
18041 \end_layout
18042
18043 \end_inset
18044
18045 ) modify this label on the fly.
18046 \end_layout
18047
18048 \begin_layout Description
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 LangPreamble
18054 \end_layout
18055
18056 \end_inset
18057
18058  Language dependent preamble; see 
18059 \begin_inset CommandInset ref
18060 LatexCommand ref
18061 reference "subsec:I18n"
18062
18063 \end_inset
18064
18065 .
18066 \end_layout
18067
18068 \begin_layout Description
18069 \begin_inset Flex Code
18070 status collapsed
18071
18072 \begin_layout Plain Layout
18073 LatexName
18074 \end_layout
18075
18076 \end_inset
18077
18078  [
18079 \begin_inset Flex Code
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 <name>
18084 \end_layout
18085
18086 \end_inset
18087
18088 ] The name of the corresponding \SpecialChar LaTeX
18089  stuff.
18090  Either the environment or command name.
18091 \end_layout
18092
18093 \begin_layout Description
18094 \begin_inset Flex Code
18095 status collapsed
18096
18097 \begin_layout Plain Layout
18098 LatexParam
18099 \end_layout
18100
18101 \end_inset
18102
18103  [
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 <parameter>
18109 \end_layout
18110
18111 \end_inset
18112
18113 ] The optional parameter for the corresponding 
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 LatexName
18119 \end_layout
18120
18121 \end_inset
18122
18123  stuff, including possible bracket pairs like 
18124 \begin_inset Flex Code
18125 status collapsed
18126
18127 \begin_layout Plain Layout
18128 []
18129 \end_layout
18130
18131 \end_inset
18132
18133 .
18134  This parameter cannot be changed from within \SpecialChar LyX
18135  (use 
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 Argument
18141 \end_layout
18142
18143 \end_inset
18144
18145  for customizable parameters).
18146  It will be output as is after all \SpecialChar LaTeX
18147  
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 Argument
18153 \end_layout
18154
18155 \end_inset
18156
18157 s.
18158 \end_layout
18159
18160 \begin_layout Description
18161 \begin_inset Flex Code
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 LatexType
18166 \end_layout
18167
18168 \end_inset
18169
18170  [
18171 \begin_inset Flex Code
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 Command, Environment, None
18176 \end_layout
18177
18178 \end_inset
18179
18180 ] How the style should be translated into \SpecialChar LaTeX
18181 .
18182 \begin_inset Foot
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 LatexType
18191 \end_layout
18192
18193 \end_inset
18194
18195  is perhaps a bit misleading, since these rules apply to SGML classes too.
18196  Visit the SGML class files for specific examples.
18197 \end_layout
18198
18199 \end_inset
18200
18201
18202 \begin_inset Separator parbreak
18203 \end_inset
18204
18205
18206 \end_layout
18207
18208 \begin_deeper
18209 \begin_layout Description
18210 \begin_inset Flex Code
18211 status collapsed
18212
18213 \begin_layout Plain Layout
18214 None
18215 \end_layout
18216
18217 \end_inset
18218
18219  means nothing special
18220 \end_layout
18221
18222 \begin_layout Description
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Command
18228 \end_layout
18229
18230 \end_inset
18231
18232  means 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237
18238 \backslash
18239
18240 \emph on
18241 LatexName
18242 \emph default
18243 {\SpecialChar ldots
18244 }
18245 \end_layout
18246
18247 \end_inset
18248
18249
18250 \end_layout
18251
18252 \begin_layout Description
18253 \begin_inset Flex Code
18254 status collapsed
18255
18256 \begin_layout Plain Layout
18257 Environment
18258 \end_layout
18259
18260 \end_inset
18261
18262  means 
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267
18268 \backslash
18269 begin{
18270 \emph on
18271 LatexName
18272 \emph default
18273 }\SpecialChar ldots
18274
18275 \backslash
18276 end{
18277 \emph on
18278 LatexName
18279 \emph default
18280 }
18281 \end_layout
18282
18283 \end_inset
18284
18285
18286 \end_layout
18287
18288 \begin_layout Standard
18289 Putting the last few things together, the \SpecialChar LaTeX
18290  output will be either: 
18291 \end_layout
18292
18293 \begin_layout LyX-Code
18294
18295 \backslash
18296 LatexName[LatexParam]{\SpecialChar ldots
18297 }
18298 \end_layout
18299
18300 \begin_layout Standard
18301 or: 
18302 \end_layout
18303
18304 \begin_layout LyX-Code
18305
18306 \backslash
18307 begin{LatexName}[LatexParam] \SpecialChar ldots
18308  
18309 \backslash
18310 end{LatexName}
18311 \end_layout
18312
18313 \begin_layout Standard
18314 depending upon the \SpecialChar LaTeX
18315  type.
18316 \end_layout
18317
18318 \end_deeper
18319 \begin_layout Description
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324 LeftDelim
18325 \end_layout
18326
18327 \end_inset
18328
18329  [
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 string
18335 \end_layout
18336
18337 \end_inset
18338
18339 ] A string that is put at the beginning of the layout content.
18340  A line break in the output can be indicated by 
18341 \begin_inset Flex Code
18342 status collapsed
18343
18344 \begin_layout Plain Layout
18345 <br/>
18346 \end_layout
18347
18348 \end_inset
18349
18350 .
18351 \end_layout
18352
18353 \begin_layout Description
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 LyxType
18359 \end_layout
18360
18361 \end_inset
18362
18363  Can be 
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 charstyle
18369 \end_layout
18370
18371 \end_inset
18372
18373
18374 \begin_inset Flex Code
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 custom
18379 \end_layout
18380
18381 \end_inset
18382
18383
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 element
18389 \end_layout
18390
18391 \end_inset
18392
18393  or 
18394 \begin_inset Flex Code
18395 status collapsed
18396
18397 \begin_layout Plain Layout
18398 end
18399 \end_layout
18400
18401 \end_inset
18402
18403  (indicating a dummy definition ending definitions of charstyles, etc).
18404  This entry is required in and is only meaningful for Flex insets.
18405  Among other things, it determines on which menu this inset will appear.
18406  Setting 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 LyXType
18412 \end_layout
18413
18414 \end_inset
18415
18416  to 
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 charstyle
18422 \end_layout
18423
18424 \end_inset
18425
18426  will automatically set 
18427 \begin_inset Flex Code
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 MultiPar
18432 \end_layout
18433
18434 \end_inset
18435
18436  to false.
18437  
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 MultiPar
18443 \end_layout
18444
18445 \end_inset
18446
18447  can be set to true for 
18448 \begin_inset Flex Code
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 charstyle
18453 \end_layout
18454
18455 \end_inset
18456
18457  insets by setting it 
18458 \emph on
18459 after
18460 \emph default
18461  you set the 
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 LyXType
18467 \end_layout
18468
18469 \end_inset
18470
18471 .
18472 \end_layout
18473
18474 \begin_layout Description
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479 MultiPar
18480 \end_layout
18481
18482 \end_inset
18483
18484  [
18485 \begin_inset Flex Code
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489
18490 \emph on
18491 0
18492 \end_layout
18493
18494 \end_inset
18495
18496 ,
18497 \begin_inset space \thinspace{}
18498 \end_inset
18499
18500
18501 \begin_inset Flex Code
18502 status collapsed
18503
18504 \begin_layout Plain Layout
18505 1
18506 \end_layout
18507
18508 \end_inset
18509
18510 ] Whether multiple paragraphs are permitted in this inset.
18511  This will also set 
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 CustomPars
18517 \end_layout
18518
18519 \end_inset
18520
18521  to the same value and 
18522 \begin_inset Flex Code
18523 status collapsed
18524
18525 \begin_layout Plain Layout
18526 ForcePlain
18527 \end_layout
18528
18529 \end_inset
18530
18531  to the opposite value.
18532  These can be reset to other values, if they are used 
18533 \emph on
18534 after
18535 \emph default
18536  
18537 \begin_inset Flex Code
18538 status collapsed
18539
18540 \begin_layout Plain Layout
18541 MultiPar
18542 \end_layout
18543
18544 \end_inset
18545
18546 .
18547  Default is true.
18548 \end_layout
18549
18550 \begin_layout Description
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555 NeedProtect
18556 \end_layout
18557
18558 \end_inset
18559
18560  [
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565
18566 \emph on
18567 0
18568 \end_layout
18569
18570 \end_inset
18571
18572 ,
18573 \begin_inset space \thinspace{}
18574 \end_inset
18575
18576
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 1
18582 \end_layout
18583
18584 \end_inset
18585
18586 ] Whether fragile commands in this inset should be 
18587 \begin_inset Flex Code
18588 status collapsed
18589
18590 \begin_layout Plain Layout
18591
18592 \backslash
18593 protect
18594 \end_layout
18595
18596 \end_inset
18597
18598 'ed.
18599  (Note: This is 
18600 \emph on
18601 not
18602 \emph default
18603  whether the command should itself be protected.) Default is false.
18604 \end_layout
18605
18606 \begin_layout Description
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 NoInsetLayout
18612 \end_layout
18613
18614 \end_inset
18615
18616  [
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 <layout>
18622 \end_layout
18623
18624 \end_inset
18625
18626 ] Deletes an existing 
18627 \begin_inset Flex Code
18628 status collapsed
18629
18630 \begin_layout Plain Layout
18631 InsetLayout
18632 \end_layout
18633
18634 \end_inset
18635
18636 .
18637 \end_layout
18638
18639 \begin_layout Description
18640 \begin_inset Flex Code
18641 status collapsed
18642
18643 \begin_layout Plain Layout
18644 ObsoletedBy
18645 \end_layout
18646
18647 \end_inset
18648
18649  [
18650 \begin_inset Flex Code
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654 <layout>
18655 \end_layout
18656
18657 \end_inset
18658
18659 ] Name of an 
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 InsetLayout
18665 \end_layout
18666
18667 \end_inset
18668
18669  that has replaced this 
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674 InsetLayout
18675 \end_layout
18676
18677 \end_inset
18678
18679 .
18680  This is used to rename an 
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 InsetLayout
18686 \end_layout
18687
18688 \end_inset
18689
18690 , while keeping backward compatibility.
18691 \end_layout
18692
18693 \begin_layout Description
18694 \begin_inset Flex Code
18695 status collapsed
18696
18697 \begin_layout Plain Layout
18698 ParbreakIsNewline
18699 \end_layout
18700
18701 \end_inset
18702
18703  [
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708
18709 \emph on
18710 0
18711 \end_layout
18712
18713 \end_inset
18714
18715 ,
18716 \begin_inset space \thinspace{}
18717 \end_inset
18718
18719
18720 \begin_inset Flex Code
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 1
18725 \end_layout
18726
18727 \end_inset
18728
18729 ] As with paragraph styles, see 
18730 \begin_inset CommandInset ref
18731 LatexCommand ref
18732 reference "subsec:Paragraph-Styles"
18733
18734 \end_inset
18735
18736 .
18737  Default is false.
18738 \end_layout
18739
18740 \begin_layout Description
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 PassThru
18746 \end_layout
18747
18748 \end_inset
18749
18750  [
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755
18756 \emph on
18757 0
18758 \end_layout
18759
18760 \end_inset
18761
18762 ,
18763 \begin_inset space \thinspace{}
18764 \end_inset
18765
18766
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 1
18772 \end_layout
18773
18774 \end_inset
18775
18776 ] As with paragraph styles, see 
18777 \begin_inset CommandInset ref
18778 LatexCommand ref
18779 reference "subsec:Paragraph-Styles"
18780
18781 \end_inset
18782
18783 .
18784  Default is false.
18785 \end_layout
18786
18787 \begin_layout Description
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 Preamble
18793 \end_layout
18794
18795 \end_inset
18796
18797  As with paragraph styles, see 
18798 \begin_inset CommandInset ref
18799 LatexCommand ref
18800 reference "subsec:Paragraph-Styles"
18801
18802 \end_inset
18803
18804 .
18805 \end_layout
18806
18807 \begin_layout Description
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 RefPrefix
18813 \end_layout
18814
18815 \end_inset
18816
18817  [
18818 \begin_inset Flex Code
18819 status collapsed
18820
18821 \begin_layout Plain Layout
18822 string
18823 \end_layout
18824
18825 \end_inset
18826
18827 ] The prefix to use when creating labels referring to insets of this type.
18828  This allows the use of formatted references.
18829 \end_layout
18830
18831 \begin_layout Description
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 Requires
18837 \end_layout
18838
18839 \end_inset
18840
18841  [
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 string
18847 \end_layout
18848
18849 \end_inset
18850
18851 ] As with paragraph styles, see 
18852 \begin_inset CommandInset ref
18853 LatexCommand ref
18854 reference "subsec:Paragraph-Styles"
18855
18856 \end_inset
18857
18858 .
18859 \end_layout
18860
18861 \begin_layout Description
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 ResetArgs
18867 \end_layout
18868
18869 \end_inset
18870
18871  [
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876
18877 \emph on
18878 0
18879 \end_layout
18880
18881 \end_inset
18882
18883 ,
18884 \begin_inset space \thinspace{}
18885 \end_inset
18886
18887
18888 \begin_inset Flex Code
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 1
18893 \end_layout
18894
18895 \end_inset
18896
18897 ] Resets the \SpecialChar LaTeX
18898  arguments of this layout (as defined via the 
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 Argument
18904 \end_layout
18905
18906 \end_inset
18907
18908  tag).
18909  This is useful if you have copied a style via 
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914 CopyStyle
18915 \end_layout
18916
18917 \end_inset
18918
18919 , but you do not want to inherit its (required and optional) arguments.
18920 \end_layout
18921
18922 \begin_layout Description
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 ResetsFont
18928 \end_layout
18929
18930 \end_inset
18931
18932  [
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 0
18938 \end_layout
18939
18940 \end_inset
18941
18942 ,
18943 \begin_inset space \thinspace{}
18944 \end_inset
18945
18946
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951
18952 \emph on
18953 1
18954 \end_layout
18955
18956 \end_inset
18957
18958 ] Whether this inset should use the font of its surrounding environment
18959  or uses its own.
18960  Default is false: use the font of the surrounding environment.
18961 \end_layout
18962
18963 \begin_layout Description
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 RightDelim
18969 \end_layout
18970
18971 \end_inset
18972
18973  [
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 string
18979 \end_layout
18980
18981 \end_inset
18982
18983 ] A string that is put at the end of the layout content.
18984  A line break in the output can be indicated by 
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 <br/>
18990 \end_layout
18991
18992 \end_inset
18993
18994 .
18995 \end_layout
18996
18997 \begin_layout Description
18998 \begin_inset Flex Code
18999 status collapsed
19000
19001 \begin_layout Plain Layout
19002 Spellcheck
19003 \end_layout
19004
19005 \end_inset
19006
19007  [
19008 \begin_inset Flex Code
19009 status collapsed
19010
19011 \begin_layout Plain Layout
19012 0
19013 \end_layout
19014
19015 \end_inset
19016
19017 ,
19018 \begin_inset space \thinspace{}
19019 \end_inset
19020
19021
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026
19027 \emph on
19028 1
19029 \end_layout
19030
19031 \end_inset
19032
19033 ] Allow spell-checking the contents of this inset.
19034  Default is true.
19035 \end_layout
19036
19037 \begin_layout Subsection
19038 Counters
19039 \begin_inset CommandInset label
19040 LatexCommand label
19041 name "subsec:Counters"
19042
19043 \end_inset
19044
19045
19046 \end_layout
19047
19048 \begin_layout Standard
19049 It is necessary to define the counters (
19050 \begin_inset Flex MenuItem
19051 status collapsed
19052
19053 \begin_layout Plain Layout
19054 chapter
19055 \end_layout
19056
19057 \end_inset
19058
19059
19060 \begin_inset Flex MenuItem
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 figure
19065 \end_layout
19066
19067 \end_inset
19068
19069 , \SpecialChar ldots
19070 ) in the text class itself.
19071  The standard counters are defined in the file 
19072 \begin_inset Flex Code
19073 status collapsed
19074
19075 \begin_layout Plain Layout
19076 stdcounters.inc
19077 \end_layout
19078
19079 \end_inset
19080
19081 , so you may have to do no more than add
19082 \end_layout
19083
19084 \begin_layout LyX-Code
19085 Input stdcounters.inc
19086 \end_layout
19087
19088 \begin_layout Standard
19089 to your layout file to get them to work.
19090  But if you want to define custom counters, then you can do so.
19091  The counter declaration must begin with:
19092 \end_layout
19093
19094 \begin_layout LyX-Code
19095 Counter CounterName
19096 \end_layout
19097
19098 \begin_layout Standard
19099 where of course `
19100 \begin_inset Flex Code
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 CounterName
19105 \end_layout
19106
19107 \end_inset
19108
19109 ' is replaced by the name of the counter.
19110  And it must end with 
19111 \begin_inset Quotes eld
19112 \end_inset
19113
19114
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 End
19120 \end_layout
19121
19122 \end_inset
19123
19124
19125 \begin_inset Quotes erd
19126 \end_inset
19127
19128 .
19129  The following parameters can also be used:
19130 \end_layout
19131
19132 \begin_layout Description
19133 \begin_inset Flex Code
19134 status collapsed
19135
19136 \begin_layout Plain Layout
19137 InitialValue
19138 \end_layout
19139
19140 \end_inset
19141
19142  [
19143 \begin_inset Flex Code
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147 int=1
19148 \end_layout
19149
19150 \end_inset
19151
19152 ] Sets the initial value for the counter, to which it will be reset whenever
19153  that happens.
19154  Normally, one will want the default, 1.
19155 \end_layout
19156
19157 \begin_layout Description
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 LabelString
19163 \end_layout
19164
19165 \end_inset
19166
19167  [
19168 \begin_inset Flex Code
19169 status collapsed
19170
19171 \begin_layout Plain Layout
19172 string
19173 \end_layout
19174
19175 \end_inset
19176
19177 =
19178 \begin_inset Quotes erd
19179 \end_inset
19180
19181
19182 \begin_inset Quotes erd
19183 \end_inset
19184
19185 ] When defined, this string defines how the counter is displayed.
19186  Setting this value sets 
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 LabelStringAppendix
19192 \end_layout
19193
19194 \end_inset
19195
19196  to the same value.
19197  The following special constructs can be used in the string:
19198 \begin_inset Separator parbreak
19199 \end_inset
19200
19201
19202 \end_layout
19203
19204 \begin_deeper
19205 \begin_layout Itemize
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210
19211 \backslash
19212 thecounter
19213 \end_layout
19214
19215 \end_inset
19216
19217  will be replaced by the expansion of the 
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 LabelString
19223 \end_layout
19224
19225 \end_inset
19226
19227  (or 
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232 LabelStringAppendix
19233 \end_layout
19234
19235 \end_inset
19236
19237 ) of the counter 
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 counter
19243 \end_layout
19244
19245 \end_inset
19246
19247 .
19248  
19249 \end_layout
19250
19251 \begin_layout Itemize
19252 counter values can be expressed using \SpecialChar LaTeX
19253 -like macros
19254 \begin_inset Newline newline
19255 \end_inset
19256
19257
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262
19263 \backslash
19264
19265 \emph on
19266 numbertype
19267 \emph default
19268 {
19269 \emph on
19270 counter
19271 \emph default
19272 }
19273 \end_layout
19274
19275 \end_inset
19276
19277 , where 
19278 \begin_inset Flex Code
19279 status collapsed
19280
19281 \begin_layout Plain Layout
19282
19283 \emph on
19284 numbertype
19285 \end_layout
19286
19287 \end_inset
19288
19289  can be:
19290 \begin_inset Foot
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294
19295 \family roman
19296 \series medium
19297 \shape up
19298 \size normal
19299 \emph off
19300 \bar no
19301 \noun off
19302 \color none
19303 Actually, the situation is a bit more complicated: any
19304 \family default
19305 \series default
19306 \shape default
19307 \emph default
19308 \bar default
19309  
19310 \size default
19311 \emph on
19312 \noun default
19313 \color inherit
19314 numbertype
19315 \family roman
19316 \series medium
19317 \shape up
19318 \size normal
19319 \emph off
19320 \bar no
19321 \noun off
19322  other than those described below will produce arabic numerals.
19323  It would not be surprising to see this change in the future.
19324 \end_layout
19325
19326 \end_inset
19327
19328  
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 arabic
19334 \end_layout
19335
19336 \end_inset
19337
19338 : 1, 2, 3,\SpecialChar ldots
19339
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 alph
19345 \end_layout
19346
19347 \end_inset
19348
19349  for lower-case letters: a, b, c, \SpecialChar ldots
19350
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 Alph
19356 \end_layout
19357
19358 \end_inset
19359
19360  for upper-case letters: A, B, C, \SpecialChar ldots
19361
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 roman
19367 \end_layout
19368
19369 \end_inset
19370
19371  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19372
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 Roman
19378 \end_layout
19379
19380 \end_inset
19381
19382  for upper-case roman numerals: I, II, III\SpecialChar ldots
19383
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 hebrew
19389 \end_layout
19390
19391 \end_inset
19392
19393  for hebrew numerals.
19394 \end_layout
19395
19396 \end_deeper
19397 \begin_layout Standard
19398 If LabelString is not defined, a default value is constructed as follows:
19399  if the counter has a master counter 
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 master
19405 \end_layout
19406
19407 \end_inset
19408
19409  (defined via 
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 Within
19415 \end_layout
19416
19417 \end_inset
19418
19419 ), the string
19420 \begin_inset Newline newline
19421 \end_inset
19422
19423
19424 \begin_inset Flex Code
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428
19429 \backslash
19430 themaster.
19431 \backslash
19432 arabic{counter}
19433 \end_layout
19434
19435 \end_inset
19436
19437  is used; otherwise the string 
19438 \begin_inset Flex Code
19439 status collapsed
19440
19441 \begin_layout Plain Layout
19442
19443 \backslash
19444 arabic{counter}
19445 \end_layout
19446
19447 \end_inset
19448
19449  is used.
19450 \end_layout
19451
19452 \begin_layout Description
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 LabelStringAppendix
19458 \end_layout
19459
19460 \end_inset
19461
19462  [
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 string
19468 \end_layout
19469
19470 \end_inset
19471
19472 =
19473 \begin_inset Quotes erd
19474 \end_inset
19475
19476
19477 \begin_inset Quotes erd
19478 \end_inset
19479
19480 ] Same as 
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485 LabelString
19486 \end_layout
19487
19488 \end_inset
19489
19490 , but for use in the Appendix.
19491 \end_layout
19492
19493 \begin_layout Description
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 PrettyFormat
19499 \end_layout
19500
19501 \end_inset
19502
19503  [
19504 \begin_inset Flex Code
19505 status collapsed
19506
19507 \begin_layout Plain Layout
19508 string
19509 \end_layout
19510
19511 \end_inset
19512
19513 =
19514 \begin_inset Quotes erd
19515 \end_inset
19516
19517
19518 \begin_inset Quotes erd
19519 \end_inset
19520
19521 ] A format for use with formatted references to this counter.
19522  For example, one might want to have references to section numbers appear
19523  as 
19524 \begin_inset Quotes eld
19525 \end_inset
19526
19527 Section 2.4
19528 \begin_inset Quotes erd
19529 \end_inset
19530
19531 .
19532  The string should contain 
19533 \begin_inset Quotes eld
19534 \end_inset
19535
19536 ##
19537 \begin_inset Quotes erd
19538 \end_inset
19539
19540 .
19541  This will be replaced by the counter number itself.
19542  So, for sections, it would be: Section ##.
19543 \end_layout
19544
19545 \begin_layout Description
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 Within
19551 \end_layout
19552
19553 \end_inset
19554
19555  [
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 string
19561 \end_layout
19562
19563 \end_inset
19564
19565 =
19566 \begin_inset Quotes erd
19567 \end_inset
19568
19569
19570 \begin_inset Quotes erd
19571 \end_inset
19572
19573 ] If this is set to the name of another counter, the present counter will
19574  be reset every time the other one is increased.
19575  For example, 
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 subsection
19581 \end_layout
19582
19583 \end_inset
19584
19585  is numbered inside 
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 section
19591 \end_layout
19592
19593 \end_inset
19594
19595 .
19596 \end_layout
19597
19598 \begin_layout Subsection
19599 Font description
19600 \begin_inset CommandInset label
19601 LatexCommand label
19602 name "subsec:Font-description"
19603
19604 \end_inset
19605
19606
19607 \end_layout
19608
19609 \begin_layout Standard
19610 A font description looks like this:
19611 \end_layout
19612
19613 \begin_layout LyX-Code
19614 Font 
19615 \family roman
19616 \emph on
19617 or
19618 \family default
19619 \emph default
19620  LabelFont
19621 \emph on
19622  or
19623 \emph default
19624  DefaultFont
19625 \end_layout
19626
19627 \begin_layout LyX-Code
19628  ...
19629 \end_layout
19630
19631 \begin_layout LyX-Code
19632 EndFont
19633 \end_layout
19634
19635 \begin_layout Standard
19636 The following commands are available:
19637 \end_layout
19638
19639 \begin_layout Description
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 Color
19645 \end_layout
19646
19647 \end_inset
19648
19649  [
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654
19655 \emph on
19656 none
19657 \end_layout
19658
19659 \end_inset
19660
19661
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 black
19667 \end_layout
19668
19669 \end_inset
19670
19671
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 white
19677 \end_layout
19678
19679 \end_inset
19680
19681
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 red
19687 \end_layout
19688
19689 \end_inset
19690
19691
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 green
19697 \end_layout
19698
19699 \end_inset
19700
19701
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 blue
19707 \end_layout
19708
19709 \end_inset
19710
19711
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 cyan
19717 \end_layout
19718
19719 \end_inset
19720
19721
19722 \begin_inset Flex Code
19723 status collapsed
19724
19725 \begin_layout Plain Layout
19726 magenta
19727 \end_layout
19728
19729 \end_inset
19730
19731
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736 yellow
19737 \end_layout
19738
19739 \end_inset
19740
19741 ]
19742 \end_layout
19743
19744 \begin_layout Description
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 Family
19750 \end_layout
19751
19752 \end_inset
19753
19754  [
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759
19760 \emph on
19761 Roman
19762 \end_layout
19763
19764 \end_inset
19765
19766
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 Sans
19772 \end_layout
19773
19774 \end_inset
19775
19776
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 Typewriter
19782 \end_layout
19783
19784 \end_inset
19785
19786 ]
19787 \end_layout
19788
19789 \begin_layout Description
19790 \begin_inset Flex Code
19791 status collapsed
19792
19793 \begin_layout Plain Layout
19794 Misc
19795 \end_layout
19796
19797 \end_inset
19798
19799  [
19800 \begin_inset Flex Code
19801 status collapsed
19802
19803 \begin_layout Plain Layout
19804 string
19805 \end_layout
19806
19807 \end_inset
19808
19809 ] Valid arguments are: 
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 emph
19815 \end_layout
19816
19817 \end_inset
19818
19819
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 noun
19825 \end_layout
19826
19827 \end_inset
19828
19829
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 strikeout
19835 \end_layout
19836
19837 \end_inset
19838
19839
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 underbar
19845 \end_layout
19846
19847 \end_inset
19848
19849
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 uuline
19855 \end_layout
19856
19857 \end_inset
19858
19859
19860 \begin_inset Flex Code
19861 status collapsed
19862
19863 \begin_layout Plain Layout
19864 uwave
19865 \end_layout
19866
19867 \end_inset
19868
19869
19870 \begin_inset Flex Code
19871 status collapsed
19872
19873 \begin_layout Plain Layout
19874 no_emph
19875 \end_layout
19876
19877 \end_inset
19878
19879
19880 \begin_inset Flex Code
19881 status collapsed
19882
19883 \begin_layout Plain Layout
19884 no_noun
19885 \end_layout
19886
19887 \end_inset
19888
19889
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 no_strikeout
19895 \end_layout
19896
19897 \end_inset
19898
19899
19900 \begin_inset Flex Code
19901 status collapsed
19902
19903 \begin_layout Plain Layout
19904 no_bar
19905 \end_layout
19906
19907 \end_inset
19908
19909
19910 \begin_inset Flex Code
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 no_uuline
19915 \end_layout
19916
19917 \end_inset
19918
19919  and 
19920 \begin_inset Flex Code
19921 status collapsed
19922
19923 \begin_layout Plain Layout
19924 no_uwave
19925 \end_layout
19926
19927 \end_inset
19928
19929 .
19930  Each of these turns on or off the corresponding attribute.
19931  For example, 
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 emph
19937 \end_layout
19938
19939 \end_inset
19940
19941  turns on emphasis, and 
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 no_emph
19947 \end_layout
19948
19949 \end_inset
19950
19951  turns it off.
19952  
19953 \begin_inset Newline newline
19954 \end_inset
19955
19956 If the latter seems puzzling, remember that the font settings for the present
19957  context are generally inherited from the surrounding context.
19958  So 
19959 \begin_inset Flex Code
19960 status collapsed
19961
19962 \begin_layout Plain Layout
19963 no_emph
19964 \end_layout
19965
19966 \end_inset
19967
19968  would turn off the emphasis that was anyway in effect, say, in a theorem
19969  environment.
19970 \end_layout
19971
19972 \begin_layout Description
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 Series
19978 \end_layout
19979
19980 \end_inset
19981
19982  [
19983 \begin_inset Flex Code
19984 status collapsed
19985
19986 \begin_layout Plain Layout
19987
19988 \emph on
19989 Medium
19990 \end_layout
19991
19992 \end_inset
19993
19994
19995 \begin_inset Flex Code
19996 status collapsed
19997
19998 \begin_layout Plain Layout
19999 Bold
20000 \end_layout
20001
20002 \end_inset
20003
20004
20005 \end_layout
20006
20007 \begin_layout Description
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 Shape
20013 \end_layout
20014
20015 \end_inset
20016
20017  [
20018 \begin_inset Flex Code
20019 status collapsed
20020
20021 \begin_layout Plain Layout
20022
20023 \emph on
20024 Up
20025 \end_layout
20026
20027 \end_inset
20028
20029
20030 \begin_inset Flex Code
20031 status collapsed
20032
20033 \begin_layout Plain Layout
20034 Italic
20035 \end_layout
20036
20037 \end_inset
20038
20039
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 SmallCaps
20045 \end_layout
20046
20047 \end_inset
20048
20049
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 Slanted
20055 \end_layout
20056
20057 \end_inset
20058
20059
20060 \end_layout
20061
20062 \begin_layout Description
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067 Size
20068 \end_layout
20069
20070 \end_inset
20071
20072  [
20073 \begin_inset Flex Code
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077 tiny
20078 \end_layout
20079
20080 \end_inset
20081
20082
20083 \begin_inset Flex Code
20084 status collapsed
20085
20086 \begin_layout Plain Layout
20087 small
20088 \end_layout
20089
20090 \end_inset
20091
20092
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097
20098 \emph on
20099 normal
20100 \end_layout
20101
20102 \end_inset
20103
20104
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 large
20110 \end_layout
20111
20112 \end_inset
20113
20114
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119 larger
20120 \end_layout
20121
20122 \end_inset
20123
20124
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 largest
20130 \end_layout
20131
20132 \end_inset
20133
20134
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 huge
20140 \end_layout
20141
20142 \end_inset
20143
20144
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 giant
20150 \end_layout
20151
20152 \end_inset
20153
20154 ]
20155 \end_layout
20156
20157 \begin_layout Subsection
20158 \begin_inset CommandInset label
20159 LatexCommand label
20160 name "subsec:Citation-format-description"
20161
20162 \end_inset
20163
20164 Citation format description
20165 \end_layout
20166
20167 \begin_layout Standard
20168 The 
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 CiteFormat
20174 \end_layout
20175
20176 \end_inset
20177
20178  blocks are used to describe how bibliographic information should be displayed,
20179  both within \SpecialChar LyX
20180  itself (in the citation dialog and in tooltips, for example)
20181  and in XHTML output.
20182  Such a block might look like this:
20183 \end_layout
20184
20185 \begin_layout LyX-Code
20186 CiteFormat
20187 \end_layout
20188
20189 \begin_layout LyX-Code
20190  article ...
20191 \end_layout
20192
20193 \begin_layout LyX-Code
20194  book ...
20195 \end_layout
20196
20197 \begin_layout LyX-Code
20198 End
20199 \end_layout
20200
20201 \begin_layout Standard
20202 The individual lines define how the bibliographic information associated
20203  with an article or book, respectively, is to be displayed, and such a definitio
20204 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20205  file.
20206  \SpecialChar LyX
20207  defines a default format in the source code that will be used if no specific
20208  definition has been given.
20209  \SpecialChar LyX
20210  predefines several formats in the file 
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 stdciteformats.inc
20216 \end_layout
20217
20218 \end_inset
20219
20220 , which is included in most of \SpecialChar LyX
20221 's document classes.
20222 \end_layout
20223
20224 \begin_layout Standard
20225 The definitions use a simple language that allows Bib\SpecialChar TeX
20226  keys to be replaced
20227  with their values.
20228  Keys should be enclosed in 
20229 \begin_inset Flex Code
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233 %
20234 \end_layout
20235
20236 \end_inset
20237
20238  signs, e.g.: 
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 %author%
20244 \end_layout
20245
20246 \end_inset
20247
20248 .
20249  So a simple definition might look like this:
20250 \end_layout
20251
20252 \begin_layout LyX-Code
20253 misc %author%, 
20254 \begin_inset Quotes eld
20255 \end_inset
20256
20257 %title
20258 \begin_inset Quotes erd
20259 \end_inset
20260
20261 .
20262 \end_layout
20263
20264 \begin_layout Standard
20265 This would print the author, followed by a comma, followed by the title,
20266  in quotes, followed by a period.
20267 \end_layout
20268
20269 \begin_layout Standard
20270 Of course, sometimes you may want to print a key only if it exists.
20271  This can be done by using a conditional construction, such as: 
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 {%volume%[[vol.
20277 \begin_inset space ~
20278 \end_inset
20279
20280 %volume%]]}
20281 \end_layout
20282
20283 \end_inset
20284
20285 .
20286  This says: If the 
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 volume
20292 \end_layout
20293
20294 \end_inset
20295
20296  key exists, then print 
20297 \begin_inset Quotes eld
20298 \end_inset
20299
20300 vol.
20301 \begin_inset space ~
20302 \end_inset
20303
20304
20305 \begin_inset Quotes erd
20306 \end_inset
20307
20308  followed by the volume key.
20309  It is also possible to have an else clause in the conditional, such as:
20310 \begin_inset Newline newline
20311 \end_inset
20312
20313
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 {%author%[[%author%]][[%editor%, ed.]]}
20319 \end_layout
20320
20321 \end_inset
20322
20323 .
20324 \begin_inset Newline newline
20325 \end_inset
20326
20327 Here, the 
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332 author
20333 \end_layout
20334
20335 \end_inset
20336
20337  key is printed if it exists; otherwise, the editor key is printed, followed
20338  by 
20339 \begin_inset Quotes eld
20340 \end_inset
20341
20342 ,
20343 \begin_inset space ~
20344 \end_inset
20345
20346 ed.
20347 \begin_inset Quotes erd
20348 \end_inset
20349
20350  Note that the key is again enclosed in 
20351 \begin_inset Flex Code
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 %
20356 \end_layout
20357
20358 \end_inset
20359
20360  signs; the entire conditional is enclosed in braces; and the if and else
20361  clauses are enclosed in double brackets, 
20362 \begin_inset Quotes eld
20363 \end_inset
20364
20365
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 [[
20371 \end_layout
20372
20373 \end_inset
20374
20375
20376 \begin_inset Quotes eld
20377 \end_inset
20378
20379  and 
20380 \begin_inset Quotes eld
20381 \end_inset
20382
20383
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 ]]
20389 \end_layout
20390
20391 \end_inset
20392
20393
20394 \begin_inset Quotes erd
20395 \end_inset
20396
20397 .
20398  There must be no space between any of these.
20399 \end_layout
20400
20401 \begin_layout Standard
20402 There is one other piece of syntax available in definitions, which looks
20403  like this: 
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 {!<i>!}
20409 \end_layout
20410
20411 \end_inset
20412
20413 .
20414  This defines a piece of formatting information that is to be used when
20415  creating 
20416 \begin_inset Quotes eld
20417 \end_inset
20418
20419 rich text
20420 \begin_inset Quotes erd
20421 \end_inset
20422
20423 .
20424  Obviously, we do not want to output HTML tags when writing plain text,
20425  so they should be wrapped in 
20426 \begin_inset Quotes eld
20427 \end_inset
20428
20429 {!
20430 \begin_inset Quotes erd
20431 \end_inset
20432
20433  and 
20434 \begin_inset Quotes eld
20435 \end_inset
20436
20437 !}
20438 \begin_inset Quotes erd
20439 \end_inset
20440
20441 .
20442 \end_layout
20443
20444 \begin_layout Standard
20445 Two special sorts of definitions are also possible in a 
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 CiteFormat
20451 \end_layout
20452
20453 \end_inset
20454
20455  block.
20456  An example of the first would be:
20457 \end_layout
20458
20459 \begin_layout LyX-Code
20460 !quotetitle 
20461 \begin_inset Quotes eld
20462 \end_inset
20463
20464 %title%
20465 \begin_inset Quotes erd
20466 \end_inset
20467
20468
20469 \end_layout
20470
20471 \begin_layout Standard
20472 This is an abbreviation, or macro, and it can be used by treating it as
20473  if it were a key: 
20474 \begin_inset Flex Code
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 %!quotetitle%
20479 \end_layout
20480
20481 \end_inset
20482
20483 .
20484  \SpecialChar LyX
20485  will treat 
20486 \begin_inset Flex Code
20487 status collapsed
20488
20489 \begin_layout Plain Layout
20490 %!quotetitle%
20491 \end_layout
20492
20493 \end_inset
20494
20495  exactly as it would treat its definition.
20496  So, let us issue the obvious 
20497 \emph on
20498 warning
20499 \emph default
20500 .
20501  Do not do this:
20502 \end_layout
20503
20504 \begin_layout LyX-Code
20505 !funfun %funfun%
20506 \end_layout
20507
20508 \begin_layout Standard
20509 or anything like it.
20510  \SpecialChar LyX
20511  shouldn't go into an infinite loop, but it may go into a long one before
20512  it gives up.
20513 \end_layout
20514
20515 \begin_layout Standard
20516 The second sort of special definition might look like this:
20517 \end_layout
20518
20519 \begin_layout LyX-Code
20520 _pptext pp.
20521 \end_layout
20522
20523 \begin_layout Standard
20524 This defines a translatable piece of text, which allows relevant parts of
20525  the bibliography to be translated.
20526  It can be included in a definition by treating it as a key: 
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 %_pptext%
20532 \end_layout
20533
20534 \end_inset
20535
20536 .
20537  Several of these are predefined in 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 stdciteformats.inc
20543 \end_layout
20544
20545 \end_inset
20546
20547 .
20548  Note that these are not macros, in the sense just defined.
20549  They will not be expanded.
20550 \end_layout
20551
20552 \begin_layout Standard
20553 So here then is an example that use all these features:
20554 \begin_inset VSpace defskip
20555 \end_inset
20556
20557
20558 \end_layout
20559
20560 \begin_layout Standard
20561 \noindent
20562
20563 \family typewriter
20564 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20565 \end_layout
20566
20567 \begin_layout Standard
20568 \begin_inset VSpace defskip
20569 \end_inset
20570
20571 This defines a macro that prints the author, followed by a comma, if the
20572  
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 author
20578 \end_layout
20579
20580 \end_inset
20581
20582  key is defined, or else prints the name of the editor, followed by the
20583  
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 _edtext
20589 \end_layout
20590
20591 \end_inset
20592
20593  or its translation (it is by default 
20594 \begin_inset Quotes eld
20595 \end_inset
20596
20597 ed.
20598 \begin_inset Quotes erd
20599 \end_inset
20600
20601 ), if the 
20602 \begin_inset Flex Code
20603 status collapsed
20604
20605 \begin_layout Plain Layout
20606 editor
20607 \end_layout
20608
20609 \end_inset
20610
20611  key is defined.
20612  Note that this is in fact defined in 
20613 \begin_inset Flex Code
20614 status collapsed
20615
20616 \begin_layout Plain Layout
20617 stdciteformats.inc
20618 \end_layout
20619
20620 \end_inset
20621
20622 , so you can use it in your own definitions, or re-definitions, if you load
20623  that file first.
20624 \end_layout
20625
20626 \begin_layout Section
20627 \begin_inset CommandInset label
20628 LatexCommand label
20629 name "sec:Tags-for-XHTML"
20630
20631 \end_inset
20632
20633 Tags for XHTML output
20634 \end_layout
20635
20636 \begin_layout Standard
20637 As with \SpecialChar LaTeX
20638  or DocBook, the format of \SpecialChar LyX
20639 's XHTML output is also controlled by
20640  layout information.
20641  In general, \SpecialChar LyX
20642  provides sensible defaults and, as mentioned earlier, it will
20643  even construct default CSS style rules from the other layout tags.
20644  For example, \SpecialChar LyX
20645  will attempt to use the information provided in the 
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 Font
20651 \end_layout
20652
20653 \end_inset
20654
20655  declaration for the Chapter style to write CSS that will appropriately
20656  format chapter headings.
20657 \end_layout
20658
20659 \begin_layout Standard
20660 In many cases, then, you may not have to do anything at all to get acceptable
20661  XHTML output for your own environments, custom insets, and so forth.
20662  But in some cases you will, and so \SpecialChar LyX
20663  provides a number of layout tags that
20664  can be used to customize the XHTML and CSS that are generated.
20665 \end_layout
20666
20667 \begin_layout Standard
20668 Note that there are two tags, 
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 HTMLPreamble
20674 \end_layout
20675
20676 \end_inset
20677
20678  and 
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 AddToHTMLPreamble
20684 \end_layout
20685
20686 \end_inset
20687
20688  that may appear outside style and inset declarations.
20689  See 
20690 \begin_inset CommandInset ref
20691 LatexCommand ref
20692 reference "subsec:General-text-class"
20693
20694 \end_inset
20695
20696  for details on these.
20697 \end_layout
20698
20699 \begin_layout Subsection
20700 \begin_inset CommandInset label
20701 LatexCommand label
20702 name "subsec:Paragraph-Style-XHTML"
20703
20704 \end_inset
20705
20706 Paragraph styles
20707 \end_layout
20708
20709 \begin_layout Standard
20710 The sort of XHTML \SpecialChar LyX
20711  outputs for a paragraph depends upon whether we are dealing
20712  with a normal paragraph, a command, or an environment, where this is itself
20713  determined by the contents of the corresponding 
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 \SpecialChar LaTeX
20719 Type
20720 \end_layout
20721
20722 \end_inset
20723
20724  tag.
20725  
20726 \end_layout
20727
20728 \begin_layout Standard
20729 For a command or normal paragraph, the output XHTML has the following form:
20730 \end_layout
20731
20732 \begin_layout LyX-Code
20733 <tag attr=
20734 \begin_inset Quotes erd
20735 \end_inset
20736
20737 value
20738 \begin_inset Quotes erd
20739 \end_inset
20740
20741 >
20742 \end_layout
20743
20744 \begin_layout LyX-Code
20745 <labeltag attr=
20746 \begin_inset Quotes erd
20747 \end_inset
20748
20749 value
20750 \begin_inset Quotes erd
20751 \end_inset
20752
20753 >Label</labeltag>
20754 \end_layout
20755
20756 \begin_layout LyX-Code
20757 Contents of the paragraph.
20758 \end_layout
20759
20760 \begin_layout LyX-Code
20761 </tag>
20762 \end_layout
20763
20764 \begin_layout Standard
20765 The label tags are of course omitted if the paragraph does not have a label.
20766 \end_layout
20767
20768 \begin_layout Standard
20769 For an environment that is not some sort of list, the XHTML takes this form:
20770 \end_layout
20771
20772 \begin_layout LyX-Code
20773 <tag attr=
20774 \begin_inset Quotes erd
20775 \end_inset
20776
20777 value
20778 \begin_inset Quotes erd
20779 \end_inset
20780
20781 >
20782 \end_layout
20783
20784 \begin_layout LyX-Code
20785 <itemtag attr=
20786 \begin_inset Quotes erd
20787 \end_inset
20788
20789 value
20790 \begin_inset Quotes erd
20791 \end_inset
20792
20793 ><labeltag attr=
20794 \begin_inset Quotes erd
20795 \end_inset
20796
20797 value
20798 \begin_inset Quotes erd
20799 \end_inset
20800
20801 >Environment Label</labeltag>First paragraph.</itemtag>
20802 \end_layout
20803
20804 \begin_layout LyX-Code
20805 <itemtag>Second paragraph.</itemtag>
20806 \end_layout
20807
20808 \begin_layout LyX-Code
20809 </tag>
20810 \end_layout
20811
20812 \begin_layout Standard
20813 Note that the label is output only for the first paragraph, as it should
20814  be for a theorem, for example.
20815  
20816 \end_layout
20817
20818 \begin_layout Standard
20819 For a list, we have one of these forms:
20820 \end_layout
20821
20822 \begin_layout LyX-Code
20823 <tag attr=
20824 \begin_inset Quotes erd
20825 \end_inset
20826
20827 value
20828 \begin_inset Quotes erd
20829 \end_inset
20830
20831 >
20832 \end_layout
20833
20834 \begin_layout LyX-Code
20835 <itemtag attr=
20836 \begin_inset Quotes erd
20837 \end_inset
20838
20839 value
20840 \begin_inset Quotes erd
20841 \end_inset
20842
20843 ><labeltag attr=
20844 \begin_inset Quotes erd
20845 \end_inset
20846
20847 value
20848 \begin_inset Quotes erd
20849 \end_inset
20850
20851 >List Label</labeltag>First item.</itemtag>
20852 \end_layout
20853
20854 \begin_layout LyX-Code
20855 <itemtag attr=
20856 \begin_inset Quotes erd
20857 \end_inset
20858
20859 value
20860 \begin_inset Quotes erd
20861 \end_inset
20862
20863 ><labeltag attr=
20864 \begin_inset Quotes erd
20865 \end_inset
20866
20867 value
20868 \begin_inset Quotes erd
20869 \end_inset
20870
20871 >List Label</labeltag>Second item.</itemtag>
20872 \end_layout
20873
20874 \begin_layout LyX-Code
20875 </tag>
20876 \end_layout
20877
20878 \begin_layout LyX-Code
20879
20880 \end_layout
20881
20882 \begin_layout LyX-Code
20883 <tag attr=
20884 \begin_inset Quotes erd
20885 \end_inset
20886
20887 value
20888 \begin_inset Quotes erd
20889 \end_inset
20890
20891 >
20892 \end_layout
20893
20894 \begin_layout LyX-Code
20895 <labeltag attr=
20896 \begin_inset Quotes erd
20897 \end_inset
20898
20899 value
20900 \begin_inset Quotes erd
20901 \end_inset
20902
20903 >List Label</labeltag><itemtag attr=
20904 \begin_inset Quotes erd
20905 \end_inset
20906
20907 value
20908 \begin_inset Quotes erd
20909 \end_inset
20910
20911 >First item.</itemtag>
20912 \end_layout
20913
20914 \begin_layout LyX-Code
20915 <labeltag attr=
20916 \begin_inset Quotes erd
20917 \end_inset
20918
20919 value
20920 \begin_inset Quotes erd
20921 \end_inset
20922
20923 >List Label</labeltag><itemtag attr=
20924 \begin_inset Quotes erd
20925 \end_inset
20926
20927 value
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931 >Second item.</itemtag>
20932 \end_layout
20933
20934 \begin_layout LyX-Code
20935 </tag>
20936 \end_layout
20937
20938 \begin_layout Standard
20939 Note the different orders of 
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 labeltag
20945 \end_layout
20946
20947 \end_inset
20948
20949  and 
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 itemtag
20955 \end_layout
20956
20957 \end_inset
20958
20959 .
20960  Which order we get depends upon the setting of 
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 HTMLLabelFirst
20966 \end_layout
20967
20968 \end_inset
20969
20970 : If 
20971 \begin_inset Flex Code
20972 status collapsed
20973
20974 \begin_layout Plain Layout
20975 HTMLLabelFirst
20976 \end_layout
20977
20978 \end_inset
20979
20980  is false (the default), you get the first of these, with the label within
20981  the item; if true, you get the second, with the label outside the item.
20982 \end_layout
20983
20984 \begin_layout Standard
20985 The specific tags and attributes output for each paragraph type can be controlle
20986 d by means of the layout tags we are about to describe.
20987  As mentioned earlier, however, \SpecialChar LyX
20988  uses sensible defaults for many of these,
20989  so you often may not need to do very much to get good XHTML output.
20990  Think of the available tags as there so you can tweak things to your liking.
20991 \end_layout
20992
20993 \begin_layout Description
20994 \begin_inset Flex Code
20995 status collapsed
20996
20997 \begin_layout Plain Layout
20998 HTMLAttr
20999 \end_layout
21000
21001 \end_inset
21002
21003  [
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 string
21009 \end_layout
21010
21011 \end_inset
21012
21013 ] Specifies attribute information to be output with the main tag.
21014  For example, 
21015 \begin_inset Quotes eld
21016 \end_inset
21017
21018
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 class=`mydiv'
21024 \end_layout
21025
21026 \end_inset
21027
21028
21029 \begin_inset Quotes erd
21030 \end_inset
21031
21032 .
21033  By default, \SpecialChar LyX
21034  will output 
21035 \begin_inset Quotes eld
21036 \end_inset
21037
21038
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043 class=`layoutname'
21044 \end_layout
21045
21046 \end_inset
21047
21048
21049 \begin_inset Quotes erd
21050 \end_inset
21051
21052 , where 
21053 \begin_inset Flex Code
21054 status collapsed
21055
21056 \begin_layout Plain Layout
21057 layoutname
21058 \end_layout
21059
21060 \end_inset
21061
21062  is the \SpecialChar LyX
21063  name of the layout, made lowercase, for example: chapter.
21064  This should 
21065 \emph on
21066 not
21067 \emph default
21068  contain any style information.
21069  Use 
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074 HTMLStyle
21075 \end_layout
21076
21077 \end_inset
21078
21079  for that purpose.
21080 \end_layout
21081
21082 \begin_layout Description
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 HTMLForceCSS
21088 \end_layout
21089
21090 \end_inset
21091
21092  [
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097
21098 \emph on
21099 0
21100 \emph default
21101 ,1
21102 \end_layout
21103
21104 \end_inset
21105
21106 ] Whether to output the default CSS information \SpecialChar LyX
21107  generates for this layout,
21108  even if additional information is explicitly provided via 
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 HTMLStyle
21114 \end_layout
21115
21116 \end_inset
21117
21118 .
21119  Setting this to 
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124 1
21125 \end_layout
21126
21127 \end_inset
21128
21129  allows you to alter or augment the generated CSS, rather than to override
21130  it completely.
21131  Default is 
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 0
21137 \end_layout
21138
21139 \end_inset
21140
21141 .
21142 \end_layout
21143
21144 \begin_layout Description
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 HTMLItem
21150 \end_layout
21151
21152 \end_inset
21153
21154  [
21155 \begin_inset Flex Code
21156 status collapsed
21157
21158 \begin_layout Plain Layout
21159 string
21160 \end_layout
21161
21162 \end_inset
21163
21164 ] The tag to be used for individual paragraphs of environments, replacing
21165  
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 itemtag
21171 \end_layout
21172
21173 \end_inset
21174
21175  in the examples above.
21176  Defaults to 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 div
21182 \end_layout
21183
21184 \end_inset
21185
21186 .
21187 \end_layout
21188
21189 \begin_layout Description
21190 \begin_inset Flex Code
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194 HTMLItemAttr
21195 \end_layout
21196
21197 \end_inset
21198
21199  [
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 string
21205 \end_layout
21206
21207 \end_inset
21208
21209 ] Attributes for the item tag.
21210  Defaults to 
21211 \begin_inset Quotes eld
21212 \end_inset
21213
21214
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219 class=`layoutname_item'
21220 \end_layout
21221
21222 \end_inset
21223
21224
21225 \begin_inset Quotes erd
21226 \end_inset
21227
21228 .
21229  This should 
21230 \emph on
21231 not
21232 \emph default
21233  contain any style information.
21234  Use 
21235 \begin_inset Flex Code
21236 status collapsed
21237
21238 \begin_layout Plain Layout
21239 HTMLStyle
21240 \end_layout
21241
21242 \end_inset
21243
21244  for that purpose.
21245 \end_layout
21246
21247 \begin_layout Description
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 HTMLLabel
21253 \end_layout
21254
21255 \end_inset
21256
21257  [
21258 \begin_inset Flex Code
21259 status collapsed
21260
21261 \begin_layout Plain Layout
21262 string
21263 \end_layout
21264
21265 \end_inset
21266
21267 ] The tag to be used for paragraph and item labels, replacing 
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 labeltag
21273 \end_layout
21274
21275 \end_inset
21276
21277  in the examples above.
21278  Defaults to 
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 span
21284 \end_layout
21285
21286 \end_inset
21287
21288 , unless 
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 LabelType
21294 \end_layout
21295
21296 \end_inset
21297
21298  is either 
21299 \begin_inset Flex Code
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303 Top_Environment
21304 \end_layout
21305
21306 \end_inset
21307
21308  or 
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 Centered_Top_Environment
21314 \end_layout
21315
21316 \end_inset
21317
21318 , in which case it defaults to 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 div
21324 \end_layout
21325
21326 \end_inset
21327
21328 .
21329 \end_layout
21330
21331 \begin_layout Description
21332 \begin_inset Flex Code
21333 status collapsed
21334
21335 \begin_layout Plain Layout
21336 HTMLLabelAttr
21337 \end_layout
21338
21339 \end_inset
21340
21341  [
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 string
21347 \end_layout
21348
21349 \end_inset
21350
21351 ] Attributes for the label tag.
21352  Defaults to 
21353 \begin_inset Quotes eld
21354 \end_inset
21355
21356
21357 \begin_inset Flex Code
21358 status collapsed
21359
21360 \begin_layout Plain Layout
21361 class=`layoutname_label'
21362 \end_layout
21363
21364 \end_inset
21365
21366
21367 \begin_inset Quotes erd
21368 \end_inset
21369
21370 .
21371  This should 
21372 \emph on
21373 not
21374 \emph default
21375  contain any style information.
21376  Use 
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 HTMLStyle
21382 \end_layout
21383
21384 \end_inset
21385
21386  for that purpose.
21387 \end_layout
21388
21389 \begin_layout Description
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 HTMLLabelFirst
21395 \end_layout
21396
21397 \end_inset
21398
21399  [
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404
21405 \emph on
21406 0
21407 \emph default
21408 ,1
21409 \end_layout
21410
21411 \end_inset
21412
21413 ] Meaningful only for list-like environments, this tag controls whether
21414  the label tag is output before or inside the item tag.
21415  This is used, for example, in the description environment, where we want
21416  `
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 <dt>\SpecialChar ldots
21422 </dt><dd>\SpecialChar ldots
21423 </dd>
21424 \end_layout
21425
21426 \end_inset
21427
21428 .
21429  Default is 
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 0
21435 \end_layout
21436
21437 \end_inset
21438
21439 : The label tag is output inside the item tag.
21440 \end_layout
21441
21442 \begin_layout Description
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 HTMLPreamble
21448 \end_layout
21449
21450 \end_inset
21451
21452  Information to be output in the 
21453 \begin_inset Flex Code
21454 status collapsed
21455
21456 \begin_layout Plain Layout
21457 <head>
21458 \end_layout
21459
21460 \end_inset
21461
21462  section when this style is used.
21463  This might, for example, be used to include a 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 <script>
21469 \end_layout
21470
21471 \end_inset
21472
21473  block defining an 
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 onclick
21479 \end_layout
21480
21481 \end_inset
21482
21483  handler.
21484 \end_layout
21485
21486 \begin_layout Description
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 HTMLStyle
21492 \end_layout
21493
21494 \end_inset
21495
21496  CSS style information to be included when this style is used.
21497  Note that this will automatically be wrapped in a layout-generated 
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 <style>
21503 \end_layout
21504
21505 \end_inset
21506
21507  block, so only the CSS itself need be included.
21508  Must end with 
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 EndHTMLStyle
21514 \end_layout
21515
21516 \end_inset
21517
21518 .
21519 \end_layout
21520
21521 \begin_layout Description
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 HTMLTag
21527 \end_layout
21528
21529 \end_inset
21530
21531  [
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 string
21537 \end_layout
21538
21539 \end_inset
21540
21541 ] The tag to be used for the main label, replacing 
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 tag
21547 \end_layout
21548
21549 \end_inset
21550
21551  in the examples above.
21552  Defaults to 
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 div
21558 \end_layout
21559
21560 \end_inset
21561
21562 .
21563 \end_layout
21564
21565 \begin_layout Description
21566 \begin_inset Flex Code
21567 status collapsed
21568
21569 \begin_layout Plain Layout
21570 HTMLTitle
21571 \end_layout
21572
21573 \end_inset
21574
21575  [
21576 \begin_inset Flex Code
21577 status collapsed
21578
21579 \begin_layout Plain Layout
21580
21581 \emph on
21582 0
21583 \emph default
21584 ,1
21585 \end_layout
21586
21587 \end_inset
21588
21589 ] Marks this style as the one to be used to generate the 
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 <title>
21595 \end_layout
21596
21597 \end_inset
21598
21599  tag for the XHTML file.
21600  By default, it is false.
21601  The 
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 stdtitle.inc
21607 \end_layout
21608
21609 \end_inset
21610
21611  file sets it to true for the 
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 title
21617 \end_layout
21618
21619 \end_inset
21620
21621  environment.
21622  
21623 \end_layout
21624
21625 \begin_layout Subsection
21626 InsetLayout XHTML
21627 \end_layout
21628
21629 \begin_layout Standard
21630 The XHTML output of insets can also be controlled by information in layout
21631  files.
21632 \begin_inset Foot
21633 status collapsed
21634
21635 \begin_layout Plain Layout
21636 At present, this is true only for 
21637 \begin_inset Quotes eld
21638 \end_inset
21639
21640 text
21641 \begin_inset Quotes erd
21642 \end_inset
21643
21644  insets (insets you can type into) and is not true for 
21645 \begin_inset Quotes eld
21646 \end_inset
21647
21648 command
21649 \begin_inset Quotes erd
21650 \end_inset
21651
21652  insets (insets that are associated with dialog boxes).
21653 \end_layout
21654
21655 \end_inset
21656
21657  Here, too, \SpecialChar LyX
21658  tries to provide sensible defaults, and it constructs default
21659  CSS style rules.
21660  But everything can be customized.
21661 \end_layout
21662
21663 \begin_layout Standard
21664 The XHTML \SpecialChar LyX
21665  outputs for an inset has the following form:
21666 \end_layout
21667
21668 \begin_layout LyX-Code
21669 <tag attr=
21670 \begin_inset Quotes erd
21671 \end_inset
21672
21673 value
21674 \begin_inset Quotes erd
21675 \end_inset
21676
21677 >
21678 \end_layout
21679
21680 \begin_layout LyX-Code
21681 <labeltag>Label</labeltag>
21682 \end_layout
21683
21684 \begin_layout LyX-Code
21685 <innertag attr=
21686 \begin_inset Quotes erd
21687 \end_inset
21688
21689 value
21690 \begin_inset Quotes erd
21691 \end_inset
21692
21693 >Contents of the inset.</innertag>
21694 \end_layout
21695
21696 \begin_layout LyX-Code
21697 </tag>
21698 \end_layout
21699
21700 \begin_layout Standard
21701 If the inset permits multiple paragraphs—that is, if 
21702 \begin_inset Flex Code
21703 status collapsed
21704
21705 \begin_layout Plain Layout
21706 MultiPar
21707 \end_layout
21708
21709 \end_inset
21710
21711  is true—then the contents of the inset will itself be output as paragraphs
21712  formatted according to the styles used for those paragraphs (standard,
21713  quote, and the like).
21714  The label tag is of course omitted if the paragraph does not have a label
21715  and, at present, is always 
21716 \begin_inset Flex Code
21717 status collapsed
21718
21719 \begin_layout Plain Layout
21720 span
21721 \end_layout
21722
21723 \end_inset
21724
21725 .
21726  The inner tag is optional and, by default, does not appear.
21727 \end_layout
21728
21729 \begin_layout Standard
21730 The specific tags and attributes output for each inset can be controlled
21731  by means of the following layout tags.
21732 \end_layout
21733
21734 \begin_layout Description
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739 HTMLAttr
21740 \end_layout
21741
21742 \end_inset
21743
21744  [
21745 \begin_inset Flex Code
21746 status collapsed
21747
21748 \begin_layout Plain Layout
21749 string
21750 \end_layout
21751
21752 \end_inset
21753
21754 ] Specifies attribute information to be output with the main tag.
21755  For example, 
21756 \begin_inset Quotes eld
21757 \end_inset
21758
21759
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764 class=`myinset' onclick=`\SpecialChar ldots
21765 '
21766 \end_layout
21767
21768 \end_inset
21769
21770
21771 \begin_inset Quotes erd
21772 \end_inset
21773
21774 .
21775  By default, \SpecialChar LyX
21776  will output 
21777 \begin_inset Quotes eld
21778 \end_inset
21779
21780
21781 \begin_inset Flex Code
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785 class=`insetname'
21786 \end_layout
21787
21788 \end_inset
21789
21790
21791 \begin_inset Quotes erd
21792 \end_inset
21793
21794 , where 
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 insetname
21800 \end_layout
21801
21802 \end_inset
21803
21804  is the \SpecialChar LyX
21805  name of the inset, made lowercase and with non-alphanumeric characters
21806  converted to underscores, for example: footnote.
21807 \end_layout
21808
21809 \begin_layout Description
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814 HTMLForceCSS
21815 \end_layout
21816
21817 \end_inset
21818
21819  [
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824
21825 \emph on
21826 0
21827 \emph default
21828 ,1
21829 \end_layout
21830
21831 \end_inset
21832
21833 ] Whether to output the default CSS information \SpecialChar LyX
21834  generates for this layout,
21835  even if additional information is explicitly provided via 
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 HTMLStyle
21841 \end_layout
21842
21843 \end_inset
21844
21845 .
21846  Setting this to 
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 1
21852 \end_layout
21853
21854 \end_inset
21855
21856  allows you to alter or augment the generated CSS, rather than to override
21857  it completely.
21858  Default is 0.
21859 \end_layout
21860
21861 \begin_layout Description
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866 HTMLInnerAttr
21867 \end_layout
21868
21869 \end_inset
21870
21871  [
21872 \begin_inset Flex Code
21873 status collapsed
21874
21875 \begin_layout Plain Layout
21876 string
21877 \end_layout
21878
21879 \end_inset
21880
21881 ] Attributes for the inner tag.
21882  Defaults to 
21883 \begin_inset Quotes eld
21884 \end_inset
21885
21886
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 class=`insetname_inner'
21892 \end_layout
21893
21894 \end_inset
21895
21896
21897 \begin_inset Quotes erd
21898 \end_inset
21899
21900 .
21901 \end_layout
21902
21903 \begin_layout Description
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 HTMLInnerTag
21909 \end_layout
21910
21911 \end_inset
21912
21913  [
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 string
21919 \end_layout
21920
21921 \end_inset
21922
21923 ] The inner tag, replacing 
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928 innertag
21929 \end_layout
21930
21931 \end_inset
21932
21933  in the examples above.
21934  By default, there is none.
21935 \end_layout
21936
21937 \begin_layout Description
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 HTMLIsBlock
21943 \end_layout
21944
21945 \end_inset
21946
21947  [
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 0,
21953 \emph on
21954 1
21955 \end_layout
21956
21957 \end_inset
21958
21959 ] Whether this inset represents a standalone block of text (such as a footnote)
21960  or instead represents material that is included in the surrounding text
21961  (such as a branch).
21962  Defaults to 1.
21963 \end_layout
21964
21965 \begin_layout Description
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 HTMLLabel
21971 \end_layout
21972
21973 \end_inset
21974
21975  [
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 string
21981 \end_layout
21982
21983 \end_inset
21984
21985 ] A label for this inset, possibly including a reference to a counter.
21986  For example, for footnote, it might be: 
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 \backslash
21993 arabic{footnote}
21994 \end_layout
21995
21996 \end_inset
21997
21998 .
21999  This is optional, and there is no default.
22000 \end_layout
22001
22002 \begin_layout Description
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 HTMLPreamble
22008 \end_layout
22009
22010 \end_inset
22011
22012  Information to be output in the 
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017 <head>
22018 \end_layout
22019
22020 \end_inset
22021
22022  section when this style is used.
22023  This might, for example, be used to include a 
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028 <script>
22029 \end_layout
22030
22031 \end_inset
22032
22033  block defining an 
22034 \begin_inset Flex Code
22035 status collapsed
22036
22037 \begin_layout Plain Layout
22038 onclick
22039 \end_layout
22040
22041 \end_inset
22042
22043  handler.
22044 \end_layout
22045
22046 \begin_layout Description
22047 \begin_inset Flex Code
22048 status collapsed
22049
22050 \begin_layout Plain Layout
22051 HTMLStyle
22052 \end_layout
22053
22054 \end_inset
22055
22056  CSS style information to be included when this style is used.
22057  Note that this will automatically be wrapped in a layout-generated 
22058 \begin_inset Flex Code
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062 <style>
22063 \end_layout
22064
22065 \end_inset
22066
22067  block, so only the CSS itself need be included.
22068 \end_layout
22069
22070 \begin_layout Description
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 HTMLTag
22076 \end_layout
22077
22078 \end_inset
22079
22080  [
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 string
22086 \end_layout
22087
22088 \end_inset
22089
22090 ] The tag to be used for the main label, replacing 
22091 \begin_inset Flex Code
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095 tag
22096 \end_layout
22097
22098 \end_inset
22099
22100  in the examples above.
22101  The default depends upon the setting of 
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 MultiPar
22107 \end_layout
22108
22109 \end_inset
22110
22111 : If 
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116 MultiPar
22117 \end_layout
22118
22119 \end_inset
22120
22121  is true, the default is 
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 div
22127 \end_layout
22128
22129 \end_inset
22130
22131 ; if it is false, the default is 
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 span
22137 \end_layout
22138
22139 \end_inset
22140
22141 .
22142 \end_layout
22143
22144 \begin_layout Subsection
22145 Float XHTML
22146 \end_layout
22147
22148 \begin_layout Standard
22149 The XHTML output for floats too can be controlled by layout information.
22150  The output has the following form:
22151 \end_layout
22152
22153 \begin_layout LyX-Code
22154 <tag attr=
22155 \begin_inset Quotes erd
22156 \end_inset
22157
22158 value
22159 \begin_inset Quotes erd
22160 \end_inset
22161
22162 >
22163 \end_layout
22164
22165 \begin_layout LyX-Code
22166 Contents of the float.
22167 \end_layout
22168
22169 \begin_layout LyX-Code
22170 </tag>
22171 \end_layout
22172
22173 \begin_layout Standard
22174 The caption, if there is one, is a separate inset and will be output as
22175  such.
22176  Its appearance can be controlled via the InsetLayout for caption insets.
22177  
22178 \end_layout
22179
22180 \begin_layout Description
22181 \begin_inset Flex Code
22182 status collapsed
22183
22184 \begin_layout Plain Layout
22185 HTMLAttr
22186 \end_layout
22187
22188 \end_inset
22189
22190  [
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195 string
22196 \end_layout
22197
22198 \end_inset
22199
22200 ] Specifies attribute information to be output with the main tag.
22201  For example, 
22202 \begin_inset Quotes eld
22203 \end_inset
22204
22205
22206 \begin_inset Flex Code
22207 status collapsed
22208
22209 \begin_layout Plain Layout
22210 class=`myfloat' onclick=`\SpecialChar ldots
22211 '
22212 \end_layout
22213
22214 \end_inset
22215
22216
22217 \begin_inset Quotes erd
22218 \end_inset
22219
22220 .
22221  By default, \SpecialChar LyX
22222  will output 
22223 \begin_inset Quotes eld
22224 \end_inset
22225
22226
22227 \begin_inset Flex Code
22228 status collapsed
22229
22230 \begin_layout Plain Layout
22231 class=`float float-floattype'
22232 \end_layout
22233
22234 \end_inset
22235
22236
22237 \begin_inset Quotes erd
22238 \end_inset
22239
22240 , where 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 floattype
22246 \end_layout
22247
22248 \end_inset
22249
22250  is \SpecialChar LyX
22251 's name for this type of float, as determined by the float declaration
22252  (see 
22253 \begin_inset CommandInset ref
22254 LatexCommand ref
22255 reference "subsec:Floats"
22256
22257 \end_inset
22258
22259 ), though made lowercase and with non-alphanumeric characters converted
22260  to underscores, for example: float-table.
22261 \end_layout
22262
22263 \begin_layout Description
22264 \begin_inset Flex Code
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 HTMLStyle
22269 \end_layout
22270
22271 \end_inset
22272
22273  CSS style information to be included when this float is used.
22274  Note that this will automatically be wrapped in a layout-generated 
22275 \begin_inset Flex Code
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279 <style>
22280 \end_layout
22281
22282 \end_inset
22283
22284  block, so only the CSS itself need be included.
22285 \end_layout
22286
22287 \begin_layout Description
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292 HTMLTag
22293 \end_layout
22294
22295 \end_inset
22296
22297  [
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 string
22303 \end_layout
22304
22305 \end_inset
22306
22307 ] The tag to be used for this float, replacing 
22308 \begin_inset Quotes eld
22309 \end_inset
22310
22311
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 tag
22317 \end_layout
22318
22319 \end_inset
22320
22321
22322 \begin_inset Quotes erd
22323 \end_inset
22324
22325  in the example above.
22326  The default is 
22327 \begin_inset Flex Code
22328 status collapsed
22329
22330 \begin_layout Plain Layout
22331 div
22332 \end_layout
22333
22334 \end_inset
22335
22336  and will rarely need changing.
22337 \end_layout
22338
22339 \begin_layout Subsection
22340 Bibliography formatting
22341 \end_layout
22342
22343 \begin_layout Standard
22344 The bibliography can be formatted using 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 CiteFormat
22350 \end_layout
22351
22352 \end_inset
22353
22354  blocks.
22355  See 
22356 \begin_inset CommandInset ref
22357 LatexCommand ref
22358 reference "subsec:Citation-format-description"
22359
22360 \end_inset
22361
22362  for the details.
22363 \end_layout
22364
22365 \begin_layout Subsection
22366 \SpecialChar LyX
22367 -generated CSS
22368 \end_layout
22369
22370 \begin_layout Standard
22371 We have several times mentioned that \SpecialChar LyX
22372  will generate default CSS style rules
22373  for both insets and paragraph styles, based upon the other layout information
22374  that is provided.
22375  In this section, we shall say a word about which layout information \SpecialChar LyX
22376  uses
22377  and how.
22378 \end_layout
22379
22380 \begin_layout Standard
22381 At present, \SpecialChar LyX
22382  auto-generates CSS only for font information, making use of
22383  the 
22384 \begin_inset Flex Code
22385 status collapsed
22386
22387 \begin_layout Plain Layout
22388 Family
22389 \end_layout
22390
22391 \end_inset
22392
22393
22394 \begin_inset Flex Code
22395 status collapsed
22396
22397 \begin_layout Plain Layout
22398 Series
22399 \end_layout
22400
22401 \end_inset
22402
22403
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 Shape
22409 \end_layout
22410
22411 \end_inset
22412
22413 , and 
22414 \begin_inset Flex Code
22415 status collapsed
22416
22417 \begin_layout Plain Layout
22418 Size
22419 \end_layout
22420
22421 \end_inset
22422
22423  specified in the 
22424 \begin_inset Flex Code
22425 status collapsed
22426
22427 \begin_layout Plain Layout
22428 Font
22429 \end_layout
22430
22431 \end_inset
22432
22433  declaration (see 
22434 \begin_inset CommandInset ref
22435 LatexCommand ref
22436 reference "subsec:Font-description"
22437
22438 \end_inset
22439
22440 ).
22441  The translation is mostly straightforward and obvious.
22442  For example, 
22443 \begin_inset Quotes eld
22444 \end_inset
22445
22446
22447 \begin_inset Flex Code
22448 status collapsed
22449
22450 \begin_layout Plain Layout
22451 Family Sans
22452 \end_layout
22453
22454 \end_inset
22455
22456
22457 \begin_inset Quotes erd
22458 \end_inset
22459
22460  becomes 
22461 \begin_inset Quotes eld
22462 \end_inset
22463
22464
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 font-family: sans-serif;
22470 \end_layout
22471
22472 \end_inset
22473
22474
22475 \begin_inset Quotes erd
22476 \end_inset
22477
22478 .
22479  The correspondence of \SpecialChar LyX
22480  sizes and CSS sizes is a little less obvious but
22481  nonetheless intuitive.
22482  See the 
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487 getSizeCSS()
22488 \end_layout
22489
22490 \end_inset
22491
22492  function in 
22493 \begin_inset Flex URL
22494 status collapsed
22495
22496 \begin_layout Plain Layout
22497
22498 src/FontInfo.cpp
22499 \end_layout
22500
22501 \end_inset
22502
22503  for the details.
22504 \end_layout
22505
22506 \begin_layout Chapter
22507 Including External Material
22508 \begin_inset CommandInset label
22509 LatexCommand label
22510 name "chap:Including-External-Material"
22511
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \begin_layout Standard
22518 \begin_inset Box Shadowbox
22519 position "t"
22520 hor_pos "c"
22521 has_inner_box 1
22522 inner_pos "t"
22523 use_parbox 0
22524 use_makebox 0
22525 width "100col%"
22526 special "none"
22527 height "1in"
22528 height_special "totalheight"
22529 thickness "0.4pt"
22530 separation "3pt"
22531 shadowsize "4pt"
22532 framecolor "black"
22533 backgroundcolor "none"
22534 status open
22535
22536 \begin_layout Plain Layout
22537 WARNING: This portion of the documentation has not been updated for some
22538  time.
22539  We certainly hope that it is still accurate, but there are no guarantees.
22540 \end_layout
22541
22542 \end_inset
22543
22544
22545 \end_layout
22546
22547 \begin_layout Standard
22548 The use of material from sources external to \SpecialChar LyX
22549  is covered in detail in the
22550  
22551 \emph on
22552 Embedded Objects
22553 \emph default
22554  manual.
22555  This part of the manual covers what needs to happen behind the scenes for
22556  new sorts of material to be included.
22557 \end_layout
22558
22559 \begin_layout Section
22560 How does it work?
22561 \end_layout
22562
22563 \begin_layout Standard
22564 The external material feature is based on the concept of a 
22565 \emph on
22566 template
22567 \emph default
22568 .
22569  A template is a specification of how \SpecialChar LyX
22570  should interface with a certain kind
22571  of material.
22572  As bundled, \SpecialChar LyX
22573  comes with predefined templates for Xfig figures, various
22574  raster format images, chess diagrams, and LilyPond music notation.
22575  You can check the actual list by using the menu 
22576 \begin_inset Flex MenuItem
22577 status collapsed
22578
22579 \begin_layout Plain Layout
22580 Insert\SpecialChar menuseparator
22581 File\SpecialChar menuseparator
22582 External Material
22583 \end_layout
22584
22585 \end_inset
22586
22587 .
22588  Furthermore, it is possible to roll your own template to support a specific
22589  kind of material.
22590  Later we'll describe in more detail what is involved, and hopefully you
22591  will submit all the templates you create so we can include them in a later
22592  \SpecialChar LyX
22593  version.
22594 \end_layout
22595
22596 \begin_layout Standard
22597 Another basic idea of the external material feature is to distinguish between
22598  the original file that serves as a base for final material and the produced
22599  file that is included in your exported or printed document.
22600  For example, consider the case of a figure produced with 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 Xfig
22606 \end_layout
22607
22608 \end_inset
22609
22610 .
22611  The Xfig application itself works on an original file with the 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 .fig
22617 \end_layout
22618
22619 \end_inset
22620
22621  extension.
22622  Within Xfig, you create and change your figure, and when you are done,
22623  you save the 
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 fig
22629 \end_layout
22630
22631 \end_inset
22632
22633 -file.
22634  When you want to include the figure in your document, you invoke 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639 transfig
22640 \end_layout
22641
22642 \end_inset
22643
22644  in order to create a PostScript file that can readily be included in your
22645  \SpecialChar LaTeX
22646  file.
22647  In this case, the 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 .fig
22653 \end_layout
22654
22655 \end_inset
22656
22657  file is the original file, and the PostScript file is the produced file.
22658 \end_layout
22659
22660 \begin_layout Standard
22661 This distinction is important in order to allow updating of the material
22662  while you are in the process of writing the document.
22663  Furthermore, it provides us with the flexibility that is needed to support
22664  multiple export formats.
22665  For instance, in the case of a plain text file, it is not exactly an award-winn
22666 ing idea to include the figure as raw PostScript.
22667  Instead, you would either prefer to just include a reference to the figure
22668  or try to invoke some graphics to ASCII converter to make the final result
22669  look similar to the real graphics.
22670  The external material management allows you to do this, because it is parametri
22671 zed on the different export formats that \SpecialChar LyX
22672  supports.
22673 \end_layout
22674
22675 \begin_layout Standard
22676 Besides supporting the production of different products according to the
22677  exported format, it supports tight integration with editing and viewing
22678  applications.
22679  In the case of an Xfig figure, you are able to invoke Xfig on the original
22680  file with a single click from within the external material dialog in \SpecialChar LyX
22681 ,
22682  and also preview the produced PostScript file with Ghostview with another
22683  click.
22684  No more fiddling around with the command line and/or file browsers to locate
22685  and manipulate the original or produced files.
22686  In this way, you are finally able to take full advantage of the many different
22687  applications that are relevant to use when you write your documents, and
22688  ultimately be more productive.
22689 \end_layout
22690
22691 \begin_layout Section
22692 The external template configuration file
22693 \end_layout
22694
22695 \begin_layout Standard
22696 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22697 .
22698  However, be aware that doing this in an careless manner most probably 
22699 \emph on
22700 will
22701 \emph default
22702  introduce an easily exploitable security hole.
22703  So before you do this, please read the discussion about security in 
22704 \begin_inset CommandInset ref
22705 LatexCommand ref
22706 reference "sec:Security-discussion"
22707
22708 \end_inset
22709
22710 .
22711 \end_layout
22712
22713 \begin_layout Standard
22714 Having said that, we encourage you to submit any interesting templates that
22715  you create.
22716  
22717 \end_layout
22718
22719 \begin_layout Standard
22720 The external templates are defined in the 
22721 \begin_inset Flex Code
22722 status collapsed
22723
22724 \begin_layout Plain Layout
22725 LyXDir/lib/external_templates
22726 \end_layout
22727
22728 \end_inset
22729
22730  file.
22731  You can place your own version in 
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 UserDir/external_templates
22737 \end_layout
22738
22739 \end_inset
22740
22741 .
22742 \end_layout
22743
22744 \begin_layout Standard
22745 A typical template looks like this:
22746 \end_layout
22747
22748 \begin_layout LyX-Code
22749 Template XFig
22750 \end_layout
22751
22752 \begin_layout LyX-Code
22753 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22754 \end_layout
22755
22756 \begin_layout LyX-Code
22757 HelpText
22758 \end_layout
22759
22760 \begin_layout LyX-Code
22761 An XFig figure.
22762 \end_layout
22763
22764 \begin_layout LyX-Code
22765 HelpTextEnd
22766 \end_layout
22767
22768 \begin_layout LyX-Code
22769 InputFormat fig
22770 \end_layout
22771
22772 \begin_layout LyX-Code
22773 FileFilter "*.fig"
22774 \end_layout
22775
22776 \begin_layout LyX-Code
22777 AutomaticProduction true
22778 \end_layout
22779
22780 \begin_layout LyX-Code
22781 Transform Rotate
22782 \end_layout
22783
22784 \begin_layout LyX-Code
22785 Transform Resize
22786 \end_layout
22787
22788 \begin_layout LyX-Code
22789 Format \SpecialChar LaTeX
22790
22791 \end_layout
22792
22793 \begin_layout LyX-Code
22794 TransformCommand Rotate RotationLatexCommand
22795 \end_layout
22796
22797 \begin_layout LyX-Code
22798 TransformCommand Resize ResizeLatexCommand
22799 \end_layout
22800
22801 \begin_layout LyX-Code
22802 Product "$$RotateFront$$ResizeFront
22803 \end_layout
22804
22805 \begin_layout LyX-Code
22806          
22807 \backslash
22808
22809 \backslash
22810 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22811 \end_layout
22812
22813 \begin_layout LyX-Code
22814          $$ResizeBack$$RotateBack"
22815 \end_layout
22816
22817 \begin_layout LyX-Code
22818 UpdateFormat pstex
22819 \end_layout
22820
22821 \begin_layout LyX-Code
22822 UpdateResult "$$AbsPath$$Basename.pstex_t"
22823 \end_layout
22824
22825 \begin_layout LyX-Code
22826 Requirement "graphicx"
22827 \end_layout
22828
22829 \begin_layout LyX-Code
22830 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22831 \end_layout
22832
22833 \begin_layout LyX-Code
22834 ReferencedFile latex "$$AbsPath$$Basename.eps"
22835 \end_layout
22836
22837 \begin_layout LyX-Code
22838 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22839 \end_layout
22840
22841 \begin_layout LyX-Code
22842 FormatEnd
22843 \end_layout
22844
22845 \begin_layout LyX-Code
22846 Format PDF\SpecialChar LaTeX
22847
22848 \end_layout
22849
22850 \begin_layout LyX-Code
22851 TransformCommand Rotate RotationLatexCommand
22852 \end_layout
22853
22854 \begin_layout LyX-Code
22855 TransformCommand Resize ResizeLatexCommand
22856 \end_layout
22857
22858 \begin_layout LyX-Code
22859 Product "$$RotateFront$$ResizeFront
22860 \end_layout
22861
22862 \begin_layout LyX-Code
22863          
22864 \backslash
22865
22866 \backslash
22867 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22868 \end_layout
22869
22870 \begin_layout LyX-Code
22871          $$ResizeBack$$RotateBack"
22872 \end_layout
22873
22874 \begin_layout LyX-Code
22875 UpdateFormat pdftex
22876 \end_layout
22877
22878 \begin_layout LyX-Code
22879 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22880 \end_layout
22881
22882 \begin_layout LyX-Code
22883 Requirement "graphicx"
22884 \end_layout
22885
22886 \begin_layout LyX-Code
22887 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22888 \end_layout
22889
22890 \begin_layout LyX-Code
22891 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22892 \end_layout
22893
22894 \begin_layout LyX-Code
22895 FormatEnd
22896 \end_layout
22897
22898 \begin_layout LyX-Code
22899 Format Ascii
22900 \end_layout
22901
22902 \begin_layout LyX-Code
22903 Product "$$Contents(
22904 \backslash
22905 "$$AbsPath$$Basename.asc
22906 \backslash
22907 ")"
22908 \end_layout
22909
22910 \begin_layout LyX-Code
22911 UpdateFormat asciixfig
22912 \end_layout
22913
22914 \begin_layout LyX-Code
22915 UpdateResult "$$AbsPath$$Basename.asc"
22916 \end_layout
22917
22918 \begin_layout LyX-Code
22919 FormatEnd
22920 \end_layout
22921
22922 \begin_layout LyX-Code
22923 Format DocBook
22924 \end_layout
22925
22926 \begin_layout LyX-Code
22927 Product "<graphic fileref=
22928 \backslash
22929 "$$AbsOrRelPathMaster$$Basename.eps
22930 \backslash
22931 ">
22932 \end_layout
22933
22934 \begin_layout LyX-Code
22935          </graphic>"
22936 \end_layout
22937
22938 \begin_layout LyX-Code
22939 UpdateFormat eps
22940 \end_layout
22941
22942 \begin_layout LyX-Code
22943 UpdateResult "$$AbsPath$$Basename.eps"
22944 \end_layout
22945
22946 \begin_layout LyX-Code
22947 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22948 \end_layout
22949
22950 \begin_layout LyX-Code
22951 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22952 \end_layout
22953
22954 \begin_layout LyX-Code
22955 FormatEnd
22956 \end_layout
22957
22958 \begin_layout LyX-Code
22959 Product "[XFig: $$FName]"
22960 \end_layout
22961
22962 \begin_layout LyX-Code
22963 FormatEnd
22964 \end_layout
22965
22966 \begin_layout LyX-Code
22967 TemplateEnd
22968 \end_layout
22969
22970 \begin_layout Standard
22971 As you can see, the template is enclosed in 
22972 \begin_inset Flex Code
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 Template
22977 \end_layout
22978
22979 \end_inset
22980
22981  \SpecialChar ldots
22982  
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987 TemplateEnd
22988 \end_layout
22989
22990 \end_inset
22991
22992 .
22993  It contains a header specifying some general settings and, for each supported
22994  primary document file format, a section 
22995 \begin_inset Flex Code
22996 status collapsed
22997
22998 \begin_layout Plain Layout
22999 Format
23000 \end_layout
23001
23002 \end_inset
23003
23004  \SpecialChar ldots
23005  
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 FormatEnd
23011 \end_layout
23012
23013 \end_inset
23014
23015 .
23016 \end_layout
23017
23018 \begin_layout Subsection
23019 The template header
23020 \end_layout
23021
23022 \begin_layout Description
23023 \begin_inset Flex Code
23024 status collapsed
23025
23026 \begin_layout Plain Layout
23027 AutomaticProduction
23028 \begin_inset space ~
23029 \end_inset
23030
23031 true|false
23032 \end_layout
23033
23034 \end_inset
23035
23036  Whether the file represented by the template must be generated by \SpecialChar LyX
23037 .
23038  This command must occur exactly once.
23039 \end_layout
23040
23041 \begin_layout Description
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 FileFilter
23047 \begin_inset space ~
23048 \end_inset
23049
23050 <pattern>
23051 \end_layout
23052
23053 \end_inset
23054
23055  A glob pattern that is used in the file dialog to filter out the desired
23056  files.
23057  If there is more than one possible file extension (e.
23058 \begin_inset space \thinspace{}
23059 \end_inset
23060
23061 g.
23062 \begin_inset space \space{}
23063 \end_inset
23064
23065 tgif has 
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 .obj
23071 \end_layout
23072
23073 \end_inset
23074
23075  and 
23076 \begin_inset Flex Code
23077 status collapsed
23078
23079 \begin_layout Plain Layout
23080 .tgo
23081 \end_layout
23082
23083 \end_inset
23084
23085 ), use something like 
23086 \begin_inset Flex Code
23087 status collapsed
23088
23089 \begin_layout Plain Layout
23090 "*.{obj,tgo}"
23091 \end_layout
23092
23093 \end_inset
23094
23095 .
23096  This command must occur exactly once.
23097 \end_layout
23098
23099 \begin_layout Description
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 GuiName
23105 \begin_inset space ~
23106 \end_inset
23107
23108 <guiname>
23109 \end_layout
23110
23111 \end_inset
23112
23113  The text that is displayed on the button.
23114  This command must occur exactly once.
23115 \end_layout
23116
23117 \begin_layout Description
23118 \begin_inset Flex Code
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 HelpText
23123 \begin_inset space ~
23124 \end_inset
23125
23126 <text>
23127 \begin_inset space ~
23128 \end_inset
23129
23130 HelpTextEnd
23131 \end_layout
23132
23133 \end_inset
23134
23135  The help text that is used in the External dialog.
23136  Provide enough information to explain to the user just what the template
23137  can provide him with.
23138  This command must occur exactly once.
23139 \end_layout
23140
23141 \begin_layout Description
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 InputFormat
23147 \begin_inset space ~
23148 \end_inset
23149
23150 <format>
23151 \end_layout
23152
23153 \end_inset
23154
23155  The file format of the original file.
23156  This must be the name of a format that is known to \SpecialChar LyX
23157  (see 
23158 \begin_inset CommandInset ref
23159 LatexCommand ref
23160 reference "sec:Formats"
23161
23162 \end_inset
23163
23164 ).
23165  Use 
23166 \begin_inset Quotes eld
23167 \end_inset
23168
23169
23170 \begin_inset Flex Code
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174 *
23175 \end_layout
23176
23177 \end_inset
23178
23179
23180 \begin_inset Quotes erd
23181 \end_inset
23182
23183  if the template can handle original files of more than one format.
23184  \SpecialChar LyX
23185  will attempt to interrogate the file itself in order to deduce its format
23186  in this case.
23187  This command must occur exactly once.
23188 \end_layout
23189
23190 \begin_layout Description
23191 \begin_inset Flex Code
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195 Template
23196 \begin_inset space ~
23197 \end_inset
23198
23199 <id>
23200 \end_layout
23201
23202 \end_inset
23203
23204  A unique name for the template.
23205  It must not contain substitution macros (see below).
23206 \end_layout
23207
23208 \begin_layout Description
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 Transform
23214 \begin_inset space ~
23215 \end_inset
23216
23217 Rotate|Resize|Clip|Extra
23218 \end_layout
23219
23220 \end_inset
23221
23222  This command specifies which transformations are supported by this template.
23223  It may occur zero or more times.
23224  This command enables the corresponding tabs in the external dialog.
23225  Each 
23226 \begin_inset Flex Code
23227 status collapsed
23228
23229 \begin_layout Plain Layout
23230 Transform
23231 \end_layout
23232
23233 \end_inset
23234
23235  command must have either a corresponding 
23236 \begin_inset Flex Code
23237 status collapsed
23238
23239 \begin_layout Plain Layout
23240 TransformCommand
23241 \end_layout
23242
23243 \end_inset
23244
23245  or a 
23246 \begin_inset Flex Code
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250 TransformOption
23251 \end_layout
23252
23253 \end_inset
23254
23255  command in the 
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 Format
23261 \end_layout
23262
23263 \end_inset
23264
23265  section.
23266  Otherwise the transformation will not be supported by that format.
23267 \end_layout
23268
23269 \begin_layout Subsection
23270 The Format section
23271 \end_layout
23272
23273 \begin_layout Description
23274 \begin_inset Flex Code
23275 status collapsed
23276
23277 \begin_layout Plain Layout
23278 Format
23279 \begin_inset space ~
23280 \end_inset
23281
23282 LaTeX|PDFLaTeX|PlainText|DocBook
23283 \end_layout
23284
23285 \end_inset
23286
23287  The primary document file format that this format definition is for.
23288  Not every template has a sensible representation in all document file formats.
23289  Please define nevertheless a 
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 Format
23295 \end_layout
23296
23297 \end_inset
23298
23299  section for all templates.
23300  Use a dummy text when no representation is available.
23301  Then you can at least see a reference to the external material in the exported
23302  document.
23303 \end_layout
23304
23305 \begin_layout Description
23306 \begin_inset Flex Code
23307 status collapsed
23308
23309 \begin_layout Plain Layout
23310 Option
23311 \begin_inset space ~
23312 \end_inset
23313
23314 <name>
23315 \begin_inset space ~
23316 \end_inset
23317
23318 <value>
23319 \end_layout
23320
23321 \end_inset
23322
23323  This command defines an additional macro 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328 $$<name>
23329 \end_layout
23330
23331 \end_inset
23332
23333  for substitution in 
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338 Product
23339 \end_layout
23340
23341 \end_inset
23342
23343 .
23344  
23345 \begin_inset Flex Code
23346 status collapsed
23347
23348 \begin_layout Plain Layout
23349 <value>
23350 \end_layout
23351
23352 \end_inset
23353
23354  itself may contain substitution macros.
23355  The advantage over using 
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360 <value>
23361 \end_layout
23362
23363 \end_inset
23364
23365  directly in 
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370 Product
23371 \end_layout
23372
23373 \end_inset
23374
23375  is that the substituted value of 
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 $$<name>
23381 \end_layout
23382
23383 \end_inset
23384
23385  is sanitized so that it is a valid optional argument in the document format.
23386  This command may occur zero or more times.
23387 \end_layout
23388
23389 \begin_layout Description
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 Product
23395 \begin_inset space ~
23396 \end_inset
23397
23398 <text>
23399 \end_layout
23400
23401 \end_inset
23402
23403  The text that is inserted in the exported document.
23404  This is actually the most important command and can be quite complex.
23405  This command must occur exactly once.
23406 \end_layout
23407
23408 \begin_layout Description
23409 \begin_inset Flex Code
23410 status collapsed
23411
23412 \begin_layout Plain Layout
23413 Preamble
23414 \begin_inset space ~
23415 \end_inset
23416
23417 <name>
23418 \end_layout
23419
23420 \end_inset
23421
23422  This command specifies a preamble snippet that will be included in the
23423  \SpecialChar LaTeX
23424  preamble.
23425  It has to be defined using 
23426 \begin_inset Flex Code
23427 status collapsed
23428
23429 \begin_layout Plain Layout
23430 PreambleDef
23431 \end_layout
23432
23433 \end_inset
23434
23435  \SpecialChar ldots
23436  
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 PreambleDefEnd
23442 \end_layout
23443
23444 \end_inset
23445
23446 .
23447  This command may occur zero or more times.
23448 \end_layout
23449
23450 \begin_layout Description
23451 \begin_inset Flex Code
23452 status collapsed
23453
23454 \begin_layout Plain Layout
23455 ReferencedFile
23456 \begin_inset space ~
23457 \end_inset
23458
23459 <format>
23460 \begin_inset space ~
23461 \end_inset
23462
23463 <filename>
23464 \end_layout
23465
23466 \end_inset
23467
23468  This command denotes files that are created by the conversion process and
23469  are needed for a particular export format.
23470  If the filename is relative, it is interpreted relative to the master document.
23471  This command may be given zero or more times.
23472 \end_layout
23473
23474 \begin_layout Description
23475 \begin_inset Flex Code
23476 status collapsed
23477
23478 \begin_layout Plain Layout
23479 Requirement
23480 \begin_inset space ~
23481 \end_inset
23482
23483 <package>
23484 \end_layout
23485
23486 \end_inset
23487
23488  The name of a required \SpecialChar LaTeX
23489  package.
23490  The package is included via 
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495
23496 \backslash
23497 usepackage{}
23498 \end_layout
23499
23500 \end_inset
23501
23502  in the \SpecialChar LaTeX
23503  preamble.
23504  This command may occur zero or more times.
23505 \end_layout
23506
23507 \begin_layout Description
23508 \begin_inset Flex Code
23509 status collapsed
23510
23511 \begin_layout Plain Layout
23512 TransformCommand
23513 \begin_inset space ~
23514 \end_inset
23515
23516 Rotate
23517 \begin_inset space ~
23518 \end_inset
23519
23520 RotationLatexCommand
23521 \end_layout
23522
23523 \end_inset
23524
23525  This command specifies that the built in \SpecialChar LaTeX
23526  command should be used for rotation.
23527  This command may occur once or not at all.
23528 \end_layout
23529
23530 \begin_layout Description
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535 TransformCommand
23536 \begin_inset space ~
23537 \end_inset
23538
23539 Resize
23540 \begin_inset space ~
23541 \end_inset
23542
23543 ResizeLatexCommand
23544 \end_layout
23545
23546 \end_inset
23547
23548  This command specifies that the built in \SpecialChar LaTeX
23549  command should be used for resizing.
23550  This command may occur once or not at all.
23551 \end_layout
23552
23553 \begin_layout Description
23554 \begin_inset Flex Code
23555 status collapsed
23556
23557 \begin_layout Plain Layout
23558 TransformOption
23559 \begin_inset space ~
23560 \end_inset
23561
23562 Rotate
23563 \begin_inset space ~
23564 \end_inset
23565
23566 RotationLatexOption
23567 \end_layout
23568
23569 \end_inset
23570
23571  This command specifies that rotation is done via an optional argument.
23572  This command may occur once or not at all.
23573 \end_layout
23574
23575 \begin_layout Description
23576 \begin_inset Flex Code
23577 status collapsed
23578
23579 \begin_layout Plain Layout
23580 TransformOption
23581 \begin_inset space ~
23582 \end_inset
23583
23584 Resize
23585 \begin_inset space ~
23586 \end_inset
23587
23588 ResizeLatexOption
23589 \end_layout
23590
23591 \end_inset
23592
23593  This command specifies that resizing is done via an optional argument.
23594  This command may occur once or not at all.
23595 \end_layout
23596
23597 \begin_layout Description
23598 \begin_inset Flex Code
23599 status collapsed
23600
23601 \begin_layout Plain Layout
23602 TransformOption
23603 \begin_inset space ~
23604 \end_inset
23605
23606 Clip
23607 \begin_inset space ~
23608 \end_inset
23609
23610 ClipLatexOption
23611 \end_layout
23612
23613 \end_inset
23614
23615  This command specifies that clipping is done via an optional argument.
23616  This command may occur once or not at all.
23617 \end_layout
23618
23619 \begin_layout Description
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624 TransformOption
23625 \begin_inset space ~
23626 \end_inset
23627
23628 Extra
23629 \begin_inset space ~
23630 \end_inset
23631
23632 ExtraLatexOption
23633 \end_layout
23634
23635 \end_inset
23636
23637  This command specifies that an extra optional argument is used.
23638  This command may occur once or not at all.
23639 \end_layout
23640
23641 \begin_layout Description
23642 \begin_inset Flex Code
23643 status collapsed
23644
23645 \begin_layout Plain Layout
23646 UpdateFormat
23647 \begin_inset space ~
23648 \end_inset
23649
23650 <format>
23651 \end_layout
23652
23653 \end_inset
23654
23655  The file format of the converted file.
23656  This must be the name of a format that is known to \SpecialChar LyX
23657  (see the 
23658 \begin_inset Flex MenuItem
23659 status collapsed
23660
23661 \begin_layout Plain Layout
23662 Tools\SpecialChar menuseparator
23663 Preferences\SpecialChar menuseparator
23664 File Handling\SpecialChar menuseparator
23665 File Format
23666 \end_layout
23667
23668 \end_inset
23669
23670  dialog).
23671  This command must occur exactly once.
23672  If the resulting file format is PDF, you need to specify the format 
23673 \begin_inset Flex Code
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677 pdf6
23678 \end_layout
23679
23680 \end_inset
23681
23682 .
23683  This is the PDF format used for including graphics.
23684  The other defined PDF formats are for document export.
23685 \end_layout
23686
23687 \begin_layout Description
23688 \begin_inset Flex Code
23689 status collapsed
23690
23691 \begin_layout Plain Layout
23692 UpdateResult
23693 \begin_inset space ~
23694 \end_inset
23695
23696 <filename>
23697 \end_layout
23698
23699 \end_inset
23700
23701  The file name of the converted file.
23702  The file name must be absolute.
23703  This command must occur exactly once.
23704 \end_layout
23705
23706 \begin_layout Subsection
23707 Preamble definitions
23708 \end_layout
23709
23710 \begin_layout Standard
23711 The external template configuration file may contain additional preamble
23712  definitions enclosed by 
23713 \begin_inset Flex Code
23714 status collapsed
23715
23716 \begin_layout Plain Layout
23717 PreambleDef
23718 \end_layout
23719
23720 \end_inset
23721
23722  \SpecialChar ldots
23723  
23724 \begin_inset Flex Code
23725 status collapsed
23726
23727 \begin_layout Plain Layout
23728 PreambleDefEnd
23729 \end_layout
23730
23731 \end_inset
23732
23733 .
23734  They can be used by the templates in the 
23735 \begin_inset Flex Code
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739 Format
23740 \end_layout
23741
23742 \end_inset
23743
23744  section.
23745 \end_layout
23746
23747 \begin_layout Section
23748 The substitution mechanism
23749 \end_layout
23750
23751 \begin_layout Standard
23752 When the external material facility invokes an external program, it is done
23753  on the basis of a command defined in the template configuration file.
23754  These commands can contain various macros that are expanded before execution.
23755  Execution always take place in the directory of the containing document.
23756 \end_layout
23757
23758 \begin_layout Standard
23759 Also, whenever external material is to be displayed, the name will be produced
23760  by the substitution mechanism, and most other commands in the template
23761  definition support substitution as well.
23762 \end_layout
23763
23764 \begin_layout Standard
23765 The available macros are the following:
23766 \end_layout
23767
23768 \begin_layout Description
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 $$AbsOrRelPathMaster
23774 \end_layout
23775
23776 \end_inset
23777
23778  The file path, absolute or relative to the master \SpecialChar LyX
23779  document.
23780 \end_layout
23781
23782 \begin_layout Description
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 $$AbsOrRelPathParent
23788 \end_layout
23789
23790 \end_inset
23791
23792  The file path, absolute or relative to the \SpecialChar LyX
23793  document.
23794 \end_layout
23795
23796 \begin_layout Description
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 $$AbsPath
23802 \end_layout
23803
23804 \end_inset
23805
23806  The absolute file path.
23807 \end_layout
23808
23809 \begin_layout Description
23810 \begin_inset Flex Code
23811 status collapsed
23812
23813 \begin_layout Plain Layout
23814 $$Basename
23815 \end_layout
23816
23817 \end_inset
23818
23819  The filename without path and without the extension.
23820 \end_layout
23821
23822 \begin_layout Description
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 $$Contents(
23828 \begin_inset Quotes eld
23829 \end_inset
23830
23831 filename.ext
23832 \begin_inset Quotes erd
23833 \end_inset
23834
23835 )
23836 \end_layout
23837
23838 \end_inset
23839
23840  This macro will expand to the contents of the file with the name 
23841 \begin_inset Flex Code
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845 filename.ext
23846 \end_layout
23847
23848 \end_inset
23849
23850 .
23851 \end_layout
23852
23853 \begin_layout Description
23854 \begin_inset Flex Code
23855 status collapsed
23856
23857 \begin_layout Plain Layout
23858 $$Extension
23859 \end_layout
23860
23861 \end_inset
23862
23863  The file extension (including the dot).
23864 \end_layout
23865
23866 \begin_layout Description
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 $$pngOrjpg
23872 \end_layout
23873
23874 \end_inset
23875
23876  This will be the string 
23877 \begin_inset Quotes eld
23878 \end_inset
23879
23880 jpg
23881 \begin_inset Quotes erd
23882 \end_inset
23883
23884  if the file is in JPEG format, otherwise it will be the string 
23885 \begin_inset Quotes eld
23886 \end_inset
23887
23888 png
23889 \begin_inset Quotes erd
23890 \end_inset
23891
23892 .
23893  This is useful to avoid uneeded conversions for output formats that support
23894  both PNG and JPEG fomats.
23895  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
23896  output
23897  format.
23898 \end_layout
23899
23900 \begin_layout Description
23901 \begin_inset Flex Code
23902 status collapsed
23903
23904 \begin_layout Plain Layout
23905 $$FName
23906 \end_layout
23907
23908 \end_inset
23909
23910  The filename of the file specified in the external material dialog.
23911  This is either an absolute name, or it is relative to the \SpecialChar LyX
23912  document.
23913 \end_layout
23914
23915 \begin_layout Description
23916 \begin_inset Flex Code
23917 status collapsed
23918
23919 \begin_layout Plain Layout
23920 $$FPath
23921 \end_layout
23922
23923 \end_inset
23924
23925  The path part of 
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930 $$FName
23931 \end_layout
23932
23933 \end_inset
23934
23935  (absolute name or relative to the \SpecialChar LyX
23936  document).
23937 \end_layout
23938
23939 \begin_layout Description
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 $$RelPathMaster
23945 \end_layout
23946
23947 \end_inset
23948
23949  The file path, relative to the master \SpecialChar LyX
23950  document.
23951 \end_layout
23952
23953 \begin_layout Description
23954 \begin_inset Flex Code
23955 status collapsed
23956
23957 \begin_layout Plain Layout
23958 $$RelPathParent
23959 \end_layout
23960
23961 \end_inset
23962
23963  The file path, relative to the \SpecialChar LyX
23964  document.
23965 \end_layout
23966
23967 \begin_layout Description
23968 \begin_inset Flex Code
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972 $$Sysdir
23973 \end_layout
23974
23975 \end_inset
23976
23977  This macro will expand to the absolute path of the system directory.
23978  This is typically used to point to the various helper scripts that are
23979  bundled with \SpecialChar LyX
23980 .
23981 \end_layout
23982
23983 \begin_layout Description
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 $$Tempname
23989 \end_layout
23990
23991 \end_inset
23992
23993  A name and full path to a temporary file which will be automatically deleted
23994  whenever the containing document is closed, or the external material insertion
23995  deleted.
23996 \end_layout
23997
23998 \begin_layout Standard
23999 All path macros contain a trailing directory separator, so you can construct
24000  e.
24001 \begin_inset space \thinspace{}
24002 \end_inset
24003
24004 g.
24005 \begin_inset space \space{}
24006 \end_inset
24007
24008 the absolute filename with 
24009 \begin_inset Flex Code
24010 status collapsed
24011
24012 \begin_layout Plain Layout
24013 $$AbsPath$$Basename$$Extension
24014 \end_layout
24015
24016 \end_inset
24017
24018 .
24019 \end_layout
24020
24021 \begin_layout Standard
24022 The macros above are substituted in all commands unless otherwise noted.
24023  The command 
24024 \begin_inset Flex Code
24025 status collapsed
24026
24027 \begin_layout Plain Layout
24028 Product
24029 \end_layout
24030
24031 \end_inset
24032
24033  supports additionally the following substitutions if they are enabled by
24034  the 
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 Transform
24040 \end_layout
24041
24042 \end_inset
24043
24044  and 
24045 \begin_inset Flex Code
24046 status collapsed
24047
24048 \begin_layout Plain Layout
24049 TransformCommand
24050 \end_layout
24051
24052 \end_inset
24053
24054  commands:
24055 \end_layout
24056
24057 \begin_layout Description
24058 \begin_inset Flex Code
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062 $$ResizeFront
24063 \end_layout
24064
24065 \end_inset
24066
24067  The front part of the resize command.
24068 \end_layout
24069
24070 \begin_layout Description
24071 \begin_inset Flex Code
24072 status collapsed
24073
24074 \begin_layout Plain Layout
24075 $$ResizeBack
24076 \end_layout
24077
24078 \end_inset
24079
24080  The back part of the resize command.
24081 \end_layout
24082
24083 \begin_layout Description
24084 \begin_inset Flex Code
24085 status collapsed
24086
24087 \begin_layout Plain Layout
24088 $$RotateFront
24089 \end_layout
24090
24091 \end_inset
24092
24093  The front part of the rotation command.
24094 \end_layout
24095
24096 \begin_layout Description
24097 \begin_inset Flex Code
24098 status collapsed
24099
24100 \begin_layout Plain Layout
24101 $$RotateBack
24102 \end_layout
24103
24104 \end_inset
24105
24106  The back part of the rotation command.
24107 \end_layout
24108
24109 \begin_layout Standard
24110 The value string of the 
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 Option
24116 \end_layout
24117
24118 \end_inset
24119
24120  command supports additionally the following substitutions if they are enabled
24121  by the 
24122 \begin_inset Flex Code
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126 Transform
24127 \end_layout
24128
24129 \end_inset
24130
24131  and 
24132 \begin_inset Flex Code
24133 status collapsed
24134
24135 \begin_layout Plain Layout
24136 TransformOption
24137 \end_layout
24138
24139 \end_inset
24140
24141  commands:
24142 \end_layout
24143
24144 \begin_layout Description
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 $$Clip
24150 \end_layout
24151
24152 \end_inset
24153
24154  The clip option.
24155 \end_layout
24156
24157 \begin_layout Description
24158 \begin_inset Flex Code
24159 status collapsed
24160
24161 \begin_layout Plain Layout
24162 $$Extra
24163 \end_layout
24164
24165 \end_inset
24166
24167  The extra option.
24168 \end_layout
24169
24170 \begin_layout Description
24171 \begin_inset Flex Code
24172 status collapsed
24173
24174 \begin_layout Plain Layout
24175 $$Resize
24176 \end_layout
24177
24178 \end_inset
24179
24180  The resize option.
24181 \end_layout
24182
24183 \begin_layout Description
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 $$Rotate
24189 \end_layout
24190
24191 \end_inset
24192
24193  The rotation option.
24194 \end_layout
24195
24196 \begin_layout Standard
24197 You may ask why there are so many path macros.
24198  There are mainly two reasons:
24199 \end_layout
24200
24201 \begin_layout Enumerate
24202 Relative and absolute file names should remain relative or absolute, respectivel
24203 y.
24204  Users may have reasons to prefer either form.
24205  Relative names are useful for portable documents that should work on different
24206  machines, for example.
24207  Absolute names may be required by some programs.
24208 \end_layout
24209
24210 \begin_layout Enumerate
24211 \SpecialChar LaTeX
24212  treats relative file names differently than \SpecialChar LyX
24213  and other programs in nested
24214  included files.
24215  For \SpecialChar LyX
24216 , a relative file name is always relative to the document that contains
24217  the file name.
24218  For \SpecialChar LaTeX
24219 , it is always relative to the master document.
24220  These two definitions are identical if you have only one document, but
24221  differ if you have a master document that includes part documents.
24222  That means that relative filenames must be transformed when presented to
24223  \SpecialChar LaTeX
24224 .
24225  Fortunately \SpecialChar LyX
24226  does this automatically for you if you choose the right macros.
24227 \end_layout
24228
24229 \begin_layout Standard
24230 So which path macro should be used in new template definitions? The rule
24231  is not difficult:
24232 \end_layout
24233
24234 \begin_layout Itemize
24235 Use 
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 $$AbsPath
24241 \end_layout
24242
24243 \end_inset
24244
24245  if an absolute path is required.
24246 \end_layout
24247
24248 \begin_layout Itemize
24249 Use 
24250 \begin_inset Flex Code
24251 status collapsed
24252
24253 \begin_layout Plain Layout
24254 $$AbsOrRelPathMaster
24255 \end_layout
24256
24257 \end_inset
24258
24259  if the substituted string is some kind of \SpecialChar LaTeX
24260  input.
24261 \end_layout
24262
24263 \begin_layout Itemize
24264 Else use 
24265 \begin_inset Flex Code
24266 status collapsed
24267
24268 \begin_layout Plain Layout
24269 $$AbsOrRelPathParent
24270 \end_layout
24271
24272 \end_inset
24273
24274  in order to preserve the user's choice.
24275 \end_layout
24276
24277 \begin_layout Standard
24278 There are special cases where this rule does not work and e.
24279 \begin_inset space \thinspace{}
24280 \end_inset
24281
24282 g.
24283 \begin_inset space \space{}
24284 \end_inset
24285
24286 relative names are needed, but normally it will work just fine.
24287  One example for such a case is the command 
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24293 \end_layout
24294
24295 \end_inset
24296
24297  in the XFig template above: We can't use the absolute name because the
24298  copier for 
24299 \begin_inset Flex Code
24300 status collapsed
24301
24302 \begin_layout Plain Layout
24303 .pstex_t
24304 \end_layout
24305
24306 \end_inset
24307
24308  files needs the relative name in order to rewrite the file content.
24309 \end_layout
24310
24311 \begin_layout Section
24312 Security discussion
24313 \begin_inset CommandInset label
24314 LatexCommand label
24315 name "sec:Security-discussion"
24316
24317 \end_inset
24318
24319
24320 \end_layout
24321
24322 \begin_layout Standard
24323 The external material feature interfaces with a lot of external programs
24324  and does so automatically, so we have to consider the security implications
24325  of this.
24326  In particular, since you have the option of including your own filenames
24327  and/or parameter strings and those are expanded into a command, it seems
24328  that it would be possible to create a malicious document which executes
24329  arbitrary commands when a user views or prints the document.
24330  This is something we definitely want to avoid.
24331 \end_layout
24332
24333 \begin_layout Standard
24334 However, since the external program commands are specified in the template
24335  configuration file only, there are no security issues if \SpecialChar LyX
24336  is properly configure
24337 d with safe templates only.
24338  This is so because the external programs are invoked with the 
24339 \begin_inset Flex Code
24340 status collapsed
24341
24342 \begin_layout Plain Layout
24343 execvp
24344 \end_layout
24345
24346 \end_inset
24347
24348 -system call rather than the 
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 system
24354 \end_layout
24355
24356 \end_inset
24357
24358  system-call, so it's not possible to execute arbitrary commands from the
24359  filename or parameter section via the shell.
24360 \end_layout
24361
24362 \begin_layout Standard
24363 This also implies that you are restricted in what command strings you can
24364  use in the external material templates.
24365  In particular, pipes and redirection are not readily available.
24366  This has to be so if \SpecialChar LyX
24367  should remain safe.
24368  If you want to use some of the shell features, you should write a safe
24369  script to do this in a controlled manner, and then invoke the script from
24370  the command string.
24371  
24372 \end_layout
24373
24374 \begin_layout Standard
24375 It is possible to design a template that interacts directly with the shell,
24376  but since this would allow a malicious user to execute arbitrary commands
24377  by writing clever filenames and/or parameters, we generally recommend that
24378  you only use safe scripts that work with the 
24379 \begin_inset Flex Code
24380 status collapsed
24381
24382 \begin_layout Plain Layout
24383 execvp
24384 \end_layout
24385
24386 \end_inset
24387
24388  system call in a controlled manner.
24389  Of course, for use in a controlled environment, it can be tempting to just
24390  fall back to use ordinary shell scripts.
24391  If you do so, be aware that you 
24392 \emph on
24393 will
24394 \emph default
24395  provide an easily exploitable security hole in your system.
24396  Of course it stands to reason that such unsafe templates will never be
24397  included in the standard \SpecialChar LyX
24398  distribution, although we do encourage people
24399  to submit new templates in the open source tradition.
24400  But \SpecialChar LyX
24401  as shipped from the official distribution channels will never have
24402  unsafe templates.
24403 \end_layout
24404
24405 \begin_layout Standard
24406 Including external material provides a lot of power, and you have to be
24407  careful not to introduce security hazards with this power.
24408  A subtle error in a single line in an innocent looking script can open
24409  the door to huge security problems.
24410  So if you do not fully understand the issues, we recommend that you consult
24411  a knowledgeable security professional or the \SpecialChar LyX
24412  development team if you have
24413  any questions about whether a given template is safe or not.
24414  And do this before you use it in an uncontrolled environment.
24415 \end_layout
24416
24417 \begin_layout Chapter
24418 \start_of_appendix
24419 List of supported \SpecialChar LyX
24420  functions to be used in layouts
24421 \begin_inset CommandInset label
24422 LatexCommand label
24423 name "chap:List-of-functions"
24424
24425 \end_inset
24426
24427
24428 \end_layout
24429
24430 \begin_layout Standard
24431 \align center
24432 \begin_inset Tabular
24433 <lyxtabular version="3" rows="11" columns="8">
24434 <features tabularvalignment="middle">
24435 <column alignment="left" valignment="top">
24436 <column alignment="left" valignment="top">
24437 <column alignment="left" valignment="top">
24438 <column alignment="left" valignment="top">
24439 <column alignment="left" valignment="top">
24440 <column alignment="left" valignment="top">
24441 <column alignment="left" valignment="top">
24442 <column alignment="left" valignment="top">
24443 <row>
24444 <cell alignment="left" valignment="top" usebox="none">
24445 \begin_inset Text
24446
24447 \begin_layout Plain Layout
24448 accents
24449 \end_layout
24450
24451 \end_inset
24452 </cell>
24453 <cell alignment="left" valignment="top" usebox="none">
24454 \begin_inset Text
24455
24456 \begin_layout Plain Layout
24457 booktabs
24458 \end_layout
24459
24460 \end_inset
24461 </cell>
24462 <cell alignment="left" valignment="top" usebox="none">
24463 \begin_inset Text
24464
24465 \begin_layout Plain Layout
24466 feyn
24467 \end_layout
24468
24469 \end_inset
24470 </cell>
24471 <cell alignment="left" valignment="top" usebox="none">
24472 \begin_inset Text
24473
24474 \begin_layout Plain Layout
24475 listings
24476 \end_layout
24477
24478 \end_inset
24479 </cell>
24480 <cell alignment="center" valignment="top" usebox="none">
24481 \begin_inset Text
24482
24483 \begin_layout Plain Layout
24484 natbib
24485 \end_layout
24486
24487 \end_inset
24488 </cell>
24489 <cell alignment="center" valignment="top" usebox="none">
24490 \begin_inset Text
24491
24492 \begin_layout Plain Layout
24493 rotfloat
24494 \end_layout
24495
24496 \end_inset
24497 </cell>
24498 <cell alignment="center" valignment="top" usebox="none">
24499 \begin_inset Text
24500
24501 \begin_layout Plain Layout
24502 tfrupee
24503 \end_layout
24504
24505 \end_inset
24506 </cell>
24507 <cell alignment="center" valignment="top" usebox="none">
24508 \begin_inset Text
24509
24510 \begin_layout Plain Layout
24511 wasysym
24512 \end_layout
24513
24514 \end_inset
24515 </cell>
24516 </row>
24517 <row>
24518 <cell alignment="left" valignment="top" usebox="none">
24519 \begin_inset Text
24520
24521 \begin_layout Plain Layout
24522 amsbsy
24523 \end_layout
24524
24525 \end_inset
24526 </cell>
24527 <cell alignment="left" valignment="top" usebox="none">
24528 \begin_inset Text
24529
24530 \begin_layout Plain Layout
24531 calc
24532 \end_layout
24533
24534 \end_inset
24535 </cell>
24536 <cell alignment="left" valignment="top" usebox="none">
24537 \begin_inset Text
24538
24539 \begin_layout Plain Layout
24540 fixltx2e
24541 \end_layout
24542
24543 \end_inset
24544 </cell>
24545 <cell alignment="left" valignment="top" usebox="none">
24546 \begin_inset Text
24547
24548 \begin_layout Plain Layout
24549 longtable
24550 \end_layout
24551
24552 \end_inset
24553 </cell>
24554 <cell alignment="center" valignment="top" usebox="none">
24555 \begin_inset Text
24556
24557 \begin_layout Plain Layout
24558 nomencl
24559 \end_layout
24560
24561 \end_inset
24562 </cell>
24563 <cell alignment="center" valignment="top" usebox="none">
24564 \begin_inset Text
24565
24566 \begin_layout Plain Layout
24567 rsphrase
24568 \end_layout
24569
24570 \end_inset
24571 </cell>
24572 <cell alignment="center" valignment="top" usebox="none">
24573 \begin_inset Text
24574
24575 \begin_layout Plain Layout
24576 tipa
24577 \end_layout
24578
24579 \end_inset
24580 </cell>
24581 <cell alignment="center" valignment="top" usebox="none">
24582 \begin_inset Text
24583
24584 \begin_layout Plain Layout
24585 wrapfig
24586 \end_layout
24587
24588 \end_inset
24589 </cell>
24590 </row>
24591 <row>
24592 <cell alignment="left" valignment="top" usebox="none">
24593 \begin_inset Text
24594
24595 \begin_layout Plain Layout
24596 amscd
24597 \end_layout
24598
24599 \end_inset
24600 </cell>
24601 <cell alignment="left" valignment="top" usebox="none">
24602 \begin_inset Text
24603
24604 \begin_layout Plain Layout
24605 CJK
24606 \end_layout
24607
24608 \end_inset
24609 </cell>
24610 <cell alignment="left" valignment="top" usebox="none">
24611 \begin_inset Text
24612
24613 \begin_layout Plain Layout
24614 float
24615 \end_layout
24616
24617 \end_inset
24618 </cell>
24619 <cell alignment="left" valignment="top" usebox="none">
24620 \begin_inset Text
24621
24622 \begin_layout Plain Layout
24623 lyxskak
24624 \end_layout
24625
24626 \end_inset
24627 </cell>
24628 <cell alignment="center" valignment="top" usebox="none">
24629 \begin_inset Text
24630
24631 \begin_layout Plain Layout
24632 pdfcolmk
24633 \end_layout
24634
24635 \end_inset
24636 </cell>
24637 <cell alignment="center" valignment="top" usebox="none">
24638 \begin_inset Text
24639
24640 \begin_layout Plain Layout
24641 setspace
24642 \end_layout
24643
24644 \end_inset
24645 </cell>
24646 <cell alignment="center" valignment="top" usebox="none">
24647 \begin_inset Text
24648
24649 \begin_layout Plain Layout
24650 tipx
24651 \end_layout
24652
24653 \end_inset
24654 </cell>
24655 <cell alignment="center" valignment="top" usebox="none">
24656 \begin_inset Text
24657
24658 \begin_layout Plain Layout
24659 xargs
24660 \end_layout
24661
24662 \end_inset
24663 </cell>
24664 </row>
24665 <row>
24666 <cell alignment="left" valignment="top" usebox="none">
24667 \begin_inset Text
24668
24669 \begin_layout Plain Layout
24670 amsmath
24671 \end_layout
24672
24673 \end_inset
24674 </cell>
24675 <cell alignment="left" valignment="top" usebox="none">
24676 \begin_inset Text
24677
24678 \begin_layout Plain Layout
24679 color
24680 \end_layout
24681
24682 \end_inset
24683 </cell>
24684 <cell alignment="left" valignment="top" usebox="none">
24685 \begin_inset Text
24686
24687 \begin_layout Plain Layout
24688 framed
24689 \end_layout
24690
24691 \end_inset
24692 </cell>
24693 <cell alignment="left" valignment="top" usebox="none">
24694 \begin_inset Text
24695
24696 \begin_layout Plain Layout
24697 makeidx
24698 \end_layout
24699
24700 \end_inset
24701 </cell>
24702 <cell alignment="center" valignment="top" usebox="none">
24703 \begin_inset Text
24704
24705 \begin_layout Plain Layout
24706 pdfpages
24707 \end_layout
24708
24709 \end_inset
24710 </cell>
24711 <cell alignment="center" valignment="top" usebox="none">
24712 \begin_inset Text
24713
24714 \begin_layout Plain Layout
24715 shapepar
24716 \end_layout
24717
24718 \end_inset
24719 </cell>
24720 <cell alignment="center" valignment="top" usebox="none">
24721 \begin_inset Text
24722
24723 \begin_layout Plain Layout
24724 tone
24725 \end_layout
24726
24727 \end_inset
24728 </cell>
24729 <cell alignment="center" valignment="top" usebox="none">
24730 \begin_inset Text
24731
24732 \begin_layout Plain Layout
24733 xcolor
24734 \end_layout
24735
24736 \end_inset
24737 </cell>
24738 </row>
24739 <row>
24740 <cell alignment="left" valignment="top" usebox="none">
24741 \begin_inset Text
24742
24743 \begin_layout Plain Layout
24744 amssymb
24745 \end_layout
24746
24747 \end_inset
24748 </cell>
24749 <cell alignment="left" valignment="top" usebox="none">
24750 \begin_inset Text
24751
24752 \begin_layout Plain Layout
24753 covington
24754 \end_layout
24755
24756 \end_inset
24757 </cell>
24758 <cell alignment="left" valignment="top" usebox="none">
24759 \begin_inset Text
24760
24761 \begin_layout Plain Layout
24762 graphicx
24763 \end_layout
24764
24765 \end_inset
24766 </cell>
24767 <cell alignment="left" valignment="top" usebox="none">
24768 \begin_inset Text
24769
24770 \begin_layout Plain Layout
24771 marvosym
24772 \end_layout
24773
24774 \end_inset
24775 </cell>
24776 <cell alignment="center" valignment="top" usebox="none">
24777 \begin_inset Text
24778
24779 \begin_layout Plain Layout
24780 pifont
24781 \end_layout
24782
24783 \end_inset
24784 </cell>
24785 <cell alignment="center" valignment="top" usebox="none">
24786 \begin_inset Text
24787
24788 \begin_layout Plain Layout
24789 slashed
24790 \end_layout
24791
24792 \end_inset
24793 </cell>
24794 <cell alignment="center" valignment="top" usebox="none">
24795 \begin_inset Text
24796
24797 \begin_layout Plain Layout
24798 txfonts
24799 \end_layout
24800
24801 \end_inset
24802 </cell>
24803 <cell alignment="center" valignment="top" usebox="none">
24804 \begin_inset Text
24805
24806 \begin_layout Plain Layout
24807 xy
24808 \end_layout
24809
24810 \end_inset
24811 </cell>
24812 </row>
24813 <row>
24814 <cell alignment="left" valignment="top" usebox="none">
24815 \begin_inset Text
24816
24817 \begin_layout Plain Layout
24818 amstext
24819 \end_layout
24820
24821 \end_inset
24822 </cell>
24823 <cell alignment="left" valignment="top" usebox="none">
24824 \begin_inset Text
24825
24826 \begin_layout Plain Layout
24827 csquotes
24828 \end_layout
24829
24830 \end_inset
24831 </cell>
24832 <cell alignment="left" valignment="top" usebox="none">
24833 \begin_inset Text
24834
24835 \begin_layout Plain Layout
24836 hhline
24837 \end_layout
24838
24839 \end_inset
24840 </cell>
24841 <cell alignment="left" valignment="top" usebox="none">
24842 \begin_inset Text
24843
24844 \begin_layout Plain Layout
24845 mathdesign
24846 \end_layout
24847
24848 \end_inset
24849 </cell>
24850 <cell alignment="center" valignment="top" usebox="none">
24851 \begin_inset Text
24852
24853 \begin_layout Plain Layout
24854 pmboxdraw
24855 \end_layout
24856
24857 \end_inset
24858 </cell>
24859 <cell alignment="center" valignment="top" usebox="none">
24860 \begin_inset Text
24861
24862 \begin_layout Plain Layout
24863 soul
24864 \end_layout
24865
24866 \end_inset
24867 </cell>
24868 <cell alignment="center" valignment="top" usebox="none">
24869 \begin_inset Text
24870
24871 \begin_layout Plain Layout
24872 ulem
24873 \end_layout
24874
24875 \end_inset
24876 </cell>
24877 <cell alignment="center" valignment="top" usebox="none">
24878 \begin_inset Text
24879
24880 \begin_layout Plain Layout
24881 yhmath
24882 \end_layout
24883
24884 \end_inset
24885 </cell>
24886 </row>
24887 <row>
24888 <cell alignment="left" valignment="top" usebox="none">
24889 \begin_inset Text
24890
24891 \begin_layout Plain Layout
24892 amsthm
24893 \end_layout
24894
24895 \end_inset
24896 </cell>
24897 <cell alignment="left" valignment="top" usebox="none">
24898 \begin_inset Text
24899
24900 \begin_layout Plain Layout
24901 dvipost
24902 \end_layout
24903
24904 \end_inset
24905 </cell>
24906 <cell alignment="left" valignment="top" usebox="none">
24907 \begin_inset Text
24908
24909 \begin_layout Plain Layout
24910 hyperref
24911 \end_layout
24912
24913 \end_inset
24914 </cell>
24915 <cell alignment="left" valignment="top" usebox="none">
24916 \begin_inset Text
24917
24918 \begin_layout Plain Layout
24919 mathdots
24920 \end_layout
24921
24922 \end_inset
24923 </cell>
24924 <cell alignment="center" valignment="top" usebox="none">
24925 \begin_inset Text
24926
24927 \begin_layout Plain Layout
24928 polyglossia
24929 \end_layout
24930
24931 \end_inset
24932 </cell>
24933 <cell alignment="center" valignment="top" usebox="none">
24934 \begin_inset Text
24935
24936 \begin_layout Plain Layout
24937 splitidx
24938 \end_layout
24939
24940 \end_inset
24941 </cell>
24942 <cell alignment="center" valignment="top" usebox="none">
24943 \begin_inset Text
24944
24945 \begin_layout Plain Layout
24946 undertilde
24947 \end_layout
24948
24949 \end_inset
24950 </cell>
24951 <cell alignment="center" valignment="top" usebox="none">
24952 \begin_inset Text
24953
24954 \begin_layout Plain Layout
24955
24956 \end_layout
24957
24958 \end_inset
24959 </cell>
24960 </row>
24961 <row>
24962 <cell alignment="left" valignment="top" usebox="none">
24963 \begin_inset Text
24964
24965 \begin_layout Plain Layout
24966 array
24967 \end_layout
24968
24969 \end_inset
24970 </cell>
24971 <cell alignment="left" valignment="top" usebox="none">
24972 \begin_inset Text
24973
24974 \begin_layout Plain Layout
24975 endnotes
24976 \end_layout
24977
24978 \end_inset
24979 </cell>
24980 <cell alignment="left" valignment="top" usebox="none">
24981 \begin_inset Text
24982
24983 \begin_layout Plain Layout
24984 ifsym
24985 \end_layout
24986
24987 \end_inset
24988 </cell>
24989 <cell alignment="left" valignment="top" usebox="none">
24990 \begin_inset Text
24991
24992 \begin_layout Plain Layout
24993 mathrsfs
24994 \end_layout
24995
24996 \end_inset
24997 </cell>
24998 <cell alignment="center" valignment="top" usebox="none">
24999 \begin_inset Text
25000
25001 \begin_layout Plain Layout
25002 prettyref
25003 \end_layout
25004
25005 \end_inset
25006 </cell>
25007 <cell alignment="center" valignment="top" usebox="none">
25008 \begin_inset Text
25009
25010 \begin_layout Plain Layout
25011 subfig
25012 \end_layout
25013
25014 \end_inset
25015 </cell>
25016 <cell alignment="center" valignment="top" usebox="none">
25017 \begin_inset Text
25018
25019 \begin_layout Plain Layout
25020 units
25021 \end_layout
25022
25023 \end_inset
25024 </cell>
25025 <cell alignment="center" valignment="top" usebox="none">
25026 \begin_inset Text
25027
25028 \begin_layout Plain Layout
25029
25030 \end_layout
25031
25032 \end_inset
25033 </cell>
25034 </row>
25035 <row>
25036 <cell alignment="left" valignment="top" usebox="none">
25037 \begin_inset Text
25038
25039 \begin_layout Plain Layout
25040 ascii
25041 \end_layout
25042
25043 \end_inset
25044 </cell>
25045 <cell alignment="left" valignment="top" usebox="none">
25046 \begin_inset Text
25047
25048 \begin_layout Plain Layout
25049 enumitem
25050 \end_layout
25051
25052 \end_inset
25053 </cell>
25054 <cell alignment="left" valignment="top" usebox="none">
25055 \begin_inset Text
25056
25057 \begin_layout Plain Layout
25058 ifthen
25059 \end_layout
25060
25061 \end_inset
25062 </cell>
25063 <cell alignment="left" valignment="top" usebox="none">
25064 \begin_inset Text
25065
25066 \begin_layout Plain Layout
25067 mhchem
25068 \end_layout
25069
25070 \end_inset
25071 </cell>
25072 <cell alignment="center" valignment="top" usebox="none">
25073 \begin_inset Text
25074
25075 \begin_layout Plain Layout
25076 pxfonts
25077 \end_layout
25078
25079 \end_inset
25080 </cell>
25081 <cell alignment="center" valignment="top" usebox="none">
25082 \begin_inset Text
25083
25084 \begin_layout Plain Layout
25085 subscript
25086 \end_layout
25087
25088 \end_inset
25089 </cell>
25090 <cell alignment="center" valignment="top" usebox="none">
25091 \begin_inset Text
25092
25093 \begin_layout Plain Layout
25094 url
25095 \end_layout
25096
25097 \end_inset
25098 </cell>
25099 <cell alignment="center" valignment="top" usebox="none">
25100 \begin_inset Text
25101
25102 \begin_layout Plain Layout
25103
25104 \end_layout
25105
25106 \end_inset
25107 </cell>
25108 </row>
25109 <row>
25110 <cell alignment="left" valignment="top" usebox="none">
25111 \begin_inset Text
25112
25113 \begin_layout Plain Layout
25114 bbding
25115 \end_layout
25116
25117 \end_inset
25118 </cell>
25119 <cell alignment="left" valignment="top" usebox="none">
25120 \begin_inset Text
25121
25122 \begin_layout Plain Layout
25123 esint
25124 \end_layout
25125
25126 \end_inset
25127 </cell>
25128 <cell alignment="left" valignment="top" usebox="none">
25129 \begin_inset Text
25130
25131 \begin_layout Plain Layout
25132 jurabib
25133 \end_layout
25134
25135 \end_inset
25136 </cell>
25137 <cell alignment="left" valignment="top" usebox="none">
25138 \begin_inset Text
25139
25140 \begin_layout Plain Layout
25141 multicol
25142 \end_layout
25143
25144 \end_inset
25145 </cell>
25146 <cell alignment="center" valignment="top" usebox="none">
25147 \begin_inset Text
25148
25149 \begin_layout Plain Layout
25150 refstyle
25151 \end_layout
25152
25153 \end_inset
25154 </cell>
25155 <cell alignment="center" valignment="top" usebox="none">
25156 \begin_inset Text
25157
25158 \begin_layout Plain Layout
25159 textcomp
25160 \end_layout
25161
25162 \end_inset
25163 </cell>
25164 <cell alignment="center" valignment="top" usebox="none">
25165 \begin_inset Text
25166
25167 \begin_layout Plain Layout
25168 varioref
25169 \end_layout
25170
25171 \end_inset
25172 </cell>
25173 <cell alignment="center" valignment="top" usebox="none">
25174 \begin_inset Text
25175
25176 \begin_layout Plain Layout
25177
25178 \end_layout
25179
25180 \end_inset
25181 </cell>
25182 </row>
25183 <row>
25184 <cell alignment="center" valignment="top" usebox="none">
25185 \begin_inset Text
25186
25187 \begin_layout Plain Layout
25188 bm
25189 \end_layout
25190
25191 \end_inset
25192 </cell>
25193 <cell alignment="center" valignment="top" usebox="none">
25194 \begin_inset Text
25195
25196 \begin_layout Plain Layout
25197 fancybox
25198 \end_layout
25199
25200 \end_inset
25201 </cell>
25202 <cell alignment="center" valignment="top" usebox="none">
25203 \begin_inset Text
25204
25205 \begin_layout Plain Layout
25206 latexsym
25207 \end_layout
25208
25209 \end_inset
25210 </cell>
25211 <cell alignment="center" valignment="top" usebox="none">
25212 \begin_inset Text
25213
25214 \begin_layout Plain Layout
25215 multirow
25216 \end_layout
25217
25218 \end_inset
25219 </cell>
25220 <cell alignment="center" valignment="top" usebox="none">
25221 \begin_inset Text
25222
25223 \begin_layout Plain Layout
25224 rotating
25225 \end_layout
25226
25227 \end_inset
25228 </cell>
25229 <cell alignment="center" valignment="top" usebox="none">
25230 \begin_inset Text
25231
25232 \begin_layout Plain Layout
25233 textgreek
25234 \end_layout
25235
25236 \end_inset
25237 </cell>
25238 <cell alignment="center" valignment="top" usebox="none">
25239 \begin_inset Text
25240
25241 \begin_layout Plain Layout
25242 verbatim
25243 \end_layout
25244
25245 \end_inset
25246 </cell>
25247 <cell alignment="center" valignment="top" usebox="none">
25248 \begin_inset Text
25249
25250 \begin_layout Plain Layout
25251
25252 \end_layout
25253
25254 \end_inset
25255 </cell>
25256 </row>
25257 </lyxtabular>
25258
25259 \end_inset
25260
25261
25262 \end_layout
25263
25264 \begin_layout Chapter
25265 Names of available colors to be used in layouts
25266 \begin_inset CommandInset label
25267 LatexCommand label
25268 name "chap:Names-of-colors"
25269
25270 \end_inset
25271
25272
25273 \end_layout
25274
25275 \begin_layout Standard
25276 The colors listed here are the standard colors and the those that you can
25277  adjust in the \SpecialChar LyX
25278  preferences.
25279 \end_layout
25280
25281 \begin_layout Description
25282 none
25283 \family roman
25284 \series medium
25285 \shape up
25286 \size normal
25287 \emph off
25288 \bar no
25289 \strikeout off
25290 \uuline off
25291 \uwave off
25292 \noun off
25293 \color none
25294  No particular color – clear or default
25295 \end_layout
25296
25297 \begin_layout Description
25298 black
25299 \end_layout
25300
25301 \begin_layout Description
25302 white
25303 \end_layout
25304
25305 \begin_layout Description
25306 red
25307 \end_layout
25308
25309 \begin_layout Description
25310 green
25311 \end_layout
25312
25313 \begin_layout Description
25314 blue
25315 \end_layout
25316
25317 \begin_layout Description
25318 cyan
25319 \end_layout
25320
25321 \begin_layout Description
25322 magenta
25323 \end_layout
25324
25325 \begin_layout Description
25326 yellow
25327 \end_layout
25328
25329 \begin_layout Description
25330 added_space Added space marker color
25331 \end_layout
25332
25333 \begin_layout Description
25334 addedtext Added text color
25335 \end_layout
25336
25337 \begin_layout Description
25338 appendix Appendix marker color
25339 \end_layout
25340
25341 \begin_layout Description
25342 background Background color
25343 \end_layout
25344
25345 \begin_layout Description
25346 bottomarea Bottom area color
25347 \end_layout
25348
25349 \begin_layout Description
25350 branchlabel Label color for branches
25351 \end_layout
25352
25353 \begin_layout Description
25354 buttonbg Color used for bottom background
25355 \end_layout
25356
25357 \begin_layout Description
25358 buttonhoverbg Color used for button background under focus
25359 \end_layout
25360
25361 \begin_layout Description
25362 buttonframe Color for inset button frames
25363 \end_layout
25364
25365 \begin_layout Description
25366 changebar Changebar color
25367 \end_layout
25368
25369 \begin_layout Description
25370 changedtextauthor1 Changed text color author 1
25371 \end_layout
25372
25373 \begin_layout Description
25374 changedtextauthor2 Changed text color author 2
25375 \end_layout
25376
25377 \begin_layout Description
25378 changedtextauthor3 Changed text color author 3
25379 \end_layout
25380
25381 \begin_layout Description
25382 changedtextauthor4 Changed text color author 4
25383 \end_layout
25384
25385 \begin_layout Description
25386 changedtextauthor5 Changed text color author 5
25387 \end_layout
25388
25389 \begin_layout Description
25390 collapsable_inset_frame Collapsable insets framecolor
25391 \end_layout
25392
25393 \begin_layout Description
25394 collapsable_inset_text Collapsable insets text color
25395 \end_layout
25396
25397 \begin_layout Description
25398 command Text color for command insets
25399 \end_layout
25400
25401 \begin_layout Description
25402 commandbg Background color for command insets
25403 \end_layout
25404
25405 \begin_layout Description
25406 commandframe Frame color for command insets
25407 \end_layout
25408
25409 \begin_layout Description
25410 comment color for comments
25411 \end_layout
25412
25413 \begin_layout Description
25414 commentbg Background color of comments
25415 \end_layout
25416
25417 \begin_layout Description
25418 cursor Cursor color
25419 \end_layout
25420
25421 \begin_layout Description
25422 deletedtext Deleted text color
25423 \end_layout
25424
25425 \begin_layout Description
25426 deletedtextmodifier Deleted text modifying color
25427 \end_layout
25428
25429 \begin_layout Description
25430 depthbar Color for the depth bars in the margin
25431 \end_layout
25432
25433 \begin_layout Description
25434 eolmarker End of line marker color
25435 \end_layout
25436
25437 \begin_layout Description
25438 error Color of the \SpecialChar LaTeX
25439  error box
25440 \end_layout
25441
25442 \begin_layout Description
25443 footlabel Label color for footnotes
25444 \end_layout
25445
25446 \begin_layout Description
25447 graphicsbg Graphics inset background color
25448 \end_layout
25449
25450 \begin_layout Description
25451 greyedout Label color for greyedout insets
25452 \end_layout
25453
25454 \begin_layout Description
25455 greyedoutbg Background color of greyedout inset
25456 \end_layout
25457
25458 \begin_layout Description
25459 greyedouttext Color for greyedout inset text
25460 \end_layout
25461
25462 \begin_layout Description
25463 indexlabel Label color for index insets
25464 \end_layout
25465
25466 \begin_layout Description
25467 ignore The color is ignored
25468 \end_layout
25469
25470 \begin_layout Description
25471 inherit The color is inherited
25472 \end_layout
25473
25474 \begin_layout Description
25475 inlinecompletion Inline completion color
25476 \end_layout
25477
25478 \begin_layout Description
25479 insetbg Inset marker background color
25480 \end_layout
25481
25482 \begin_layout Description
25483 insetframe Inset marker frame color
25484 \end_layout
25485
25486 \begin_layout Description
25487 language Color for marking foreign language words
25488 \end_layout
25489
25490 \begin_layout Description
25491 latex Text color in \SpecialChar LaTeX
25492  mode
25493 \end_layout
25494
25495 \begin_layout Description
25496 listingsbg Background color of listings inset
25497 \end_layout
25498
25499 \begin_layout Description
25500 marginlabel Label color for margin notes
25501 \end_layout
25502
25503 \begin_layout Description
25504 math Math inset text color
25505 \end_layout
25506
25507 \begin_layout Description
25508 mathbg Math inset background color
25509 \end_layout
25510
25511 \begin_layout Description
25512 mathcorners Math inset frame color not under focus
25513 \end_layout
25514
25515 \begin_layout Description
25516 mathframe Math inset frame color under focus
25517 \end_layout
25518
25519 \begin_layout Description
25520 mathline Math line color
25521 \end_layout
25522
25523 \begin_layout Description
25524 mathmacrobg Macro math inset background color
25525 \end_layout
25526
25527 \begin_layout Description
25528 mathmacroblend Macro math blended color
25529 \end_layout
25530
25531 \begin_layout Description
25532 mathmacroframe Macro math frame color
25533 \end_layout
25534
25535 \begin_layout Description
25536 mathmacrohoverbg Macro math inset background color hovered
25537 \end_layout
25538
25539 \begin_layout Description
25540 mathmacrolabel Macro math label color
25541 \end_layout
25542
25543 \begin_layout Description
25544 mathmacronewarg Macro template color for new parameters
25545 \end_layout
25546
25547 \begin_layout Description
25548 mathmacrooldarg Macro template color for old parameters
25549 \end_layout
25550
25551 \begin_layout Description
25552 newpage New page color
25553 \end_layout
25554
25555 \begin_layout Description
25556 nonunique_inlinecompletion Inline completion color for the non-unique part
25557 \end_layout
25558
25559 \begin_layout Description
25560 notebg Background color of notes
25561 \end_layout
25562
25563 \begin_layout Description
25564 notelabel Label color for notes
25565 \end_layout
25566
25567 \begin_layout Description
25568 pagebreak Page break/line break color
25569 \end_layout
25570
25571 \begin_layout Description
25572 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25573 \end_layout
25574
25575 \begin_layout Description
25576 phantomtext Text color for phantom insets
25577 \end_layout
25578
25579 \begin_layout Description
25580 preview The color used for previews
25581 \end_layout
25582
25583 \begin_layout Description
25584 previewframe Preview frame color
25585 \end_layout
25586
25587 \begin_layout Description
25588 regexpframe Color for regexp frame
25589 \end_layout
25590
25591 \begin_layout Description
25592 selection Background color of selected text
25593 \end_layout
25594
25595 \begin_layout Description
25596 selectiontext Foreground color of selected text
25597 \end_layout
25598
25599 \begin_layout Description
25600 shadedbg Background color of shaded box
25601 \end_layout
25602
25603 \begin_layout Description
25604 special Special chars text color
25605 \end_layout
25606
25607 \begin_layout Description
25608 tabularline Table line color
25609 \end_layout
25610
25611 \begin_layout Description
25612 tabularonoffline Table line color
25613 \end_layout
25614
25615 \begin_layout Description
25616 urllabel Label color for URL insets
25617 \end_layout
25618
25619 \begin_layout Description
25620 urltext Color for URL inset text
25621 \end_layout
25622
25623 \end_body
25624 \end_document