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