]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Replace the origin tag for documents modified before 260a98d2
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 493
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \usepackage{ifpdf} % part of the hyperref bundle
18 \ifpdf % if pdflatex is used
19
20  % set fonts for nicer pdf view
21  \IfFileExists{lmodern.sty}
22   {\usepackage{lmodern}}{}
23
24 \fi % end if pdflatex is used
25
26 % the pages of the TOC is numbered roman
27 % and a pdf-bookmark for the TOC is added
28 \let\myTOC\tableofcontents
29 \renewcommand\tableofcontents{%
30   \frontmatter
31   \pdfbookmark[1]{\contentsname}{}
32   \myTOC
33   \mainmatter }
34
35 % increase link area for cross-references and autoname them,
36 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
37 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
38 \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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 "sub: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 \end_layout
14157
14158 \begin_layout Description
14159 \begin_inset Flex Code
14160 status collapsed
14161
14162 \begin_layout Plain Layout
14163 ParbreakIsNewline
14164 \end_layout
14165
14166 \end_inset
14167
14168  [
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173
14174 \emph on
14175 0
14176 \end_layout
14177
14178 \end_inset
14179
14180 ,
14181 \begin_inset space \thinspace{}
14182 \end_inset
14183
14184
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 1
14190 \end_layout
14191
14192 \end_inset
14193
14194 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14195  output,
14196  but only by a line break; together with 
14197 \begin_inset Flex Code
14198 status collapsed
14199
14200 \begin_layout Plain Layout
14201 PassThru 1
14202 \end_layout
14203
14204 \end_inset
14205
14206 , this allows to emulate a plain text editor (like the ERT inset).
14207 \end_layout
14208
14209 \begin_layout Description
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 ParIndent
14215 \end_layout
14216
14217 \end_inset
14218
14219  [
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224 string=""
14225 \end_layout
14226
14227 \end_inset
14228
14229 ] The indent of the very first line of a paragraph.
14230  The
14231 \begin_inset Newline newline
14232 \end_inset
14233
14234
14235 \begin_inset Flex Code
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 Parindent
14240 \end_layout
14241
14242 \end_inset
14243
14244  will be fixed for a certain style.
14245  The exception is the default style, since the indentation for these paragraphs
14246  can be prohibited with 
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 NextNoIndent
14252 \end_layout
14253
14254 \end_inset
14255
14256 .
14257  Also, 
14258 \begin_inset Flex Code
14259 status collapsed
14260
14261 \begin_layout Plain Layout
14262 Standard
14263 \end_layout
14264
14265 \end_inset
14266
14267  style paragraphs inside environments use the 
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272 Parindent
14273 \end_layout
14274
14275 \end_inset
14276
14277  of the environment, not their native one.
14278  For example, 
14279 \begin_inset Flex Code
14280 status collapsed
14281
14282 \begin_layout Plain Layout
14283 Standard
14284 \end_layout
14285
14286 \end_inset
14287
14288  paragraphs inside an enumeration are not indented.
14289 \end_layout
14290
14291 \begin_layout Description
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296 ParSep
14297 \end_layout
14298
14299 \end_inset
14300
14301  [
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 float=0
14307 \end_layout
14308
14309 \end_inset
14310
14311 ] The vertical space between two paragraphs of this style.
14312 \end_layout
14313
14314 \begin_layout Description
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 Parskip
14320 \end_layout
14321
14322 \end_inset
14323
14324  [
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 float=0
14330 \end_layout
14331
14332 \end_inset
14333
14334 ] \SpecialChar LyX
14335  allows the user to choose either 
14336 \begin_inset Quotes eld
14337 \end_inset
14338
14339 indent
14340 \begin_inset Quotes erd
14341 \end_inset
14342
14343  or 
14344 \begin_inset Quotes eld
14345 \end_inset
14346
14347 skip
14348 \begin_inset Quotes erd
14349 \end_inset
14350
14351  to separate paragraphs.
14352  When 
14353 \begin_inset Quotes eld
14354 \end_inset
14355
14356 indent
14357 \begin_inset Quotes erd
14358 \end_inset
14359
14360  is chosen, 
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365 Parskip
14366 \end_layout
14367
14368 \end_inset
14369
14370  is ignored.
14371  When 
14372 \begin_inset Quotes eld
14373 \end_inset
14374
14375 skip
14376 \begin_inset Quotes erd
14377 \end_inset
14378
14379  is chosen, 
14380 \begin_inset Flex Code
14381 status collapsed
14382
14383 \begin_layout Plain Layout
14384 ParIndent
14385 \end_layout
14386
14387 \end_inset
14388
14389  is ignored and all paragraphs are separated by the 
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 Parskip
14395 \end_layout
14396
14397 \end_inset
14398
14399  argument.
14400  The vertical space is calculated with 
14401 \begin_inset Flex Code
14402 status collapsed
14403
14404 \begin_layout Plain Layout
14405 Parskip
14406 \begin_inset space ~
14407 \end_inset
14408
14409 * DefaultHeight
14410 \end_layout
14411
14412 \end_inset
14413
14414  where 
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 DefaultHeight
14420 \end_layout
14421
14422 \end_inset
14423
14424  is the height of a row with the normal font.
14425  This way, the look stays the same with different screen fonts.
14426 \end_layout
14427
14428 \begin_layout Description
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 PassThru
14434 \end_layout
14435
14436 \end_inset
14437
14438  [
14439 \begin_inset Flex Code
14440 status collapsed
14441
14442 \begin_layout Plain Layout
14443
14444 \emph on
14445 0
14446 \end_layout
14447
14448 \end_inset
14449
14450 ,
14451 \begin_inset space \thinspace{}
14452 \end_inset
14453
14454
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 1
14460 \end_layout
14461
14462 \end_inset
14463
14464 ] Whether the contents of this paragraph should be output in raw form, meaning
14465  without special translations that \SpecialChar LaTeX
14466  would require.
14467 \change_inserted 155139281 1429534178
14468
14469 \end_layout
14470
14471 \begin_layout Description
14472
14473 \change_inserted 155139281 1429534242
14474
14475 \lang ngerman
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480
14481 \change_inserted 155139281 1429534178
14482 PassThruChars
14483 \end_layout
14484
14485 \end_inset
14486
14487
14488 \lang english
14489  [
14490 \begin_inset Flex Code
14491 status collapsed
14492
14493 \begin_layout Plain Layout
14494
14495 \change_inserted 155139281 1429534178
14496 string of characters
14497 \end_layout
14498
14499 \end_inset
14500
14501 ]
14502 \family typewriter
14503  
14504 \family default
14505 Defines individual characters that should be output in raw form, meaning
14506  without special translations that \SpecialChar LaTeX
14507  would require.
14508 \change_unchanged
14509
14510 \end_layout
14511
14512 \begin_layout Description
14513 \begin_inset Flex Code
14514 status collapsed
14515
14516 \begin_layout Plain Layout
14517 Preamble
14518 \end_layout
14519
14520 \end_inset
14521
14522  Information to be included in the \SpecialChar LaTeX
14523  preamble when this style is used.
14524  Used to define macros, load packages, etc., required by this particular
14525  style.
14526  Must end with 
14527 \begin_inset Quotes eld
14528 \end_inset
14529
14530
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 EndPreamble
14536 \end_layout
14537
14538 \end_inset
14539
14540
14541 \begin_inset Quotes erd
14542 \end_inset
14543
14544 .
14545 \end_layout
14546
14547 \begin_layout Description
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552 RefPrefix
14553 \end_layout
14554
14555 \end_inset
14556
14557  [
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 string
14563 \end_layout
14564
14565 \end_inset
14566
14567 ] The prefix to use when creating labels referring to paragraphs of this
14568  type.
14569  This allows the use of formatted references.
14570 \end_layout
14571
14572 \begin_layout Description
14573 \begin_inset Flex Code
14574 status collapsed
14575
14576 \begin_layout Plain Layout
14577 Requires 
14578 \end_layout
14579
14580 \end_inset
14581
14582  [
14583 \begin_inset Flex Code
14584 status collapsed
14585
14586 \begin_layout Plain Layout
14587 string
14588 \end_layout
14589
14590 \end_inset
14591
14592 ] Whether the style requires the feature 
14593 \begin_inset Flex Code
14594 status collapsed
14595
14596 \begin_layout Plain Layout
14597 string
14598 \end_layout
14599
14600 \end_inset
14601
14602 .
14603  See the description of 
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Provides
14609 \end_layout
14610
14611 \end_inset
14612
14613  above (
14614 \begin_inset CommandInset ref
14615 LatexCommand ref
14616 reference "sub:General-text-class"
14617
14618 \end_inset
14619
14620 ) for information on `features'.
14621 \end_layout
14622
14623 \begin_layout Description
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 ResetArgs
14629 \end_layout
14630
14631 \end_inset
14632
14633  [
14634 \begin_inset Flex Code
14635 status collapsed
14636
14637 \begin_layout Plain Layout
14638
14639 \emph on
14640 0
14641 \end_layout
14642
14643 \end_inset
14644
14645 ,
14646 \begin_inset Flex Code
14647 status collapsed
14648
14649 \begin_layout Plain Layout
14650 1
14651 \end_layout
14652
14653 \end_inset
14654
14655 ] Resets the \SpecialChar LaTeX
14656  arguments of this style (as defined via the 
14657 \begin_inset Flex Code
14658 status collapsed
14659
14660 \begin_layout Plain Layout
14661 Argument
14662 \end_layout
14663
14664 \end_inset
14665
14666  tag).
14667  This is useful if you have copied a style via 
14668 \begin_inset Flex Code
14669 status collapsed
14670
14671 \begin_layout Plain Layout
14672 CopyStyle
14673 \end_layout
14674
14675 \end_inset
14676
14677 , but you do not want to inherit its (required and optional) arguments.
14678 \end_layout
14679
14680 \begin_layout Description
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 RightDelim
14686 \end_layout
14687
14688 \end_inset
14689
14690  [
14691 \begin_inset Flex Code
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695 string
14696 \end_layout
14697
14698 \end_inset
14699
14700 ] A string that is put at the end of the layout content.
14701  A line break in the output can be indicated by 
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 <br/>
14707 \end_layout
14708
14709 \end_inset
14710
14711 .
14712 \end_layout
14713
14714 \begin_layout Description
14715 \begin_inset Flex Code
14716 status collapsed
14717
14718 \begin_layout Plain Layout
14719 RightMargin
14720 \end_layout
14721
14722 \end_inset
14723
14724  [
14725 \begin_inset Flex Code
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 string=""
14730 \end_layout
14731
14732 \end_inset
14733
14734 ] Similar to 
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 LeftMargin
14740 \end_layout
14741
14742 \end_inset
14743
14744 .
14745 \end_layout
14746
14747 \begin_layout Description
14748 \begin_inset Flex Code
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752 Spacing
14753 \end_layout
14754
14755 \end_inset
14756
14757  [
14758 \begin_inset Flex Code
14759 status collapsed
14760
14761 \begin_layout Plain Layout
14762
14763 \emph on
14764 single
14765 \end_layout
14766
14767 \end_inset
14768
14769
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 onehalf
14775 \end_layout
14776
14777 \end_inset
14778
14779
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 double
14785 \end_layout
14786
14787 \end_inset
14788
14789
14790 \begin_inset Flex Code
14791 status collapsed
14792
14793 \begin_layout Plain Layout
14794 other
14795 \begin_inset space ~
14796 \end_inset
14797
14798 <value>
14799 \end_layout
14800
14801 \end_inset
14802
14803 ] This defines what the default spacing should be in the style.
14804  The arguments 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 single
14810 \end_layout
14811
14812 \end_inset
14813
14814
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 onehalf
14820 \end_layout
14821
14822 \end_inset
14823
14824  and 
14825 \begin_inset Flex Code
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829 double
14830 \end_layout
14831
14832 \end_inset
14833
14834  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14835  If you specify the argument 
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 other
14841 \end_layout
14842
14843 \end_inset
14844
14845 , then you must also provide a value argument which will be the actual multiplie
14846 r value.
14847  Note that, contrary to other parameters, 
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 Spacing
14853 \end_layout
14854
14855 \end_inset
14856
14857  implies the generation of specific \SpecialChar LaTeX
14858  code, using the \SpecialChar LaTeX
14859  package 
14860 \family roman
14861
14862 \begin_inset Flex Code
14863 status collapsed
14864
14865 \begin_layout Plain Layout
14866 setspace
14867 \end_layout
14868
14869 \end_inset
14870
14871 .
14872 \end_layout
14873
14874 \begin_layout Description
14875 \begin_inset Flex Code
14876 status collapsed
14877
14878 \begin_layout Plain Layout
14879 Spellcheck
14880 \end_layout
14881
14882 \end_inset
14883
14884  [
14885 \begin_inset Flex Code
14886 status collapsed
14887
14888 \begin_layout Plain Layout
14889 0
14890 \end_layout
14891
14892 \end_inset
14893
14894 ,
14895 \begin_inset space \thinspace{}
14896 \end_inset
14897
14898
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903
14904 \emph on
14905 1
14906 \end_layout
14907
14908 \end_inset
14909
14910 ] Allow spell-checking paragraphs of this style.
14911  Default is true.
14912 \end_layout
14913
14914 \begin_layout Description
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 TextFont
14920 \end_layout
14921
14922 \end_inset
14923
14924  The font used for the text body .
14925  See 
14926 \begin_inset CommandInset ref
14927 LatexCommand ref
14928 reference "sub:Font-description"
14929
14930 \end_inset
14931
14932 .
14933 \end_layout
14934
14935 \begin_layout Description
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 TocLevel
14941 \end_layout
14942
14943 \end_inset
14944
14945
14946 \series medium
14947  [
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952
14953 \series medium
14954 int=3
14955 \end_layout
14956
14957 \end_inset
14958
14959 ]
14960 \series default
14961  The level of the style in the table of contents.
14962  This is used for automatic numbering of section headings.
14963 \change_inserted -712698321 1401363541
14964
14965 \end_layout
14966
14967 \begin_layout Description
14968
14969 \change_inserted -712698321 1401363906
14970 \begin_inset Flex Code
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974
14975 \change_inserted -712698321 1401363547
14976 ToggleIndent
14977 \end_layout
14978
14979 \end_inset
14980
14981  [
14982 \emph on
14983
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988
14989 \change_inserted -712698321 1401363664
14990
14991 \emph on
14992 default
14993 \change_unchanged
14994
14995 \end_layout
14996
14997 \end_inset
14998
14999
15000 \emph default
15001
15002 \begin_inset Flex Code
15003 status collapsed
15004
15005 \begin_layout Plain Layout
15006
15007 \change_inserted -712698321 1401363669
15008 always
15009 \change_unchanged
15010
15011 \end_layout
15012
15013 \end_inset
15014
15015
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020
15021 \change_inserted -712698321 1401363675
15022 never
15023 \change_unchanged
15024
15025 \end_layout
15026
15027 \end_inset
15028
15029 ] This tag determines whether the first line indentation of this paragraph
15030  can be toggled via the Paragraph settings dialog.
15031  If 
15032 \emph on
15033
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038
15039 \change_inserted -712698321 1401363761
15040
15041 \emph off
15042 default
15043 \end_layout
15044
15045 \end_inset
15046
15047
15048 \emph default
15049  is set, indentation can be toggled if the document settings use 
15050 \begin_inset Quotes eld
15051 \end_inset
15052
15053 indent
15054 \begin_inset Quotes erd
15055 \end_inset
15056
15057  paragraph style, with 
15058 \begin_inset Flex Code
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062
15063 \change_inserted -712698321 1401363844
15064 always
15065 \end_layout
15066
15067 \end_inset
15068
15069 , indentation can always be toggled, notwithstanding the document settings,
15070  with 
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075
15076 \change_inserted -712698321 1401363901
15077 never
15078 \end_layout
15079
15080 \end_inset
15081
15082 , indentation can never be toggled.
15083 \change_unchanged
15084
15085 \end_layout
15086
15087 \begin_layout Description
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 TopSep
15093 \end_layout
15094
15095 \end_inset
15096
15097  [
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102 float=0
15103 \end_layout
15104
15105 \end_inset
15106
15107 ] The vertical space with which the very first of a chain of paragraphs
15108  with this style is separated from the previous paragraph.
15109  If the previous paragraph has another style, the separations are not simply
15110  added, but the maximum is taken.
15111 \end_layout
15112
15113 \begin_layout Subsection
15114 \begin_inset CommandInset label
15115 LatexCommand label
15116 name "sub:I18n"
15117
15118 \end_inset
15119
15120 Internationalization of Paragraph Styles
15121 \end_layout
15122
15123 \begin_layout Standard
15124 \SpecialChar LyX
15125  has long supported internationalization of layout information, but, until
15126  version 2.0, this applied only to the user interface and not to, say, PDF
15127  output.
15128  Thus, French authors were forced to resort to ugly hacks if they wanted
15129  `
15130 \lang french
15131 Théorème
15132 \lang english
15133  1' instead of `Theorem 1'.
15134  Thanks to Georg Baum, that is no longer the case.
15135 \end_layout
15136
15137 \begin_layout Standard
15138 If a 
15139 \begin_inset Flex Code
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 Style
15144 \end_layout
15145
15146 \end_inset
15147
15148  defines text that is to appear in the typeset document, it may use 
15149 \begin_inset Flex Code
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153 LangPreamble
15154 \end_layout
15155
15156 \end_inset
15157
15158  and 
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 BabelPreamble
15164 \end_layout
15165
15166 \end_inset
15167
15168  to support non-English and even multi-language documents correctly.
15169  The following excerpt (from the 
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 theorems-ams.inc
15175 \end_layout
15176
15177 \end_inset
15178
15179  file) shows how this works:
15180 \end_layout
15181
15182 \begin_layout LyX-Code
15183 Preamble
15184 \begin_inset Separator parbreak
15185 \end_inset
15186
15187
15188 \end_layout
15189
15190 \begin_deeper
15191 \begin_layout LyX-Code
15192   
15193 \backslash
15194 theoremstyle{remark}
15195 \end_layout
15196
15197 \begin_layout LyX-Code
15198   
15199 \backslash
15200 newtheorem{claim}[thm]{
15201 \backslash
15202 protect
15203 \backslash
15204 claimname}
15205 \end_layout
15206
15207 \begin_layout LyX-Code
15208 EndPreamble
15209 \end_layout
15210
15211 \begin_layout LyX-Code
15212 LangPreamble
15213 \end_layout
15214
15215 \begin_layout LyX-Code
15216   
15217 \backslash
15218 providecommand{
15219 \backslash
15220 claimname}{_(Claim)}
15221 \end_layout
15222
15223 \begin_layout LyX-Code
15224 EndLangPreamble
15225 \end_layout
15226
15227 \begin_layout LyX-Code
15228 BabelPreamble
15229 \end_layout
15230
15231 \begin_layout LyX-Code
15232     
15233 \backslash
15234 addto
15235 \backslash
15236 captions$$lang{
15237 \backslash
15238 renewcommand{
15239 \backslash
15240 claimname}{_(Claim)}}
15241 \end_layout
15242
15243 \begin_layout LyX-Code
15244 EndBabelPreamble
15245 \end_layout
15246
15247 \end_deeper
15248 \begin_layout Standard
15249 In principle, any legal \SpecialChar LaTeX
15250  may appear in the 
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 LangPreamble
15256 \end_layout
15257
15258 \end_inset
15259
15260  and 
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 BabelPreamble
15266 \end_layout
15267
15268 \end_inset
15269
15270  tags, but in practice they will typically look as they do here.
15271  The key to correct translation of the typeset text is the definition of
15272  the \SpecialChar LaTeX
15273  command 
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278
15279 \backslash
15280 claimname
15281 \end_layout
15282
15283 \end_inset
15284
15285  and its use in 
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290
15291 \backslash
15292 newtheorem
15293 \end_layout
15294
15295 \end_inset
15296
15297 .
15298  
15299 \end_layout
15300
15301 \begin_layout Standard
15302 The 
15303 \begin_inset Flex Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307 LangPreamble
15308 \end_layout
15309
15310 \end_inset
15311
15312  tag provides for internationalization based upon the overall language of
15313  the document.
15314  The contents of the tag will be included in the preamble, just as with
15315  the 
15316 \begin_inset Flex Code
15317 status collapsed
15318
15319 \begin_layout Plain Layout
15320 Preamble
15321 \end_layout
15322
15323 \end_inset
15324
15325  tag.
15326  What makes it special is the use of the 
15327 \begin_inset Quotes eld
15328 \end_inset
15329
15330 function
15331 \begin_inset Quotes erd
15332 \end_inset
15333
15334  
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339 _()
15340 \end_layout
15341
15342 \end_inset
15343
15344 , which will be replaced, when \SpecialChar LyX
15345  produces \SpecialChar LaTeX
15346  output, with the translation of
15347  its argument into the document language.
15348 \end_layout
15349
15350 \begin_layout Standard
15351 The 
15352 \begin_inset Flex Code
15353 status collapsed
15354
15355 \begin_layout Plain Layout
15356 BabelPreamble
15357 \end_layout
15358
15359 \end_inset
15360
15361  tag is more complex, since it is meant to provide support for multi-language
15362  documents and so offers an interface to the 
15363 \begin_inset Flex Code
15364 status collapsed
15365
15366 \begin_layout Plain Layout
15367 babel
15368 \end_layout
15369
15370 \end_inset
15371
15372  package.
15373  Its contents will be added to the preamble once for each language that
15374  appears in the document.
15375  In this case, the argument to 
15376 \begin_inset Flex Code
15377 status collapsed
15378
15379 \begin_layout Plain Layout
15380 _()
15381 \end_layout
15382
15383 \end_inset
15384
15385  will be replaced with its translation into the language in question; the
15386  expression 
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 $$lang
15392 \end_layout
15393
15394 \end_inset
15395
15396  is replaced by the language name (as used by the babel package).
15397 \end_layout
15398
15399 \begin_layout Standard
15400 A German document that also included a French section would thus have the
15401  following in the preamble:
15402 \end_layout
15403
15404 \begin_layout LyX-Code
15405
15406 \backslash
15407 addto
15408 \backslash
15409 captionsfrench{
15410 \backslash
15411 renewcommand{
15412 \backslash
15413 claimname}{Affirmation}}
15414 \begin_inset Newline newline
15415 \end_inset
15416
15417
15418 \backslash
15419 addto
15420 \backslash
15421 captionsngerman{
15422 \backslash
15423 renewcommand{
15424 \backslash
15425 claimname}{Behauptung}}
15426 \begin_inset Newline newline
15427 \end_inset
15428
15429
15430 \backslash
15431 providecommand{
15432 \backslash
15433 claimname}{Behauptung}
15434 \end_layout
15435
15436 \begin_layout Standard
15437 \SpecialChar LaTeX
15438  and 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 babel
15444 \end_layout
15445
15446 \end_inset
15447
15448  will then conspire to produce the correct text in the output.
15449 \end_layout
15450
15451 \begin_layout Standard
15452 One important point to note here is that the translations are provided by
15453  \SpecialChar LyX
15454  itself, through the file 
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 layouttranslations
15460 \end_layout
15461
15462 \end_inset
15463
15464 .
15465  This means, in effect, that 
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470 LangPreamble
15471 \end_layout
15472
15473 \end_inset
15474
15475  and 
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 BabelPreamble
15481 \end_layout
15482
15483 \end_inset
15484
15485  are really only of use in layout files that are provided with \SpecialChar LyX
15486 , since text
15487  entered in user-created layout files will not be seen by \SpecialChar LyX
15488 's internationalizatio
15489 n routines unless the 
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 layouttranslations
15495 \end_layout
15496
15497 \end_inset
15498
15499  file is modified accordingly.
15500  That said, however, any layout created with the intention that it will
15501  be included with \SpecialChar LyX
15502  should use these tags where appropriate.
15503  Please note that the paragraph style translations provided by \SpecialChar LyX
15504  will never
15505  change with a minor update (e.
15506 \begin_inset space \thinspace{}
15507 \end_inset
15508
15509 g.
15510 \begin_inset space \space{}
15511 \end_inset
15512
15513 from version 2.1.x to 2.1.y).
15514  It is however quite likely that a major update (e.
15515 \begin_inset space \thinspace{}
15516 \end_inset
15517
15518 g.
15519 \begin_inset space \space{}
15520 \end_inset
15521
15522 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15523 \end_layout
15524
15525 \begin_layout Subsection
15526 Floats
15527 \begin_inset CommandInset label
15528 LatexCommand label
15529 name "sub:Floats"
15530
15531 \end_inset
15532
15533
15534 \end_layout
15535
15536 \begin_layout Standard
15537 It is necessary to define the floats (
15538 \begin_inset Flex MenuItem
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 figure
15543 \end_layout
15544
15545 \end_inset
15546
15547
15548 \begin_inset Flex MenuItem
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 table
15553 \end_layout
15554
15555 \end_inset
15556
15557 , \SpecialChar ldots
15558 ) in the text class itself.
15559  Standard floats are included in the file 
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 stdfloats.inc
15565 \end_layout
15566
15567 \end_inset
15568
15569 , so you may have to do no more than add
15570 \end_layout
15571
15572 \begin_layout LyX-Code
15573 Input stdfloats.inc
15574 \end_layout
15575
15576 \begin_layout Standard
15577 to your layout file.
15578  If you want to implement a text class that proposes some other float types
15579  (like the AGU class bundled with \SpecialChar LyX
15580 ), the information below will hopefully
15581  help you:
15582 \change_inserted -712698321 1432283506
15583
15584 \end_layout
15585
15586 \begin_layout Description
15587
15588 \change_inserted -712698321 1432313622
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593
15594 \change_inserted -712698321 1432283514
15595 AllowedPlacement
15596 \end_layout
15597
15598 \end_inset
15599
15600  [
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605
15606 \change_inserted -712698321 1432283507
15607 string
15608 \end_layout
15609
15610 \end_inset
15611
15612 =!htbpH] Allowed placement options for this float type.
15613  The value is a string of placement characters.
15614  Possible characters include: 
15615 \emph on
15616 h
15617 \emph default
15618  (
15619 \begin_inset Quotes eld
15620 \end_inset
15621
15622 here if possible
15623 \begin_inset Quotes erd
15624 \end_inset
15625
15626 ), 
15627 \emph on
15628 t
15629 \emph default
15630  (
15631 \begin_inset Quotes eld
15632 \end_inset
15633
15634 top of page
15635 \begin_inset Quotes erd
15636 \end_inset
15637
15638 ), 
15639 \emph on
15640 b
15641 \emph default
15642  (
15643 \begin_inset Quotes eld
15644 \end_inset
15645
15646 bottom of page
15647 \begin_inset Quotes erd
15648 \end_inset
15649
15650 ), 
15651 \emph on
15652 p
15653 \emph default
15654  (
15655 \begin_inset Quotes eld
15656 \end_inset
15657
15658 page of floats
15659 \begin_inset Quotes erd
15660 \end_inset
15661
15662 ), 
15663 \emph on
15664 H
15665 \emph default
15666  (
15667 \begin_inset Quotes eld
15668 \end_inset
15669
15670 here definitely
15671 \begin_inset Quotes erd
15672 \end_inset
15673
15674 ) and 
15675 \emph on
15676 !
15677 \emph default
15678  (
15679 \begin_inset Quotes eld
15680 \end_inset
15681
15682 ignore LaTeX rules
15683 \begin_inset Quotes erd
15684 \end_inset
15685
15686 ).
15687  The order of the characters in the string does not matter.
15688  If no placement options are allowed, use the string 
15689 \emph on
15690 none
15691 \emph default
15692 .
15693 \end_layout
15694
15695 \begin_layout Description
15696
15697 \change_inserted -712698321 1432313755
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702
15703 \change_inserted -712698321 1432313630
15704 AllowsSideways
15705 \end_layout
15706
15707 \end_inset
15708
15709  [
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714
15715 \change_inserted -712698321 1432313646
15716
15717 \emph off
15718 0
15719 \end_layout
15720
15721 \end_inset
15722
15723 ,
15724 \begin_inset space \thinspace{}
15725 \end_inset
15726
15727
15728 \emph on
15729
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734
15735 \change_inserted -712698321 1432313646
15736
15737 \emph on
15738 1
15739 \end_layout
15740
15741 \end_inset
15742
15743
15744 \emph default
15745 ] Defines whether the float allows to be rotated via the rotfloat package
15746  (sidewaysfloat).
15747  Set to 
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752
15753 \change_inserted -712698321 1432313721
15754 0
15755 \end_layout
15756
15757 \end_inset
15758
15759  if the float does not support this feature.
15760 \end_layout
15761
15762 \begin_layout Description
15763
15764 \change_inserted -712698321 1432313802
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769
15770 \change_inserted -712698321 1432313759
15771 AllowsWide
15772 \end_layout
15773
15774 \end_inset
15775
15776  [
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781
15782 \change_inserted -712698321 1432313755
15783
15784 \emph off
15785 0
15786 \end_layout
15787
15788 \end_inset
15789
15790 ,
15791 \begin_inset space \thinspace{}
15792 \end_inset
15793
15794
15795 \emph on
15796
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801
15802 \change_inserted -712698321 1432313755
15803
15804 \emph on
15805 1
15806 \end_layout
15807
15808 \end_inset
15809
15810
15811 \emph default
15812 ] Defines whether the float has a starred variant that spans columns in
15813  a two column paragraph.
15814  Set to 
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819
15820 \change_inserted -712698321 1432313755
15821 0
15822 \end_layout
15823
15824 \end_inset
15825
15826  if the float does not support this feature.
15827 \change_unchanged
15828
15829 \end_layout
15830
15831 \begin_layout Description
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 Extension
15837 \end_layout
15838
15839 \end_inset
15840
15841  [
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 string
15847 \end_layout
15848
15849 \end_inset
15850
15851 =
15852 \begin_inset Quotes erd
15853 \end_inset
15854
15855
15856 \begin_inset Quotes erd
15857 \end_inset
15858
15859 ] The file name extension of an auxiliary file for the list of figures (or
15860  whatever).
15861  \SpecialChar LaTeX
15862  writes the captions to this file.
15863 \end_layout
15864
15865 \begin_layout Description
15866 \begin_inset Flex Code
15867 status collapsed
15868
15869 \begin_layout Plain Layout
15870 GuiName
15871 \end_layout
15872
15873 \end_inset
15874
15875  [
15876 \begin_inset Flex Code
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 string
15881 \end_layout
15882
15883 \end_inset
15884
15885 =
15886 \begin_inset Quotes erd
15887 \end_inset
15888
15889
15890 \begin_inset Quotes erd
15891 \end_inset
15892
15893 ] The string that will be used in the menus and also for the caption.
15894  This is translated to the current language if babel is used.
15895 \end_layout
15896
15897 \begin_layout Description
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 HTML*
15903 \end_layout
15904
15905 \end_inset
15906
15907  These tags control the XHTML output.
15908  See 
15909 \begin_inset CommandInset ref
15910 LatexCommand ref
15911 reference "sec:Tags-for-XHTML"
15912
15913 \end_inset
15914
15915 .
15916 \end_layout
15917
15918 \begin_layout Description
15919 \begin_inset Flex Code
15920 status collapsed
15921
15922 \begin_layout Plain Layout
15923 IsPredefined
15924 \end_layout
15925
15926 \end_inset
15927
15928  [
15929 \emph on
15930
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 0
15936 \end_layout
15937
15938 \end_inset
15939
15940
15941 \emph default
15942 ,
15943 \begin_inset space \thinspace{}
15944 \end_inset
15945
15946
15947 \begin_inset Flex Code
15948 status collapsed
15949
15950 \begin_layout Plain Layout
15951 1
15952 \end_layout
15953
15954 \end_inset
15955
15956 ] Indicates whether the float is already defined in the document class or
15957  if instead the \SpecialChar LaTeX
15958  package 
15959 \begin_inset Flex Code
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 float
15964 \end_layout
15965
15966 \end_inset
15967
15968  needs to be loaded to define it on-the-fly.
15969  The default is 
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 0
15975 \end_layout
15976
15977 \end_inset
15978
15979 , which means: 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 float
15985 \end_layout
15986
15987 \end_inset
15988
15989  is used.
15990  It should be set to 
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 1
15996 \end_layout
15997
15998 \end_inset
15999
16000  if the float is already defined by the \SpecialChar LaTeX
16001  document class.
16002 \end_layout
16003
16004 \begin_layout Description
16005 \begin_inset Flex Code
16006 status collapsed
16007
16008 \begin_layout Plain Layout
16009 ListCommand
16010 \end_layout
16011
16012 \end_inset
16013
16014  [
16015 \begin_inset Flex Code
16016 status collapsed
16017
16018 \begin_layout Plain Layout
16019 string
16020 \end_layout
16021
16022 \end_inset
16023
16024 =
16025 \begin_inset Quotes erd
16026 \end_inset
16027
16028
16029 \begin_inset Quotes erd
16030 \end_inset
16031
16032 ] The command used to generate a list of floats of this type; the leading
16033  `
16034 \backslash
16035 ' must be omitted.
16036  This 
16037 \emph on
16038 must
16039 \emph default
16040  be given if 
16041 \begin_inset Flex Code
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045 UsesFloatPkg
16046 \end_layout
16047
16048 \end_inset
16049
16050  is false, since there is no standard way to generate this command.
16051  It is ignored if 
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 UsesFloatPkg
16057 \end_layout
16058
16059 \end_inset
16060
16061  is true, since in that case there is a standard way to define the command.
16062 \end_layout
16063
16064 \begin_layout Description
16065 \begin_inset Flex Code
16066 status collapsed
16067
16068 \begin_layout Plain Layout
16069 ListName
16070 \end_layout
16071
16072 \end_inset
16073
16074  [
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 string
16080 \end_layout
16081
16082 \end_inset
16083
16084 =
16085 \begin_inset Quotes erd
16086 \end_inset
16087
16088
16089 \begin_inset Quotes erd
16090 \end_inset
16091
16092 ] A title for a list of floats of this kind (list of figures, tables, or
16093  whatever).
16094  It is used for the screen label within \SpecialChar LyX
16095 , it is used by \SpecialChar LaTeX
16096  for the title and
16097  it is used as the title in the XHTML output.
16098  It will be translated to the document language.
16099 \end_layout
16100
16101 \begin_layout Description
16102 \begin_inset Flex Code
16103 status collapsed
16104
16105 \begin_layout Plain Layout
16106 NumberWithin
16107 \end_layout
16108
16109 \end_inset
16110
16111  [
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 string
16117 \end_layout
16118
16119 \end_inset
16120
16121 =
16122 \begin_inset Quotes erd
16123 \end_inset
16124
16125
16126 \begin_inset Quotes erd
16127 \end_inset
16128
16129 ] This (optional) argument determines whether floats of this class will
16130  be numbered within some sectional unit of the document.
16131  For example, if 
16132 \begin_inset Flex Code
16133 status collapsed
16134
16135 \begin_layout Plain Layout
16136 NumberWithin
16137 \end_layout
16138
16139 \end_inset
16140
16141  is set to 
16142 \begin_inset Quotes eld
16143 \end_inset
16144
16145
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 chapter
16151 \end_layout
16152
16153 \end_inset
16154
16155
16156 \begin_inset Quotes erd
16157 \end_inset
16158
16159 , the floats will be numbered within chapters.
16160  
16161 \end_layout
16162
16163 \begin_layout Description
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168 Placement
16169 \end_layout
16170
16171 \end_inset
16172
16173  [
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 string
16179 \end_layout
16180
16181 \end_inset
16182
16183 =
16184 \begin_inset Quotes erd
16185 \end_inset
16186
16187
16188 \begin_inset Quotes erd
16189 \end_inset
16190
16191 ] The default placement for the given class of floats.
16192  The string should be as in standard \SpecialChar LaTeX
16193
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 t
16199 \end_layout
16200
16201 \end_inset
16202
16203
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 b
16209 \end_layout
16210
16211 \end_inset
16212
16213
16214 \begin_inset Flex Code
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218 p
16219 \end_layout
16220
16221 \end_inset
16222
16223  and 
16224 \begin_inset Flex Code
16225 status collapsed
16226
16227 \begin_layout Plain Layout
16228 h
16229 \end_layout
16230
16231 \end_inset
16232
16233  for top, bottom, page, and here, respectively.
16234 \begin_inset Foot
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 Note that the order of these letters in the string is irrelevant, like in
16239  \SpecialChar LaTeX
16240 .
16241 \end_layout
16242
16243 \end_inset
16244
16245  On top of that there is a new type, 
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250 H
16251 \end_layout
16252
16253 \end_inset
16254
16255 , which does not really correspond to a float, since it means: put it 
16256 \begin_inset Quotes eld
16257 \end_inset
16258
16259 here
16260 \begin_inset Quotes erd
16261 \end_inset
16262
16263  and nowhere else.
16264  Note however that the 
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 H
16270 \end_layout
16271
16272 \end_inset
16273
16274  specifier is special and, because of implementation details, cannot be
16275  used in non-built in float types.
16276  If you do not understand what this means, just use 
16277 \begin_inset Quotes eld
16278 \end_inset
16279
16280
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 tbp
16286 \end_layout
16287
16288 \end_inset
16289
16290
16291 \begin_inset Quotes erd
16292 \end_inset
16293
16294 .
16295 \end_layout
16296
16297 \begin_layout Description
16298 \begin_inset Flex Code
16299 status collapsed
16300
16301 \begin_layout Plain Layout
16302 RefPrefix
16303 \end_layout
16304
16305 \end_inset
16306
16307  [
16308 \begin_inset Flex Code
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 string
16313 \end_layout
16314
16315 \end_inset
16316
16317 ] The prefix to use when creating labels referring to floats of this type.
16318  This allows the use of formatted references.
16319  Note that you can remove any 
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 RefPrefix
16325 \end_layout
16326
16327 \end_inset
16328
16329  set by a copied style by using the special value 
16330 \begin_inset Quotes eld
16331 \end_inset
16332
16333 OFF
16334 \begin_inset Quotes erd
16335 \end_inset
16336
16337 , which must be all caps.
16338 \end_layout
16339
16340 \begin_layout Description
16341 \begin_inset Flex Code
16342 status collapsed
16343
16344 \begin_layout Plain Layout
16345 Style
16346 \end_layout
16347
16348 \end_inset
16349
16350  [
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 string
16356 \end_layout
16357
16358 \end_inset
16359
16360 =
16361 \begin_inset Quotes erd
16362 \end_inset
16363
16364
16365 \begin_inset Quotes erd
16366 \end_inset
16367
16368 ] The style used when defining the float using 
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373
16374 \backslash
16375 newfloat
16376 \end_layout
16377
16378 \end_inset
16379
16380 .
16381 \end_layout
16382
16383 \begin_layout Description
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 Type
16389 \end_layout
16390
16391 \end_inset
16392
16393  [
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 string
16399 \end_layout
16400
16401 \end_inset
16402
16403 =
16404 \begin_inset Quotes erd
16405 \end_inset
16406
16407
16408 \begin_inset Quotes erd
16409 \end_inset
16410
16411 ] The 
16412 \begin_inset Quotes eld
16413 \end_inset
16414
16415 type
16416 \begin_inset Quotes erd
16417 \end_inset
16418
16419  of the new class of floats, like program or algorithm.
16420  After the appropriate 
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425
16426 \backslash
16427 newfloat
16428 \end_layout
16429
16430 \end_inset
16431
16432 , commands such as 
16433 \begin_inset Flex Code
16434 status collapsed
16435
16436 \begin_layout Plain Layout
16437
16438 \backslash
16439 begin{program}
16440 \end_layout
16441
16442 \end_inset
16443
16444  or 
16445 \begin_inset Flex Code
16446 status collapsed
16447
16448 \begin_layout Plain Layout
16449
16450 \backslash
16451 end{algorithm*}
16452 \end_layout
16453
16454 \end_inset
16455
16456  will be available.
16457 \end_layout
16458
16459 \begin_layout Description
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 UsesFloatPkg
16465 \end_layout
16466
16467 \end_inset
16468
16469  [
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 0
16475 \end_layout
16476
16477 \end_inset
16478
16479 ,
16480 \begin_inset space \thinspace{}
16481 \end_inset
16482
16483
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488
16489 \emph on
16490 1
16491 \end_layout
16492
16493 \end_inset
16494
16495 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16496  package 
16497 \begin_inset Flex Code
16498 status collapsed
16499
16500 \begin_layout Plain Layout
16501 float
16502 \end_layout
16503
16504 \end_inset
16505
16506 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16507  itself.
16508 \end_layout
16509
16510 \begin_layout Standard
16511 Note that defining a float with type 
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516
16517 \emph on
16518 type
16519 \end_layout
16520
16521 \end_inset
16522
16523  automatically defines the corresponding counter with name 
16524 \begin_inset Flex Code
16525 status collapsed
16526
16527 \begin_layout Plain Layout
16528
16529 \emph on
16530 type
16531 \end_layout
16532
16533 \end_inset
16534
16535 .
16536 \end_layout
16537
16538 \begin_layout Subsection
16539 Flex insets and InsetLayout
16540 \begin_inset CommandInset label
16541 LatexCommand label
16542 name "sub:Flex-insets-and"
16543
16544 \end_inset
16545
16546
16547 \end_layout
16548
16549 \begin_layout Standard
16550 Flex insets come in three different kinds: 
16551 \end_layout
16552
16553 \begin_layout Itemize
16554 character style (
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 CharStyle
16560 \end_layout
16561
16562 \end_inset
16563
16564 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16565  commands as 
16566 \begin_inset Flex Code
16567 status collapsed
16568
16569 \begin_layout Plain Layout
16570
16571 \backslash
16572 noun
16573 \end_layout
16574
16575 \end_inset
16576
16577  and 
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582
16583 \backslash
16584 code
16585 \end_layout
16586
16587 \end_inset
16588
16589 .
16590 \end_layout
16591
16592 \begin_layout Itemize
16593 user custom (
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 Custom
16599 \end_layout
16600
16601 \end_inset
16602
16603 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16604  code,
16605  footnote, and the like.
16606  An obvious example is an endnote inset, which is defined in the 
16607 \begin_inset Flex Code
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 endnote
16612 \end_layout
16613
16614 \end_inset
16615
16616  module.
16617 \end_layout
16618
16619 \begin_layout Itemize
16620 XML elements (
16621 \begin_inset Flex Code
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625 Element
16626 \end_layout
16627
16628 \end_inset
16629
16630 ): For use with DocBook classes.
16631 \end_layout
16632
16633 \begin_layout Standard
16634 Flex insets are defined using the 
16635 \begin_inset Flex Code
16636 status collapsed
16637
16638 \begin_layout Plain Layout
16639 InsetLayout
16640 \end_layout
16641
16642 \end_inset
16643
16644  tag, which shall be explained in a moment.
16645 \end_layout
16646
16647 \begin_layout Standard
16648 The 
16649 \begin_inset Flex Code
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 InsetLayout
16654 \end_layout
16655
16656 \end_inset
16657
16658  tag also serves another function: It can be used to customize the general
16659  layout of many different types of insets.
16660  Currently, 
16661 \begin_inset Flex Code
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665 InsetLayout
16666 \end_layout
16667
16668 \end_inset
16669
16670  can be used to customize the layout parameters for footnotes, marginal
16671  notes, note insets, \SpecialChar TeX
16672  code (ERT) insets, branches, listings, indexes, boxes,
16673  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16674 \end_layout
16675
16676 \begin_layout Standard
16677 The 
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 InsetLayout
16683 \end_layout
16684
16685 \end_inset
16686
16687  definition must begin with a line of the form:
16688 \end_layout
16689
16690 \begin_layout LyX-Code
16691 InsetLayout <type>
16692 \end_layout
16693
16694 \begin_layout Standard
16695 Here 
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 <Type>
16701 \end_layout
16702
16703 \end_inset
16704
16705  indicates the inset whose layout is being defined, and here there are four
16706  cases.
16707 \end_layout
16708
16709 \begin_layout Enumerate
16710 The layout for a pre-existing inset is being modified.
16711  In this case, can be 
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716 <Type>
16717 \end_layout
16718
16719 \end_inset
16720
16721  any one of the following: 
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 Algorithm
16727 \end_layout
16728
16729 \end_inset
16730
16731
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 Branch
16737 \end_layout
16738
16739 \end_inset
16740
16741
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 Box
16747 \end_layout
16748
16749 \end_inset
16750
16751
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 Box:shaded
16757 \end_layout
16758
16759 \end_inset
16760
16761
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 Caption:Standard
16767 \end_layout
16768
16769 \end_inset
16770
16771
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 ERT
16777 \end_layout
16778
16779 \end_inset
16780
16781
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 Figure
16787 \end_layout
16788
16789 \end_inset
16790
16791
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 Foot
16797 \end_layout
16798
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Index
16807 \end_layout
16808
16809 \end_inset
16810
16811
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 Info
16817 \end_layout
16818
16819 \end_inset
16820
16821
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 Info:menu
16827 \end_layout
16828
16829 \end_inset
16830
16831
16832 \begin_inset Flex Code
16833 status collapsed
16834
16835 \begin_layout Plain Layout
16836 Info:shortcut
16837 \end_layout
16838
16839 \end_inset
16840
16841
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 Info:shortcuts
16847 \end_layout
16848
16849 \end_inset
16850
16851
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 Listings
16857 \end_layout
16858
16859 \end_inset
16860
16861
16862 \begin_inset Flex Code
16863 status collapsed
16864
16865 \begin_layout Plain Layout
16866 Marginal
16867 \end_layout
16868
16869 \end_inset
16870
16871
16872 \begin_inset Flex Code
16873 status collapsed
16874
16875 \begin_layout Plain Layout
16876 Note:Comment
16877 \end_layout
16878
16879 \end_inset
16880
16881
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 Note:Note
16887 \end_layout
16888
16889 \end_inset
16890
16891
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896 Note:Greyedout
16897 \end_layout
16898
16899 \end_inset
16900
16901
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 Table
16907 \end_layout
16908
16909 \end_inset
16910
16911 , or 
16912 \begin_inset Flex Code
16913 status collapsed
16914
16915 \begin_layout Plain Layout
16916 URL
16917 \end_layout
16918
16919 \end_inset
16920
16921 .
16922 \end_layout
16923
16924 \begin_layout Enumerate
16925 The layout for a Flex inset is being defined.
16926  In this case, 
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 <Type>
16932 \end_layout
16933
16934 \end_inset
16935
16936  must be of the form 
16937 \begin_inset Quotes eld
16938 \end_inset
16939
16940
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 Flex:<name>
16946 \end_layout
16947
16948 \end_inset
16949
16950
16951 \begin_inset Quotes erd
16952 \end_inset
16953
16954 , where 
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 name
16960 \end_layout
16961
16962 \end_inset
16963
16964  may be be any valid identifier not used by a pre-existing Flex inset.
16965  The identifier may include spaces, but in that case the whole thing must
16966  be wrapped in quotes.
16967  Note that the definition of a flex inset 
16968 \emph on
16969 must 
16970 \emph default
16971 also include a 
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 \SpecialChar LyX
16977 Type
16978 \end_layout
16979
16980 \end_inset
16981
16982  entry, declaring which type of inset it defines.
16983 \end_layout
16984
16985 \begin_layout Enumerate
16986 The layout for user specific branch is being defined.
16987  In this case, 
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 <Type>
16993 \end_layout
16994
16995 \end_inset
16996
16997  must be of the form 
16998 \begin_inset Quotes eld
16999 \end_inset
17000
17001
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 Branch:<name>
17007 \end_layout
17008
17009 \end_inset
17010
17011
17012 \begin_inset Quotes erd
17013 \end_inset
17014
17015 , where 
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 name
17021 \end_layout
17022
17023 \end_inset
17024
17025  may be be any valid identifier of branch defined in user's document.
17026  The identifier may include spaces, but in that case the whole thing must
17027  be wrapped in quotes.
17028  The main purpose of this feature is to allow \SpecialChar LaTeX
17029  wrapping around specific
17030  branches as user needs.
17031 \end_layout
17032
17033 \begin_layout Enumerate
17034 The layout of a user (or class) specific caption is being defined.
17035  In this case, 
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 <Type>
17041 \end_layout
17042
17043 \end_inset
17044
17045  must be of the form 
17046 \begin_inset Quotes eld
17047 \end_inset
17048
17049
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 Caption:<name>
17055 \end_layout
17056
17057 \end_inset
17058
17059
17060 \begin_inset Quotes erd
17061 \end_inset
17062
17063 , where 
17064 \begin_inset Flex Code
17065 status collapsed
17066
17067 \begin_layout Plain Layout
17068 name
17069 \end_layout
17070
17071 \end_inset
17072
17073  specifies the name of the caption as it appears in the menu.
17074  Have a look at the standard caption (
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079 Caption:Standard
17080 \end_layout
17081
17082 \end_inset
17083
17084 ), the specific captions of the KOMA-Script classes (
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 Caption:Above
17090 \end_layout
17091
17092 \end_inset
17093
17094
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 Caption:Below
17100 \end_layout
17101
17102 \end_inset
17103
17104 ) or the module 
17105 \family sans
17106 Multilingual
17107 \begin_inset space ~
17108 \end_inset
17109
17110 Captions 
17111 \family default
17112 (
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 Caption:Bicaption
17118 \end_layout
17119
17120 \end_inset
17121
17122 ) for applications.
17123 \end_layout
17124
17125 \begin_layout Standard
17126 The 
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 InsetLayout
17132 \end_layout
17133
17134 \end_inset
17135
17136  definition can contain the following entries:
17137 \end_layout
17138
17139 \begin_layout Description
17140 \begin_inset Flex Code
17141 status collapsed
17142
17143 \begin_layout Plain Layout
17144 Argument
17145 \end_layout
17146
17147 \end_inset
17148
17149  [
17150 \begin_inset Flex Code
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154 int
17155 \end_layout
17156
17157 \end_inset
17158
17159 ] Defines argument number of a command\SpecialChar breakableslash
17160 environment associated with the current
17161  layout.
17162  The definition must end with 
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167 EndArgument
17168 \end_layout
17169
17170 \end_inset
17171
17172 .
17173  See 
17174 \begin_inset CommandInset ref
17175 LatexCommand ref
17176 reference "sub:Paragraph-Styles"
17177
17178 \end_inset
17179
17180  for details.
17181 \end_layout
17182
17183 \begin_layout Description
17184 \begin_inset Flex Code
17185 status collapsed
17186
17187 \begin_layout Plain Layout
17188 BabelPreamble
17189 \end_layout
17190
17191 \end_inset
17192
17193  Preamble for changing language commands; see 
17194 \begin_inset CommandInset ref
17195 LatexCommand ref
17196 reference "sub:I18n"
17197
17198 \end_inset
17199
17200 .
17201 \end_layout
17202
17203 \begin_layout Description
17204 \begin_inset Flex Code
17205 status collapsed
17206
17207 \begin_layout Plain Layout
17208 BgColor
17209 \end_layout
17210
17211 \end_inset
17212
17213  [
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218 <name>
17219 \end_layout
17220
17221 \end_inset
17222
17223 ] The color for the inset's background.
17224  See 
17225 \begin_inset CommandInset ref
17226 LatexCommand ref
17227 reference "chap:Names-of-colors"
17228
17229 \end_inset
17230
17231  for a list of the available color names.
17232 \end_layout
17233
17234 \begin_layout Description
17235 \begin_inset Flex Code
17236 status collapsed
17237
17238 \begin_layout Plain Layout
17239 ContentAsLabel
17240 \end_layout
17241
17242 \end_inset
17243
17244  [
17245 \begin_inset Flex Code
17246 status collapsed
17247
17248 \begin_layout Plain Layout
17249
17250 \emph on
17251 0
17252 \end_layout
17253
17254 \end_inset
17255
17256 ,
17257 \begin_inset space \thinspace{}
17258 \end_inset
17259
17260
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265 1
17266 \end_layout
17267
17268 \end_inset
17269
17270 ] Whether to use the content of the inset as the label, when the inset is
17271  closed.
17272  Default is false.
17273 \end_layout
17274
17275 \begin_layout Description
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 CopyStyle
17281 \end_layout
17282
17283 \end_inset
17284
17285  [
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290 <type>
17291 \end_layout
17292
17293 \end_inset
17294
17295 ] As with paragraph styles, see 
17296 \begin_inset CommandInset ref
17297 LatexCommand ref
17298 reference "sub:Paragraph-Styles"
17299
17300 \end_inset
17301
17302 .
17303  Note that you need to specify the complete type, e.
17304 \begin_inset space \thinspace{}
17305 \end_inset
17306
17307 g.
17308 \begin_inset space ~
17309 \end_inset
17310
17311
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316 CopyStyle Flex:<name>
17317 \end_layout
17318
17319 \end_inset
17320
17321 .
17322 \end_layout
17323
17324 \begin_layout Description
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 CustomPars
17330 \end_layout
17331
17332 \end_inset
17333
17334  [
17335 \begin_inset Flex Code
17336 status collapsed
17337
17338 \begin_layout Plain Layout
17339
17340 \emph on
17341 0
17342 \end_layout
17343
17344 \end_inset
17345
17346 ,
17347 \begin_inset space \thinspace{}
17348 \end_inset
17349
17350
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355 1
17356 \end_layout
17357
17358 \end_inset
17359
17360 ] Indicates whether the user may employ the Paragraph Settings dialog to
17361  customize the paragraph.
17362 \end_layout
17363
17364 \begin_layout Description
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 Decoration
17370 \end_layout
17371
17372 \end_inset
17373
17374  can be 
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 Classic
17380 \end_layout
17381
17382 \end_inset
17383
17384
17385 \begin_inset Flex Code
17386 status collapsed
17387
17388 \begin_layout Plain Layout
17389 Minimalistic
17390 \end_layout
17391
17392 \end_inset
17393
17394 , or 
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399 Conglomerate
17400 \end_layout
17401
17402 \end_inset
17403
17404 , describing the rendering style used for the inset's frame and buttons.
17405  Footnotes generally use 
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 Classic
17411 \end_layout
17412
17413 \end_inset
17414
17415 , ERT insets generally 
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 Minimalistic
17421 \end_layout
17422
17423 \end_inset
17424
17425 , and character styles 
17426 \begin_inset Flex Code
17427 status collapsed
17428
17429 \begin_layout Plain Layout
17430 Conglomerate
17431 \end_layout
17432
17433 \end_inset
17434
17435 .
17436 \end_layout
17437
17438 \begin_layout Description
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 Display
17444 \end_layout
17445
17446 \end_inset
17447
17448  [
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 0
17454 \end_layout
17455
17456 \end_inset
17457
17458 ,
17459 \emph on
17460
17461 \begin_inset space \thinspace{}
17462 \end_inset
17463
17464
17465 \emph default
17466
17467 \begin_inset Flex Code
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471
17472 \emph on
17473 1
17474 \end_layout
17475
17476 \end_inset
17477
17478 ] Only useful if 
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 LatexType
17484 \end_layout
17485
17486 \end_inset
17487
17488  is 
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 Environment
17494 \end_layout
17495
17496 \end_inset
17497
17498 .
17499  Indicates whether the environment will stand on its own in the output or
17500  will appear inline with the surrounding text.
17501  If set to false, it is supposed that the \SpecialChar LaTeX
17502  environment ignores white space
17503  (including one newline character) after the 
17504 \begin_inset Flex Code
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508
17509 \backslash
17510 begin{
17511 \emph on
17512 LatexName
17513 \emph default
17514 }
17515 \end_layout
17516
17517 \end_inset
17518
17519  and 
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524
17525 \backslash
17526 end{
17527 \emph on
17528 LatexName
17529 \emph default
17530 }
17531 \end_layout
17532
17533 \end_inset
17534
17535  tags.
17536  Default is true.
17537 \end_layout
17538
17539 \begin_layout Description
17540 \begin_inset Flex Code
17541 status collapsed
17542
17543 \begin_layout Plain Layout
17544 End
17545 \end_layout
17546
17547 \end_inset
17548
17549  Required at the end of the 
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 InsetLayout
17555 \end_layout
17556
17557 \end_inset
17558
17559  declarations.
17560 \end_layout
17561
17562 \begin_layout Description
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 Font
17568 \end_layout
17569
17570 \end_inset
17571
17572  The font used for both the text body 
17573 \emph on
17574 and
17575 \emph default
17576  the label.
17577  See 
17578 \begin_inset CommandInset ref
17579 LatexCommand ref
17580 reference "sub:Font-description"
17581
17582 \end_inset
17583
17584 .
17585  Note that defining this font automatically defines the 
17586 \begin_inset Flex Code
17587 status collapsed
17588
17589 \begin_layout Plain Layout
17590 LabelFont
17591 \end_layout
17592
17593 \end_inset
17594
17595  to the same value, so define this first and define 
17596 \begin_inset Flex Code
17597 status collapsed
17598
17599 \begin_layout Plain Layout
17600 LabelFont
17601 \end_layout
17602
17603 \end_inset
17604
17605  later if you want them to be different.
17606 \change_inserted -195340706 1421002157
17607
17608 \end_layout
17609
17610 \begin_layout Description
17611
17612 \change_inserted -195340706 1421002157
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617
17618 \change_inserted -195340706 1421002157
17619 FixedWidthPreambleEncoding
17620 \end_layout
17621
17622 \end_inset
17623
17624  [
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629
17630 \change_inserted -195340706 1421002157
17631
17632 \emph on
17633 0
17634 \end_layout
17635
17636 \end_inset
17637
17638 ,
17639 \begin_inset space \thinspace{}
17640 \end_inset
17641
17642
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647
17648 \change_inserted -195340706 1421002157
17649 1
17650 \end_layout
17651
17652 \end_inset
17653
17654 ] Force a fixed width encoding for the translated contents of 
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659
17660 \change_inserted -195340706 1421002157
17661 BabelPreamble
17662 \end_layout
17663
17664 \end_inset
17665
17666  and 
17667 \begin_inset Flex Code
17668 status collapsed
17669
17670 \begin_layout Plain Layout
17671
17672 \change_inserted -195340706 1421002157
17673 LangPreamble
17674 \end_layout
17675
17676 \end_inset
17677
17678  code generated by this layout.
17679  This is needed for special packages like the listings package that do not
17680  work with variable width encodings such as utf8.
17681  Default is false.
17682  This setting is ignored if fully unicode aware \SpecialChar LaTeX
17683  backends such as Xe\SpecialChar LaTeX
17684  are
17685  used.
17686 \change_unchanged
17687
17688 \end_layout
17689
17690 \begin_layout Description
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 ForceLocalFontSwitch
17696 \end_layout
17697
17698 \end_inset
17699
17700  [
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705
17706 \emph on
17707 0
17708 \end_layout
17709
17710 \end_inset
17711
17712 ,
17713 \begin_inset space \thinspace{}
17714 \end_inset
17715
17716
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 1
17722 \end_layout
17723
17724 \end_inset
17725
17726 ] When using babel, always use a local font switch (
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731
17732 \backslash
17733 foreignlanguage
17734 \end_layout
17735
17736 \end_inset
17737
17738 ), never a global one (such as 
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743
17744 \backslash
17745 selectlanguage
17746 \end_layout
17747
17748 \end_inset
17749
17750 ).
17751 \end_layout
17752
17753 \begin_layout Description
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 ForceLTR
17759 \end_layout
17760
17761 \end_inset
17762
17763  [
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768
17769 \emph on
17770 0
17771 \end_layout
17772
17773 \end_inset
17774
17775 ,
17776 \begin_inset space \thinspace{}
17777 \end_inset
17778
17779
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 1
17785 \end_layout
17786
17787 \end_inset
17788
17789 ] Force the 
17790 \begin_inset Quotes eld
17791 \end_inset
17792
17793 latex
17794 \begin_inset Quotes erd
17795 \end_inset
17796
17797  language, leading to Left-to-Right (Latin) output, e.
17798 \begin_inset space \thinspace{}
17799 \end_inset
17800
17801 g.
17802 \begin_inset space \space{}
17803 \end_inset
17804
17805 in \SpecialChar TeX
17806  code or URL.
17807  A kludge.
17808 \change_inserted -712698321 1417441977
17809
17810 \end_layout
17811
17812 \begin_layout Description
17813
17814 \change_inserted -712698321 1417442090
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819
17820 \change_inserted -712698321 1417441983
17821 ForceOwnlines
17822 \end_layout
17823
17824 \end_inset
17825
17826  [
17827 \begin_inset Flex Code
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831
17832 \change_inserted -712698321 1417441978
17833
17834 \emph on
17835 0
17836 \end_layout
17837
17838 \end_inset
17839
17840 ,
17841 \begin_inset space \thinspace{}
17842 \end_inset
17843
17844
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849
17850 \change_inserted -712698321 1417441978
17851 1
17852 \end_layout
17853
17854 \end_inset
17855
17856 ] Force a a line break in the \SpecialChar LaTeX
17857  output before the inset starts and after
17858  the inset ends.
17859  This assures the inset itself is output on its own lines, for parsing purposes.
17860
17861 \change_inserted 274215730 1419105878
17862  Default is false.
17863 \change_unchanged
17864
17865 \end_layout
17866
17867 \begin_layout Description
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 ForcePlain
17873 \end_layout
17874
17875 \end_inset
17876
17877  [
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882
17883 \emph on
17884 0
17885 \end_layout
17886
17887 \end_inset
17888
17889 ,
17890 \begin_inset space \thinspace{}
17891 \end_inset
17892
17893
17894 \begin_inset Flex Code
17895 status collapsed
17896
17897 \begin_layout Plain Layout
17898 1
17899 \end_layout
17900
17901 \end_inset
17902
17903 ] Indicates whether the 
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908 PlainLayout
17909 \end_layout
17910
17911 \end_inset
17912
17913  should be used or, instead, the user can change the paragraph style used
17914  in the inset.
17915  Default is false.
17916 \end_layout
17917
17918 \begin_layout Description
17919 \begin_inset Flex Code
17920 status collapsed
17921
17922 \begin_layout Plain Layout
17923 FreeSpacing
17924 \end_layout
17925
17926 \end_inset
17927
17928  [
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933
17934 \emph on
17935 0
17936 \end_layout
17937
17938 \end_inset
17939
17940 ,
17941 \begin_inset space \thinspace{}
17942 \end_inset
17943
17944
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 1
17950 \end_layout
17951
17952 \end_inset
17953
17954 ] As with paragraph styles, see 
17955 \begin_inset CommandInset ref
17956 LatexCommand ref
17957 reference "sub:Paragraph-Styles"
17958
17959 \end_inset
17960
17961 .
17962 \end_layout
17963
17964 \begin_layout Description
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 HTML*
17970 \end_layout
17971
17972 \end_inset
17973
17974  These tags control the XHTML output.
17975  See 
17976 \begin_inset CommandInset ref
17977 LatexCommand ref
17978 reference "sec:Tags-for-XHTML"
17979
17980 \end_inset
17981
17982 .
17983 \end_layout
17984
17985 \begin_layout Description
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 InToc
17991 \end_layout
17992
17993 \end_inset
17994
17995  [
17996 \begin_inset Flex Code
17997 status collapsed
17998
17999 \begin_layout Plain Layout
18000
18001 \emph on
18002 0
18003 \end_layout
18004
18005 \end_inset
18006
18007 ,
18008 \begin_inset space \thinspace{}
18009 \end_inset
18010
18011
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 1
18017 \end_layout
18018
18019 \end_inset
18020
18021 ] Whether to include the contents of this inset in the strings generated
18022  for the `Outline' pane.
18023  One would not, for example, want the content of a footnote in a section
18024  header to be included in the TOC displayed in the outline, but one would
18025  normally want the content of a character style displayed.
18026  Default is false: not to include.
18027 \end_layout
18028
18029 \begin_layout Description
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 KeepEmpty
18035 \end_layout
18036
18037 \end_inset
18038
18039  [
18040 \emph on
18041
18042 \begin_inset Flex Code
18043 status collapsed
18044
18045 \begin_layout Plain Layout
18046 0
18047 \end_layout
18048
18049 \end_inset
18050
18051
18052 \emph default
18053 ,
18054 \begin_inset space \thinspace{}
18055 \end_inset
18056
18057
18058 \begin_inset Flex Code
18059 status collapsed
18060
18061 \begin_layout Plain Layout
18062 1
18063 \end_layout
18064
18065 \end_inset
18066
18067 ] As with paragraph styles, see 
18068 \begin_inset CommandInset ref
18069 LatexCommand ref
18070 reference "sub:Paragraph-Styles"
18071
18072 \end_inset
18073
18074 .
18075 \end_layout
18076
18077 \begin_layout Description
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 LabelFont
18083 \end_layout
18084
18085 \end_inset
18086
18087  The font used for the label.
18088  See 
18089 \begin_inset CommandInset ref
18090 LatexCommand ref
18091 reference "sub:Font-description"
18092
18093 \end_inset
18094
18095 .
18096  Note that this definition can never appear before 
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 Font
18102 \end_layout
18103
18104 \end_inset
18105
18106 , lest it be ineffective.
18107 \end_layout
18108
18109 \begin_layout Description
18110 \begin_inset Flex Code
18111 status collapsed
18112
18113 \begin_layout Plain Layout
18114 LabelString
18115 \end_layout
18116
18117 \end_inset
18118
18119  [
18120 \begin_inset Flex Code
18121 status collapsed
18122
18123 \begin_layout Plain Layout
18124 string
18125 \end_layout
18126
18127 \end_inset
18128
18129 =
18130 \begin_inset Quotes erd
18131 \end_inset
18132
18133
18134 \begin_inset Quotes erd
18135 \end_inset
18136
18137 ] What will be displayed on the button or elsewhere as the inset label.
18138  Some inset types (
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 \SpecialChar TeX
18144  code
18145 \end_layout
18146
18147 \end_inset
18148
18149  and 
18150 \begin_inset Flex Code
18151 status collapsed
18152
18153 \begin_layout Plain Layout
18154 Branch
18155 \end_layout
18156
18157 \end_inset
18158
18159 ) modify this label on the fly.
18160 \end_layout
18161
18162 \begin_layout Description
18163 \begin_inset Flex Code
18164 status collapsed
18165
18166 \begin_layout Plain Layout
18167 LangPreamble
18168 \end_layout
18169
18170 \end_inset
18171
18172  Language dependent preamble; see 
18173 \begin_inset CommandInset ref
18174 LatexCommand ref
18175 reference "sub:I18n"
18176
18177 \end_inset
18178
18179 .
18180 \end_layout
18181
18182 \begin_layout Description
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 LatexName
18188 \end_layout
18189
18190 \end_inset
18191
18192  [
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 <name>
18198 \end_layout
18199
18200 \end_inset
18201
18202 ] The name of the corresponding \SpecialChar LaTeX
18203  stuff.
18204  Either the environment or command name.
18205 \end_layout
18206
18207 \begin_layout Description
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 LatexParam
18213 \end_layout
18214
18215 \end_inset
18216
18217  [
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222 <parameter>
18223 \end_layout
18224
18225 \end_inset
18226
18227 ] The optional parameter for the corresponding 
18228 \begin_inset Flex Code
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232 LatexName
18233 \end_layout
18234
18235 \end_inset
18236
18237  stuff, including possible bracket pairs like 
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 []
18243 \end_layout
18244
18245 \end_inset
18246
18247 .
18248  This parameter cannot be changed from within \SpecialChar LyX
18249  (use 
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 Argument
18255 \end_layout
18256
18257 \end_inset
18258
18259  for customizable parameters).
18260  It will be output as is after all \SpecialChar LaTeX
18261  
18262 \begin_inset Flex Code
18263 status collapsed
18264
18265 \begin_layout Plain Layout
18266 Argument
18267 \end_layout
18268
18269 \end_inset
18270
18271 s.
18272 \end_layout
18273
18274 \begin_layout Description
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 LatexType
18280 \end_layout
18281
18282 \end_inset
18283
18284  [
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 Command, Environment, None
18290 \end_layout
18291
18292 \end_inset
18293
18294 ] How the style should be translated into \SpecialChar LaTeX
18295 .
18296 \begin_inset Foot
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 LatexType
18305 \end_layout
18306
18307 \end_inset
18308
18309  is perhaps a bit misleading, since these rules apply to SGML classes too.
18310  Visit the SGML class files for specific examples.
18311 \end_layout
18312
18313 \end_inset
18314
18315
18316 \begin_inset Separator parbreak
18317 \end_inset
18318
18319
18320 \end_layout
18321
18322 \begin_deeper
18323 \begin_layout Description
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 None
18329 \end_layout
18330
18331 \end_inset
18332
18333  means nothing special
18334 \end_layout
18335
18336 \begin_layout Description
18337 \begin_inset Flex Code
18338 status collapsed
18339
18340 \begin_layout Plain Layout
18341 Command
18342 \end_layout
18343
18344 \end_inset
18345
18346  means 
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351
18352 \backslash
18353
18354 \emph on
18355 LatexName
18356 \emph default
18357 {\SpecialChar ldots
18358 }
18359 \end_layout
18360
18361 \end_inset
18362
18363
18364 \end_layout
18365
18366 \begin_layout Description
18367 \begin_inset Flex Code
18368 status collapsed
18369
18370 \begin_layout Plain Layout
18371 Environment
18372 \end_layout
18373
18374 \end_inset
18375
18376  means 
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381
18382 \backslash
18383 begin{
18384 \emph on
18385 LatexName
18386 \emph default
18387 }\SpecialChar ldots
18388
18389 \backslash
18390 end{
18391 \emph on
18392 LatexName
18393 \emph default
18394 }
18395 \end_layout
18396
18397 \end_inset
18398
18399
18400 \end_layout
18401
18402 \begin_layout Standard
18403 Putting the last few things together, the \SpecialChar LaTeX
18404  output will be either: 
18405 \end_layout
18406
18407 \begin_layout LyX-Code
18408
18409 \backslash
18410 LatexName[LatexParam]{\SpecialChar ldots
18411 }
18412 \end_layout
18413
18414 \begin_layout Standard
18415 or: 
18416 \end_layout
18417
18418 \begin_layout LyX-Code
18419
18420 \backslash
18421 begin{LatexName}[LatexParam] \SpecialChar ldots
18422  
18423 \backslash
18424 end{LatexName}
18425 \end_layout
18426
18427 \begin_layout Standard
18428 depending upon the \SpecialChar LaTeX
18429  type.
18430 \end_layout
18431
18432 \end_deeper
18433 \begin_layout Description
18434 \begin_inset Flex Code
18435 status collapsed
18436
18437 \begin_layout Plain Layout
18438 LeftDelim
18439 \end_layout
18440
18441 \end_inset
18442
18443  [
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 string
18449 \end_layout
18450
18451 \end_inset
18452
18453 ] A string that is put at the beginning of the layout content.
18454  A line break in the output can be indicated by 
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459 <br/>
18460 \end_layout
18461
18462 \end_inset
18463
18464 .
18465 \end_layout
18466
18467 \begin_layout Description
18468 \begin_inset Flex Code
18469 status collapsed
18470
18471 \begin_layout Plain Layout
18472 LyxType
18473 \end_layout
18474
18475 \end_inset
18476
18477  Can be 
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 charstyle
18483 \end_layout
18484
18485 \end_inset
18486
18487
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 custom
18493 \end_layout
18494
18495 \end_inset
18496
18497
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 element
18503 \end_layout
18504
18505 \end_inset
18506
18507  or 
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 end
18513 \end_layout
18514
18515 \end_inset
18516
18517  (indicating a dummy definition ending definitions of charstyles, etc).
18518  This entry is required in and is only meaningful for Flex insets.
18519  Among other things, it determines on which menu this inset will appear.
18520  Setting 
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 \SpecialChar LyX
18526 Type
18527 \end_layout
18528
18529 \end_inset
18530
18531  to 
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 charstyle
18537 \end_layout
18538
18539 \end_inset
18540
18541  will automatically set 
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 MultiPar
18547 \end_layout
18548
18549 \end_inset
18550
18551  to false.
18552  
18553 \begin_inset Flex Code
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 MultiPar
18558 \end_layout
18559
18560 \end_inset
18561
18562  can be set to true for 
18563 \begin_inset Flex Code
18564 status collapsed
18565
18566 \begin_layout Plain Layout
18567 charstyle
18568 \end_layout
18569
18570 \end_inset
18571
18572  insets by setting it 
18573 \emph on
18574 after
18575 \emph default
18576  you set the 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 \SpecialChar LyX
18582 Type
18583 \end_layout
18584
18585 \end_inset
18586
18587 .
18588 \end_layout
18589
18590 \begin_layout Description
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595 MultiPar
18596 \end_layout
18597
18598 \end_inset
18599
18600  [
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605
18606 \emph on
18607 0
18608 \end_layout
18609
18610 \end_inset
18611
18612 ,
18613 \begin_inset space \thinspace{}
18614 \end_inset
18615
18616
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 1
18622 \end_layout
18623
18624 \end_inset
18625
18626 ] Whether multiple paragraphs are permitted in this inset.
18627  This will also set 
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 CustomPars
18633 \end_layout
18634
18635 \end_inset
18636
18637  to the same value and 
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 ForcePlain
18643 \end_layout
18644
18645 \end_inset
18646
18647  to the opposite value.
18648  These can be reset to other values, if they are used 
18649 \emph on
18650 after
18651 \emph default
18652  
18653 \begin_inset Flex Code
18654 status collapsed
18655
18656 \begin_layout Plain Layout
18657 MultiPar
18658 \end_layout
18659
18660 \end_inset
18661
18662 .
18663  Default is true.
18664 \end_layout
18665
18666 \begin_layout Description
18667 \begin_inset Flex Code
18668 status collapsed
18669
18670 \begin_layout Plain Layout
18671 NeedProtect
18672 \end_layout
18673
18674 \end_inset
18675
18676  [
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681
18682 \emph on
18683 0
18684 \end_layout
18685
18686 \end_inset
18687
18688 ,
18689 \begin_inset space \thinspace{}
18690 \end_inset
18691
18692
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 1
18698 \end_layout
18699
18700 \end_inset
18701
18702 ] Whether fragile commands in this inset should be 
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707
18708 \backslash
18709 protect
18710 \end_layout
18711
18712 \end_inset
18713
18714 'ed.
18715  (Note: This is 
18716 \emph on
18717 not
18718 \emph default
18719  whether the command should itself be protected.) Default is false.
18720 \end_layout
18721
18722 \begin_layout Description
18723 \begin_inset Flex Code
18724 status collapsed
18725
18726 \begin_layout Plain Layout
18727 NoInsetLayout
18728 \end_layout
18729
18730 \end_inset
18731
18732  [
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 <layout>
18738 \end_layout
18739
18740 \end_inset
18741
18742 ] Deletes an existing 
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 InsetLayout
18748 \end_layout
18749
18750 \end_inset
18751
18752 .
18753 \change_inserted -712698321 1417953494
18754
18755 \end_layout
18756
18757 \begin_layout Description
18758
18759 \change_inserted -712698321 1417953559
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764
18765 \change_inserted -712698321 1417953494
18766 ObsoletedBy
18767 \end_layout
18768
18769 \end_inset
18770
18771  [
18772 \begin_inset Flex Code
18773 status collapsed
18774
18775 \begin_layout Plain Layout
18776
18777 \change_inserted -712698321 1417953574
18778 <layout>
18779 \end_layout
18780
18781 \end_inset
18782
18783 ] Name of an 
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788
18789 \change_inserted -712698321 1417953533
18790 InsetLayout
18791 \end_layout
18792
18793 \end_inset
18794
18795  that has replaced this 
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800
18801 \change_inserted -712698321 1417953551
18802 InsetLayout
18803 \end_layout
18804
18805 \end_inset
18806
18807 .
18808  This is used to rename an 
18809 \begin_inset Flex Code
18810 status collapsed
18811
18812 \begin_layout Plain Layout
18813
18814 \change_inserted -712698321 1417953559
18815 InsetLayout
18816 \end_layout
18817
18818 \end_inset
18819
18820 , while keeping backward compatibility.
18821 \change_unchanged
18822
18823 \end_layout
18824
18825 \begin_layout Description
18826 \begin_inset Flex Code
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830 ParbreakIsNewline
18831 \end_layout
18832
18833 \end_inset
18834
18835  [
18836 \begin_inset Flex Code
18837 status collapsed
18838
18839 \begin_layout Plain Layout
18840
18841 \emph on
18842 0
18843 \end_layout
18844
18845 \end_inset
18846
18847 ,
18848 \begin_inset space \thinspace{}
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 1
18857 \end_layout
18858
18859 \end_inset
18860
18861 ] As with paragraph styles, see 
18862 \begin_inset CommandInset ref
18863 LatexCommand ref
18864 reference "sub:Paragraph-Styles"
18865
18866 \end_inset
18867
18868 .
18869  Default is false.
18870 \end_layout
18871
18872 \begin_layout Description
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 PassThru
18878 \end_layout
18879
18880 \end_inset
18881
18882  [
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887
18888 \emph on
18889 0
18890 \end_layout
18891
18892 \end_inset
18893
18894 ,
18895 \begin_inset space \thinspace{}
18896 \end_inset
18897
18898
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 1
18904 \end_layout
18905
18906 \end_inset
18907
18908 ] As with paragraph styles, see 
18909 \begin_inset CommandInset ref
18910 LatexCommand ref
18911 reference "sub:Paragraph-Styles"
18912
18913 \end_inset
18914
18915 .
18916  Default is false.
18917 \end_layout
18918
18919 \begin_layout Description
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 Preamble
18925 \end_layout
18926
18927 \end_inset
18928
18929  As with paragraph styles, see 
18930 \begin_inset CommandInset ref
18931 LatexCommand ref
18932 reference "sub:Paragraph-Styles"
18933
18934 \end_inset
18935
18936 .
18937 \end_layout
18938
18939 \begin_layout Description
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 RefPrefix
18945 \end_layout
18946
18947 \end_inset
18948
18949  [
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 string
18955 \end_layout
18956
18957 \end_inset
18958
18959 ] The prefix to use when creating labels referring to insets of this type.
18960  This allows the use of formatted references.
18961 \end_layout
18962
18963 \begin_layout Description
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 Requires
18969 \end_layout
18970
18971 \end_inset
18972
18973  [
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 string
18979 \end_layout
18980
18981 \end_inset
18982
18983 ] As with paragraph styles, see 
18984 \begin_inset CommandInset ref
18985 LatexCommand ref
18986 reference "sub:Paragraph-Styles"
18987
18988 \end_inset
18989
18990 .
18991 \end_layout
18992
18993 \begin_layout Description
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 ResetArgs
18999 \end_layout
19000
19001 \end_inset
19002
19003  [
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008
19009 \emph on
19010 0
19011 \end_layout
19012
19013 \end_inset
19014
19015 ,
19016 \begin_inset space \thinspace{}
19017 \end_inset
19018
19019
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 1
19025 \end_layout
19026
19027 \end_inset
19028
19029 ] Resets the \SpecialChar LaTeX
19030  arguments of this layout (as defined via the 
19031 \begin_inset Flex Code
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035 Argument
19036 \end_layout
19037
19038 \end_inset
19039
19040  tag).
19041  This is useful if you have copied a style via 
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 CopyStyle
19047 \end_layout
19048
19049 \end_inset
19050
19051 , but you do not want to inherit its (required and optional) arguments.
19052 \end_layout
19053
19054 \begin_layout Description
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 ResetsFont
19060 \end_layout
19061
19062 \end_inset
19063
19064  [
19065 \begin_inset Flex Code
19066 status collapsed
19067
19068 \begin_layout Plain Layout
19069 0
19070 \end_layout
19071
19072 \end_inset
19073
19074 ,
19075 \begin_inset space \thinspace{}
19076 \end_inset
19077
19078
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083
19084 \emph on
19085 1
19086 \end_layout
19087
19088 \end_inset
19089
19090 ] Whether this inset should use the font of its surrounding environment
19091  or uses its own.
19092  Default is false: use the font of the surrounding environment.
19093 \end_layout
19094
19095 \begin_layout Description
19096 \begin_inset Flex Code
19097 status collapsed
19098
19099 \begin_layout Plain Layout
19100 RightDelim
19101 \end_layout
19102
19103 \end_inset
19104
19105  [
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 string
19111 \end_layout
19112
19113 \end_inset
19114
19115 ] A string that is put at the end of the layout content.
19116  A line break in the output can be indicated by 
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 <br/>
19122 \end_layout
19123
19124 \end_inset
19125
19126 .
19127 \end_layout
19128
19129 \begin_layout Description
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 Spellcheck
19135 \end_layout
19136
19137 \end_inset
19138
19139  [
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 0
19145 \end_layout
19146
19147 \end_inset
19148
19149 ,
19150 \begin_inset space \thinspace{}
19151 \end_inset
19152
19153
19154 \begin_inset Flex Code
19155 status collapsed
19156
19157 \begin_layout Plain Layout
19158
19159 \emph on
19160 1
19161 \end_layout
19162
19163 \end_inset
19164
19165 ] Allow spell-checking the contents of this inset.
19166  Default is true.
19167 \end_layout
19168
19169 \begin_layout Subsection
19170 Counters
19171 \begin_inset CommandInset label
19172 LatexCommand label
19173 name "sub:Counters"
19174
19175 \end_inset
19176
19177
19178 \end_layout
19179
19180 \begin_layout Standard
19181 It is necessary to define the counters (
19182 \begin_inset Flex MenuItem
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 chapter
19187 \end_layout
19188
19189 \end_inset
19190
19191
19192 \begin_inset Flex MenuItem
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 figure
19197 \end_layout
19198
19199 \end_inset
19200
19201 , \SpecialChar ldots
19202 ) in the text class itself.
19203  The standard counters are defined in the file 
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 stdcounters.inc
19209 \end_layout
19210
19211 \end_inset
19212
19213 , so you may have to do no more than add
19214 \end_layout
19215
19216 \begin_layout LyX-Code
19217 Input stdcounters.inc
19218 \end_layout
19219
19220 \begin_layout Standard
19221 to your layout file to get them to work.
19222  But if you want to define custom counters, then you can do so.
19223  The counter declaration must begin with:
19224 \end_layout
19225
19226 \begin_layout LyX-Code
19227 Counter CounterName
19228 \end_layout
19229
19230 \begin_layout Standard
19231 where of course `
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 CounterName
19237 \end_layout
19238
19239 \end_inset
19240
19241 ' is replaced by the name of the counter.
19242  And it must end with 
19243 \begin_inset Quotes eld
19244 \end_inset
19245
19246
19247 \begin_inset Flex Code
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251 End
19252 \end_layout
19253
19254 \end_inset
19255
19256
19257 \begin_inset Quotes erd
19258 \end_inset
19259
19260 .
19261  The following parameters can also be used:
19262 \end_layout
19263
19264 \begin_layout Description
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 InitialValue
19270 \end_layout
19271
19272 \end_inset
19273
19274  [
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 int=1
19280 \end_layout
19281
19282 \end_inset
19283
19284 ] Sets the initial value for the counter, to which it will be reset whenever
19285  that happens.
19286  Normally, one will want the default, 1.
19287 \end_layout
19288
19289 \begin_layout Description
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 LabelString
19295 \end_layout
19296
19297 \end_inset
19298
19299  [
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 string
19305 \end_layout
19306
19307 \end_inset
19308
19309 =
19310 \begin_inset Quotes erd
19311 \end_inset
19312
19313
19314 \begin_inset Quotes erd
19315 \end_inset
19316
19317 ] When defined, this string defines how the counter is displayed.
19318  Setting this value sets 
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 LabelStringAppendix
19324 \end_layout
19325
19326 \end_inset
19327
19328  to the same value.
19329  The following special constructs can be used in the string:
19330 \begin_inset Separator parbreak
19331 \end_inset
19332
19333
19334 \end_layout
19335
19336 \begin_deeper
19337 \begin_layout Itemize
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342
19343 \backslash
19344 thecounter
19345 \end_layout
19346
19347 \end_inset
19348
19349  will be replaced by the expansion of the 
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 LabelString
19355 \end_layout
19356
19357 \end_inset
19358
19359  (or 
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 LabelStringAppendix
19365 \end_layout
19366
19367 \end_inset
19368
19369 ) of the counter 
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 counter
19375 \end_layout
19376
19377 \end_inset
19378
19379 .
19380  
19381 \end_layout
19382
19383 \begin_layout Itemize
19384 counter values can be expressed using \SpecialChar LaTeX
19385 -like macros
19386 \begin_inset Newline newline
19387 \end_inset
19388
19389
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394
19395 \backslash
19396
19397 \emph on
19398 numbertype
19399 \emph default
19400 {
19401 \emph on
19402 counter
19403 \emph default
19404 }
19405 \end_layout
19406
19407 \end_inset
19408
19409 , where 
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414
19415 \emph on
19416 numbertype
19417 \end_layout
19418
19419 \end_inset
19420
19421  can be:
19422 \begin_inset Foot
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426
19427 \family roman
19428 \series medium
19429 \shape up
19430 \size normal
19431 \emph off
19432 \bar no
19433 \noun off
19434 \color none
19435 Actually, the situation is a bit more complicated: any
19436 \family default
19437 \series default
19438 \shape default
19439 \emph default
19440 \bar default
19441  
19442 \size default
19443 \emph on
19444 \noun default
19445 \color inherit
19446 numbertype
19447 \family roman
19448 \series medium
19449 \shape up
19450 \size normal
19451 \emph off
19452 \bar no
19453 \noun off
19454  other than those described below will produce arabic numerals.
19455  It would not be surprising to see this change in the future.
19456 \end_layout
19457
19458 \end_inset
19459
19460  
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 arabic
19466 \end_layout
19467
19468 \end_inset
19469
19470 : 1, 2, 3,\SpecialChar ldots
19471
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 alph
19477 \end_layout
19478
19479 \end_inset
19480
19481  for lower-case letters: a, b, c, \SpecialChar ldots
19482
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 Alph
19488 \end_layout
19489
19490 \end_inset
19491
19492  for upper-case letters: A, B, C, \SpecialChar ldots
19493
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 roman
19499 \end_layout
19500
19501 \end_inset
19502
19503  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19504
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509 Roman
19510 \end_layout
19511
19512 \end_inset
19513
19514  for upper-case roman numerals: I, II, III\SpecialChar ldots
19515
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 hebrew
19521 \end_layout
19522
19523 \end_inset
19524
19525  for hebrew numerals.
19526 \end_layout
19527
19528 \end_deeper
19529 \begin_layout Standard
19530 If LabelString is not defined, a default value is constructed as follows:
19531  if the counter has a master counter 
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 master
19537 \end_layout
19538
19539 \end_inset
19540
19541  (defined via 
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 Within
19547 \end_layout
19548
19549 \end_inset
19550
19551 ), the string
19552 \begin_inset Newline newline
19553 \end_inset
19554
19555
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560
19561 \backslash
19562 themaster.
19563 \backslash
19564 arabic{counter}
19565 \end_layout
19566
19567 \end_inset
19568
19569  is used; otherwise the string 
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574
19575 \backslash
19576 arabic{counter}
19577 \end_layout
19578
19579 \end_inset
19580
19581  is used.
19582 \end_layout
19583
19584 \begin_layout Description
19585 \begin_inset Flex Code
19586 status collapsed
19587
19588 \begin_layout Plain Layout
19589 LabelStringAppendix
19590 \end_layout
19591
19592 \end_inset
19593
19594  [
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 string
19600 \end_layout
19601
19602 \end_inset
19603
19604 =
19605 \begin_inset Quotes erd
19606 \end_inset
19607
19608
19609 \begin_inset Quotes erd
19610 \end_inset
19611
19612 ] Same as 
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 LabelString
19618 \end_layout
19619
19620 \end_inset
19621
19622 , but for use in the Appendix.
19623 \end_layout
19624
19625 \begin_layout Description
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 PrettyFormat
19631 \end_layout
19632
19633 \end_inset
19634
19635  [
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 string
19641 \end_layout
19642
19643 \end_inset
19644
19645 =
19646 \begin_inset Quotes erd
19647 \end_inset
19648
19649
19650 \begin_inset Quotes erd
19651 \end_inset
19652
19653 ] A format for use with formatted references to this counter.
19654  For example, one might want to have references to section numbers appear
19655  as 
19656 \begin_inset Quotes eld
19657 \end_inset
19658
19659 Section 2.4
19660 \begin_inset Quotes erd
19661 \end_inset
19662
19663 .
19664  The string should contain 
19665 \begin_inset Quotes eld
19666 \end_inset
19667
19668 ##
19669 \begin_inset Quotes erd
19670 \end_inset
19671
19672 .
19673  This will be replaced by the counter number itself.
19674  So, for sections, it would be: Section ##.
19675 \end_layout
19676
19677 \begin_layout Description
19678 \begin_inset Flex Code
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682 Within
19683 \end_layout
19684
19685 \end_inset
19686
19687  [
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 string
19693 \end_layout
19694
19695 \end_inset
19696
19697 =
19698 \begin_inset Quotes erd
19699 \end_inset
19700
19701
19702 \begin_inset Quotes erd
19703 \end_inset
19704
19705 ] If this is set to the name of another counter, the present counter will
19706  be reset every time the other one is increased.
19707  For example, 
19708 \begin_inset Flex Code
19709 status collapsed
19710
19711 \begin_layout Plain Layout
19712 subsection
19713 \end_layout
19714
19715 \end_inset
19716
19717  is numbered inside 
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 section
19723 \end_layout
19724
19725 \end_inset
19726
19727 .
19728 \end_layout
19729
19730 \begin_layout Subsection
19731 Font description
19732 \begin_inset CommandInset label
19733 LatexCommand label
19734 name "sub:Font-description"
19735
19736 \end_inset
19737
19738
19739 \end_layout
19740
19741 \begin_layout Standard
19742 A font description looks like this:
19743 \end_layout
19744
19745 \begin_layout LyX-Code
19746 Font 
19747 \family roman
19748 \emph on
19749 or
19750 \family default
19751 \emph default
19752  LabelFont
19753 \emph on
19754  or
19755 \emph default
19756  DefaultFont
19757 \end_layout
19758
19759 \begin_layout LyX-Code
19760  ...
19761 \end_layout
19762
19763 \begin_layout LyX-Code
19764 EndFont
19765 \end_layout
19766
19767 \begin_layout Standard
19768 The following commands are available:
19769 \end_layout
19770
19771 \begin_layout Description
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 Color
19777 \end_layout
19778
19779 \end_inset
19780
19781  [
19782 \begin_inset Flex Code
19783 status collapsed
19784
19785 \begin_layout Plain Layout
19786
19787 \emph on
19788 none
19789 \end_layout
19790
19791 \end_inset
19792
19793
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 black
19799 \end_layout
19800
19801 \end_inset
19802
19803
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 white
19809 \end_layout
19810
19811 \end_inset
19812
19813
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 red
19819 \end_layout
19820
19821 \end_inset
19822
19823
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 green
19829 \end_layout
19830
19831 \end_inset
19832
19833
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 blue
19839 \end_layout
19840
19841 \end_inset
19842
19843
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 cyan
19849 \end_layout
19850
19851 \end_inset
19852
19853
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 magenta
19859 \end_layout
19860
19861 \end_inset
19862
19863
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 yellow
19869 \end_layout
19870
19871 \end_inset
19872
19873 ]
19874 \end_layout
19875
19876 \begin_layout Description
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 Family
19882 \end_layout
19883
19884 \end_inset
19885
19886  [
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891
19892 \emph on
19893 Roman
19894 \end_layout
19895
19896 \end_inset
19897
19898
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 Sans
19904 \end_layout
19905
19906 \end_inset
19907
19908
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913 Typewriter
19914 \end_layout
19915
19916 \end_inset
19917
19918 ]
19919 \end_layout
19920
19921 \begin_layout Description
19922 \begin_inset Flex Code
19923 status collapsed
19924
19925 \begin_layout Plain Layout
19926 Misc
19927 \end_layout
19928
19929 \end_inset
19930
19931  [
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 string
19937 \end_layout
19938
19939 \end_inset
19940
19941 ] Valid arguments are: 
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 emph
19947 \end_layout
19948
19949 \end_inset
19950
19951
19952 \begin_inset Flex Code
19953 status collapsed
19954
19955 \begin_layout Plain Layout
19956 noun
19957 \end_layout
19958
19959 \end_inset
19960
19961
19962 \begin_inset Flex Code
19963 status collapsed
19964
19965 \begin_layout Plain Layout
19966 strikeout
19967 \end_layout
19968
19969 \end_inset
19970
19971
19972 \begin_inset Flex Code
19973 status collapsed
19974
19975 \begin_layout Plain Layout
19976 underbar
19977 \end_layout
19978
19979 \end_inset
19980
19981
19982 \begin_inset Flex Code
19983 status collapsed
19984
19985 \begin_layout Plain Layout
19986 uuline
19987 \end_layout
19988
19989 \end_inset
19990
19991
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 uwave
19997 \end_layout
19998
19999 \end_inset
20000
20001
20002 \begin_inset Flex Code
20003 status collapsed
20004
20005 \begin_layout Plain Layout
20006 no_emph
20007 \end_layout
20008
20009 \end_inset
20010
20011
20012 \begin_inset Flex Code
20013 status collapsed
20014
20015 \begin_layout Plain Layout
20016 no_noun
20017 \end_layout
20018
20019 \end_inset
20020
20021
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 no_strikeout
20027 \end_layout
20028
20029 \end_inset
20030
20031
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 no_bar
20037 \end_layout
20038
20039 \end_inset
20040
20041
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 no_uuline
20047 \end_layout
20048
20049 \end_inset
20050
20051  and 
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 no_uwave
20057 \end_layout
20058
20059 \end_inset
20060
20061 .
20062  Each of these turns on or off the corresponding attribute.
20063  For example, 
20064 \begin_inset Flex Code
20065 status collapsed
20066
20067 \begin_layout Plain Layout
20068 emph
20069 \end_layout
20070
20071 \end_inset
20072
20073  turns on emphasis, and 
20074 \begin_inset Flex Code
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078 no_emph
20079 \end_layout
20080
20081 \end_inset
20082
20083  turns it off.
20084  
20085 \begin_inset Newline newline
20086 \end_inset
20087
20088 If the latter seems puzzling, remember that the font settings for the present
20089  context are generally inherited from the surrounding context.
20090  So 
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 no_emph
20096 \end_layout
20097
20098 \end_inset
20099
20100  would turn off the emphasis that was anyway in effect, say, in a theorem
20101  environment.
20102 \end_layout
20103
20104 \begin_layout Description
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 Series
20110 \end_layout
20111
20112 \end_inset
20113
20114  [
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119
20120 \emph on
20121 Medium
20122 \end_layout
20123
20124 \end_inset
20125
20126
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 Bold
20132 \end_layout
20133
20134 \end_inset
20135
20136
20137 \end_layout
20138
20139 \begin_layout Description
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 Shape
20145 \end_layout
20146
20147 \end_inset
20148
20149  [
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154
20155 \emph on
20156 Up
20157 \end_layout
20158
20159 \end_inset
20160
20161
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 Italic
20167 \end_layout
20168
20169 \end_inset
20170
20171
20172 \begin_inset Flex Code
20173 status collapsed
20174
20175 \begin_layout Plain Layout
20176 SmallCaps
20177 \end_layout
20178
20179 \end_inset
20180
20181
20182 \begin_inset Flex Code
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 Slanted
20187 \end_layout
20188
20189 \end_inset
20190
20191
20192 \end_layout
20193
20194 \begin_layout Description
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 Size
20200 \end_layout
20201
20202 \end_inset
20203
20204  [
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 tiny
20210 \end_layout
20211
20212 \end_inset
20213
20214
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 small
20220 \end_layout
20221
20222 \end_inset
20223
20224
20225 \begin_inset Flex Code
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229
20230 \emph on
20231 normal
20232 \end_layout
20233
20234 \end_inset
20235
20236
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 large
20242 \end_layout
20243
20244 \end_inset
20245
20246
20247 \begin_inset Flex Code
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 larger
20252 \end_layout
20253
20254 \end_inset
20255
20256
20257 \begin_inset Flex Code
20258 status collapsed
20259
20260 \begin_layout Plain Layout
20261 largest
20262 \end_layout
20263
20264 \end_inset
20265
20266
20267 \begin_inset Flex Code
20268 status collapsed
20269
20270 \begin_layout Plain Layout
20271 huge
20272 \end_layout
20273
20274 \end_inset
20275
20276
20277 \begin_inset Flex Code
20278 status collapsed
20279
20280 \begin_layout Plain Layout
20281 giant
20282 \end_layout
20283
20284 \end_inset
20285
20286 ]
20287 \end_layout
20288
20289 \begin_layout Subsection
20290 \begin_inset CommandInset label
20291 LatexCommand label
20292 name "sub:Citation-format-description"
20293
20294 \end_inset
20295
20296 Citation format description
20297 \end_layout
20298
20299 \begin_layout Standard
20300 The 
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 CiteFormat
20306 \end_layout
20307
20308 \end_inset
20309
20310  blocks are used to describe how bibliographic information should be displayed,
20311  both within \SpecialChar LyX
20312  itself (in the citation dialog and in tooltips, for example)
20313  and in XHTML output.
20314  Such a block might look like this:
20315 \end_layout
20316
20317 \begin_layout LyX-Code
20318 CiteFormat
20319 \end_layout
20320
20321 \begin_layout LyX-Code
20322  article ...
20323 \end_layout
20324
20325 \begin_layout LyX-Code
20326  book ...
20327 \end_layout
20328
20329 \begin_layout LyX-Code
20330 End
20331 \end_layout
20332
20333 \begin_layout Standard
20334 The individual lines define how the bibliographic information associated
20335  with an article or book, respectively, is to be displayed, and such a definitio
20336 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20337  file.
20338  \SpecialChar LyX
20339  defines a default format in the source code that will be used if no specific
20340  definition has been given.
20341  \SpecialChar LyX
20342  predefines several formats in the file 
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 stdciteformats.inc
20348 \end_layout
20349
20350 \end_inset
20351
20352 , which is included in most of \SpecialChar LyX
20353 's document classes.
20354 \end_layout
20355
20356 \begin_layout Standard
20357 The definitions use a simple language that allows Bib\SpecialChar TeX
20358  keys to be replaced
20359  with their values.
20360  Keys should be enclosed in 
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 %
20366 \end_layout
20367
20368 \end_inset
20369
20370  signs, e.g.: 
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 %author%
20376 \end_layout
20377
20378 \end_inset
20379
20380 .
20381  So a simple definition might look like this:
20382 \end_layout
20383
20384 \begin_layout LyX-Code
20385 misc %author%, 
20386 \begin_inset Quotes eld
20387 \end_inset
20388
20389 %title
20390 \begin_inset Quotes erd
20391 \end_inset
20392
20393 .
20394 \end_layout
20395
20396 \begin_layout Standard
20397 This would print the author, followed by a comma, followed by the title,
20398  in quotes, followed by a period.
20399 \end_layout
20400
20401 \begin_layout Standard
20402 Of course, sometimes you may want to print a key only if it exists.
20403  This can be done by using a conditional construction, such as: 
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 {%volume%[[vol.
20409 \begin_inset space ~
20410 \end_inset
20411
20412 %volume%]]}
20413 \end_layout
20414
20415 \end_inset
20416
20417 .
20418  This says: If the 
20419 \begin_inset Flex Code
20420 status collapsed
20421
20422 \begin_layout Plain Layout
20423 volume
20424 \end_layout
20425
20426 \end_inset
20427
20428  key exists, then print 
20429 \begin_inset Quotes eld
20430 \end_inset
20431
20432 vol.
20433 \begin_inset space ~
20434 \end_inset
20435
20436
20437 \begin_inset Quotes erd
20438 \end_inset
20439
20440  followed by the volume key.
20441  It is also possible to have an else clause in the conditional, such as:
20442 \begin_inset Newline newline
20443 \end_inset
20444
20445
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 {%author%[[%author%]][[%editor%, ed.]]}
20451 \end_layout
20452
20453 \end_inset
20454
20455 .
20456 \begin_inset Newline newline
20457 \end_inset
20458
20459 Here, the 
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 author
20465 \end_layout
20466
20467 \end_inset
20468
20469  key is printed if it exists; otherwise, the editor key is printed, followed
20470  by 
20471 \begin_inset Quotes eld
20472 \end_inset
20473
20474 ,
20475 \begin_inset space ~
20476 \end_inset
20477
20478 ed.
20479 \begin_inset Quotes erd
20480 \end_inset
20481
20482  Note that the key is again enclosed in 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 %
20488 \end_layout
20489
20490 \end_inset
20491
20492  signs; the entire conditional is enclosed in braces; and the if and else
20493  clauses are enclosed in double brackets, 
20494 \begin_inset Quotes eld
20495 \end_inset
20496
20497
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 [[
20503 \end_layout
20504
20505 \end_inset
20506
20507
20508 \begin_inset Quotes eld
20509 \end_inset
20510
20511  and 
20512 \begin_inset Quotes eld
20513 \end_inset
20514
20515
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520 ]]
20521 \end_layout
20522
20523 \end_inset
20524
20525
20526 \begin_inset Quotes erd
20527 \end_inset
20528
20529 .
20530  There must be no space between any of these.
20531 \end_layout
20532
20533 \begin_layout Standard
20534 There is one other piece of syntax available in definitions, which looks
20535  like this: 
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 {!<i>!}
20541 \end_layout
20542
20543 \end_inset
20544
20545 .
20546  This defines a piece of formatting information that is to be used when
20547  creating 
20548 \begin_inset Quotes eld
20549 \end_inset
20550
20551 rich text
20552 \begin_inset Quotes erd
20553 \end_inset
20554
20555 .
20556  Obviously, we do not want to output HTML tags when writing plain text,
20557  so they should be wrapped in 
20558 \begin_inset Quotes eld
20559 \end_inset
20560
20561 {!
20562 \begin_inset Quotes erd
20563 \end_inset
20564
20565  and 
20566 \begin_inset Quotes eld
20567 \end_inset
20568
20569 !}
20570 \begin_inset Quotes erd
20571 \end_inset
20572
20573 .
20574 \end_layout
20575
20576 \begin_layout Standard
20577 Two special sorts of definitions are also possible in a 
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 CiteFormat
20583 \end_layout
20584
20585 \end_inset
20586
20587  block.
20588  An example of the first would be:
20589 \end_layout
20590
20591 \begin_layout LyX-Code
20592 !quotetitle 
20593 \begin_inset Quotes eld
20594 \end_inset
20595
20596 %title%
20597 \begin_inset Quotes erd
20598 \end_inset
20599
20600
20601 \end_layout
20602
20603 \begin_layout Standard
20604 This is an abbreviation, or macro, and it can be used by treating it as
20605  if it were a key: 
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 %!quotetitle%
20611 \end_layout
20612
20613 \end_inset
20614
20615 .
20616  \SpecialChar LyX
20617  will treat 
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 %!quotetitle%
20623 \end_layout
20624
20625 \end_inset
20626
20627  exactly as it would treat its definition.
20628  So, let us issue the obvious 
20629 \emph on
20630 warning
20631 \emph default
20632 .
20633  Do not do this:
20634 \end_layout
20635
20636 \begin_layout LyX-Code
20637 !funfun %funfun%
20638 \end_layout
20639
20640 \begin_layout Standard
20641 or anything like it.
20642  \SpecialChar LyX
20643  shouldn't go into an infinite loop, but it may go into a long one before
20644  it gives up.
20645 \end_layout
20646
20647 \begin_layout Standard
20648 The second sort of special definition might look like this:
20649 \end_layout
20650
20651 \begin_layout LyX-Code
20652 _pptext pp.
20653 \end_layout
20654
20655 \begin_layout Standard
20656 This defines a translatable piece of text, which allows relevant parts of
20657  the bibliography to be translated.
20658  It can be included in a definition by treating it as a key: 
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663 %_pptext%
20664 \end_layout
20665
20666 \end_inset
20667
20668 .
20669  Several of these are predefined in 
20670 \begin_inset Flex Code
20671 status collapsed
20672
20673 \begin_layout Plain Layout
20674 stdciteformats.inc
20675 \end_layout
20676
20677 \end_inset
20678
20679 .
20680  Note that these are not macros, in the sense just defined.
20681  They will not be expanded.
20682 \end_layout
20683
20684 \begin_layout Standard
20685 So here then is an example that use all these features:
20686 \begin_inset VSpace defskip
20687 \end_inset
20688
20689
20690 \end_layout
20691
20692 \begin_layout Standard
20693 \noindent
20694
20695 \family typewriter
20696 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20697 \end_layout
20698
20699 \begin_layout Standard
20700 \begin_inset VSpace defskip
20701 \end_inset
20702
20703 This defines a macro that prints the author, followed by a comma, if the
20704  
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 author
20710 \end_layout
20711
20712 \end_inset
20713
20714  key is defined, or else prints the name of the editor, followed by the
20715  
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 _edtext
20721 \end_layout
20722
20723 \end_inset
20724
20725  or its translation (it is by default 
20726 \begin_inset Quotes eld
20727 \end_inset
20728
20729 ed.
20730 \begin_inset Quotes erd
20731 \end_inset
20732
20733 ), if the 
20734 \begin_inset Flex Code
20735 status collapsed
20736
20737 \begin_layout Plain Layout
20738 editor
20739 \end_layout
20740
20741 \end_inset
20742
20743  key is defined.
20744  Note that this is in fact defined in 
20745 \begin_inset Flex Code
20746 status collapsed
20747
20748 \begin_layout Plain Layout
20749 stdciteformats.inc
20750 \end_layout
20751
20752 \end_inset
20753
20754 , so you can use it in your own definitions, or re-definitions, if you load
20755  that file first.
20756 \end_layout
20757
20758 \begin_layout Section
20759 \begin_inset CommandInset label
20760 LatexCommand label
20761 name "sec:Tags-for-XHTML"
20762
20763 \end_inset
20764
20765 Tags for XHTML output
20766 \end_layout
20767
20768 \begin_layout Standard
20769 As with \SpecialChar LaTeX
20770  or DocBook, the format of \SpecialChar LyX
20771 's XHTML output is also controlled by
20772  layout information.
20773  In general, \SpecialChar LyX
20774  provides sensible defaults and, as mentioned earlier, it will
20775  even construct default CSS style rules from the other layout tags.
20776  For example, \SpecialChar LyX
20777  will attempt to use the information provided in the 
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782 Font
20783 \end_layout
20784
20785 \end_inset
20786
20787  declaration for the Chapter style to write CSS that will appropriately
20788  format chapter headings.
20789 \end_layout
20790
20791 \begin_layout Standard
20792 In many cases, then, you may not have to do anything at all to get acceptable
20793  XHTML output for your own environments, custom insets, and so forth.
20794  But in some cases you will, and so \SpecialChar LyX
20795  provides a number of layout tags that
20796  can be used to customize the XHTML and CSS that are generated.
20797 \end_layout
20798
20799 \begin_layout Standard
20800 Note that there are two tags, 
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 HTMLPreamble
20806 \end_layout
20807
20808 \end_inset
20809
20810  and 
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 AddToHTMLPreamble
20816 \end_layout
20817
20818 \end_inset
20819
20820  that may appear outside style and inset declarations.
20821  See 
20822 \begin_inset CommandInset ref
20823 LatexCommand ref
20824 reference "sub:General-text-class"
20825
20826 \end_inset
20827
20828  for details on these.
20829 \end_layout
20830
20831 \begin_layout Subsection
20832 \begin_inset CommandInset label
20833 LatexCommand label
20834 name "sub:Paragraph-Style-XHTML"
20835
20836 \end_inset
20837
20838 Paragraph styles
20839 \end_layout
20840
20841 \begin_layout Standard
20842 The sort of XHTML \SpecialChar LyX
20843  outputs for a paragraph depends upon whether we are dealing
20844  with a normal paragraph, a command, or an environment, where this is itself
20845  determined by the contents of the corresponding 
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 \SpecialChar LaTeX
20851 Type
20852 \end_layout
20853
20854 \end_inset
20855
20856  tag.
20857  
20858 \end_layout
20859
20860 \begin_layout Standard
20861 For a command or normal paragraph, the output XHTML has the following form:
20862 \end_layout
20863
20864 \begin_layout LyX-Code
20865 <tag attr=
20866 \begin_inset Quotes erd
20867 \end_inset
20868
20869 value
20870 \begin_inset Quotes erd
20871 \end_inset
20872
20873 >
20874 \end_layout
20875
20876 \begin_layout LyX-Code
20877 <labeltag attr=
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881 value
20882 \begin_inset Quotes erd
20883 \end_inset
20884
20885 >Label</labeltag>
20886 \end_layout
20887
20888 \begin_layout LyX-Code
20889 Contents of the paragraph.
20890 \end_layout
20891
20892 \begin_layout LyX-Code
20893 </tag>
20894 \end_layout
20895
20896 \begin_layout Standard
20897 The label tags are of course omitted if the paragraph does not have a label.
20898 \end_layout
20899
20900 \begin_layout Standard
20901 For an environment that is not some sort of list, the XHTML takes this form:
20902 \end_layout
20903
20904 \begin_layout LyX-Code
20905 <tag attr=
20906 \begin_inset Quotes erd
20907 \end_inset
20908
20909 value
20910 \begin_inset Quotes erd
20911 \end_inset
20912
20913 >
20914 \end_layout
20915
20916 \begin_layout LyX-Code
20917 <itemtag attr=
20918 \begin_inset Quotes erd
20919 \end_inset
20920
20921 value
20922 \begin_inset Quotes erd
20923 \end_inset
20924
20925 ><labeltag attr=
20926 \begin_inset Quotes erd
20927 \end_inset
20928
20929 value
20930 \begin_inset Quotes erd
20931 \end_inset
20932
20933 >Environment Label</labeltag>First paragraph.</itemtag>
20934 \end_layout
20935
20936 \begin_layout LyX-Code
20937 <itemtag>Second paragraph.</itemtag>
20938 \end_layout
20939
20940 \begin_layout LyX-Code
20941 </tag>
20942 \end_layout
20943
20944 \begin_layout Standard
20945 Note that the label is output only for the first paragraph, as it should
20946  be for a theorem, for example.
20947  
20948 \end_layout
20949
20950 \begin_layout Standard
20951 For a list, we have one of these forms:
20952 \end_layout
20953
20954 \begin_layout LyX-Code
20955 <tag attr=
20956 \begin_inset Quotes erd
20957 \end_inset
20958
20959 value
20960 \begin_inset Quotes erd
20961 \end_inset
20962
20963 >
20964 \end_layout
20965
20966 \begin_layout LyX-Code
20967 <itemtag attr=
20968 \begin_inset Quotes erd
20969 \end_inset
20970
20971 value
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975 ><labeltag attr=
20976 \begin_inset Quotes erd
20977 \end_inset
20978
20979 value
20980 \begin_inset Quotes erd
20981 \end_inset
20982
20983 >List Label</labeltag>First item.</itemtag>
20984 \end_layout
20985
20986 \begin_layout LyX-Code
20987 <itemtag attr=
20988 \begin_inset Quotes erd
20989 \end_inset
20990
20991 value
20992 \begin_inset Quotes erd
20993 \end_inset
20994
20995 ><labeltag attr=
20996 \begin_inset Quotes erd
20997 \end_inset
20998
20999 value
21000 \begin_inset Quotes erd
21001 \end_inset
21002
21003 >List Label</labeltag>Second item.</itemtag>
21004 \end_layout
21005
21006 \begin_layout LyX-Code
21007 </tag>
21008 \end_layout
21009
21010 \begin_layout LyX-Code
21011
21012 \end_layout
21013
21014 \begin_layout LyX-Code
21015 <tag attr=
21016 \begin_inset Quotes erd
21017 \end_inset
21018
21019 value
21020 \begin_inset Quotes erd
21021 \end_inset
21022
21023 >
21024 \end_layout
21025
21026 \begin_layout LyX-Code
21027 <labeltag attr=
21028 \begin_inset Quotes erd
21029 \end_inset
21030
21031 value
21032 \begin_inset Quotes erd
21033 \end_inset
21034
21035 >List Label</labeltag><itemtag attr=
21036 \begin_inset Quotes erd
21037 \end_inset
21038
21039 value
21040 \begin_inset Quotes erd
21041 \end_inset
21042
21043 >First item.</itemtag>
21044 \end_layout
21045
21046 \begin_layout LyX-Code
21047 <labeltag attr=
21048 \begin_inset Quotes erd
21049 \end_inset
21050
21051 value
21052 \begin_inset Quotes erd
21053 \end_inset
21054
21055 >List Label</labeltag><itemtag attr=
21056 \begin_inset Quotes erd
21057 \end_inset
21058
21059 value
21060 \begin_inset Quotes erd
21061 \end_inset
21062
21063 >Second item.</itemtag>
21064 \end_layout
21065
21066 \begin_layout LyX-Code
21067 </tag>
21068 \end_layout
21069
21070 \begin_layout Standard
21071 Note the different orders of 
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 labeltag
21077 \end_layout
21078
21079 \end_inset
21080
21081  and 
21082 \begin_inset Flex Code
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086 itemtag
21087 \end_layout
21088
21089 \end_inset
21090
21091 .
21092  Which order we get depends upon the setting of 
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 HTMLLabelFirst
21098 \end_layout
21099
21100 \end_inset
21101
21102 : If 
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 HTMLLabelFirst
21108 \end_layout
21109
21110 \end_inset
21111
21112  is false (the default), you get the first of these, with the label within
21113  the item; if true, you get the second, with the label outside the item.
21114 \end_layout
21115
21116 \begin_layout Standard
21117 The specific tags and attributes output for each paragraph type can be controlle
21118 d by means of the layout tags we are about to describe.
21119  As mentioned earlier, however, \SpecialChar LyX
21120  uses sensible defaults for many of these,
21121  so you often may not need to do very much to get good XHTML output.
21122  Think of the available tags as there so you can tweak things to your liking.
21123 \end_layout
21124
21125 \begin_layout Description
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 HTMLAttr
21131 \end_layout
21132
21133 \end_inset
21134
21135  [
21136 \begin_inset Flex Code
21137 status collapsed
21138
21139 \begin_layout Plain Layout
21140 string
21141 \end_layout
21142
21143 \end_inset
21144
21145 ] Specifies attribute information to be output with the main tag.
21146  For example, 
21147 \begin_inset Quotes eld
21148 \end_inset
21149
21150
21151 \begin_inset Flex Code
21152 status collapsed
21153
21154 \begin_layout Plain Layout
21155 class=`mydiv'
21156 \end_layout
21157
21158 \end_inset
21159
21160
21161 \begin_inset Quotes erd
21162 \end_inset
21163
21164 .
21165  By default, \SpecialChar LyX
21166  will output 
21167 \begin_inset Quotes eld
21168 \end_inset
21169
21170
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 class=`layoutname'
21176 \end_layout
21177
21178 \end_inset
21179
21180
21181 \begin_inset Quotes erd
21182 \end_inset
21183
21184 , where 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189 layoutname
21190 \end_layout
21191
21192 \end_inset
21193
21194  is the \SpecialChar LyX
21195  name of the layout, made lowercase, for example: chapter.
21196  This should 
21197 \emph on
21198 not
21199 \emph default
21200  contain any style information.
21201  Use 
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 HTMLStyle
21207 \end_layout
21208
21209 \end_inset
21210
21211  for that purpose.
21212 \end_layout
21213
21214 \begin_layout Description
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219 HTMLForceCSS
21220 \end_layout
21221
21222 \end_inset
21223
21224  [
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229
21230 \emph on
21231 0
21232 \emph default
21233 ,1
21234 \end_layout
21235
21236 \end_inset
21237
21238 ] Whether to output the default CSS information \SpecialChar LyX
21239  generates for this layout,
21240  even if additional information is explicitly provided via 
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 HTMLStyle
21246 \end_layout
21247
21248 \end_inset
21249
21250 .
21251  Setting this to 
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 1
21257 \end_layout
21258
21259 \end_inset
21260
21261  allows you to alter or augment the generated CSS, rather than to override
21262  it completely.
21263  Default is 
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 0
21269 \end_layout
21270
21271 \end_inset
21272
21273 .
21274 \end_layout
21275
21276 \begin_layout Description
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 HTMLItem
21282 \end_layout
21283
21284 \end_inset
21285
21286  [
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 string
21292 \end_layout
21293
21294 \end_inset
21295
21296 ] The tag to be used for individual paragraphs of environments, replacing
21297  
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 itemtag
21303 \end_layout
21304
21305 \end_inset
21306
21307  in the examples above.
21308  Defaults to 
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 div
21314 \end_layout
21315
21316 \end_inset
21317
21318 .
21319 \end_layout
21320
21321 \begin_layout Description
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 HTMLItemAttr
21327 \end_layout
21328
21329 \end_inset
21330
21331  [
21332 \begin_inset Flex Code
21333 status collapsed
21334
21335 \begin_layout Plain Layout
21336 string
21337 \end_layout
21338
21339 \end_inset
21340
21341 ] Attributes for the item tag.
21342  Defaults to 
21343 \begin_inset Quotes eld
21344 \end_inset
21345
21346
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 class=`layoutname_item'
21352 \end_layout
21353
21354 \end_inset
21355
21356
21357 \begin_inset Quotes erd
21358 \end_inset
21359
21360 .
21361  This should 
21362 \emph on
21363 not
21364 \emph default
21365  contain any style information.
21366  Use 
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 HTMLStyle
21372 \end_layout
21373
21374 \end_inset
21375
21376  for that purpose.
21377 \end_layout
21378
21379 \begin_layout Description
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 HTMLLabel
21385 \end_layout
21386
21387 \end_inset
21388
21389  [
21390 \begin_inset Flex Code
21391 status collapsed
21392
21393 \begin_layout Plain Layout
21394 string
21395 \end_layout
21396
21397 \end_inset
21398
21399 ] The tag to be used for paragraph and item labels, replacing 
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 labeltag
21405 \end_layout
21406
21407 \end_inset
21408
21409  in the examples above.
21410  Defaults to 
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 span
21416 \end_layout
21417
21418 \end_inset
21419
21420 , unless 
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 LabelType
21426 \end_layout
21427
21428 \end_inset
21429
21430  is either 
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 Top_Environment
21436 \end_layout
21437
21438 \end_inset
21439
21440  or 
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 Centered_Top_Environment
21446 \end_layout
21447
21448 \end_inset
21449
21450 , in which case it defaults to 
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 div
21456 \end_layout
21457
21458 \end_inset
21459
21460 .
21461 \end_layout
21462
21463 \begin_layout Description
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 HTMLLabelAttr
21469 \end_layout
21470
21471 \end_inset
21472
21473  [
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 string
21479 \end_layout
21480
21481 \end_inset
21482
21483 ] Attributes for the label tag.
21484  Defaults to 
21485 \begin_inset Quotes eld
21486 \end_inset
21487
21488
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 class=`layoutname_label'
21494 \end_layout
21495
21496 \end_inset
21497
21498
21499 \begin_inset Quotes erd
21500 \end_inset
21501
21502 .
21503  This should 
21504 \emph on
21505 not
21506 \emph default
21507  contain any style information.
21508  Use 
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 HTMLStyle
21514 \end_layout
21515
21516 \end_inset
21517
21518  for that purpose.
21519 \end_layout
21520
21521 \begin_layout Description
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 HTMLLabelFirst
21527 \end_layout
21528
21529 \end_inset
21530
21531  [
21532 \begin_inset Flex Code
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536
21537 \emph on
21538 0
21539 \emph default
21540 ,1
21541 \end_layout
21542
21543 \end_inset
21544
21545 ] Meaningful only for list-like environments, this tag controls whether
21546  the label tag is output before or inside the item tag.
21547  This is used, for example, in the description environment, where we want
21548  `
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 <dt>\SpecialChar ldots
21554 </dt><dd>\SpecialChar ldots
21555 </dd>
21556 \end_layout
21557
21558 \end_inset
21559
21560 .
21561  Default is 
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 0
21567 \end_layout
21568
21569 \end_inset
21570
21571 : The label tag is output inside the item tag.
21572 \end_layout
21573
21574 \begin_layout Description
21575 \begin_inset Flex Code
21576 status collapsed
21577
21578 \begin_layout Plain Layout
21579 HTMLPreamble
21580 \end_layout
21581
21582 \end_inset
21583
21584  Information to be output in the 
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589 <head>
21590 \end_layout
21591
21592 \end_inset
21593
21594  section when this style is used.
21595  This might, for example, be used to include a 
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 <script>
21601 \end_layout
21602
21603 \end_inset
21604
21605  block defining an 
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 onclick
21611 \end_layout
21612
21613 \end_inset
21614
21615  handler.
21616 \end_layout
21617
21618 \begin_layout Description
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 HTMLStyle
21624 \end_layout
21625
21626 \end_inset
21627
21628  CSS style information to be included when this style is used.
21629  Note that this will automatically be wrapped in a layout-generated 
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 <style>
21635 \end_layout
21636
21637 \end_inset
21638
21639  block, so only the CSS itself need be included.
21640  Must end with 
21641 \begin_inset Flex Code
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645 EndHTMLStyle
21646 \end_layout
21647
21648 \end_inset
21649
21650 .
21651 \end_layout
21652
21653 \begin_layout Description
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 HTMLTag
21659 \end_layout
21660
21661 \end_inset
21662
21663  [
21664 \begin_inset Flex Code
21665 status collapsed
21666
21667 \begin_layout Plain Layout
21668 string
21669 \end_layout
21670
21671 \end_inset
21672
21673 ] The tag to be used for the main label, replacing 
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 tag
21679 \end_layout
21680
21681 \end_inset
21682
21683  in the examples above.
21684  Defaults to 
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 div
21690 \end_layout
21691
21692 \end_inset
21693
21694 .
21695 \end_layout
21696
21697 \begin_layout Description
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702 HTMLTitle
21703 \end_layout
21704
21705 \end_inset
21706
21707  [
21708 \begin_inset Flex Code
21709 status collapsed
21710
21711 \begin_layout Plain Layout
21712
21713 \emph on
21714 0
21715 \emph default
21716 ,1
21717 \end_layout
21718
21719 \end_inset
21720
21721 ] Marks this style as the one to be used to generate the 
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 <title>
21727 \end_layout
21728
21729 \end_inset
21730
21731  tag for the XHTML file.
21732  By default, it is false.
21733  The 
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 stdtitle.inc
21739 \end_layout
21740
21741 \end_inset
21742
21743  file sets it to true for the 
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 title
21749 \end_layout
21750
21751 \end_inset
21752
21753  environment.
21754  
21755 \end_layout
21756
21757 \begin_layout Subsection
21758 InsetLayout XHTML
21759 \end_layout
21760
21761 \begin_layout Standard
21762 The XHTML output of insets can also be controlled by information in layout
21763  files.
21764 \begin_inset Foot
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768 At present, this is true only for 
21769 \begin_inset Quotes eld
21770 \end_inset
21771
21772 text
21773 \begin_inset Quotes erd
21774 \end_inset
21775
21776  insets (insets you can type into) and is not true for 
21777 \begin_inset Quotes eld
21778 \end_inset
21779
21780 command
21781 \begin_inset Quotes erd
21782 \end_inset
21783
21784  insets (insets that are associated with dialog boxes).
21785 \end_layout
21786
21787 \end_inset
21788
21789  Here, too, \SpecialChar LyX
21790  tries to provide sensible defaults, and it constructs default
21791  CSS style rules.
21792  But everything can be customized.
21793 \end_layout
21794
21795 \begin_layout Standard
21796 The XHTML \SpecialChar LyX
21797  outputs for an inset has the following form:
21798 \end_layout
21799
21800 \begin_layout LyX-Code
21801 <tag attr=
21802 \begin_inset Quotes erd
21803 \end_inset
21804
21805 value
21806 \begin_inset Quotes erd
21807 \end_inset
21808
21809 >
21810 \end_layout
21811
21812 \begin_layout LyX-Code
21813 <labeltag>Label</labeltag>
21814 \end_layout
21815
21816 \begin_layout LyX-Code
21817 <innertag attr=
21818 \begin_inset Quotes erd
21819 \end_inset
21820
21821 value
21822 \begin_inset Quotes erd
21823 \end_inset
21824
21825 >Contents of the inset.</innertag>
21826 \end_layout
21827
21828 \begin_layout LyX-Code
21829 </tag>
21830 \end_layout
21831
21832 \begin_layout Standard
21833 If the inset permits multiple paragraphs—that is, if 
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 MultiPar
21839 \end_layout
21840
21841 \end_inset
21842
21843  is true—then the contents of the inset will itself be output as paragraphs
21844  formatted according to the styles used for those paragraphs (standard,
21845  quote, and the like).
21846  The label tag is of course omitted if the paragraph does not have a label
21847  and, at present, is always 
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 span
21853 \end_layout
21854
21855 \end_inset
21856
21857 .
21858  The inner tag is optional and, by default, does not appear.
21859 \end_layout
21860
21861 \begin_layout Standard
21862 The specific tags and attributes output for each inset can be controlled
21863  by means of the following layout tags.
21864 \end_layout
21865
21866 \begin_layout Description
21867 \begin_inset Flex Code
21868 status collapsed
21869
21870 \begin_layout Plain Layout
21871 HTMLAttr
21872 \end_layout
21873
21874 \end_inset
21875
21876  [
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 string
21882 \end_layout
21883
21884 \end_inset
21885
21886 ] Specifies attribute information to be output with the main tag.
21887  For example, 
21888 \begin_inset Quotes eld
21889 \end_inset
21890
21891
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896 class=`myinset' onclick=`\SpecialChar ldots
21897 '
21898 \end_layout
21899
21900 \end_inset
21901
21902
21903 \begin_inset Quotes erd
21904 \end_inset
21905
21906 .
21907  By default, \SpecialChar LyX
21908  will output 
21909 \begin_inset Quotes eld
21910 \end_inset
21911
21912
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 class=`insetname'
21918 \end_layout
21919
21920 \end_inset
21921
21922
21923 \begin_inset Quotes erd
21924 \end_inset
21925
21926 , where 
21927 \begin_inset Flex Code
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 insetname
21932 \end_layout
21933
21934 \end_inset
21935
21936  is the \SpecialChar LyX
21937  name of the inset, made lowercase and with non-alphanumeric characters
21938  converted to underscores, for example: footnote.
21939 \end_layout
21940
21941 \begin_layout Description
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 HTMLForceCSS
21947 \end_layout
21948
21949 \end_inset
21950
21951  [
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956
21957 \emph on
21958 0
21959 \emph default
21960 ,1
21961 \end_layout
21962
21963 \end_inset
21964
21965 ] Whether to output the default CSS information \SpecialChar LyX
21966  generates for this layout,
21967  even if additional information is explicitly provided via 
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 HTMLStyle
21973 \end_layout
21974
21975 \end_inset
21976
21977 .
21978  Setting this to 
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 1
21984 \end_layout
21985
21986 \end_inset
21987
21988  allows you to alter or augment the generated CSS, rather than to override
21989  it completely.
21990  Default is 0.
21991 \end_layout
21992
21993 \begin_layout Description
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 HTMLInnerAttr
21999 \end_layout
22000
22001 \end_inset
22002
22003  [
22004 \begin_inset Flex Code
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008 string
22009 \end_layout
22010
22011 \end_inset
22012
22013 ] Attributes for the inner tag.
22014  Defaults to 
22015 \begin_inset Quotes eld
22016 \end_inset
22017
22018
22019 \begin_inset Flex Code
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023 class=`insetname_inner'
22024 \end_layout
22025
22026 \end_inset
22027
22028
22029 \begin_inset Quotes erd
22030 \end_inset
22031
22032 .
22033 \end_layout
22034
22035 \begin_layout Description
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 HTMLInnerTag
22041 \end_layout
22042
22043 \end_inset
22044
22045  [
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 string
22051 \end_layout
22052
22053 \end_inset
22054
22055 ] The inner tag, replacing 
22056 \begin_inset Flex Code
22057 status collapsed
22058
22059 \begin_layout Plain Layout
22060 innertag
22061 \end_layout
22062
22063 \end_inset
22064
22065  in the examples above.
22066  By default, there is none.
22067 \end_layout
22068
22069 \begin_layout Description
22070 \begin_inset Flex Code
22071 status collapsed
22072
22073 \begin_layout Plain Layout
22074 HTMLIsBlock
22075 \end_layout
22076
22077 \end_inset
22078
22079  [
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 0,
22085 \emph on
22086 1
22087 \end_layout
22088
22089 \end_inset
22090
22091 ] Whether this inset represents a standalone block of text (such as a footnote)
22092  or instead represents material that is included in the surrounding text
22093  (such as a branch).
22094  Defaults to 1.
22095 \end_layout
22096
22097 \begin_layout Description
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 HTMLLabel
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 ] A label for this inset, possibly including a reference to a counter.
22118  For example, for footnote, it might be: 
22119 \begin_inset Flex Code
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123
22124 \backslash
22125 arabic{footnote}
22126 \end_layout
22127
22128 \end_inset
22129
22130 .
22131  This is optional, and there is no default.
22132 \end_layout
22133
22134 \begin_layout Description
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139 HTMLPreamble
22140 \end_layout
22141
22142 \end_inset
22143
22144  Information to be output in the 
22145 \begin_inset Flex Code
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149 <head>
22150 \end_layout
22151
22152 \end_inset
22153
22154  section when this style is used.
22155  This might, for example, be used to include a 
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 <script>
22161 \end_layout
22162
22163 \end_inset
22164
22165  block defining an 
22166 \begin_inset Flex Code
22167 status collapsed
22168
22169 \begin_layout Plain Layout
22170 onclick
22171 \end_layout
22172
22173 \end_inset
22174
22175  handler.
22176 \end_layout
22177
22178 \begin_layout Description
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183 HTMLStyle
22184 \end_layout
22185
22186 \end_inset
22187
22188  CSS style information to be included when this style is used.
22189  Note that this will automatically be wrapped in a layout-generated 
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 <style>
22195 \end_layout
22196
22197 \end_inset
22198
22199  block, so only the CSS itself need be included.
22200 \end_layout
22201
22202 \begin_layout Description
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 HTMLTag
22208 \end_layout
22209
22210 \end_inset
22211
22212  [
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 string
22218 \end_layout
22219
22220 \end_inset
22221
22222 ] The tag to be used for the main label, replacing 
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 tag
22228 \end_layout
22229
22230 \end_inset
22231
22232  in the examples above.
22233  The default depends upon the setting of 
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 MultiPar
22239 \end_layout
22240
22241 \end_inset
22242
22243 : If 
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 MultiPar
22249 \end_layout
22250
22251 \end_inset
22252
22253  is true, the default is 
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 div
22259 \end_layout
22260
22261 \end_inset
22262
22263 ; if it is false, the default is 
22264 \begin_inset Flex Code
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 span
22269 \end_layout
22270
22271 \end_inset
22272
22273 .
22274 \end_layout
22275
22276 \begin_layout Subsection
22277 Float XHTML
22278 \end_layout
22279
22280 \begin_layout Standard
22281 The XHTML output for floats too can be controlled by layout information.
22282  The output has the following form:
22283 \end_layout
22284
22285 \begin_layout LyX-Code
22286 <tag attr=
22287 \begin_inset Quotes erd
22288 \end_inset
22289
22290 value
22291 \begin_inset Quotes erd
22292 \end_inset
22293
22294 >
22295 \end_layout
22296
22297 \begin_layout LyX-Code
22298 Contents of the float.
22299 \end_layout
22300
22301 \begin_layout LyX-Code
22302 </tag>
22303 \end_layout
22304
22305 \begin_layout Standard
22306 The caption, if there is one, is a separate inset and will be output as
22307  such.
22308  Its appearance can be controlled via the InsetLayout for caption insets.
22309  
22310 \end_layout
22311
22312 \begin_layout Description
22313 \begin_inset Flex Code
22314 status collapsed
22315
22316 \begin_layout Plain Layout
22317 HTMLAttr
22318 \end_layout
22319
22320 \end_inset
22321
22322  [
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 string
22328 \end_layout
22329
22330 \end_inset
22331
22332 ] Specifies attribute information to be output with the main tag.
22333  For example, 
22334 \begin_inset Quotes eld
22335 \end_inset
22336
22337
22338 \begin_inset Flex Code
22339 status collapsed
22340
22341 \begin_layout Plain Layout
22342 class=`myfloat' onclick=`\SpecialChar ldots
22343 '
22344 \end_layout
22345
22346 \end_inset
22347
22348
22349 \begin_inset Quotes erd
22350 \end_inset
22351
22352 .
22353  By default, \SpecialChar LyX
22354  will output 
22355 \begin_inset Quotes eld
22356 \end_inset
22357
22358
22359 \begin_inset Flex Code
22360 status collapsed
22361
22362 \begin_layout Plain Layout
22363 class=`float float-floattype'
22364 \end_layout
22365
22366 \end_inset
22367
22368
22369 \begin_inset Quotes erd
22370 \end_inset
22371
22372 , where 
22373 \begin_inset Flex Code
22374 status collapsed
22375
22376 \begin_layout Plain Layout
22377 floattype
22378 \end_layout
22379
22380 \end_inset
22381
22382  is \SpecialChar LyX
22383 's name for this type of float, as determined by the float declaration
22384  (see 
22385 \begin_inset CommandInset ref
22386 LatexCommand ref
22387 reference "sub:Floats"
22388
22389 \end_inset
22390
22391 ), though made lowercase and with non-alphanumeric characters converted
22392  to underscores, for example: float-table.
22393 \end_layout
22394
22395 \begin_layout Description
22396 \begin_inset Flex Code
22397 status collapsed
22398
22399 \begin_layout Plain Layout
22400 HTMLStyle
22401 \end_layout
22402
22403 \end_inset
22404
22405  CSS style information to be included when this float is used.
22406  Note that this will automatically be wrapped in a layout-generated 
22407 \begin_inset Flex Code
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 <style>
22412 \end_layout
22413
22414 \end_inset
22415
22416  block, so only the CSS itself need be included.
22417 \end_layout
22418
22419 \begin_layout Description
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 HTMLTag
22425 \end_layout
22426
22427 \end_inset
22428
22429  [
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 string
22435 \end_layout
22436
22437 \end_inset
22438
22439 ] The tag to be used for this float, replacing 
22440 \begin_inset Quotes eld
22441 \end_inset
22442
22443
22444 \begin_inset Flex Code
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 tag
22449 \end_layout
22450
22451 \end_inset
22452
22453
22454 \begin_inset Quotes erd
22455 \end_inset
22456
22457  in the example above.
22458  The default is 
22459 \begin_inset Flex Code
22460 status collapsed
22461
22462 \begin_layout Plain Layout
22463 div
22464 \end_layout
22465
22466 \end_inset
22467
22468  and will rarely need changing.
22469 \end_layout
22470
22471 \begin_layout Subsection
22472 Bibliography formatting
22473 \end_layout
22474
22475 \begin_layout Standard
22476 The bibliography can be formatted using 
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 CiteFormat
22482 \end_layout
22483
22484 \end_inset
22485
22486  blocks.
22487  See 
22488 \begin_inset CommandInset ref
22489 LatexCommand ref
22490 reference "sub:Citation-format-description"
22491
22492 \end_inset
22493
22494  for the details.
22495 \end_layout
22496
22497 \begin_layout Subsection
22498 \SpecialChar LyX
22499 -generated CSS
22500 \end_layout
22501
22502 \begin_layout Standard
22503 We have several times mentioned that \SpecialChar LyX
22504  will generate default CSS style rules
22505  for both insets and paragraph styles, based upon the other layout information
22506  that is provided.
22507  In this section, we shall say a word about which layout information \SpecialChar LyX
22508  uses
22509  and how.
22510 \end_layout
22511
22512 \begin_layout Standard
22513 At present, \SpecialChar LyX
22514  auto-generates CSS only for font information, making use of
22515  the 
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 Family
22521 \end_layout
22522
22523 \end_inset
22524
22525
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 Series
22531 \end_layout
22532
22533 \end_inset
22534
22535
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 Shape
22541 \end_layout
22542
22543 \end_inset
22544
22545 , and 
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 Size
22551 \end_layout
22552
22553 \end_inset
22554
22555  specified in the 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 Font
22561 \end_layout
22562
22563 \end_inset
22564
22565  declaration (see 
22566 \begin_inset CommandInset ref
22567 LatexCommand ref
22568 reference "sub:Font-description"
22569
22570 \end_inset
22571
22572 ).
22573  The translation is mostly straightforward and obvious.
22574  For example, 
22575 \begin_inset Quotes eld
22576 \end_inset
22577
22578
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 Family Sans
22584 \end_layout
22585
22586 \end_inset
22587
22588
22589 \begin_inset Quotes erd
22590 \end_inset
22591
22592  becomes 
22593 \begin_inset Quotes eld
22594 \end_inset
22595
22596
22597 \begin_inset Flex Code
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 font-family: sans-serif;
22602 \end_layout
22603
22604 \end_inset
22605
22606
22607 \begin_inset Quotes erd
22608 \end_inset
22609
22610 .
22611  The correspondence of \SpecialChar LyX
22612  sizes and CSS sizes is a little less obvious but
22613  nonetheless intuitive.
22614  See the 
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 getSizeCSS()
22620 \end_layout
22621
22622 \end_inset
22623
22624  function in 
22625 \begin_inset Flex URL
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629
22630 src/FontInfo.cpp
22631 \end_layout
22632
22633 \end_inset
22634
22635  for the details.
22636 \end_layout
22637
22638 \begin_layout Chapter
22639 Including External Material
22640 \begin_inset CommandInset label
22641 LatexCommand label
22642 name "chap:Including-External-Material"
22643
22644 \end_inset
22645
22646
22647 \end_layout
22648
22649 \begin_layout Standard
22650 \begin_inset Box Shadowbox
22651 position "t"
22652 hor_pos "c"
22653 has_inner_box 1
22654 inner_pos "t"
22655 use_parbox 0
22656 use_makebox 0
22657 width "100col%"
22658 special "none"
22659 height "1in"
22660 height_special "totalheight"
22661 thickness "0.4pt"
22662 separation "3pt"
22663 shadowsize "4pt"
22664 framecolor "black"
22665 backgroundcolor "none"
22666 status open
22667
22668 \begin_layout Plain Layout
22669 WARNING: This portion of the documentation has not been updated for some
22670  time.
22671  We certainly hope that it is still accurate, but there are no guarantees.
22672 \end_layout
22673
22674 \end_inset
22675
22676
22677 \end_layout
22678
22679 \begin_layout Standard
22680 The use of material from sources external to \SpecialChar LyX
22681  is covered in detail in the
22682  
22683 \emph on
22684 Embedded Objects
22685 \emph default
22686  manual.
22687  This part of the manual covers what needs to happen behind the scenes for
22688  new sorts of material to be included.
22689 \end_layout
22690
22691 \begin_layout Section
22692 How does it work?
22693 \end_layout
22694
22695 \begin_layout Standard
22696 The external material feature is based on the concept of a 
22697 \emph on
22698 template
22699 \emph default
22700 .
22701  A template is a specification of how \SpecialChar LyX
22702  should interface with a certain kind
22703  of material.
22704  As bundled, \SpecialChar LyX
22705  comes with predefined templates for Xfig figures, various
22706  raster format images, chess diagrams, and LilyPond music notation.
22707  You can check the actual list by using the menu 
22708 \begin_inset Flex MenuItem
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 Insert\SpecialChar menuseparator
22713 File\SpecialChar menuseparator
22714 External Material
22715 \end_layout
22716
22717 \end_inset
22718
22719 .
22720  Furthermore, it is possible to roll your own template to support a specific
22721  kind of material.
22722  Later we'll describe in more detail what is involved, and hopefully you
22723  will submit all the templates you create so we can include them in a later
22724  \SpecialChar LyX
22725  version.
22726 \end_layout
22727
22728 \begin_layout Standard
22729 Another basic idea of the external material feature is to distinguish between
22730  the original file that serves as a base for final material and the produced
22731  file that is included in your exported or printed document.
22732  For example, consider the case of a figure produced with 
22733 \begin_inset Flex Code
22734 status collapsed
22735
22736 \begin_layout Plain Layout
22737 Xfig
22738 \end_layout
22739
22740 \end_inset
22741
22742 .
22743  The Xfig application itself works on an original file with the 
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 .fig
22749 \end_layout
22750
22751 \end_inset
22752
22753  extension.
22754  Within Xfig, you create and change your figure, and when you are done,
22755  you save the 
22756 \begin_inset Flex Code
22757 status collapsed
22758
22759 \begin_layout Plain Layout
22760 fig
22761 \end_layout
22762
22763 \end_inset
22764
22765 -file.
22766  When you want to include the figure in your document, you invoke 
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 transfig
22772 \end_layout
22773
22774 \end_inset
22775
22776  in order to create a PostScript file that can readily be included in your
22777  \SpecialChar LaTeX
22778  file.
22779  In this case, the 
22780 \begin_inset Flex Code
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784 .fig
22785 \end_layout
22786
22787 \end_inset
22788
22789  file is the original file, and the PostScript file is the produced file.
22790 \end_layout
22791
22792 \begin_layout Standard
22793 This distinction is important in order to allow updating of the material
22794  while you are in the process of writing the document.
22795  Furthermore, it provides us with the flexibility that is needed to support
22796  multiple export formats.
22797  For instance, in the case of a plain text file, it is not exactly an award-winn
22798 ing idea to include the figure as raw PostScript.
22799  Instead, you would either prefer to just include a reference to the figure
22800  or try to invoke some graphics to ASCII converter to make the final result
22801  look similar to the real graphics.
22802  The external material management allows you to do this, because it is parametri
22803 zed on the different export formats that \SpecialChar LyX
22804  supports.
22805 \end_layout
22806
22807 \begin_layout Standard
22808 Besides supporting the production of different products according to the
22809  exported format, it supports tight integration with editing and viewing
22810  applications.
22811  In the case of an Xfig figure, you are able to invoke Xfig on the original
22812  file with a single click from within the external material dialog in \SpecialChar LyX
22813 ,
22814  and also preview the produced PostScript file with Ghostview with another
22815  click.
22816  No more fiddling around with the command line and/or file browsers to locate
22817  and manipulate the original or produced files.
22818  In this way, you are finally able to take full advantage of the many different
22819  applications that are relevant to use when you write your documents, and
22820  ultimately be more productive.
22821 \end_layout
22822
22823 \begin_layout Section
22824 The external template configuration file
22825 \end_layout
22826
22827 \begin_layout Standard
22828 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22829 .
22830  However, be aware that doing this in an careless manner most probably 
22831 \emph on
22832 will
22833 \emph default
22834  introduce an easily exploitable security hole.
22835  So before you do this, please read the discussion about security in 
22836 \begin_inset CommandInset ref
22837 LatexCommand ref
22838 reference "sec:Security-discussion"
22839
22840 \end_inset
22841
22842 .
22843 \end_layout
22844
22845 \begin_layout Standard
22846 Having said that, we encourage you to submit any interesting templates that
22847  you create.
22848  
22849 \end_layout
22850
22851 \begin_layout Standard
22852 The external templates are defined in the 
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 \SpecialChar LyX
22858 Dir/lib/external_templates
22859 \end_layout
22860
22861 \end_inset
22862
22863  file.
22864  You can place your own version in 
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 UserDir/external_templates
22870 \end_layout
22871
22872 \end_inset
22873
22874 .
22875 \end_layout
22876
22877 \begin_layout Standard
22878 A typical template looks like this:
22879 \end_layout
22880
22881 \begin_layout LyX-Code
22882 Template XFig
22883 \end_layout
22884
22885 \begin_layout LyX-Code
22886 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22887 \end_layout
22888
22889 \begin_layout LyX-Code
22890 HelpText
22891 \end_layout
22892
22893 \begin_layout LyX-Code
22894 An XFig figure.
22895 \end_layout
22896
22897 \begin_layout LyX-Code
22898 HelpTextEnd
22899 \end_layout
22900
22901 \begin_layout LyX-Code
22902 InputFormat fig
22903 \end_layout
22904
22905 \begin_layout LyX-Code
22906 FileFilter "*.fig"
22907 \end_layout
22908
22909 \begin_layout LyX-Code
22910 AutomaticProduction true
22911 \end_layout
22912
22913 \begin_layout LyX-Code
22914 Transform Rotate
22915 \end_layout
22916
22917 \begin_layout LyX-Code
22918 Transform Resize
22919 \end_layout
22920
22921 \begin_layout LyX-Code
22922 Format \SpecialChar LaTeX
22923
22924 \end_layout
22925
22926 \begin_layout LyX-Code
22927 TransformCommand Rotate RotationLatexCommand
22928 \end_layout
22929
22930 \begin_layout LyX-Code
22931 TransformCommand Resize ResizeLatexCommand
22932 \end_layout
22933
22934 \begin_layout LyX-Code
22935 Product "$$RotateFront$$ResizeFront
22936 \end_layout
22937
22938 \begin_layout LyX-Code
22939          
22940 \backslash
22941
22942 \backslash
22943 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22944 \end_layout
22945
22946 \begin_layout LyX-Code
22947          $$ResizeBack$$RotateBack"
22948 \end_layout
22949
22950 \begin_layout LyX-Code
22951 UpdateFormat pstex
22952 \end_layout
22953
22954 \begin_layout LyX-Code
22955 UpdateResult "$$AbsPath$$Basename.pstex_t"
22956 \end_layout
22957
22958 \begin_layout LyX-Code
22959 Requirement "graphicx"
22960 \end_layout
22961
22962 \begin_layout LyX-Code
22963 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22964 \end_layout
22965
22966 \begin_layout LyX-Code
22967 ReferencedFile latex "$$AbsPath$$Basename.eps"
22968 \end_layout
22969
22970 \begin_layout LyX-Code
22971 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22972 \end_layout
22973
22974 \begin_layout LyX-Code
22975 FormatEnd
22976 \end_layout
22977
22978 \begin_layout LyX-Code
22979 Format PDF\SpecialChar LaTeX
22980
22981 \end_layout
22982
22983 \begin_layout LyX-Code
22984 TransformCommand Rotate RotationLatexCommand
22985 \end_layout
22986
22987 \begin_layout LyX-Code
22988 TransformCommand Resize ResizeLatexCommand
22989 \end_layout
22990
22991 \begin_layout LyX-Code
22992 Product "$$RotateFront$$ResizeFront
22993 \end_layout
22994
22995 \begin_layout LyX-Code
22996          
22997 \backslash
22998
22999 \backslash
23000 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23001 \end_layout
23002
23003 \begin_layout LyX-Code
23004          $$ResizeBack$$RotateBack"
23005 \end_layout
23006
23007 \begin_layout LyX-Code
23008 UpdateFormat pdftex
23009 \end_layout
23010
23011 \begin_layout LyX-Code
23012 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23013 \end_layout
23014
23015 \begin_layout LyX-Code
23016 Requirement "graphicx"
23017 \end_layout
23018
23019 \begin_layout LyX-Code
23020 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23021 \end_layout
23022
23023 \begin_layout LyX-Code
23024 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23025 \end_layout
23026
23027 \begin_layout LyX-Code
23028 FormatEnd
23029 \end_layout
23030
23031 \begin_layout LyX-Code
23032 Format Ascii
23033 \end_layout
23034
23035 \begin_layout LyX-Code
23036 Product "$$Contents(
23037 \backslash
23038 "$$AbsPath$$Basename.asc
23039 \backslash
23040 ")"
23041 \end_layout
23042
23043 \begin_layout LyX-Code
23044 UpdateFormat asciixfig
23045 \end_layout
23046
23047 \begin_layout LyX-Code
23048 UpdateResult "$$AbsPath$$Basename.asc"
23049 \end_layout
23050
23051 \begin_layout LyX-Code
23052 FormatEnd
23053 \end_layout
23054
23055 \begin_layout LyX-Code
23056 Format DocBook
23057 \end_layout
23058
23059 \begin_layout LyX-Code
23060 Product "<graphic fileref=
23061 \backslash
23062 "$$AbsOrRelPathMaster$$Basename.eps
23063 \backslash
23064 ">
23065 \end_layout
23066
23067 \begin_layout LyX-Code
23068          </graphic>"
23069 \end_layout
23070
23071 \begin_layout LyX-Code
23072 UpdateFormat eps
23073 \end_layout
23074
23075 \begin_layout LyX-Code
23076 UpdateResult "$$AbsPath$$Basename.eps"
23077 \end_layout
23078
23079 \begin_layout LyX-Code
23080 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 FormatEnd
23089 \end_layout
23090
23091 \begin_layout LyX-Code
23092 Product "[XFig: $$FName]"
23093 \end_layout
23094
23095 \begin_layout LyX-Code
23096 FormatEnd
23097 \end_layout
23098
23099 \begin_layout LyX-Code
23100 TemplateEnd
23101 \end_layout
23102
23103 \begin_layout Standard
23104 As you can see, the template is enclosed in 
23105 \begin_inset Flex Code
23106 status collapsed
23107
23108 \begin_layout Plain Layout
23109 Template
23110 \end_layout
23111
23112 \end_inset
23113
23114  \SpecialChar ldots
23115  
23116 \begin_inset Flex Code
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120 TemplateEnd
23121 \end_layout
23122
23123 \end_inset
23124
23125 .
23126  It contains a header specifying some general settings and, for each supported
23127  primary document file format, a section 
23128 \begin_inset Flex Code
23129 status collapsed
23130
23131 \begin_layout Plain Layout
23132 Format
23133 \end_layout
23134
23135 \end_inset
23136
23137  \SpecialChar ldots
23138  
23139 \begin_inset Flex Code
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 FormatEnd
23144 \end_layout
23145
23146 \end_inset
23147
23148 .
23149 \end_layout
23150
23151 \begin_layout Subsection
23152 The template header
23153 \end_layout
23154
23155 \begin_layout Description
23156 \begin_inset Flex Code
23157 status collapsed
23158
23159 \begin_layout Plain Layout
23160 AutomaticProduction
23161 \begin_inset space ~
23162 \end_inset
23163
23164 true|false
23165 \end_layout
23166
23167 \end_inset
23168
23169  Whether the file represented by the template must be generated by \SpecialChar LyX
23170 .
23171  This command must occur exactly once.
23172 \end_layout
23173
23174 \begin_layout Description
23175 \begin_inset Flex Code
23176 status collapsed
23177
23178 \begin_layout Plain Layout
23179 FileFilter
23180 \begin_inset space ~
23181 \end_inset
23182
23183 <pattern>
23184 \end_layout
23185
23186 \end_inset
23187
23188  A glob pattern that is used in the file dialog to filter out the desired
23189  files.
23190  If there is more than one possible file extension (e.
23191 \begin_inset space \thinspace{}
23192 \end_inset
23193
23194 g.
23195 \begin_inset space \space{}
23196 \end_inset
23197
23198 tgif has 
23199 \begin_inset Flex Code
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203 .obj
23204 \end_layout
23205
23206 \end_inset
23207
23208  and 
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 .tgo
23214 \end_layout
23215
23216 \end_inset
23217
23218 ), use something like 
23219 \begin_inset Flex Code
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223 "*.{obj,tgo}"
23224 \end_layout
23225
23226 \end_inset
23227
23228 .
23229  This command must occur exactly once.
23230 \end_layout
23231
23232 \begin_layout Description
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237 GuiName
23238 \begin_inset space ~
23239 \end_inset
23240
23241 <guiname>
23242 \end_layout
23243
23244 \end_inset
23245
23246  The text that is displayed on the button.
23247  This command must occur exactly once.
23248 \end_layout
23249
23250 \begin_layout Description
23251 \begin_inset Flex Code
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255 HelpText
23256 \begin_inset space ~
23257 \end_inset
23258
23259 <text>
23260 \begin_inset space ~
23261 \end_inset
23262
23263 HelpTextEnd
23264 \end_layout
23265
23266 \end_inset
23267
23268  The help text that is used in the External dialog.
23269  Provide enough information to explain to the user just what the template
23270  can provide him with.
23271  This command must occur exactly once.
23272 \end_layout
23273
23274 \begin_layout Description
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 InputFormat
23280 \begin_inset space ~
23281 \end_inset
23282
23283 <format>
23284 \end_layout
23285
23286 \end_inset
23287
23288  The file format of the original file.
23289  This must be the name of a format that is known to \SpecialChar LyX
23290  (see 
23291 \begin_inset CommandInset ref
23292 LatexCommand ref
23293 reference "sec:Formats"
23294
23295 \end_inset
23296
23297 ).
23298  Use 
23299 \begin_inset Quotes eld
23300 \end_inset
23301
23302
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 *
23308 \end_layout
23309
23310 \end_inset
23311
23312
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316  if the template can handle original files of more than one format.
23317  \SpecialChar LyX
23318  will attempt to interrogate the file itself in order to deduce its format
23319  in this case.
23320  This command must occur exactly once.
23321 \end_layout
23322
23323 \begin_layout Description
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328 Template
23329 \begin_inset space ~
23330 \end_inset
23331
23332 <id>
23333 \end_layout
23334
23335 \end_inset
23336
23337  A unique name for the template.
23338  It must not contain substitution macros (see below).
23339 \end_layout
23340
23341 \begin_layout Description
23342 \begin_inset Flex Code
23343 status collapsed
23344
23345 \begin_layout Plain Layout
23346 Transform
23347 \begin_inset space ~
23348 \end_inset
23349
23350 Rotate|Resize|Clip|Extra
23351 \end_layout
23352
23353 \end_inset
23354
23355  This command specifies which transformations are supported by this template.
23356  It may occur zero or more times.
23357  This command enables the corresponding tabs in the external dialog.
23358  Each 
23359 \begin_inset Flex Code
23360 status collapsed
23361
23362 \begin_layout Plain Layout
23363 Transform
23364 \end_layout
23365
23366 \end_inset
23367
23368  command must have either a corresponding 
23369 \begin_inset Flex Code
23370 status collapsed
23371
23372 \begin_layout Plain Layout
23373 TransformCommand
23374 \end_layout
23375
23376 \end_inset
23377
23378  or a 
23379 \begin_inset Flex Code
23380 status collapsed
23381
23382 \begin_layout Plain Layout
23383 TransformOption
23384 \end_layout
23385
23386 \end_inset
23387
23388  command in the 
23389 \begin_inset Flex Code
23390 status collapsed
23391
23392 \begin_layout Plain Layout
23393 Format
23394 \end_layout
23395
23396 \end_inset
23397
23398  section.
23399  Otherwise the transformation will not be supported by that format.
23400 \end_layout
23401
23402 \begin_layout Subsection
23403 The Format section
23404 \end_layout
23405
23406 \begin_layout Description
23407 \begin_inset Flex Code
23408 status collapsed
23409
23410 \begin_layout Plain Layout
23411 Format
23412 \begin_inset space ~
23413 \end_inset
23414
23415 \SpecialChar LaTeX
23416 |PDF\SpecialChar LaTeX
23417 |PlainText|DocBook
23418 \end_layout
23419
23420 \end_inset
23421
23422  The primary document file format that this format definition is for.
23423  Not every template has a sensible representation in all document file formats.
23424  Please define nevertheless a 
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 Format
23430 \end_layout
23431
23432 \end_inset
23433
23434  section for all templates.
23435  Use a dummy text when no representation is available.
23436  Then you can at least see a reference to the external material in the exported
23437  document.
23438 \end_layout
23439
23440 \begin_layout Description
23441 \begin_inset Flex Code
23442 status collapsed
23443
23444 \begin_layout Plain Layout
23445 Option
23446 \begin_inset space ~
23447 \end_inset
23448
23449 <name>
23450 \begin_inset space ~
23451 \end_inset
23452
23453 <value>
23454 \end_layout
23455
23456 \end_inset
23457
23458  This command defines an additional macro 
23459 \begin_inset Flex Code
23460 status collapsed
23461
23462 \begin_layout Plain Layout
23463 $$<name>
23464 \end_layout
23465
23466 \end_inset
23467
23468  for substitution in 
23469 \begin_inset Flex Code
23470 status collapsed
23471
23472 \begin_layout Plain Layout
23473 Product
23474 \end_layout
23475
23476 \end_inset
23477
23478 .
23479  
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484 <value>
23485 \end_layout
23486
23487 \end_inset
23488
23489  itself may contain substitution macros.
23490  The advantage over using 
23491 \begin_inset Flex Code
23492 status collapsed
23493
23494 \begin_layout Plain Layout
23495 <value>
23496 \end_layout
23497
23498 \end_inset
23499
23500  directly in 
23501 \begin_inset Flex Code
23502 status collapsed
23503
23504 \begin_layout Plain Layout
23505 Product
23506 \end_layout
23507
23508 \end_inset
23509
23510  is that the substituted value of 
23511 \begin_inset Flex Code
23512 status collapsed
23513
23514 \begin_layout Plain Layout
23515 $$<name>
23516 \end_layout
23517
23518 \end_inset
23519
23520  is sanitized so that it is a valid optional argument in the document format.
23521  This command may occur zero or more times.
23522 \end_layout
23523
23524 \begin_layout Description
23525 \begin_inset Flex Code
23526 status collapsed
23527
23528 \begin_layout Plain Layout
23529 Product
23530 \begin_inset space ~
23531 \end_inset
23532
23533 <text>
23534 \end_layout
23535
23536 \end_inset
23537
23538  The text that is inserted in the exported document.
23539  This is actually the most important command and can be quite complex.
23540  This command must occur exactly once.
23541 \end_layout
23542
23543 \begin_layout Description
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548 Preamble
23549 \begin_inset space ~
23550 \end_inset
23551
23552 <name>
23553 \end_layout
23554
23555 \end_inset
23556
23557  This command specifies a preamble snippet that will be included in the
23558  \SpecialChar LaTeX
23559  preamble.
23560  It has to be defined using 
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 PreambleDef
23566 \end_layout
23567
23568 \end_inset
23569
23570  \SpecialChar ldots
23571  
23572 \begin_inset Flex Code
23573 status collapsed
23574
23575 \begin_layout Plain Layout
23576 PreambleDefEnd
23577 \end_layout
23578
23579 \end_inset
23580
23581 .
23582  This command may occur zero or more times.
23583 \end_layout
23584
23585 \begin_layout Description
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 ReferencedFile
23591 \begin_inset space ~
23592 \end_inset
23593
23594 <format>
23595 \begin_inset space ~
23596 \end_inset
23597
23598 <filename>
23599 \end_layout
23600
23601 \end_inset
23602
23603  This command denotes files that are created by the conversion process and
23604  are needed for a particular export format.
23605  If the filename is relative, it is interpreted relative to the master document.
23606  This command may be given zero or more times.
23607 \end_layout
23608
23609 \begin_layout Description
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 Requirement
23615 \begin_inset space ~
23616 \end_inset
23617
23618 <package>
23619 \end_layout
23620
23621 \end_inset
23622
23623  The name of a required \SpecialChar LaTeX
23624  package.
23625  The package is included via 
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630
23631 \backslash
23632 usepackage{}
23633 \end_layout
23634
23635 \end_inset
23636
23637  in the \SpecialChar LaTeX
23638  preamble.
23639  This command may occur zero or more times.
23640 \end_layout
23641
23642 \begin_layout Description
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647 TransformCommand
23648 \begin_inset space ~
23649 \end_inset
23650
23651 Rotate
23652 \begin_inset space ~
23653 \end_inset
23654
23655 RotationLatexCommand
23656 \end_layout
23657
23658 \end_inset
23659
23660  This command specifies that the built in \SpecialChar LaTeX
23661  command should be used for rotation.
23662  This command may occur once or not at all.
23663 \end_layout
23664
23665 \begin_layout Description
23666 \begin_inset Flex Code
23667 status collapsed
23668
23669 \begin_layout Plain Layout
23670 TransformCommand
23671 \begin_inset space ~
23672 \end_inset
23673
23674 Resize
23675 \begin_inset space ~
23676 \end_inset
23677
23678 ResizeLatexCommand
23679 \end_layout
23680
23681 \end_inset
23682
23683  This command specifies that the built in \SpecialChar LaTeX
23684  command should be used for resizing.
23685  This command may occur once or not at all.
23686 \end_layout
23687
23688 \begin_layout Description
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 TransformOption
23694 \begin_inset space ~
23695 \end_inset
23696
23697 Rotate
23698 \begin_inset space ~
23699 \end_inset
23700
23701 RotationLatexOption
23702 \end_layout
23703
23704 \end_inset
23705
23706  This command specifies that rotation is done via an optional argument.
23707  This command may occur once or not at all.
23708 \end_layout
23709
23710 \begin_layout Description
23711 \begin_inset Flex Code
23712 status collapsed
23713
23714 \begin_layout Plain Layout
23715 TransformOption
23716 \begin_inset space ~
23717 \end_inset
23718
23719 Resize
23720 \begin_inset space ~
23721 \end_inset
23722
23723 ResizeLatexOption
23724 \end_layout
23725
23726 \end_inset
23727
23728  This command specifies that resizing is done via an optional argument.
23729  This command may occur once or not at all.
23730 \end_layout
23731
23732 \begin_layout Description
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 TransformOption
23738 \begin_inset space ~
23739 \end_inset
23740
23741 Clip
23742 \begin_inset space ~
23743 \end_inset
23744
23745 ClipLatexOption
23746 \end_layout
23747
23748 \end_inset
23749
23750  This command specifies that clipping is done via an optional argument.
23751  This command may occur once or not at all.
23752 \end_layout
23753
23754 \begin_layout Description
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 TransformOption
23760 \begin_inset space ~
23761 \end_inset
23762
23763 Extra
23764 \begin_inset space ~
23765 \end_inset
23766
23767 ExtraLatexOption
23768 \end_layout
23769
23770 \end_inset
23771
23772  This command specifies that an extra optional argument is used.
23773  This command may occur once or not at all.
23774 \end_layout
23775
23776 \begin_layout Description
23777 \begin_inset Flex Code
23778 status collapsed
23779
23780 \begin_layout Plain Layout
23781 UpdateFormat
23782 \begin_inset space ~
23783 \end_inset
23784
23785 <format>
23786 \end_layout
23787
23788 \end_inset
23789
23790  The file format of the converted file.
23791  This must be the name of a format that is known to \SpecialChar LyX
23792  (see the 
23793 \begin_inset Flex MenuItem
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797 Tools\SpecialChar menuseparator
23798 Preferences\SpecialChar menuseparator
23799 File Handling\SpecialChar menuseparator
23800 File Format
23801 \end_layout
23802
23803 \end_inset
23804
23805  dialog).
23806  This command must occur exactly once.
23807  If the resulting file format is PDF, you need to specify the format 
23808 \begin_inset Flex Code
23809 status collapsed
23810
23811 \begin_layout Plain Layout
23812 pdf6
23813 \end_layout
23814
23815 \end_inset
23816
23817 .
23818  This is the PDF format used for including graphics.
23819  The other defined PDF formats are for document export.
23820 \end_layout
23821
23822 \begin_layout Description
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 UpdateResult
23828 \begin_inset space ~
23829 \end_inset
23830
23831 <filename>
23832 \end_layout
23833
23834 \end_inset
23835
23836  The file name of the converted file.
23837  The file name must be absolute.
23838  This command must occur exactly once.
23839 \end_layout
23840
23841 \begin_layout Subsection
23842 Preamble definitions
23843 \end_layout
23844
23845 \begin_layout Standard
23846 The external template configuration file may contain additional preamble
23847  definitions enclosed by 
23848 \begin_inset Flex Code
23849 status collapsed
23850
23851 \begin_layout Plain Layout
23852 PreambleDef
23853 \end_layout
23854
23855 \end_inset
23856
23857  \SpecialChar ldots
23858  
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863 PreambleDefEnd
23864 \end_layout
23865
23866 \end_inset
23867
23868 .
23869  They can be used by the templates in the 
23870 \begin_inset Flex Code
23871 status collapsed
23872
23873 \begin_layout Plain Layout
23874 Format
23875 \end_layout
23876
23877 \end_inset
23878
23879  section.
23880 \end_layout
23881
23882 \begin_layout Section
23883 The substitution mechanism
23884 \end_layout
23885
23886 \begin_layout Standard
23887 When the external material facility invokes an external program, it is done
23888  on the basis of a command defined in the template configuration file.
23889  These commands can contain various macros that are expanded before execution.
23890  Execution always take place in the directory of the containing document.
23891 \end_layout
23892
23893 \begin_layout Standard
23894 Also, whenever external material is to be displayed, the name will be produced
23895  by the substitution mechanism, and most other commands in the template
23896  definition support substitution as well.
23897 \end_layout
23898
23899 \begin_layout Standard
23900 The available macros are the following:
23901 \end_layout
23902
23903 \begin_layout Description
23904 \begin_inset Flex Code
23905 status collapsed
23906
23907 \begin_layout Plain Layout
23908 $$AbsOrRelPathMaster
23909 \end_layout
23910
23911 \end_inset
23912
23913  The file path, absolute or relative to the master \SpecialChar LyX
23914  document.
23915 \end_layout
23916
23917 \begin_layout Description
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 $$AbsOrRelPathParent
23923 \end_layout
23924
23925 \end_inset
23926
23927  The file path, absolute or relative to the \SpecialChar LyX
23928  document.
23929 \end_layout
23930
23931 \begin_layout Description
23932 \begin_inset Flex Code
23933 status collapsed
23934
23935 \begin_layout Plain Layout
23936 $$AbsPath
23937 \end_layout
23938
23939 \end_inset
23940
23941  The absolute file path.
23942 \end_layout
23943
23944 \begin_layout Description
23945 \begin_inset Flex Code
23946 status collapsed
23947
23948 \begin_layout Plain Layout
23949 $$Basename
23950 \end_layout
23951
23952 \end_inset
23953
23954  The filename without path and without the extension.
23955 \end_layout
23956
23957 \begin_layout Description
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 $$Contents(
23963 \begin_inset Quotes eld
23964 \end_inset
23965
23966 filename.ext
23967 \begin_inset Quotes erd
23968 \end_inset
23969
23970 )
23971 \end_layout
23972
23973 \end_inset
23974
23975  This macro will expand to the contents of the file with the name 
23976 \begin_inset Flex Code
23977 status collapsed
23978
23979 \begin_layout Plain Layout
23980 filename.ext
23981 \end_layout
23982
23983 \end_inset
23984
23985 .
23986 \end_layout
23987
23988 \begin_layout Description
23989 \begin_inset Flex Code
23990 status collapsed
23991
23992 \begin_layout Plain Layout
23993 $$Extension
23994 \end_layout
23995
23996 \end_inset
23997
23998  The file extension (including the dot).
23999 \end_layout
24000
24001 \begin_layout Description
24002 \begin_inset Flex Code
24003 status collapsed
24004
24005 \begin_layout Plain Layout
24006 $$FName
24007 \end_layout
24008
24009 \end_inset
24010
24011  The filename of the file specified in the external material dialog.
24012  This is either an absolute name, or it is relative to the \SpecialChar LyX
24013  document.
24014 \end_layout
24015
24016 \begin_layout Description
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021 $$FPath
24022 \end_layout
24023
24024 \end_inset
24025
24026  The path part of 
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 $$FName
24032 \end_layout
24033
24034 \end_inset
24035
24036  (absolute name or relative to the \SpecialChar LyX
24037  document).
24038 \end_layout
24039
24040 \begin_layout Description
24041 \begin_inset Flex Code
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045 $$RelPathMaster
24046 \end_layout
24047
24048 \end_inset
24049
24050  The file path, relative to the master \SpecialChar LyX
24051  document.
24052 \end_layout
24053
24054 \begin_layout Description
24055 \begin_inset Flex Code
24056 status collapsed
24057
24058 \begin_layout Plain Layout
24059 $$RelPathParent
24060 \end_layout
24061
24062 \end_inset
24063
24064  The file path, relative to the \SpecialChar LyX
24065  document.
24066 \end_layout
24067
24068 \begin_layout Description
24069 \begin_inset Flex Code
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 $$Sysdir
24074 \end_layout
24075
24076 \end_inset
24077
24078  This macro will expand to the absolute path of the system directory.
24079  This is typically used to point to the various helper scripts that are
24080  bundled with \SpecialChar LyX
24081 .
24082 \end_layout
24083
24084 \begin_layout Description
24085 \begin_inset Flex Code
24086 status collapsed
24087
24088 \begin_layout Plain Layout
24089 $$Tempname
24090 \end_layout
24091
24092 \end_inset
24093
24094  A name and full path to a temporary file which will be automatically deleted
24095  whenever the containing document is closed, or the external material insertion
24096  deleted.
24097 \end_layout
24098
24099 \begin_layout Standard
24100 All path macros contain a trailing directory separator, so you can construct
24101  e.
24102 \begin_inset space \thinspace{}
24103 \end_inset
24104
24105 g.
24106 \begin_inset space \space{}
24107 \end_inset
24108
24109 the absolute filename with 
24110 \begin_inset Flex Code
24111 status collapsed
24112
24113 \begin_layout Plain Layout
24114 $$AbsPath$$Basename$$Extension
24115 \end_layout
24116
24117 \end_inset
24118
24119 .
24120 \end_layout
24121
24122 \begin_layout Standard
24123 The macros above are substituted in all commands unless otherwise noted.
24124  The command 
24125 \begin_inset Flex Code
24126 status collapsed
24127
24128 \begin_layout Plain Layout
24129 Product
24130 \end_layout
24131
24132 \end_inset
24133
24134  supports additionally the following substitutions if they are enabled by
24135  the 
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140 Transform
24141 \end_layout
24142
24143 \end_inset
24144
24145  and 
24146 \begin_inset Flex Code
24147 status collapsed
24148
24149 \begin_layout Plain Layout
24150 TransformCommand
24151 \end_layout
24152
24153 \end_inset
24154
24155  commands:
24156 \end_layout
24157
24158 \begin_layout Description
24159 \begin_inset Flex Code
24160 status collapsed
24161
24162 \begin_layout Plain Layout
24163 $$ResizeFront
24164 \end_layout
24165
24166 \end_inset
24167
24168  The front part of the resize command.
24169 \end_layout
24170
24171 \begin_layout Description
24172 \begin_inset Flex Code
24173 status collapsed
24174
24175 \begin_layout Plain Layout
24176 $$ResizeBack
24177 \end_layout
24178
24179 \end_inset
24180
24181  The back part of the resize command.
24182 \end_layout
24183
24184 \begin_layout Description
24185 \begin_inset Flex Code
24186 status collapsed
24187
24188 \begin_layout Plain Layout
24189 $$RotateFront
24190 \end_layout
24191
24192 \end_inset
24193
24194  The front part of the rotation command.
24195 \end_layout
24196
24197 \begin_layout Description
24198 \begin_inset Flex Code
24199 status collapsed
24200
24201 \begin_layout Plain Layout
24202 $$RotateBack
24203 \end_layout
24204
24205 \end_inset
24206
24207  The back part of the rotation command.
24208 \end_layout
24209
24210 \begin_layout Standard
24211 The value string of the 
24212 \begin_inset Flex Code
24213 status collapsed
24214
24215 \begin_layout Plain Layout
24216 Option
24217 \end_layout
24218
24219 \end_inset
24220
24221  command supports additionally the following substitutions if they are enabled
24222  by the 
24223 \begin_inset Flex Code
24224 status collapsed
24225
24226 \begin_layout Plain Layout
24227 Transform
24228 \end_layout
24229
24230 \end_inset
24231
24232  and 
24233 \begin_inset Flex Code
24234 status collapsed
24235
24236 \begin_layout Plain Layout
24237 TransformOption
24238 \end_layout
24239
24240 \end_inset
24241
24242  commands:
24243 \end_layout
24244
24245 \begin_layout Description
24246 \begin_inset Flex Code
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250 $$Clip
24251 \end_layout
24252
24253 \end_inset
24254
24255  The clip option.
24256 \end_layout
24257
24258 \begin_layout Description
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 $$Extra
24264 \end_layout
24265
24266 \end_inset
24267
24268  The extra option.
24269 \end_layout
24270
24271 \begin_layout Description
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 $$Resize
24277 \end_layout
24278
24279 \end_inset
24280
24281  The resize option.
24282 \end_layout
24283
24284 \begin_layout Description
24285 \begin_inset Flex Code
24286 status collapsed
24287
24288 \begin_layout Plain Layout
24289 $$Rotate
24290 \end_layout
24291
24292 \end_inset
24293
24294  The rotation option.
24295 \end_layout
24296
24297 \begin_layout Standard
24298 You may ask why there are so many path macros.
24299  There are mainly two reasons:
24300 \end_layout
24301
24302 \begin_layout Enumerate
24303 Relative and absolute file names should remain relative or absolute, respectivel
24304 y.
24305  Users may have reasons to prefer either form.
24306  Relative names are useful for portable documents that should work on different
24307  machines, for example.
24308  Absolute names may be required by some programs.
24309 \end_layout
24310
24311 \begin_layout Enumerate
24312 \SpecialChar LaTeX
24313  treats relative file names differently than \SpecialChar LyX
24314  and other programs in nested
24315  included files.
24316  For \SpecialChar LyX
24317 , a relative file name is always relative to the document that contains
24318  the file name.
24319  For \SpecialChar LaTeX
24320 , it is always relative to the master document.
24321  These two definitions are identical if you have only one document, but
24322  differ if you have a master document that includes part documents.
24323  That means that relative filenames must be transformed when presented to
24324  \SpecialChar LaTeX
24325 .
24326  Fortunately \SpecialChar LyX
24327  does this automatically for you if you choose the right macros.
24328 \end_layout
24329
24330 \begin_layout Standard
24331 So which path macro should be used in new template definitions? The rule
24332  is not difficult:
24333 \end_layout
24334
24335 \begin_layout Itemize
24336 Use 
24337 \begin_inset Flex Code
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 $$AbsPath
24342 \end_layout
24343
24344 \end_inset
24345
24346  if an absolute path is required.
24347 \end_layout
24348
24349 \begin_layout Itemize
24350 Use 
24351 \begin_inset Flex Code
24352 status collapsed
24353
24354 \begin_layout Plain Layout
24355 $$AbsOrRelPathMaster
24356 \end_layout
24357
24358 \end_inset
24359
24360  if the substituted string is some kind of \SpecialChar LaTeX
24361  input.
24362 \end_layout
24363
24364 \begin_layout Itemize
24365 Else use 
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370 $$AbsOrRelPathParent
24371 \end_layout
24372
24373 \end_inset
24374
24375  in order to preserve the user's choice.
24376 \end_layout
24377
24378 \begin_layout Standard
24379 There are special cases where this rule does not work and e.
24380 \begin_inset space \thinspace{}
24381 \end_inset
24382
24383 g.
24384 \begin_inset space \space{}
24385 \end_inset
24386
24387 relative names are needed, but normally it will work just fine.
24388  One example for such a case is the command 
24389 \begin_inset Flex Code
24390 status collapsed
24391
24392 \begin_layout Plain Layout
24393 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24394 \end_layout
24395
24396 \end_inset
24397
24398  in the XFig template above: We can't use the absolute name because the
24399  copier for 
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 .pstex_t
24405 \end_layout
24406
24407 \end_inset
24408
24409  files needs the relative name in order to rewrite the file content.
24410 \end_layout
24411
24412 \begin_layout Section
24413 Security discussion
24414 \begin_inset CommandInset label
24415 LatexCommand label
24416 name "sec:Security-discussion"
24417
24418 \end_inset
24419
24420
24421 \end_layout
24422
24423 \begin_layout Standard
24424 The external material feature interfaces with a lot of external programs
24425  and does so automatically, so we have to consider the security implications
24426  of this.
24427  In particular, since you have the option of including your own filenames
24428  and/or parameter strings and those are expanded into a command, it seems
24429  that it would be possible to create a malicious document which executes
24430  arbitrary commands when a user views or prints the document.
24431  This is something we definitely want to avoid.
24432 \end_layout
24433
24434 \begin_layout Standard
24435 However, since the external program commands are specified in the template
24436  configuration file only, there are no security issues if \SpecialChar LyX
24437  is properly configure
24438 d with safe templates only.
24439  This is so because the external programs are invoked with the 
24440 \begin_inset Flex Code
24441 status collapsed
24442
24443 \begin_layout Plain Layout
24444 execvp
24445 \end_layout
24446
24447 \end_inset
24448
24449 -system call rather than the 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 system
24455 \end_layout
24456
24457 \end_inset
24458
24459  system-call, so it's not possible to execute arbitrary commands from the
24460  filename or parameter section via the shell.
24461 \end_layout
24462
24463 \begin_layout Standard
24464 This also implies that you are restricted in what command strings you can
24465  use in the external material templates.
24466  In particular, pipes and redirection are not readily available.
24467  This has to be so if \SpecialChar LyX
24468  should remain safe.
24469  If you want to use some of the shell features, you should write a safe
24470  script to do this in a controlled manner, and then invoke the script from
24471  the command string.
24472  
24473 \end_layout
24474
24475 \begin_layout Standard
24476 It is possible to design a template that interacts directly with the shell,
24477  but since this would allow a malicious user to execute arbitrary commands
24478  by writing clever filenames and/or parameters, we generally recommend that
24479  you only use safe scripts that work with the 
24480 \begin_inset Flex Code
24481 status collapsed
24482
24483 \begin_layout Plain Layout
24484 execvp
24485 \end_layout
24486
24487 \end_inset
24488
24489  system call in a controlled manner.
24490  Of course, for use in a controlled environment, it can be tempting to just
24491  fall back to use ordinary shell scripts.
24492  If you do so, be aware that you 
24493 \emph on
24494 will
24495 \emph default
24496  provide an easily exploitable security hole in your system.
24497  Of course it stands to reason that such unsafe templates will never be
24498  included in the standard \SpecialChar LyX
24499  distribution, although we do encourage people
24500  to submit new templates in the open source tradition.
24501  But \SpecialChar LyX
24502  as shipped from the official distribution channels will never have
24503  unsafe templates.
24504 \end_layout
24505
24506 \begin_layout Standard
24507 Including external material provides a lot of power, and you have to be
24508  careful not to introduce security hazards with this power.
24509  A subtle error in a single line in an innocent looking script can open
24510  the door to huge security problems.
24511  So if you do not fully understand the issues, we recommend that you consult
24512  a knowledgeable security professional or the \SpecialChar LyX
24513  development team if you have
24514  any questions about whether a given template is safe or not.
24515  And do this before you use it in an uncontrolled environment.
24516 \end_layout
24517
24518 \begin_layout Chapter
24519 \start_of_appendix
24520 List of supported \SpecialChar LyX
24521  functions to be used in layouts
24522 \begin_inset CommandInset label
24523 LatexCommand label
24524 name "chap:List-of-functions"
24525
24526 \end_inset
24527
24528
24529 \end_layout
24530
24531 \begin_layout Standard
24532 \align center
24533 \begin_inset Tabular
24534 <lyxtabular version="3" rows="11" columns="8">
24535 <features tabularvalignment="middle">
24536 <column alignment="left" valignment="top">
24537 <column alignment="left" valignment="top">
24538 <column alignment="left" valignment="top">
24539 <column alignment="left" valignment="top">
24540 <column alignment="left" valignment="top">
24541 <column alignment="left" valignment="top">
24542 <column alignment="left" valignment="top">
24543 <column alignment="left" valignment="top">
24544 <row>
24545 <cell alignment="left" valignment="top" usebox="none">
24546 \begin_inset Text
24547
24548 \begin_layout Plain Layout
24549 accents
24550 \end_layout
24551
24552 \end_inset
24553 </cell>
24554 <cell alignment="left" valignment="top" usebox="none">
24555 \begin_inset Text
24556
24557 \begin_layout Plain Layout
24558 booktabs
24559 \end_layout
24560
24561 \end_inset
24562 </cell>
24563 <cell alignment="left" valignment="top" usebox="none">
24564 \begin_inset Text
24565
24566 \begin_layout Plain Layout
24567 feyn
24568 \end_layout
24569
24570 \end_inset
24571 </cell>
24572 <cell alignment="left" valignment="top" usebox="none">
24573 \begin_inset Text
24574
24575 \begin_layout Plain Layout
24576 listings
24577 \end_layout
24578
24579 \end_inset
24580 </cell>
24581 <cell alignment="center" valignment="top" usebox="none">
24582 \begin_inset Text
24583
24584 \begin_layout Plain Layout
24585 natbib
24586 \end_layout
24587
24588 \end_inset
24589 </cell>
24590 <cell alignment="center" valignment="top" usebox="none">
24591 \begin_inset Text
24592
24593 \begin_layout Plain Layout
24594 rotfloat
24595 \end_layout
24596
24597 \end_inset
24598 </cell>
24599 <cell alignment="center" valignment="top" usebox="none">
24600 \begin_inset Text
24601
24602 \begin_layout Plain Layout
24603 tfrupee
24604 \end_layout
24605
24606 \end_inset
24607 </cell>
24608 <cell alignment="center" valignment="top" usebox="none">
24609 \begin_inset Text
24610
24611 \begin_layout Plain Layout
24612 wasysym
24613 \end_layout
24614
24615 \end_inset
24616 </cell>
24617 </row>
24618 <row>
24619 <cell alignment="left" valignment="top" usebox="none">
24620 \begin_inset Text
24621
24622 \begin_layout Plain Layout
24623 amsbsy
24624 \end_layout
24625
24626 \end_inset
24627 </cell>
24628 <cell alignment="left" valignment="top" usebox="none">
24629 \begin_inset Text
24630
24631 \begin_layout Plain Layout
24632 calc
24633 \end_layout
24634
24635 \end_inset
24636 </cell>
24637 <cell alignment="left" valignment="top" usebox="none">
24638 \begin_inset Text
24639
24640 \begin_layout Plain Layout
24641 fixltx2e
24642 \end_layout
24643
24644 \end_inset
24645 </cell>
24646 <cell alignment="left" valignment="top" usebox="none">
24647 \begin_inset Text
24648
24649 \begin_layout Plain Layout
24650 longtable
24651 \end_layout
24652
24653 \end_inset
24654 </cell>
24655 <cell alignment="center" valignment="top" usebox="none">
24656 \begin_inset Text
24657
24658 \begin_layout Plain Layout
24659 nomencl
24660 \end_layout
24661
24662 \end_inset
24663 </cell>
24664 <cell alignment="center" valignment="top" usebox="none">
24665 \begin_inset Text
24666
24667 \begin_layout Plain Layout
24668 rsphrase
24669 \end_layout
24670
24671 \end_inset
24672 </cell>
24673 <cell alignment="center" valignment="top" usebox="none">
24674 \begin_inset Text
24675
24676 \begin_layout Plain Layout
24677 tipa
24678 \end_layout
24679
24680 \end_inset
24681 </cell>
24682 <cell alignment="center" valignment="top" usebox="none">
24683 \begin_inset Text
24684
24685 \begin_layout Plain Layout
24686 wrapfig
24687 \end_layout
24688
24689 \end_inset
24690 </cell>
24691 </row>
24692 <row>
24693 <cell alignment="left" valignment="top" usebox="none">
24694 \begin_inset Text
24695
24696 \begin_layout Plain Layout
24697 amscd
24698 \end_layout
24699
24700 \end_inset
24701 </cell>
24702 <cell alignment="left" valignment="top" usebox="none">
24703 \begin_inset Text
24704
24705 \begin_layout Plain Layout
24706 CJK
24707 \end_layout
24708
24709 \end_inset
24710 </cell>
24711 <cell alignment="left" valignment="top" usebox="none">
24712 \begin_inset Text
24713
24714 \begin_layout Plain Layout
24715 float
24716 \end_layout
24717
24718 \end_inset
24719 </cell>
24720 <cell alignment="left" valignment="top" usebox="none">
24721 \begin_inset Text
24722
24723 \begin_layout Plain Layout
24724 lyxskak
24725 \end_layout
24726
24727 \end_inset
24728 </cell>
24729 <cell alignment="center" valignment="top" usebox="none">
24730 \begin_inset Text
24731
24732 \begin_layout Plain Layout
24733 pdfcolmk
24734 \end_layout
24735
24736 \end_inset
24737 </cell>
24738 <cell alignment="center" valignment="top" usebox="none">
24739 \begin_inset Text
24740
24741 \begin_layout Plain Layout
24742 setspace
24743 \end_layout
24744
24745 \end_inset
24746 </cell>
24747 <cell alignment="center" valignment="top" usebox="none">
24748 \begin_inset Text
24749
24750 \begin_layout Plain Layout
24751 tipx
24752 \end_layout
24753
24754 \end_inset
24755 </cell>
24756 <cell alignment="center" valignment="top" usebox="none">
24757 \begin_inset Text
24758
24759 \begin_layout Plain Layout
24760 xargs
24761 \end_layout
24762
24763 \end_inset
24764 </cell>
24765 </row>
24766 <row>
24767 <cell alignment="left" valignment="top" usebox="none">
24768 \begin_inset Text
24769
24770 \begin_layout Plain Layout
24771 amsmath
24772 \end_layout
24773
24774 \end_inset
24775 </cell>
24776 <cell alignment="left" valignment="top" usebox="none">
24777 \begin_inset Text
24778
24779 \begin_layout Plain Layout
24780 color
24781 \end_layout
24782
24783 \end_inset
24784 </cell>
24785 <cell alignment="left" valignment="top" usebox="none">
24786 \begin_inset Text
24787
24788 \begin_layout Plain Layout
24789 framed
24790 \end_layout
24791
24792 \end_inset
24793 </cell>
24794 <cell alignment="left" valignment="top" usebox="none">
24795 \begin_inset Text
24796
24797 \begin_layout Plain Layout
24798 makeidx
24799 \end_layout
24800
24801 \end_inset
24802 </cell>
24803 <cell alignment="center" valignment="top" usebox="none">
24804 \begin_inset Text
24805
24806 \begin_layout Plain Layout
24807 pdfpages
24808 \end_layout
24809
24810 \end_inset
24811 </cell>
24812 <cell alignment="center" valignment="top" usebox="none">
24813 \begin_inset Text
24814
24815 \begin_layout Plain Layout
24816 shapepar
24817 \end_layout
24818
24819 \end_inset
24820 </cell>
24821 <cell alignment="center" valignment="top" usebox="none">
24822 \begin_inset Text
24823
24824 \begin_layout Plain Layout
24825 tone
24826 \end_layout
24827
24828 \end_inset
24829 </cell>
24830 <cell alignment="center" valignment="top" usebox="none">
24831 \begin_inset Text
24832
24833 \begin_layout Plain Layout
24834 xcolor
24835 \end_layout
24836
24837 \end_inset
24838 </cell>
24839 </row>
24840 <row>
24841 <cell alignment="left" valignment="top" usebox="none">
24842 \begin_inset Text
24843
24844 \begin_layout Plain Layout
24845 amssymb
24846 \end_layout
24847
24848 \end_inset
24849 </cell>
24850 <cell alignment="left" valignment="top" usebox="none">
24851 \begin_inset Text
24852
24853 \begin_layout Plain Layout
24854 covington
24855 \end_layout
24856
24857 \end_inset
24858 </cell>
24859 <cell alignment="left" valignment="top" usebox="none">
24860 \begin_inset Text
24861
24862 \begin_layout Plain Layout
24863 graphicx
24864 \end_layout
24865
24866 \end_inset
24867 </cell>
24868 <cell alignment="left" valignment="top" usebox="none">
24869 \begin_inset Text
24870
24871 \begin_layout Plain Layout
24872 marvosym
24873 \end_layout
24874
24875 \end_inset
24876 </cell>
24877 <cell alignment="center" valignment="top" usebox="none">
24878 \begin_inset Text
24879
24880 \begin_layout Plain Layout
24881 pifont
24882 \end_layout
24883
24884 \end_inset
24885 </cell>
24886 <cell alignment="center" valignment="top" usebox="none">
24887 \begin_inset Text
24888
24889 \begin_layout Plain Layout
24890 slashed
24891 \end_layout
24892
24893 \end_inset
24894 </cell>
24895 <cell alignment="center" valignment="top" usebox="none">
24896 \begin_inset Text
24897
24898 \begin_layout Plain Layout
24899 txfonts
24900 \end_layout
24901
24902 \end_inset
24903 </cell>
24904 <cell alignment="center" valignment="top" usebox="none">
24905 \begin_inset Text
24906
24907 \begin_layout Plain Layout
24908 xy
24909 \end_layout
24910
24911 \end_inset
24912 </cell>
24913 </row>
24914 <row>
24915 <cell alignment="left" valignment="top" usebox="none">
24916 \begin_inset Text
24917
24918 \begin_layout Plain Layout
24919 amstext
24920 \end_layout
24921
24922 \end_inset
24923 </cell>
24924 <cell alignment="left" valignment="top" usebox="none">
24925 \begin_inset Text
24926
24927 \begin_layout Plain Layout
24928 csquotes
24929 \end_layout
24930
24931 \end_inset
24932 </cell>
24933 <cell alignment="left" valignment="top" usebox="none">
24934 \begin_inset Text
24935
24936 \begin_layout Plain Layout
24937 hhline
24938 \end_layout
24939
24940 \end_inset
24941 </cell>
24942 <cell alignment="left" valignment="top" usebox="none">
24943 \begin_inset Text
24944
24945 \begin_layout Plain Layout
24946 mathdesign
24947 \end_layout
24948
24949 \end_inset
24950 </cell>
24951 <cell alignment="center" valignment="top" usebox="none">
24952 \begin_inset Text
24953
24954 \begin_layout Plain Layout
24955 pmboxdraw
24956 \end_layout
24957
24958 \end_inset
24959 </cell>
24960 <cell alignment="center" valignment="top" usebox="none">
24961 \begin_inset Text
24962
24963 \begin_layout Plain Layout
24964 soul
24965 \end_layout
24966
24967 \end_inset
24968 </cell>
24969 <cell alignment="center" valignment="top" usebox="none">
24970 \begin_inset Text
24971
24972 \begin_layout Plain Layout
24973 ulem
24974 \end_layout
24975
24976 \end_inset
24977 </cell>
24978 <cell alignment="center" valignment="top" usebox="none">
24979 \begin_inset Text
24980
24981 \begin_layout Plain Layout
24982 yhmath
24983 \end_layout
24984
24985 \end_inset
24986 </cell>
24987 </row>
24988 <row>
24989 <cell alignment="left" valignment="top" usebox="none">
24990 \begin_inset Text
24991
24992 \begin_layout Plain Layout
24993 amsthm
24994 \end_layout
24995
24996 \end_inset
24997 </cell>
24998 <cell alignment="left" valignment="top" usebox="none">
24999 \begin_inset Text
25000
25001 \begin_layout Plain Layout
25002 dvipost
25003 \end_layout
25004
25005 \end_inset
25006 </cell>
25007 <cell alignment="left" valignment="top" usebox="none">
25008 \begin_inset Text
25009
25010 \begin_layout Plain Layout
25011 hyperref
25012 \end_layout
25013
25014 \end_inset
25015 </cell>
25016 <cell alignment="left" valignment="top" usebox="none">
25017 \begin_inset Text
25018
25019 \begin_layout Plain Layout
25020 mathdots
25021 \end_layout
25022
25023 \end_inset
25024 </cell>
25025 <cell alignment="center" valignment="top" usebox="none">
25026 \begin_inset Text
25027
25028 \begin_layout Plain Layout
25029 polyglossia
25030 \end_layout
25031
25032 \end_inset
25033 </cell>
25034 <cell alignment="center" valignment="top" usebox="none">
25035 \begin_inset Text
25036
25037 \begin_layout Plain Layout
25038 splitidx
25039 \end_layout
25040
25041 \end_inset
25042 </cell>
25043 <cell alignment="center" valignment="top" usebox="none">
25044 \begin_inset Text
25045
25046 \begin_layout Plain Layout
25047 undertilde
25048 \end_layout
25049
25050 \end_inset
25051 </cell>
25052 <cell alignment="center" valignment="top" usebox="none">
25053 \begin_inset Text
25054
25055 \begin_layout Plain Layout
25056
25057 \end_layout
25058
25059 \end_inset
25060 </cell>
25061 </row>
25062 <row>
25063 <cell alignment="left" valignment="top" usebox="none">
25064 \begin_inset Text
25065
25066 \begin_layout Plain Layout
25067 array
25068 \end_layout
25069
25070 \end_inset
25071 </cell>
25072 <cell alignment="left" valignment="top" usebox="none">
25073 \begin_inset Text
25074
25075 \begin_layout Plain Layout
25076 endnotes
25077 \end_layout
25078
25079 \end_inset
25080 </cell>
25081 <cell alignment="left" valignment="top" usebox="none">
25082 \begin_inset Text
25083
25084 \begin_layout Plain Layout
25085 ifsym
25086 \end_layout
25087
25088 \end_inset
25089 </cell>
25090 <cell alignment="left" valignment="top" usebox="none">
25091 \begin_inset Text
25092
25093 \begin_layout Plain Layout
25094 mathrsfs
25095 \end_layout
25096
25097 \end_inset
25098 </cell>
25099 <cell alignment="center" valignment="top" usebox="none">
25100 \begin_inset Text
25101
25102 \begin_layout Plain Layout
25103 prettyref
25104 \end_layout
25105
25106 \end_inset
25107 </cell>
25108 <cell alignment="center" valignment="top" usebox="none">
25109 \begin_inset Text
25110
25111 \begin_layout Plain Layout
25112 subfig
25113 \end_layout
25114
25115 \end_inset
25116 </cell>
25117 <cell alignment="center" valignment="top" usebox="none">
25118 \begin_inset Text
25119
25120 \begin_layout Plain Layout
25121 units
25122 \end_layout
25123
25124 \end_inset
25125 </cell>
25126 <cell alignment="center" valignment="top" usebox="none">
25127 \begin_inset Text
25128
25129 \begin_layout Plain Layout
25130
25131 \end_layout
25132
25133 \end_inset
25134 </cell>
25135 </row>
25136 <row>
25137 <cell alignment="left" valignment="top" usebox="none">
25138 \begin_inset Text
25139
25140 \begin_layout Plain Layout
25141 ascii
25142 \end_layout
25143
25144 \end_inset
25145 </cell>
25146 <cell alignment="left" valignment="top" usebox="none">
25147 \begin_inset Text
25148
25149 \begin_layout Plain Layout
25150 enumitem
25151 \end_layout
25152
25153 \end_inset
25154 </cell>
25155 <cell alignment="left" valignment="top" usebox="none">
25156 \begin_inset Text
25157
25158 \begin_layout Plain Layout
25159 ifthen
25160 \end_layout
25161
25162 \end_inset
25163 </cell>
25164 <cell alignment="left" valignment="top" usebox="none">
25165 \begin_inset Text
25166
25167 \begin_layout Plain Layout
25168 mhchem
25169 \end_layout
25170
25171 \end_inset
25172 </cell>
25173 <cell alignment="center" valignment="top" usebox="none">
25174 \begin_inset Text
25175
25176 \begin_layout Plain Layout
25177 pxfonts
25178 \end_layout
25179
25180 \end_inset
25181 </cell>
25182 <cell alignment="center" valignment="top" usebox="none">
25183 \begin_inset Text
25184
25185 \begin_layout Plain Layout
25186 subscript
25187 \end_layout
25188
25189 \end_inset
25190 </cell>
25191 <cell alignment="center" valignment="top" usebox="none">
25192 \begin_inset Text
25193
25194 \begin_layout Plain Layout
25195 url
25196 \end_layout
25197
25198 \end_inset
25199 </cell>
25200 <cell alignment="center" valignment="top" usebox="none">
25201 \begin_inset Text
25202
25203 \begin_layout Plain Layout
25204
25205 \end_layout
25206
25207 \end_inset
25208 </cell>
25209 </row>
25210 <row>
25211 <cell alignment="left" valignment="top" usebox="none">
25212 \begin_inset Text
25213
25214 \begin_layout Plain Layout
25215 bbding
25216 \end_layout
25217
25218 \end_inset
25219 </cell>
25220 <cell alignment="left" valignment="top" usebox="none">
25221 \begin_inset Text
25222
25223 \begin_layout Plain Layout
25224 esint
25225 \end_layout
25226
25227 \end_inset
25228 </cell>
25229 <cell alignment="left" valignment="top" usebox="none">
25230 \begin_inset Text
25231
25232 \begin_layout Plain Layout
25233 jurabib
25234 \end_layout
25235
25236 \end_inset
25237 </cell>
25238 <cell alignment="left" valignment="top" usebox="none">
25239 \begin_inset Text
25240
25241 \begin_layout Plain Layout
25242 multicol
25243 \end_layout
25244
25245 \end_inset
25246 </cell>
25247 <cell alignment="center" valignment="top" usebox="none">
25248 \begin_inset Text
25249
25250 \begin_layout Plain Layout
25251 refstyle
25252 \end_layout
25253
25254 \end_inset
25255 </cell>
25256 <cell alignment="center" valignment="top" usebox="none">
25257 \begin_inset Text
25258
25259 \begin_layout Plain Layout
25260 textcomp
25261 \end_layout
25262
25263 \end_inset
25264 </cell>
25265 <cell alignment="center" valignment="top" usebox="none">
25266 \begin_inset Text
25267
25268 \begin_layout Plain Layout
25269 varioref
25270 \end_layout
25271
25272 \end_inset
25273 </cell>
25274 <cell alignment="center" valignment="top" usebox="none">
25275 \begin_inset Text
25276
25277 \begin_layout Plain Layout
25278
25279 \end_layout
25280
25281 \end_inset
25282 </cell>
25283 </row>
25284 <row>
25285 <cell alignment="center" valignment="top" usebox="none">
25286 \begin_inset Text
25287
25288 \begin_layout Plain Layout
25289 bm
25290 \end_layout
25291
25292 \end_inset
25293 </cell>
25294 <cell alignment="center" valignment="top" usebox="none">
25295 \begin_inset Text
25296
25297 \begin_layout Plain Layout
25298 fancybox
25299 \end_layout
25300
25301 \end_inset
25302 </cell>
25303 <cell alignment="center" valignment="top" usebox="none">
25304 \begin_inset Text
25305
25306 \begin_layout Plain Layout
25307 latexsym
25308 \end_layout
25309
25310 \end_inset
25311 </cell>
25312 <cell alignment="center" valignment="top" usebox="none">
25313 \begin_inset Text
25314
25315 \begin_layout Plain Layout
25316 multirow
25317 \end_layout
25318
25319 \end_inset
25320 </cell>
25321 <cell alignment="center" valignment="top" usebox="none">
25322 \begin_inset Text
25323
25324 \begin_layout Plain Layout
25325 rotating
25326 \end_layout
25327
25328 \end_inset
25329 </cell>
25330 <cell alignment="center" valignment="top" usebox="none">
25331 \begin_inset Text
25332
25333 \begin_layout Plain Layout
25334 textgreek
25335 \end_layout
25336
25337 \end_inset
25338 </cell>
25339 <cell alignment="center" valignment="top" usebox="none">
25340 \begin_inset Text
25341
25342 \begin_layout Plain Layout
25343 verbatim
25344 \end_layout
25345
25346 \end_inset
25347 </cell>
25348 <cell alignment="center" valignment="top" usebox="none">
25349 \begin_inset Text
25350
25351 \begin_layout Plain Layout
25352
25353 \end_layout
25354
25355 \end_inset
25356 </cell>
25357 </row>
25358 </lyxtabular>
25359
25360 \end_inset
25361
25362
25363 \end_layout
25364
25365 \begin_layout Chapter
25366 Names of available colors to be used in layouts
25367 \begin_inset CommandInset label
25368 LatexCommand label
25369 name "chap:Names-of-colors"
25370
25371 \end_inset
25372
25373
25374 \end_layout
25375
25376 \begin_layout Standard
25377 The colors listed here are the standard colors and the those that you can
25378  adjust in the \SpecialChar LyX
25379  preferences.
25380 \end_layout
25381
25382 \begin_layout Description
25383 none
25384 \family roman
25385 \series medium
25386 \shape up
25387 \size normal
25388 \emph off
25389 \bar no
25390 \strikeout off
25391 \uuline off
25392 \uwave off
25393 \noun off
25394 \color none
25395  No particular color – clear or default
25396 \end_layout
25397
25398 \begin_layout Description
25399 black
25400 \end_layout
25401
25402 \begin_layout Description
25403 white
25404 \end_layout
25405
25406 \begin_layout Description
25407 red
25408 \end_layout
25409
25410 \begin_layout Description
25411 green
25412 \end_layout
25413
25414 \begin_layout Description
25415 blue
25416 \end_layout
25417
25418 \begin_layout Description
25419 cyan
25420 \end_layout
25421
25422 \begin_layout Description
25423 magenta
25424 \end_layout
25425
25426 \begin_layout Description
25427 yellow
25428 \end_layout
25429
25430 \begin_layout Description
25431 added_space Added space marker color
25432 \end_layout
25433
25434 \begin_layout Description
25435 addedtext Added text color
25436 \end_layout
25437
25438 \begin_layout Description
25439 appendix Appendix marker color
25440 \end_layout
25441
25442 \begin_layout Description
25443 background Background color
25444 \end_layout
25445
25446 \begin_layout Description
25447 bottomarea Bottom area color
25448 \end_layout
25449
25450 \begin_layout Description
25451 branchlabel Label color for branches
25452 \end_layout
25453
25454 \begin_layout Description
25455 buttonbg Color used for bottom background
25456 \end_layout
25457
25458 \begin_layout Description
25459 buttonhoverbg Color used for button background under focus
25460 \end_layout
25461
25462 \begin_layout Description
25463 buttonframe Color for inset button frames
25464 \end_layout
25465
25466 \begin_layout Description
25467 changebar Changebar color
25468 \end_layout
25469
25470 \begin_layout Description
25471 changedtextauthor1 Changed text color author 1
25472 \end_layout
25473
25474 \begin_layout Description
25475 changedtextauthor2 Changed text color author 2
25476 \end_layout
25477
25478 \begin_layout Description
25479 changedtextauthor3 Changed text color author 3
25480 \end_layout
25481
25482 \begin_layout Description
25483 changedtextauthor4 Changed text color author 4
25484 \end_layout
25485
25486 \begin_layout Description
25487 changedtextauthor5 Changed text color author 5
25488 \end_layout
25489
25490 \begin_layout Description
25491 collapsable_inset_frame Collapsable insets framecolor
25492 \end_layout
25493
25494 \begin_layout Description
25495 collapsable_inset_text Collapsable insets text color
25496 \end_layout
25497
25498 \begin_layout Description
25499 command Text color for command insets
25500 \end_layout
25501
25502 \begin_layout Description
25503 commandbg Background color for command insets
25504 \end_layout
25505
25506 \begin_layout Description
25507 commandframe Frame color for command insets
25508 \end_layout
25509
25510 \begin_layout Description
25511 comment color for comments
25512 \end_layout
25513
25514 \begin_layout Description
25515 commentbg Background color of comments
25516 \end_layout
25517
25518 \begin_layout Description
25519 cursor Cursor color
25520 \end_layout
25521
25522 \begin_layout Description
25523 deletedtext Deleted text color
25524 \end_layout
25525
25526 \begin_layout Description
25527 deletedtextmodifier Deleted text modifying color
25528 \end_layout
25529
25530 \begin_layout Description
25531 depthbar Color for the depth bars in the margin
25532 \end_layout
25533
25534 \begin_layout Description
25535 eolmarker End of line marker color
25536 \end_layout
25537
25538 \begin_layout Description
25539 error Color of the \SpecialChar LaTeX
25540  error box
25541 \end_layout
25542
25543 \begin_layout Description
25544 footlabel Label color for footnotes
25545 \end_layout
25546
25547 \begin_layout Description
25548 graphicsbg Graphics inset background color
25549 \end_layout
25550
25551 \begin_layout Description
25552 greyedout Label color for greyedout insets
25553 \end_layout
25554
25555 \begin_layout Description
25556 greyedoutbg Background color of greyedout inset
25557 \end_layout
25558
25559 \begin_layout Description
25560 greyedouttext Color for greyedout inset text
25561 \end_layout
25562
25563 \begin_layout Description
25564 indexlabel Label color for index insets
25565 \end_layout
25566
25567 \begin_layout Description
25568 ignore The color is ignored
25569 \end_layout
25570
25571 \begin_layout Description
25572 inherit The color is inherited
25573 \end_layout
25574
25575 \begin_layout Description
25576 inlinecompletion Inline completion color
25577 \end_layout
25578
25579 \begin_layout Description
25580 insetbg Inset marker background color
25581 \end_layout
25582
25583 \begin_layout Description
25584 insetframe Inset marker frame color
25585 \end_layout
25586
25587 \begin_layout Description
25588 language Color for marking foreign language words
25589 \end_layout
25590
25591 \begin_layout Description
25592 latex Text color in \SpecialChar LaTeX
25593  mode
25594 \end_layout
25595
25596 \begin_layout Description
25597 listingsbg Background color of listings inset
25598 \end_layout
25599
25600 \begin_layout Description
25601 marginlabel Label color for margin notes
25602 \end_layout
25603
25604 \begin_layout Description
25605 math Math inset text color
25606 \end_layout
25607
25608 \begin_layout Description
25609 mathbg Math inset background color
25610 \end_layout
25611
25612 \begin_layout Description
25613 mathcorners Math inset frame color not under focus
25614 \end_layout
25615
25616 \begin_layout Description
25617 mathframe Math inset frame color under focus
25618 \end_layout
25619
25620 \begin_layout Description
25621 mathline Math line color
25622 \end_layout
25623
25624 \begin_layout Description
25625 mathmacrobg Macro math inset background color
25626 \end_layout
25627
25628 \begin_layout Description
25629 mathmacroblend Macro math blended color
25630 \end_layout
25631
25632 \begin_layout Description
25633 mathmacroframe Macro math frame color
25634 \end_layout
25635
25636 \begin_layout Description
25637 mathmacrohoverbg Macro math inset background color hovered
25638 \end_layout
25639
25640 \begin_layout Description
25641 mathmacrolabel Macro math label color
25642 \end_layout
25643
25644 \begin_layout Description
25645 mathmacronewarg Macro template color for new parameters
25646 \end_layout
25647
25648 \begin_layout Description
25649 mathmacrooldarg Macro template color for old parameters
25650 \end_layout
25651
25652 \begin_layout Description
25653 newpage New page color
25654 \end_layout
25655
25656 \begin_layout Description
25657 nonunique_inlinecompletion Inline completion color for the non-unique part
25658 \end_layout
25659
25660 \begin_layout Description
25661 notebg Background color of notes
25662 \end_layout
25663
25664 \begin_layout Description
25665 notelabel Label color for notes
25666 \end_layout
25667
25668 \begin_layout Description
25669 pagebreak Page break/line break color
25670 \end_layout
25671
25672 \begin_layout Description
25673 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25674 \end_layout
25675
25676 \begin_layout Description
25677 phantomtext Text color for phantom insets
25678 \end_layout
25679
25680 \begin_layout Description
25681 preview The color used for previews
25682 \end_layout
25683
25684 \begin_layout Description
25685 previewframe Preview frame color
25686 \end_layout
25687
25688 \begin_layout Description
25689 regexpframe Color for regexp frame
25690 \end_layout
25691
25692 \begin_layout Description
25693 selection Background color of selected text
25694 \end_layout
25695
25696 \begin_layout Description
25697 selectiontext Foreground color of selected text
25698 \end_layout
25699
25700 \begin_layout Description
25701 shadedbg Background color of shaded box
25702 \end_layout
25703
25704 \begin_layout Description
25705 special Special chars text color
25706 \end_layout
25707
25708 \begin_layout Description
25709 tabularline Table line color
25710 \end_layout
25711
25712 \begin_layout Description
25713 tabularonoffline Table line color
25714 \end_layout
25715
25716 \begin_layout Description
25717 urllabel Label color for URL insets
25718 \end_layout
25719
25720 \begin_layout Description
25721 urltext Color for URL inset text
25722 \end_layout
25723
25724 \end_body
25725 \end_document