]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add Float tag to determine allowed positioning options (#7752)
[features.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 /home/jspitz/lyx/lyx-devel/lib/doc/
6 \textclass scrbook
7 \begin_preamble
8 % DO NOT ALTER THIS PREAMBLE!!!
9 %
10 % This preamble is designed to ensure that this document prints
11 % out as advertised. If you mess with this preamble,
12 % parts of this document may not print out as expected.  If you
13 % have problems LaTeXing this file, please contact 
14 % the documentation team
15 % email: lyx-docs@lists.lyx.org
16
17 \usepackage{ifpdf} % part of the hyperref bundle
18 \ifpdf % if pdflatex is used
19
20  % set fonts for nicer pdf view
21  \IfFileExists{lmodern.sty}
22   {\usepackage{lmodern}}{}
23
24 \fi % end if pdflatex is used
25
26 % the pages of the TOC is numbered roman
27 % and a pdf-bookmark for the TOC is added
28 \let\myTOC\tableofcontents
29 \renewcommand\tableofcontents{%
30   \frontmatter
31   \pdfbookmark[1]{\contentsname}{}
32   \myTOC
33   \mainmatter }
34
35 % increase link area for cross-references and autoname them,
36 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
37 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
38 \addto\extrasenglish{%
39  \renewcommand*{\equationautorefname}[1]{}%
40  \renewcommand{\sectionautorefname}{sec.\negthinspace}%
41  \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
42  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
43 }
44 \end_preamble
45 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
46 \use_default_options false
47 \begin_modules
48 logicalmkup
49 \end_modules
50 \maintain_unincluded_children false
51 \begin_local_layout
52 Format 35
53 InsetLayout Flex:MenuItem
54 LyxType               charstyle
55 LabelString           menu
56 LatexType             command
57 LatexName             menuitem
58 Font
59 Family              Sans
60 EndFont
61 Preamble
62 \newcommand*{\menuitem}[1]{{\sffamily #1}}
63 EndPreamble
64 End
65 # In case we need to do with sans...
66 #InsetLayout CharStyle:Code
67 #Font
68 #Family              Sans
69 #EndFont
70 #Preamble
71 #\renewcommand{\code}[1]{{\sffamily #1}}
72 #EndPreamble
73 #End
74 \end_local_layout
75 \language english
76 \language_package default
77 \inputencoding auto
78 \fontencoding global
79 \font_roman default
80 \font_sans default
81 \font_typewriter default
82 \font_math auto
83 \font_default_family default
84 \use_non_tex_fonts false
85 \font_sc false
86 \font_osf false
87 \font_sf_scale 100
88 \font_tt_scale 100
89 \graphics default
90 \default_output_format default
91 \output_sync 0
92 \bibtex_command default
93 \index_command default
94 \paperfontsize 12
95 \spacing single
96 \use_hyperref true
97 \pdf_title "LyX Configuration Manual"
98 \pdf_author "LyX Team"
99 \pdf_subject "LyX-documentation Customization"
100 \pdf_keywords "LyX, documentation, customization"
101 \pdf_bookmarks true
102 \pdf_bookmarksnumbered true
103 \pdf_bookmarksopen true
104 \pdf_bookmarksopenlevel 1
105 \pdf_breaklinks false
106 \pdf_pdfborder false
107 \pdf_colorlinks true
108 \pdf_backref false
109 \pdf_pdfusetitle false
110 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
111 \papersize default
112 \use_geometry false
113 \use_package amsmath 0
114 \use_package amssymb 0
115 \use_package cancel 0
116 \use_package esint 0
117 \use_package mathdots 1
118 \use_package mathtools 0
119 \use_package mhchem 0
120 \use_package stackrel 0
121 \use_package stmaryrd 0
122 \use_package undertilde 0
123 \cite_engine basic
124 \cite_engine_type default
125 \biblio_style plain
126 \use_bibtopic false
127 \use_indices false
128 \paperorientation portrait
129 \suppress_date false
130 \justification true
131 \use_refstyle 0
132 \branch OutDated
133 \selected 0
134 \filename_suffix 0
135 \color #f5fae7
136 \end_branch
137 \index Index
138 \shortcut idx
139 \color #008000
140 \end_index
141 \secnumdepth 3
142 \tocdepth 3
143 \paragraph_separation indent
144 \paragraph_indentation default
145 \quotes_language english
146 \papercolumns 1
147 \papersides 2
148 \paperpagestyle headings
149 \tracking_changes true
150 \output_changes false
151 \html_math_output 0
152 \html_css_as_file 0
153 \html_be_strict true
154 \author -712698321 "Jürgen Spitzmüller" 
155 \author -195340706 "Georg Baum" 
156 \author 155139281 "Jrgen Spitzmller" 
157 \author 274215730 "scott" 
158 \end_header
159
160 \begin_body
161
162 \begin_layout Title
163 Customizing \SpecialChar LyX
164 : Features for the Advanced User
165 \end_layout
166
167 \begin_layout Author
168 by the \SpecialChar LyX
169  Team
170 \begin_inset Foot
171 status collapsed
172
173 \begin_layout Plain Layout
174 \noindent
175 If you have comments or error corrections, please send them to the \SpecialChar LyX
176  Documentatio
177 n mailing list, 
178 \begin_inset CommandInset href
179 LatexCommand href
180 target "lyx-docs@lists.lyx.org"
181 type "mailto:"
182
183 \end_inset
184
185 .
186  Include 
187 \begin_inset Quotes eld
188 \end_inset
189
190 [Customization]
191 \begin_inset Quotes erd
192 \end_inset
193
194  in the subject header, and please cc the current maintainer of this file,
195  Richard Heck <rgheck@comcast.net>.
196 \end_layout
197
198 \end_inset
199
200
201 \begin_inset Newline newline
202 \end_inset
203
204
205 \begin_inset Newline newline
206 \end_inset
207
208 Version 2.1.x 
209 \end_layout
210
211 \begin_layout Standard
212 \begin_inset CommandInset toc
213 LatexCommand tableofcontents
214
215 \end_inset
216
217
218 \end_layout
219
220 \begin_layout Standard
221 \begin_inset Note Note
222 status open
223
224 \begin_layout Plain Layout
225 Please use change tracking when modifying this document.
226  This makes it easier for our translators to recognize things that have
227  been changed, and it helps the maintainer keep up-to-date with what's been
228  done.
229 \end_layout
230
231 \end_inset
232
233
234 \end_layout
235
236 \begin_layout Chapter
237 Introduction
238 \end_layout
239
240 \begin_layout Standard
241 This manual covers the customization features present in \SpecialChar LyX
242 .
243  In it, we discuss issues like keyboard shortcuts, screen previewing options,
244  printer options, sending commands to \SpecialChar LyX
245  via the \SpecialChar LyX
246  Server, internationalization,
247  installing new \SpecialChar LaTeX
248  classes and \SpecialChar LyX
249  layouts, etc.
250  We can't possibly hope to touch on everything you can change—our developers
251  add new features faster than we can document them—but we will explain the
252  most common customizations and hopefully point you in the right direction
253  for some of the more obscure ones.
254 \end_layout
255
256 \begin_layout Standard
257 \begin_inset Branch OutDated
258 status collapsed
259
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262  outdated is contained in the OutDated branch of this document.
263  By default, this information will not appear in the \SpecialChar LaTeX
264  output.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  configuration files
275 \end_layout
276
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
279  configuration
280  files.
281  Before continuing to read this chapter, you should find out where your
282  \SpecialChar LyX
283  library and user directories are by using 
284 \begin_inset Flex MenuItem
285 status collapsed
286
287 \begin_layout Plain Layout
288 Help\SpecialChar menuseparator
289 About
290 \begin_inset space ~
291 \end_inset
292
293 \SpecialChar LyX
294
295 \end_layout
296
297 \end_inset
298
299 .
300  The library directory is the place where \SpecialChar LyX
301  places its system-wide configuration
302  files; the user directory is where you can place your modified versions.
303  We will call the former 
304 \begin_inset Flex Code
305 status collapsed
306
307 \begin_layout Plain Layout
308 \SpecialChar LyX
309 Dir
310 \end_layout
311
312 \end_inset
313
314  and the latter 
315 \begin_inset Flex MenuItem
316 status collapsed
317
318 \begin_layout Plain Layout
319 UserDir
320 \end_layout
321
322 \end_inset
323
324  in the remainder of this document.
325  
326 \end_layout
327
328 \begin_layout Section
329 What's in 
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 \SpecialChar LyX
335 Dir
336 \end_layout
337
338 \end_inset
339
340 ?
341 \end_layout
342
343 \begin_layout Standard
344 \begin_inset Flex Code
345 status collapsed
346
347 \begin_layout Plain Layout
348 \SpecialChar LyX
349 Dir
350 \end_layout
351
352 \end_inset
353
354  and its sub-directories contain a number of files and that can be used
355  to customize \SpecialChar LyX
356 's behavior.
357  You can change many of these files from within \SpecialChar LyX
358  itself through the 
359 \begin_inset Flex MenuItem
360 status collapsed
361
362 \begin_layout Plain Layout
363 Tools\SpecialChar menuseparator
364 Preferences
365 \end_layout
366
367 \end_inset
368
369  dialog.
370  Most customization that you will want to do in \SpecialChar LyX
371  is possible through this
372  dialog.
373  However, many other inner aspects of \SpecialChar LyX
374  can be customized by modifying the
375  files in 
376 \begin_inset Flex Code
377 status collapsed
378
379 \begin_layout Plain Layout
380 \SpecialChar LyX
381 Dir
382 \end_layout
383
384 \end_inset
385
386 .
387  These files fall in different categories, described in the following subsection
388 s.
389 \end_layout
390
391 \begin_layout Subsection
392 Automatically generated files
393 \end_layout
394
395 \begin_layout Standard
396 The files, which are to be found in 
397 \begin_inset Flex MenuItem
398 status collapsed
399
400 \begin_layout Plain Layout
401 UserDir
402 \end_layout
403
404 \end_inset
405
406 , are generated when you configure \SpecialChar LyX
407 .
408  They contain various default values that are guessed by inspection.
409  In general, it is not a good idea to modify them, since they might be overwritt
410 en at any time.
411 \end_layout
412
413 \begin_layout Labeling
414 \labelwidthstring 00.00.0000
415 \begin_inset Flex Code
416 status collapsed
417
418 \begin_layout Plain Layout
419 lyxrc.defaults
420 \end_layout
421
422 \end_inset
423
424  contains defaults for various commands.
425 \end_layout
426
427 \begin_layout Labeling
428 \labelwidthstring 00.00.0000
429 \begin_inset Flex Code
430 status collapsed
431
432 \begin_layout Plain Layout
433 packages.lst
434 \end_layout
435
436 \end_inset
437
438  contains the list of packages that have been recognized by \SpecialChar LyX
439 .
440  It is currently unused by the \SpecialChar LyX
441  program itself, but the information extracted,
442  and more, is made available with 
443 \begin_inset Flex MenuItem
444 status collapsed
445
446 \begin_layout Plain Layout
447 Help\SpecialChar menuseparator
448 \SpecialChar LaTeX
449
450 \begin_inset space ~
451 \end_inset
452
453 Configuration
454 \end_layout
455
456 \end_inset
457
458 .
459 \end_layout
460
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 textclass.lst
468 \end_layout
469
470 \end_inset
471
472  the list of text classes that have been found in your 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 layout/
478 \end_layout
479
480 \end_inset
481
482  directories, along with the associated \SpecialChar LaTeX
483  document class and their description.
484 \end_layout
485
486 \begin_layout Labeling
487 \labelwidthstring 00.00.0000
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492 lyxmodules.lst
493 \end_layout
494
495 \end_inset
496
497  the list of layout modules found in your 
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 layout/
503 \end_layout
504
505 \end_inset
506
507  directories
508 \end_layout
509
510 \begin_layout Labeling
511 \labelwidthstring 00.00.0000
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 *files.lst
517 \end_layout
518
519 \end_inset
520
521  lists of various sorts of \SpecialChar LaTeX
522 -related files found on your system
523 \end_layout
524
525 \begin_layout Labeling
526 \labelwidthstring 00.00.0000
527 \begin_inset Flex Code
528 status collapsed
529
530 \begin_layout Plain Layout
531 doc/\SpecialChar LaTeX
532 Config.lyx
533 \end_layout
534
535 \end_inset
536
537  is automatically generated during configuration from the file 
538 \begin_inset Flex Code
539 status collapsed
540
541 \begin_layout Plain Layout
542 \SpecialChar LaTeX
543 Config.lyx.in
544 \end_layout
545
546 \end_inset
547
548 .
549  It contains information on your \SpecialChar LaTeX
550  configuration.
551 \end_layout
552
553 \begin_layout Subsection
554 Directories
555 \end_layout
556
557 \begin_layout Standard
558 These directories are duplicated between 
559 \begin_inset Flex Code
560 status collapsed
561
562 \begin_layout Plain Layout
563 \SpecialChar LyX
564 Dir
565 \end_layout
566
567 \end_inset
568
569  and 
570 \begin_inset Flex Code
571 status collapsed
572
573 \begin_layout Plain Layout
574 UserDir
575 \end_layout
576
577 \end_inset
578
579 .
580  If a particular files exists in both places, the one in 
581 \begin_inset Flex Code
582 status collapsed
583
584 \begin_layout Plain Layout
585 UserDir
586 \end_layout
587
588 \end_inset
589
590  will be used.
591 \end_layout
592
593 \begin_layout Labeling
594 \labelwidthstring 00.00.0000
595 \begin_inset Flex Code
596 status collapsed
597
598 \begin_layout Plain Layout
599 bind/
600 \end_layout
601
602 \end_inset
603
604  this directory contains files with the extension 
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 .bind
610 \end_layout
611
612 \end_inset
613
614  that define the keybindings used in \SpecialChar LyX
615 .
616  If there exists an internationalized version of the bind file named 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 $LANG_xxx.bind
622 \end_layout
623
624 \end_inset
625
626 , that will be used first.
627 \end_layout
628
629 \begin_layout Labeling
630 \labelwidthstring 00.00.0000
631 \begin_inset Flex Code
632 status collapsed
633
634 \begin_layout Plain Layout
635 clipart/
636 \end_layout
637
638 \end_inset
639
640  contains graphics files that can be included in documents.
641  
642 \end_layout
643
644 \begin_layout Labeling
645 \labelwidthstring 00.00.0000
646 \begin_inset Flex Code
647 status collapsed
648
649 \begin_layout Plain Layout
650 doc/
651 \end_layout
652
653 \end_inset
654
655  contains \SpecialChar LyX
656  documentation files (including the one you are currently reading).
657  The file 
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 \SpecialChar LaTeX
663 Config.lyx
664 \end_layout
665
666 \end_inset
667
668  deserves special attention, as noted above.
669  The internationalized help docs are in subdirectories 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 doc/xx
675 \end_layout
676
677 \end_inset
678
679  where 
680 \begin_inset Quotes eld
681 \end_inset
682
683 xx
684 \begin_inset Quotes erd
685 \end_inset
686
687  is the ISO language code.
688  See 
689 \begin_inset CommandInset ref
690 LatexCommand ref
691 reference "cha:Internationalizing-LyX"
692
693 \end_inset
694
695  for details.
696 \end_layout
697
698 \begin_layout Labeling
699 \labelwidthstring 00.00.0000
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 examples/
705 \end_layout
706
707 \end_inset
708
709  contains example files that explain how to use some features.
710  In the file browser, press the 
711 \begin_inset Flex MenuItem
712 status collapsed
713
714 \begin_layout Plain Layout
715 Examples
716 \end_layout
717
718 \end_inset
719
720  button to get there.
721 \end_layout
722
723 \begin_layout Labeling
724 \labelwidthstring 00.00.0000
725 \begin_inset Flex Code
726 status collapsed
727
728 \begin_layout Plain Layout
729 images/
730 \end_layout
731
732 \end_inset
733
734  contains image files that are used by the 
735 \begin_inset Flex MenuItem
736 status collapsed
737
738 \begin_layout Plain Layout
739 Document
740 \end_layout
741
742 \end_inset
743
744  dialog.
745  In addition, it also contains the individual icons used in the toolbar
746  and the banners that can be shown when \SpecialChar LyX
747  is launched.
748 \end_layout
749
750 \begin_layout Labeling
751 \labelwidthstring 00.00.0000
752 \begin_inset Flex Code
753 status collapsed
754
755 \begin_layout Plain Layout
756 kbd/
757 \end_layout
758
759 \end_inset
760
761  contains keyboard keymapping files.
762  See 
763 \begin_inset CommandInset ref
764 LatexCommand ref
765 reference "sec:International-Keymap-Stuff"
766
767 \end_inset
768
769  for details.
770 \end_layout
771
772 \begin_layout Labeling
773 \labelwidthstring 00.00.0000
774 \begin_inset Flex Code
775 status collapsed
776
777 \begin_layout Plain Layout
778 layouts/
779 \end_layout
780
781 \end_inset
782
783  contains the text class and module files described in 
784 \begin_inset CommandInset ref
785 LatexCommand ref
786 reference "cha:Installing-New-Document"
787
788 \end_inset
789
790 .
791 \end_layout
792
793 \begin_layout Labeling
794 \labelwidthstring 00.00.0000
795 \begin_inset Flex Code
796 status collapsed
797
798 \begin_layout Plain Layout
799 lyx2lyx
800 \end_layout
801
802 \end_inset
803
804  contains the 
805 \begin_inset Flex Code
806 status collapsed
807
808 \begin_layout Plain Layout
809 lyx2lyx
810 \end_layout
811
812 \end_inset
813
814  Python scripts used to convert between \SpecialChar LyX
815  versions.
816  These can be run from the command line if, say, you want to batch-convert
817  files.
818 \end_layout
819
820 \begin_layout Labeling
821 \labelwidthstring 00.00.0000
822 \begin_inset Flex Code
823 status collapsed
824
825 \begin_layout Plain Layout
826 scripts/
827 \end_layout
828
829 \end_inset
830
831  contains some files that demonstrate the capabilities of the 
832 \begin_inset Flex MenuItem
833 status collapsed
834
835 \begin_layout Plain Layout
836 External
837 \begin_inset space ~
838 \end_inset
839
840 Template
841 \end_layout
842
843 \end_inset
844
845  feature.
846  Also contains some scripts used by \SpecialChar LyX
847  itself.
848 \end_layout
849
850 \begin_layout Labeling
851 \labelwidthstring 00.00.0000
852 \begin_inset Flex Code
853 status collapsed
854
855 \begin_layout Plain Layout
856 templates/
857 \end_layout
858
859 \end_inset
860
861  contains the standard \SpecialChar LyX
862  template files described in 
863 \begin_inset CommandInset ref
864 LatexCommand ref
865 reference "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 1432283705
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 \change_unchanged
15694
15695 \end_layout
15696
15697 \begin_layout Description
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 Extension
15703 \end_layout
15704
15705 \end_inset
15706
15707  [
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 string
15713 \end_layout
15714
15715 \end_inset
15716
15717 =
15718 \begin_inset Quotes erd
15719 \end_inset
15720
15721
15722 \begin_inset Quotes erd
15723 \end_inset
15724
15725 ] The file name extension of an auxiliary file for the list of figures (or
15726  whatever).
15727  \SpecialChar LaTeX
15728  writes the captions to this file.
15729 \end_layout
15730
15731 \begin_layout Description
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 GuiName
15737 \end_layout
15738
15739 \end_inset
15740
15741  [
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 string
15747 \end_layout
15748
15749 \end_inset
15750
15751 =
15752 \begin_inset Quotes erd
15753 \end_inset
15754
15755
15756 \begin_inset Quotes erd
15757 \end_inset
15758
15759 ] The string that will be used in the menus and also for the caption.
15760  This is translated to the current language if babel is used.
15761 \end_layout
15762
15763 \begin_layout Description
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 HTML*
15769 \end_layout
15770
15771 \end_inset
15772
15773  These tags control the XHTML output.
15774  See 
15775 \begin_inset CommandInset ref
15776 LatexCommand ref
15777 reference "sec:Tags-for-XHTML"
15778
15779 \end_inset
15780
15781 .
15782 \end_layout
15783
15784 \begin_layout Description
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 IsPredefined
15790 \end_layout
15791
15792 \end_inset
15793
15794  [
15795 \emph on
15796
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 0
15802 \end_layout
15803
15804 \end_inset
15805
15806
15807 \emph default
15808 ,
15809 \begin_inset space \thinspace{}
15810 \end_inset
15811
15812
15813 \begin_inset Flex Code
15814 status collapsed
15815
15816 \begin_layout Plain Layout
15817 1
15818 \end_layout
15819
15820 \end_inset
15821
15822 ] Indicates whether the float is already defined in the document class or
15823  if instead the \SpecialChar LaTeX
15824  package 
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 float
15830 \end_layout
15831
15832 \end_inset
15833
15834  needs to be loaded to define it on-the-fly.
15835  The default is 
15836 \begin_inset Flex Code
15837 status collapsed
15838
15839 \begin_layout Plain Layout
15840 0
15841 \end_layout
15842
15843 \end_inset
15844
15845 , which means: 
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 float
15851 \end_layout
15852
15853 \end_inset
15854
15855  is used.
15856  It should be set to 
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861 1
15862 \end_layout
15863
15864 \end_inset
15865
15866  if the float is already defined by the \SpecialChar LaTeX
15867  document class.
15868 \end_layout
15869
15870 \begin_layout Description
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 ListCommand
15876 \end_layout
15877
15878 \end_inset
15879
15880  [
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 string
15886 \end_layout
15887
15888 \end_inset
15889
15890 =
15891 \begin_inset Quotes erd
15892 \end_inset
15893
15894
15895 \begin_inset Quotes erd
15896 \end_inset
15897
15898 ] The command used to generate a list of floats of this type; the leading
15899  `
15900 \backslash
15901 ' must be omitted.
15902  This 
15903 \emph on
15904 must
15905 \emph default
15906  be given if 
15907 \begin_inset Flex Code
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911 UsesFloatPkg
15912 \end_layout
15913
15914 \end_inset
15915
15916  is false, since there is no standard way to generate this command.
15917  It is ignored if 
15918 \begin_inset Flex Code
15919 status collapsed
15920
15921 \begin_layout Plain Layout
15922 UsesFloatPkg
15923 \end_layout
15924
15925 \end_inset
15926
15927  is true, since in that case there is a standard way to define the command.
15928 \end_layout
15929
15930 \begin_layout Description
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 ListName
15936 \end_layout
15937
15938 \end_inset
15939
15940  [
15941 \begin_inset Flex Code
15942 status collapsed
15943
15944 \begin_layout Plain Layout
15945 string
15946 \end_layout
15947
15948 \end_inset
15949
15950 =
15951 \begin_inset Quotes erd
15952 \end_inset
15953
15954
15955 \begin_inset Quotes erd
15956 \end_inset
15957
15958 ] A title for a list of floats of this kind (list of figures, tables, or
15959  whatever).
15960  It is used for the screen label within \SpecialChar LyX
15961 , it is used by \SpecialChar LaTeX
15962  for the title and
15963  it is used as the title in the XHTML output.
15964  It will be translated to the document language.
15965 \end_layout
15966
15967 \begin_layout Description
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 NumberWithin
15973 \end_layout
15974
15975 \end_inset
15976
15977  [
15978 \begin_inset Flex Code
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 string
15983 \end_layout
15984
15985 \end_inset
15986
15987 =
15988 \begin_inset Quotes erd
15989 \end_inset
15990
15991
15992 \begin_inset Quotes erd
15993 \end_inset
15994
15995 ] This (optional) argument determines whether floats of this class will
15996  be numbered within some sectional unit of the document.
15997  For example, if 
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 NumberWithin
16003 \end_layout
16004
16005 \end_inset
16006
16007  is set to 
16008 \begin_inset Quotes eld
16009 \end_inset
16010
16011
16012 \begin_inset Flex Code
16013 status collapsed
16014
16015 \begin_layout Plain Layout
16016 chapter
16017 \end_layout
16018
16019 \end_inset
16020
16021
16022 \begin_inset Quotes erd
16023 \end_inset
16024
16025 , the floats will be numbered within chapters.
16026  
16027 \end_layout
16028
16029 \begin_layout Description
16030 \begin_inset Flex Code
16031 status collapsed
16032
16033 \begin_layout Plain Layout
16034 Placement
16035 \end_layout
16036
16037 \end_inset
16038
16039  [
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 string
16045 \end_layout
16046
16047 \end_inset
16048
16049 =
16050 \begin_inset Quotes erd
16051 \end_inset
16052
16053
16054 \begin_inset Quotes erd
16055 \end_inset
16056
16057 ] The default placement for the given class of floats.
16058  The string should be as in standard \SpecialChar LaTeX
16059
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 t
16065 \end_layout
16066
16067 \end_inset
16068
16069
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074 b
16075 \end_layout
16076
16077 \end_inset
16078
16079
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 p
16085 \end_layout
16086
16087 \end_inset
16088
16089  and 
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094 h
16095 \end_layout
16096
16097 \end_inset
16098
16099  for top, bottom, page, and here, respectively.
16100 \begin_inset Foot
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 Note that the order of these letters in the string is irrelevant, like in
16105  \SpecialChar LaTeX
16106 .
16107 \end_layout
16108
16109 \end_inset
16110
16111  On top of that there is a new type, 
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 H
16117 \end_layout
16118
16119 \end_inset
16120
16121 , which does not really correspond to a float, since it means: put it 
16122 \begin_inset Quotes eld
16123 \end_inset
16124
16125 here
16126 \begin_inset Quotes erd
16127 \end_inset
16128
16129  and nowhere else.
16130  Note however that the 
16131 \begin_inset Flex Code
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 H
16136 \end_layout
16137
16138 \end_inset
16139
16140  specifier is special and, because of implementation details, cannot be
16141  used in non-built in float types.
16142  If you do not understand what this means, just use 
16143 \begin_inset Quotes eld
16144 \end_inset
16145
16146
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 tbp
16152 \end_layout
16153
16154 \end_inset
16155
16156
16157 \begin_inset Quotes erd
16158 \end_inset
16159
16160 .
16161 \end_layout
16162
16163 \begin_layout Description
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168 RefPrefix
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 ] The prefix to use when creating labels referring to floats of this type.
16184  This allows the use of formatted references.
16185  Note that you can remove any 
16186 \begin_inset Flex Code
16187 status collapsed
16188
16189 \begin_layout Plain Layout
16190 RefPrefix
16191 \end_layout
16192
16193 \end_inset
16194
16195  set by a copied style by using the special value 
16196 \begin_inset Quotes eld
16197 \end_inset
16198
16199 OFF
16200 \begin_inset Quotes erd
16201 \end_inset
16202
16203 , which must be all caps.
16204 \end_layout
16205
16206 \begin_layout Description
16207 \begin_inset Flex Code
16208 status collapsed
16209
16210 \begin_layout Plain Layout
16211 Style
16212 \end_layout
16213
16214 \end_inset
16215
16216  [
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 string
16222 \end_layout
16223
16224 \end_inset
16225
16226 =
16227 \begin_inset Quotes erd
16228 \end_inset
16229
16230
16231 \begin_inset Quotes erd
16232 \end_inset
16233
16234 ] The style used when defining the float using 
16235 \begin_inset Flex Code
16236 status collapsed
16237
16238 \begin_layout Plain Layout
16239
16240 \backslash
16241 newfloat
16242 \end_layout
16243
16244 \end_inset
16245
16246 .
16247 \end_layout
16248
16249 \begin_layout Description
16250 \begin_inset Flex Code
16251 status collapsed
16252
16253 \begin_layout Plain Layout
16254 Type
16255 \end_layout
16256
16257 \end_inset
16258
16259  [
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 string
16265 \end_layout
16266
16267 \end_inset
16268
16269 =
16270 \begin_inset Quotes erd
16271 \end_inset
16272
16273
16274 \begin_inset Quotes erd
16275 \end_inset
16276
16277 ] The 
16278 \begin_inset Quotes eld
16279 \end_inset
16280
16281 type
16282 \begin_inset Quotes erd
16283 \end_inset
16284
16285  of the new class of floats, like program or algorithm.
16286  After the appropriate 
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291
16292 \backslash
16293 newfloat
16294 \end_layout
16295
16296 \end_inset
16297
16298 , commands such as 
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303
16304 \backslash
16305 begin{program}
16306 \end_layout
16307
16308 \end_inset
16309
16310  or 
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315
16316 \backslash
16317 end{algorithm*}
16318 \end_layout
16319
16320 \end_inset
16321
16322  will be available.
16323 \end_layout
16324
16325 \begin_layout Description
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 UsesFloatPkg
16331 \end_layout
16332
16333 \end_inset
16334
16335  [
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 0
16341 \end_layout
16342
16343 \end_inset
16344
16345 ,
16346 \begin_inset space \thinspace{}
16347 \end_inset
16348
16349
16350 \begin_inset Flex Code
16351 status collapsed
16352
16353 \begin_layout Plain Layout
16354
16355 \emph on
16356 1
16357 \end_layout
16358
16359 \end_inset
16360
16361 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16362  package 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367 float
16368 \end_layout
16369
16370 \end_inset
16371
16372 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16373  itself.
16374 \end_layout
16375
16376 \begin_layout Standard
16377 Note that defining a float with type 
16378 \begin_inset Flex Code
16379 status collapsed
16380
16381 \begin_layout Plain Layout
16382
16383 \emph on
16384 type
16385 \end_layout
16386
16387 \end_inset
16388
16389  automatically defines the corresponding counter with name 
16390 \begin_inset Flex Code
16391 status collapsed
16392
16393 \begin_layout Plain Layout
16394
16395 \emph on
16396 type
16397 \end_layout
16398
16399 \end_inset
16400
16401 .
16402 \end_layout
16403
16404 \begin_layout Subsection
16405 Flex insets and InsetLayout
16406 \begin_inset CommandInset label
16407 LatexCommand label
16408 name "sub:Flex-insets-and"
16409
16410 \end_inset
16411
16412
16413 \end_layout
16414
16415 \begin_layout Standard
16416 Flex insets come in three different kinds: 
16417 \end_layout
16418
16419 \begin_layout Itemize
16420 character style (
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 CharStyle
16426 \end_layout
16427
16428 \end_inset
16429
16430 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16431  commands as 
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436
16437 \backslash
16438 noun
16439 \end_layout
16440
16441 \end_inset
16442
16443  and 
16444 \begin_inset Flex Code
16445 status collapsed
16446
16447 \begin_layout Plain Layout
16448
16449 \backslash
16450 code
16451 \end_layout
16452
16453 \end_inset
16454
16455 .
16456 \end_layout
16457
16458 \begin_layout Itemize
16459 user custom (
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 Custom
16465 \end_layout
16466
16467 \end_inset
16468
16469 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16470  code,
16471  footnote, and the like.
16472  An obvious example is an endnote inset, which is defined in the 
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 endnote
16478 \end_layout
16479
16480 \end_inset
16481
16482  module.
16483 \end_layout
16484
16485 \begin_layout Itemize
16486 XML elements (
16487 \begin_inset Flex Code
16488 status collapsed
16489
16490 \begin_layout Plain Layout
16491 Element
16492 \end_layout
16493
16494 \end_inset
16495
16496 ): For use with DocBook classes.
16497 \end_layout
16498
16499 \begin_layout Standard
16500 Flex insets are defined using the 
16501 \begin_inset Flex Code
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505 InsetLayout
16506 \end_layout
16507
16508 \end_inset
16509
16510  tag, which shall be explained in a moment.
16511 \end_layout
16512
16513 \begin_layout Standard
16514 The 
16515 \begin_inset Flex Code
16516 status collapsed
16517
16518 \begin_layout Plain Layout
16519 InsetLayout
16520 \end_layout
16521
16522 \end_inset
16523
16524  tag also serves another function: It can be used to customize the general
16525  layout of many different types of insets.
16526  Currently, 
16527 \begin_inset Flex Code
16528 status collapsed
16529
16530 \begin_layout Plain Layout
16531 InsetLayout
16532 \end_layout
16533
16534 \end_inset
16535
16536  can be used to customize the layout parameters for footnotes, marginal
16537  notes, note insets, \SpecialChar TeX
16538  code (ERT) insets, branches, listings, indexes, boxes,
16539  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16540 \end_layout
16541
16542 \begin_layout Standard
16543 The 
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 InsetLayout
16549 \end_layout
16550
16551 \end_inset
16552
16553  definition must begin with a line of the form:
16554 \end_layout
16555
16556 \begin_layout LyX-Code
16557 InsetLayout <type>
16558 \end_layout
16559
16560 \begin_layout Standard
16561 Here 
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 <Type>
16567 \end_layout
16568
16569 \end_inset
16570
16571  indicates the inset whose layout is being defined, and here there are four
16572  cases.
16573 \end_layout
16574
16575 \begin_layout Enumerate
16576 The layout for a pre-existing inset is being modified.
16577  In this case, can be 
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 <Type>
16583 \end_layout
16584
16585 \end_inset
16586
16587  any one of the following: 
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Algorithm
16593 \end_layout
16594
16595 \end_inset
16596
16597
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602 Branch
16603 \end_layout
16604
16605 \end_inset
16606
16607
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 Box
16613 \end_layout
16614
16615 \end_inset
16616
16617
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 Box:shaded
16623 \end_layout
16624
16625 \end_inset
16626
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 Caption:Standard
16633 \end_layout
16634
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 ERT
16643 \end_layout
16644
16645 \end_inset
16646
16647
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 Figure
16653 \end_layout
16654
16655 \end_inset
16656
16657
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 Foot
16663 \end_layout
16664
16665 \end_inset
16666
16667
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 Index
16673 \end_layout
16674
16675 \end_inset
16676
16677
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 Info
16683 \end_layout
16684
16685 \end_inset
16686
16687
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 Info:menu
16693 \end_layout
16694
16695 \end_inset
16696
16697
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 Info:shortcut
16703 \end_layout
16704
16705 \end_inset
16706
16707
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 Info:shortcuts
16713 \end_layout
16714
16715 \end_inset
16716
16717
16718 \begin_inset Flex Code
16719 status collapsed
16720
16721 \begin_layout Plain Layout
16722 Listings
16723 \end_layout
16724
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 Marginal
16733 \end_layout
16734
16735 \end_inset
16736
16737
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 Note:Comment
16743 \end_layout
16744
16745 \end_inset
16746
16747
16748 \begin_inset Flex Code
16749 status collapsed
16750
16751 \begin_layout Plain Layout
16752 Note:Note
16753 \end_layout
16754
16755 \end_inset
16756
16757
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 Note:Greyedout
16763 \end_layout
16764
16765 \end_inset
16766
16767
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 Table
16773 \end_layout
16774
16775 \end_inset
16776
16777 , or 
16778 \begin_inset Flex Code
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 URL
16783 \end_layout
16784
16785 \end_inset
16786
16787 .
16788 \end_layout
16789
16790 \begin_layout Enumerate
16791 The layout for a Flex inset is being defined.
16792  In this case, 
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 <Type>
16798 \end_layout
16799
16800 \end_inset
16801
16802  must be of the form 
16803 \begin_inset Quotes eld
16804 \end_inset
16805
16806
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 Flex:<name>
16812 \end_layout
16813
16814 \end_inset
16815
16816
16817 \begin_inset Quotes erd
16818 \end_inset
16819
16820 , where 
16821 \begin_inset Flex Code
16822 status collapsed
16823
16824 \begin_layout Plain Layout
16825 name
16826 \end_layout
16827
16828 \end_inset
16829
16830  may be be any valid identifier not used by a pre-existing Flex inset.
16831  The identifier may include spaces, but in that case the whole thing must
16832  be wrapped in quotes.
16833  Note that the definition of a flex inset 
16834 \emph on
16835 must 
16836 \emph default
16837 also include a 
16838 \begin_inset Flex Code
16839 status collapsed
16840
16841 \begin_layout Plain Layout
16842 \SpecialChar LyX
16843 Type
16844 \end_layout
16845
16846 \end_inset
16847
16848  entry, declaring which type of inset it defines.
16849 \end_layout
16850
16851 \begin_layout Enumerate
16852 The layout for user specific branch is being defined.
16853  In this case, 
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 <Type>
16859 \end_layout
16860
16861 \end_inset
16862
16863  must be of the form 
16864 \begin_inset Quotes eld
16865 \end_inset
16866
16867
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 Branch:<name>
16873 \end_layout
16874
16875 \end_inset
16876
16877
16878 \begin_inset Quotes erd
16879 \end_inset
16880
16881 , where 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 name
16887 \end_layout
16888
16889 \end_inset
16890
16891  may be be any valid identifier of branch defined in user's document.
16892  The identifier may include spaces, but in that case the whole thing must
16893  be wrapped in quotes.
16894  The main purpose of this feature is to allow \SpecialChar LaTeX
16895  wrapping around specific
16896  branches as user needs.
16897 \end_layout
16898
16899 \begin_layout Enumerate
16900 The layout of a user (or class) specific caption is being defined.
16901  In this case, 
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 <Type>
16907 \end_layout
16908
16909 \end_inset
16910
16911  must be of the form 
16912 \begin_inset Quotes eld
16913 \end_inset
16914
16915
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 Caption:<name>
16921 \end_layout
16922
16923 \end_inset
16924
16925
16926 \begin_inset Quotes erd
16927 \end_inset
16928
16929 , where 
16930 \begin_inset Flex Code
16931 status collapsed
16932
16933 \begin_layout Plain Layout
16934 name
16935 \end_layout
16936
16937 \end_inset
16938
16939  specifies the name of the caption as it appears in the menu.
16940  Have a look at the standard caption (
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 Caption:Standard
16946 \end_layout
16947
16948 \end_inset
16949
16950 ), the specific captions of the KOMA-Script classes (
16951 \begin_inset Flex Code
16952 status collapsed
16953
16954 \begin_layout Plain Layout
16955 Caption:Above
16956 \end_layout
16957
16958 \end_inset
16959
16960
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 Caption:Below
16966 \end_layout
16967
16968 \end_inset
16969
16970 ) or the module 
16971 \family sans
16972 Multilingual
16973 \begin_inset space ~
16974 \end_inset
16975
16976 Captions 
16977 \family default
16978 (
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 Caption:Bicaption
16984 \end_layout
16985
16986 \end_inset
16987
16988 ) for applications.
16989 \end_layout
16990
16991 \begin_layout Standard
16992 The 
16993 \begin_inset Flex Code
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 InsetLayout
16998 \end_layout
16999
17000 \end_inset
17001
17002  definition can contain the following entries:
17003 \end_layout
17004
17005 \begin_layout Description
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 Argument
17011 \end_layout
17012
17013 \end_inset
17014
17015  [
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 int
17021 \end_layout
17022
17023 \end_inset
17024
17025 ] Defines argument number of a command\SpecialChar breakableslash
17026 environment associated with the current
17027  layout.
17028  The definition must end with 
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 EndArgument
17034 \end_layout
17035
17036 \end_inset
17037
17038 .
17039  See 
17040 \begin_inset CommandInset ref
17041 LatexCommand ref
17042 reference "sub:Paragraph-Styles"
17043
17044 \end_inset
17045
17046  for details.
17047 \end_layout
17048
17049 \begin_layout Description
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 BabelPreamble
17055 \end_layout
17056
17057 \end_inset
17058
17059  Preamble for changing language commands; see 
17060 \begin_inset CommandInset ref
17061 LatexCommand ref
17062 reference "sub:I18n"
17063
17064 \end_inset
17065
17066 .
17067 \end_layout
17068
17069 \begin_layout Description
17070 \begin_inset Flex Code
17071 status collapsed
17072
17073 \begin_layout Plain Layout
17074 BgColor
17075 \end_layout
17076
17077 \end_inset
17078
17079  [
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084 <name>
17085 \end_layout
17086
17087 \end_inset
17088
17089 ] The color for the inset's background.
17090  See 
17091 \begin_inset CommandInset ref
17092 LatexCommand ref
17093 reference "chap:Names-of-colors"
17094
17095 \end_inset
17096
17097  for a list of the available color names.
17098 \end_layout
17099
17100 \begin_layout Description
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105 ContentAsLabel
17106 \end_layout
17107
17108 \end_inset
17109
17110  [
17111 \begin_inset Flex Code
17112 status collapsed
17113
17114 \begin_layout Plain Layout
17115
17116 \emph on
17117 0
17118 \end_layout
17119
17120 \end_inset
17121
17122 ,
17123 \begin_inset space \thinspace{}
17124 \end_inset
17125
17126
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 1
17132 \end_layout
17133
17134 \end_inset
17135
17136 ] Whether to use the content of the inset as the label, when the inset is
17137  closed.
17138  Default is false.
17139 \end_layout
17140
17141 \begin_layout Description
17142 \begin_inset Flex Code
17143 status collapsed
17144
17145 \begin_layout Plain Layout
17146 CopyStyle
17147 \end_layout
17148
17149 \end_inset
17150
17151  [
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156 <type>
17157 \end_layout
17158
17159 \end_inset
17160
17161 ] As with paragraph styles, see 
17162 \begin_inset CommandInset ref
17163 LatexCommand ref
17164 reference "sub:Paragraph-Styles"
17165
17166 \end_inset
17167
17168 .
17169  Note that you need to specify the complete type, e.
17170 \begin_inset space \thinspace{}
17171 \end_inset
17172
17173 g.
17174 \begin_inset space ~
17175 \end_inset
17176
17177
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182 CopyStyle Flex:<name>
17183 \end_layout
17184
17185 \end_inset
17186
17187 .
17188 \end_layout
17189
17190 \begin_layout Description
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 CustomPars
17196 \end_layout
17197
17198 \end_inset
17199
17200  [
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205
17206 \emph on
17207 0
17208 \end_layout
17209
17210 \end_inset
17211
17212 ,
17213 \begin_inset space \thinspace{}
17214 \end_inset
17215
17216
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 1
17222 \end_layout
17223
17224 \end_inset
17225
17226 ] Indicates whether the user may employ the Paragraph Settings dialog to
17227  customize the paragraph.
17228 \end_layout
17229
17230 \begin_layout Description
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 Decoration
17236 \end_layout
17237
17238 \end_inset
17239
17240  can be 
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 Classic
17246 \end_layout
17247
17248 \end_inset
17249
17250
17251 \begin_inset Flex Code
17252 status collapsed
17253
17254 \begin_layout Plain Layout
17255 Minimalistic
17256 \end_layout
17257
17258 \end_inset
17259
17260 , or 
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265 Conglomerate
17266 \end_layout
17267
17268 \end_inset
17269
17270 , describing the rendering style used for the inset's frame and buttons.
17271  Footnotes generally use 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 Classic
17277 \end_layout
17278
17279 \end_inset
17280
17281 , ERT insets generally 
17282 \begin_inset Flex Code
17283 status collapsed
17284
17285 \begin_layout Plain Layout
17286 Minimalistic
17287 \end_layout
17288
17289 \end_inset
17290
17291 , and character styles 
17292 \begin_inset Flex Code
17293 status collapsed
17294
17295 \begin_layout Plain Layout
17296 Conglomerate
17297 \end_layout
17298
17299 \end_inset
17300
17301 .
17302 \end_layout
17303
17304 \begin_layout Description
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 Display
17310 \end_layout
17311
17312 \end_inset
17313
17314  [
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319 0
17320 \end_layout
17321
17322 \end_inset
17323
17324 ,
17325 \emph on
17326
17327 \begin_inset space \thinspace{}
17328 \end_inset
17329
17330
17331 \emph default
17332
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337
17338 \emph on
17339 1
17340 \end_layout
17341
17342 \end_inset
17343
17344 ] Only useful if 
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 LatexType
17350 \end_layout
17351
17352 \end_inset
17353
17354  is 
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 Environment
17360 \end_layout
17361
17362 \end_inset
17363
17364 .
17365  Indicates whether the environment will stand on its own in the output or
17366  will appear inline with the surrounding text.
17367  If set to false, it is supposed that the \SpecialChar LaTeX
17368  environment ignores white space
17369  (including one newline character) after the 
17370 \begin_inset Flex Code
17371 status collapsed
17372
17373 \begin_layout Plain Layout
17374
17375 \backslash
17376 begin{
17377 \emph on
17378 LatexName
17379 \emph default
17380 }
17381 \end_layout
17382
17383 \end_inset
17384
17385  and 
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390
17391 \backslash
17392 end{
17393 \emph on
17394 LatexName
17395 \emph default
17396 }
17397 \end_layout
17398
17399 \end_inset
17400
17401  tags.
17402  Default is true.
17403 \end_layout
17404
17405 \begin_layout Description
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 End
17411 \end_layout
17412
17413 \end_inset
17414
17415  Required at the end of the 
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 InsetLayout
17421 \end_layout
17422
17423 \end_inset
17424
17425  declarations.
17426 \end_layout
17427
17428 \begin_layout Description
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 Font
17434 \end_layout
17435
17436 \end_inset
17437
17438  The font used for both the text body 
17439 \emph on
17440 and
17441 \emph default
17442  the label.
17443  See 
17444 \begin_inset CommandInset ref
17445 LatexCommand ref
17446 reference "sub:Font-description"
17447
17448 \end_inset
17449
17450 .
17451  Note that defining this font automatically defines the 
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 LabelFont
17457 \end_layout
17458
17459 \end_inset
17460
17461  to the same value, so define this first and define 
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 LabelFont
17467 \end_layout
17468
17469 \end_inset
17470
17471  later if you want them to be different.
17472 \change_inserted -195340706 1421002157
17473
17474 \end_layout
17475
17476 \begin_layout Description
17477
17478 \change_inserted -195340706 1421002157
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483
17484 \change_inserted -195340706 1421002157
17485 FixedWidthPreambleEncoding
17486 \end_layout
17487
17488 \end_inset
17489
17490  [
17491 \begin_inset Flex Code
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \change_inserted -195340706 1421002157
17497
17498 \emph on
17499 0
17500 \end_layout
17501
17502 \end_inset
17503
17504 ,
17505 \begin_inset space \thinspace{}
17506 \end_inset
17507
17508
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513
17514 \change_inserted -195340706 1421002157
17515 1
17516 \end_layout
17517
17518 \end_inset
17519
17520 ] Force a fixed width encoding for the translated contents of 
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525
17526 \change_inserted -195340706 1421002157
17527 BabelPreamble
17528 \end_layout
17529
17530 \end_inset
17531
17532  and 
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537
17538 \change_inserted -195340706 1421002157
17539 LangPreamble
17540 \end_layout
17541
17542 \end_inset
17543
17544  code generated by this layout.
17545  This is needed for special packages like the listings package that do not
17546  work with variable width encodings such as utf8.
17547  Default is false.
17548  This setting is ignored if fully unicode aware \SpecialChar LaTeX
17549  backends such as Xe\SpecialChar LaTeX
17550  are
17551  used.
17552 \change_unchanged
17553
17554 \end_layout
17555
17556 \begin_layout Description
17557 \begin_inset Flex Code
17558 status collapsed
17559
17560 \begin_layout Plain Layout
17561 ForceLocalFontSwitch
17562 \end_layout
17563
17564 \end_inset
17565
17566  [
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571
17572 \emph on
17573 0
17574 \end_layout
17575
17576 \end_inset
17577
17578 ,
17579 \begin_inset space \thinspace{}
17580 \end_inset
17581
17582
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 1
17588 \end_layout
17589
17590 \end_inset
17591
17592 ] When using babel, always use a local font switch (
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597
17598 \backslash
17599 foreignlanguage
17600 \end_layout
17601
17602 \end_inset
17603
17604 ), never a global one (such as 
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609
17610 \backslash
17611 selectlanguage
17612 \end_layout
17613
17614 \end_inset
17615
17616 ).
17617 \end_layout
17618
17619 \begin_layout Description
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 ForceLTR
17625 \end_layout
17626
17627 \end_inset
17628
17629  [
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634
17635 \emph on
17636 0
17637 \end_layout
17638
17639 \end_inset
17640
17641 ,
17642 \begin_inset space \thinspace{}
17643 \end_inset
17644
17645
17646 \begin_inset Flex Code
17647 status collapsed
17648
17649 \begin_layout Plain Layout
17650 1
17651 \end_layout
17652
17653 \end_inset
17654
17655 ] Force the 
17656 \begin_inset Quotes eld
17657 \end_inset
17658
17659 latex
17660 \begin_inset Quotes erd
17661 \end_inset
17662
17663  language, leading to Left-to-Right (Latin) output, e.
17664 \begin_inset space \thinspace{}
17665 \end_inset
17666
17667 g.
17668 \begin_inset space \space{}
17669 \end_inset
17670
17671 in \SpecialChar TeX
17672  code or URL.
17673  A kludge.
17674 \change_inserted -712698321 1417441977
17675
17676 \end_layout
17677
17678 \begin_layout Description
17679
17680 \change_inserted -712698321 1417442090
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685
17686 \change_inserted -712698321 1417441983
17687 ForceOwnlines
17688 \end_layout
17689
17690 \end_inset
17691
17692  [
17693 \begin_inset Flex Code
17694 status collapsed
17695
17696 \begin_layout Plain Layout
17697
17698 \change_inserted -712698321 1417441978
17699
17700 \emph on
17701 0
17702 \end_layout
17703
17704 \end_inset
17705
17706 ,
17707 \begin_inset space \thinspace{}
17708 \end_inset
17709
17710
17711 \begin_inset Flex Code
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715
17716 \change_inserted -712698321 1417441978
17717 1
17718 \end_layout
17719
17720 \end_inset
17721
17722 ] Force a a line break in the \SpecialChar LaTeX
17723  output before the inset starts and after
17724  the inset ends.
17725  This assures the inset itself is output on its own lines, for parsing purposes.
17726
17727 \change_inserted 274215730 1419105878
17728  Default is false.
17729 \change_unchanged
17730
17731 \end_layout
17732
17733 \begin_layout Description
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 ForcePlain
17739 \end_layout
17740
17741 \end_inset
17742
17743  [
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748
17749 \emph on
17750 0
17751 \end_layout
17752
17753 \end_inset
17754
17755 ,
17756 \begin_inset space \thinspace{}
17757 \end_inset
17758
17759
17760 \begin_inset Flex Code
17761 status collapsed
17762
17763 \begin_layout Plain Layout
17764 1
17765 \end_layout
17766
17767 \end_inset
17768
17769 ] Indicates whether the 
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 PlainLayout
17775 \end_layout
17776
17777 \end_inset
17778
17779  should be used or, instead, the user can change the paragraph style used
17780  in the inset.
17781  Default is false.
17782 \end_layout
17783
17784 \begin_layout Description
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 FreeSpacing
17790 \end_layout
17791
17792 \end_inset
17793
17794  [
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799
17800 \emph on
17801 0
17802 \end_layout
17803
17804 \end_inset
17805
17806 ,
17807 \begin_inset space \thinspace{}
17808 \end_inset
17809
17810
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 1
17816 \end_layout
17817
17818 \end_inset
17819
17820 ] As with paragraph styles, see 
17821 \begin_inset CommandInset ref
17822 LatexCommand ref
17823 reference "sub:Paragraph-Styles"
17824
17825 \end_inset
17826
17827 .
17828 \end_layout
17829
17830 \begin_layout Description
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 HTML*
17836 \end_layout
17837
17838 \end_inset
17839
17840  These tags control the XHTML output.
17841  See 
17842 \begin_inset CommandInset ref
17843 LatexCommand ref
17844 reference "sec:Tags-for-XHTML"
17845
17846 \end_inset
17847
17848 .
17849 \end_layout
17850
17851 \begin_layout Description
17852 \begin_inset Flex Code
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856 InToc
17857 \end_layout
17858
17859 \end_inset
17860
17861  [
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866
17867 \emph on
17868 0
17869 \end_layout
17870
17871 \end_inset
17872
17873 ,
17874 \begin_inset space \thinspace{}
17875 \end_inset
17876
17877
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 1
17883 \end_layout
17884
17885 \end_inset
17886
17887 ] Whether to include the contents of this inset in the strings generated
17888  for the `Outline' pane.
17889  One would not, for example, want the content of a footnote in a section
17890  header to be included in the TOC displayed in the outline, but one would
17891  normally want the content of a character style displayed.
17892  Default is false: not to include.
17893 \end_layout
17894
17895 \begin_layout Description
17896 \begin_inset Flex Code
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900 KeepEmpty
17901 \end_layout
17902
17903 \end_inset
17904
17905  [
17906 \emph on
17907
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 0
17913 \end_layout
17914
17915 \end_inset
17916
17917
17918 \emph default
17919 ,
17920 \begin_inset space \thinspace{}
17921 \end_inset
17922
17923
17924 \begin_inset Flex Code
17925 status collapsed
17926
17927 \begin_layout Plain Layout
17928 1
17929 \end_layout
17930
17931 \end_inset
17932
17933 ] As with paragraph styles, see 
17934 \begin_inset CommandInset ref
17935 LatexCommand ref
17936 reference "sub:Paragraph-Styles"
17937
17938 \end_inset
17939
17940 .
17941 \end_layout
17942
17943 \begin_layout Description
17944 \begin_inset Flex Code
17945 status collapsed
17946
17947 \begin_layout Plain Layout
17948 LabelFont
17949 \end_layout
17950
17951 \end_inset
17952
17953  The font used for the label.
17954  See 
17955 \begin_inset CommandInset ref
17956 LatexCommand ref
17957 reference "sub:Font-description"
17958
17959 \end_inset
17960
17961 .
17962  Note that this definition can never appear before 
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 Font
17968 \end_layout
17969
17970 \end_inset
17971
17972 , lest it be ineffective.
17973 \end_layout
17974
17975 \begin_layout Description
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 LabelString
17981 \end_layout
17982
17983 \end_inset
17984
17985  [
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 string
17991 \end_layout
17992
17993 \end_inset
17994
17995 =
17996 \begin_inset Quotes erd
17997 \end_inset
17998
17999
18000 \begin_inset Quotes erd
18001 \end_inset
18002
18003 ] What will be displayed on the button or elsewhere as the inset label.
18004  Some inset types (
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 \SpecialChar TeX
18010  code
18011 \end_layout
18012
18013 \end_inset
18014
18015  and 
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020 Branch
18021 \end_layout
18022
18023 \end_inset
18024
18025 ) modify this label on the fly.
18026 \end_layout
18027
18028 \begin_layout Description
18029 \begin_inset Flex Code
18030 status collapsed
18031
18032 \begin_layout Plain Layout
18033 LangPreamble
18034 \end_layout
18035
18036 \end_inset
18037
18038  Language dependent preamble; see 
18039 \begin_inset CommandInset ref
18040 LatexCommand ref
18041 reference "sub:I18n"
18042
18043 \end_inset
18044
18045 .
18046 \end_layout
18047
18048 \begin_layout Description
18049 \begin_inset Flex Code
18050 status collapsed
18051
18052 \begin_layout Plain Layout
18053 LatexName
18054 \end_layout
18055
18056 \end_inset
18057
18058  [
18059 \begin_inset Flex Code
18060 status collapsed
18061
18062 \begin_layout Plain Layout
18063 <name>
18064 \end_layout
18065
18066 \end_inset
18067
18068 ] The name of the corresponding \SpecialChar LaTeX
18069  stuff.
18070  Either the environment or command name.
18071 \end_layout
18072
18073 \begin_layout Description
18074 \begin_inset Flex Code
18075 status collapsed
18076
18077 \begin_layout Plain Layout
18078 LatexParam
18079 \end_layout
18080
18081 \end_inset
18082
18083  [
18084 \begin_inset Flex Code
18085 status collapsed
18086
18087 \begin_layout Plain Layout
18088 <parameter>
18089 \end_layout
18090
18091 \end_inset
18092
18093 ] The optional parameter for the corresponding 
18094 \begin_inset Flex Code
18095 status collapsed
18096
18097 \begin_layout Plain Layout
18098 LatexName
18099 \end_layout
18100
18101 \end_inset
18102
18103  stuff, including possible bracket pairs like 
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 []
18109 \end_layout
18110
18111 \end_inset
18112
18113 .
18114  This parameter cannot be changed from within \SpecialChar LyX
18115  (use 
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120 Argument
18121 \end_layout
18122
18123 \end_inset
18124
18125  for customizable parameters).
18126  It will be output as is after all \SpecialChar LaTeX
18127  
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 Argument
18133 \end_layout
18134
18135 \end_inset
18136
18137 s.
18138 \end_layout
18139
18140 \begin_layout Description
18141 \begin_inset Flex Code
18142 status collapsed
18143
18144 \begin_layout Plain Layout
18145 LatexType
18146 \end_layout
18147
18148 \end_inset
18149
18150  [
18151 \begin_inset Flex Code
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 Command, Environment, None
18156 \end_layout
18157
18158 \end_inset
18159
18160 ] How the style should be translated into \SpecialChar LaTeX
18161 .
18162 \begin_inset Foot
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 LatexType
18171 \end_layout
18172
18173 \end_inset
18174
18175  is perhaps a bit misleading, since these rules apply to SGML classes too.
18176  Visit the SGML class files for specific examples.
18177 \end_layout
18178
18179 \end_inset
18180
18181
18182 \begin_inset Separator parbreak
18183 \end_inset
18184
18185
18186 \end_layout
18187
18188 \begin_deeper
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 None
18195 \end_layout
18196
18197 \end_inset
18198
18199  means nothing special
18200 \end_layout
18201
18202 \begin_layout Description
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207 Command
18208 \end_layout
18209
18210 \end_inset
18211
18212  means 
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217
18218 \backslash
18219
18220 \emph on
18221 LatexName
18222 \emph default
18223 {\SpecialChar ldots
18224 }
18225 \end_layout
18226
18227 \end_inset
18228
18229
18230 \end_layout
18231
18232 \begin_layout Description
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 Environment
18238 \end_layout
18239
18240 \end_inset
18241
18242  means 
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247
18248 \backslash
18249 begin{
18250 \emph on
18251 LatexName
18252 \emph default
18253 }\SpecialChar ldots
18254
18255 \backslash
18256 end{
18257 \emph on
18258 LatexName
18259 \emph default
18260 }
18261 \end_layout
18262
18263 \end_inset
18264
18265
18266 \end_layout
18267
18268 \begin_layout Standard
18269 Putting the last few things together, the \SpecialChar LaTeX
18270  output will be either: 
18271 \end_layout
18272
18273 \begin_layout LyX-Code
18274
18275 \backslash
18276 LatexName[LatexParam]{\SpecialChar ldots
18277 }
18278 \end_layout
18279
18280 \begin_layout Standard
18281 or: 
18282 \end_layout
18283
18284 \begin_layout LyX-Code
18285
18286 \backslash
18287 begin{LatexName}[LatexParam] \SpecialChar ldots
18288  
18289 \backslash
18290 end{LatexName}
18291 \end_layout
18292
18293 \begin_layout Standard
18294 depending upon the \SpecialChar LaTeX
18295  type.
18296 \end_layout
18297
18298 \end_deeper
18299 \begin_layout Description
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 LeftDelim
18305 \end_layout
18306
18307 \end_inset
18308
18309  [
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 string
18315 \end_layout
18316
18317 \end_inset
18318
18319 ] A string that is put at the beginning of the layout content.
18320  A line break in the output can be indicated by 
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 <br/>
18326 \end_layout
18327
18328 \end_inset
18329
18330 .
18331 \end_layout
18332
18333 \begin_layout Description
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 LyxType
18339 \end_layout
18340
18341 \end_inset
18342
18343  Can be 
18344 \begin_inset Flex Code
18345 status collapsed
18346
18347 \begin_layout Plain Layout
18348 charstyle
18349 \end_layout
18350
18351 \end_inset
18352
18353
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 custom
18359 \end_layout
18360
18361 \end_inset
18362
18363
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 element
18369 \end_layout
18370
18371 \end_inset
18372
18373  or 
18374 \begin_inset Flex Code
18375 status collapsed
18376
18377 \begin_layout Plain Layout
18378 end
18379 \end_layout
18380
18381 \end_inset
18382
18383  (indicating a dummy definition ending definitions of charstyles, etc).
18384  This entry is required in and is only meaningful for Flex insets.
18385  Among other things, it determines on which menu this inset will appear.
18386  Setting 
18387 \begin_inset Flex Code
18388 status collapsed
18389
18390 \begin_layout Plain Layout
18391 \SpecialChar LyX
18392 Type
18393 \end_layout
18394
18395 \end_inset
18396
18397  to 
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 charstyle
18403 \end_layout
18404
18405 \end_inset
18406
18407  will automatically set 
18408 \begin_inset Flex Code
18409 status collapsed
18410
18411 \begin_layout Plain Layout
18412 MultiPar
18413 \end_layout
18414
18415 \end_inset
18416
18417  to false.
18418  
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 MultiPar
18424 \end_layout
18425
18426 \end_inset
18427
18428  can be set to true for 
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 charstyle
18434 \end_layout
18435
18436 \end_inset
18437
18438  insets by setting it 
18439 \emph on
18440 after
18441 \emph default
18442  you set the 
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 \SpecialChar LyX
18448 Type
18449 \end_layout
18450
18451 \end_inset
18452
18453 .
18454 \end_layout
18455
18456 \begin_layout Description
18457 \begin_inset Flex Code
18458 status collapsed
18459
18460 \begin_layout Plain Layout
18461 MultiPar
18462 \end_layout
18463
18464 \end_inset
18465
18466  [
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471
18472 \emph on
18473 0
18474 \end_layout
18475
18476 \end_inset
18477
18478 ,
18479 \begin_inset space \thinspace{}
18480 \end_inset
18481
18482
18483 \begin_inset Flex Code
18484 status collapsed
18485
18486 \begin_layout Plain Layout
18487 1
18488 \end_layout
18489
18490 \end_inset
18491
18492 ] Whether multiple paragraphs are permitted in this inset.
18493  This will also set 
18494 \begin_inset Flex Code
18495 status collapsed
18496
18497 \begin_layout Plain Layout
18498 CustomPars
18499 \end_layout
18500
18501 \end_inset
18502
18503  to the same value and 
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508 ForcePlain
18509 \end_layout
18510
18511 \end_inset
18512
18513  to the opposite value.
18514  These can be reset to other values, if they are used 
18515 \emph on
18516 after
18517 \emph default
18518  
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 MultiPar
18524 \end_layout
18525
18526 \end_inset
18527
18528 .
18529  Default is true.
18530 \end_layout
18531
18532 \begin_layout Description
18533 \begin_inset Flex Code
18534 status collapsed
18535
18536 \begin_layout Plain Layout
18537 NeedProtect
18538 \end_layout
18539
18540 \end_inset
18541
18542  [
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547
18548 \emph on
18549 0
18550 \end_layout
18551
18552 \end_inset
18553
18554 ,
18555 \begin_inset space \thinspace{}
18556 \end_inset
18557
18558
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563 1
18564 \end_layout
18565
18566 \end_inset
18567
18568 ] Whether fragile commands in this inset should be 
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573
18574 \backslash
18575 protect
18576 \end_layout
18577
18578 \end_inset
18579
18580 'ed.
18581  (Note: This is 
18582 \emph on
18583 not
18584 \emph default
18585  whether the command should itself be protected.) Default is false.
18586 \end_layout
18587
18588 \begin_layout Description
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 NoInsetLayout
18594 \end_layout
18595
18596 \end_inset
18597
18598  [
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603 <layout>
18604 \end_layout
18605
18606 \end_inset
18607
18608 ] Deletes an existing 
18609 \begin_inset Flex Code
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 InsetLayout
18614 \end_layout
18615
18616 \end_inset
18617
18618 .
18619 \change_inserted -712698321 1417953494
18620
18621 \end_layout
18622
18623 \begin_layout Description
18624
18625 \change_inserted -712698321 1417953559
18626 \begin_inset Flex Code
18627 status collapsed
18628
18629 \begin_layout Plain Layout
18630
18631 \change_inserted -712698321 1417953494
18632 ObsoletedBy
18633 \end_layout
18634
18635 \end_inset
18636
18637  [
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642
18643 \change_inserted -712698321 1417953574
18644 <layout>
18645 \end_layout
18646
18647 \end_inset
18648
18649 ] Name of an 
18650 \begin_inset Flex Code
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654
18655 \change_inserted -712698321 1417953533
18656 InsetLayout
18657 \end_layout
18658
18659 \end_inset
18660
18661  that has replaced this 
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666
18667 \change_inserted -712698321 1417953551
18668 InsetLayout
18669 \end_layout
18670
18671 \end_inset
18672
18673 .
18674  This is used to rename an 
18675 \begin_inset Flex Code
18676 status collapsed
18677
18678 \begin_layout Plain Layout
18679
18680 \change_inserted -712698321 1417953559
18681 InsetLayout
18682 \end_layout
18683
18684 \end_inset
18685
18686 , while keeping backward compatibility.
18687 \change_unchanged
18688
18689 \end_layout
18690
18691 \begin_layout Description
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 ParbreakIsNewline
18697 \end_layout
18698
18699 \end_inset
18700
18701  [
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706
18707 \emph on
18708 0
18709 \end_layout
18710
18711 \end_inset
18712
18713 ,
18714 \begin_inset space \thinspace{}
18715 \end_inset
18716
18717
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 1
18723 \end_layout
18724
18725 \end_inset
18726
18727 ] As with paragraph styles, see 
18728 \begin_inset CommandInset ref
18729 LatexCommand ref
18730 reference "sub:Paragraph-Styles"
18731
18732 \end_inset
18733
18734 .
18735  Default is false.
18736 \end_layout
18737
18738 \begin_layout Description
18739 \begin_inset Flex Code
18740 status collapsed
18741
18742 \begin_layout Plain Layout
18743 PassThru
18744 \end_layout
18745
18746 \end_inset
18747
18748  [
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753
18754 \emph on
18755 0
18756 \end_layout
18757
18758 \end_inset
18759
18760 ,
18761 \begin_inset space \thinspace{}
18762 \end_inset
18763
18764
18765 \begin_inset Flex Code
18766 status collapsed
18767
18768 \begin_layout Plain Layout
18769 1
18770 \end_layout
18771
18772 \end_inset
18773
18774 ] As with paragraph styles, see 
18775 \begin_inset CommandInset ref
18776 LatexCommand ref
18777 reference "sub:Paragraph-Styles"
18778
18779 \end_inset
18780
18781 .
18782  Default is false.
18783 \end_layout
18784
18785 \begin_layout Description
18786 \begin_inset Flex Code
18787 status collapsed
18788
18789 \begin_layout Plain Layout
18790 Preamble
18791 \end_layout
18792
18793 \end_inset
18794
18795  As with paragraph styles, see 
18796 \begin_inset CommandInset ref
18797 LatexCommand ref
18798 reference "sub:Paragraph-Styles"
18799
18800 \end_inset
18801
18802 .
18803 \end_layout
18804
18805 \begin_layout Description
18806 \begin_inset Flex Code
18807 status collapsed
18808
18809 \begin_layout Plain Layout
18810 RefPrefix
18811 \end_layout
18812
18813 \end_inset
18814
18815  [
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 string
18821 \end_layout
18822
18823 \end_inset
18824
18825 ] The prefix to use when creating labels referring to insets of this type.
18826  This allows the use of formatted references.
18827 \end_layout
18828
18829 \begin_layout Description
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Requires
18835 \end_layout
18836
18837 \end_inset
18838
18839  [
18840 \begin_inset Flex Code
18841 status collapsed
18842
18843 \begin_layout Plain Layout
18844 string
18845 \end_layout
18846
18847 \end_inset
18848
18849 ] As with paragraph styles, see 
18850 \begin_inset CommandInset ref
18851 LatexCommand ref
18852 reference "sub:Paragraph-Styles"
18853
18854 \end_inset
18855
18856 .
18857 \end_layout
18858
18859 \begin_layout Description
18860 \begin_inset Flex Code
18861 status collapsed
18862
18863 \begin_layout Plain Layout
18864 ResetArgs
18865 \end_layout
18866
18867 \end_inset
18868
18869  [
18870 \begin_inset Flex Code
18871 status collapsed
18872
18873 \begin_layout Plain Layout
18874
18875 \emph on
18876 0
18877 \end_layout
18878
18879 \end_inset
18880
18881 ,
18882 \begin_inset space \thinspace{}
18883 \end_inset
18884
18885
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890 1
18891 \end_layout
18892
18893 \end_inset
18894
18895 ] Resets the \SpecialChar LaTeX
18896  arguments of this layout (as defined via the 
18897 \begin_inset Flex Code
18898 status collapsed
18899
18900 \begin_layout Plain Layout
18901 Argument
18902 \end_layout
18903
18904 \end_inset
18905
18906  tag).
18907  This is useful if you have copied a style via 
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 CopyStyle
18913 \end_layout
18914
18915 \end_inset
18916
18917 , but you do not want to inherit its (required and optional) arguments.
18918 \end_layout
18919
18920 \begin_layout Description
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 ResetsFont
18926 \end_layout
18927
18928 \end_inset
18929
18930  [
18931 \begin_inset Flex Code
18932 status collapsed
18933
18934 \begin_layout Plain Layout
18935 0
18936 \end_layout
18937
18938 \end_inset
18939
18940 ,
18941 \begin_inset space \thinspace{}
18942 \end_inset
18943
18944
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949
18950 \emph on
18951 1
18952 \end_layout
18953
18954 \end_inset
18955
18956 ] Whether this inset should use the font of its surrounding environment
18957  or uses its own.
18958  Default is false: use the font of the surrounding environment.
18959 \end_layout
18960
18961 \begin_layout Description
18962 \begin_inset Flex Code
18963 status collapsed
18964
18965 \begin_layout Plain Layout
18966 RightDelim
18967 \end_layout
18968
18969 \end_inset
18970
18971  [
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 string
18977 \end_layout
18978
18979 \end_inset
18980
18981 ] A string that is put at the end of the layout content.
18982  A line break in the output can be indicated by 
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 <br/>
18988 \end_layout
18989
18990 \end_inset
18991
18992 .
18993 \end_layout
18994
18995 \begin_layout Description
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 Spellcheck
19001 \end_layout
19002
19003 \end_inset
19004
19005  [
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
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
19025 \emph on
19026 1
19027 \end_layout
19028
19029 \end_inset
19030
19031 ] Allow spell-checking the contents of this inset.
19032  Default is true.
19033 \end_layout
19034
19035 \begin_layout Subsection
19036 Counters
19037 \begin_inset CommandInset label
19038 LatexCommand label
19039 name "sub:Counters"
19040
19041 \end_inset
19042
19043
19044 \end_layout
19045
19046 \begin_layout Standard
19047 It is necessary to define the counters (
19048 \begin_inset Flex MenuItem
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 chapter
19053 \end_layout
19054
19055 \end_inset
19056
19057
19058 \begin_inset Flex MenuItem
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 figure
19063 \end_layout
19064
19065 \end_inset
19066
19067 , \SpecialChar ldots
19068 ) in the text class itself.
19069  The standard counters are defined in the file 
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 stdcounters.inc
19075 \end_layout
19076
19077 \end_inset
19078
19079 , so you may have to do no more than add
19080 \end_layout
19081
19082 \begin_layout LyX-Code
19083 Input stdcounters.inc
19084 \end_layout
19085
19086 \begin_layout Standard
19087 to your layout file to get them to work.
19088  But if you want to define custom counters, then you can do so.
19089  The counter declaration must begin with:
19090 \end_layout
19091
19092 \begin_layout LyX-Code
19093 Counter CounterName
19094 \end_layout
19095
19096 \begin_layout Standard
19097 where of course `
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 CounterName
19103 \end_layout
19104
19105 \end_inset
19106
19107 ' is replaced by the name of the counter.
19108  And it must end with 
19109 \begin_inset Quotes eld
19110 \end_inset
19111
19112
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 End
19118 \end_layout
19119
19120 \end_inset
19121
19122
19123 \begin_inset Quotes erd
19124 \end_inset
19125
19126 .
19127  The following parameters can also be used:
19128 \end_layout
19129
19130 \begin_layout Description
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 InitialValue
19136 \end_layout
19137
19138 \end_inset
19139
19140  [
19141 \begin_inset Flex Code
19142 status collapsed
19143
19144 \begin_layout Plain Layout
19145 int=1
19146 \end_layout
19147
19148 \end_inset
19149
19150 ] Sets the initial value for the counter, to which it will be reset whenever
19151  that happens.
19152  Normally, one will want the default, 1.
19153 \end_layout
19154
19155 \begin_layout Description
19156 \begin_inset Flex Code
19157 status collapsed
19158
19159 \begin_layout Plain Layout
19160 LabelString
19161 \end_layout
19162
19163 \end_inset
19164
19165  [
19166 \begin_inset Flex Code
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 string
19171 \end_layout
19172
19173 \end_inset
19174
19175 =
19176 \begin_inset Quotes erd
19177 \end_inset
19178
19179
19180 \begin_inset Quotes erd
19181 \end_inset
19182
19183 ] When defined, this string defines how the counter is displayed.
19184  Setting this value sets 
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 LabelStringAppendix
19190 \end_layout
19191
19192 \end_inset
19193
19194  to the same value.
19195  The following special constructs can be used in the string:
19196 \begin_inset Separator parbreak
19197 \end_inset
19198
19199
19200 \end_layout
19201
19202 \begin_deeper
19203 \begin_layout Itemize
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208
19209 \backslash
19210 thecounter
19211 \end_layout
19212
19213 \end_inset
19214
19215  will be replaced by the expansion of the 
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 LabelString
19221 \end_layout
19222
19223 \end_inset
19224
19225  (or 
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 LabelStringAppendix
19231 \end_layout
19232
19233 \end_inset
19234
19235 ) of the counter 
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 counter
19241 \end_layout
19242
19243 \end_inset
19244
19245 .
19246  
19247 \end_layout
19248
19249 \begin_layout Itemize
19250 counter values can be expressed using \SpecialChar LaTeX
19251 -like macros
19252 \begin_inset Newline newline
19253 \end_inset
19254
19255
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260
19261 \backslash
19262
19263 \emph on
19264 numbertype
19265 \emph default
19266 {
19267 \emph on
19268 counter
19269 \emph default
19270 }
19271 \end_layout
19272
19273 \end_inset
19274
19275 , where 
19276 \begin_inset Flex Code
19277 status collapsed
19278
19279 \begin_layout Plain Layout
19280
19281 \emph on
19282 numbertype
19283 \end_layout
19284
19285 \end_inset
19286
19287  can be:
19288 \begin_inset Foot
19289 status collapsed
19290
19291 \begin_layout Plain Layout
19292
19293 \family roman
19294 \series medium
19295 \shape up
19296 \size normal
19297 \emph off
19298 \bar no
19299 \noun off
19300 \color none
19301 Actually, the situation is a bit more complicated: any
19302 \family default
19303 \series default
19304 \shape default
19305 \emph default
19306 \bar default
19307  
19308 \size default
19309 \emph on
19310 \noun default
19311 \color inherit
19312 numbertype
19313 \family roman
19314 \series medium
19315 \shape up
19316 \size normal
19317 \emph off
19318 \bar no
19319 \noun off
19320  other than those described below will produce arabic numerals.
19321  It would not be surprising to see this change in the future.
19322 \end_layout
19323
19324 \end_inset
19325
19326  
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 arabic
19332 \end_layout
19333
19334 \end_inset
19335
19336 : 1, 2, 3,\SpecialChar ldots
19337
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342 alph
19343 \end_layout
19344
19345 \end_inset
19346
19347  for lower-case letters: a, b, c, \SpecialChar ldots
19348
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 Alph
19354 \end_layout
19355
19356 \end_inset
19357
19358  for upper-case letters: A, B, C, \SpecialChar ldots
19359
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 roman
19365 \end_layout
19366
19367 \end_inset
19368
19369  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19370
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 Roman
19376 \end_layout
19377
19378 \end_inset
19379
19380  for upper-case roman numerals: I, II, III\SpecialChar ldots
19381
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 hebrew
19387 \end_layout
19388
19389 \end_inset
19390
19391  for hebrew numerals.
19392 \end_layout
19393
19394 \end_deeper
19395 \begin_layout Standard
19396 If LabelString is not defined, a default value is constructed as follows:
19397  if the counter has a master counter 
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402 master
19403 \end_layout
19404
19405 \end_inset
19406
19407  (defined via 
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412 Within
19413 \end_layout
19414
19415 \end_inset
19416
19417 ), the string
19418 \begin_inset Newline newline
19419 \end_inset
19420
19421
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426
19427 \backslash
19428 themaster.
19429 \backslash
19430 arabic{counter}
19431 \end_layout
19432
19433 \end_inset
19434
19435  is used; otherwise the string 
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440
19441 \backslash
19442 arabic{counter}
19443 \end_layout
19444
19445 \end_inset
19446
19447  is used.
19448 \end_layout
19449
19450 \begin_layout Description
19451 \begin_inset Flex Code
19452 status collapsed
19453
19454 \begin_layout Plain Layout
19455 LabelStringAppendix
19456 \end_layout
19457
19458 \end_inset
19459
19460  [
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 string
19466 \end_layout
19467
19468 \end_inset
19469
19470 =
19471 \begin_inset Quotes erd
19472 \end_inset
19473
19474
19475 \begin_inset Quotes erd
19476 \end_inset
19477
19478 ] Same as 
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483 LabelString
19484 \end_layout
19485
19486 \end_inset
19487
19488 , but for use in the Appendix.
19489 \end_layout
19490
19491 \begin_layout Description
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 PrettyFormat
19497 \end_layout
19498
19499 \end_inset
19500
19501  [
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 string
19507 \end_layout
19508
19509 \end_inset
19510
19511 =
19512 \begin_inset Quotes erd
19513 \end_inset
19514
19515
19516 \begin_inset Quotes erd
19517 \end_inset
19518
19519 ] A format for use with formatted references to this counter.
19520  For example, one might want to have references to section numbers appear
19521  as 
19522 \begin_inset Quotes eld
19523 \end_inset
19524
19525 Section 2.4
19526 \begin_inset Quotes erd
19527 \end_inset
19528
19529 .
19530  The string should contain 
19531 \begin_inset Quotes eld
19532 \end_inset
19533
19534 ##
19535 \begin_inset Quotes erd
19536 \end_inset
19537
19538 .
19539  This will be replaced by the counter number itself.
19540  So, for sections, it would be: Section ##.
19541 \end_layout
19542
19543 \begin_layout Description
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 Within
19549 \end_layout
19550
19551 \end_inset
19552
19553  [
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 string
19559 \end_layout
19560
19561 \end_inset
19562
19563 =
19564 \begin_inset Quotes erd
19565 \end_inset
19566
19567
19568 \begin_inset Quotes erd
19569 \end_inset
19570
19571 ] If this is set to the name of another counter, the present counter will
19572  be reset every time the other one is increased.
19573  For example, 
19574 \begin_inset Flex Code
19575 status collapsed
19576
19577 \begin_layout Plain Layout
19578 subsection
19579 \end_layout
19580
19581 \end_inset
19582
19583  is numbered inside 
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 section
19589 \end_layout
19590
19591 \end_inset
19592
19593 .
19594 \end_layout
19595
19596 \begin_layout Subsection
19597 Font description
19598 \begin_inset CommandInset label
19599 LatexCommand label
19600 name "sub:Font-description"
19601
19602 \end_inset
19603
19604
19605 \end_layout
19606
19607 \begin_layout Standard
19608 A font description looks like this:
19609 \end_layout
19610
19611 \begin_layout LyX-Code
19612 Font 
19613 \family roman
19614 \emph on
19615 or
19616 \family default
19617 \emph default
19618  LabelFont
19619 \emph on
19620  or
19621 \emph default
19622  DefaultFont
19623 \end_layout
19624
19625 \begin_layout LyX-Code
19626  ...
19627 \end_layout
19628
19629 \begin_layout LyX-Code
19630 EndFont
19631 \end_layout
19632
19633 \begin_layout Standard
19634 The following commands are available:
19635 \end_layout
19636
19637 \begin_layout Description
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 Color
19643 \end_layout
19644
19645 \end_inset
19646
19647  [
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652
19653 \emph on
19654 none
19655 \end_layout
19656
19657 \end_inset
19658
19659
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 black
19665 \end_layout
19666
19667 \end_inset
19668
19669
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 white
19675 \end_layout
19676
19677 \end_inset
19678
19679
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 red
19685 \end_layout
19686
19687 \end_inset
19688
19689
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 green
19695 \end_layout
19696
19697 \end_inset
19698
19699
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 blue
19705 \end_layout
19706
19707 \end_inset
19708
19709
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714 cyan
19715 \end_layout
19716
19717 \end_inset
19718
19719
19720 \begin_inset Flex Code
19721 status collapsed
19722
19723 \begin_layout Plain Layout
19724 magenta
19725 \end_layout
19726
19727 \end_inset
19728
19729
19730 \begin_inset Flex Code
19731 status collapsed
19732
19733 \begin_layout Plain Layout
19734 yellow
19735 \end_layout
19736
19737 \end_inset
19738
19739 ]
19740 \end_layout
19741
19742 \begin_layout Description
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747 Family
19748 \end_layout
19749
19750 \end_inset
19751
19752  [
19753 \begin_inset Flex Code
19754 status collapsed
19755
19756 \begin_layout Plain Layout
19757
19758 \emph on
19759 Roman
19760 \end_layout
19761
19762 \end_inset
19763
19764
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 Sans
19770 \end_layout
19771
19772 \end_inset
19773
19774
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 Typewriter
19780 \end_layout
19781
19782 \end_inset
19783
19784 ]
19785 \end_layout
19786
19787 \begin_layout Description
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 Misc
19793 \end_layout
19794
19795 \end_inset
19796
19797  [
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 string
19803 \end_layout
19804
19805 \end_inset
19806
19807 ] Valid arguments are: 
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 emph
19813 \end_layout
19814
19815 \end_inset
19816
19817
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 noun
19823 \end_layout
19824
19825 \end_inset
19826
19827
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 strikeout
19833 \end_layout
19834
19835 \end_inset
19836
19837
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 underbar
19843 \end_layout
19844
19845 \end_inset
19846
19847
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 uuline
19853 \end_layout
19854
19855 \end_inset
19856
19857
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 uwave
19863 \end_layout
19864
19865 \end_inset
19866
19867
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 no_emph
19873 \end_layout
19874
19875 \end_inset
19876
19877
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 no_noun
19883 \end_layout
19884
19885 \end_inset
19886
19887
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 no_strikeout
19893 \end_layout
19894
19895 \end_inset
19896
19897
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 no_bar
19903 \end_layout
19904
19905 \end_inset
19906
19907
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 no_uuline
19913 \end_layout
19914
19915 \end_inset
19916
19917  and 
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 no_uwave
19923 \end_layout
19924
19925 \end_inset
19926
19927 .
19928  Each of these turns on or off the corresponding attribute.
19929  For example, 
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 emph
19935 \end_layout
19936
19937 \end_inset
19938
19939  turns on emphasis, and 
19940 \begin_inset Flex Code
19941 status collapsed
19942
19943 \begin_layout Plain Layout
19944 no_emph
19945 \end_layout
19946
19947 \end_inset
19948
19949  turns it off.
19950  
19951 \begin_inset Newline newline
19952 \end_inset
19953
19954 If the latter seems puzzling, remember that the font settings for the present
19955  context are generally inherited from the surrounding context.
19956  So 
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 no_emph
19962 \end_layout
19963
19964 \end_inset
19965
19966  would turn off the emphasis that was anyway in effect, say, in a theorem
19967  environment.
19968 \end_layout
19969
19970 \begin_layout Description
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 Series
19976 \end_layout
19977
19978 \end_inset
19979
19980  [
19981 \begin_inset Flex Code
19982 status collapsed
19983
19984 \begin_layout Plain Layout
19985
19986 \emph on
19987 Medium
19988 \end_layout
19989
19990 \end_inset
19991
19992
19993 \begin_inset Flex Code
19994 status collapsed
19995
19996 \begin_layout Plain Layout
19997 Bold
19998 \end_layout
19999
20000 \end_inset
20001
20002
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 Shape
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020
20021 \emph on
20022 Up
20023 \end_layout
20024
20025 \end_inset
20026
20027
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032 Italic
20033 \end_layout
20034
20035 \end_inset
20036
20037
20038 \begin_inset Flex Code
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 SmallCaps
20043 \end_layout
20044
20045 \end_inset
20046
20047
20048 \begin_inset Flex Code
20049 status collapsed
20050
20051 \begin_layout Plain Layout
20052 Slanted
20053 \end_layout
20054
20055 \end_inset
20056
20057
20058 \end_layout
20059
20060 \begin_layout Description
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 Size
20066 \end_layout
20067
20068 \end_inset
20069
20070  [
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 tiny
20076 \end_layout
20077
20078 \end_inset
20079
20080
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 small
20086 \end_layout
20087
20088 \end_inset
20089
20090
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095
20096 \emph on
20097 normal
20098 \end_layout
20099
20100 \end_inset
20101
20102
20103 \begin_inset Flex Code
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 large
20108 \end_layout
20109
20110 \end_inset
20111
20112
20113 \begin_inset Flex Code
20114 status collapsed
20115
20116 \begin_layout Plain Layout
20117 larger
20118 \end_layout
20119
20120 \end_inset
20121
20122
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 largest
20128 \end_layout
20129
20130 \end_inset
20131
20132
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137 huge
20138 \end_layout
20139
20140 \end_inset
20141
20142
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 giant
20148 \end_layout
20149
20150 \end_inset
20151
20152 ]
20153 \end_layout
20154
20155 \begin_layout Subsection
20156 \begin_inset CommandInset label
20157 LatexCommand label
20158 name "sub:Citation-format-description"
20159
20160 \end_inset
20161
20162 Citation format description
20163 \end_layout
20164
20165 \begin_layout Standard
20166 The 
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 CiteFormat
20172 \end_layout
20173
20174 \end_inset
20175
20176  blocks are used to describe how bibliographic information should be displayed,
20177  both within \SpecialChar LyX
20178  itself (in the citation dialog and in tooltips, for example)
20179  and in XHTML output.
20180  Such a block might look like this:
20181 \end_layout
20182
20183 \begin_layout LyX-Code
20184 CiteFormat
20185 \end_layout
20186
20187 \begin_layout LyX-Code
20188  article ...
20189 \end_layout
20190
20191 \begin_layout LyX-Code
20192  book ...
20193 \end_layout
20194
20195 \begin_layout LyX-Code
20196 End
20197 \end_layout
20198
20199 \begin_layout Standard
20200 The individual lines define how the bibliographic information associated
20201  with an article or book, respectively, is to be displayed, and such a definitio
20202 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20203  file.
20204  \SpecialChar LyX
20205  defines a default format in the source code that will be used if no specific
20206  definition has been given.
20207  \SpecialChar LyX
20208  predefines several formats in the file 
20209 \begin_inset Flex Code
20210 status collapsed
20211
20212 \begin_layout Plain Layout
20213 stdciteformats.inc
20214 \end_layout
20215
20216 \end_inset
20217
20218 , which is included in most of \SpecialChar LyX
20219 's document classes.
20220 \end_layout
20221
20222 \begin_layout Standard
20223 The definitions use a simple language that allows Bib\SpecialChar TeX
20224  keys to be replaced
20225  with their values.
20226  Keys should be enclosed in 
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 %
20232 \end_layout
20233
20234 \end_inset
20235
20236  signs, e.g.: 
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 %author%
20242 \end_layout
20243
20244 \end_inset
20245
20246 .
20247  So a simple definition might look like this:
20248 \end_layout
20249
20250 \begin_layout LyX-Code
20251 misc %author%, 
20252 \begin_inset Quotes eld
20253 \end_inset
20254
20255 %title
20256 \begin_inset Quotes erd
20257 \end_inset
20258
20259 .
20260 \end_layout
20261
20262 \begin_layout Standard
20263 This would print the author, followed by a comma, followed by the title,
20264  in quotes, followed by a period.
20265 \end_layout
20266
20267 \begin_layout Standard
20268 Of course, sometimes you may want to print a key only if it exists.
20269  This can be done by using a conditional construction, such as: 
20270 \begin_inset Flex Code
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 {%volume%[[vol.
20275 \begin_inset space ~
20276 \end_inset
20277
20278 %volume%]]}
20279 \end_layout
20280
20281 \end_inset
20282
20283 .
20284  This says: If the 
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 volume
20290 \end_layout
20291
20292 \end_inset
20293
20294  key exists, then print 
20295 \begin_inset Quotes eld
20296 \end_inset
20297
20298 vol.
20299 \begin_inset space ~
20300 \end_inset
20301
20302
20303 \begin_inset Quotes erd
20304 \end_inset
20305
20306  followed by the volume key.
20307  It is also possible to have an else clause in the conditional, such as:
20308 \begin_inset Newline newline
20309 \end_inset
20310
20311
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 {%author%[[%author%]][[%editor%, ed.]]}
20317 \end_layout
20318
20319 \end_inset
20320
20321 .
20322 \begin_inset Newline newline
20323 \end_inset
20324
20325 Here, the 
20326 \begin_inset Flex Code
20327 status collapsed
20328
20329 \begin_layout Plain Layout
20330 author
20331 \end_layout
20332
20333 \end_inset
20334
20335  key is printed if it exists; otherwise, the editor key is printed, followed
20336  by 
20337 \begin_inset Quotes eld
20338 \end_inset
20339
20340 ,
20341 \begin_inset space ~
20342 \end_inset
20343
20344 ed.
20345 \begin_inset Quotes erd
20346 \end_inset
20347
20348  Note that the key is again enclosed in 
20349 \begin_inset Flex Code
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 %
20354 \end_layout
20355
20356 \end_inset
20357
20358  signs; the entire conditional is enclosed in braces; and the if and else
20359  clauses are enclosed in double brackets, 
20360 \begin_inset Quotes eld
20361 \end_inset
20362
20363
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 [[
20369 \end_layout
20370
20371 \end_inset
20372
20373
20374 \begin_inset Quotes eld
20375 \end_inset
20376
20377  and 
20378 \begin_inset Quotes eld
20379 \end_inset
20380
20381
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 ]]
20387 \end_layout
20388
20389 \end_inset
20390
20391
20392 \begin_inset Quotes erd
20393 \end_inset
20394
20395 .
20396  There must be no space between any of these.
20397 \end_layout
20398
20399 \begin_layout Standard
20400 There is one other piece of syntax available in definitions, which looks
20401  like this: 
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 {!<i>!}
20407 \end_layout
20408
20409 \end_inset
20410
20411 .
20412  This defines a piece of formatting information that is to be used when
20413  creating 
20414 \begin_inset Quotes eld
20415 \end_inset
20416
20417 rich text
20418 \begin_inset Quotes erd
20419 \end_inset
20420
20421 .
20422  Obviously, we do not want to output HTML tags when writing plain text,
20423  so they should be wrapped in 
20424 \begin_inset Quotes eld
20425 \end_inset
20426
20427 {!
20428 \begin_inset Quotes erd
20429 \end_inset
20430
20431  and 
20432 \begin_inset Quotes eld
20433 \end_inset
20434
20435 !}
20436 \begin_inset Quotes erd
20437 \end_inset
20438
20439 .
20440 \end_layout
20441
20442 \begin_layout Standard
20443 Two special sorts of definitions are also possible in a 
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 CiteFormat
20449 \end_layout
20450
20451 \end_inset
20452
20453  block.
20454  An example of the first would be:
20455 \end_layout
20456
20457 \begin_layout LyX-Code
20458 !quotetitle 
20459 \begin_inset Quotes eld
20460 \end_inset
20461
20462 %title%
20463 \begin_inset Quotes erd
20464 \end_inset
20465
20466
20467 \end_layout
20468
20469 \begin_layout Standard
20470 This is an abbreviation, or macro, and it can be used by treating it as
20471  if it were a key: 
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 %!quotetitle%
20477 \end_layout
20478
20479 \end_inset
20480
20481 .
20482  \SpecialChar LyX
20483  will treat 
20484 \begin_inset Flex Code
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 %!quotetitle%
20489 \end_layout
20490
20491 \end_inset
20492
20493  exactly as it would treat its definition.
20494  So, let us issue the obvious 
20495 \emph on
20496 warning
20497 \emph default
20498 .
20499  Do not do this:
20500 \end_layout
20501
20502 \begin_layout LyX-Code
20503 !funfun %funfun%
20504 \end_layout
20505
20506 \begin_layout Standard
20507 or anything like it.
20508  \SpecialChar LyX
20509  shouldn't go into an infinite loop, but it may go into a long one before
20510  it gives up.
20511 \end_layout
20512
20513 \begin_layout Standard
20514 The second sort of special definition might look like this:
20515 \end_layout
20516
20517 \begin_layout LyX-Code
20518 _pptext pp.
20519 \end_layout
20520
20521 \begin_layout Standard
20522 This defines a translatable piece of text, which allows relevant parts of
20523  the bibliography to be translated.
20524  It can be included in a definition by treating it as a key: 
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 %_pptext%
20530 \end_layout
20531
20532 \end_inset
20533
20534 .
20535  Several of these are predefined in 
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 stdciteformats.inc
20541 \end_layout
20542
20543 \end_inset
20544
20545 .
20546  Note that these are not macros, in the sense just defined.
20547  They will not be expanded.
20548 \end_layout
20549
20550 \begin_layout Standard
20551 So here then is an example that use all these features:
20552 \begin_inset VSpace defskip
20553 \end_inset
20554
20555
20556 \end_layout
20557
20558 \begin_layout Standard
20559 \noindent
20560
20561 \family typewriter
20562 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20563 \end_layout
20564
20565 \begin_layout Standard
20566 \begin_inset VSpace defskip
20567 \end_inset
20568
20569 This defines a macro that prints the author, followed by a comma, if the
20570  
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575 author
20576 \end_layout
20577
20578 \end_inset
20579
20580  key is defined, or else prints the name of the editor, followed by the
20581  
20582 \begin_inset Flex Code
20583 status collapsed
20584
20585 \begin_layout Plain Layout
20586 _edtext
20587 \end_layout
20588
20589 \end_inset
20590
20591  or its translation (it is by default 
20592 \begin_inset Quotes eld
20593 \end_inset
20594
20595 ed.
20596 \begin_inset Quotes erd
20597 \end_inset
20598
20599 ), if the 
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 editor
20605 \end_layout
20606
20607 \end_inset
20608
20609  key is defined.
20610  Note that this is in fact defined in 
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615 stdciteformats.inc
20616 \end_layout
20617
20618 \end_inset
20619
20620 , so you can use it in your own definitions, or re-definitions, if you load
20621  that file first.
20622 \end_layout
20623
20624 \begin_layout Section
20625 \begin_inset CommandInset label
20626 LatexCommand label
20627 name "sec:Tags-for-XHTML"
20628
20629 \end_inset
20630
20631 Tags for XHTML output
20632 \end_layout
20633
20634 \begin_layout Standard
20635 As with \SpecialChar LaTeX
20636  or DocBook, the format of \SpecialChar LyX
20637 's XHTML output is also controlled by
20638  layout information.
20639  In general, \SpecialChar LyX
20640  provides sensible defaults and, as mentioned earlier, it will
20641  even construct default CSS style rules from the other layout tags.
20642  For example, \SpecialChar LyX
20643  will attempt to use the information provided in the 
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 Font
20649 \end_layout
20650
20651 \end_inset
20652
20653  declaration for the Chapter style to write CSS that will appropriately
20654  format chapter headings.
20655 \end_layout
20656
20657 \begin_layout Standard
20658 In many cases, then, you may not have to do anything at all to get acceptable
20659  XHTML output for your own environments, custom insets, and so forth.
20660  But in some cases you will, and so \SpecialChar LyX
20661  provides a number of layout tags that
20662  can be used to customize the XHTML and CSS that are generated.
20663 \end_layout
20664
20665 \begin_layout Standard
20666 Note that there are two tags, 
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 HTMLPreamble
20672 \end_layout
20673
20674 \end_inset
20675
20676  and 
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 AddToHTMLPreamble
20682 \end_layout
20683
20684 \end_inset
20685
20686  that may appear outside style and inset declarations.
20687  See 
20688 \begin_inset CommandInset ref
20689 LatexCommand ref
20690 reference "sub:General-text-class"
20691
20692 \end_inset
20693
20694  for details on these.
20695 \end_layout
20696
20697 \begin_layout Subsection
20698 \begin_inset CommandInset label
20699 LatexCommand label
20700 name "sub:Paragraph-Style-XHTML"
20701
20702 \end_inset
20703
20704 Paragraph styles
20705 \end_layout
20706
20707 \begin_layout Standard
20708 The sort of XHTML \SpecialChar LyX
20709  outputs for a paragraph depends upon whether we are dealing
20710  with a normal paragraph, a command, or an environment, where this is itself
20711  determined by the contents of the corresponding 
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 \SpecialChar LaTeX
20717 Type
20718 \end_layout
20719
20720 \end_inset
20721
20722  tag.
20723  
20724 \end_layout
20725
20726 \begin_layout Standard
20727 For a command or normal paragraph, the output XHTML has the following form:
20728 \end_layout
20729
20730 \begin_layout LyX-Code
20731 <tag attr=
20732 \begin_inset Quotes erd
20733 \end_inset
20734
20735 value
20736 \begin_inset Quotes erd
20737 \end_inset
20738
20739 >
20740 \end_layout
20741
20742 \begin_layout LyX-Code
20743 <labeltag attr=
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 value
20748 \begin_inset Quotes erd
20749 \end_inset
20750
20751 >Label</labeltag>
20752 \end_layout
20753
20754 \begin_layout LyX-Code
20755 Contents of the paragraph.
20756 \end_layout
20757
20758 \begin_layout LyX-Code
20759 </tag>
20760 \end_layout
20761
20762 \begin_layout Standard
20763 The label tags are of course omitted if the paragraph does not have a label.
20764 \end_layout
20765
20766 \begin_layout Standard
20767 For an environment that is not some sort of list, the XHTML takes this form:
20768 \end_layout
20769
20770 \begin_layout LyX-Code
20771 <tag attr=
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775 value
20776 \begin_inset Quotes erd
20777 \end_inset
20778
20779 >
20780 \end_layout
20781
20782 \begin_layout LyX-Code
20783 <itemtag attr=
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787 value
20788 \begin_inset Quotes erd
20789 \end_inset
20790
20791 ><labeltag attr=
20792 \begin_inset Quotes erd
20793 \end_inset
20794
20795 value
20796 \begin_inset Quotes erd
20797 \end_inset
20798
20799 >Environment Label</labeltag>First paragraph.</itemtag>
20800 \end_layout
20801
20802 \begin_layout LyX-Code
20803 <itemtag>Second paragraph.</itemtag>
20804 \end_layout
20805
20806 \begin_layout LyX-Code
20807 </tag>
20808 \end_layout
20809
20810 \begin_layout Standard
20811 Note that the label is output only for the first paragraph, as it should
20812  be for a theorem, for example.
20813  
20814 \end_layout
20815
20816 \begin_layout Standard
20817 For a list, we have one of these forms:
20818 \end_layout
20819
20820 \begin_layout LyX-Code
20821 <tag attr=
20822 \begin_inset Quotes erd
20823 \end_inset
20824
20825 value
20826 \begin_inset Quotes erd
20827 \end_inset
20828
20829 >
20830 \end_layout
20831
20832 \begin_layout LyX-Code
20833 <itemtag attr=
20834 \begin_inset Quotes erd
20835 \end_inset
20836
20837 value
20838 \begin_inset Quotes erd
20839 \end_inset
20840
20841 ><labeltag attr=
20842 \begin_inset Quotes erd
20843 \end_inset
20844
20845 value
20846 \begin_inset Quotes erd
20847 \end_inset
20848
20849 >List Label</labeltag>First item.</itemtag>
20850 \end_layout
20851
20852 \begin_layout LyX-Code
20853 <itemtag attr=
20854 \begin_inset Quotes erd
20855 \end_inset
20856
20857 value
20858 \begin_inset Quotes erd
20859 \end_inset
20860
20861 ><labeltag attr=
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 value
20866 \begin_inset Quotes erd
20867 \end_inset
20868
20869 >List Label</labeltag>Second item.</itemtag>
20870 \end_layout
20871
20872 \begin_layout LyX-Code
20873 </tag>
20874 \end_layout
20875
20876 \begin_layout LyX-Code
20877
20878 \end_layout
20879
20880 \begin_layout LyX-Code
20881 <tag attr=
20882 \begin_inset Quotes erd
20883 \end_inset
20884
20885 value
20886 \begin_inset Quotes erd
20887 \end_inset
20888
20889 >
20890 \end_layout
20891
20892 \begin_layout LyX-Code
20893 <labeltag attr=
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897 value
20898 \begin_inset Quotes erd
20899 \end_inset
20900
20901 >List Label</labeltag><itemtag attr=
20902 \begin_inset Quotes erd
20903 \end_inset
20904
20905 value
20906 \begin_inset Quotes erd
20907 \end_inset
20908
20909 >First item.</itemtag>
20910 \end_layout
20911
20912 \begin_layout LyX-Code
20913 <labeltag attr=
20914 \begin_inset Quotes erd
20915 \end_inset
20916
20917 value
20918 \begin_inset Quotes erd
20919 \end_inset
20920
20921 >List Label</labeltag><itemtag attr=
20922 \begin_inset Quotes erd
20923 \end_inset
20924
20925 value
20926 \begin_inset Quotes erd
20927 \end_inset
20928
20929 >Second item.</itemtag>
20930 \end_layout
20931
20932 \begin_layout LyX-Code
20933 </tag>
20934 \end_layout
20935
20936 \begin_layout Standard
20937 Note the different orders of 
20938 \begin_inset Flex Code
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942 labeltag
20943 \end_layout
20944
20945 \end_inset
20946
20947  and 
20948 \begin_inset Flex Code
20949 status collapsed
20950
20951 \begin_layout Plain Layout
20952 itemtag
20953 \end_layout
20954
20955 \end_inset
20956
20957 .
20958  Which order we get depends upon the setting of 
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 HTMLLabelFirst
20964 \end_layout
20965
20966 \end_inset
20967
20968 : If 
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 HTMLLabelFirst
20974 \end_layout
20975
20976 \end_inset
20977
20978  is false (the default), you get the first of these, with the label within
20979  the item; if true, you get the second, with the label outside the item.
20980 \end_layout
20981
20982 \begin_layout Standard
20983 The specific tags and attributes output for each paragraph type can be controlle
20984 d by means of the layout tags we are about to describe.
20985  As mentioned earlier, however, \SpecialChar LyX
20986  uses sensible defaults for many of these,
20987  so you often may not need to do very much to get good XHTML output.
20988  Think of the available tags as there so you can tweak things to your liking.
20989 \end_layout
20990
20991 \begin_layout Description
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 HTMLAttr
20997 \end_layout
20998
20999 \end_inset
21000
21001  [
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 string
21007 \end_layout
21008
21009 \end_inset
21010
21011 ] Specifies attribute information to be output with the main tag.
21012  For example, 
21013 \begin_inset Quotes eld
21014 \end_inset
21015
21016
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 class=`mydiv'
21022 \end_layout
21023
21024 \end_inset
21025
21026
21027 \begin_inset Quotes erd
21028 \end_inset
21029
21030 .
21031  By default, \SpecialChar LyX
21032  will output 
21033 \begin_inset Quotes eld
21034 \end_inset
21035
21036
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 class=`layoutname'
21042 \end_layout
21043
21044 \end_inset
21045
21046
21047 \begin_inset Quotes erd
21048 \end_inset
21049
21050 , where 
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 layoutname
21056 \end_layout
21057
21058 \end_inset
21059
21060  is the \SpecialChar LyX
21061  name of the layout, made lowercase, for example: chapter.
21062  This should 
21063 \emph on
21064 not
21065 \emph default
21066  contain any style information.
21067  Use 
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 HTMLStyle
21073 \end_layout
21074
21075 \end_inset
21076
21077  for that purpose.
21078 \end_layout
21079
21080 \begin_layout Description
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 HTMLForceCSS
21086 \end_layout
21087
21088 \end_inset
21089
21090  [
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095
21096 \emph on
21097 0
21098 \emph default
21099 ,1
21100 \end_layout
21101
21102 \end_inset
21103
21104 ] Whether to output the default CSS information \SpecialChar LyX
21105  generates for this layout,
21106  even if additional information is explicitly provided via 
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111 HTMLStyle
21112 \end_layout
21113
21114 \end_inset
21115
21116 .
21117  Setting this to 
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 1
21123 \end_layout
21124
21125 \end_inset
21126
21127  allows you to alter or augment the generated CSS, rather than to override
21128  it completely.
21129  Default is 
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 0
21135 \end_layout
21136
21137 \end_inset
21138
21139 .
21140 \end_layout
21141
21142 \begin_layout Description
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 HTMLItem
21148 \end_layout
21149
21150 \end_inset
21151
21152  [
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 string
21158 \end_layout
21159
21160 \end_inset
21161
21162 ] The tag to be used for individual paragraphs of environments, replacing
21163  
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 itemtag
21169 \end_layout
21170
21171 \end_inset
21172
21173  in the examples above.
21174  Defaults to 
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 div
21180 \end_layout
21181
21182 \end_inset
21183
21184 .
21185 \end_layout
21186
21187 \begin_layout Description
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 HTMLItemAttr
21193 \end_layout
21194
21195 \end_inset
21196
21197  [
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 string
21203 \end_layout
21204
21205 \end_inset
21206
21207 ] Attributes for the item tag.
21208  Defaults to 
21209 \begin_inset Quotes eld
21210 \end_inset
21211
21212
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 class=`layoutname_item'
21218 \end_layout
21219
21220 \end_inset
21221
21222
21223 \begin_inset Quotes erd
21224 \end_inset
21225
21226 .
21227  This should 
21228 \emph on
21229 not
21230 \emph default
21231  contain any style information.
21232  Use 
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 HTMLStyle
21238 \end_layout
21239
21240 \end_inset
21241
21242  for that purpose.
21243 \end_layout
21244
21245 \begin_layout Description
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 HTMLLabel
21251 \end_layout
21252
21253 \end_inset
21254
21255  [
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 string
21261 \end_layout
21262
21263 \end_inset
21264
21265 ] The tag to be used for paragraph and item labels, replacing 
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 labeltag
21271 \end_layout
21272
21273 \end_inset
21274
21275  in the examples above.
21276  Defaults to 
21277 \begin_inset Flex Code
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281 span
21282 \end_layout
21283
21284 \end_inset
21285
21286 , unless 
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 LabelType
21292 \end_layout
21293
21294 \end_inset
21295
21296  is either 
21297 \begin_inset Flex Code
21298 status collapsed
21299
21300 \begin_layout Plain Layout
21301 Top_Environment
21302 \end_layout
21303
21304 \end_inset
21305
21306  or 
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 Centered_Top_Environment
21312 \end_layout
21313
21314 \end_inset
21315
21316 , in which case it defaults to 
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 div
21322 \end_layout
21323
21324 \end_inset
21325
21326 .
21327 \end_layout
21328
21329 \begin_layout Description
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 HTMLLabelAttr
21335 \end_layout
21336
21337 \end_inset
21338
21339  [
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 string
21345 \end_layout
21346
21347 \end_inset
21348
21349 ] Attributes for the label tag.
21350  Defaults to 
21351 \begin_inset Quotes eld
21352 \end_inset
21353
21354
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 class=`layoutname_label'
21360 \end_layout
21361
21362 \end_inset
21363
21364
21365 \begin_inset Quotes erd
21366 \end_inset
21367
21368 .
21369  This should 
21370 \emph on
21371 not
21372 \emph default
21373  contain any style information.
21374  Use 
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379 HTMLStyle
21380 \end_layout
21381
21382 \end_inset
21383
21384  for that purpose.
21385 \end_layout
21386
21387 \begin_layout Description
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 HTMLLabelFirst
21393 \end_layout
21394
21395 \end_inset
21396
21397  [
21398 \begin_inset Flex Code
21399 status collapsed
21400
21401 \begin_layout Plain Layout
21402
21403 \emph on
21404 0
21405 \emph default
21406 ,1
21407 \end_layout
21408
21409 \end_inset
21410
21411 ] Meaningful only for list-like environments, this tag controls whether
21412  the label tag is output before or inside the item tag.
21413  This is used, for example, in the description environment, where we want
21414  `
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419 <dt>\SpecialChar ldots
21420 </dt><dd>\SpecialChar ldots
21421 </dd>
21422 \end_layout
21423
21424 \end_inset
21425
21426 .
21427  Default is 
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432 0
21433 \end_layout
21434
21435 \end_inset
21436
21437 : The label tag is output inside the item tag.
21438 \end_layout
21439
21440 \begin_layout Description
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445 HTMLPreamble
21446 \end_layout
21447
21448 \end_inset
21449
21450  Information to be output in the 
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 <head>
21456 \end_layout
21457
21458 \end_inset
21459
21460  section when this style is used.
21461  This might, for example, be used to include a 
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 <script>
21467 \end_layout
21468
21469 \end_inset
21470
21471  block defining an 
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 onclick
21477 \end_layout
21478
21479 \end_inset
21480
21481  handler.
21482 \end_layout
21483
21484 \begin_layout Description
21485 \begin_inset Flex Code
21486 status collapsed
21487
21488 \begin_layout Plain Layout
21489 HTMLStyle
21490 \end_layout
21491
21492 \end_inset
21493
21494  CSS style information to be included when this style is used.
21495  Note that this will automatically be wrapped in a layout-generated 
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 <style>
21501 \end_layout
21502
21503 \end_inset
21504
21505  block, so only the CSS itself need be included.
21506  Must end with 
21507 \begin_inset Flex Code
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 EndHTMLStyle
21512 \end_layout
21513
21514 \end_inset
21515
21516 .
21517 \end_layout
21518
21519 \begin_layout Description
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 HTMLTag
21525 \end_layout
21526
21527 \end_inset
21528
21529  [
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 string
21535 \end_layout
21536
21537 \end_inset
21538
21539 ] The tag to be used for the main label, replacing 
21540 \begin_inset Flex Code
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 tag
21545 \end_layout
21546
21547 \end_inset
21548
21549  in the examples above.
21550  Defaults to 
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 div
21556 \end_layout
21557
21558 \end_inset
21559
21560 .
21561 \end_layout
21562
21563 \begin_layout Description
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 HTMLTitle
21569 \end_layout
21570
21571 \end_inset
21572
21573  [
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578
21579 \emph on
21580 0
21581 \emph default
21582 ,1
21583 \end_layout
21584
21585 \end_inset
21586
21587 ] Marks this style as the one to be used to generate the 
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 <title>
21593 \end_layout
21594
21595 \end_inset
21596
21597  tag for the XHTML file.
21598  By default, it is false.
21599  The 
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 stdtitle.inc
21605 \end_layout
21606
21607 \end_inset
21608
21609  file sets it to true for the 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 title
21615 \end_layout
21616
21617 \end_inset
21618
21619  environment.
21620  
21621 \end_layout
21622
21623 \begin_layout Subsection
21624 InsetLayout XHTML
21625 \end_layout
21626
21627 \begin_layout Standard
21628 The XHTML output of insets can also be controlled by information in layout
21629  files.
21630 \begin_inset Foot
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 At present, this is true only for 
21635 \begin_inset Quotes eld
21636 \end_inset
21637
21638 text
21639 \begin_inset Quotes erd
21640 \end_inset
21641
21642  insets (insets you can type into) and is not true for 
21643 \begin_inset Quotes eld
21644 \end_inset
21645
21646 command
21647 \begin_inset Quotes erd
21648 \end_inset
21649
21650  insets (insets that are associated with dialog boxes).
21651 \end_layout
21652
21653 \end_inset
21654
21655  Here, too, \SpecialChar LyX
21656  tries to provide sensible defaults, and it constructs default
21657  CSS style rules.
21658  But everything can be customized.
21659 \end_layout
21660
21661 \begin_layout Standard
21662 The XHTML \SpecialChar LyX
21663  outputs for an inset has the following form:
21664 \end_layout
21665
21666 \begin_layout LyX-Code
21667 <tag attr=
21668 \begin_inset Quotes erd
21669 \end_inset
21670
21671 value
21672 \begin_inset Quotes erd
21673 \end_inset
21674
21675 >
21676 \end_layout
21677
21678 \begin_layout LyX-Code
21679 <labeltag>Label</labeltag>
21680 \end_layout
21681
21682 \begin_layout LyX-Code
21683 <innertag attr=
21684 \begin_inset Quotes erd
21685 \end_inset
21686
21687 value
21688 \begin_inset Quotes erd
21689 \end_inset
21690
21691 >Contents of the inset.</innertag>
21692 \end_layout
21693
21694 \begin_layout LyX-Code
21695 </tag>
21696 \end_layout
21697
21698 \begin_layout Standard
21699 If the inset permits multiple paragraphs—that is, if 
21700 \begin_inset Flex Code
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 MultiPar
21705 \end_layout
21706
21707 \end_inset
21708
21709  is true—then the contents of the inset will itself be output as paragraphs
21710  formatted according to the styles used for those paragraphs (standard,
21711  quote, and the like).
21712  The label tag is of course omitted if the paragraph does not have a label
21713  and, at present, is always 
21714 \begin_inset Flex Code
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 span
21719 \end_layout
21720
21721 \end_inset
21722
21723 .
21724  The inner tag is optional and, by default, does not appear.
21725 \end_layout
21726
21727 \begin_layout Standard
21728 The specific tags and attributes output for each inset can be controlled
21729  by means of the following layout tags.
21730 \end_layout
21731
21732 \begin_layout Description
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 HTMLAttr
21738 \end_layout
21739
21740 \end_inset
21741
21742  [
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 string
21748 \end_layout
21749
21750 \end_inset
21751
21752 ] Specifies attribute information to be output with the main tag.
21753  For example, 
21754 \begin_inset Quotes eld
21755 \end_inset
21756
21757
21758 \begin_inset Flex Code
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762 class=`myinset' onclick=`\SpecialChar ldots
21763 '
21764 \end_layout
21765
21766 \end_inset
21767
21768
21769 \begin_inset Quotes erd
21770 \end_inset
21771
21772 .
21773  By default, \SpecialChar LyX
21774  will output 
21775 \begin_inset Quotes eld
21776 \end_inset
21777
21778
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783 class=`insetname'
21784 \end_layout
21785
21786 \end_inset
21787
21788
21789 \begin_inset Quotes erd
21790 \end_inset
21791
21792 , where 
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 insetname
21798 \end_layout
21799
21800 \end_inset
21801
21802  is the \SpecialChar LyX
21803  name of the inset, made lowercase and with non-alphanumeric characters
21804  converted to underscores, for example: footnote.
21805 \end_layout
21806
21807 \begin_layout Description
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 HTMLForceCSS
21813 \end_layout
21814
21815 \end_inset
21816
21817  [
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822
21823 \emph on
21824 0
21825 \emph default
21826 ,1
21827 \end_layout
21828
21829 \end_inset
21830
21831 ] Whether to output the default CSS information \SpecialChar LyX
21832  generates for this layout,
21833  even if additional information is explicitly provided via 
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 HTMLStyle
21839 \end_layout
21840
21841 \end_inset
21842
21843 .
21844  Setting this to 
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 1
21850 \end_layout
21851
21852 \end_inset
21853
21854  allows you to alter or augment the generated CSS, rather than to override
21855  it completely.
21856  Default is 0.
21857 \end_layout
21858
21859 \begin_layout Description
21860 \begin_inset Flex Code
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864 HTMLInnerAttr
21865 \end_layout
21866
21867 \end_inset
21868
21869  [
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874 string
21875 \end_layout
21876
21877 \end_inset
21878
21879 ] Attributes for the inner tag.
21880  Defaults to 
21881 \begin_inset Quotes eld
21882 \end_inset
21883
21884
21885 \begin_inset Flex Code
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889 class=`insetname_inner'
21890 \end_layout
21891
21892 \end_inset
21893
21894
21895 \begin_inset Quotes erd
21896 \end_inset
21897
21898 .
21899 \end_layout
21900
21901 \begin_layout Description
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 HTMLInnerTag
21907 \end_layout
21908
21909 \end_inset
21910
21911  [
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 string
21917 \end_layout
21918
21919 \end_inset
21920
21921 ] The inner tag, replacing 
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 innertag
21927 \end_layout
21928
21929 \end_inset
21930
21931  in the examples above.
21932  By default, there is none.
21933 \end_layout
21934
21935 \begin_layout Description
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 HTMLIsBlock
21941 \end_layout
21942
21943 \end_inset
21944
21945  [
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 0,
21951 \emph on
21952 1
21953 \end_layout
21954
21955 \end_inset
21956
21957 ] Whether this inset represents a standalone block of text (such as a footnote)
21958  or instead represents material that is included in the surrounding text
21959  (such as a branch).
21960  Defaults to 1.
21961 \end_layout
21962
21963 \begin_layout Description
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 HTMLLabel
21969 \end_layout
21970
21971 \end_inset
21972
21973  [
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 string
21979 \end_layout
21980
21981 \end_inset
21982
21983 ] A label for this inset, possibly including a reference to a counter.
21984  For example, for footnote, it might be: 
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989
21990 \backslash
21991 arabic{footnote}
21992 \end_layout
21993
21994 \end_inset
21995
21996 .
21997  This is optional, and there is no default.
21998 \end_layout
21999
22000 \begin_layout Description
22001 \begin_inset Flex Code
22002 status collapsed
22003
22004 \begin_layout Plain Layout
22005 HTMLPreamble
22006 \end_layout
22007
22008 \end_inset
22009
22010  Information to be output in the 
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 <head>
22016 \end_layout
22017
22018 \end_inset
22019
22020  section when this style is used.
22021  This might, for example, be used to include a 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 <script>
22027 \end_layout
22028
22029 \end_inset
22030
22031  block defining an 
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 onclick
22037 \end_layout
22038
22039 \end_inset
22040
22041  handler.
22042 \end_layout
22043
22044 \begin_layout Description
22045 \begin_inset Flex Code
22046 status collapsed
22047
22048 \begin_layout Plain Layout
22049 HTMLStyle
22050 \end_layout
22051
22052 \end_inset
22053
22054  CSS style information to be included when this style is used.
22055  Note that this will automatically be wrapped in a layout-generated 
22056 \begin_inset Flex Code
22057 status collapsed
22058
22059 \begin_layout Plain Layout
22060 <style>
22061 \end_layout
22062
22063 \end_inset
22064
22065  block, so only the CSS itself need be included.
22066 \end_layout
22067
22068 \begin_layout Description
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 HTMLTag
22074 \end_layout
22075
22076 \end_inset
22077
22078  [
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 string
22084 \end_layout
22085
22086 \end_inset
22087
22088 ] The tag to be used for the main label, replacing 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 tag
22094 \end_layout
22095
22096 \end_inset
22097
22098  in the examples above.
22099  The default depends upon the setting of 
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 MultiPar
22105 \end_layout
22106
22107 \end_inset
22108
22109 : If 
22110 \begin_inset Flex Code
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114 MultiPar
22115 \end_layout
22116
22117 \end_inset
22118
22119  is true, the default is 
22120 \begin_inset Flex Code
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 div
22125 \end_layout
22126
22127 \end_inset
22128
22129 ; if it is false, the default is 
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 span
22135 \end_layout
22136
22137 \end_inset
22138
22139 .
22140 \end_layout
22141
22142 \begin_layout Subsection
22143 Float XHTML
22144 \end_layout
22145
22146 \begin_layout Standard
22147 The XHTML output for floats too can be controlled by layout information.
22148  The output has the following form:
22149 \end_layout
22150
22151 \begin_layout LyX-Code
22152 <tag attr=
22153 \begin_inset Quotes erd
22154 \end_inset
22155
22156 value
22157 \begin_inset Quotes erd
22158 \end_inset
22159
22160 >
22161 \end_layout
22162
22163 \begin_layout LyX-Code
22164 Contents of the float.
22165 \end_layout
22166
22167 \begin_layout LyX-Code
22168 </tag>
22169 \end_layout
22170
22171 \begin_layout Standard
22172 The caption, if there is one, is a separate inset and will be output as
22173  such.
22174  Its appearance can be controlled via the InsetLayout for caption insets.
22175  
22176 \end_layout
22177
22178 \begin_layout Description
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183 HTMLAttr
22184 \end_layout
22185
22186 \end_inset
22187
22188  [
22189 \begin_inset Flex Code
22190 status collapsed
22191
22192 \begin_layout Plain Layout
22193 string
22194 \end_layout
22195
22196 \end_inset
22197
22198 ] Specifies attribute information to be output with the main tag.
22199  For example, 
22200 \begin_inset Quotes eld
22201 \end_inset
22202
22203
22204 \begin_inset Flex Code
22205 status collapsed
22206
22207 \begin_layout Plain Layout
22208 class=`myfloat' onclick=`\SpecialChar ldots
22209 '
22210 \end_layout
22211
22212 \end_inset
22213
22214
22215 \begin_inset Quotes erd
22216 \end_inset
22217
22218 .
22219  By default, \SpecialChar LyX
22220  will output 
22221 \begin_inset Quotes eld
22222 \end_inset
22223
22224
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 class=`float float-floattype'
22230 \end_layout
22231
22232 \end_inset
22233
22234
22235 \begin_inset Quotes erd
22236 \end_inset
22237
22238 , where 
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243 floattype
22244 \end_layout
22245
22246 \end_inset
22247
22248  is \SpecialChar LyX
22249 's name for this type of float, as determined by the float declaration
22250  (see 
22251 \begin_inset CommandInset ref
22252 LatexCommand ref
22253 reference "sub:Floats"
22254
22255 \end_inset
22256
22257 ), though made lowercase and with non-alphanumeric characters converted
22258  to underscores, for example: float-table.
22259 \end_layout
22260
22261 \begin_layout Description
22262 \begin_inset Flex Code
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 HTMLStyle
22267 \end_layout
22268
22269 \end_inset
22270
22271  CSS style information to be included when this float is used.
22272  Note that this will automatically be wrapped in a layout-generated 
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277 <style>
22278 \end_layout
22279
22280 \end_inset
22281
22282  block, so only the CSS itself need be included.
22283 \end_layout
22284
22285 \begin_layout Description
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 HTMLTag
22291 \end_layout
22292
22293 \end_inset
22294
22295  [
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300 string
22301 \end_layout
22302
22303 \end_inset
22304
22305 ] The tag to be used for this float, replacing 
22306 \begin_inset Quotes eld
22307 \end_inset
22308
22309
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314 tag
22315 \end_layout
22316
22317 \end_inset
22318
22319
22320 \begin_inset Quotes erd
22321 \end_inset
22322
22323  in the example above.
22324  The default is 
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 div
22330 \end_layout
22331
22332 \end_inset
22333
22334  and will rarely need changing.
22335 \end_layout
22336
22337 \begin_layout Subsection
22338 Bibliography formatting
22339 \end_layout
22340
22341 \begin_layout Standard
22342 The bibliography can be formatted using 
22343 \begin_inset Flex Code
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 CiteFormat
22348 \end_layout
22349
22350 \end_inset
22351
22352  blocks.
22353  See 
22354 \begin_inset CommandInset ref
22355 LatexCommand ref
22356 reference "sub:Citation-format-description"
22357
22358 \end_inset
22359
22360  for the details.
22361 \end_layout
22362
22363 \begin_layout Subsection
22364 \SpecialChar LyX
22365 -generated CSS
22366 \end_layout
22367
22368 \begin_layout Standard
22369 We have several times mentioned that \SpecialChar LyX
22370  will generate default CSS style rules
22371  for both insets and paragraph styles, based upon the other layout information
22372  that is provided.
22373  In this section, we shall say a word about which layout information \SpecialChar LyX
22374  uses
22375  and how.
22376 \end_layout
22377
22378 \begin_layout Standard
22379 At present, \SpecialChar LyX
22380  auto-generates CSS only for font information, making use of
22381  the 
22382 \begin_inset Flex Code
22383 status collapsed
22384
22385 \begin_layout Plain Layout
22386 Family
22387 \end_layout
22388
22389 \end_inset
22390
22391
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 Series
22397 \end_layout
22398
22399 \end_inset
22400
22401
22402 \begin_inset Flex Code
22403 status collapsed
22404
22405 \begin_layout Plain Layout
22406 Shape
22407 \end_layout
22408
22409 \end_inset
22410
22411 , and 
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 Size
22417 \end_layout
22418
22419 \end_inset
22420
22421  specified in the 
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426 Font
22427 \end_layout
22428
22429 \end_inset
22430
22431  declaration (see 
22432 \begin_inset CommandInset ref
22433 LatexCommand ref
22434 reference "sub:Font-description"
22435
22436 \end_inset
22437
22438 ).
22439  The translation is mostly straightforward and obvious.
22440  For example, 
22441 \begin_inset Quotes eld
22442 \end_inset
22443
22444
22445 \begin_inset Flex Code
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 Family Sans
22450 \end_layout
22451
22452 \end_inset
22453
22454
22455 \begin_inset Quotes erd
22456 \end_inset
22457
22458  becomes 
22459 \begin_inset Quotes eld
22460 \end_inset
22461
22462
22463 \begin_inset Flex Code
22464 status collapsed
22465
22466 \begin_layout Plain Layout
22467 font-family: sans-serif;
22468 \end_layout
22469
22470 \end_inset
22471
22472
22473 \begin_inset Quotes erd
22474 \end_inset
22475
22476 .
22477  The correspondence of \SpecialChar LyX
22478  sizes and CSS sizes is a little less obvious but
22479  nonetheless intuitive.
22480  See the 
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 getSizeCSS()
22486 \end_layout
22487
22488 \end_inset
22489
22490  function in 
22491 \begin_inset Flex URL
22492 status collapsed
22493
22494 \begin_layout Plain Layout
22495
22496 src/FontInfo.cpp
22497 \end_layout
22498
22499 \end_inset
22500
22501  for the details.
22502 \end_layout
22503
22504 \begin_layout Chapter
22505 Including External Material
22506 \begin_inset CommandInset label
22507 LatexCommand label
22508 name "chap:Including-External-Material"
22509
22510 \end_inset
22511
22512
22513 \end_layout
22514
22515 \begin_layout Standard
22516 \begin_inset Box Shadowbox
22517 position "t"
22518 hor_pos "c"
22519 has_inner_box 1
22520 inner_pos "t"
22521 use_parbox 0
22522 use_makebox 0
22523 width "100col%"
22524 special "none"
22525 height "1in"
22526 height_special "totalheight"
22527 thickness "0.4pt"
22528 separation "3pt"
22529 shadowsize "4pt"
22530 framecolor "black"
22531 backgroundcolor "none"
22532 status open
22533
22534 \begin_layout Plain Layout
22535 WARNING: This portion of the documentation has not been updated for some
22536  time.
22537  We certainly hope that it is still accurate, but there are no guarantees.
22538 \end_layout
22539
22540 \end_inset
22541
22542
22543 \end_layout
22544
22545 \begin_layout Standard
22546 The use of material from sources external to \SpecialChar LyX
22547  is covered in detail in the
22548  
22549 \emph on
22550 Embedded Objects
22551 \emph default
22552  manual.
22553  This part of the manual covers what needs to happen behind the scenes for
22554  new sorts of material to be included.
22555 \end_layout
22556
22557 \begin_layout Section
22558 How does it work?
22559 \end_layout
22560
22561 \begin_layout Standard
22562 The external material feature is based on the concept of a 
22563 \emph on
22564 template
22565 \emph default
22566 .
22567  A template is a specification of how \SpecialChar LyX
22568  should interface with a certain kind
22569  of material.
22570  As bundled, \SpecialChar LyX
22571  comes with predefined templates for Xfig figures, various
22572  raster format images, chess diagrams, and LilyPond music notation.
22573  You can check the actual list by using the menu 
22574 \begin_inset Flex MenuItem
22575 status collapsed
22576
22577 \begin_layout Plain Layout
22578 Insert\SpecialChar menuseparator
22579 File\SpecialChar menuseparator
22580 External Material
22581 \end_layout
22582
22583 \end_inset
22584
22585 .
22586  Furthermore, it is possible to roll your own template to support a specific
22587  kind of material.
22588  Later we'll describe in more detail what is involved, and hopefully you
22589  will submit all the templates you create so we can include them in a later
22590  \SpecialChar LyX
22591  version.
22592 \end_layout
22593
22594 \begin_layout Standard
22595 Another basic idea of the external material feature is to distinguish between
22596  the original file that serves as a base for final material and the produced
22597  file that is included in your exported or printed document.
22598  For example, consider the case of a figure produced with 
22599 \begin_inset Flex Code
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603 Xfig
22604 \end_layout
22605
22606 \end_inset
22607
22608 .
22609  The Xfig application itself works on an original file with the 
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614 .fig
22615 \end_layout
22616
22617 \end_inset
22618
22619  extension.
22620  Within Xfig, you create and change your figure, and when you are done,
22621  you save the 
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 fig
22627 \end_layout
22628
22629 \end_inset
22630
22631 -file.
22632  When you want to include the figure in your document, you invoke 
22633 \begin_inset Flex Code
22634 status collapsed
22635
22636 \begin_layout Plain Layout
22637 transfig
22638 \end_layout
22639
22640 \end_inset
22641
22642  in order to create a PostScript file that can readily be included in your
22643  \SpecialChar LaTeX
22644  file.
22645  In this case, the 
22646 \begin_inset Flex Code
22647 status collapsed
22648
22649 \begin_layout Plain Layout
22650 .fig
22651 \end_layout
22652
22653 \end_inset
22654
22655  file is the original file, and the PostScript file is the produced file.
22656 \end_layout
22657
22658 \begin_layout Standard
22659 This distinction is important in order to allow updating of the material
22660  while you are in the process of writing the document.
22661  Furthermore, it provides us with the flexibility that is needed to support
22662  multiple export formats.
22663  For instance, in the case of a plain text file, it is not exactly an award-winn
22664 ing idea to include the figure as raw PostScript.
22665  Instead, you would either prefer to just include a reference to the figure
22666  or try to invoke some graphics to ASCII converter to make the final result
22667  look similar to the real graphics.
22668  The external material management allows you to do this, because it is parametri
22669 zed on the different export formats that \SpecialChar LyX
22670  supports.
22671 \end_layout
22672
22673 \begin_layout Standard
22674 Besides supporting the production of different products according to the
22675  exported format, it supports tight integration with editing and viewing
22676  applications.
22677  In the case of an Xfig figure, you are able to invoke Xfig on the original
22678  file with a single click from within the external material dialog in \SpecialChar LyX
22679 ,
22680  and also preview the produced PostScript file with Ghostview with another
22681  click.
22682  No more fiddling around with the command line and/or file browsers to locate
22683  and manipulate the original or produced files.
22684  In this way, you are finally able to take full advantage of the many different
22685  applications that are relevant to use when you write your documents, and
22686  ultimately be more productive.
22687 \end_layout
22688
22689 \begin_layout Section
22690 The external template configuration file
22691 \end_layout
22692
22693 \begin_layout Standard
22694 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22695 .
22696  However, be aware that doing this in an careless manner most probably 
22697 \emph on
22698 will
22699 \emph default
22700  introduce an easily exploitable security hole.
22701  So before you do this, please read the discussion about security in 
22702 \begin_inset CommandInset ref
22703 LatexCommand ref
22704 reference "sec:Security-discussion"
22705
22706 \end_inset
22707
22708 .
22709 \end_layout
22710
22711 \begin_layout Standard
22712 Having said that, we encourage you to submit any interesting templates that
22713  you create.
22714  
22715 \end_layout
22716
22717 \begin_layout Standard
22718 The external templates are defined in the 
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 \SpecialChar LyX
22724 Dir/lib/external_templates
22725 \end_layout
22726
22727 \end_inset
22728
22729  file.
22730  You can place your own version in 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 UserDir/external_templates
22736 \end_layout
22737
22738 \end_inset
22739
22740 .
22741 \end_layout
22742
22743 \begin_layout Standard
22744 A typical template looks like this:
22745 \end_layout
22746
22747 \begin_layout LyX-Code
22748 Template XFig
22749 \end_layout
22750
22751 \begin_layout LyX-Code
22752 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22753 \end_layout
22754
22755 \begin_layout LyX-Code
22756 HelpText
22757 \end_layout
22758
22759 \begin_layout LyX-Code
22760 An XFig figure.
22761 \end_layout
22762
22763 \begin_layout LyX-Code
22764 HelpTextEnd
22765 \end_layout
22766
22767 \begin_layout LyX-Code
22768 InputFormat fig
22769 \end_layout
22770
22771 \begin_layout LyX-Code
22772 FileFilter "*.fig"
22773 \end_layout
22774
22775 \begin_layout LyX-Code
22776 AutomaticProduction true
22777 \end_layout
22778
22779 \begin_layout LyX-Code
22780 Transform Rotate
22781 \end_layout
22782
22783 \begin_layout LyX-Code
22784 Transform Resize
22785 \end_layout
22786
22787 \begin_layout LyX-Code
22788 Format \SpecialChar LaTeX
22789
22790 \end_layout
22791
22792 \begin_layout LyX-Code
22793 TransformCommand Rotate RotationLatexCommand
22794 \end_layout
22795
22796 \begin_layout LyX-Code
22797 TransformCommand Resize ResizeLatexCommand
22798 \end_layout
22799
22800 \begin_layout LyX-Code
22801 Product "$$RotateFront$$ResizeFront
22802 \end_layout
22803
22804 \begin_layout LyX-Code
22805          
22806 \backslash
22807
22808 \backslash
22809 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22810 \end_layout
22811
22812 \begin_layout LyX-Code
22813          $$ResizeBack$$RotateBack"
22814 \end_layout
22815
22816 \begin_layout LyX-Code
22817 UpdateFormat pstex
22818 \end_layout
22819
22820 \begin_layout LyX-Code
22821 UpdateResult "$$AbsPath$$Basename.pstex_t"
22822 \end_layout
22823
22824 \begin_layout LyX-Code
22825 Requirement "graphicx"
22826 \end_layout
22827
22828 \begin_layout LyX-Code
22829 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22830 \end_layout
22831
22832 \begin_layout LyX-Code
22833 ReferencedFile latex "$$AbsPath$$Basename.eps"
22834 \end_layout
22835
22836 \begin_layout LyX-Code
22837 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22838 \end_layout
22839
22840 \begin_layout LyX-Code
22841 FormatEnd
22842 \end_layout
22843
22844 \begin_layout LyX-Code
22845 Format PDF\SpecialChar LaTeX
22846
22847 \end_layout
22848
22849 \begin_layout LyX-Code
22850 TransformCommand Rotate RotationLatexCommand
22851 \end_layout
22852
22853 \begin_layout LyX-Code
22854 TransformCommand Resize ResizeLatexCommand
22855 \end_layout
22856
22857 \begin_layout LyX-Code
22858 Product "$$RotateFront$$ResizeFront
22859 \end_layout
22860
22861 \begin_layout LyX-Code
22862          
22863 \backslash
22864
22865 \backslash
22866 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22867 \end_layout
22868
22869 \begin_layout LyX-Code
22870          $$ResizeBack$$RotateBack"
22871 \end_layout
22872
22873 \begin_layout LyX-Code
22874 UpdateFormat pdftex
22875 \end_layout
22876
22877 \begin_layout LyX-Code
22878 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22879 \end_layout
22880
22881 \begin_layout LyX-Code
22882 Requirement "graphicx"
22883 \end_layout
22884
22885 \begin_layout LyX-Code
22886 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22887 \end_layout
22888
22889 \begin_layout LyX-Code
22890 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22891 \end_layout
22892
22893 \begin_layout LyX-Code
22894 FormatEnd
22895 \end_layout
22896
22897 \begin_layout LyX-Code
22898 Format Ascii
22899 \end_layout
22900
22901 \begin_layout LyX-Code
22902 Product "$$Contents(
22903 \backslash
22904 "$$AbsPath$$Basename.asc
22905 \backslash
22906 ")"
22907 \end_layout
22908
22909 \begin_layout LyX-Code
22910 UpdateFormat asciixfig
22911 \end_layout
22912
22913 \begin_layout LyX-Code
22914 UpdateResult "$$AbsPath$$Basename.asc"
22915 \end_layout
22916
22917 \begin_layout LyX-Code
22918 FormatEnd
22919 \end_layout
22920
22921 \begin_layout LyX-Code
22922 Format DocBook
22923 \end_layout
22924
22925 \begin_layout LyX-Code
22926 Product "<graphic fileref=
22927 \backslash
22928 "$$AbsOrRelPathMaster$$Basename.eps
22929 \backslash
22930 ">
22931 \end_layout
22932
22933 \begin_layout LyX-Code
22934          </graphic>"
22935 \end_layout
22936
22937 \begin_layout LyX-Code
22938 UpdateFormat eps
22939 \end_layout
22940
22941 \begin_layout LyX-Code
22942 UpdateResult "$$AbsPath$$Basename.eps"
22943 \end_layout
22944
22945 \begin_layout LyX-Code
22946 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22947 \end_layout
22948
22949 \begin_layout LyX-Code
22950 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22951 \end_layout
22952
22953 \begin_layout LyX-Code
22954 FormatEnd
22955 \end_layout
22956
22957 \begin_layout LyX-Code
22958 Product "[XFig: $$FName]"
22959 \end_layout
22960
22961 \begin_layout LyX-Code
22962 FormatEnd
22963 \end_layout
22964
22965 \begin_layout LyX-Code
22966 TemplateEnd
22967 \end_layout
22968
22969 \begin_layout Standard
22970 As you can see, the template is enclosed in 
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 Template
22976 \end_layout
22977
22978 \end_inset
22979
22980  \SpecialChar ldots
22981  
22982 \begin_inset Flex Code
22983 status collapsed
22984
22985 \begin_layout Plain Layout
22986 TemplateEnd
22987 \end_layout
22988
22989 \end_inset
22990
22991 .
22992  It contains a header specifying some general settings and, for each supported
22993  primary document file format, a section 
22994 \begin_inset Flex Code
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998 Format
22999 \end_layout
23000
23001 \end_inset
23002
23003  \SpecialChar ldots
23004  
23005 \begin_inset Flex Code
23006 status collapsed
23007
23008 \begin_layout Plain Layout
23009 FormatEnd
23010 \end_layout
23011
23012 \end_inset
23013
23014 .
23015 \end_layout
23016
23017 \begin_layout Subsection
23018 The template header
23019 \end_layout
23020
23021 \begin_layout Description
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 AutomaticProduction
23027 \begin_inset space ~
23028 \end_inset
23029
23030 true|false
23031 \end_layout
23032
23033 \end_inset
23034
23035  Whether the file represented by the template must be generated by \SpecialChar LyX
23036 .
23037  This command must occur exactly once.
23038 \end_layout
23039
23040 \begin_layout Description
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 FileFilter
23046 \begin_inset space ~
23047 \end_inset
23048
23049 <pattern>
23050 \end_layout
23051
23052 \end_inset
23053
23054  A glob pattern that is used in the file dialog to filter out the desired
23055  files.
23056  If there is more than one possible file extension (e.
23057 \begin_inset space \thinspace{}
23058 \end_inset
23059
23060 g.
23061 \begin_inset space \space{}
23062 \end_inset
23063
23064 tgif has 
23065 \begin_inset Flex Code
23066 status collapsed
23067
23068 \begin_layout Plain Layout
23069 .obj
23070 \end_layout
23071
23072 \end_inset
23073
23074  and 
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079 .tgo
23080 \end_layout
23081
23082 \end_inset
23083
23084 ), use something like 
23085 \begin_inset Flex Code
23086 status collapsed
23087
23088 \begin_layout Plain Layout
23089 "*.{obj,tgo}"
23090 \end_layout
23091
23092 \end_inset
23093
23094 .
23095  This command must occur exactly once.
23096 \end_layout
23097
23098 \begin_layout Description
23099 \begin_inset Flex Code
23100 status collapsed
23101
23102 \begin_layout Plain Layout
23103 GuiName
23104 \begin_inset space ~
23105 \end_inset
23106
23107 <guiname>
23108 \end_layout
23109
23110 \end_inset
23111
23112  The text that is displayed on the button.
23113  This command must occur exactly once.
23114 \end_layout
23115
23116 \begin_layout Description
23117 \begin_inset Flex Code
23118 status collapsed
23119
23120 \begin_layout Plain Layout
23121 HelpText
23122 \begin_inset space ~
23123 \end_inset
23124
23125 <text>
23126 \begin_inset space ~
23127 \end_inset
23128
23129 HelpTextEnd
23130 \end_layout
23131
23132 \end_inset
23133
23134  The help text that is used in the External dialog.
23135  Provide enough information to explain to the user just what the template
23136  can provide him with.
23137  This command must occur exactly once.
23138 \end_layout
23139
23140 \begin_layout Description
23141 \begin_inset Flex Code
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145 InputFormat
23146 \begin_inset space ~
23147 \end_inset
23148
23149 <format>
23150 \end_layout
23151
23152 \end_inset
23153
23154  The file format of the original file.
23155  This must be the name of a format that is known to \SpecialChar LyX
23156  (see 
23157 \begin_inset CommandInset ref
23158 LatexCommand ref
23159 reference "sec:Formats"
23160
23161 \end_inset
23162
23163 ).
23164  Use 
23165 \begin_inset Quotes eld
23166 \end_inset
23167
23168
23169 \begin_inset Flex Code
23170 status collapsed
23171
23172 \begin_layout Plain Layout
23173 *
23174 \end_layout
23175
23176 \end_inset
23177
23178
23179 \begin_inset Quotes erd
23180 \end_inset
23181
23182  if the template can handle original files of more than one format.
23183  \SpecialChar LyX
23184  will attempt to interrogate the file itself in order to deduce its format
23185  in this case.
23186  This command must occur exactly once.
23187 \end_layout
23188
23189 \begin_layout Description
23190 \begin_inset Flex Code
23191 status collapsed
23192
23193 \begin_layout Plain Layout
23194 Template
23195 \begin_inset space ~
23196 \end_inset
23197
23198 <id>
23199 \end_layout
23200
23201 \end_inset
23202
23203  A unique name for the template.
23204  It must not contain substitution macros (see below).
23205 \end_layout
23206
23207 \begin_layout Description
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212 Transform
23213 \begin_inset space ~
23214 \end_inset
23215
23216 Rotate|Resize|Clip|Extra
23217 \end_layout
23218
23219 \end_inset
23220
23221  This command specifies which transformations are supported by this template.
23222  It may occur zero or more times.
23223  This command enables the corresponding tabs in the external dialog.
23224  Each 
23225 \begin_inset Flex Code
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 Transform
23230 \end_layout
23231
23232 \end_inset
23233
23234  command must have either a corresponding 
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239 TransformCommand
23240 \end_layout
23241
23242 \end_inset
23243
23244  or a 
23245 \begin_inset Flex Code
23246 status collapsed
23247
23248 \begin_layout Plain Layout
23249 TransformOption
23250 \end_layout
23251
23252 \end_inset
23253
23254  command in the 
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 Format
23260 \end_layout
23261
23262 \end_inset
23263
23264  section.
23265  Otherwise the transformation will not be supported by that format.
23266 \end_layout
23267
23268 \begin_layout Subsection
23269 The Format section
23270 \end_layout
23271
23272 \begin_layout Description
23273 \begin_inset Flex Code
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 Format
23278 \begin_inset space ~
23279 \end_inset
23280
23281 \SpecialChar LaTeX
23282 |PDF\SpecialChar LaTeX
23283 |PlainText|DocBook
23284 \end_layout
23285
23286 \end_inset
23287
23288  The primary document file format that this format definition is for.
23289  Not every template has a sensible representation in all document file formats.
23290  Please define nevertheless a 
23291 \begin_inset Flex Code
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295 Format
23296 \end_layout
23297
23298 \end_inset
23299
23300  section for all templates.
23301  Use a dummy text when no representation is available.
23302  Then you can at least see a reference to the external material in the exported
23303  document.
23304 \end_layout
23305
23306 \begin_layout Description
23307 \begin_inset Flex Code
23308 status collapsed
23309
23310 \begin_layout Plain Layout
23311 Option
23312 \begin_inset space ~
23313 \end_inset
23314
23315 <name>
23316 \begin_inset space ~
23317 \end_inset
23318
23319 <value>
23320 \end_layout
23321
23322 \end_inset
23323
23324  This command defines an additional macro 
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329 $$<name>
23330 \end_layout
23331
23332 \end_inset
23333
23334  for substitution in 
23335 \begin_inset Flex Code
23336 status collapsed
23337
23338 \begin_layout Plain Layout
23339 Product
23340 \end_layout
23341
23342 \end_inset
23343
23344 .
23345  
23346 \begin_inset Flex Code
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350 <value>
23351 \end_layout
23352
23353 \end_inset
23354
23355  itself may contain substitution macros.
23356  The advantage over using 
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 <value>
23362 \end_layout
23363
23364 \end_inset
23365
23366  directly in 
23367 \begin_inset Flex Code
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 Product
23372 \end_layout
23373
23374 \end_inset
23375
23376  is that the substituted value of 
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381 $$<name>
23382 \end_layout
23383
23384 \end_inset
23385
23386  is sanitized so that it is a valid optional argument in the document format.
23387  This command may occur zero or more times.
23388 \end_layout
23389
23390 \begin_layout Description
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 Product
23396 \begin_inset space ~
23397 \end_inset
23398
23399 <text>
23400 \end_layout
23401
23402 \end_inset
23403
23404  The text that is inserted in the exported document.
23405  This is actually the most important command and can be quite complex.
23406  This command must occur exactly once.
23407 \end_layout
23408
23409 \begin_layout Description
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 Preamble
23415 \begin_inset space ~
23416 \end_inset
23417
23418 <name>
23419 \end_layout
23420
23421 \end_inset
23422
23423  This command specifies a preamble snippet that will be included in the
23424  \SpecialChar LaTeX
23425  preamble.
23426  It has to be defined using 
23427 \begin_inset Flex Code
23428 status collapsed
23429
23430 \begin_layout Plain Layout
23431 PreambleDef
23432 \end_layout
23433
23434 \end_inset
23435
23436  \SpecialChar ldots
23437  
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 PreambleDefEnd
23443 \end_layout
23444
23445 \end_inset
23446
23447 .
23448  This command may occur zero or more times.
23449 \end_layout
23450
23451 \begin_layout Description
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 ReferencedFile
23457 \begin_inset space ~
23458 \end_inset
23459
23460 <format>
23461 \begin_inset space ~
23462 \end_inset
23463
23464 <filename>
23465 \end_layout
23466
23467 \end_inset
23468
23469  This command denotes files that are created by the conversion process and
23470  are needed for a particular export format.
23471  If the filename is relative, it is interpreted relative to the master document.
23472  This command may be given zero or more times.
23473 \end_layout
23474
23475 \begin_layout Description
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480 Requirement
23481 \begin_inset space ~
23482 \end_inset
23483
23484 <package>
23485 \end_layout
23486
23487 \end_inset
23488
23489  The name of a required \SpecialChar LaTeX
23490  package.
23491  The package is included via 
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496
23497 \backslash
23498 usepackage{}
23499 \end_layout
23500
23501 \end_inset
23502
23503  in the \SpecialChar LaTeX
23504  preamble.
23505  This command may occur zero or more times.
23506 \end_layout
23507
23508 \begin_layout Description
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513 TransformCommand
23514 \begin_inset space ~
23515 \end_inset
23516
23517 Rotate
23518 \begin_inset space ~
23519 \end_inset
23520
23521 RotationLatexCommand
23522 \end_layout
23523
23524 \end_inset
23525
23526  This command specifies that the built in \SpecialChar LaTeX
23527  command should be used for rotation.
23528  This command may occur once or not at all.
23529 \end_layout
23530
23531 \begin_layout Description
23532 \begin_inset Flex Code
23533 status collapsed
23534
23535 \begin_layout Plain Layout
23536 TransformCommand
23537 \begin_inset space ~
23538 \end_inset
23539
23540 Resize
23541 \begin_inset space ~
23542 \end_inset
23543
23544 ResizeLatexCommand
23545 \end_layout
23546
23547 \end_inset
23548
23549  This command specifies that the built in \SpecialChar LaTeX
23550  command should be used for resizing.
23551  This command may occur once or not at all.
23552 \end_layout
23553
23554 \begin_layout Description
23555 \begin_inset Flex Code
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 TransformOption
23560 \begin_inset space ~
23561 \end_inset
23562
23563 Rotate
23564 \begin_inset space ~
23565 \end_inset
23566
23567 RotationLatexOption
23568 \end_layout
23569
23570 \end_inset
23571
23572  This command specifies that rotation is done via an optional argument.
23573  This command may occur once or not at all.
23574 \end_layout
23575
23576 \begin_layout Description
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 TransformOption
23582 \begin_inset space ~
23583 \end_inset
23584
23585 Resize
23586 \begin_inset space ~
23587 \end_inset
23588
23589 ResizeLatexOption
23590 \end_layout
23591
23592 \end_inset
23593
23594  This command specifies that resizing is done via an optional argument.
23595  This command may occur once or not at all.
23596 \end_layout
23597
23598 \begin_layout Description
23599 \begin_inset Flex Code
23600 status collapsed
23601
23602 \begin_layout Plain Layout
23603 TransformOption
23604 \begin_inset space ~
23605 \end_inset
23606
23607 Clip
23608 \begin_inset space ~
23609 \end_inset
23610
23611 ClipLatexOption
23612 \end_layout
23613
23614 \end_inset
23615
23616  This command specifies that clipping is done via an optional argument.
23617  This command may occur once or not at all.
23618 \end_layout
23619
23620 \begin_layout Description
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 TransformOption
23626 \begin_inset space ~
23627 \end_inset
23628
23629 Extra
23630 \begin_inset space ~
23631 \end_inset
23632
23633 ExtraLatexOption
23634 \end_layout
23635
23636 \end_inset
23637
23638  This command specifies that an extra optional argument is used.
23639  This command may occur once or not at all.
23640 \end_layout
23641
23642 \begin_layout Description
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647 UpdateFormat
23648 \begin_inset space ~
23649 \end_inset
23650
23651 <format>
23652 \end_layout
23653
23654 \end_inset
23655
23656  The file format of the converted file.
23657  This must be the name of a format that is known to \SpecialChar LyX
23658  (see the 
23659 \begin_inset Flex MenuItem
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 Tools\SpecialChar menuseparator
23664 Preferences\SpecialChar menuseparator
23665 File Handling\SpecialChar menuseparator
23666 File Format
23667 \end_layout
23668
23669 \end_inset
23670
23671  dialog).
23672  This command must occur exactly once.
23673  If the resulting file format is PDF, you need to specify the format 
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 pdf6
23679 \end_layout
23680
23681 \end_inset
23682
23683 .
23684  This is the PDF format used for including graphics.
23685  The other defined PDF formats are for document export.
23686 \end_layout
23687
23688 \begin_layout Description
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 UpdateResult
23694 \begin_inset space ~
23695 \end_inset
23696
23697 <filename>
23698 \end_layout
23699
23700 \end_inset
23701
23702  The file name of the converted file.
23703  The file name must be absolute.
23704  This command must occur exactly once.
23705 \end_layout
23706
23707 \begin_layout Subsection
23708 Preamble definitions
23709 \end_layout
23710
23711 \begin_layout Standard
23712 The external template configuration file may contain additional preamble
23713  definitions enclosed by 
23714 \begin_inset Flex Code
23715 status collapsed
23716
23717 \begin_layout Plain Layout
23718 PreambleDef
23719 \end_layout
23720
23721 \end_inset
23722
23723  \SpecialChar ldots
23724  
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 PreambleDefEnd
23730 \end_layout
23731
23732 \end_inset
23733
23734 .
23735  They can be used by the templates in the 
23736 \begin_inset Flex Code
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 Format
23741 \end_layout
23742
23743 \end_inset
23744
23745  section.
23746 \end_layout
23747
23748 \begin_layout Section
23749 The substitution mechanism
23750 \end_layout
23751
23752 \begin_layout Standard
23753 When the external material facility invokes an external program, it is done
23754  on the basis of a command defined in the template configuration file.
23755  These commands can contain various macros that are expanded before execution.
23756  Execution always take place in the directory of the containing document.
23757 \end_layout
23758
23759 \begin_layout Standard
23760 Also, whenever external material is to be displayed, the name will be produced
23761  by the substitution mechanism, and most other commands in the template
23762  definition support substitution as well.
23763 \end_layout
23764
23765 \begin_layout Standard
23766 The available macros are the following:
23767 \end_layout
23768
23769 \begin_layout Description
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 $$AbsOrRelPathMaster
23775 \end_layout
23776
23777 \end_inset
23778
23779  The file path, absolute or relative to the master \SpecialChar LyX
23780  document.
23781 \end_layout
23782
23783 \begin_layout Description
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788 $$AbsOrRelPathParent
23789 \end_layout
23790
23791 \end_inset
23792
23793  The file path, absolute or relative to the \SpecialChar LyX
23794  document.
23795 \end_layout
23796
23797 \begin_layout Description
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802 $$AbsPath
23803 \end_layout
23804
23805 \end_inset
23806
23807  The absolute file path.
23808 \end_layout
23809
23810 \begin_layout Description
23811 \begin_inset Flex Code
23812 status collapsed
23813
23814 \begin_layout Plain Layout
23815 $$Basename
23816 \end_layout
23817
23818 \end_inset
23819
23820  The filename without path and without the extension.
23821 \end_layout
23822
23823 \begin_layout Description
23824 \begin_inset Flex Code
23825 status collapsed
23826
23827 \begin_layout Plain Layout
23828 $$Contents(
23829 \begin_inset Quotes eld
23830 \end_inset
23831
23832 filename.ext
23833 \begin_inset Quotes erd
23834 \end_inset
23835
23836 )
23837 \end_layout
23838
23839 \end_inset
23840
23841  This macro will expand to the contents of the file with the name 
23842 \begin_inset Flex Code
23843 status collapsed
23844
23845 \begin_layout Plain Layout
23846 filename.ext
23847 \end_layout
23848
23849 \end_inset
23850
23851 .
23852 \end_layout
23853
23854 \begin_layout Description
23855 \begin_inset Flex Code
23856 status collapsed
23857
23858 \begin_layout Plain Layout
23859 $$Extension
23860 \end_layout
23861
23862 \end_inset
23863
23864  The file extension (including the dot).
23865 \end_layout
23866
23867 \begin_layout Description
23868 \begin_inset Flex Code
23869 status collapsed
23870
23871 \begin_layout Plain Layout
23872 $$FName
23873 \end_layout
23874
23875 \end_inset
23876
23877  The filename of the file specified in the external material dialog.
23878  This is either an absolute name, or it is relative to the \SpecialChar LyX
23879  document.
23880 \end_layout
23881
23882 \begin_layout Description
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 $$FPath
23888 \end_layout
23889
23890 \end_inset
23891
23892  The path part of 
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897 $$FName
23898 \end_layout
23899
23900 \end_inset
23901
23902  (absolute name or relative to the \SpecialChar LyX
23903  document).
23904 \end_layout
23905
23906 \begin_layout Description
23907 \begin_inset Flex Code
23908 status collapsed
23909
23910 \begin_layout Plain Layout
23911 $$RelPathMaster
23912 \end_layout
23913
23914 \end_inset
23915
23916  The file path, relative to the master \SpecialChar LyX
23917  document.
23918 \end_layout
23919
23920 \begin_layout Description
23921 \begin_inset Flex Code
23922 status collapsed
23923
23924 \begin_layout Plain Layout
23925 $$RelPathParent
23926 \end_layout
23927
23928 \end_inset
23929
23930  The file path, relative to the \SpecialChar LyX
23931  document.
23932 \end_layout
23933
23934 \begin_layout Description
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 $$Sysdir
23940 \end_layout
23941
23942 \end_inset
23943
23944  This macro will expand to the absolute path of the system directory.
23945  This is typically used to point to the various helper scripts that are
23946  bundled with \SpecialChar LyX
23947 .
23948 \end_layout
23949
23950 \begin_layout Description
23951 \begin_inset Flex Code
23952 status collapsed
23953
23954 \begin_layout Plain Layout
23955 $$Tempname
23956 \end_layout
23957
23958 \end_inset
23959
23960  A name and full path to a temporary file which will be automatically deleted
23961  whenever the containing document is closed, or the external material insertion
23962  deleted.
23963 \end_layout
23964
23965 \begin_layout Standard
23966 All path macros contain a trailing directory separator, so you can construct
23967  e.
23968 \begin_inset space \thinspace{}
23969 \end_inset
23970
23971 g.
23972 \begin_inset space \space{}
23973 \end_inset
23974
23975 the absolute filename with 
23976 \begin_inset Flex Code
23977 status collapsed
23978
23979 \begin_layout Plain Layout
23980 $$AbsPath$$Basename$$Extension
23981 \end_layout
23982
23983 \end_inset
23984
23985 .
23986 \end_layout
23987
23988 \begin_layout Standard
23989 The macros above are substituted in all commands unless otherwise noted.
23990  The command 
23991 \begin_inset Flex Code
23992 status collapsed
23993
23994 \begin_layout Plain Layout
23995 Product
23996 \end_layout
23997
23998 \end_inset
23999
24000  supports additionally the following substitutions if they are enabled by
24001  the 
24002 \begin_inset Flex Code
24003 status collapsed
24004
24005 \begin_layout Plain Layout
24006 Transform
24007 \end_layout
24008
24009 \end_inset
24010
24011  and 
24012 \begin_inset Flex Code
24013 status collapsed
24014
24015 \begin_layout Plain Layout
24016 TransformCommand
24017 \end_layout
24018
24019 \end_inset
24020
24021  commands:
24022 \end_layout
24023
24024 \begin_layout Description
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 $$ResizeFront
24030 \end_layout
24031
24032 \end_inset
24033
24034  The front part of the resize command.
24035 \end_layout
24036
24037 \begin_layout Description
24038 \begin_inset Flex Code
24039 status collapsed
24040
24041 \begin_layout Plain Layout
24042 $$ResizeBack
24043 \end_layout
24044
24045 \end_inset
24046
24047  The back part of the resize command.
24048 \end_layout
24049
24050 \begin_layout Description
24051 \begin_inset Flex Code
24052 status collapsed
24053
24054 \begin_layout Plain Layout
24055 $$RotateFront
24056 \end_layout
24057
24058 \end_inset
24059
24060  The front part of the rotation command.
24061 \end_layout
24062
24063 \begin_layout Description
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068 $$RotateBack
24069 \end_layout
24070
24071 \end_inset
24072
24073  The back part of the rotation command.
24074 \end_layout
24075
24076 \begin_layout Standard
24077 The value string of the 
24078 \begin_inset Flex Code
24079 status collapsed
24080
24081 \begin_layout Plain Layout
24082 Option
24083 \end_layout
24084
24085 \end_inset
24086
24087  command supports additionally the following substitutions if they are enabled
24088  by the 
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 Transform
24094 \end_layout
24095
24096 \end_inset
24097
24098  and 
24099 \begin_inset Flex Code
24100 status collapsed
24101
24102 \begin_layout Plain Layout
24103 TransformOption
24104 \end_layout
24105
24106 \end_inset
24107
24108  commands:
24109 \end_layout
24110
24111 \begin_layout Description
24112 \begin_inset Flex Code
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116 $$Clip
24117 \end_layout
24118
24119 \end_inset
24120
24121  The clip option.
24122 \end_layout
24123
24124 \begin_layout Description
24125 \begin_inset Flex Code
24126 status collapsed
24127
24128 \begin_layout Plain Layout
24129 $$Extra
24130 \end_layout
24131
24132 \end_inset
24133
24134  The extra option.
24135 \end_layout
24136
24137 \begin_layout Description
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 $$Resize
24143 \end_layout
24144
24145 \end_inset
24146
24147  The resize option.
24148 \end_layout
24149
24150 \begin_layout Description
24151 \begin_inset Flex Code
24152 status collapsed
24153
24154 \begin_layout Plain Layout
24155 $$Rotate
24156 \end_layout
24157
24158 \end_inset
24159
24160  The rotation option.
24161 \end_layout
24162
24163 \begin_layout Standard
24164 You may ask why there are so many path macros.
24165  There are mainly two reasons:
24166 \end_layout
24167
24168 \begin_layout Enumerate
24169 Relative and absolute file names should remain relative or absolute, respectivel
24170 y.
24171  Users may have reasons to prefer either form.
24172  Relative names are useful for portable documents that should work on different
24173  machines, for example.
24174  Absolute names may be required by some programs.
24175 \end_layout
24176
24177 \begin_layout Enumerate
24178 \SpecialChar LaTeX
24179  treats relative file names differently than \SpecialChar LyX
24180  and other programs in nested
24181  included files.
24182  For \SpecialChar LyX
24183 , a relative file name is always relative to the document that contains
24184  the file name.
24185  For \SpecialChar LaTeX
24186 , it is always relative to the master document.
24187  These two definitions are identical if you have only one document, but
24188  differ if you have a master document that includes part documents.
24189  That means that relative filenames must be transformed when presented to
24190  \SpecialChar LaTeX
24191 .
24192  Fortunately \SpecialChar LyX
24193  does this automatically for you if you choose the right macros.
24194 \end_layout
24195
24196 \begin_layout Standard
24197 So which path macro should be used in new template definitions? The rule
24198  is not difficult:
24199 \end_layout
24200
24201 \begin_layout Itemize
24202 Use 
24203 \begin_inset Flex Code
24204 status collapsed
24205
24206 \begin_layout Plain Layout
24207 $$AbsPath
24208 \end_layout
24209
24210 \end_inset
24211
24212  if an absolute path is required.
24213 \end_layout
24214
24215 \begin_layout Itemize
24216 Use 
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221 $$AbsOrRelPathMaster
24222 \end_layout
24223
24224 \end_inset
24225
24226  if the substituted string is some kind of \SpecialChar LaTeX
24227  input.
24228 \end_layout
24229
24230 \begin_layout Itemize
24231 Else use 
24232 \begin_inset Flex Code
24233 status collapsed
24234
24235 \begin_layout Plain Layout
24236 $$AbsOrRelPathParent
24237 \end_layout
24238
24239 \end_inset
24240
24241  in order to preserve the user's choice.
24242 \end_layout
24243
24244 \begin_layout Standard
24245 There are special cases where this rule does not work and e.
24246 \begin_inset space \thinspace{}
24247 \end_inset
24248
24249 g.
24250 \begin_inset space \space{}
24251 \end_inset
24252
24253 relative names are needed, but normally it will work just fine.
24254  One example for such a case is the command 
24255 \begin_inset Flex Code
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24260 \end_layout
24261
24262 \end_inset
24263
24264  in the XFig template above: We can't use the absolute name because the
24265  copier for 
24266 \begin_inset Flex Code
24267 status collapsed
24268
24269 \begin_layout Plain Layout
24270 .pstex_t
24271 \end_layout
24272
24273 \end_inset
24274
24275  files needs the relative name in order to rewrite the file content.
24276 \end_layout
24277
24278 \begin_layout Section
24279 Security discussion
24280 \begin_inset CommandInset label
24281 LatexCommand label
24282 name "sec:Security-discussion"
24283
24284 \end_inset
24285
24286
24287 \end_layout
24288
24289 \begin_layout Standard
24290 The external material feature interfaces with a lot of external programs
24291  and does so automatically, so we have to consider the security implications
24292  of this.
24293  In particular, since you have the option of including your own filenames
24294  and/or parameter strings and those are expanded into a command, it seems
24295  that it would be possible to create a malicious document which executes
24296  arbitrary commands when a user views or prints the document.
24297  This is something we definitely want to avoid.
24298 \end_layout
24299
24300 \begin_layout Standard
24301 However, since the external program commands are specified in the template
24302  configuration file only, there are no security issues if \SpecialChar LyX
24303  is properly configure
24304 d with safe templates only.
24305  This is so because the external programs are invoked with the 
24306 \begin_inset Flex Code
24307 status collapsed
24308
24309 \begin_layout Plain Layout
24310 execvp
24311 \end_layout
24312
24313 \end_inset
24314
24315 -system call rather than the 
24316 \begin_inset Flex Code
24317 status collapsed
24318
24319 \begin_layout Plain Layout
24320 system
24321 \end_layout
24322
24323 \end_inset
24324
24325  system-call, so it's not possible to execute arbitrary commands from the
24326  filename or parameter section via the shell.
24327 \end_layout
24328
24329 \begin_layout Standard
24330 This also implies that you are restricted in what command strings you can
24331  use in the external material templates.
24332  In particular, pipes and redirection are not readily available.
24333  This has to be so if \SpecialChar LyX
24334  should remain safe.
24335  If you want to use some of the shell features, you should write a safe
24336  script to do this in a controlled manner, and then invoke the script from
24337  the command string.
24338  
24339 \end_layout
24340
24341 \begin_layout Standard
24342 It is possible to design a template that interacts directly with the shell,
24343  but since this would allow a malicious user to execute arbitrary commands
24344  by writing clever filenames and/or parameters, we generally recommend that
24345  you only use safe scripts that work with the 
24346 \begin_inset Flex Code
24347 status collapsed
24348
24349 \begin_layout Plain Layout
24350 execvp
24351 \end_layout
24352
24353 \end_inset
24354
24355  system call in a controlled manner.
24356  Of course, for use in a controlled environment, it can be tempting to just
24357  fall back to use ordinary shell scripts.
24358  If you do so, be aware that you 
24359 \emph on
24360 will
24361 \emph default
24362  provide an easily exploitable security hole in your system.
24363  Of course it stands to reason that such unsafe templates will never be
24364  included in the standard \SpecialChar LyX
24365  distribution, although we do encourage people
24366  to submit new templates in the open source tradition.
24367  But \SpecialChar LyX
24368  as shipped from the official distribution channels will never have
24369  unsafe templates.
24370 \end_layout
24371
24372 \begin_layout Standard
24373 Including external material provides a lot of power, and you have to be
24374  careful not to introduce security hazards with this power.
24375  A subtle error in a single line in an innocent looking script can open
24376  the door to huge security problems.
24377  So if you do not fully understand the issues, we recommend that you consult
24378  a knowledgeable security professional or the \SpecialChar LyX
24379  development team if you have
24380  any questions about whether a given template is safe or not.
24381  And do this before you use it in an uncontrolled environment.
24382 \end_layout
24383
24384 \begin_layout Chapter
24385 \start_of_appendix
24386 List of supported \SpecialChar LyX
24387  functions to be used in layouts
24388 \begin_inset CommandInset label
24389 LatexCommand label
24390 name "chap:List-of-functions"
24391
24392 \end_inset
24393
24394
24395 \end_layout
24396
24397 \begin_layout Standard
24398 \align center
24399 \begin_inset Tabular
24400 <lyxtabular version="3" rows="11" columns="8">
24401 <features tabularvalignment="middle">
24402 <column alignment="left" valignment="top">
24403 <column alignment="left" valignment="top">
24404 <column alignment="left" valignment="top">
24405 <column alignment="left" valignment="top">
24406 <column alignment="left" valignment="top">
24407 <column alignment="left" valignment="top">
24408 <column alignment="left" valignment="top">
24409 <column alignment="left" valignment="top">
24410 <row>
24411 <cell alignment="left" valignment="top" usebox="none">
24412 \begin_inset Text
24413
24414 \begin_layout Plain Layout
24415 accents
24416 \end_layout
24417
24418 \end_inset
24419 </cell>
24420 <cell alignment="left" valignment="top" usebox="none">
24421 \begin_inset Text
24422
24423 \begin_layout Plain Layout
24424 booktabs
24425 \end_layout
24426
24427 \end_inset
24428 </cell>
24429 <cell alignment="left" valignment="top" usebox="none">
24430 \begin_inset Text
24431
24432 \begin_layout Plain Layout
24433 feyn
24434 \end_layout
24435
24436 \end_inset
24437 </cell>
24438 <cell alignment="left" valignment="top" usebox="none">
24439 \begin_inset Text
24440
24441 \begin_layout Plain Layout
24442 listings
24443 \end_layout
24444
24445 \end_inset
24446 </cell>
24447 <cell alignment="center" valignment="top" usebox="none">
24448 \begin_inset Text
24449
24450 \begin_layout Plain Layout
24451 natbib
24452 \end_layout
24453
24454 \end_inset
24455 </cell>
24456 <cell alignment="center" valignment="top" usebox="none">
24457 \begin_inset Text
24458
24459 \begin_layout Plain Layout
24460 rotfloat
24461 \end_layout
24462
24463 \end_inset
24464 </cell>
24465 <cell alignment="center" valignment="top" usebox="none">
24466 \begin_inset Text
24467
24468 \begin_layout Plain Layout
24469 tfrupee
24470 \end_layout
24471
24472 \end_inset
24473 </cell>
24474 <cell alignment="center" valignment="top" usebox="none">
24475 \begin_inset Text
24476
24477 \begin_layout Plain Layout
24478 wasysym
24479 \end_layout
24480
24481 \end_inset
24482 </cell>
24483 </row>
24484 <row>
24485 <cell alignment="left" valignment="top" usebox="none">
24486 \begin_inset Text
24487
24488 \begin_layout Plain Layout
24489 amsbsy
24490 \end_layout
24491
24492 \end_inset
24493 </cell>
24494 <cell alignment="left" valignment="top" usebox="none">
24495 \begin_inset Text
24496
24497 \begin_layout Plain Layout
24498 calc
24499 \end_layout
24500
24501 \end_inset
24502 </cell>
24503 <cell alignment="left" valignment="top" usebox="none">
24504 \begin_inset Text
24505
24506 \begin_layout Plain Layout
24507 fixltx2e
24508 \end_layout
24509
24510 \end_inset
24511 </cell>
24512 <cell alignment="left" valignment="top" usebox="none">
24513 \begin_inset Text
24514
24515 \begin_layout Plain Layout
24516 longtable
24517 \end_layout
24518
24519 \end_inset
24520 </cell>
24521 <cell alignment="center" valignment="top" usebox="none">
24522 \begin_inset Text
24523
24524 \begin_layout Plain Layout
24525 nomencl
24526 \end_layout
24527
24528 \end_inset
24529 </cell>
24530 <cell alignment="center" valignment="top" usebox="none">
24531 \begin_inset Text
24532
24533 \begin_layout Plain Layout
24534 rsphrase
24535 \end_layout
24536
24537 \end_inset
24538 </cell>
24539 <cell alignment="center" valignment="top" usebox="none">
24540 \begin_inset Text
24541
24542 \begin_layout Plain Layout
24543 tipa
24544 \end_layout
24545
24546 \end_inset
24547 </cell>
24548 <cell alignment="center" valignment="top" usebox="none">
24549 \begin_inset Text
24550
24551 \begin_layout Plain Layout
24552 wrapfig
24553 \end_layout
24554
24555 \end_inset
24556 </cell>
24557 </row>
24558 <row>
24559 <cell alignment="left" valignment="top" usebox="none">
24560 \begin_inset Text
24561
24562 \begin_layout Plain Layout
24563 amscd
24564 \end_layout
24565
24566 \end_inset
24567 </cell>
24568 <cell alignment="left" valignment="top" usebox="none">
24569 \begin_inset Text
24570
24571 \begin_layout Plain Layout
24572 CJK
24573 \end_layout
24574
24575 \end_inset
24576 </cell>
24577 <cell alignment="left" valignment="top" usebox="none">
24578 \begin_inset Text
24579
24580 \begin_layout Plain Layout
24581 float
24582 \end_layout
24583
24584 \end_inset
24585 </cell>
24586 <cell alignment="left" valignment="top" usebox="none">
24587 \begin_inset Text
24588
24589 \begin_layout Plain Layout
24590 lyxskak
24591 \end_layout
24592
24593 \end_inset
24594 </cell>
24595 <cell alignment="center" valignment="top" usebox="none">
24596 \begin_inset Text
24597
24598 \begin_layout Plain Layout
24599 pdfcolmk
24600 \end_layout
24601
24602 \end_inset
24603 </cell>
24604 <cell alignment="center" valignment="top" usebox="none">
24605 \begin_inset Text
24606
24607 \begin_layout Plain Layout
24608 setspace
24609 \end_layout
24610
24611 \end_inset
24612 </cell>
24613 <cell alignment="center" valignment="top" usebox="none">
24614 \begin_inset Text
24615
24616 \begin_layout Plain Layout
24617 tipx
24618 \end_layout
24619
24620 \end_inset
24621 </cell>
24622 <cell alignment="center" valignment="top" usebox="none">
24623 \begin_inset Text
24624
24625 \begin_layout Plain Layout
24626 xargs
24627 \end_layout
24628
24629 \end_inset
24630 </cell>
24631 </row>
24632 <row>
24633 <cell alignment="left" valignment="top" usebox="none">
24634 \begin_inset Text
24635
24636 \begin_layout Plain Layout
24637 amsmath
24638 \end_layout
24639
24640 \end_inset
24641 </cell>
24642 <cell alignment="left" valignment="top" usebox="none">
24643 \begin_inset Text
24644
24645 \begin_layout Plain Layout
24646 color
24647 \end_layout
24648
24649 \end_inset
24650 </cell>
24651 <cell alignment="left" valignment="top" usebox="none">
24652 \begin_inset Text
24653
24654 \begin_layout Plain Layout
24655 framed
24656 \end_layout
24657
24658 \end_inset
24659 </cell>
24660 <cell alignment="left" valignment="top" usebox="none">
24661 \begin_inset Text
24662
24663 \begin_layout Plain Layout
24664 makeidx
24665 \end_layout
24666
24667 \end_inset
24668 </cell>
24669 <cell alignment="center" valignment="top" usebox="none">
24670 \begin_inset Text
24671
24672 \begin_layout Plain Layout
24673 pdfpages
24674 \end_layout
24675
24676 \end_inset
24677 </cell>
24678 <cell alignment="center" valignment="top" usebox="none">
24679 \begin_inset Text
24680
24681 \begin_layout Plain Layout
24682 shapepar
24683 \end_layout
24684
24685 \end_inset
24686 </cell>
24687 <cell alignment="center" valignment="top" usebox="none">
24688 \begin_inset Text
24689
24690 \begin_layout Plain Layout
24691 tone
24692 \end_layout
24693
24694 \end_inset
24695 </cell>
24696 <cell alignment="center" valignment="top" usebox="none">
24697 \begin_inset Text
24698
24699 \begin_layout Plain Layout
24700 xcolor
24701 \end_layout
24702
24703 \end_inset
24704 </cell>
24705 </row>
24706 <row>
24707 <cell alignment="left" valignment="top" usebox="none">
24708 \begin_inset Text
24709
24710 \begin_layout Plain Layout
24711 amssymb
24712 \end_layout
24713
24714 \end_inset
24715 </cell>
24716 <cell alignment="left" valignment="top" usebox="none">
24717 \begin_inset Text
24718
24719 \begin_layout Plain Layout
24720 covington
24721 \end_layout
24722
24723 \end_inset
24724 </cell>
24725 <cell alignment="left" valignment="top" usebox="none">
24726 \begin_inset Text
24727
24728 \begin_layout Plain Layout
24729 graphicx
24730 \end_layout
24731
24732 \end_inset
24733 </cell>
24734 <cell alignment="left" valignment="top" usebox="none">
24735 \begin_inset Text
24736
24737 \begin_layout Plain Layout
24738 marvosym
24739 \end_layout
24740
24741 \end_inset
24742 </cell>
24743 <cell alignment="center" valignment="top" usebox="none">
24744 \begin_inset Text
24745
24746 \begin_layout Plain Layout
24747 pifont
24748 \end_layout
24749
24750 \end_inset
24751 </cell>
24752 <cell alignment="center" valignment="top" usebox="none">
24753 \begin_inset Text
24754
24755 \begin_layout Plain Layout
24756 slashed
24757 \end_layout
24758
24759 \end_inset
24760 </cell>
24761 <cell alignment="center" valignment="top" usebox="none">
24762 \begin_inset Text
24763
24764 \begin_layout Plain Layout
24765 txfonts
24766 \end_layout
24767
24768 \end_inset
24769 </cell>
24770 <cell alignment="center" valignment="top" usebox="none">
24771 \begin_inset Text
24772
24773 \begin_layout Plain Layout
24774 xy
24775 \end_layout
24776
24777 \end_inset
24778 </cell>
24779 </row>
24780 <row>
24781 <cell alignment="left" valignment="top" usebox="none">
24782 \begin_inset Text
24783
24784 \begin_layout Plain Layout
24785 amstext
24786 \end_layout
24787
24788 \end_inset
24789 </cell>
24790 <cell alignment="left" valignment="top" usebox="none">
24791 \begin_inset Text
24792
24793 \begin_layout Plain Layout
24794 csquotes
24795 \end_layout
24796
24797 \end_inset
24798 </cell>
24799 <cell alignment="left" valignment="top" usebox="none">
24800 \begin_inset Text
24801
24802 \begin_layout Plain Layout
24803 hhline
24804 \end_layout
24805
24806 \end_inset
24807 </cell>
24808 <cell alignment="left" valignment="top" usebox="none">
24809 \begin_inset Text
24810
24811 \begin_layout Plain Layout
24812 mathdesign
24813 \end_layout
24814
24815 \end_inset
24816 </cell>
24817 <cell alignment="center" valignment="top" usebox="none">
24818 \begin_inset Text
24819
24820 \begin_layout Plain Layout
24821 pmboxdraw
24822 \end_layout
24823
24824 \end_inset
24825 </cell>
24826 <cell alignment="center" valignment="top" usebox="none">
24827 \begin_inset Text
24828
24829 \begin_layout Plain Layout
24830 soul
24831 \end_layout
24832
24833 \end_inset
24834 </cell>
24835 <cell alignment="center" valignment="top" usebox="none">
24836 \begin_inset Text
24837
24838 \begin_layout Plain Layout
24839 ulem
24840 \end_layout
24841
24842 \end_inset
24843 </cell>
24844 <cell alignment="center" valignment="top" usebox="none">
24845 \begin_inset Text
24846
24847 \begin_layout Plain Layout
24848 yhmath
24849 \end_layout
24850
24851 \end_inset
24852 </cell>
24853 </row>
24854 <row>
24855 <cell alignment="left" valignment="top" usebox="none">
24856 \begin_inset Text
24857
24858 \begin_layout Plain Layout
24859 amsthm
24860 \end_layout
24861
24862 \end_inset
24863 </cell>
24864 <cell alignment="left" valignment="top" usebox="none">
24865 \begin_inset Text
24866
24867 \begin_layout Plain Layout
24868 dvipost
24869 \end_layout
24870
24871 \end_inset
24872 </cell>
24873 <cell alignment="left" valignment="top" usebox="none">
24874 \begin_inset Text
24875
24876 \begin_layout Plain Layout
24877 hyperref
24878 \end_layout
24879
24880 \end_inset
24881 </cell>
24882 <cell alignment="left" valignment="top" usebox="none">
24883 \begin_inset Text
24884
24885 \begin_layout Plain Layout
24886 mathdots
24887 \end_layout
24888
24889 \end_inset
24890 </cell>
24891 <cell alignment="center" valignment="top" usebox="none">
24892 \begin_inset Text
24893
24894 \begin_layout Plain Layout
24895 polyglossia
24896 \end_layout
24897
24898 \end_inset
24899 </cell>
24900 <cell alignment="center" valignment="top" usebox="none">
24901 \begin_inset Text
24902
24903 \begin_layout Plain Layout
24904 splitidx
24905 \end_layout
24906
24907 \end_inset
24908 </cell>
24909 <cell alignment="center" valignment="top" usebox="none">
24910 \begin_inset Text
24911
24912 \begin_layout Plain Layout
24913 undertilde
24914 \end_layout
24915
24916 \end_inset
24917 </cell>
24918 <cell alignment="center" valignment="top" usebox="none">
24919 \begin_inset Text
24920
24921 \begin_layout Plain Layout
24922
24923 \end_layout
24924
24925 \end_inset
24926 </cell>
24927 </row>
24928 <row>
24929 <cell alignment="left" valignment="top" usebox="none">
24930 \begin_inset Text
24931
24932 \begin_layout Plain Layout
24933 array
24934 \end_layout
24935
24936 \end_inset
24937 </cell>
24938 <cell alignment="left" valignment="top" usebox="none">
24939 \begin_inset Text
24940
24941 \begin_layout Plain Layout
24942 endnotes
24943 \end_layout
24944
24945 \end_inset
24946 </cell>
24947 <cell alignment="left" valignment="top" usebox="none">
24948 \begin_inset Text
24949
24950 \begin_layout Plain Layout
24951 ifsym
24952 \end_layout
24953
24954 \end_inset
24955 </cell>
24956 <cell alignment="left" valignment="top" usebox="none">
24957 \begin_inset Text
24958
24959 \begin_layout Plain Layout
24960 mathrsfs
24961 \end_layout
24962
24963 \end_inset
24964 </cell>
24965 <cell alignment="center" valignment="top" usebox="none">
24966 \begin_inset Text
24967
24968 \begin_layout Plain Layout
24969 prettyref
24970 \end_layout
24971
24972 \end_inset
24973 </cell>
24974 <cell alignment="center" valignment="top" usebox="none">
24975 \begin_inset Text
24976
24977 \begin_layout Plain Layout
24978 subfig
24979 \end_layout
24980
24981 \end_inset
24982 </cell>
24983 <cell alignment="center" valignment="top" usebox="none">
24984 \begin_inset Text
24985
24986 \begin_layout Plain Layout
24987 units
24988 \end_layout
24989
24990 \end_inset
24991 </cell>
24992 <cell alignment="center" valignment="top" usebox="none">
24993 \begin_inset Text
24994
24995 \begin_layout Plain Layout
24996
24997 \end_layout
24998
24999 \end_inset
25000 </cell>
25001 </row>
25002 <row>
25003 <cell alignment="left" valignment="top" usebox="none">
25004 \begin_inset Text
25005
25006 \begin_layout Plain Layout
25007 ascii
25008 \end_layout
25009
25010 \end_inset
25011 </cell>
25012 <cell alignment="left" valignment="top" usebox="none">
25013 \begin_inset Text
25014
25015 \begin_layout Plain Layout
25016 enumitem
25017 \end_layout
25018
25019 \end_inset
25020 </cell>
25021 <cell alignment="left" valignment="top" usebox="none">
25022 \begin_inset Text
25023
25024 \begin_layout Plain Layout
25025 ifthen
25026 \end_layout
25027
25028 \end_inset
25029 </cell>
25030 <cell alignment="left" valignment="top" usebox="none">
25031 \begin_inset Text
25032
25033 \begin_layout Plain Layout
25034 mhchem
25035 \end_layout
25036
25037 \end_inset
25038 </cell>
25039 <cell alignment="center" valignment="top" usebox="none">
25040 \begin_inset Text
25041
25042 \begin_layout Plain Layout
25043 pxfonts
25044 \end_layout
25045
25046 \end_inset
25047 </cell>
25048 <cell alignment="center" valignment="top" usebox="none">
25049 \begin_inset Text
25050
25051 \begin_layout Plain Layout
25052 subscript
25053 \end_layout
25054
25055 \end_inset
25056 </cell>
25057 <cell alignment="center" valignment="top" usebox="none">
25058 \begin_inset Text
25059
25060 \begin_layout Plain Layout
25061 url
25062 \end_layout
25063
25064 \end_inset
25065 </cell>
25066 <cell alignment="center" valignment="top" usebox="none">
25067 \begin_inset Text
25068
25069 \begin_layout Plain Layout
25070
25071 \end_layout
25072
25073 \end_inset
25074 </cell>
25075 </row>
25076 <row>
25077 <cell alignment="left" valignment="top" usebox="none">
25078 \begin_inset Text
25079
25080 \begin_layout Plain Layout
25081 bbding
25082 \end_layout
25083
25084 \end_inset
25085 </cell>
25086 <cell alignment="left" valignment="top" usebox="none">
25087 \begin_inset Text
25088
25089 \begin_layout Plain Layout
25090 esint
25091 \end_layout
25092
25093 \end_inset
25094 </cell>
25095 <cell alignment="left" valignment="top" usebox="none">
25096 \begin_inset Text
25097
25098 \begin_layout Plain Layout
25099 jurabib
25100 \end_layout
25101
25102 \end_inset
25103 </cell>
25104 <cell alignment="left" valignment="top" usebox="none">
25105 \begin_inset Text
25106
25107 \begin_layout Plain Layout
25108 multicol
25109 \end_layout
25110
25111 \end_inset
25112 </cell>
25113 <cell alignment="center" valignment="top" usebox="none">
25114 \begin_inset Text
25115
25116 \begin_layout Plain Layout
25117 refstyle
25118 \end_layout
25119
25120 \end_inset
25121 </cell>
25122 <cell alignment="center" valignment="top" usebox="none">
25123 \begin_inset Text
25124
25125 \begin_layout Plain Layout
25126 textcomp
25127 \end_layout
25128
25129 \end_inset
25130 </cell>
25131 <cell alignment="center" valignment="top" usebox="none">
25132 \begin_inset Text
25133
25134 \begin_layout Plain Layout
25135 varioref
25136 \end_layout
25137
25138 \end_inset
25139 </cell>
25140 <cell alignment="center" valignment="top" usebox="none">
25141 \begin_inset Text
25142
25143 \begin_layout Plain Layout
25144
25145 \end_layout
25146
25147 \end_inset
25148 </cell>
25149 </row>
25150 <row>
25151 <cell alignment="center" valignment="top" usebox="none">
25152 \begin_inset Text
25153
25154 \begin_layout Plain Layout
25155 bm
25156 \end_layout
25157
25158 \end_inset
25159 </cell>
25160 <cell alignment="center" valignment="top" usebox="none">
25161 \begin_inset Text
25162
25163 \begin_layout Plain Layout
25164 fancybox
25165 \end_layout
25166
25167 \end_inset
25168 </cell>
25169 <cell alignment="center" valignment="top" usebox="none">
25170 \begin_inset Text
25171
25172 \begin_layout Plain Layout
25173 latexsym
25174 \end_layout
25175
25176 \end_inset
25177 </cell>
25178 <cell alignment="center" valignment="top" usebox="none">
25179 \begin_inset Text
25180
25181 \begin_layout Plain Layout
25182 multirow
25183 \end_layout
25184
25185 \end_inset
25186 </cell>
25187 <cell alignment="center" valignment="top" usebox="none">
25188 \begin_inset Text
25189
25190 \begin_layout Plain Layout
25191 rotating
25192 \end_layout
25193
25194 \end_inset
25195 </cell>
25196 <cell alignment="center" valignment="top" usebox="none">
25197 \begin_inset Text
25198
25199 \begin_layout Plain Layout
25200 textgreek
25201 \end_layout
25202
25203 \end_inset
25204 </cell>
25205 <cell alignment="center" valignment="top" usebox="none">
25206 \begin_inset Text
25207
25208 \begin_layout Plain Layout
25209 verbatim
25210 \end_layout
25211
25212 \end_inset
25213 </cell>
25214 <cell alignment="center" valignment="top" usebox="none">
25215 \begin_inset Text
25216
25217 \begin_layout Plain Layout
25218
25219 \end_layout
25220
25221 \end_inset
25222 </cell>
25223 </row>
25224 </lyxtabular>
25225
25226 \end_inset
25227
25228
25229 \end_layout
25230
25231 \begin_layout Chapter
25232 Names of available colors to be used in layouts
25233 \begin_inset CommandInset label
25234 LatexCommand label
25235 name "chap:Names-of-colors"
25236
25237 \end_inset
25238
25239
25240 \end_layout
25241
25242 \begin_layout Standard
25243 The colors listed here are the standard colors and the those that you can
25244  adjust in the \SpecialChar LyX
25245  preferences.
25246 \end_layout
25247
25248 \begin_layout Description
25249 none
25250 \family roman
25251 \series medium
25252 \shape up
25253 \size normal
25254 \emph off
25255 \bar no
25256 \strikeout off
25257 \uuline off
25258 \uwave off
25259 \noun off
25260 \color none
25261  No particular color – clear or default
25262 \end_layout
25263
25264 \begin_layout Description
25265 black
25266 \end_layout
25267
25268 \begin_layout Description
25269 white
25270 \end_layout
25271
25272 \begin_layout Description
25273 red
25274 \end_layout
25275
25276 \begin_layout Description
25277 green
25278 \end_layout
25279
25280 \begin_layout Description
25281 blue
25282 \end_layout
25283
25284 \begin_layout Description
25285 cyan
25286 \end_layout
25287
25288 \begin_layout Description
25289 magenta
25290 \end_layout
25291
25292 \begin_layout Description
25293 yellow
25294 \end_layout
25295
25296 \begin_layout Description
25297 added_space Added space marker color
25298 \end_layout
25299
25300 \begin_layout Description
25301 addedtext Added text color
25302 \end_layout
25303
25304 \begin_layout Description
25305 appendix Appendix marker color
25306 \end_layout
25307
25308 \begin_layout Description
25309 background Background color
25310 \end_layout
25311
25312 \begin_layout Description
25313 bottomarea Bottom area color
25314 \end_layout
25315
25316 \begin_layout Description
25317 branchlabel Label color for branches
25318 \end_layout
25319
25320 \begin_layout Description
25321 buttonbg Color used for bottom background
25322 \end_layout
25323
25324 \begin_layout Description
25325 buttonhoverbg Color used for button background under focus
25326 \end_layout
25327
25328 \begin_layout Description
25329 buttonframe Color for inset button frames
25330 \end_layout
25331
25332 \begin_layout Description
25333 changebar Changebar color
25334 \end_layout
25335
25336 \begin_layout Description
25337 changedtextauthor1 Changed text color author 1
25338 \end_layout
25339
25340 \begin_layout Description
25341 changedtextauthor2 Changed text color author 2
25342 \end_layout
25343
25344 \begin_layout Description
25345 changedtextauthor3 Changed text color author 3
25346 \end_layout
25347
25348 \begin_layout Description
25349 changedtextauthor4 Changed text color author 4
25350 \end_layout
25351
25352 \begin_layout Description
25353 changedtextauthor5 Changed text color author 5
25354 \end_layout
25355
25356 \begin_layout Description
25357 collapsable_inset_frame Collapsable insets framecolor
25358 \end_layout
25359
25360 \begin_layout Description
25361 collapsable_inset_text Collapsable insets text color
25362 \end_layout
25363
25364 \begin_layout Description
25365 command Text color for command insets
25366 \end_layout
25367
25368 \begin_layout Description
25369 commandbg Background color for command insets
25370 \end_layout
25371
25372 \begin_layout Description
25373 commandframe Frame color for command insets
25374 \end_layout
25375
25376 \begin_layout Description
25377 comment color for comments
25378 \end_layout
25379
25380 \begin_layout Description
25381 commentbg Background color of comments
25382 \end_layout
25383
25384 \begin_layout Description
25385 cursor Cursor color
25386 \end_layout
25387
25388 \begin_layout Description
25389 deletedtext Deleted text color
25390 \end_layout
25391
25392 \begin_layout Description
25393 deletedtextmodifier Deleted text modifying color
25394 \end_layout
25395
25396 \begin_layout Description
25397 depthbar Color for the depth bars in the margin
25398 \end_layout
25399
25400 \begin_layout Description
25401 eolmarker End of line marker color
25402 \end_layout
25403
25404 \begin_layout Description
25405 error Color of the \SpecialChar LaTeX
25406  error box
25407 \end_layout
25408
25409 \begin_layout Description
25410 footlabel Label color for footnotes
25411 \end_layout
25412
25413 \begin_layout Description
25414 graphicsbg Graphics inset background color
25415 \end_layout
25416
25417 \begin_layout Description
25418 greyedout Label color for greyedout insets
25419 \end_layout
25420
25421 \begin_layout Description
25422 greyedoutbg Background color of greyedout inset
25423 \end_layout
25424
25425 \begin_layout Description
25426 greyedouttext Color for greyedout inset text
25427 \end_layout
25428
25429 \begin_layout Description
25430 indexlabel Label color for index insets
25431 \end_layout
25432
25433 \begin_layout Description
25434 ignore The color is ignored
25435 \end_layout
25436
25437 \begin_layout Description
25438 inherit The color is inherited
25439 \end_layout
25440
25441 \begin_layout Description
25442 inlinecompletion Inline completion color
25443 \end_layout
25444
25445 \begin_layout Description
25446 insetbg Inset marker background color
25447 \end_layout
25448
25449 \begin_layout Description
25450 insetframe Inset marker frame color
25451 \end_layout
25452
25453 \begin_layout Description
25454 language Color for marking foreign language words
25455 \end_layout
25456
25457 \begin_layout Description
25458 latex Text color in \SpecialChar LaTeX
25459  mode
25460 \end_layout
25461
25462 \begin_layout Description
25463 listingsbg Background color of listings inset
25464 \end_layout
25465
25466 \begin_layout Description
25467 marginlabel Label color for margin notes
25468 \end_layout
25469
25470 \begin_layout Description
25471 math Math inset text color
25472 \end_layout
25473
25474 \begin_layout Description
25475 mathbg Math inset background color
25476 \end_layout
25477
25478 \begin_layout Description
25479 mathcorners Math inset frame color not under focus
25480 \end_layout
25481
25482 \begin_layout Description
25483 mathframe Math inset frame color under focus
25484 \end_layout
25485
25486 \begin_layout Description
25487 mathline Math line color
25488 \end_layout
25489
25490 \begin_layout Description
25491 mathmacrobg Macro math inset background color
25492 \end_layout
25493
25494 \begin_layout Description
25495 mathmacroblend Macro math blended color
25496 \end_layout
25497
25498 \begin_layout Description
25499 mathmacroframe Macro math frame color
25500 \end_layout
25501
25502 \begin_layout Description
25503 mathmacrohoverbg Macro math inset background color hovered
25504 \end_layout
25505
25506 \begin_layout Description
25507 mathmacrolabel Macro math label color
25508 \end_layout
25509
25510 \begin_layout Description
25511 mathmacronewarg Macro template color for new parameters
25512 \end_layout
25513
25514 \begin_layout Description
25515 mathmacrooldarg Macro template color for old parameters
25516 \end_layout
25517
25518 \begin_layout Description
25519 newpage New page color
25520 \end_layout
25521
25522 \begin_layout Description
25523 nonunique_inlinecompletion Inline completion color for the non-unique part
25524 \end_layout
25525
25526 \begin_layout Description
25527 notebg Background color of notes
25528 \end_layout
25529
25530 \begin_layout Description
25531 notelabel Label color for notes
25532 \end_layout
25533
25534 \begin_layout Description
25535 pagebreak Page break/line break color
25536 \end_layout
25537
25538 \begin_layout Description
25539 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25540 \end_layout
25541
25542 \begin_layout Description
25543 phantomtext Text color for phantom insets
25544 \end_layout
25545
25546 \begin_layout Description
25547 preview The color used for previews
25548 \end_layout
25549
25550 \begin_layout Description
25551 previewframe Preview frame color
25552 \end_layout
25553
25554 \begin_layout Description
25555 regexpframe Color for regexp frame
25556 \end_layout
25557
25558 \begin_layout Description
25559 selection Background color of selected text
25560 \end_layout
25561
25562 \begin_layout Description
25563 selectiontext Foreground color of selected text
25564 \end_layout
25565
25566 \begin_layout Description
25567 shadedbg Background color of shaded box
25568 \end_layout
25569
25570 \begin_layout Description
25571 special Special chars text color
25572 \end_layout
25573
25574 \begin_layout Description
25575 tabularline Table line color
25576 \end_layout
25577
25578 \begin_layout Description
25579 tabularonoffline Table line color
25580 \end_layout
25581
25582 \begin_layout Description
25583 urllabel Label color for URL insets
25584 \end_layout
25585
25586 \begin_layout Description
25587 urltext Color for URL inset text
25588 \end_layout
25589
25590 \end_body
25591 \end_document