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