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