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