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