]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
French doc files: backport recent changes
[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 false
149 \output_changes false
150 \html_math_output 0
151 \html_css_as_file 0
152 \html_be_strict true
153 \end_header
154
155 \begin_body
156
157 \begin_layout Title
158 Customizing LyX: Features for the Advanced User
159 \end_layout
160
161 \begin_layout Author
162 by the LyX Team
163 \begin_inset Foot
164 status collapsed
165
166 \begin_layout Plain Layout
167 \noindent
168 If you have comments or error corrections, please send them to the LyX Documenta
169 tion mailing list, 
170 \begin_inset CommandInset href
171 LatexCommand href
172 target "lyx-docs@lists.lyx.org"
173 type "mailto:"
174
175 \end_inset
176
177 .
178  Include 
179 \begin_inset Quotes eld
180 \end_inset
181
182 [Customization]
183 \begin_inset Quotes erd
184 \end_inset
185
186  in the subject header, and please cc the current maintainer of this file,
187  Richard Heck <rgheck@comcast.net>.
188 \end_layout
189
190 \end_inset
191
192
193 \begin_inset Newline newline
194 \end_inset
195
196
197 \begin_inset Newline newline
198 \end_inset
199
200 Version 2.1.x 
201 \end_layout
202
203 \begin_layout Standard
204 \begin_inset CommandInset toc
205 LatexCommand tableofcontents
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Standard
213 \begin_inset Note Note
214 status open
215
216 \begin_layout Plain Layout
217 Please use change tracking when modifying this document.
218  This makes it easier for our translators to recognize things that have
219  been changed, and it helps the maintainer keep up-to-date with what's been
220  done.
221 \end_layout
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 Introduction
230 \end_layout
231
232 \begin_layout Standard
233 This manual covers the customization features present in LyX.
234  In it, we discuss issues like keyboard shortcuts, screen previewing options,
235  printer options, sending commands to LyX via the LyX Server, internationalizati
236 on, installing new LaTeX classes and LyX layouts, etc.
237  We can't possibly hope to touch on everything you can change—our developers
238  add new features faster than we can document them—but we will explain the
239  most common customizations and hopefully point you in the right direction
240  for some of the more obscure ones.
241 \end_layout
242
243 \begin_layout Standard
244 \begin_inset Branch OutDated
245 status collapsed
246
247 \begin_layout Standard
248 Information from previous versions of this document that now seems to be
249  outdated is contained in the OutDated branch of this document.
250  By default, this information will not appear in the LaTeX output.
251 \end_layout
252
253 \end_inset
254
255
256 \end_layout
257
258 \begin_layout Chapter
259 LyX configuration files
260 \end_layout
261
262 \begin_layout Standard
263 This chapter aims to help you to find your way through the LyX configuration
264  files.
265  Before continuing to read this chapter, you should find out where your
266  LyX library and user directories are by using 
267 \begin_inset Flex MenuItem
268 status collapsed
269
270 \begin_layout Plain Layout
271 Help\SpecialChar \menuseparator
272 About
273 \begin_inset space ~
274 \end_inset
275
276 LyX
277 \end_layout
278
279 \end_inset
280
281 .
282  The library directory is the place where LyX places its system-wide configurati
283 on files; the user directory is where you can place your modified versions.
284  We will call the former 
285 \begin_inset Flex Code
286 status collapsed
287
288 \begin_layout Plain Layout
289 LyXDir
290 \end_layout
291
292 \end_inset
293
294  and the latter 
295 \begin_inset Flex MenuItem
296 status collapsed
297
298 \begin_layout Plain Layout
299 UserDir
300 \end_layout
301
302 \end_inset
303
304  in the remainder of this document.
305  
306 \end_layout
307
308 \begin_layout Section
309 What's in 
310 \begin_inset Flex Code
311 status collapsed
312
313 \begin_layout Plain Layout
314 LyXDir
315 \end_layout
316
317 \end_inset
318
319 ?
320 \end_layout
321
322 \begin_layout Standard
323 \begin_inset Flex Code
324 status collapsed
325
326 \begin_layout Plain Layout
327 LyXDir
328 \end_layout
329
330 \end_inset
331
332  and its sub-directories contain a number of files and that can be used
333  to customize LyX's behavior.
334  You can change many of these files from within LyX itself through the 
335 \begin_inset Flex MenuItem
336 status collapsed
337
338 \begin_layout Plain Layout
339 Tools\SpecialChar \menuseparator
340 Preferences
341 \end_layout
342
343 \end_inset
344
345  dialog.
346  Most customization that you will want to do in LyX is possible through
347  this dialog.
348  However, many other inner aspects of LyX can be customized by modifying
349  the files in 
350 \begin_inset Flex Code
351 status collapsed
352
353 \begin_layout Plain Layout
354 LyXDir
355 \end_layout
356
357 \end_inset
358
359 .
360  These files fall in different categories, described in the following subsection
361 s.
362 \end_layout
363
364 \begin_layout Subsection
365 Automatically generated files
366 \end_layout
367
368 \begin_layout Standard
369 The files, which are to be found in 
370 \begin_inset Flex MenuItem
371 status collapsed
372
373 \begin_layout Plain Layout
374 UserDir
375 \end_layout
376
377 \end_inset
378
379 , are generated when you configure LyX.
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by LyX.
411  It is currently unused by the LyX program itself, but the information extracted
412 , and more, is made available with 
413 \begin_inset Flex MenuItem
414 status collapsed
415
416 \begin_layout Plain Layout
417 Help\SpecialChar \menuseparator
418 LaTeX
419 \begin_inset space ~
420 \end_inset
421
422 Configuration
423 \end_layout
424
425 \end_inset
426
427 .
428 \end_layout
429
430 \begin_layout Labeling
431 \labelwidthstring 00.00.0000
432 \begin_inset Flex Code
433 status collapsed
434
435 \begin_layout Plain Layout
436 textclass.lst
437 \end_layout
438
439 \end_inset
440
441  the list of text classes that have been found in your 
442 \begin_inset Flex Code
443 status collapsed
444
445 \begin_layout Plain Layout
446 layout/
447 \end_layout
448
449 \end_inset
450
451  directories, along with the associated LaTeX document class and their descripti
452 on.
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 lyxmodules.lst
462 \end_layout
463
464 \end_inset
465
466  the list of layout modules found in your 
467 \begin_inset Flex Code
468 status collapsed
469
470 \begin_layout Plain Layout
471 layout/
472 \end_layout
473
474 \end_inset
475
476  directories
477 \end_layout
478
479 \begin_layout Labeling
480 \labelwidthstring 00.00.0000
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 *files.lst
486 \end_layout
487
488 \end_inset
489
490  lists of various sorts of LaTeX-related files found on your system
491 \end_layout
492
493 \begin_layout Labeling
494 \labelwidthstring 00.00.0000
495 \begin_inset Flex Code
496 status collapsed
497
498 \begin_layout Plain Layout
499 doc/LaTeXConfig.lyx
500 \end_layout
501
502 \end_inset
503
504  is automatically generated during configuration from the file 
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 LaTeXConfig.lyx.in
510 \end_layout
511
512 \end_inset
513
514 .
515  It contains information on your LaTeX configuration.
516 \end_layout
517
518 \begin_layout Subsection
519 Directories
520 \end_layout
521
522 \begin_layout Standard
523 These directories are duplicated between 
524 \begin_inset Flex Code
525 status collapsed
526
527 \begin_layout Plain Layout
528 LyXDir
529 \end_layout
530
531 \end_inset
532
533  and 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 UserDir
539 \end_layout
540
541 \end_inset
542
543 .
544  If a particular files exists in both places, the one in 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 UserDir
550 \end_layout
551
552 \end_inset
553
554  will be used.
555 \end_layout
556
557 \begin_layout Labeling
558 \labelwidthstring 00.00.0000
559 \begin_inset Flex Code
560 status collapsed
561
562 \begin_layout Plain Layout
563 bind/
564 \end_layout
565
566 \end_inset
567
568  this directory contains files with the extension 
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 .bind
574 \end_layout
575
576 \end_inset
577
578  that define the keybindings used in LyX.
579  If there exists an internationalized version of the bind file named 
580 \begin_inset Flex Code
581 status collapsed
582
583 \begin_layout Plain Layout
584 $LANG_xxx.bind
585 \end_layout
586
587 \end_inset
588
589 , that will be used first.
590 \end_layout
591
592 \begin_layout Labeling
593 \labelwidthstring 00.00.0000
594 \begin_inset Flex Code
595 status collapsed
596
597 \begin_layout Plain Layout
598 clipart/
599 \end_layout
600
601 \end_inset
602
603  contains graphics files that can be included in documents.
604  
605 \end_layout
606
607 \begin_layout Labeling
608 \labelwidthstring 00.00.0000
609 \begin_inset Flex Code
610 status collapsed
611
612 \begin_layout Plain Layout
613 doc/
614 \end_layout
615
616 \end_inset
617
618  contains LyX documentation files (including the one you are currently reading).
619  The file 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 LaTeXConfig.lyx
625 \end_layout
626
627 \end_inset
628
629  deserves special attention, as noted above.
630  The internationalized help docs are in subdirectories 
631 \begin_inset Flex Code
632 status collapsed
633
634 \begin_layout Plain Layout
635 doc/xx
636 \end_layout
637
638 \end_inset
639
640  where 
641 \begin_inset Quotes eld
642 \end_inset
643
644 xx
645 \begin_inset Quotes erd
646 \end_inset
647
648  is the ISO language code.
649  See 
650 \begin_inset CommandInset ref
651 LatexCommand ref
652 reference "cha:Internationalizing-LyX"
653
654 \end_inset
655
656  for details.
657 \end_layout
658
659 \begin_layout Labeling
660 \labelwidthstring 00.00.0000
661 \begin_inset Flex Code
662 status collapsed
663
664 \begin_layout Plain Layout
665 examples/
666 \end_layout
667
668 \end_inset
669
670  contains example files that explain how to use some features.
671  In the file browser, press the 
672 \begin_inset Flex MenuItem
673 status collapsed
674
675 \begin_layout Plain Layout
676 Examples
677 \end_layout
678
679 \end_inset
680
681  button to get there.
682 \end_layout
683
684 \begin_layout Labeling
685 \labelwidthstring 00.00.0000
686 \begin_inset Flex Code
687 status collapsed
688
689 \begin_layout Plain Layout
690 images/
691 \end_layout
692
693 \end_inset
694
695  contains image files that are used by the 
696 \begin_inset Flex MenuItem
697 status collapsed
698
699 \begin_layout Plain Layout
700 Document
701 \end_layout
702
703 \end_inset
704
705  dialog.
706  In addition, it also contains the individual icons used in the toolbar
707  and the banners that can be shown when LyX is launched.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 kbd/
717 \end_layout
718
719 \end_inset
720
721  contains keyboard keymapping files.
722  See 
723 \begin_inset CommandInset ref
724 LatexCommand ref
725 reference "sec:International-Keymap-Stuff"
726
727 \end_inset
728
729  for details.
730 \end_layout
731
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
735 status collapsed
736
737 \begin_layout Plain Layout
738 layouts/
739 \end_layout
740
741 \end_inset
742
743  contains the text class and module files described in 
744 \begin_inset CommandInset ref
745 LatexCommand ref
746 reference "cha:Installing-New-Document"
747
748 \end_inset
749
750 .
751 \end_layout
752
753 \begin_layout Labeling
754 \labelwidthstring 00.00.0000
755 \begin_inset Flex Code
756 status collapsed
757
758 \begin_layout Plain Layout
759 lyx2lyx
760 \end_layout
761
762 \end_inset
763
764  contains the 
765 \begin_inset Flex Code
766 status collapsed
767
768 \begin_layout Plain Layout
769 lyx2lyx
770 \end_layout
771
772 \end_inset
773
774  Python scripts used to convert between LyX versions.
775  These can be run from the command line if, say, you want to batch-convert
776  files.
777 \end_layout
778
779 \begin_layout Labeling
780 \labelwidthstring 00.00.0000
781 \begin_inset Flex Code
782 status collapsed
783
784 \begin_layout Plain Layout
785 scripts/
786 \end_layout
787
788 \end_inset
789
790  contains some files that demonstrate the capabilities of the 
791 \begin_inset Flex MenuItem
792 status collapsed
793
794 \begin_layout Plain Layout
795 External
796 \begin_inset space ~
797 \end_inset
798
799 Template
800 \end_layout
801
802 \end_inset
803
804  feature.
805  Also contains some scripts used by LyX itself.
806 \end_layout
807
808 \begin_layout Labeling
809 \labelwidthstring 00.00.0000
810 \begin_inset Flex Code
811 status collapsed
812
813 \begin_layout Plain Layout
814 templates/
815 \end_layout
816
817 \end_inset
818
819  contains the standard LyX template files described in 
820 \begin_inset CommandInset ref
821 LatexCommand ref
822 reference "sub:Creating-Templates"
823
824 \end_inset
825
826 .
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 ui/
836 \end_layout
837
838 \end_inset
839
840  contains files with the extension 
841 \begin_inset Flex Code
842 status collapsed
843
844 \begin_layout Plain Layout
845 .ui
846 \end_layout
847
848 \end_inset
849
850  that define the user interface to LyX.
851  That is, the files define which items appear in which menus and the items
852  appearing on the toolbar.
853 \end_layout
854
855 \begin_layout Subsection
856 Files you don't want to modify
857 \end_layout
858
859 \begin_layout Standard
860 These files are used internally by LyX and you generally do not need to
861  modify them unless you are a developer.
862 \end_layout
863
864 \begin_layout Labeling
865 \labelwidthstring 00.00.0000
866 \begin_inset Flex Code
867 status collapsed
868
869 \begin_layout Plain Layout
870 CREDITS
871 \end_layout
872
873 \end_inset
874
875  this file contains the list of LyX developers.
876  The contents are displayed with the menu entry 
877 \begin_inset Flex MenuItem
878 status collapsed
879
880 \begin_layout Plain Layout
881 Help\SpecialChar \menuseparator
882 About
883 \begin_inset space ~
884 \end_inset
885
886 LyX
887 \end_layout
888
889 \end_inset
890
891 .
892 \end_layout
893
894 \begin_layout Labeling
895 \labelwidthstring 00.00.0000
896 \begin_inset Flex Code
897 status collapsed
898
899 \begin_layout Plain Layout
900 chkconfig.ltx
901 \end_layout
902
903 \end_inset
904
905  this is a LaTeX script used during the configuration process.
906  Do not run directly.
907 \end_layout
908
909 \begin_layout Labeling
910 \labelwidthstring 00.00.0000
911 \begin_inset Flex Code
912 status collapsed
913
914 \begin_layout Plain Layout
915 configure.py
916 \end_layout
917
918 \end_inset
919
920  this is a Python script that is used to re-configure LyX.
921  It creates configuration files in the directory it was run from.
922 \end_layout
923
924 \begin_layout Subsection
925 Other files needing a line or two
926 \end_layout
927
928 \begin_layout Labeling
929 \labelwidthstring 00.00.0000
930 \begin_inset Flex Code
931 status collapsed
932
933 \begin_layout Plain Layout
934 encodings
935 \end_layout
936
937 \end_inset
938
939  this contains tables describing how different character encodings can be
940  mapped to Unicode
941 \end_layout
942
943 \begin_layout Labeling
944 \labelwidthstring 00.00.0000
945 \begin_inset Flex Code
946 status collapsed
947
948 \begin_layout Plain Layout
949 external_templates
950 \end_layout
951
952 \end_inset
953
954  this file contains the templates available to the new 
955 \begin_inset Flex MenuItem
956 status collapsed
957
958 \begin_layout Plain Layout
959 External
960 \begin_inset space ~
961 \end_inset
962
963 Template
964 \end_layout
965
966 \end_inset
967
968  feature, see 
969 \begin_inset CommandInset ref
970 LatexCommand ref
971 reference "chap:Including-External-Material"
972
973 \end_inset
974
975 .
976 \end_layout
977
978 \begin_layout Labeling
979 \labelwidthstring 00.00.0000
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 languages
985 \end_layout
986
987 \end_inset
988
989  this file contains a list of all the languages currently supported by LyX.
990 \end_layout
991
992 \begin_layout Labeling
993 \labelwidthstring 00.00.0000
994 \begin_inset Flex Code
995 status collapsed
996
997 \begin_layout Plain Layout
998 latexfonts
999 \end_layout
1000
1001 \end_inset
1002
1003  contains information about the supported fonts.
1004 \end_layout
1005
1006 \begin_layout Labeling
1007 \labelwidthstring 00.00.0000
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 layouttranslations
1013 \end_layout
1014
1015 \end_inset
1016
1017  this file contains translations for internationalized paragraph styles
1018  (see 
1019 \begin_inset CommandInset ref
1020 LatexCommand ref
1021 reference "sub:I18n"
1022
1023 \end_inset
1024
1025 ).
1026 \end_layout
1027
1028 \begin_layout Labeling
1029 \labelwidthstring 00.00.0000
1030 \begin_inset Flex Code
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034 unicodesymbols
1035 \end_layout
1036
1037 \end_inset
1038
1039  this file contains information about unicode-encoded glyphs and the way
1040  they are supported by LyX via LaTeX.
1041 \end_layout
1042
1043 \begin_layout Section
1044 Your local configuration directory
1045 \end_layout
1046
1047 \begin_layout Standard
1048 Even if you are using LyX as an unprivileged user, you might want to change
1049  LyX configuration for your own use.
1050  The 
1051 \begin_inset Flex Code
1052 status collapsed
1053
1054 \begin_layout Plain Layout
1055 UserDir
1056 \end_layout
1057
1058 \end_inset
1059
1060  directory contains all your personal configuration files.
1061  This is the directory described as 
1062 \begin_inset Quotes eld
1063 \end_inset
1064
1065 user directory
1066 \begin_inset Quotes erd
1067 \end_inset
1068
1069  in 
1070 \begin_inset Flex MenuItem
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074 Help\SpecialChar \menuseparator
1075 About
1076 \begin_inset space ~
1077 \end_inset
1078
1079 LyX
1080 \end_layout
1081
1082 \end_inset
1083
1084 .
1085  This directory is used as a mirror of 
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 LyXDir
1091 \end_layout
1092
1093 \end_inset
1094
1095 , which means that every file in 
1096 \begin_inset Flex Code
1097 status collapsed
1098
1099 \begin_layout Plain Layout
1100 UserDir
1101 \end_layout
1102
1103 \end_inset
1104
1105  is a replacement for the corresponding file in 
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 LyXDir
1111 \end_layout
1112
1113 \end_inset
1114
1115 .
1116  Any configuration file described in the above sections can be placed either
1117  in the system-wide directory, in which case it will affect all users, or
1118  in your local directory for your own use.
1119 \end_layout
1120
1121 \begin_layout Standard
1122 To make things clearer, let's provide a few examples:
1123 \end_layout
1124
1125 \begin_layout Itemize
1126 The preferences set in the 
1127 \begin_inset Flex MenuItem
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Tools\SpecialChar \menuseparator
1132 Preferences
1133 \end_layout
1134
1135 \end_inset
1136
1137  dialog are saved to a file 
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 preferences
1143 \end_layout
1144
1145 \end_inset
1146
1147  in 
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152 UserDir
1153 \end_layout
1154
1155 \end_inset
1156
1157 .
1158 \end_layout
1159
1160 \begin_layout Itemize
1161 When you reconfigure using 
1162 \begin_inset Flex MenuItem
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 Tools\SpecialChar \menuseparator
1167 Reconfigure
1168 \end_layout
1169
1170 \end_inset
1171
1172 , LyX runs the 
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 configure.py
1178 \end_layout
1179
1180 \end_inset
1181
1182  script, and the resulting files are written in your local configuration
1183  directory.
1184  This means that any additional text class file that you might have added
1185  in 
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 UserDir/layouts
1191 \end_layout
1192
1193 \end_inset
1194
1195  will be added to the list of classes in the 
1196 \begin_inset Flex MenuItem
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 Document\SpecialChar \menuseparator
1201 Settings
1202 \end_layout
1203
1204 \end_inset
1205
1206  dialog.
1207 \end_layout
1208
1209 \begin_layout Itemize
1210 If you get some updated documentation from LyX ftp site and cannot install
1211  it because you do not have sysadmin rights on your system, you can just
1212  copy the files in 
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 UserDir/doc/
1218 \end_layout
1219
1220 \end_inset
1221
1222  and the items in the 
1223 \begin_inset Flex MenuItem
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 Help
1228 \end_layout
1229
1230 \end_inset
1231
1232  menu will open them!
1233 \end_layout
1234
1235 \begin_layout Section
1236 Running LyX with multiple configurations
1237 \end_layout
1238
1239 \begin_layout Standard
1240 The configuration freedom of the local configuration directory may not suffice
1241  if you want to have more than one configuration at your disposal.
1242  For example, you may want to be use different key bindings or printer settings
1243  at different times.
1244  You can achieve this by having several such directories.
1245  You then specify which directory to use at run-time.
1246 \end_layout
1247
1248 \begin_layout Standard
1249 Invoking LyX with the command line switch 
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 -userdir
1255 \end_layout
1256
1257 \end_inset
1258
1259  
1260 \emph on
1261 <some directory>
1262 \emph default
1263  instructs the program to read the configuration from that directory, and
1264  not from the default directory.
1265  (You can determine the default directory by running LyX without the 
1266 \begin_inset Flex Code
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 -userdir
1271 \end_layout
1272
1273 \end_inset
1274
1275  switch.) If the specified directory does not exist, LyX offers to create
1276  it for you, just like it does for the default directory on the first time
1277  you run the program.
1278  You can modify the configuration options in this additional user directory
1279  exactly as you would for the default directory.
1280  These directories are completely independent (but read on).
1281  Note that setting the environment variable 
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 LYX_USERDIR_VER
1287 \end_layout
1288
1289 \end_inset
1290
1291  to some value has exactly the same effect.
1292 \end_layout
1293
1294 \begin_layout Standard
1295 Having several configurations also requires more maintenance: if you want
1296  to add a new layout to 
1297 \begin_inset Flex Code
1298 status collapsed
1299
1300 \begin_layout Plain Layout
1301 NewUserDir/layouts
1302 \end_layout
1303
1304 \end_inset
1305
1306  which you want available from all your configurations, you must add it
1307  to each directory separately.
1308  You can avoid this with the following trick: after LyX creates the additional
1309  directory, most of the subdirectories (see above) are empty.
1310  If you want the new configuration to mirror an existing one, replace the
1311  empty subdirectory with a symbolic link to the matching subdirectory in
1312  the existing configuration.
1313  Take care with the 
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 doc/
1319 \end_layout
1320
1321 \end_inset
1322
1323  subdirectory, however, since it contains a file written by the configuration
1324  script (also accessible through 
1325 \begin_inset Flex MenuItem
1326 status collapsed
1327
1328 \begin_layout Plain Layout
1329 Tools\SpecialChar \menuseparator
1330 Reconfigure
1331 \end_layout
1332
1333 \end_inset
1334
1335 ) which is configuration-specific.
1336 \end_layout
1337
1338 \begin_layout Chapter
1339 The Preferences dialog
1340 \end_layout
1341
1342 \begin_layout Standard
1343 All options of the preferences dialog are described in the Appendix 
1344 \emph on
1345 The Preferences Dialog
1346 \emph default
1347  in the 
1348 \emph on
1349 User's Guide
1350 \emph default
1351 .
1352  For some options you might find here more details.
1353 \end_layout
1354
1355 \begin_layout Section
1356 Formats
1357 \begin_inset CommandInset label
1358 LatexCommand label
1359 name "sec:Formats"
1360
1361 \end_inset
1362
1363
1364 \end_layout
1365
1366 \begin_layout Standard
1367 The first step is to define your file formats if they are not already defined.
1368  To do so, open the 
1369 \begin_inset Flex MenuItem
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373 Tools\SpecialChar \menuseparator
1374 Preferences
1375 \end_layout
1376
1377 \end_inset
1378
1379  dialog.
1380  Under 
1381 \begin_inset Flex MenuItem
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385 File Handling\SpecialChar \menuseparator
1386 File formats
1387 \end_layout
1388
1389 \end_inset
1390
1391  press the 
1392 \begin_inset Flex MenuItem
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 New
1397 \end_layout
1398
1399 \end_inset
1400
1401  button to define your new format.
1402  The 
1403 \begin_inset Flex MenuItem
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407 Format
1408 \end_layout
1409
1410 \end_inset
1411
1412  field contains the name used to identify the format in the GUI.
1413  The 
1414 \begin_inset Flex MenuItem
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418 Short Name
1419 \end_layout
1420
1421 \end_inset
1422
1423  is used to identify the format internally.
1424  You will also need to enter a file extension.
1425  These are all required.
1426  The optional 
1427 \begin_inset Flex MenuItem
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 Shortcut
1432 \end_layout
1433
1434 \end_inset
1435
1436  field is used to provide a keyboard shortcut on the menus.
1437  (For example, pressing 
1438 \begin_inset Flex MenuItem
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 Ctrl+D
1443 \end_layout
1444
1445 \end_inset
1446
1447  will 
1448 \begin_inset Flex MenuItem
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 Document\SpecialChar \menuseparator
1453 View (Other Formats)\SpecialChar \menuseparator
1454 DVI
1455 \end_layout
1456
1457 \end_inset
1458
1459 .) 
1460 \end_layout
1461
1462 \begin_layout Standard
1463 A Format can have a 
1464 \begin_inset Flex MenuItem
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468 Viewer
1469 \end_layout
1470
1471 \end_inset
1472
1473  and an 
1474 \begin_inset Flex MenuItem
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 Editor
1479 \end_layout
1480
1481 \end_inset
1482
1483  associated with it.
1484  For example, you might want to use 
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Ghostview
1490 \end_layout
1491
1492 \end_inset
1493
1494  to view PostScript files.
1495  You can enter the command needed to start the program in the corresponding
1496  fields.
1497  In defining this command, you can use the four variables listed in the
1498  next section.
1499  The viewer is launched when you view an image in LyX or use the 
1500 \begin_inset Flex MenuItem
1501 status collapsed
1502
1503 \begin_layout Plain Layout
1504 Document\SpecialChar \menuseparator
1505 View
1506 \end_layout
1507
1508 \end_inset
1509
1510  menu.
1511  The editor is for example launched when you right-click on an image and
1512  choose 
1513 \begin_inset Flex MenuItem
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 Edit externally
1518 \end_layout
1519
1520 \end_inset
1521
1522  in the appearing context menu.
1523 \end_layout
1524
1525 \begin_layout Standard
1526 The 
1527 \begin_inset Flex MenuItem
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 MIME
1532 \end_layout
1533
1534 \end_inset
1535
1536  type of a format is optional, but if it is specified, it must be unique
1537  across all formats.
1538  It is used to detect files of this format from the file contents.
1539  For some important file formats there is no MIME type officially registered
1540  with the 
1541 \begin_inset CommandInset href
1542 LatexCommand href
1543 name "IANA"
1544 target "http://www.iana.org/assignments/media-types/"
1545
1546 \end_inset
1547
1548 .
1549  Therefore LyX uses the extended list of MIME types as specified by 
1550 \begin_inset CommandInset href
1551 LatexCommand href
1552 name "freedesktop.org"
1553 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1554
1555 \end_inset
1556
1557 .
1558 \end_layout
1559
1560 \begin_layout Standard
1561 The 
1562 \begin_inset Flex MenuItem
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566 Document format
1567 \end_layout
1568
1569 \end_inset
1570
1571  option tells LyX that a format is suitable for document export.
1572  If this is set and if a suitable conversion route exists (see 
1573 \begin_inset CommandInset ref
1574 LatexCommand ref
1575 reference "sec:Converters"
1576
1577 \end_inset
1578
1579 ), the format will appear in the 
1580 \begin_inset Flex MenuItem
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 File\SpecialChar \menuseparator
1585 Export
1586 \end_layout
1587
1588 \end_inset
1589
1590  menu.
1591  The format will also appear in the 
1592 \begin_inset Flex MenuItem
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 Document\SpecialChar \menuseparator
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 48.) You should be aware that local
6543  layout is not supported by versions of LyX prior to 1.6, so you should not
6544  use it if you want to be able to export your document to LyX 1.5 or earlier
6545  (without, that is, losing the local layout information).
6546  If you wish to be able to export to 1.6---local layout is supported in 1.6,
6547  though there is no UI for it---then you should use format 11 and, of course,
6548  use only layout constructs that were available in LyX 1.6.
6549 \end_layout
6550
6551 \begin_layout Standard
6552 When you have entered something in the 
6553 \begin_inset Flex Code
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 Local Layout
6558 \end_layout
6559
6560 \end_inset
6561
6562  pane, LyX will enable the 
6563 \begin_inset Quotes eld
6564 \end_inset
6565
6566 Validate
6567 \begin_inset Quotes erd
6568 \end_inset
6569
6570  button at the bottom.
6571  Clicking this button will cause LyX to determine whether what you have
6572  entered is valid layout information for the chosen format.
6573  LyX will report the result but, unfortunately, will not tell you what errors
6574  there might have been.
6575  These will be written to the terminal, however, if LyX is started from
6576  a terminal.
6577  You will not be permitted to save your local layout until you have entered
6578  something valid.
6579 \end_layout
6580
6581 \begin_layout Standard
6582 The warnings at the end of the previous section apply here, too.
6583  Do not play with local layout while you are actually working, especially
6584  if you have not saved your document.
6585  That said, using local layout with a test document can be a very convenient
6586  way to try out layout ideas, or even to start developing a module.
6587 \end_layout
6588
6589 \begin_layout Subsection
6590 Layout for 
6591 \begin_inset Flex MenuItem
6592 status collapsed
6593
6594 \begin_layout Plain Layout
6595 .sty
6596 \end_layout
6597
6598 \end_inset
6599
6600  files
6601 \end_layout
6602
6603 \begin_layout Standard
6604 There are two situations you are likely to encounter when wanting to support
6605  a new LaTeX document class, involving style (
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 .sty
6611 \end_layout
6612
6613 \end_inset
6614
6615 ) files and LaTeX2e class (
6616 \begin_inset Flex Code
6617 status collapsed
6618
6619 \begin_layout Plain Layout
6620 .cls
6621 \end_layout
6622
6623 \end_inset
6624
6625 ) .
6626  Supporting a style file is usually fairly easy.
6627  Supporting a new class file is a bit harder.
6628  We'll discuss the former in this section and the latter in the next.
6629  Similar remarks apply, of course, if you want to support a new DocBook
6630  DTD.
6631 \end_layout
6632
6633 \begin_layout Standard
6634 The easier case is the one in which your new document class is provided
6635  as a style file that is to be used in conjunction with an already supported
6636  document class.
6637  For the sake of the example, we'll assume that the style file is called
6638  
6639 \begin_inset Flex MenuItem
6640 status collapsed
6641
6642 \begin_layout Plain Layout
6643 myclass.sty
6644 \end_layout
6645
6646 \end_inset
6647
6648  and that it is meant to be used with 
6649 \begin_inset Flex MenuItem
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 report.cls
6654 \end_layout
6655
6656 \end_inset
6657
6658 , which is a standard class.
6659  
6660 \end_layout
6661
6662 \begin_layout Standard
6663 Start by copying the existing class's layout file into your local directory:
6664 \begin_inset Foot
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668 Of course, which directory is your local directory will vary by platform,
6669  and LyX allows you to specify your local directory on startup, too, using
6670  the 
6671 \begin_inset Flex Code
6672 status collapsed
6673
6674 \begin_layout Plain Layout
6675 -userdir
6676 \end_layout
6677
6678 \end_inset
6679
6680  option.
6681 \end_layout
6682
6683 \end_inset
6684
6685
6686 \end_layout
6687
6688 \begin_layout LyX-Code
6689 cp report.layout ~/.lyx/layouts/myclass.layout
6690 \end_layout
6691
6692 \begin_layout Standard
6693 Then edit 
6694 \begin_inset Flex Code
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698 myclass.layout
6699 \end_layout
6700
6701 \end_inset
6702
6703  and change the line: 
6704 \end_layout
6705
6706 \begin_layout LyX-Code
6707
6708 \backslash
6709 DeclareLaTeXClass{report}
6710 \end_layout
6711
6712 \begin_layout Standard
6713 to read
6714 \end_layout
6715
6716 \begin_layout LyX-Code
6717
6718 \backslash
6719 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6720 \end_layout
6721
6722 \begin_layout Standard
6723 Then add:
6724 \end_layout
6725
6726 \begin_layout LyX-Code
6727 Preamble 
6728 \begin_inset Newline newline
6729 \end_inset
6730
6731     
6732 \backslash
6733 usepackage{myclass}
6734 \begin_inset Newline newline
6735 \end_inset
6736
6737 EndPreamble
6738 \end_layout
6739
6740 \begin_layout Standard
6741 near the top of the file.
6742 \end_layout
6743
6744 \begin_layout Standard
6745 Start LyX and select 
6746 \begin_inset Flex MenuItem
6747 status collapsed
6748
6749 \begin_layout Plain Layout
6750 Tools\SpecialChar \menuseparator
6751 Reconfigure
6752 \end_layout
6753
6754 \end_inset
6755
6756 .
6757  Then restart LyX and try creating a new document.
6758  You should see "
6759 \begin_inset Flex MenuItem
6760 status collapsed
6761
6762 \begin_layout Plain Layout
6763 report (myclass)
6764 \end_layout
6765
6766 \end_inset
6767
6768 " as a document class option in the 
6769 \begin_inset Flex MenuItem
6770 status collapsed
6771
6772 \begin_layout Plain Layout
6773 Document\SpecialChar \menuseparator
6774 Settings
6775 \end_layout
6776
6777 \end_inset
6778
6779  dialog.
6780  It is likely that some of the sectioning commands and such in your new
6781  class will work differently from how they worked in the base class—
6782 \begin_inset Flex Code
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 report
6787 \end_layout
6788
6789 \end_inset
6790
6791  in this example—so you can fiddle around with the settings for the different
6792  sections if you wish.
6793  The layout information for sections is contained in 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 stdsections.inc
6799 \end_layout
6800
6801 \end_inset
6802
6803 , but you do not need to copy and change this file.
6804  Instead, you can simply add your changes to your layout file, after the
6805  line 
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 Input stdclass.inc
6811 \end_layout
6812
6813 \end_inset
6814
6815 , which itself includes 
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 stdsections.inc
6821 \end_layout
6822
6823 \end_inset
6824
6825 .
6826  For example, you might add these lines:
6827 \end_layout
6828
6829 \begin_layout LyX-Code
6830 Style Chapter
6831 \end_layout
6832
6833 \begin_layout LyX-Code
6834     Font
6835 \end_layout
6836
6837 \begin_layout LyX-Code
6838         Family Sans
6839 \end_layout
6840
6841 \begin_layout LyX-Code
6842     EndFont
6843 \end_layout
6844
6845 \begin_layout LyX-Code
6846 End
6847 \end_layout
6848
6849 \begin_layout Standard
6850 to change the font for chapter headings to sans-serif.
6851  This will override (or, in this case, add to) the existing declaration
6852  for the Chapter style.
6853  
6854 \end_layout
6855
6856 \begin_layout Standard
6857 Your new package may also provide commands or environments not present in
6858  the base class.
6859  In this case, you will want to add these to the layout file.
6860  See 
6861 \begin_inset CommandInset ref
6862 LatexCommand ref
6863 reference "sec:TextClass"
6864
6865 \end_inset
6866
6867  for information on how to do so.
6868 \end_layout
6869
6870 \begin_layout Standard
6871 If 
6872 \begin_inset Flex MenuItem
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 myclass.sty
6877 \end_layout
6878
6879 \end_inset
6880
6881  can be used with several different document classes, and even if it cannot,
6882  you might find it easiest just to write a module that you can load with
6883  the base class.
6884  The simplest possible such module would be:
6885 \end_layout
6886
6887 \begin_layout LyX-Code
6888 #
6889 \backslash
6890 DeclareLyXModule{My Package} 
6891 \end_layout
6892
6893 \begin_layout LyX-Code
6894 #DescriptionBegin 
6895 \end_layout
6896
6897 \begin_layout LyX-Code
6898 #Support for mypkg.sty.
6899 \end_layout
6900
6901 \begin_layout LyX-Code
6902 #DescriptionEnd
6903 \begin_inset Newline newline
6904 \end_inset
6905
6906
6907 \end_layout
6908
6909 \begin_layout LyX-Code
6910 Format 35
6911 \begin_inset Newline newline
6912 \end_inset
6913
6914
6915 \end_layout
6916
6917 \begin_layout LyX-Code
6918 Preamble
6919 \begin_inset Newline newline
6920 \end_inset
6921
6922     
6923 \backslash
6924 usepackage{mypkg}
6925 \begin_inset Newline newline
6926 \end_inset
6927
6928 EndPreamble
6929 \end_layout
6930
6931 \begin_layout Standard
6932 A more complex module might modify the behavior of some existing constructs
6933  or define some new ones.
6934  Again, see 
6935 \begin_inset CommandInset ref
6936 LatexCommand ref
6937 reference "sec:TextClass"
6938
6939 \end_inset
6940
6941  for discussion.
6942 \end_layout
6943
6944 \begin_layout Subsection
6945 Layout for 
6946 \begin_inset Flex MenuItem
6947 status collapsed
6948
6949 \begin_layout Plain Layout
6950 .cls
6951 \end_layout
6952
6953 \end_inset
6954
6955  files
6956 \end_layout
6957
6958 \begin_layout Standard
6959 There are two possibilities here.
6960  One is that the class file is itself based upon an existing document class.
6961  For example, many thesis classes are based upon 
6962 \begin_inset Flex MenuItem
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 book.cls
6967 \end_layout
6968
6969 \end_inset
6970
6971 .
6972  To see whether yours is, look for a line like
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \backslash
6978 LoadClass{book}
6979 \end_layout
6980
6981 \begin_layout Standard
6982 in the file.
6983  If so, then you may proceed largely as in the previous section, though
6984  the 
6985 \begin_inset Flex Code
6986 status collapsed
6987
6988 \begin_layout Plain Layout
6989 DeclareLaTeXClass
6990 \end_layout
6991
6992 \end_inset
6993
6994  line will be different.
6995  If your new class is 
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 thesis
7001 \end_layout
7002
7003 \end_inset
7004
7005  and it is based upon 
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 book
7011 \end_layout
7012
7013 \end_inset
7014
7015 , then the line should read:
7016 \begin_inset Foot
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 And it will be easiest if you save the file to 
7021 \begin_inset Flex Code
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 thesis.layout
7026 \end_layout
7027
7028 \end_inset
7029
7030 : LyX assumes that the document class has the same name as the layout file.
7031  
7032 \end_layout
7033
7034 \end_inset
7035
7036
7037 \end_layout
7038
7039 \begin_layout LyX-Code
7040
7041 \backslash
7042 DeclareLaTeXClass[thesis,book]{thesis}
7043 \end_layout
7044
7045 \begin_layout Standard
7046 If, on the other hand, the new class is not based upon an existing class,
7047  you will probably have to 
7048 \begin_inset Quotes eld
7049 \end_inset
7050
7051 roll your own
7052 \begin_inset Quotes erd
7053 \end_inset
7054
7055  layout.
7056  We strongly suggest copying an existing layout file which uses a similar
7057  LaTeX class and then modifying it, if you can do so.
7058  At least use an existing file as a starting point so you can find out what
7059  items you need to worry about.
7060  Again, the specifics are covered below.
7061 \end_layout
7062
7063 \begin_layout Subsection
7064 Creating templates
7065 \begin_inset CommandInset label
7066 LatexCommand label
7067 name "sub:Creating-Templates"
7068
7069 \end_inset
7070
7071
7072 \end_layout
7073
7074 \begin_layout Standard
7075 Once you have written a layout file for a new document class, you might
7076  want to consider writing a 
7077 \emph on
7078 template
7079 \emph default
7080  for it, too.
7081  A template acts as a kind of tutorial for your layout, showing how it might
7082  be used, though containing dummy content.
7083  You can of course look at the various templates included with LyX for ideas.
7084 \end_layout
7085
7086 \begin_layout Standard
7087 Templates are created just like usual documents: using LyX.
7088  The only difference is that usual documents contain all possible settings,
7089  including the font scheme and the paper size.
7090  Usually a user doesn't want a template to overwrite his preferred settings
7091  for such parameters.
7092  For that reason, the designer of a template should remove the corresponding
7093  commands like 
7094 \begin_inset Flex Code
7095 status collapsed
7096
7097 \begin_layout Plain Layout
7098
7099 \backslash
7100 font_roman
7101 \end_layout
7102
7103 \end_inset
7104
7105  or 
7106 \begin_inset Flex Code
7107 status collapsed
7108
7109 \begin_layout Plain Layout
7110
7111 \backslash
7112 papersize
7113 \end_layout
7114
7115 \end_inset
7116
7117  from the template LyX file.
7118  This can be done with any simple text-editor, for example 
7119 \begin_inset Flex Code
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 vi
7124 \end_layout
7125
7126 \end_inset
7127
7128  or 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 notepad
7134 \end_layout
7135
7136 \end_inset
7137
7138 .
7139 \end_layout
7140
7141 \begin_layout Standard
7142 Put the edited template files you create in 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 UserDir/templates/
7148 \end_layout
7149
7150 \end_inset
7151
7152 , copy the ones you use from the global template directory in 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 LyXDir/templates/
7158 \end_layout
7159
7160 \end_inset
7161
7162  to the same place, and redefine the template path in the 
7163 \begin_inset Flex MenuItem
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 Tools\SpecialChar \menuseparator
7168 Preferences\SpecialChar \menuseparator
7169 Paths
7170 \end_layout
7171
7172 \end_inset
7173
7174  dialog.
7175 \end_layout
7176
7177 \begin_layout Standard
7178 Note, by the way, that there is a template which has a particular meaning:
7179  
7180 \begin_inset Flex Code
7181 status collapsed
7182
7183 \begin_layout Plain Layout
7184 defaults.lyx
7185 \end_layout
7186
7187 \end_inset
7188
7189 .
7190  This template is loaded every time you create a new document with 
7191 \begin_inset Flex MenuItem
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 File\SpecialChar \menuseparator
7196 New
7197 \end_layout
7198
7199 \end_inset
7200
7201  in order to provide useful defaults.
7202  To create this template from inside LyX, all you have to do is to open
7203  a document with the correct settings, and use the 
7204 \begin_inset Flex MenuItem
7205 status collapsed
7206
7207 \begin_layout Plain Layout
7208 Save as Document Defaults
7209 \end_layout
7210
7211 \end_inset
7212
7213  button.
7214 \end_layout
7215
7216 \begin_layout Subsection
7217 Upgrading old layout files
7218 \end_layout
7219
7220 \begin_layout Standard
7221 The format of layout files changes with each LyX release, so old layout
7222  files need to be converted to the new format.
7223  If LyX reads a layout file in an older format, it automatically calls the
7224  script 
7225 \begin_inset Flex Code
7226 status collapsed
7227
7228 \begin_layout Plain Layout
7229 layout2layout.py
7230 \end_layout
7231
7232 \end_inset
7233
7234  to convert it to a temporary file in current format.
7235  The original file is left untouched.
7236  If you use the layout file often, then, you may want to convert it permanently,
7237  so that LyX does not have to do so itself every time.
7238  To do this, you can call the converter manually:
7239 \end_layout
7240
7241 \begin_layout Enumerate
7242 rename the file 
7243 \begin_inset Flex Code
7244 status collapsed
7245
7246 \begin_layout Plain Layout
7247 myclass.layout
7248 \end_layout
7249
7250 \end_inset
7251
7252  to 
7253 \begin_inset Flex Code
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 myclass.old
7258 \end_layout
7259
7260 \end_inset
7261
7262
7263 \end_layout
7264
7265 \begin_layout Enumerate
7266 Call the command
7267 \begin_inset Newline newline
7268 \end_inset
7269
7270
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7276 \end_layout
7277
7278 \end_inset
7279
7280
7281 \begin_inset Newline newline
7282 \end_inset
7283
7284 where 
7285 \begin_inset Flex Code
7286 status collapsed
7287
7288 \begin_layout Plain Layout
7289 LyXDir
7290 \end_layout
7291
7292 \end_inset
7293
7294  is the name of your LyX system directory.
7295 \end_layout
7296
7297 \begin_layout Standard
7298 Note that manual conversion does not affect included files, so these will
7299  have to be converted separately.
7300 \end_layout
7301
7302 \begin_layout Section
7303 \begin_inset CommandInset label
7304 LatexCommand label
7305 name "sec:TextClass"
7306
7307 \end_inset
7308
7309 The layout file format
7310 \end_layout
7311
7312 \begin_layout Standard
7313 The following sections describe how layout files are structured and written.
7314  Our advice is to go slowly, save and test often.
7315  It is really not that hard, except that the multitude of options can become
7316  overwhelming, especially if you try to check out too many at once.
7317  It becomes easier if you use existing layouts of LyX as examples/reference
7318  or if you modify an existing layout to your needs.
7319 \end_layout
7320
7321 \begin_layout Standard
7322 Note that all the tags used in layout files are case-insensitive.
7323  This means that 
7324 \begin_inset Flex Code
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 Style
7329 \end_layout
7330
7331 \end_inset
7332
7333
7334 \begin_inset Flex Code
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338 style
7339 \end_layout
7340
7341 \end_inset
7342
7343  and 
7344 \begin_inset Flex Code
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 StYlE
7349 \end_layout
7350
7351 \end_inset
7352
7353  are really the same tag.
7354  The possible arguments are printed in brackets after the tag's name.
7355  The default argument is typeset 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360
7361 \emph on
7362 emphasized
7363 \end_layout
7364
7365 \end_inset
7366
7367 .
7368  If the argument has a data type like 
7369 \begin_inset Quotes eld
7370 \end_inset
7371
7372 string
7373 \begin_inset Quotes erd
7374 \end_inset
7375
7376  or 
7377 \begin_inset Quotes eld
7378 \end_inset
7379
7380 float
7381 \begin_inset Quotes erd
7382 \end_inset
7383
7384 , the default is shown like this: 
7385 \begin_inset Flex Code
7386 status collapsed
7387
7388 \begin_layout Plain Layout
7389 float=
7390 \emph on
7391 default
7392 \end_layout
7393
7394 \end_inset
7395
7396 .
7397 \end_layout
7398
7399 \begin_layout Subsection
7400 The document class declaration and classification
7401 \end_layout
7402
7403 \begin_layout Standard
7404 Lines in a layout file which begin with 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 #
7410 \end_layout
7411
7412 \end_inset
7413
7414  are comments.
7415  There is one exception to this rule.
7416  All 
7417 \begin_inset Flex Code
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 *.layout
7422 \end_layout
7423
7424 \end_inset
7425
7426  files should begin with lines like:
7427 \end_layout
7428
7429 \begin_layout LyX-Code
7430
7431 \size small
7432 #% Do not delete the line below; configure depends on this 
7433 \end_layout
7434
7435 \begin_layout LyX-Code
7436
7437 \size small
7438 #  
7439 \backslash
7440 DeclareLaT
7441 \size default
7442
7443 \begin_inset ERT
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447
7448 {}
7449 \end_layout
7450
7451 \end_inset
7452
7453
7454 \size small
7455 eXClass{Article (Standard Class)}
7456 \end_layout
7457
7458 \begin_layout LyX-Code
7459
7460 \size small
7461 #  
7462 \backslash
7463 DeclareCategory{Articles}
7464 \end_layout
7465
7466 \begin_layout Standard
7467 The second and third lines are used when you (re)configure LyX.
7468  The layout file is read by the LaTeX script 
7469 \begin_inset Flex Code
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 chkconfig.ltx
7474 \end_layout
7475
7476 \end_inset
7477
7478 , in a special mode where 
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 #
7484 \end_layout
7485
7486 \end_inset
7487
7488  is ignored.
7489  The first line is just a LaTeX comment, the second one contains the mandatory
7490  declaration of the text class and the third line contains the optional
7491  classification of the class.
7492  If these lines appear in a file named 
7493 \begin_inset Flex Code
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 article.layout
7498 \end_layout
7499
7500 \end_inset
7501
7502 , then they define a text class of name 
7503 \begin_inset Flex Code
7504 status collapsed
7505
7506 \begin_layout Plain Layout
7507 article
7508 \end_layout
7509
7510 \end_inset
7511
7512  (the name of the layout file) which uses the LaTeX document class 
7513 \begin_inset Flex Code
7514 status collapsed
7515
7516 \begin_layout Plain Layout
7517 article.cls
7518 \end_layout
7519
7520 \end_inset
7521
7522  (the default is to use the same name as the layout).
7523  The string 
7524 \begin_inset Quotes eld
7525 \end_inset
7526
7527 Article (Standard Class)
7528 \begin_inset Quotes erd
7529 \end_inset
7530
7531  that appears above is used as a description of the text class in the 
7532 \begin_inset Flex MenuItem
7533 status collapsed
7534
7535 \begin_layout Plain Layout
7536 Document\SpecialChar \menuseparator
7537 Settings
7538 \end_layout
7539
7540 \end_inset
7541
7542  dialog.
7543  The category (
7544 \begin_inset Quotes eld
7545 \end_inset
7546
7547 Articles
7548 \begin_inset Quotes erd
7549 \end_inset
7550
7551  in the example) is also used in the 
7552 \begin_inset Flex MenuItem
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 Document\SpecialChar \menuseparator
7557 Settings
7558 \end_layout
7559
7560 \end_inset
7561
7562  dialog: the text classes are grouped by these categories (which are usually
7563  genres, so typical categories are 
7564 \begin_inset Quotes eld
7565 \end_inset
7566
7567 Articles
7568 \begin_inset Quotes erd
7569 \end_inset
7570
7571
7572 \begin_inset Quotes eld
7573 \end_inset
7574
7575 Books
7576 \begin_inset Quotes erd
7577 \end_inset
7578
7579
7580 \begin_inset Quotes eld
7581 \end_inset
7582
7583 Reports
7584 \begin_inset Quotes erd
7585 \end_inset
7586
7587
7588 \begin_inset Quotes eld
7589 \end_inset
7590
7591 Letters
7592 \begin_inset Quotes erd
7593 \end_inset
7594
7595
7596 \begin_inset Quotes eld
7597 \end_inset
7598
7599 Presentations
7600 \begin_inset Quotes erd
7601 \end_inset
7602
7603
7604 \begin_inset Quotes eld
7605 \end_inset
7606
7607 Curricula Vitae
7608 \begin_inset Quotes erd
7609 \end_inset
7610
7611  etc.).
7612  If no category has been declared, the class will be put in the 
7613 \begin_inset Quotes eld
7614 \end_inset
7615
7616 Uncategorized
7617 \begin_inset Quotes erd
7618 \end_inset
7619
7620  group.
7621 \end_layout
7622
7623 \begin_layout Standard
7624 Let's assume that you wrote your own text class that uses the 
7625 \begin_inset Flex Code
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 article.cls
7630 \end_layout
7631
7632 \end_inset
7633
7634  document class, but where you changed the appearance of the section headings.
7635  If you put it in a file 
7636 \begin_inset Flex Code
7637 status collapsed
7638
7639 \begin_layout Plain Layout
7640 myarticle.layout
7641 \end_layout
7642
7643 \end_inset
7644
7645 , the header of this file should be:
7646 \end_layout
7647
7648 \begin_layout LyX-Code
7649
7650 \size small
7651 #% Do not delete the line below; configure depends on this 
7652 \end_layout
7653
7654 \begin_layout LyX-Code
7655
7656 \size small
7657 #  
7658 \backslash
7659 DeclareLaT
7660 \size default
7661
7662 \begin_inset ERT
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666
7667 {}
7668 \end_layout
7669
7670 \end_inset
7671
7672
7673 \size small
7674 eXClass[article]{Article (with My Own Headings)}
7675 \end_layout
7676
7677 \begin_layout LyX-Code
7678
7679 \size small
7680 #  
7681 \backslash
7682 DeclareCategory{Articles}
7683 \end_layout
7684
7685 \begin_layout Standard
7686 This declares a text class 
7687 \begin_inset Flex Code
7688 status collapsed
7689
7690 \begin_layout Plain Layout
7691 myarticle
7692 \end_layout
7693
7694 \end_inset
7695
7696 , associated with the LaTeX document class 
7697 \begin_inset Flex Code
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701 article.cls
7702 \end_layout
7703
7704 \end_inset
7705
7706  and described as 
7707 \begin_inset Quotes eld
7708 \end_inset
7709
7710 Article (with My Own Headings)
7711 \begin_inset Quotes erd
7712 \end_inset
7713
7714 .
7715  If your text class depends on several packages, you can declare it as:
7716 \end_layout
7717
7718 \begin_layout LyX-Code
7719
7720 \size small
7721 #% Do not delete the line below; configure depends on this 
7722 \end_layout
7723
7724 \begin_layout LyX-Code
7725
7726 \size small
7727 #  
7728 \backslash
7729 DeclareLaT
7730 \size default
7731
7732 \begin_inset ERT
7733 status collapsed
7734
7735 \begin_layout Plain Layout
7736
7737 {}
7738 \end_layout
7739
7740 \end_inset
7741
7742
7743 \size small
7744 eXClass[article,foo.sty]{Article (with My Own Headings)}
7745 \end_layout
7746
7747 \begin_layout LyX-Code
7748
7749 \size small
7750 #  
7751 \backslash
7752 DeclareCategory{Articles}
7753 \end_layout
7754
7755 \begin_layout Standard
7756 This indicates that your text class uses the 
7757 \begin_inset Flex Code
7758 status collapsed
7759
7760 \begin_layout Plain Layout
7761 foo.sty
7762 \end_layout
7763
7764 \end_inset
7765
7766  package.
7767  Finally, it is also possible to declare classes for DocBook code.
7768  Typical declarations will look like:
7769 \end_layout
7770
7771 \begin_layout LyX-Code
7772
7773 \size small
7774 #% Do not delete the line below; configure depends on this 
7775 \end_layout
7776
7777 \begin_layout LyX-Code
7778
7779 \size small
7780
7781 \backslash
7782 DeclareDocBookClass[article]{SGML (DocBook Article)}
7783 \end_layout
7784
7785 \begin_layout LyX-Code
7786
7787 \size small
7788
7789 \backslash
7790 DeclareCategory{Articles (DocBook)}
7791 \end_layout
7792
7793 \begin_layout Standard
7794 Note that these declarations can also be given an optional parameter declaring
7795  the name of the document class (but not a list).
7796 \end_layout
7797
7798 \begin_layout Standard
7799 So, to be as explicit as possible, the form of the layout declaration is:
7800 \end_layout
7801
7802 \begin_layout LyX-Code
7803
7804 \size small
7805 #  
7806 \backslash
7807 DeclareLaT
7808 \size default
7809
7810 \begin_inset ERT
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814
7815 {}
7816 \end_layout
7817
7818 \end_inset
7819
7820
7821 \size small
7822 eXClass[class,package.sty]{layout description}
7823 \end_layout
7824
7825 \begin_layout LyX-Code
7826
7827 \size small
7828 #  
7829 \backslash
7830 DeclareCategory{category}
7831 \end_layout
7832
7833 \begin_layout Standard
7834 The class need only be specified if the name of the LaTeX class file and
7835  the name of the layout file are different or if there are packages to load.
7836  If the name of the class file is not specified, then LyX will simply assume
7837  that it is the same as the name of the layout file.
7838 \end_layout
7839
7840 \begin_layout Standard
7841 When the text class has been modified to your taste, all you have to do
7842  is to copy it either to 
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 LyXDir/layouts/
7848 \end_layout
7849
7850 \end_inset
7851
7852  or to 
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 UserDir/layouts
7858 \end_layout
7859
7860 \end_inset
7861
7862 , run 
7863 \begin_inset Flex MenuItem
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 Tools\SpecialChar \menuseparator
7868 Reconfigure
7869 \end_layout
7870
7871 \end_inset
7872
7873 , exit LyX and restart.
7874  Then your new text class should be available along with the others.
7875 \end_layout
7876
7877 \begin_layout Standard
7878 Once the layout file is installed, you can edit it and see your changes
7879  without having to reconfigure or to restart LyX.
7880  
7881 \begin_inset Foot
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 In versions of LyX prior to 1.6, this was not true.
7886  As a result, editing layout files was very time consuming, since you had
7887  constantly to restart LyX to see changes.
7888 \end_layout
7889
7890 \end_inset
7891
7892  You can force a reload of the current layout by using the LyX function
7893  
7894 \begin_inset Flex MenuItem
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 layout-reload
7899 \end_layout
7900
7901 \end_inset
7902
7903 .
7904  There is no default binding for this function—though, of course, you can
7905  bind it to a key yourself.
7906  But you will normally use this function simply by entering it in the mini-buffe
7907 r.
7908  
7909 \end_layout
7910
7911 \begin_layout Standard
7912
7913 \emph on
7914 Warning
7915 \emph default
7916
7917 \begin_inset Flex MenuItem
7918 status collapsed
7919
7920 \begin_layout Plain Layout
7921 layout-reload
7922 \end_layout
7923
7924 \end_inset
7925
7926  is very much an `advanced feature'.
7927  It is 
7928 \emph on
7929 strongly
7930 \emph default
7931  recommended that you save your work before using this function.
7932  In fact, it is 
7933 \emph on
7934 strongly
7935 \emph default
7936  recommended that you not attempt to edit layout information while simultaneousl
7937 y working on a document that you care about.
7938  Use a test document.
7939  Syntax errors and the like in your layout file could cause peculiar behavior.
7940  In particular, such errors could cause LyX to regard the current layout
7941  as invalid and to attempt to switch to some other layout.
7942 \begin_inset Foot
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 Really bad syntax errors may even caused LyX to exit.
7947  This is because certain sorts of errors may make LyX unable to read 
7948 \emph on
7949 any
7950 \emph default
7951  layout information.
7952  Please be careful.
7953 \end_layout
7954
7955 \end_inset
7956
7957  The LyX team strives to keep LyX stable in such situations, but safe is
7958  better than sorry.
7959 \begin_inset Foot
7960 status collapsed
7961
7962 \begin_layout Plain Layout
7963 While we're giving advice: make regular backups.
7964  And be nice to your mother.
7965 \end_layout
7966
7967 \end_inset
7968
7969
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 The Module declaration
7974 \end_layout
7975
7976 \begin_layout Standard
7977 A module must begin with a line like the following:
7978 \end_layout
7979
7980 \begin_layout LyX-Code
7981 #
7982 \backslash
7983 DeclareL
7984 \begin_inset ERT
7985 status collapsed
7986
7987 \begin_layout Plain Layout
7988
7989 {}
7990 \end_layout
7991
7992 \end_inset
7993
7994 yXModule[endnotes.sty]{Endnotes} 
7995 \end_layout
7996
7997 \begin_layout Standard
7998 The mandatory argument, in curly brackets, is the name of the module, as
7999  it should appear in 
8000 \begin_inset Flex MenuItem
8001 status collapsed
8002
8003 \begin_layout Plain Layout
8004 Document\SpecialChar \menuseparator
8005 Settings\SpecialChar \menuseparator
8006 Modules
8007 \end_layout
8008
8009 \end_inset
8010
8011 .
8012  The argument in square brackets is optional: It declares any LaTeX packages
8013  on which the module depends.
8014  It is also possible to use the form 
8015 \begin_inset Flex MenuItem
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 from->to
8020 \end_layout
8021
8022 \end_inset
8023
8024  as an optional argument, which declares that the module can only be used
8025  when there exists a conversion chain between the formats `
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 from
8031 \end_layout
8032
8033 \end_inset
8034
8035 ' and `
8036 \begin_inset Flex Code
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040 to
8041 \end_layout
8042
8043 \end_inset
8044
8045 '.
8046 \end_layout
8047
8048 \begin_layout Standard
8049 The module declaration should then be followed by lines like the following
8050 \begin_inset Foot
8051 status collapsed
8052
8053 \begin_layout Plain Layout
8054 Preferably in English if the module should be published with LyX.
8055  This description will appear in the list of messages to be translated and
8056  will be thus translated with the next interface update.
8057 \end_layout
8058
8059 \end_inset
8060
8061 :
8062 \end_layout
8063
8064 \begin_layout LyX-Code
8065 #DescriptionBegin 
8066 \end_layout
8067
8068 \begin_layout LyX-Code
8069 #Adds an endnote command, in addition to footnotes.
8070  
8071 \end_layout
8072
8073 \begin_layout LyX-Code
8074 #You will need to add  
8075 \backslash
8076 theendnotes in TeX code where you 
8077 \end_layout
8078
8079 \begin_layout LyX-Code
8080 #want the endnotes to appear.
8081  
8082 \end_layout
8083
8084 \begin_layout LyX-Code
8085 #DescriptionEnd 
8086 \end_layout
8087
8088 \begin_layout LyX-Code
8089 #Requires: somemodule | othermodule
8090 \end_layout
8091
8092 \begin_layout LyX-Code
8093 #Excludes: badmodule
8094 \end_layout
8095
8096 \begin_layout Standard
8097 The description is used in 
8098 \begin_inset Flex MenuItem
8099 status collapsed
8100
8101 \begin_layout Plain Layout
8102 Document\SpecialChar \menuseparator
8103 Settings\SpecialChar \menuseparator
8104 Modules
8105 \end_layout
8106
8107 \end_inset
8108
8109  to provide the user with information about what the module does.
8110  The 
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 Requires
8116 \end_layout
8117
8118 \end_inset
8119
8120  line is used to identify other modules with which this one must be used;
8121  the 
8122 \begin_inset Flex Code
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 Excludes
8127 \end_layout
8128
8129 \end_inset
8130
8131  line is used to identify modules with which this one may not be used.
8132  Both are optional, and, as shown, multiple modules should be separated
8133  with the pipe symbol: |.
8134  Note that the required modules are treated disjunctively: 
8135 \emph on
8136 at least one
8137 \emph default
8138  of the required modules must be used.
8139  Similarly, 
8140 \emph on
8141 no
8142 \emph default
8143  excluded module may be used.
8144  Note that modules are identified here by their filenames without the 
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 .module
8150 \end_layout
8151
8152 \end_inset
8153
8154  extension.
8155  So 
8156 \begin_inset Flex Code
8157 status collapsed
8158
8159 \begin_layout Plain Layout
8160 somemodule
8161 \end_layout
8162
8163 \end_inset
8164
8165  is really 
8166 \begin_inset Flex Code
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 somemodule.module
8171 \end_layout
8172
8173 \end_inset
8174
8175 .
8176 \end_layout
8177
8178 \begin_layout Subsection
8179 Format number
8180 \end_layout
8181
8182 \begin_layout Standard
8183 The first non-comment line of any layout file, included file, or module
8184  
8185 \emph on
8186 must
8187 \emph default
8188  contain the file format number:
8189 \end_layout
8190
8191 \begin_layout Description
8192 \begin_inset Flex Code
8193 status collapsed
8194
8195 \begin_layout Plain Layout
8196 Format
8197 \end_layout
8198
8199 \end_inset
8200
8201  [
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206 int
8207 \end_layout
8208
8209 \end_inset
8210
8211 ] The format number of the layout file.
8212 \end_layout
8213
8214 \begin_layout Standard
8215 This tag was introduced with LyX
8216 \begin_inset space ~
8217 \end_inset
8218
8219 1.4.0.
8220  Layout files from older LyX versions do not have an explicit file format
8221  and are considered to have 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 Format
8227 \begin_inset space ~
8228 \end_inset
8229
8230 1
8231 \end_layout
8232
8233 \end_inset
8234
8235 .
8236  The format for the present version of LyX is format 35.
8237  But each version of LyX is capable of reading earlier versions' layout
8238  files, just as they are capable of reading files produced by earlier versions
8239  of LyX.
8240  There is, however, no provision for converting to earlier formats.
8241 \end_layout
8242
8243 \begin_layout Subsection
8244 \begin_inset CommandInset label
8245 LatexCommand label
8246 name "sub:General-text-class"
8247
8248 \end_inset
8249
8250 General text class parameters
8251 \end_layout
8252
8253 \begin_layout Standard
8254 These are general parameters that govern the behavior of an entire document
8255  class.
8256  (This does 
8257 \emph on
8258 not
8259 \emph default
8260  mean that they must appear in 
8261 \begin_inset Flex Code
8262 status collapsed
8263
8264 \begin_layout Plain Layout
8265 .layout
8266 \end_layout
8267
8268 \end_inset
8269
8270  files rather than in modules.
8271  A module can contain any layout tag.)
8272 \end_layout
8273
8274 \begin_layout Description
8275 \begin_inset Flex Code
8276 status collapsed
8277
8278 \begin_layout Plain Layout
8279 AddToHTMLPreamble
8280 \end_layout
8281
8282 \end_inset
8283
8284  Adds information that will be output in the 
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 <head>
8290 \end_layout
8291
8292 \end_inset
8293
8294  block when the document is output to XHTML.
8295  Typically, this would be used to output CSS style information, but it can
8296  be used for anything that can appear in 
8297 \begin_inset Flex Code
8298 status collapsed
8299
8300 \begin_layout Plain Layout
8301 <head>
8302 \end_layout
8303
8304 \end_inset
8305
8306 .
8307  Must end with 
8308 \begin_inset Quotes eld
8309 \end_inset
8310
8311
8312 \begin_inset Flex Code
8313 status collapsed
8314
8315 \begin_layout Plain Layout
8316 EndPreamble
8317 \end_layout
8318
8319 \end_inset
8320
8321
8322 \begin_inset Quotes erd
8323 \end_inset
8324
8325 .
8326 \end_layout
8327
8328 \begin_layout Description
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 AddToPreamble
8334 \end_layout
8335
8336 \end_inset
8337
8338  Adds information to the document preamble.
8339  Must end with
8340 \begin_inset Newline newline
8341 \end_inset
8342
8343
8344 \begin_inset Quotes eld
8345 \end_inset
8346
8347
8348 \begin_inset Flex Code
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352 EndPreamble
8353 \end_layout
8354
8355 \end_inset
8356
8357
8358 \begin_inset Quotes erd
8359 \end_inset
8360
8361 .
8362 \end_layout
8363
8364 \begin_layout Description
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 CiteFormat
8370 \end_layout
8371
8372 \end_inset
8373
8374  Defines formats for use in the display of bibliographic information.
8375  See 
8376 \begin_inset CommandInset ref
8377 LatexCommand ref
8378 reference "sub:Citation-format-description"
8379
8380 \end_inset
8381
8382  for details.
8383  Must end with 
8384 \begin_inset Quotes eld
8385 \end_inset
8386
8387
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 End
8393 \end_layout
8394
8395 \end_inset
8396
8397
8398 \begin_inset Quotes erd
8399 \end_inset
8400
8401 .
8402 \end_layout
8403
8404 \begin_layout Description
8405 \begin_inset Flex Code
8406 status collapsed
8407
8408 \begin_layout Plain Layout
8409 ClassOptions
8410 \end_layout
8411
8412 \end_inset
8413
8414  Describes various global options supported by the document class.
8415  See 
8416 \begin_inset CommandInset ref
8417 LatexCommand ref
8418 reference "sub:ClassOptions"
8419
8420 \end_inset
8421
8422  for a description.
8423  Must end with 
8424 \begin_inset Quotes eld
8425 \end_inset
8426
8427
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 End
8433 \end_layout
8434
8435 \end_inset
8436
8437
8438 \begin_inset Quotes erd
8439 \end_inset
8440
8441 .
8442 \end_layout
8443
8444 \begin_layout Description
8445 \begin_inset Flex Code
8446 status collapsed
8447
8448 \begin_layout Plain Layout
8449 Columns
8450 \end_layout
8451
8452 \end_inset
8453
8454  [
8455 \begin_inset Flex Code
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459
8460 \emph on
8461 1
8462 \end_layout
8463
8464 \end_inset
8465
8466 ,
8467 \begin_inset space \thinspace{}
8468 \end_inset
8469
8470
8471 \begin_inset Flex Code
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 2
8476 \end_layout
8477
8478 \end_inset
8479
8480 ] Whether the class should 
8481 \emph on
8482 default
8483 \emph default
8484  to having one or two columns.
8485  Can be changed in the 
8486 \begin_inset Flex MenuItem
8487 status collapsed
8488
8489 \begin_layout Plain Layout
8490 Document\SpecialChar \menuseparator
8491 Settings
8492 \end_layout
8493
8494 \end_inset
8495
8496  dialog.
8497 \end_layout
8498
8499 \begin_layout Description
8500 \begin_inset Flex Code
8501 status collapsed
8502
8503 \begin_layout Plain Layout
8504 Counter
8505 \end_layout
8506
8507 \end_inset
8508
8509  [
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 string
8515 \end_layout
8516
8517 \end_inset
8518
8519 ] This sequence defines the properties for a counter.
8520  If the counter does not yet exist, it is created; if it does exist, it
8521  is modified.
8522  Must end with 
8523 \begin_inset Quotes eld
8524 \end_inset
8525
8526
8527 \begin_inset Flex Code
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 End
8532 \end_layout
8533
8534 \end_inset
8535
8536
8537 \begin_inset Quotes erd
8538 \end_inset
8539
8540 .
8541 \begin_inset Newline newline
8542 \end_inset
8543
8544 See 
8545 \begin_inset CommandInset ref
8546 LatexCommand ref
8547 reference "sub:Counters"
8548
8549 \end_inset
8550
8551  for details on counters.
8552 \end_layout
8553
8554 \begin_layout Description
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 DefaultFont
8560 \end_layout
8561
8562 \end_inset
8563
8564  Sets the default font used to display the document.
8565  See 
8566 \begin_inset CommandInset ref
8567 LatexCommand ref
8568 reference "sub:Font-description"
8569
8570 \end_inset
8571
8572  for how to declare fonts.
8573  Must end with 
8574 \begin_inset Quotes eld
8575 \end_inset
8576
8577
8578 \begin_inset Flex Code
8579 status collapsed
8580
8581 \begin_layout Plain Layout
8582 EndFont
8583 \end_layout
8584
8585 \end_inset
8586
8587
8588 \begin_inset Quotes erd
8589 \end_inset
8590
8591 .
8592 \end_layout
8593
8594 \begin_layout Description
8595 \begin_inset Flex Code
8596 status collapsed
8597
8598 \begin_layout Plain Layout
8599 DefaultModule
8600 \end_layout
8601
8602 \end_inset
8603
8604  [
8605 \begin_inset Flex Code
8606 status collapsed
8607
8608 \begin_layout Plain Layout
8609 <module>
8610 \end_layout
8611
8612 \end_inset
8613
8614 ] Specifies a module to be included by default with this document class.
8615  The module is specified as filename without the 
8616 \begin_inset Flex Code
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 .module
8621 \end_layout
8622
8623 \end_inset
8624
8625  extension.
8626  The user can still remove the module, but it will be active at the outset.
8627  (This applies only when new files are created, or when this class is chosen
8628  for an existing document.)
8629 \end_layout
8630
8631 \begin_layout Description
8632 \begin_inset Flex Code
8633 status collapsed
8634
8635 \begin_layout Plain Layout
8636 DefaultStyle
8637 \end_layout
8638
8639 \end_inset
8640
8641  [
8642 \begin_inset Flex Code
8643 status collapsed
8644
8645 \begin_layout Plain Layout
8646 <style>
8647 \end_layout
8648
8649 \end_inset
8650
8651 ] This is the style that will be assigned to new paragraphs, usually 
8652 \begin_inset Flex MenuItem
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 Standard
8657 \end_layout
8658
8659 \end_inset
8660
8661 .
8662  This will default to the first defined style if not given, but you are
8663  encouraged to use this directive.
8664 \end_layout
8665
8666 \begin_layout Description
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 ExcludesModule
8672 \end_layout
8673
8674 \end_inset
8675
8676  [
8677 \begin_inset Flex Code
8678 status collapsed
8679
8680 \begin_layout Plain Layout
8681 <module>
8682 \end_layout
8683
8684 \end_inset
8685
8686 ] This tag indicates that the module (which is specified by filename without
8687  the 
8688 \begin_inset Flex Code
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 .module
8693 \end_layout
8694
8695 \end_inset
8696
8697  extension) cannot be used with this document class.
8698  This might be used in a journal-specific layout file to prevent, say, the
8699  use of the 
8700 \begin_inset Flex Code
8701 status collapsed
8702
8703 \begin_layout Plain Layout
8704 theorems-sec
8705 \end_layout
8706
8707 \end_inset
8708
8709  module that numbers theorems by section.
8710  This tag may 
8711 \emph on
8712 not
8713 \emph default
8714  be used in a module.
8715  Modules have their own way of excluding other modules (see 
8716 \begin_inset CommandInset ref
8717 LatexCommand ref
8718 reference "sub:Layout-modules"
8719
8720 \end_inset
8721
8722 ).
8723 \end_layout
8724
8725 \begin_layout Description
8726 \begin_inset Flex Code
8727 status collapsed
8728
8729 \begin_layout Plain Layout
8730 Float
8731 \end_layout
8732
8733 \end_inset
8734
8735  Defines a new float.
8736  See 
8737 \begin_inset CommandInset ref
8738 LatexCommand ref
8739 reference "sub:Floats"
8740
8741 \end_inset
8742
8743  for details.
8744  Must end with 
8745 \begin_inset Quotes eld
8746 \end_inset
8747
8748
8749 \begin_inset Flex Code
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 End
8754 \end_layout
8755
8756 \end_inset
8757
8758
8759 \begin_inset Quotes erd
8760 \end_inset
8761
8762 .
8763 \end_layout
8764
8765 \begin_layout Description
8766 \begin_inset Flex Code
8767 status collapsed
8768
8769 \begin_layout Plain Layout
8770 HTMLPreamble
8771 \end_layout
8772
8773 \end_inset
8774
8775  Sets the information that will be output in the 
8776 \begin_inset Flex Code
8777 status collapsed
8778
8779 \begin_layout Plain Layout
8780 <head>
8781 \end_layout
8782
8783 \end_inset
8784
8785  block when this document class is output to XHTML.
8786  Note that this will completely override any prior 
8787 \begin_inset Flex Code
8788 status collapsed
8789
8790 \begin_layout Plain Layout
8791 HTMLPreamble
8792 \end_layout
8793
8794 \end_inset
8795
8796  or 
8797 \begin_inset Flex Code
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 AddToHTMLPreamble
8802 \end_layout
8803
8804 \end_inset
8805
8806  declarations.
8807  (Use
8808 \begin_inset Newline newline
8809 \end_inset
8810
8811
8812 \begin_inset Flex Code
8813 status collapsed
8814
8815 \begin_layout Plain Layout
8816 AddToHTMLPreamble
8817 \end_layout
8818
8819 \end_inset
8820
8821  if you just want to add material to the preamble.) Must end with 
8822 \begin_inset Quotes eld
8823 \end_inset
8824
8825
8826 \begin_inset Flex Code
8827 status collapsed
8828
8829 \begin_layout Plain Layout
8830 EndPreamble
8831 \end_layout
8832
8833 \end_inset
8834
8835
8836 \begin_inset Quotes erd
8837 \end_inset
8838
8839 .
8840 \end_layout
8841
8842 \begin_layout Description
8843 \begin_inset Flex Code
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847 HTMLTOCSection
8848 \end_layout
8849
8850 \end_inset
8851
8852  [
8853 \begin_inset Flex Code
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 <style>
8858 \end_layout
8859
8860 \end_inset
8861
8862 ] The style to use for the table of contents, bibliography, and so forth,
8863  when the document is output to HTML.
8864  For articles, this should normally be 
8865 \begin_inset Flex Code
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 Section
8870 \end_layout
8871
8872 \end_inset
8873
8874 ; for books 
8875 \begin_inset Flex Code
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 Chapter
8880 \end_layout
8881
8882 \end_inset
8883
8884 .
8885  If it is not given, then LyX will attempt to figure out which layout to
8886  use.
8887 \end_layout
8888
8889 \begin_layout Description
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 IfCounter
8895 \end_layout
8896
8897 \end_inset
8898
8899  [
8900 \begin_inset Flex Code
8901 status collapsed
8902
8903 \begin_layout Plain Layout
8904 <counter>
8905 \end_layout
8906
8907 \end_inset
8908
8909 ] Modifies the properties of the given counter.
8910  If the counter does not exist, the statement is ignored.
8911  Must end with 
8912 \begin_inset Quotes eld
8913 \end_inset
8914
8915
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 End
8921 \end_layout
8922
8923 \end_inset
8924
8925
8926 \begin_inset Quotes erd
8927 \end_inset
8928
8929 .
8930 \begin_inset Newline newline
8931 \end_inset
8932
8933 See 
8934 \begin_inset CommandInset ref
8935 LatexCommand ref
8936 reference "sub:Counters"
8937
8938 \end_inset
8939
8940  for details on counters.
8941 \end_layout
8942
8943 \begin_layout Description
8944 \begin_inset Flex Code
8945 status collapsed
8946
8947 \begin_layout Plain Layout
8948 IfStyle
8949 \end_layout
8950
8951 \end_inset
8952
8953  [
8954 \begin_inset Flex Code
8955 status collapsed
8956
8957 \begin_layout Plain Layout
8958 <style>
8959 \end_layout
8960
8961 \end_inset
8962
8963 ] Modifies the properties of the given paragraph style.
8964  If the style does not exist, the statement is ignored.
8965  Must end with 
8966 \begin_inset Quotes eld
8967 \end_inset
8968
8969
8970 \begin_inset Flex Code
8971 status collapsed
8972
8973 \begin_layout Plain Layout
8974 End
8975 \end_layout
8976
8977 \end_inset
8978
8979
8980 \begin_inset Quotes erd
8981 \end_inset
8982
8983 .
8984 \end_layout
8985
8986 \begin_layout Description
8987 \begin_inset Flex Code
8988 status collapsed
8989
8990 \begin_layout Plain Layout
8991 Input
8992 \end_layout
8993
8994 \end_inset
8995
8996  [
8997 \begin_inset Flex Code
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 <filename>
9002 \end_layout
9003
9004 \end_inset
9005
9006 ] This allows you to include another layout definition file within yours
9007  to avoid duplicating commands.
9008  Common examples are the standard layout files, for example, 
9009 \begin_inset Flex Code
9010 status collapsed
9011
9012 \begin_layout Plain Layout
9013 stdclass.inc
9014 \end_layout
9015
9016 \end_inset
9017
9018 , which contains most of the basic layouts.
9019 \end_layout
9020
9021 \begin_layout Description
9022 \begin_inset Flex Code
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026 InsetLayout
9027 \end_layout
9028
9029 \end_inset
9030
9031  [
9032 \begin_inset Flex Code
9033 status collapsed
9034
9035 \begin_layout Plain Layout
9036 <type>
9037 \end_layout
9038
9039 \end_inset
9040
9041 ] This section (re-)defines the layout of an inset.
9042  It can be applied to an existing inset or to a new, user-defined inset,
9043  e.g., a new character style.
9044  Must end with 
9045 \begin_inset Quotes eld
9046 \end_inset
9047
9048
9049 \begin_inset Flex Code
9050 status collapsed
9051
9052 \begin_layout Plain Layout
9053 End
9054 \end_layout
9055
9056 \end_inset
9057
9058
9059 \begin_inset Quotes erd
9060 \end_inset
9061
9062 .
9063 \begin_inset Newline newline
9064 \end_inset
9065
9066 See 
9067 \begin_inset CommandInset ref
9068 LatexCommand ref
9069 reference "sub:Flex-insets-and"
9070
9071 \end_inset
9072
9073  for more information.
9074  
9075 \end_layout
9076
9077 \begin_layout Description
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 LeftMargin
9083 \end_layout
9084
9085 \end_inset
9086
9087  [
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 string
9093 \end_layout
9094
9095 \end_inset
9096
9097 ] A string that indicates the width of the left margin on the screen, for
9098  example, 
9099 \begin_inset Quotes eld
9100 \end_inset
9101
9102
9103 \begin_inset Flex Code
9104 status collapsed
9105
9106 \begin_layout Plain Layout
9107 MMMMM
9108 \end_layout
9109
9110 \end_inset
9111
9112
9113 \begin_inset Quotes erd
9114 \end_inset
9115
9116 .
9117  (Note that this is not a `length', like 
9118 \begin_inset Quotes eld
9119 \end_inset
9120
9121 2ex
9122 \begin_inset Quotes erd
9123 \end_inset
9124
9125 .)
9126 \end_layout
9127
9128 \begin_layout Description
9129 \begin_inset Flex Code
9130 status collapsed
9131
9132 \begin_layout Plain Layout
9133 NoCounter
9134 \end_layout
9135
9136 \end_inset
9137
9138  [
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 <counter>
9144 \end_layout
9145
9146 \end_inset
9147
9148 ] Deletes an existing counter, usually one defined in an included file.
9149 \end_layout
9150
9151 \begin_layout Description
9152 \begin_inset Flex Code
9153 status collapsed
9154
9155 \begin_layout Plain Layout
9156 NoFloat
9157 \end_layout
9158
9159 \end_inset
9160
9161  [
9162 \begin_inset Flex Code
9163 status collapsed
9164
9165 \begin_layout Plain Layout
9166 <float>
9167 \end_layout
9168
9169 \end_inset
9170
9171 ] Deletes an existing float.
9172  This is particularly useful when you want to suppress a float that has
9173  been defined in an input file.
9174 \end_layout
9175
9176 \begin_layout Description
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 NoStyle
9182 \end_layout
9183
9184 \end_inset
9185
9186  [
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 <style>
9192 \end_layout
9193
9194 \end_inset
9195
9196 ] Deletes an existing style.
9197 \end_layout
9198
9199 \begin_layout Description
9200 \begin_inset Flex Code
9201 status collapsed
9202
9203 \begin_layout Plain Layout
9204 OutputFormat
9205 \end_layout
9206
9207 \end_inset
9208
9209  [
9210 \begin_inset Flex Code
9211 status collapsed
9212
9213 \begin_layout Plain Layout
9214 <format>
9215 \end_layout
9216
9217 \end_inset
9218
9219 ] The file format (as defined in the LyX preferences) produced by this document
9220  class.
9221  It is mainly useful when 
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 OutputType
9227 \end_layout
9228
9229 \end_inset
9230
9231  is 
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 literate
9237 \end_layout
9238
9239 \end_inset
9240
9241  and one wants to define a new type of literate document.
9242  The format is reset to 
9243 \begin_inset Quotes eld
9244 \end_inset
9245
9246
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 docbook
9252 \end_layout
9253
9254 \end_inset
9255
9256
9257 \begin_inset Quotes erd
9258 \end_inset
9259
9260  or 
9261 \begin_inset Quotes eld
9262 \end_inset
9263
9264
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 latex
9270 \end_layout
9271
9272 \end_inset
9273
9274
9275 \begin_inset Quotes erd
9276 \end_inset
9277
9278  when the corresponding 
9279 \begin_inset Flex Code
9280 status collapsed
9281
9282 \begin_layout Plain Layout
9283 OutputType
9284 \end_layout
9285
9286 \end_inset
9287
9288  parameter is encountered.
9289 \end_layout
9290
9291 \begin_layout Description
9292 \begin_inset Flex Code
9293 status collapsed
9294
9295 \begin_layout Plain Layout
9296 OutputType
9297 \end_layout
9298
9299 \end_inset
9300
9301  [
9302 \begin_inset Flex Code
9303 status collapsed
9304
9305 \begin_layout Plain Layout
9306
9307 \emph on
9308 lat
9309 \emph default
9310 ex
9311 \end_layout
9312
9313 \end_inset
9314
9315
9316 \begin_inset Flex Code
9317 status collapsed
9318
9319 \begin_layout Plain Layout
9320 docbook
9321 \end_layout
9322
9323 \end_inset
9324
9325
9326 \begin_inset Flex Code
9327 status collapsed
9328
9329 \begin_layout Plain Layout
9330 literate
9331 \end_layout
9332
9333 \end_inset
9334
9335 ] Specifies what sort of output documents using this class will produce.
9336 \end_layout
9337
9338 \begin_layout Description
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 PackageOptions
9344 \end_layout
9345
9346 \end_inset
9347
9348  [
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 string
9354 \end_layout
9355
9356 \end_inset
9357
9358  
9359 \begin_inset Flex Code
9360 status collapsed
9361
9362 \begin_layout Plain Layout
9363 string
9364 \end_layout
9365
9366 \end_inset
9367
9368 ] Specifies options, given in the second string, for the package named by
9369  the first string.
9370  For example, 
9371 \begin_inset Quotes eld
9372 \end_inset
9373
9374
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 PackageOptions natbib square
9380 \end_layout
9381
9382 \end_inset
9383
9384
9385 \begin_inset Quotes erd
9386 \end_inset
9387
9388  will cause 
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 natbib
9394 \end_layout
9395
9396 \end_inset
9397
9398  to be loaded with the 
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 square
9404 \end_layout
9405
9406 \end_inset
9407
9408  option.
9409  (For TeXperts, this causes LyX to output: 
9410 \begin_inset Flex Code
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414
9415 \backslash
9416 PassOptionsToPackage{natbib}{square}
9417 \end_layout
9418
9419 \end_inset
9420
9421  prior to loading 
9422 \begin_inset Flex Code
9423 status collapsed
9424
9425 \begin_layout Plain Layout
9426 natbib
9427 \end_layout
9428
9429 \end_inset
9430
9431 .)
9432 \end_layout
9433
9434 \begin_layout Description
9435 \begin_inset Flex Code
9436 status collapsed
9437
9438 \begin_layout Plain Layout
9439 PageStyle
9440 \end_layout
9441
9442 \end_inset
9443
9444  [
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449
9450 \emph on
9451 plain
9452 \end_layout
9453
9454 \end_inset
9455
9456
9457 \begin_inset Flex Code
9458 status collapsed
9459
9460 \begin_layout Plain Layout
9461 empty
9462 \end_layout
9463
9464 \end_inset
9465
9466
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 headings
9472 \end_layout
9473
9474 \end_inset
9475
9476 ] The default pagestyle.
9477  Can be changed in the 
9478 \begin_inset Flex MenuItem
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482 Document\SpecialChar \menuseparator
9483 Settings
9484 \end_layout
9485
9486 \end_inset
9487
9488  dialog.
9489 \end_layout
9490
9491 \begin_layout Description
9492 \begin_inset Flex Code
9493 status collapsed
9494
9495 \begin_layout Plain Layout
9496 Preamble
9497 \end_layout
9498
9499 \end_inset
9500
9501  Sets the preamble for the LaTeX document.
9502  Note that this will completely override any prior 
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 Preamble
9508 \end_layout
9509
9510 \end_inset
9511
9512  or 
9513 \begin_inset Flex Code
9514 status collapsed
9515
9516 \begin_layout Plain Layout
9517 AddToPreamble
9518 \end_layout
9519
9520 \end_inset
9521
9522  declarations.
9523  (Use 
9524 \begin_inset Flex Code
9525 status collapsed
9526
9527 \begin_layout Plain Layout
9528 AddToPreamble
9529 \end_layout
9530
9531 \end_inset
9532
9533  if you just want to add material to the preamble.) Must end with 
9534 \begin_inset Quotes eld
9535 \end_inset
9536
9537
9538 \begin_inset Flex Code
9539 status collapsed
9540
9541 \begin_layout Plain Layout
9542 EndPreamble
9543 \end_layout
9544
9545 \end_inset
9546
9547
9548 \begin_inset Quotes erd
9549 \end_inset
9550
9551 .
9552 \end_layout
9553
9554 \begin_layout Description
9555 \begin_inset Flex Code
9556 status collapsed
9557
9558 \begin_layout Plain Layout
9559 Provides
9560 \end_layout
9561
9562 \end_inset
9563
9564  [
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 string
9570 \end_layout
9571
9572 \end_inset
9573
9574 ] [
9575 \begin_inset Flex Code
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579
9580 \emph on
9581 0
9582 \end_layout
9583
9584 \end_inset
9585
9586 ,
9587 \begin_inset space \thinspace{}
9588 \end_inset
9589
9590
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 1
9596 \end_layout
9597
9598 \end_inset
9599
9600 ] Whether the class already provides the feature 
9601 \begin_inset Flex Code
9602 status collapsed
9603
9604 \begin_layout Plain Layout
9605 string
9606 \end_layout
9607
9608 \end_inset
9609
9610 .
9611  A feature is in general the name of a package (e.
9612 \begin_inset space \thinspace{}
9613 \end_inset
9614
9615 g.
9616 \begin_inset space \space{}
9617 \end_inset
9618
9619
9620 \begin_inset Flex Code
9621 status collapsed
9622
9623 \begin_layout Plain Layout
9624 amsmath
9625 \end_layout
9626
9627 \end_inset
9628
9629  or 
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 makeidx
9635 \end_layout
9636
9637 \end_inset
9638
9639 ) or a macro (e.
9640 \begin_inset space \thinspace{}
9641 \end_inset
9642
9643 g.
9644 \begin_inset space \space{}
9645 \end_inset
9646
9647
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 url
9653 \end_layout
9654
9655 \end_inset
9656
9657  or 
9658 \begin_inset Flex Code
9659 status collapsed
9660
9661 \begin_layout Plain Layout
9662 boldsymbol
9663 \end_layout
9664
9665 \end_inset
9666
9667 ).
9668  See 
9669 \begin_inset CommandInset ref
9670 LatexCommand ref
9671 reference "chap:List-of-functions"
9672
9673 \end_inset
9674
9675  for the list of features.
9676 \end_layout
9677
9678 \begin_layout Description
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 ProvidesModule
9684 \end_layout
9685
9686 \end_inset
9687
9688  [
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 string
9694 \end_layout
9695
9696 \end_inset
9697
9698 ] Indicates that this layout provides the functionality of the module mentioned,
9699  which should be specified by the filename without the 
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 .module
9705 \end_layout
9706
9707 \end_inset
9708
9709  extension.
9710  This will typically be used if the layout includes the module directly,
9711  rather than using the 
9712 \begin_inset Flex Code
9713 status collapsed
9714
9715 \begin_layout Plain Layout
9716 DefaultModule
9717 \end_layout
9718
9719 \end_inset
9720
9721  tag to indicate that it ought to be used.
9722  It could also be used in a module that provided an alternate implementation
9723  of the same functionality.
9724 \end_layout
9725
9726 \begin_layout Description
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731 Requires
9732 \end_layout
9733
9734 \end_inset
9735
9736  [
9737 \begin_inset Flex Code
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 string
9742 \end_layout
9743
9744 \end_inset
9745
9746 ] Whether the class requires the feature 
9747 \begin_inset Flex Code
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 string
9752 \end_layout
9753
9754 \end_inset
9755
9756 .
9757  Multiple features must be separated by commas.
9758  Note that you can only request supported features.
9759  (See 
9760 \begin_inset CommandInset ref
9761 LatexCommand ref
9762 reference "chap:List-of-functions"
9763
9764 \end_inset
9765
9766  for the list of features.)
9767 \end_layout
9768
9769 \begin_layout Description
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 RightMargin
9775 \end_layout
9776
9777 \end_inset
9778
9779  [
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 string
9785 \end_layout
9786
9787 \end_inset
9788
9789 ] A string that indicates the width of the right margin on the screen, for
9790  example, 
9791 \begin_inset Quotes eld
9792 \end_inset
9793
9794
9795 \begin_inset Flex Code
9796 status collapsed
9797
9798 \begin_layout Plain Layout
9799 MMMMM
9800 \end_layout
9801
9802 \end_inset
9803
9804
9805 \begin_inset Quotes erd
9806 \end_inset
9807
9808 .
9809 \end_layout
9810
9811 \begin_layout Description
9812 \begin_inset Flex Code
9813 status collapsed
9814
9815 \begin_layout Plain Layout
9816 SecNumDepth
9817 \end_layout
9818
9819 \end_inset
9820
9821  [
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 int=3
9827 \end_layout
9828
9829 \end_inset
9830
9831 ] Sets which divisions get numbered.
9832  Corresponds to the
9833 \begin_inset Newline newline
9834 \end_inset
9835
9836
9837 \begin_inset Flex Code
9838 status collapsed
9839
9840 \begin_layout Plain Layout
9841 secnumdepth
9842 \end_layout
9843
9844 \end_inset
9845
9846  counter in LaTeX.
9847 \end_layout
9848
9849 \begin_layout Description
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 Sides
9855 \end_layout
9856
9857 \end_inset
9858
9859  [
9860 \begin_inset Flex Code
9861 status collapsed
9862
9863 \begin_layout Plain Layout
9864
9865 \emph on
9866 1
9867 \end_layout
9868
9869 \end_inset
9870
9871 ,
9872 \begin_inset space \thinspace{}
9873 \end_inset
9874
9875
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 2
9881 \end_layout
9882
9883 \end_inset
9884
9885 ] Whether the class-default should be printing on one or both sides of the
9886  paper.
9887  Can be changed in the 
9888 \begin_inset Flex MenuItem
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 Document\SpecialChar \menuseparator
9893 Settings
9894 \end_layout
9895
9896 \end_inset
9897
9898  dialog.
9899 \end_layout
9900
9901 \begin_layout Description
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 Style
9907 \end_layout
9908
9909 \end_inset
9910
9911  [
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 <name>
9917 \end_layout
9918
9919 \end_inset
9920
9921 ] This sequence defines a paragraph style.
9922  If the style does not yet exist, it is created; if it does exist, its parameter
9923 s are modified.
9924  Must end with 
9925 \begin_inset Quotes eld
9926 \end_inset
9927
9928
9929 \begin_inset Flex Code
9930 status collapsed
9931
9932 \begin_layout Plain Layout
9933 End
9934 \end_layout
9935
9936 \end_inset
9937
9938
9939 \begin_inset Quotes erd
9940 \end_inset
9941
9942 .
9943 \begin_inset Newline newline
9944 \end_inset
9945
9946 See 
9947 \begin_inset CommandInset ref
9948 LatexCommand ref
9949 reference "sub:Paragraph-Styles"
9950
9951 \end_inset
9952
9953  for details on paragraph styles.
9954 \end_layout
9955
9956 \begin_layout Description
9957 \begin_inset Flex Code
9958 status collapsed
9959
9960 \begin_layout Plain Layout
9961 TitleLatexName
9962 \end_layout
9963
9964 \end_inset
9965
9966  [
9967 \begin_inset Flex Code
9968 status collapsed
9969
9970 \begin_layout Plain Layout
9971 string="maketitle"
9972 \end_layout
9973
9974 \end_inset
9975
9976 ] The name of the command or environment to be used with 
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 TitleLatexType
9982 \end_layout
9983
9984 \end_inset
9985
9986 .
9987 \end_layout
9988
9989 \begin_layout Description
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994 TitleLatexType
9995 \end_layout
9996
9997 \end_inset
9998
9999  [
10000 \begin_inset Flex Code
10001 status collapsed
10002
10003 \begin_layout Plain Layout
10004
10005 \emph on
10006 CommandAfter
10007 \end_layout
10008
10009 \end_inset
10010
10011
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 Environment
10017 \end_layout
10018
10019 \end_inset
10020
10021 ] Indicates what kind of markup is used to define the title of a document.
10022  
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 CommandAfter
10028 \end_layout
10029
10030 \end_inset
10031
10032  means that the macro with name 
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 TitleLatexName
10038 \end_layout
10039
10040 \end_inset
10041
10042  will be inserted after the last layout which has 
10043 \begin_inset Quotes eld
10044 \end_inset
10045
10046
10047 \begin_inset Flex Code
10048 status collapsed
10049
10050 \begin_layout Plain Layout
10051 InTitle
10052 \begin_inset space ~
10053 \end_inset
10054
10055 1
10056 \end_layout
10057
10058 \end_inset
10059
10060
10061 \begin_inset Quotes erd
10062 \end_inset
10063
10064 .
10065  
10066 \begin_inset Flex Code
10067 status collapsed
10068
10069 \begin_layout Plain Layout
10070 Environment
10071 \end_layout
10072
10073 \end_inset
10074
10075  corresponds to the case where all layouts which have 
10076 \begin_inset Quotes eld
10077 \end_inset
10078
10079
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 InTitle
10085 \begin_inset space ~
10086 \end_inset
10087
10088 1
10089 \end_layout
10090
10091 \end_inset
10092
10093
10094 \begin_inset Quotes erd
10095 \end_inset
10096
10097  should be enclosed into the 
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 TitleLatexName
10103 \end_layout
10104
10105 \end_inset
10106
10107  environment.
10108 \end_layout
10109
10110 \begin_layout Description
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 TocDepth
10116 \end_layout
10117
10118 \end_inset
10119
10120  [
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 int=3
10126 \end_layout
10127
10128 \end_inset
10129
10130 ] Sets which divisions are included in the table of contents.
10131  Corresponds to the 
10132 \begin_inset Flex Code
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136 tocdepth
10137 \end_layout
10138
10139 \end_inset
10140
10141  counter in LaTeX.
10142 \end_layout
10143
10144 \begin_layout Subsection
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 ClassOptions
10150 \end_layout
10151
10152 \end_inset
10153
10154  section
10155 \begin_inset CommandInset label
10156 LatexCommand label
10157 name "sub:ClassOptions"
10158
10159 \end_inset
10160
10161
10162 \end_layout
10163
10164 \begin_layout Standard
10165 The 
10166 \begin_inset Flex Code
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170 ClassOptions
10171 \end_layout
10172
10173 \end_inset
10174
10175  section can contain the following entries:
10176 \end_layout
10177
10178 \begin_layout Description
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 FontSize
10184 \end_layout
10185
10186 \end_inset
10187
10188  [
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 string="10|11|12"
10194 \end_layout
10195
10196 \end_inset
10197
10198 ] The list of available font sizes for the document's main font, separated
10199  by 
10200 \begin_inset Quotes eld
10201 \end_inset
10202
10203
10204 \begin_inset Flex Code
10205 status collapsed
10206
10207 \begin_layout Plain Layout
10208 |
10209 \end_layout
10210
10211 \end_inset
10212
10213
10214 \begin_inset Quotes erd
10215 \end_inset
10216
10217 .
10218 \end_layout
10219
10220 \begin_layout Description
10221 \begin_inset Flex Code
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 Header
10226 \end_layout
10227
10228 \end_inset
10229
10230  Used to set the DTD line with XML-based output classes.
10231  E.
10232 \begin_inset space \thinspace{}
10233 \end_inset
10234
10235 g.: PUBLIC 
10236 \begin_inset Quotes eld
10237 \end_inset
10238
10239 -//OASIS//DTD DocBook V4.2//EN
10240 \begin_inset Quotes erd
10241 \end_inset
10242
10243 .
10244 \end_layout
10245
10246 \begin_layout Description
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 PageStyle
10252 \end_layout
10253
10254 \end_inset
10255
10256  [
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 string="empty|plain|headings|fancy"
10262 \end_layout
10263
10264 \end_inset
10265
10266 ] The list of available page sty\SpecialChar \-
10267 les, separated by 
10268 \begin_inset Quotes eld
10269 \end_inset
10270
10271
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 |
10277 \end_layout
10278
10279 \end_inset
10280
10281
10282 \begin_inset Quotes erd
10283 \end_inset
10284
10285 .
10286 \end_layout
10287
10288 \begin_layout Description
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 Other
10294 \end_layout
10295
10296 \end_inset
10297
10298  [
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 string=""
10304 \end_layout
10305
10306 \end_inset
10307
10308 ] Some document class options, separated by a comma, that will be added
10309  to the optional part of the 
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314
10315 \backslash
10316 documentclass
10317 \end_layout
10318
10319 \end_inset
10320
10321  command.
10322 \end_layout
10323
10324 \begin_layout Standard
10325 The 
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 ClassOptions
10331 \end_layout
10332
10333 \end_inset
10334
10335  section must end with 
10336 \begin_inset Quotes eld
10337 \end_inset
10338
10339
10340 \begin_inset Flex Code
10341 status collapsed
10342
10343 \begin_layout Plain Layout
10344 End
10345 \end_layout
10346
10347 \end_inset
10348
10349
10350 \begin_inset Quotes erd
10351 \end_inset
10352
10353 .
10354 \end_layout
10355
10356 \begin_layout Subsection
10357 Paragraph styles
10358 \begin_inset CommandInset label
10359 LatexCommand label
10360 name "sub:Paragraph-Styles"
10361
10362 \end_inset
10363
10364
10365 \end_layout
10366
10367 \begin_layout Standard
10368 A paragraph style description looks like this:
10369 \begin_inset Foot
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 Note that this will either define a new style or modify an existing one.
10374 \end_layout
10375
10376 \end_inset
10377
10378
10379 \end_layout
10380
10381 \begin_layout LyX-Code
10382 Style 
10383 \family roman
10384 \emph on
10385 name
10386 \end_layout
10387
10388 \begin_layout LyX-Code
10389  ...
10390 \end_layout
10391
10392 \begin_layout LyX-Code
10393 End
10394 \end_layout
10395
10396 \begin_layout Standard
10397 where the following commands are allowed:
10398 \end_layout
10399
10400 \begin_layout Description
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 Align
10406 \end_layout
10407
10408 \end_inset
10409
10410  [
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415
10416 \emph on
10417 block
10418 \emph default
10419 , left, right, center
10420 \end_layout
10421
10422 \end_inset
10423
10424 ] Paragraph alignment.
10425 \end_layout
10426
10427 \begin_layout Description
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432 AlignPossible
10433 \end_layout
10434
10435 \end_inset
10436
10437  [
10438 \begin_inset Flex Code
10439 status collapsed
10440
10441 \begin_layout Plain Layout
10442
10443 \emph on
10444 block
10445 \emph default
10446 , left, right, center
10447 \end_layout
10448
10449 \end_inset
10450
10451 ] A comma separated list of permitted alignments.
10452  (Some LaTeX styles prohibit certain alignments, since those wouldn't make
10453  sense.
10454  For example a right-aligned or centered enumeration isn't possible.)
10455 \end_layout
10456
10457 \begin_layout Description
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 Argument
10463 \end_layout
10464
10465 \end_inset
10466
10467  [
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 int
10473 \end_layout
10474
10475 \end_inset
10476
10477 ] Defines argument number <int> of a command\SpecialChar \slash{}
10478 environment associated with
10479  the current style.
10480  This is useful for things like section headings, and only makes sense with
10481  LaTeX.
10482  Every (optional or required) argument of a command or environment -- except
10483  for the required argument that is associated with the content of the paragraph
10484  itself -- has a separate definition, where the number specifies the order
10485  of the arguments.
10486  The definition must end with 
10487 \begin_inset Flex Code
10488 status collapsed
10489
10490 \begin_layout Plain Layout
10491 EndArgument
10492 \end_layout
10493
10494 \end_inset
10495
10496 .
10497  So a command with two optional arguments has:
10498 \end_layout
10499
10500 \begin_deeper
10501 \begin_layout Quote
10502
10503 \family typewriter
10504 Argument 1
10505 \end_layout
10506
10507 \begin_layout Quote
10508
10509 \family typewriter
10510 ...
10511 \end_layout
10512
10513 \begin_layout Quote
10514
10515 \family typewriter
10516 EndArgument
10517 \end_layout
10518
10519 \begin_layout Quote
10520
10521 \family typewriter
10522 Argument 2
10523 \end_layout
10524
10525 \begin_layout Quote
10526
10527 \family typewriter
10528 ...
10529 \end_layout
10530
10531 \begin_layout Quote
10532
10533 \family typewriter
10534 EndArgument
10535 \end_layout
10536
10537 \begin_layout Standard
10538 Inside the 
10539 \begin_inset Flex Code
10540 status collapsed
10541
10542 \begin_layout Plain Layout
10543 Argument
10544 \end_layout
10545
10546 \end_inset
10547
10548  definition, the following specifications are possible:
10549 \end_layout
10550
10551 \begin_layout Itemize
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 LabelString
10557 \end_layout
10558
10559 \end_inset
10560
10561  
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 [string]
10567 \end_layout
10568
10569 \end_inset
10570
10571  The string that will appear both in the menu (to insert this argument)
10572  and on the argument inset button (unless you also specify a separate 
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577 MenuString
10578 \end_layout
10579
10580 \end_inset
10581
10582 ).
10583  For the menu, you can define an accelerator by appending the respective
10584  character to the string, divided by 
10585 \begin_inset Quotes eld
10586 \end_inset
10587
10588 |
10589 \begin_inset Quotes erd
10590 \end_inset
10591
10592  (e.
10593 \begin_inset space \thinspace{}
10594 \end_inset
10595
10596 g.
10597 \begin_inset space \space{}
10598 \end_inset
10599
10600
10601 \begin_inset Quotes eld
10602 \end_inset
10603
10604
10605 \begin_inset Flex Code
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609 Short Title|S
10610 \end_layout
10611
10612 \end_inset
10613
10614
10615 \begin_inset Quotes erd
10616 \end_inset
10617
10618 ).
10619 \end_layout
10620
10621 \begin_layout Itemize
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 MenuString
10627 \end_layout
10628
10629 \end_inset
10630
10631  
10632 \begin_inset Flex Code
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 [string]
10637 \end_layout
10638
10639 \end_inset
10640
10641  A separate string for the menu.
10642  You can define an accelerator by appending the respective character to
10643  the string, divided by 
10644 \begin_inset Quotes eld
10645 \end_inset
10646
10647 |
10648 \begin_inset Quotes erd
10649 \end_inset
10650
10651  (e.
10652 \begin_inset space \thinspace{}
10653 \end_inset
10654
10655 g.
10656 \begin_inset space \space{}
10657 \end_inset
10658
10659
10660 \begin_inset Quotes eld
10661 \end_inset
10662
10663
10664 \begin_inset Flex Code
10665 status collapsed
10666
10667 \begin_layout Plain Layout
10668 Short Title|S
10669 \end_layout
10670
10671 \end_inset
10672
10673
10674 \begin_inset Quotes erd
10675 \end_inset
10676
10677 ).
10678  This specification is optional.
10679  If it is not given the 
10680 \begin_inset Flex Code
10681 status collapsed
10682
10683 \begin_layout Plain Layout
10684 LabelString
10685 \end_layout
10686
10687 \end_inset
10688
10689  will be used instead for the menu.
10690 \end_layout
10691
10692 \begin_layout Itemize
10693 \begin_inset Flex Code
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697 Tooltip
10698 \end_layout
10699
10700 \end_inset
10701
10702  
10703 \begin_inset Flex Code
10704 status collapsed
10705
10706 \begin_layout Plain Layout
10707 [string]
10708 \end_layout
10709
10710 \end_inset
10711
10712  A longer explanatory text that appears in the tooltip when hovering over
10713  the argument inset.
10714 \end_layout
10715
10716 \begin_layout Itemize
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 Mandatory
10722 \end_layout
10723
10724 \end_inset
10725
10726  [
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731
10732 \emph on
10733 0
10734 \end_layout
10735
10736 \end_inset
10737
10738 ,
10739 \begin_inset space \thinspace{}
10740 \end_inset
10741
10742
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 1
10748 \end_layout
10749
10750 \end_inset
10751
10752 ] Declare if this is a mandatory (1) or an optional (0) argument.
10753  Mandatory arguments will be output empty if not given, while optional arguments
10754  will not be output at all.
10755  By default, mandatory arguments are delimited by 
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 {...}
10761 \end_layout
10762
10763 \end_inset
10764
10765 , while optional arguments are delimited by 
10766 \begin_inset Flex Code
10767 status collapsed
10768
10769 \begin_layout Plain Layout
10770 [...]
10771 \end_layout
10772
10773 \end_inset
10774
10775
10776 \end_layout
10777
10778 \begin_layout Itemize
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 Requires
10784 \end_layout
10785
10786 \end_inset
10787
10788  
10789 \begin_inset Flex Code
10790 status collapsed
10791
10792 \begin_layout Plain Layout
10793 [int=0]
10794 \end_layout
10795
10796 \end_inset
10797
10798  defines another argument (by its number) which this argument requires to
10799  be output if it is itself output.
10800  E.
10801 \begin_inset space \thinspace{}
10802 \end_inset
10803
10804 g., in LaTeX commands, optional arguments often require previous optional
10805  arguments to be output (at least empty), as in 
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810
10811 \backslash
10812 command[][argument]{text}
10813 \end_layout
10814
10815 \end_inset
10816
10817 .
10818  This can be achieved by the statement 
10819 \begin_inset Flex Code
10820 status collapsed
10821
10822 \begin_layout Plain Layout
10823 Requires 1
10824 \end_layout
10825
10826 \end_inset
10827
10828  within 
10829 \begin_inset Flex Code
10830 status collapsed
10831
10832 \begin_layout Plain Layout
10833 Argument 2
10834 \end_layout
10835
10836 \end_inset
10837
10838 .
10839 \end_layout
10840
10841 \begin_layout Itemize
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 LeftDelim
10847 \end_layout
10848
10849 \end_inset
10850
10851  
10852 \begin_inset Flex Code
10853 status collapsed
10854
10855 \begin_layout Plain Layout
10856 [string]
10857 \end_layout
10858
10859 \end_inset
10860
10861  defines a custom left delimiter (instead of 
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866 {
10867 \end_layout
10868
10869 \end_inset
10870
10871  or 
10872 \begin_inset Flex Code
10873 status collapsed
10874
10875 \begin_layout Plain Layout
10876 [
10877 \end_layout
10878
10879 \end_inset
10880
10881 ).
10882  A line break in the output can be indicated by 
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 <br/>
10888 \end_layout
10889
10890 \end_inset
10891
10892 .
10893 \end_layout
10894
10895 \begin_layout Itemize
10896 \begin_inset Flex Code
10897 status collapsed
10898
10899 \begin_layout Plain Layout
10900 RightDelim
10901 \end_layout
10902
10903 \end_inset
10904
10905  
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 [string]
10911 \end_layout
10912
10913 \end_inset
10914
10915  defines a custom right delimiter (instead of 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 }
10921 \end_layout
10922
10923 \end_inset
10924
10925  or 
10926 \begin_inset Flex Code
10927 status collapsed
10928
10929 \begin_layout Plain Layout
10930 ]
10931 \end_layout
10932
10933 \end_inset
10934
10935 ).
10936  A line break in the output can be indicated by 
10937 \begin_inset Flex Code
10938 status collapsed
10939
10940 \begin_layout Plain Layout
10941 <br/>
10942 \end_layout
10943
10944 \end_inset
10945
10946 .
10947 \end_layout
10948
10949 \begin_layout Itemize
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 DefaultArg
10955 \end_layout
10956
10957 \end_inset
10958
10959  
10960 \begin_inset Flex Code
10961 status collapsed
10962
10963 \begin_layout Plain Layout
10964 [string]
10965 \end_layout
10966
10967 \end_inset
10968
10969  defines an argument that is inserted if and only if no user-specified arguments
10970  were given, i.
10971 \begin_inset space \thinspace{}
10972 \end_inset
10973
10974 e.
10975 \begin_inset space \space{}
10976 \end_inset
10977
10978 if no argument inset has been inserted (note that also an empty argument
10979  inset omits the DefaultArg).
10980  Multiple arguments need to be separated by comma.
10981 \end_layout
10982
10983 \begin_layout Itemize
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988 PresetArg
10989 \end_layout
10990
10991 \end_inset
10992
10993  
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998 [string]
10999 \end_layout
11000
11001 \end_inset
11002
11003  defines an argument that is inserted in any case (alone or in addition
11004  to user-specified arguments).
11005  Multiple arguments need to be separated by comma.
11006 \end_layout
11007
11008 \begin_layout Itemize
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013 Font
11014 \end_layout
11015
11016 \end_inset
11017
11018  The font used for the argument content, see 
11019 \begin_inset CommandInset ref
11020 LatexCommand ref
11021 reference "sub:Font-description"
11022
11023 \end_inset
11024
11025 .
11026 \end_layout
11027
11028 \begin_layout Itemize
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033 LabelFont
11034 \end_layout
11035
11036 \end_inset
11037
11038  The font used for the label; see 
11039 \begin_inset CommandInset ref
11040 LatexCommand ref
11041 reference "sub:Font-description"
11042
11043 \end_inset
11044
11045 .
11046 \end_layout
11047
11048 \begin_layout Itemize
11049 \begin_inset Flex Code
11050 status collapsed
11051
11052 \begin_layout Plain Layout
11053 Decoration
11054 \end_layout
11055
11056 \end_inset
11057
11058  [
11059 \begin_inset Flex Code
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063
11064 \emph on
11065 Classic
11066 \emph default
11067 , Minimalistic, Conglomerate
11068 \end_layout
11069
11070 \end_inset
11071
11072 ] describes the rendering style used for the inset's frame and buttons.
11073 \end_layout
11074
11075 \begin_layout Itemize
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 AutoInsert
11081 \end_layout
11082
11083 \end_inset
11084
11085  
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 [int=0]
11091 \end_layout
11092
11093 \end_inset
11094
11095  If this is set to 
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 1
11101 \end_layout
11102
11103 \end_inset
11104
11105 , this argument is automatically inserted when the respective style is selected.
11106  Currently, only one argument per style\SpecialChar \slash{}
11107 layout can be automatically inserted.
11108 \end_layout
11109
11110 \begin_layout Standard
11111 By default, the text entered in the LyX workarea in the respective layout
11112  is the last (mandatory) argument of a command if the 
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 LatexType
11118 \end_layout
11119
11120 \end_inset
11121
11122  is 
11123 \begin_inset Flex Code
11124 status collapsed
11125
11126 \begin_layout Plain Layout
11127 Command
11128 \end_layout
11129
11130 \end_inset
11131
11132 .
11133  However, arguments with the prefix 
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 post:
11139 \end_layout
11140
11141 \end_inset
11142
11143  are output after this workarea argument.
11144  Note that post-argument numbering restarts at 1, so the first argument
11145  following the workarea argument is 
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 post:1
11151 \end_layout
11152
11153 \end_inset
11154
11155 .
11156  Post-arguments are ignored in any other 
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 LatexType
11162 \end_layout
11163
11164 \end_inset
11165
11166  than 
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 Command
11172 \end_layout
11173
11174 \end_inset
11175
11176 .
11177 \end_layout
11178
11179 \begin_layout Standard
11180 Arguments for list 
11181 \begin_inset Flex Code
11182 status collapsed
11183
11184 \begin_layout Plain Layout
11185
11186 \backslash
11187 item
11188 \end_layout
11189
11190 \end_inset
11191
11192 s (as in 
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197
11198 \backslash
11199 item[foo]
11200 \end_layout
11201
11202 \end_inset
11203
11204 ) have the prefix 
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209 item:
11210 \end_layout
11211
11212 \end_inset
11213
11214  followed by the number (e.
11215 \begin_inset space \thinspace{}
11216 \end_inset
11217
11218 g.
11219 \begin_inset space \space{}
11220 \end_inset
11221
11222
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 Argument item:1
11228 \end_layout
11229
11230 \end_inset
11231
11232 )
11233 \end_layout
11234
11235 \end_deeper
11236 \begin_layout Description
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 BabelPreamble
11242 \end_layout
11243
11244 \end_inset
11245
11246  Note that this will completely override any prior 
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 BabelPreamble
11252 \end_layout
11253
11254 \end_inset
11255
11256  declaration for this style.
11257  Must end with 
11258 \begin_inset Quotes eld
11259 \end_inset
11260
11261
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 EndBabelPreamble
11267 \end_layout
11268
11269 \end_inset
11270
11271
11272 \begin_inset Quotes erd
11273 \end_inset
11274
11275 .
11276  See 
11277 \begin_inset CommandInset ref
11278 LatexCommand ref
11279 reference "sub:I18n"
11280
11281 \end_inset
11282
11283  for details on its use.
11284 \end_layout
11285
11286 \begin_layout Description
11287 \begin_inset Flex Code
11288 status collapsed
11289
11290 \begin_layout Plain Layout
11291 BottomSep
11292 \end_layout
11293
11294 \end_inset
11295
11296  [
11297 \begin_inset Flex Code
11298 status collapsed
11299
11300 \begin_layout Plain Layout
11301 float=0
11302 \end_layout
11303
11304 \end_inset
11305
11306 ]
11307 \begin_inset Foot
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 Note that a `float' here is a real number, such as: 1.5.
11312 \end_layout
11313
11314 \end_inset
11315
11316  The vertical space with which the last of a chain of paragraphs with this
11317  style is separated from the following paragraph.
11318  If the next paragraph has another style, the separations are not simply
11319  added, but the maximum is taken.
11320 \end_layout
11321
11322 \begin_layout Description
11323 \begin_inset Flex Code
11324 status collapsed
11325
11326 \begin_layout Plain Layout
11327 Category
11328 \end_layout
11329
11330 \end_inset
11331
11332  [
11333 \begin_inset Flex Code
11334 status collapsed
11335
11336 \begin_layout Plain Layout
11337 string
11338 \end_layout
11339
11340 \end_inset
11341
11342 ] The category for this style.
11343  This is used to group related styles in the style combobox on the toolbar.
11344  Any string can be used, but you may want to use existing categories with
11345  your own styles.
11346  
11347 \end_layout
11348
11349 \begin_layout Description
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 CommandDepth
11355 \end_layout
11356
11357 \end_inset
11358
11359  Depth of XML command.
11360  Used only with XML-type formats.
11361 \end_layout
11362
11363 \begin_layout Description
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 CopyStyle
11369 \end_layout
11370
11371 \end_inset
11372
11373  [
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 string
11379 \end_layout
11380
11381 \end_inset
11382
11383 ] Copies all the features of an existing style into the current one.
11384  
11385 \end_layout
11386
11387 \begin_layout Description
11388 \begin_inset Flex Code
11389 status collapsed
11390
11391 \begin_layout Plain Layout
11392 DependsOn
11393 \end_layout
11394
11395 \end_inset
11396
11397  [
11398 \begin_inset Flex Code
11399 status collapsed
11400
11401 \begin_layout Plain Layout
11402 <name>
11403 \end_layout
11404
11405 \end_inset
11406
11407 ] The name of a style whose preamble should be output 
11408 \emph on
11409 before
11410 \emph default
11411  this one.
11412  This allows to ensure some ordering of the preamble snippets when macros
11413  definitions depend on one another.
11414 \begin_inset Foot
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 Note that, besides that functionality, there is no way to ensure any ordering
11419  of preambles.
11420  The ordering that you see in a given version of LyX may change without
11421  warning in later versions.
11422 \end_layout
11423
11424 \end_inset
11425
11426
11427 \end_layout
11428
11429 \begin_layout Description
11430 \begin_inset Flex Code
11431 status collapsed
11432
11433 \begin_layout Plain Layout
11434 EndLabeltype
11435 \end_layout
11436
11437 \end_inset
11438
11439  [
11440 \begin_inset Flex Code
11441 status collapsed
11442
11443 \begin_layout Plain Layout
11444
11445 \emph on
11446 No_Label
11447 \emph default
11448 , Box, Filled_Box, Static
11449 \end_layout
11450
11451 \end_inset
11452
11453 ] The type of label that stands at the end of the paragraph (or sequence
11454  of paragraphs if 
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 LatexType
11460 \end_layout
11461
11462 \end_inset
11463
11464  is
11465 \begin_inset Newline newline
11466 \end_inset
11467
11468
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 Environment
11474 \end_layout
11475
11476 \end_inset
11477
11478
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483 Item_Environment
11484 \end_layout
11485
11486 \end_inset
11487
11488  or 
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 List_Environment
11494 \end_layout
11495
11496 \end_inset
11497
11498 ).
11499  
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 No_Label
11505 \end_layout
11506
11507 \end_inset
11508
11509  means 
11510 \begin_inset Quotes eld
11511 \end_inset
11512
11513 nothing
11514 \begin_inset Quotes erd
11515 \end_inset
11516
11517
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 Box
11523 \end_layout
11524
11525 \end_inset
11526
11527  (resp.
11528 \begin_inset space \space{}
11529 \end_inset
11530
11531
11532 \begin_inset Flex Code
11533 status collapsed
11534
11535 \begin_layout Plain Layout
11536 Filled_Box
11537 \end_layout
11538
11539 \end_inset
11540
11541 ) is a white (resp.
11542 \begin_inset space ~
11543 \end_inset
11544
11545 black) square suitable for end of proof markers, 
11546 \begin_inset Flex Code
11547 status collapsed
11548
11549 \begin_layout Plain Layout
11550 Static
11551 \end_layout
11552
11553 \end_inset
11554
11555  is an explicit text string.
11556 \end_layout
11557
11558 \begin_layout Description
11559 \begin_inset Flex Code
11560 status collapsed
11561
11562 \begin_layout Plain Layout
11563 EndLabelString
11564 \end_layout
11565
11566 \end_inset
11567
11568  [
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573 string=""
11574 \end_layout
11575
11576 \end_inset
11577
11578 ] The string used for a label with a 
11579 \begin_inset Flex Code
11580 status collapsed
11581
11582 \begin_layout Plain Layout
11583 Static
11584 \end_layout
11585
11586 \end_inset
11587
11588
11589 \begin_inset Newline newline
11590 \end_inset
11591
11592
11593 \begin_inset Flex Code
11594 status collapsed
11595
11596 \begin_layout Plain Layout
11597 EndLabelType
11598 \end_layout
11599
11600 \end_inset
11601
11602 .
11603  
11604 \end_layout
11605
11606 \begin_layout Description
11607 \begin_inset Flex Code
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 Font
11612 \end_layout
11613
11614 \end_inset
11615
11616  The font used for both the text body 
11617 \emph on
11618 and
11619 \emph default
11620  the label.
11621  See 
11622 \begin_inset CommandInset ref
11623 LatexCommand ref
11624 reference "sub:Font-description"
11625
11626 \end_inset
11627
11628 .
11629  Note that defining this font automatically defines the 
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634 LabelFont
11635 \end_layout
11636
11637 \end_inset
11638
11639  to the same value.
11640  So you should define this one first if you also want to define 
11641 \begin_inset Flex Code
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645 LabelFont
11646 \end_layout
11647
11648 \end_inset
11649
11650 .
11651 \end_layout
11652
11653 \begin_layout Description
11654 \begin_inset Flex Code
11655 status collapsed
11656
11657 \begin_layout Plain Layout
11658 ForceLocal
11659 \end_layout
11660
11661 \end_inset
11662
11663  [
11664 \begin_inset Flex Code
11665 status collapsed
11666
11667 \begin_layout Plain Layout
11668 int=0
11669 \end_layout
11670
11671 \end_inset
11672
11673 ] Used for backporting new styles to stable LyX versions.
11674  The first stable version that supports this tag is LyX 2.1.0.
11675  The argment is a number which may either be 0, -1 or any value greater
11676  than zero.
11677  If the 
11678 \begin_inset Flex Code
11679 status collapsed
11680
11681 \begin_layout Plain Layout
11682 ForceLocal
11683 \end_layout
11684
11685 \end_inset
11686
11687  flag of a style is greater than zero, it will always be written to the
11688  document header.
11689  If a .lyx file is read, the style definitions from the document header are
11690  added to the document class.
11691  Therefore even older LyX versions can handle the style.
11692  The argument of 
11693 \begin_inset Flex Code
11694 status collapsed
11695
11696 \begin_layout Plain Layout
11697 ForceLocal
11698 \end_layout
11699
11700 \end_inset
11701
11702  is a version number: If the style is read, and the version number is less
11703  than the version number of the already existing style in the document class,
11704  the new style is ignored.
11705  If the version number is greater, the new style replaces the existing style.
11706  A value of -1 means an infinite version number, i.
11707 \begin_inset space \thinspace{}
11708 \end_inset
11709
11710 e.
11711 \begin_inset space \space{}
11712 \end_inset
11713
11714 the style is always used.
11715 \end_layout
11716
11717 \begin_layout Description
11718 \begin_inset Flex Code
11719 status collapsed
11720
11721 \begin_layout Plain Layout
11722 FreeSpacing
11723 \end_layout
11724
11725 \end_inset
11726
11727  [
11728 \begin_inset Flex Code
11729 status collapsed
11730
11731 \begin_layout Plain Layout
11732
11733 \emph on
11734 0
11735 \end_layout
11736
11737 \end_inset
11738
11739 ,
11740 \begin_inset space \thinspace{}
11741 \end_inset
11742
11743
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748 1
11749 \end_layout
11750
11751 \end_inset
11752
11753 ] Usually LyX does not allow you to insert more than one space between words,
11754  since a space is considered as the separation between two words, not a
11755  character or symbol of its own.
11756  This is a very fine thing but sometimes annoying, for example, when typing
11757  program code or plain LaTeX code.
11758  For this reason, 
11759 \begin_inset Flex Code
11760 status collapsed
11761
11762 \begin_layout Plain Layout
11763 FreeSpacing
11764 \end_layout
11765
11766 \end_inset
11767
11768  can be enabled.
11769  Note that LyX will create protected blanks for the additional blanks when
11770  in another mode than LaTeX-mode.
11771 \end_layout
11772
11773 \begin_layout Description
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 HTML*
11779 \end_layout
11780
11781 \end_inset
11782
11783  These tags are used with XHTML output.
11784  See 
11785 \begin_inset CommandInset ref
11786 LatexCommand ref
11787 reference "sub:Paragraph-Style-XHTML"
11788
11789 \end_inset
11790
11791 .
11792 \end_layout
11793
11794 \begin_layout Description
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 InnerTag
11800 \end_layout
11801
11802 \end_inset
11803
11804  [FIXME] (Used only with XML-type formats.)
11805 \end_layout
11806
11807 \begin_layout Description
11808 \begin_inset Flex Code
11809 status collapsed
11810
11811 \begin_layout Plain Layout
11812 InPreamble
11813 \end_layout
11814
11815 \end_inset
11816
11817  [
11818 \begin_inset Flex Code
11819 status collapsed
11820
11821 \begin_layout Plain Layout
11822
11823 \emph on
11824 0
11825 \end_layout
11826
11827 \end_inset
11828
11829 ,
11830 \begin_inset space \thinspace{}
11831 \end_inset
11832
11833
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838 1
11839 \end_layout
11840
11841 \end_inset
11842
11843 ] If 
11844 \begin_inset Flex Code
11845 status collapsed
11846
11847 \begin_layout Plain Layout
11848 1
11849 \end_layout
11850
11851 \end_inset
11852
11853 , marks the style as to be included in the document preamble and not in
11854  the document body.
11855  This is useful for document classes that want such information as the title
11856  and author to appear in the preamble.
11857  Note that this works only for styles for which the 
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 LatexType
11863 \end_layout
11864
11865 \end_inset
11866
11867  is 
11868 \begin_inset Flex Code
11869 status collapsed
11870
11871 \begin_layout Plain Layout
11872 Command
11873 \end_layout
11874
11875 \end_inset
11876
11877  or 
11878 \begin_inset Flex Code
11879 status collapsed
11880
11881 \begin_layout Plain Layout
11882 Paragraph
11883 \end_layout
11884
11885 \end_inset
11886
11887 .
11888 \end_layout
11889
11890 \begin_layout Description
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 InTitle
11896 \end_layout
11897
11898 \end_inset
11899
11900  [
11901 \begin_inset Flex Code
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905
11906 \emph on
11907 0
11908 \end_layout
11909
11910 \end_inset
11911
11912 ,
11913 \begin_inset space \thinspace{}
11914 \end_inset
11915
11916
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 1
11922 \end_layout
11923
11924 \end_inset
11925
11926 ] If 
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931 1
11932 \end_layout
11933
11934 \end_inset
11935
11936 , marks the style as being part of a title block (see also the 
11937 \begin_inset Flex Code
11938 status collapsed
11939
11940 \begin_layout Plain Layout
11941 TitleLatexType
11942 \end_layout
11943
11944 \end_inset
11945
11946  and 
11947 \begin_inset Flex Code
11948 status collapsed
11949
11950 \begin_layout Plain Layout
11951 TitleLatexName
11952 \end_layout
11953
11954 \end_inset
11955
11956  global entries).
11957 \end_layout
11958
11959 \begin_layout Description
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 ItemCommand
11965 \end_layout
11966
11967 \end_inset
11968
11969  [
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 string="item"
11975 \end_layout
11976
11977 \end_inset
11978
11979 ] The LaTeX command sequence declaring an item in a list.
11980  The command is to be defined without the preceding backslash (the default
11981  is 
11982 \begin_inset Quotes eld
11983 \end_inset
11984
11985 item
11986 \begin_inset Quotes erd
11987 \end_inset
11988
11989 , resulting in 
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994
11995 \backslash
11996 item
11997 \end_layout
11998
11999 \end_inset
12000
12001  in the LaTeX output).
12002 \end_layout
12003
12004 \begin_layout Description
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009 ItemSep
12010 \end_layout
12011
12012 \end_inset
12013
12014  [
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 float=0
12020 \end_layout
12021
12022 \end_inset
12023
12024 ] This provides extra space between paragraphs that have the same style.
12025  If you put other styles into an environment, each is separated with the
12026  environment's 
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 ParSep
12032 \end_layout
12033
12034 \end_inset
12035
12036 .
12037  But the whole items of the environment are additionally separated with
12038  this 
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043 ItemSep
12044 \end_layout
12045
12046 \end_inset
12047
12048 .
12049  Note that this is a
12050 \emph on
12051  multiplier.
12052 \end_layout
12053
12054 \begin_layout Description
12055 \begin_inset Flex Code
12056 status collapsed
12057
12058 \begin_layout Plain Layout
12059 ItemTag
12060 \end_layout
12061
12062 \end_inset
12063
12064  [FIXME] (Used only with XML-type formats.)
12065 \end_layout
12066
12067 \begin_layout Description
12068 \begin_inset Flex Code
12069 status collapsed
12070
12071 \begin_layout Plain Layout
12072 KeepEmpty
12073 \end_layout
12074
12075 \end_inset
12076
12077  [
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082
12083 \emph on
12084 0
12085 \end_layout
12086
12087 \end_inset
12088
12089 ,
12090 \begin_inset space \thinspace{}
12091 \end_inset
12092
12093
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 1
12099 \end_layout
12100
12101 \end_inset
12102
12103 ] Usually LyX does not allow you to leave a paragraph empty, since it would
12104  lead to empty LaTeX output.
12105  There are some cases where this could be desirable however: in a letter
12106  template, the required fields can be provided as empty fields, so that
12107  people do not forget them; in some special classes, a style can be used
12108  as some kind of break, which does not contain actual text.
12109 \end_layout
12110
12111 \begin_layout Description
12112 \begin_inset Flex Code
12113 status collapsed
12114
12115 \begin_layout Plain Layout
12116 LabelBottomsep
12117 \end_layout
12118
12119 \end_inset
12120
12121  [
12122 \begin_inset Flex Code
12123 status collapsed
12124
12125 \begin_layout Plain Layout
12126 float=0
12127 \end_layout
12128
12129 \end_inset
12130
12131 ] The vertical space between the label and the text body.
12132  Only used for labels that are above the text body (
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 Top_Environment
12138 \end_layout
12139
12140 \end_inset
12141
12142  and
12143 \begin_inset Newline newline
12144 \end_inset
12145
12146
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 Centered_Top_Environment
12152 \end_layout
12153
12154 \end_inset
12155
12156 ).
12157 \end_layout
12158
12159 \begin_layout Description
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 LabelCounter
12165 \end_layout
12166
12167 \end_inset
12168
12169  [
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 string=""
12175 \end_layout
12176
12177 \end_inset
12178
12179 ] The name of the counter for automatic numbering.
12180  In order to have the counter appear with your label, you will need to reference
12181  it in the 
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186
12187 \family typewriter
12188 LabelString
12189 \end_layout
12190
12191 \end_inset
12192
12193 .
12194  This will work with 
12195 \begin_inset Flex Code
12196 status collapsed
12197
12198 \begin_layout Plain Layout
12199 LabelType
12200 \end_layout
12201
12202 \end_inset
12203
12204 s, 
12205 \begin_inset Flex Code
12206 status collapsed
12207
12208 \begin_layout Plain Layout
12209 Static
12210 \end_layout
12211
12212 \end_inset
12213
12214
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 Above
12220 \end_layout
12221
12222 \end_inset
12223
12224  and 
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 Centered
12230 \end_layout
12231
12232 \end_inset
12233
12234 , at least.
12235 \begin_inset Newline newline
12236 \end_inset
12237
12238 This 
12239 \emph on
12240 may
12241 \emph default
12242  also be given if 
12243 \begin_inset Flex Code
12244 status collapsed
12245
12246 \begin_layout Plain Layout
12247 LabelType
12248 \end_layout
12249
12250 \end_inset
12251
12252  is 
12253 \begin_inset Flex Code
12254 status collapsed
12255
12256 \begin_layout Plain Layout
12257 Enumerate
12258 \end_layout
12259
12260 \end_inset
12261
12262 , though this case is a bit complicated.
12263  Suppose you declare 
12264 \begin_inset Quotes eld
12265 \end_inset
12266
12267
12268 \begin_inset Flex Code
12269 status collapsed
12270
12271 \begin_layout Plain Layout
12272 LabelCounter myenum
12273 \end_layout
12274
12275 \end_inset
12276
12277
12278 \begin_inset Quotes erd
12279 \end_inset
12280
12281 .
12282  Then the actual counters used are 
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 myenumi
12288 \end_layout
12289
12290 \end_inset
12291
12292
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297 myenumii
12298 \end_layout
12299
12300 \end_inset
12301
12302
12303 \begin_inset Flex Code
12304 status collapsed
12305
12306 \begin_layout Plain Layout
12307 myenumiii
12308 \end_layout
12309
12310 \end_inset
12311
12312  and 
12313 \begin_inset Flex Code
12314 status collapsed
12315
12316 \begin_layout Plain Layout
12317 myenumiv
12318 \end_layout
12319
12320 \end_inset
12321
12322 , much as in LaTeX.
12323  These counters must all be declared separately.
12324 \begin_inset Newline newline
12325 \end_inset
12326
12327 See 
12328 \begin_inset CommandInset ref
12329 LatexCommand ref
12330 reference "sub:Counters"
12331
12332 \end_inset
12333
12334  for details on counters.
12335 \end_layout
12336
12337 \begin_layout Description
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342 LabelFont
12343 \end_layout
12344
12345 \end_inset
12346
12347  The font used for the label.
12348  See 
12349 \begin_inset CommandInset ref
12350 LatexCommand ref
12351 reference "sub:Font-description"
12352
12353 \end_inset
12354
12355 .
12356 \end_layout
12357
12358 \begin_layout Description
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 LabelIndent
12364 \end_layout
12365
12366 \end_inset
12367
12368  [
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373 string=""
12374 \end_layout
12375
12376 \end_inset
12377
12378 ] Text that indicates how far a label should be indented.
12379 \end_layout
12380
12381 \begin_layout Description
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 LabelSep
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396 string=""
12397 \end_layout
12398
12399 \end_inset
12400
12401 ] Text that indicates the amount of horizontal space between the label and
12402  the text body.
12403  Only used for labels that are not above the text body.
12404 \end_layout
12405
12406 \begin_layout Description
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 LabelString
12412 \end_layout
12413
12414 \end_inset
12415
12416  [
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421 string=""
12422 \end_layout
12423
12424 \end_inset
12425
12426 ] The string used for the label.
12427  When 
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 LabelCounter
12433 \end_layout
12434
12435 \end_inset
12436
12437  is set, this string can be contain the special formatting commands described
12438  in 
12439 \begin_inset CommandInset ref
12440 LatexCommand ref
12441 reference "sub:Counters"
12442
12443 \end_inset
12444
12445 .
12446 \end_layout
12447
12448 \begin_layout Description
12449 \begin_inset Flex Code
12450 status collapsed
12451
12452 \begin_layout Plain Layout
12453 LabelStringAppendix
12454 \end_layout
12455
12456 \end_inset
12457
12458  [
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 string=""
12464 \end_layout
12465
12466 \end_inset
12467
12468 ] This is used inside the appendix instead of
12469 \begin_inset Newline newline
12470 \end_inset
12471
12472
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 LabelString
12478 \end_layout
12479
12480 \end_inset
12481
12482 .
12483  Note that every 
12484 \begin_inset Flex Code
12485 status collapsed
12486
12487 \begin_layout Plain Layout
12488 LabelString
12489 \end_layout
12490
12491 \end_inset
12492
12493  statement resets
12494 \begin_inset Newline newline
12495 \end_inset
12496
12497
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 LabelStringAppendix
12503 \end_layout
12504
12505 \end_inset
12506
12507  too.
12508 \end_layout
12509
12510 \begin_layout Description
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 LabelTag
12516 \end_layout
12517
12518 \end_inset
12519
12520  [FIXME] (Used only with XML-type formats.)
12521 \end_layout
12522
12523 \begin_layout Description
12524 \begin_inset Flex Code
12525 status collapsed
12526
12527 \begin_layout Plain Layout
12528 LabelType
12529 \end_layout
12530
12531 \end_inset
12532
12533  [
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538
12539 \emph on
12540 No_Label
12541 \emph default
12542 , Manual, Static, Above, 
12543 \begin_inset Newline newline
12544 \end_inset
12545
12546 Centered, Sensitive, Enumerate,
12547 \begin_inset Newline newline
12548 \end_inset
12549
12550 Itemize, Bibliography
12551 \end_layout
12552
12553 \end_inset
12554
12555 ]
12556 \end_layout
12557
12558 \begin_deeper
12559 \begin_layout Description
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 Manual
12565 \end_layout
12566
12567 \end_inset
12568
12569  means the label is the very first word (up to the first real blank).
12570  Use protected spaces if you want more than one word as the label.
12571  
12572 \end_layout
12573
12574 \begin_layout Description
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 Static
12580 \end_layout
12581
12582 \end_inset
12583
12584  means the label is simply what is declared as 
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 LabelString
12590 \end_layout
12591
12592 \end_inset
12593
12594 .
12595  This will be displayed 
12596 \begin_inset Quotes eld
12597 \end_inset
12598
12599 inline
12600 \begin_inset Quotes erd
12601 \end_inset
12602
12603 , at the beginning of the paragraph.
12604  If the 
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 LatexType
12610 \end_layout
12611
12612 \end_inset
12613
12614  is 
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 Environment
12620 \end_layout
12621
12622 \end_inset
12623
12624 , then it will be displayed only in the first paragraph of any sequence
12625  of paragraphs with the same 
12626 \begin_inset Flex Code
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630 Style
12631 \end_layout
12632
12633 \end_inset
12634
12635 .
12636 \end_layout
12637
12638 \begin_layout Description
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 Above
12644 \end_layout
12645
12646 \end_inset
12647
12648
12649 \begin_inset space ~
12650 \end_inset
12651
12652 and
12653 \begin_inset space ~
12654 \end_inset
12655
12656
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 Centered
12662 \end_layout
12663
12664 \end_inset
12665
12666  are special cases of 
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 Static
12672 \end_layout
12673
12674 \end_inset
12675
12676 .
12677  The label will be printed above the paragraph either at the beginning of
12678  the line or centered.
12679 \end_layout
12680
12681 \begin_layout Description
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 Sensitive
12687 \end_layout
12688
12689 \end_inset
12690
12691  is a special case for the caption-labels 
12692 \begin_inset Quotes eld
12693 \end_inset
12694
12695 Figure
12696 \begin_inset Quotes erd
12697 \end_inset
12698
12699  and 
12700 \begin_inset Quotes eld
12701 \end_inset
12702
12703 Table
12704 \begin_inset Quotes erd
12705 \end_inset
12706
12707 .
12708 \begin_inset Newline newline
12709 \end_inset
12710
12711
12712 \begin_inset Flex Code
12713 status collapsed
12714
12715 \begin_layout Plain Layout
12716 Sensitive
12717 \end_layout
12718
12719 \end_inset
12720
12721  means the (hardcoded) label string depends on the kind of float: It is
12722  hardcoded to be `FloatType N', where N is the value of the counter associated
12723  with the float.
12724  For the case that a caption is inserted outside of a float the 
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 LabelString
12730 \end_layout
12731
12732 \end_inset
12733
12734  will appear as 
12735 \begin_inset Quotes eld
12736 \end_inset
12737
12738 Senseless!
12739 \begin_inset Quotes erd
12740 \end_inset
12741
12742 .
12743 \end_layout
12744
12745 \begin_layout Description
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 Enumerate
12751 \end_layout
12752
12753 \end_inset
12754
12755  produces the usual sort of enumeration labels.
12756  At present, it is hardcoded to use Arabic numerals, lowercase letters,
12757  small Roman numerals, and uppercase letters for the four possible depths.
12758 \end_layout
12759
12760 \begin_layout Description
12761 \begin_inset Flex Code
12762 status collapsed
12763
12764 \begin_layout Plain Layout
12765 Itemize
12766 \end_layout
12767
12768 \end_inset
12769
12770  produces various bullets at the different levels.
12771  It is also hardcoded.
12772 \end_layout
12773
12774 \begin_layout Description
12775 \begin_inset Flex Code
12776 status collapsed
12777
12778 \begin_layout Plain Layout
12779 Bibliography
12780 \end_layout
12781
12782 \end_inset
12783
12784  should be used only with 
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789 LatexType BibEnvironment
12790 \end_layout
12791
12792 \end_inset
12793
12794 .
12795 \end_layout
12796
12797 \end_deeper
12798 \begin_layout Description
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803 LangPreamble
12804 \end_layout
12805
12806 \end_inset
12807
12808  Note that this will completely override any prior 
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 LangPreamble
12814 \end_layout
12815
12816 \end_inset
12817
12818  declaration for this style.
12819  Must end with 
12820 \begin_inset Quotes eld
12821 \end_inset
12822
12823
12824 \begin_inset Flex Code
12825 status collapsed
12826
12827 \begin_layout Plain Layout
12828 EndLangPreamble
12829 \end_layout
12830
12831 \end_inset
12832
12833
12834 \begin_inset Quotes erd
12835 \end_inset
12836
12837 .
12838  See 
12839 \begin_inset CommandInset ref
12840 LatexCommand ref
12841 reference "sub:I18n"
12842
12843 \end_inset
12844
12845  for details on its use.
12846 \end_layout
12847
12848 \begin_layout Description
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 LatexName
12854 \end_layout
12855
12856 \end_inset
12857
12858  [
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 <name>
12864 \end_layout
12865
12866 \end_inset
12867
12868 ] The name of the corresponding LaTeX stuff.
12869  Either the environment or command name.
12870 \end_layout
12871
12872 \begin_layout Description
12873 \begin_inset Flex Code
12874 status collapsed
12875
12876 \begin_layout Plain Layout
12877 LatexParam
12878 \end_layout
12879
12880 \end_inset
12881
12882  [
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 <parameter>
12888 \end_layout
12889
12890 \end_inset
12891
12892 ] An optional parameter for the corresponding 
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 LatexName
12898 \end_layout
12899
12900 \end_inset
12901
12902  stuff.
12903  This parameter cannot be changed from within LyX (use 
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Argument
12909 \end_layout
12910
12911 \end_inset
12912
12913  for customizable parameters).
12914  This will be output as is after all LaTeX 
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 Argument
12920 \end_layout
12921
12922 \end_inset
12923
12924 s.
12925 \end_layout
12926
12927 \begin_layout Description
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 LatexType
12933 \end_layout
12934
12935 \end_inset
12936
12937  [
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942
12943 \emph on
12944 Paragraph
12945 \emph default
12946 , Command, Environment, Item_Environment,
12947 \begin_inset Newline newline
12948 \end_inset
12949
12950 List_Environment, Bib_Environment
12951 \end_layout
12952
12953 \end_inset
12954
12955 ] How the style should be translated into LaTeX.
12956 \begin_inset Foot
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 LatexType
12965 \end_layout
12966
12967 \end_inset
12968
12969  is perhaps a bit misleading, since these rules apply to SGML classes, too.
12970  Visit the SGML class files for specific examples.
12971 \end_layout
12972
12973 \end_inset
12974
12975
12976 \end_layout
12977
12978 \begin_deeper
12979 \begin_layout Description
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 Paragraph
12985 \end_layout
12986
12987 \end_inset
12988
12989  means nothing special.
12990 \end_layout
12991
12992 \begin_layout Description
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 Command
12998 \end_layout
12999
13000 \end_inset
13001
13002  means 
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007
13008 \backslash
13009
13010 \emph on
13011 LatexName
13012 \emph default
13013 {\SpecialChar \ldots{}
13014 }
13015 \end_layout
13016
13017 \end_inset
13018
13019 .
13020 \end_layout
13021
13022 \begin_layout Description
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 Environment
13028 \end_layout
13029
13030 \end_inset
13031
13032  means 
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037
13038 \backslash
13039 begin{
13040 \emph on
13041 LatexName
13042 \emph default
13043 }\SpecialChar \ldots{}
13044
13045 \backslash
13046 end{
13047 \emph on
13048 LatexName
13049 \emph default
13050 }
13051 \end_layout
13052
13053 \end_inset
13054
13055 .
13056  
13057 \end_layout
13058
13059 \begin_layout Description
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064 Item_Environment
13065 \end_layout
13066
13067 \end_inset
13068
13069  is the same as 
13070 \begin_inset Flex Code
13071 status collapsed
13072
13073 \begin_layout Plain Layout
13074 Environment
13075 \end_layout
13076
13077 \end_inset
13078
13079 , except that an 
13080 \begin_inset Flex Code
13081 status collapsed
13082
13083 \begin_layout Plain Layout
13084
13085 \backslash
13086 item
13087 \end_layout
13088
13089 \end_inset
13090
13091  is generated for each paragraph of this environment.
13092  
13093 \end_layout
13094
13095 \begin_layout Description
13096 \begin_inset Flex Code
13097 status collapsed
13098
13099 \begin_layout Plain Layout
13100 List_Environment
13101 \end_layout
13102
13103 \end_inset
13104
13105  is the same as 
13106 \begin_inset Flex Code
13107 status collapsed
13108
13109 \begin_layout Plain Layout
13110 Item_Environment
13111 \end_layout
13112
13113 \end_inset
13114
13115 , except that
13116 \begin_inset Newline newline
13117 \end_inset
13118
13119
13120 \begin_inset Flex Code
13121 status collapsed
13122
13123 \begin_layout Plain Layout
13124 LabelWidthString
13125 \end_layout
13126
13127 \end_inset
13128
13129  is passed as an argument to the environment.
13130 \begin_inset Newline newline
13131 \end_inset
13132
13133
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138 LabelWidthString
13139 \end_layout
13140
13141 \end_inset
13142
13143  can be defined in the 
13144 \begin_inset Flex MenuItem
13145 status collapsed
13146
13147 \begin_layout Plain Layout
13148 Edit\SpecialChar \menuseparator
13149 Paragraph
13150 \begin_inset space ~
13151 \end_inset
13152
13153 settings
13154 \end_layout
13155
13156 \end_inset
13157
13158  dialog.
13159 \end_layout
13160
13161 \begin_layout Description
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 Bib_Environment
13167 \end_layout
13168
13169 \end_inset
13170
13171  is like 
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176 Environment
13177 \end_layout
13178
13179 \end_inset
13180
13181  but adds additionally the necessary mandatory argument (the longest label)
13182  to the begin statement of the bibliography environment:
13183 \begin_inset Newline newline
13184 \end_inset
13185
13186
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191
13192 \backslash
13193 begin{thebibliography}{99}
13194 \end_layout
13195
13196 \end_inset
13197
13198  It is therefore only useful for bibliography environments.
13199  The default longest label 
13200 \begin_inset Quotes eld
13201 \end_inset
13202
13203 99
13204 \begin_inset Quotes erd
13205 \end_inset
13206
13207  can be changed by the user in the paragraph settings of a bibliography
13208  item.
13209 \end_layout
13210
13211 \begin_layout Standard
13212 Putting the last few things together, the LaTeX output will be either: 
13213 \end_layout
13214
13215 \begin_layout LyX-Code
13216
13217 \backslash
13218 LatexName[LatexParam]{\SpecialChar \ldots{}
13219 }
13220 \end_layout
13221
13222 \begin_layout Standard
13223 or: 
13224 \end_layout
13225
13226 \begin_layout LyX-Code
13227
13228 \backslash
13229 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
13230  
13231 \backslash
13232 end{LatexName}.
13233 \end_layout
13234
13235 \begin_layout Standard
13236 depending upon the LaTeX type.
13237 \end_layout
13238
13239 \end_deeper
13240 \begin_layout Description
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 LeftDelim
13246 \end_layout
13247
13248 \end_inset
13249
13250  [
13251 \begin_inset Flex Code
13252 status collapsed
13253
13254 \begin_layout Plain Layout
13255 string
13256 \end_layout
13257
13258 \end_inset
13259
13260 ] A string that is put at the beginning of the style content.
13261  A line break in the output can be indicated by 
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 <br/>
13267 \end_layout
13268
13269 \end_inset
13270
13271 .
13272 \end_layout
13273
13274 \begin_layout Description
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 LeftMargin
13280 \end_layout
13281
13282 \end_inset
13283
13284  [
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 string=""
13290 \end_layout
13291
13292 \end_inset
13293
13294 ] If you put styles into environments, the different 
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 LeftMargin
13300 \end_layout
13301
13302 \end_inset
13303
13304  are not simply added, but added with a factor 
13305 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13306 \end_inset
13307
13308 .
13309  Note that this parameter is also used when 
13310 \begin_inset Flex Code
13311 status collapsed
13312
13313 \begin_layout Plain Layout
13314 Margin
13315 \end_layout
13316
13317 \end_inset
13318
13319  is defined as 
13320 \begin_inset Flex Code
13321 status collapsed
13322
13323 \begin_layout Plain Layout
13324 Manual
13325 \end_layout
13326
13327 \end_inset
13328
13329  or 
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334 Dynamic
13335 \end_layout
13336
13337 \end_inset
13338
13339 .
13340  Then it is added to the manual or dynamic margin.
13341 \begin_inset Newline newline
13342 \end_inset
13343
13344 For example 
13345 \begin_inset Quotes eld
13346 \end_inset
13347
13348
13349 \begin_inset Flex Code
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353 MM
13354 \end_layout
13355
13356 \end_inset
13357
13358
13359 \begin_inset Quotes erd
13360 \end_inset
13361
13362  means that the paragraph is indented with the width of 
13363 \begin_inset Quotes eld
13364 \end_inset
13365
13366
13367 \begin_inset Flex Code
13368 status collapsed
13369
13370 \begin_layout Plain Layout
13371 MM
13372 \end_layout
13373
13374 \end_inset
13375
13376
13377 \begin_inset Quotes erd
13378 \end_inset
13379
13380  in the normal font.
13381  You can get a negative width by prefixing the string with 
13382 \begin_inset Quotes eld
13383 \end_inset
13384
13385
13386 \begin_inset Flex Code
13387 status collapsed
13388
13389 \begin_layout Plain Layout
13390 -
13391 \end_layout
13392
13393 \end_inset
13394
13395
13396 \begin_inset Quotes erd
13397 \end_inset
13398
13399 .
13400  This way was chosen so that the look is the same with each used screen
13401  font.
13402 \end_layout
13403
13404 \begin_layout Description
13405 \begin_inset Flex Code
13406 status collapsed
13407
13408 \begin_layout Plain Layout
13409 Margin
13410 \end_layout
13411
13412 \end_inset
13413
13414  [
13415 \begin_inset Flex Code
13416 status collapsed
13417
13418 \begin_layout Plain Layout
13419
13420 \emph on
13421 Static
13422 \emph default
13423 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13424 \end_layout
13425
13426 \end_inset
13427
13428
13429 \begin_inset Newline newline
13430 \end_inset
13431
13432 The kind of margin that the style has on the left side.
13433 \end_layout
13434
13435 \begin_deeper
13436 \begin_layout Description
13437 \begin_inset Flex Code
13438 status collapsed
13439
13440 \begin_layout Plain Layout
13441 Static
13442 \end_layout
13443
13444 \end_inset
13445
13446  just means a fixed margin.
13447 \end_layout
13448
13449 \begin_layout Description
13450 \begin_inset Flex Code
13451 status collapsed
13452
13453 \begin_layout Plain Layout
13454 Manual
13455 \end_layout
13456
13457 \end_inset
13458
13459  means that the left margin depends on the string entered in the 
13460 \begin_inset Flex MenuItem
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 Edit\SpecialChar \menuseparator
13465 Paragraph
13466 \begin_inset space ~
13467 \end_inset
13468
13469 Settings
13470 \end_layout
13471
13472 \end_inset
13473
13474  dialog.
13475  This is used to typeset nice lists without tabulators.
13476 \end_layout
13477
13478 \begin_layout Description
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483 Dynamic
13484 \end_layout
13485
13486 \end_inset
13487
13488  means that the margin depends on the size of the label.
13489  This is used for automatic enumerated headlines.
13490  It is obvious that the headline 
13491 \begin_inset Quotes eld
13492 \end_inset
13493
13494 5.4.3.2.1 Very long headline
13495 \begin_inset Quotes erd
13496 \end_inset
13497
13498  must have a wider left margin (as wide as 
13499 \begin_inset Quotes eld
13500 \end_inset
13501
13502 5.4.3.2.1
13503 \begin_inset Quotes erd
13504 \end_inset
13505
13506  plus the space) than 
13507 \begin_inset Quotes eld
13508 \end_inset
13509
13510 3.2 Very long headline
13511 \begin_inset Quotes erd
13512 \end_inset
13513
13514 , even if standard 
13515 \begin_inset Quotes eld
13516 \end_inset
13517
13518 word processors
13519 \begin_inset Quotes erd
13520 \end_inset
13521
13522  are not able to do this.
13523 \end_layout
13524
13525 \begin_layout Description
13526 \begin_inset Flex Code
13527 status collapsed
13528
13529 \begin_layout Plain Layout
13530 First_Dynamic
13531 \end_layout
13532
13533 \end_inset
13534
13535  is similar, but only the very first row of the paragraph is dynamic, while
13536  the others are static; this is used, for example, for descriptions.
13537 \end_layout
13538
13539 \begin_layout Description
13540 \begin_inset Flex Code
13541 status collapsed
13542
13543 \begin_layout Plain Layout
13544 Right_Address_Box
13545 \end_layout
13546
13547 \end_inset
13548
13549  means the margin is chosen in a way that the longest row of this paragraph
13550  fits to the right margin.
13551  This is used to typeset an address on the right edge of the page.
13552 \end_layout
13553
13554 \end_deeper
13555 \begin_layout Description
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 NeedProtect
13561 \end_layout
13562
13563 \end_inset
13564
13565  [
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570
13571 \emph on
13572 0
13573 \end_layout
13574
13575 \end_inset
13576
13577 ,
13578 \begin_inset space \thinspace{}
13579 \end_inset
13580
13581
13582 \begin_inset Flex Code
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586 1
13587 \end_layout
13588
13589 \end_inset
13590
13591 ] Whether fragile commands in this style should be 
13592 \begin_inset Flex Code
13593 status collapsed
13594
13595 \begin_layout Plain Layout
13596
13597 \backslash
13598 protect
13599 \end_layout
13600
13601 \end_inset
13602
13603 'ed.
13604  (Note: This is 
13605 \emph on
13606 not
13607 \emph default
13608  whether this command should itself be protected.)
13609 \end_layout
13610
13611 \begin_layout Description
13612 \begin_inset Flex Code
13613 status collapsed
13614
13615 \begin_layout Plain Layout
13616 Newline
13617 \end_layout
13618
13619 \end_inset
13620
13621  [
13622 \begin_inset Flex Code
13623 status collapsed
13624
13625 \begin_layout Plain Layout
13626 0
13627 \end_layout
13628
13629 \end_inset
13630
13631 ,
13632 \begin_inset space \thinspace{}
13633 \end_inset
13634
13635
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640
13641 \emph on
13642 1
13643 \end_layout
13644
13645 \end_inset
13646
13647 ] Whether newlines are translated into LaTeX newlines (
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652
13653 \backslash
13654
13655 \backslash
13656
13657 \end_layout
13658
13659 \end_inset
13660
13661 ) or not.
13662  The translation can be switched off to allow more comfortable LaTeX editing
13663  inside LyX.
13664 \end_layout
13665
13666 \begin_layout Description
13667 \begin_inset Flex Code
13668 status collapsed
13669
13670 \begin_layout Plain Layout
13671 NextNoIndent
13672 \end_layout
13673
13674 \end_inset
13675
13676  [
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681
13682 \emph on
13683 0
13684 \end_layout
13685
13686 \end_inset
13687
13688 ,
13689 \begin_inset space \thinspace{}
13690 \end_inset
13691
13692
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 1
13698 \end_layout
13699
13700 \end_inset
13701
13702 ] If set to true, and if 
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707 DefaultStyle
13708 \end_layout
13709
13710 \end_inset
13711
13712  (usually 
13713 \begin_inset Flex Code
13714 status collapsed
13715
13716 \begin_layout Plain Layout
13717 Standard
13718 \end_layout
13719
13720 \end_inset
13721
13722 ) paragraphs are being indented, then the indentation of such a paragraph
13723  following one of this type will be suppressed.
13724  (So this will not affect the display of non-default paragraphs.)
13725 \end_layout
13726
13727 \begin_layout Description
13728 \begin_inset Flex Code
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732 ObsoletedBy
13733 \end_layout
13734
13735 \end_inset
13736
13737  [
13738 \begin_inset Flex Code
13739 status collapsed
13740
13741 \begin_layout Plain Layout
13742 <name>
13743 \end_layout
13744
13745 \end_inset
13746
13747 ] Name of a style that has replaced this style.
13748  This is used to rename a style, while keeping backward compatibility.
13749 \end_layout
13750
13751 \begin_layout Description
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 ParbreakIsNewline
13757 \end_layout
13758
13759 \end_inset
13760
13761  [
13762 \begin_inset Flex Code
13763 status collapsed
13764
13765 \begin_layout Plain Layout
13766
13767 \emph on
13768 0
13769 \end_layout
13770
13771 \end_inset
13772
13773 ,
13774 \begin_inset space \thinspace{}
13775 \end_inset
13776
13777
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 1
13783 \end_layout
13784
13785 \end_inset
13786
13787 ] Indicates that paragraphs will not be separated by an empty line in LaTeX
13788  output, but only by a line break; together with 
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793 PassThru 1
13794 \end_layout
13795
13796 \end_inset
13797
13798 , this allows to emulate a plain text editor (like the ERT inset).
13799 \end_layout
13800
13801 \begin_layout Description
13802 \begin_inset Flex Code
13803 status collapsed
13804
13805 \begin_layout Plain Layout
13806 ParIndent
13807 \end_layout
13808
13809 \end_inset
13810
13811  [
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 string=""
13817 \end_layout
13818
13819 \end_inset
13820
13821 ] The indent of the very first line of a paragraph.
13822  The
13823 \begin_inset Newline newline
13824 \end_inset
13825
13826
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 Parindent
13832 \end_layout
13833
13834 \end_inset
13835
13836  will be fixed for a certain style.
13837  The exception is the default style, since the indentation for these paragraphs
13838  can be prohibited with 
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 NextNoIndent
13844 \end_layout
13845
13846 \end_inset
13847
13848 .
13849  Also, 
13850 \begin_inset Flex Code
13851 status collapsed
13852
13853 \begin_layout Plain Layout
13854 Standard
13855 \end_layout
13856
13857 \end_inset
13858
13859  style paragraphs inside environments use the 
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 Parindent
13865 \end_layout
13866
13867 \end_inset
13868
13869  of the environment, not their native one.
13870  For example, 
13871 \begin_inset Flex Code
13872 status collapsed
13873
13874 \begin_layout Plain Layout
13875 Standard
13876 \end_layout
13877
13878 \end_inset
13879
13880  paragraphs inside an enumeration are not indented.
13881 \end_layout
13882
13883 \begin_layout Description
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 ParSep
13889 \end_layout
13890
13891 \end_inset
13892
13893  [
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 float=0
13899 \end_layout
13900
13901 \end_inset
13902
13903 ] The vertical space between two paragraphs of this style.
13904 \end_layout
13905
13906 \begin_layout Description
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 Parskip
13912 \end_layout
13913
13914 \end_inset
13915
13916  [
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 float=0
13922 \end_layout
13923
13924 \end_inset
13925
13926 ] LyX allows the user to choose either 
13927 \begin_inset Quotes eld
13928 \end_inset
13929
13930 indent
13931 \begin_inset Quotes erd
13932 \end_inset
13933
13934  or 
13935 \begin_inset Quotes eld
13936 \end_inset
13937
13938 skip
13939 \begin_inset Quotes erd
13940 \end_inset
13941
13942  to separate paragraphs.
13943  When 
13944 \begin_inset Quotes eld
13945 \end_inset
13946
13947 indent
13948 \begin_inset Quotes erd
13949 \end_inset
13950
13951  is chosen, 
13952 \begin_inset Flex Code
13953 status collapsed
13954
13955 \begin_layout Plain Layout
13956 Parskip
13957 \end_layout
13958
13959 \end_inset
13960
13961  is ignored.
13962  When 
13963 \begin_inset Quotes eld
13964 \end_inset
13965
13966 skip
13967 \begin_inset Quotes erd
13968 \end_inset
13969
13970  is chosen, 
13971 \begin_inset Flex Code
13972 status collapsed
13973
13974 \begin_layout Plain Layout
13975 ParIndent
13976 \end_layout
13977
13978 \end_inset
13979
13980  is ignored and all paragraphs are separated by the 
13981 \begin_inset Flex Code
13982 status collapsed
13983
13984 \begin_layout Plain Layout
13985 Parskip
13986 \end_layout
13987
13988 \end_inset
13989
13990  argument.
13991  The vertical space is calculated with 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 Parskip
13997 \begin_inset space ~
13998 \end_inset
13999
14000 * DefaultHeight
14001 \end_layout
14002
14003 \end_inset
14004
14005  where 
14006 \begin_inset Flex Code
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010 DefaultHeight
14011 \end_layout
14012
14013 \end_inset
14014
14015  is the height of a row with the normal font.
14016  This way, the look stays the same with different screen fonts.
14017 \end_layout
14018
14019 \begin_layout Description
14020 \begin_inset Flex Code
14021 status collapsed
14022
14023 \begin_layout Plain Layout
14024 PassThru
14025 \end_layout
14026
14027 \end_inset
14028
14029  [
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034
14035 \emph on
14036 0
14037 \end_layout
14038
14039 \end_inset
14040
14041 ,
14042 \begin_inset space \thinspace{}
14043 \end_inset
14044
14045
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 1
14051 \end_layout
14052
14053 \end_inset
14054
14055 ] Whether the contents of this paragraph should be output in raw form, meaning
14056  without special translations that LaTeX would require.
14057 \end_layout
14058
14059 \begin_layout Description
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 Preamble
14065 \end_layout
14066
14067 \end_inset
14068
14069  Information to be included in the LaTeX preamble when this style is used.
14070  Used to define macros, load packages, etc., required by this particular
14071  style.
14072  Must end with 
14073 \begin_inset Quotes eld
14074 \end_inset
14075
14076
14077 \begin_inset Flex Code
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 EndPreamble
14082 \end_layout
14083
14084 \end_inset
14085
14086
14087 \begin_inset Quotes erd
14088 \end_inset
14089
14090 .
14091 \end_layout
14092
14093 \begin_layout Description
14094 \begin_inset Flex Code
14095 status collapsed
14096
14097 \begin_layout Plain Layout
14098 RefPrefix
14099 \end_layout
14100
14101 \end_inset
14102
14103  [
14104 \begin_inset Flex Code
14105 status collapsed
14106
14107 \begin_layout Plain Layout
14108 string
14109 \end_layout
14110
14111 \end_inset
14112
14113 ] The prefix to use when creating labels referring to paragraphs of this
14114  type.
14115  This allows the use of formatted references.
14116 \end_layout
14117
14118 \begin_layout Description
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 Requires 
14124 \end_layout
14125
14126 \end_inset
14127
14128  [
14129 \begin_inset Flex Code
14130 status collapsed
14131
14132 \begin_layout Plain Layout
14133 string
14134 \end_layout
14135
14136 \end_inset
14137
14138 ] Whether the style requires the feature 
14139 \begin_inset Flex Code
14140 status collapsed
14141
14142 \begin_layout Plain Layout
14143 string
14144 \end_layout
14145
14146 \end_inset
14147
14148 .
14149  See the description of 
14150 \begin_inset Flex Code
14151 status collapsed
14152
14153 \begin_layout Plain Layout
14154 Provides
14155 \end_layout
14156
14157 \end_inset
14158
14159  above (
14160 \begin_inset CommandInset ref
14161 LatexCommand ref
14162 reference "sub:General-text-class"
14163
14164 \end_inset
14165
14166 ) for information on `features'.
14167 \end_layout
14168
14169 \begin_layout Description
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 ResetArgs
14175 \end_layout
14176
14177 \end_inset
14178
14179  [
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184
14185 \emph on
14186 0
14187 \end_layout
14188
14189 \end_inset
14190
14191 ,
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 1
14197 \end_layout
14198
14199 \end_inset
14200
14201 ] Resets the LaTeX arguments of this style (as defined via the 
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 Argument
14207 \end_layout
14208
14209 \end_inset
14210
14211  tag).
14212  This is useful if you have copied a style via 
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 CopyStyle
14218 \end_layout
14219
14220 \end_inset
14221
14222 , but you do not want to inherit its (required and optional) arguments.
14223 \end_layout
14224
14225 \begin_layout Description
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 RightDelim
14231 \end_layout
14232
14233 \end_inset
14234
14235  [
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 string
14241 \end_layout
14242
14243 \end_inset
14244
14245 ] A string that is put at the end of the layout content.
14246  A line break in the output can be indicated by 
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 <br/>
14252 \end_layout
14253
14254 \end_inset
14255
14256 .
14257 \end_layout
14258
14259 \begin_layout Description
14260 \begin_inset Flex Code
14261 status collapsed
14262
14263 \begin_layout Plain Layout
14264 RightMargin
14265 \end_layout
14266
14267 \end_inset
14268
14269  [
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 string=""
14275 \end_layout
14276
14277 \end_inset
14278
14279 ] Similar to 
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 LeftMargin
14285 \end_layout
14286
14287 \end_inset
14288
14289 .
14290 \end_layout
14291
14292 \begin_layout Description
14293 \begin_inset Flex Code
14294 status collapsed
14295
14296 \begin_layout Plain Layout
14297 Spacing
14298 \end_layout
14299
14300 \end_inset
14301
14302  [
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307
14308 \emph on
14309 single
14310 \end_layout
14311
14312 \end_inset
14313
14314
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 onehalf
14320 \end_layout
14321
14322 \end_inset
14323
14324
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 double
14330 \end_layout
14331
14332 \end_inset
14333
14334
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 other
14340 \begin_inset space ~
14341 \end_inset
14342
14343 <value>
14344 \end_layout
14345
14346 \end_inset
14347
14348 ] This defines what the default spacing should be in the style.
14349  The arguments 
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 single
14355 \end_layout
14356
14357 \end_inset
14358
14359
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 onehalf
14365 \end_layout
14366
14367 \end_inset
14368
14369  and 
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 double
14375 \end_layout
14376
14377 \end_inset
14378
14379  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14380  If you specify the argument 
14381 \begin_inset Flex Code
14382 status collapsed
14383
14384 \begin_layout Plain Layout
14385 other
14386 \end_layout
14387
14388 \end_inset
14389
14390 , then you must also provide a value argument which will be the actual multiplie
14391 r value.
14392  Note that, contrary to other parameters, 
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 Spacing
14398 \end_layout
14399
14400 \end_inset
14401
14402  implies the generation of specific LaTeX code, using the LaTeX package
14403  
14404 \family roman
14405
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 setspace
14411 \end_layout
14412
14413 \end_inset
14414
14415 .
14416 \end_layout
14417
14418 \begin_layout Description
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Spellcheck
14424 \end_layout
14425
14426 \end_inset
14427
14428  [
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 0
14434 \end_layout
14435
14436 \end_inset
14437
14438 ,
14439 \begin_inset space \thinspace{}
14440 \end_inset
14441
14442
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \emph on
14449 1
14450 \end_layout
14451
14452 \end_inset
14453
14454 ] Allow spell-checking paragraphs of this style.
14455  Default is true.
14456 \end_layout
14457
14458 \begin_layout Description
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 TextFont
14464 \end_layout
14465
14466 \end_inset
14467
14468  The font used for the text body .
14469  See 
14470 \begin_inset CommandInset ref
14471 LatexCommand ref
14472 reference "sub:Font-description"
14473
14474 \end_inset
14475
14476 .
14477 \end_layout
14478
14479 \begin_layout Description
14480 \begin_inset Flex Code
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 TocLevel
14485 \end_layout
14486
14487 \end_inset
14488
14489
14490 \series medium
14491  [
14492 \begin_inset Flex Code
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496
14497 \series medium
14498 int=3
14499 \end_layout
14500
14501 \end_inset
14502
14503 ]
14504 \series default
14505  The level of the style in the table of contents.
14506  This is used for automatic numbering of section headings.
14507 \end_layout
14508
14509 \begin_layout Description
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 TopSep
14515 \end_layout
14516
14517 \end_inset
14518
14519  [
14520 \begin_inset Flex Code
14521 status collapsed
14522
14523 \begin_layout Plain Layout
14524 float=0
14525 \end_layout
14526
14527 \end_inset
14528
14529 ] The vertical space with which the very first of a chain of paragraphs
14530  with this style is separated from the previous paragraph.
14531  If the previous paragraph has another style, the separations are not simply
14532  added, but the maximum is taken.
14533 \end_layout
14534
14535 \begin_layout Subsection
14536 \begin_inset CommandInset label
14537 LatexCommand label
14538 name "sub:I18n"
14539
14540 \end_inset
14541
14542 Internationalization of Paragraph Styles
14543 \end_layout
14544
14545 \begin_layout Standard
14546 LyX has long supported internationalization of layout information, but,
14547  until version 2.0, this applied only to the user interface and not to, say,
14548  PDF output.
14549  Thus, French authors were forced to resort to ugly hacks if they wanted
14550  `
14551 \lang french
14552 Théorème
14553 \lang english
14554  1' instead of `Theorem 1'.
14555  Thanks to Georg Baum, that is no longer the case.
14556 \end_layout
14557
14558 \begin_layout Standard
14559 If a 
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 Style
14565 \end_layout
14566
14567 \end_inset
14568
14569  defines text that is to appear in the typeset document, it may use 
14570 \begin_inset Flex Code
14571 status collapsed
14572
14573 \begin_layout Plain Layout
14574 LangPreamble
14575 \end_layout
14576
14577 \end_inset
14578
14579  and 
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584 BabelPreamble
14585 \end_layout
14586
14587 \end_inset
14588
14589  to support non-English and even multi-language documents correctly.
14590  The following excerpt (from the 
14591 \begin_inset Flex Code
14592 status collapsed
14593
14594 \begin_layout Plain Layout
14595 theorems-ams.inc
14596 \end_layout
14597
14598 \end_inset
14599
14600  file) shows how this works:
14601 \end_layout
14602
14603 \begin_layout LyX-Code
14604 Preamble
14605 \end_layout
14606
14607 \begin_deeper
14608 \begin_layout LyX-Code
14609   
14610 \backslash
14611 theoremstyle{remark}
14612 \end_layout
14613
14614 \begin_layout LyX-Code
14615   
14616 \backslash
14617 newtheorem{claim}[thm]{
14618 \backslash
14619 protect
14620 \backslash
14621 claimname}
14622 \end_layout
14623
14624 \begin_layout LyX-Code
14625 EndPreamble
14626 \end_layout
14627
14628 \begin_layout LyX-Code
14629 LangPreamble
14630 \end_layout
14631
14632 \begin_layout LyX-Code
14633   
14634 \backslash
14635 providecommand{
14636 \backslash
14637 claimname}{_(Claim)}
14638 \end_layout
14639
14640 \begin_layout LyX-Code
14641 EndLangPreamble
14642 \end_layout
14643
14644 \begin_layout LyX-Code
14645 BabelPreamble
14646 \end_layout
14647
14648 \begin_layout LyX-Code
14649     
14650 \backslash
14651 addto
14652 \backslash
14653 captions$$lang{
14654 \backslash
14655 renewcommand{
14656 \backslash
14657 claimname}{_(Claim)}}
14658 \end_layout
14659
14660 \begin_layout LyX-Code
14661 EndBabelPreamble
14662 \end_layout
14663
14664 \end_deeper
14665 \begin_layout Standard
14666 In principle, any legal LaTeX may appear in the 
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 LangPreamble
14672 \end_layout
14673
14674 \end_inset
14675
14676  and 
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 BabelPreamble
14682 \end_layout
14683
14684 \end_inset
14685
14686  tags, but in practice they will typically look as they do here.
14687  The key to correct translation of the typeset text is the definition of
14688  the LaTeX command 
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693
14694 \backslash
14695 claimname
14696 \end_layout
14697
14698 \end_inset
14699
14700  and its use in 
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705
14706 \backslash
14707 newtheorem
14708 \end_layout
14709
14710 \end_inset
14711
14712 .
14713  
14714 \end_layout
14715
14716 \begin_layout Standard
14717 The 
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 LangPreamble
14723 \end_layout
14724
14725 \end_inset
14726
14727  tag provides for internationalization based upon the overall language of
14728  the document.
14729  The contents of the tag will be included in the preamble, just as with
14730  the 
14731 \begin_inset Flex Code
14732 status collapsed
14733
14734 \begin_layout Plain Layout
14735 Preamble
14736 \end_layout
14737
14738 \end_inset
14739
14740  tag.
14741  What makes it special is the use of the 
14742 \begin_inset Quotes eld
14743 \end_inset
14744
14745 function
14746 \begin_inset Quotes erd
14747 \end_inset
14748
14749  
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754 _()
14755 \end_layout
14756
14757 \end_inset
14758
14759 , which will be replaced, when LyX produces LaTeX output, with the translation
14760  of its argument into the document language.
14761 \end_layout
14762
14763 \begin_layout Standard
14764 The 
14765 \begin_inset Flex Code
14766 status collapsed
14767
14768 \begin_layout Plain Layout
14769 BabelPreamble
14770 \end_layout
14771
14772 \end_inset
14773
14774  tag is more complex, since it is meant to provide support for multi-language
14775  documents and so offers an interface to the 
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 babel
14781 \end_layout
14782
14783 \end_inset
14784
14785  package.
14786  Its contents will be added to the preamble once for each language that
14787  appears in the document.
14788  In this case, the argument to 
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 _()
14794 \end_layout
14795
14796 \end_inset
14797
14798  will be replaced with its translation into the language in question; the
14799  expression 
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 $$lang
14805 \end_layout
14806
14807 \end_inset
14808
14809  is replaced by the language name (as used by the babel package).
14810 \end_layout
14811
14812 \begin_layout Standard
14813 A German document that also included a French section would thus have the
14814  following in the preamble:
14815 \end_layout
14816
14817 \begin_layout LyX-Code
14818
14819 \backslash
14820 addto
14821 \backslash
14822 captionsfrench{
14823 \backslash
14824 renewcommand{
14825 \backslash
14826 claimname}{Affirmation}}
14827 \begin_inset Newline newline
14828 \end_inset
14829
14830
14831 \backslash
14832 addto
14833 \backslash
14834 captionsngerman{
14835 \backslash
14836 renewcommand{
14837 \backslash
14838 claimname}{Behauptung}}
14839 \begin_inset Newline newline
14840 \end_inset
14841
14842
14843 \backslash
14844 providecommand{
14845 \backslash
14846 claimname}{Behauptung}
14847 \end_layout
14848
14849 \begin_layout Standard
14850 LaTeX and 
14851 \begin_inset Flex Code
14852 status collapsed
14853
14854 \begin_layout Plain Layout
14855 babel
14856 \end_layout
14857
14858 \end_inset
14859
14860  will then conspire to produce the correct text in the output.
14861 \end_layout
14862
14863 \begin_layout Standard
14864 One important point to note here is that the translations are provided by
14865  LyX itself, through the file 
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 layouttranslations
14871 \end_layout
14872
14873 \end_inset
14874
14875 .
14876  This means, in effect, that 
14877 \begin_inset Flex Code
14878 status collapsed
14879
14880 \begin_layout Plain Layout
14881 LangPreamble
14882 \end_layout
14883
14884 \end_inset
14885
14886  and 
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 BabelPreamble
14892 \end_layout
14893
14894 \end_inset
14895
14896  are really only of use in layout files that are provided with LyX, since
14897  text entered in user-created layout files will not be seen by LyX's internation
14898 alization routines unless the 
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903 layouttranslations
14904 \end_layout
14905
14906 \end_inset
14907
14908  file is modified accordingly.
14909  That said, however, any layout created with the intention that it will
14910  be included with LyX should use these tags where appropriate.
14911  Please note that the paragraph style translations provided by LyX will
14912  never change with a minor update (e.
14913 \begin_inset space \thinspace{}
14914 \end_inset
14915
14916 g.
14917 \begin_inset space \space{}
14918 \end_inset
14919
14920 from version 2.1.x to 2.1.y).
14921  It is however quite likely that a major update (e.
14922 \begin_inset space \thinspace{}
14923 \end_inset
14924
14925 g.
14926 \begin_inset space \space{}
14927 \end_inset
14928
14929 from 2.0.x to 2.1.y) will introduce new translations or corrections.
14930 \end_layout
14931
14932 \begin_layout Subsection
14933 Floats
14934 \begin_inset CommandInset label
14935 LatexCommand label
14936 name "sub:Floats"
14937
14938 \end_inset
14939
14940
14941 \end_layout
14942
14943 \begin_layout Standard
14944 It is necessary to define the floats (
14945 \begin_inset Flex MenuItem
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 figure
14950 \end_layout
14951
14952 \end_inset
14953
14954
14955 \begin_inset Flex MenuItem
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 table
14960 \end_layout
14961
14962 \end_inset
14963
14964 , \SpecialChar \ldots{}
14965 ) in the text class itself.
14966  Standard floats are included in the file 
14967 \begin_inset Flex Code
14968 status collapsed
14969
14970 \begin_layout Plain Layout
14971 stdfloats.inc
14972 \end_layout
14973
14974 \end_inset
14975
14976 , so you may have to do no more than add
14977 \end_layout
14978
14979 \begin_layout LyX-Code
14980 Input stdfloats.inc
14981 \end_layout
14982
14983 \begin_layout Standard
14984 to your layout file.
14985  If you want to implement a text class that proposes some other float types
14986  (like the AGU class bundled with LyX), the information below will hopefully
14987  help you:
14988 \end_layout
14989
14990 \begin_layout Description
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 Extension
14996 \end_layout
14997
14998 \end_inset
14999
15000  [
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 string
15006 \end_layout
15007
15008 \end_inset
15009
15010 =
15011 \begin_inset Quotes erd
15012 \end_inset
15013
15014
15015 \begin_inset Quotes erd
15016 \end_inset
15017
15018 ] The file name extension of an auxiliary file for the list of figures (or
15019  whatever).
15020  LaTeX writes the captions to this file.
15021 \end_layout
15022
15023 \begin_layout Description
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 GuiName
15029 \end_layout
15030
15031 \end_inset
15032
15033  [
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 string
15039 \end_layout
15040
15041 \end_inset
15042
15043 =
15044 \begin_inset Quotes erd
15045 \end_inset
15046
15047
15048 \begin_inset Quotes erd
15049 \end_inset
15050
15051 ] The string that will be used in the menus and also for the caption.
15052  This is translated to the current language if babel is used.
15053 \end_layout
15054
15055 \begin_layout Description
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060 HTML*
15061 \end_layout
15062
15063 \end_inset
15064
15065  These tags control the XHTML output.
15066  See 
15067 \begin_inset CommandInset ref
15068 LatexCommand ref
15069 reference "sec:Tags-for-XHTML"
15070
15071 \end_inset
15072
15073 .
15074 \end_layout
15075
15076 \begin_layout Description
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 IsPredefined
15082 \end_layout
15083
15084 \end_inset
15085
15086  [
15087 \emph on
15088
15089 \begin_inset Flex Code
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 0
15094 \end_layout
15095
15096 \end_inset
15097
15098
15099 \emph default
15100 ,
15101 \begin_inset space \thinspace{}
15102 \end_inset
15103
15104
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 1
15110 \end_layout
15111
15112 \end_inset
15113
15114 ] Indicates whether the float is already defined in the document class or
15115  if instead the LaTeX package 
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 float
15121 \end_layout
15122
15123 \end_inset
15124
15125  needs to be loaded to define it on-the-fly.
15126  The default is 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 0
15132 \end_layout
15133
15134 \end_inset
15135
15136 , which means: 
15137 \begin_inset Flex Code
15138 status collapsed
15139
15140 \begin_layout Plain Layout
15141 float
15142 \end_layout
15143
15144 \end_inset
15145
15146  is used.
15147  It should be set to 
15148 \begin_inset Flex Code
15149 status collapsed
15150
15151 \begin_layout Plain Layout
15152 1
15153 \end_layout
15154
15155 \end_inset
15156
15157  if the float is already defined by the LaTeX document class.
15158 \end_layout
15159
15160 \begin_layout Description
15161 \begin_inset Flex Code
15162 status collapsed
15163
15164 \begin_layout Plain Layout
15165 ListCommand
15166 \end_layout
15167
15168 \end_inset
15169
15170  [
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 string
15176 \end_layout
15177
15178 \end_inset
15179
15180 =
15181 \begin_inset Quotes erd
15182 \end_inset
15183
15184
15185 \begin_inset Quotes erd
15186 \end_inset
15187
15188 ] The command used to generate a list of floats of this type; the leading
15189  `
15190 \backslash
15191 ' must be omitted.
15192  This 
15193 \emph on
15194 must
15195 \emph default
15196  be given if 
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201 UsesFloatPkg
15202 \end_layout
15203
15204 \end_inset
15205
15206  is false, since there is no standard way to generate this command.
15207  It is ignored if 
15208 \begin_inset Flex Code
15209 status collapsed
15210
15211 \begin_layout Plain Layout
15212 UsesFloatPkg
15213 \end_layout
15214
15215 \end_inset
15216
15217  is true, since in that case there is a standard way to define the command.
15218 \end_layout
15219
15220 \begin_layout Description
15221 \begin_inset Flex Code
15222 status collapsed
15223
15224 \begin_layout Plain Layout
15225 ListName
15226 \end_layout
15227
15228 \end_inset
15229
15230  [
15231 \begin_inset Flex Code
15232 status collapsed
15233
15234 \begin_layout Plain Layout
15235 string
15236 \end_layout
15237
15238 \end_inset
15239
15240 =
15241 \begin_inset Quotes erd
15242 \end_inset
15243
15244
15245 \begin_inset Quotes erd
15246 \end_inset
15247
15248 ] A title for a list of floats of this kind (list of figures, tables, or
15249  whatever).
15250  It is used for the screen label within LyX, it is used by LaTeX for the
15251  title and it is used as the title in the XHTML output.
15252  It will be translated to the document language.
15253 \end_layout
15254
15255 \begin_layout Description
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 NumberWithin
15261 \end_layout
15262
15263 \end_inset
15264
15265  [
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 string
15271 \end_layout
15272
15273 \end_inset
15274
15275 =
15276 \begin_inset Quotes erd
15277 \end_inset
15278
15279
15280 \begin_inset Quotes erd
15281 \end_inset
15282
15283 ] This (optional) argument determines whether floats of this class will
15284  be numbered within some sectional unit of the document.
15285  For example, if 
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  is set to 
15296 \begin_inset Quotes eld
15297 \end_inset
15298
15299
15300 \begin_inset Flex Code
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 chapter
15305 \end_layout
15306
15307 \end_inset
15308
15309
15310 \begin_inset Quotes erd
15311 \end_inset
15312
15313 , the floats will be numbered within chapters.
15314  
15315 \end_layout
15316
15317 \begin_layout Description
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 Placement
15323 \end_layout
15324
15325 \end_inset
15326
15327  [
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 string
15333 \end_layout
15334
15335 \end_inset
15336
15337 =
15338 \begin_inset Quotes erd
15339 \end_inset
15340
15341
15342 \begin_inset Quotes erd
15343 \end_inset
15344
15345 ] The default placement for the given class of floats.
15346  The string should be as in standard LaTeX: 
15347 \begin_inset Flex Code
15348 status collapsed
15349
15350 \begin_layout Plain Layout
15351 t
15352 \end_layout
15353
15354 \end_inset
15355
15356
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 b
15362 \end_layout
15363
15364 \end_inset
15365
15366
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 p
15372 \end_layout
15373
15374 \end_inset
15375
15376  and 
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 h
15382 \end_layout
15383
15384 \end_inset
15385
15386  for top, bottom, page, and here, respectively.
15387 \begin_inset Foot
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 Note that the order of these letters in the string is irrelevant, like in
15392  LaTeX.
15393 \end_layout
15394
15395 \end_inset
15396
15397  On top of that there is a new type, 
15398 \begin_inset Flex Code
15399 status collapsed
15400
15401 \begin_layout Plain Layout
15402 H
15403 \end_layout
15404
15405 \end_inset
15406
15407 , which does not really correspond to a float, since it means: put it 
15408 \begin_inset Quotes eld
15409 \end_inset
15410
15411 here
15412 \begin_inset Quotes erd
15413 \end_inset
15414
15415  and nowhere else.
15416  Note however that the 
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 H
15422 \end_layout
15423
15424 \end_inset
15425
15426  specifier is special and, because of implementation details, cannot be
15427  used in non-built in float types.
15428  If you do not understand what this means, just use 
15429 \begin_inset Quotes eld
15430 \end_inset
15431
15432
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 tbp
15438 \end_layout
15439
15440 \end_inset
15441
15442
15443 \begin_inset Quotes erd
15444 \end_inset
15445
15446 .
15447 \end_layout
15448
15449 \begin_layout Description
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 RefPrefix
15455 \end_layout
15456
15457 \end_inset
15458
15459  [
15460 \begin_inset Flex Code
15461 status collapsed
15462
15463 \begin_layout Plain Layout
15464 string
15465 \end_layout
15466
15467 \end_inset
15468
15469 ] The prefix to use when creating labels referring to floats of this type.
15470  This allows the use of formatted references.
15471  Note that you can remove any 
15472 \begin_inset Flex Code
15473 status collapsed
15474
15475 \begin_layout Plain Layout
15476 RefPrefix
15477 \end_layout
15478
15479 \end_inset
15480
15481  set by a copied style by using the special value 
15482 \begin_inset Quotes eld
15483 \end_inset
15484
15485 OFF
15486 \begin_inset Quotes erd
15487 \end_inset
15488
15489 , which must be all caps.
15490 \end_layout
15491
15492 \begin_layout Description
15493 \begin_inset Flex Code
15494 status collapsed
15495
15496 \begin_layout Plain Layout
15497 Style
15498 \end_layout
15499
15500 \end_inset
15501
15502  [
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 string
15508 \end_layout
15509
15510 \end_inset
15511
15512 =
15513 \begin_inset Quotes erd
15514 \end_inset
15515
15516
15517 \begin_inset Quotes erd
15518 \end_inset
15519
15520 ] The style used when defining the float using 
15521 \begin_inset Flex Code
15522 status collapsed
15523
15524 \begin_layout Plain Layout
15525
15526 \backslash
15527 newfloat
15528 \end_layout
15529
15530 \end_inset
15531
15532 .
15533 \end_layout
15534
15535 \begin_layout Description
15536 \begin_inset Flex Code
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540 Type
15541 \end_layout
15542
15543 \end_inset
15544
15545  [
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 string
15551 \end_layout
15552
15553 \end_inset
15554
15555 =
15556 \begin_inset Quotes erd
15557 \end_inset
15558
15559
15560 \begin_inset Quotes erd
15561 \end_inset
15562
15563 ] The 
15564 \begin_inset Quotes eld
15565 \end_inset
15566
15567 type
15568 \begin_inset Quotes erd
15569 \end_inset
15570
15571  of the new class of floats, like program or algorithm.
15572  After the appropriate 
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577
15578 \backslash
15579 newfloat
15580 \end_layout
15581
15582 \end_inset
15583
15584 , commands such as 
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \backslash
15591 begin{program}
15592 \end_layout
15593
15594 \end_inset
15595
15596  or 
15597 \begin_inset Flex Code
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601
15602 \backslash
15603 end{algorithm*}
15604 \end_layout
15605
15606 \end_inset
15607
15608  will be available.
15609 \end_layout
15610
15611 \begin_layout Description
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616 UsesFloatPkg
15617 \end_layout
15618
15619 \end_inset
15620
15621  [
15622 \begin_inset Flex Code
15623 status collapsed
15624
15625 \begin_layout Plain Layout
15626 0
15627 \end_layout
15628
15629 \end_inset
15630
15631 ,
15632 \begin_inset space \thinspace{}
15633 \end_inset
15634
15635
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640
15641 \emph on
15642 1
15643 \end_layout
15644
15645 \end_inset
15646
15647 ] Specifies whether this float is defined using the LaTeX package 
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 float
15653 \end_layout
15654
15655 \end_inset
15656
15657 , either by the class file, another package or on-the-fly by LyX itself.
15658 \end_layout
15659
15660 \begin_layout Standard
15661 Note that defining a float with type 
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666
15667 \emph on
15668 type
15669 \end_layout
15670
15671 \end_inset
15672
15673  automatically defines the corresponding counter with name 
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678
15679 \emph on
15680 type
15681 \end_layout
15682
15683 \end_inset
15684
15685 .
15686 \end_layout
15687
15688 \begin_layout Subsection
15689 Flex insets and InsetLayout
15690 \begin_inset CommandInset label
15691 LatexCommand label
15692 name "sub:Flex-insets-and"
15693
15694 \end_inset
15695
15696
15697 \end_layout
15698
15699 \begin_layout Standard
15700 Flex insets come in three different kinds: 
15701 \end_layout
15702
15703 \begin_layout Itemize
15704 character style (
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 CharStyle
15710 \end_layout
15711
15712 \end_inset
15713
15714 ): These define semantic markup corresponding to such LaTeX commands as
15715  
15716 \begin_inset Flex Code
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720
15721 \backslash
15722 noun
15723 \end_layout
15724
15725 \end_inset
15726
15727  and 
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732
15733 \backslash
15734 code
15735 \end_layout
15736
15737 \end_inset
15738
15739 .
15740 \end_layout
15741
15742 \begin_layout Itemize
15743 user custom (
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748 Custom
15749 \end_layout
15750
15751 \end_inset
15752
15753 ): These can be used to define custom collapsible insets, similar to TeX
15754  code, footnote, and the like.
15755  An obvious example is an endnote inset, which is defined in the 
15756 \begin_inset Flex Code
15757 status collapsed
15758
15759 \begin_layout Plain Layout
15760 endnote
15761 \end_layout
15762
15763 \end_inset
15764
15765  module.
15766 \end_layout
15767
15768 \begin_layout Itemize
15769 XML elements (
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 Element
15775 \end_layout
15776
15777 \end_inset
15778
15779 ): For use with DocBook classes.
15780 \end_layout
15781
15782 \begin_layout Standard
15783 Flex insets are defined using the 
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 InsetLayout
15789 \end_layout
15790
15791 \end_inset
15792
15793  tag, which shall be explained in a moment.
15794 \end_layout
15795
15796 \begin_layout Standard
15797 The 
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802 InsetLayout
15803 \end_layout
15804
15805 \end_inset
15806
15807  tag also serves another function: It can be used to customize the general
15808  layout of many different types of insets.
15809  Currently, 
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 InsetLayout
15815 \end_layout
15816
15817 \end_inset
15818
15819  can be used to customize the layout parameters for footnotes, marginal
15820  notes, note insets, TeX code (ERT) insets, branches, listings, indexes,
15821  boxes, tables, algorithms, URLs, and captions, as well as to define Flex
15822  insets.
15823 \end_layout
15824
15825 \begin_layout Standard
15826 The 
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 InsetLayout
15832 \end_layout
15833
15834 \end_inset
15835
15836  definition must begin with a line of the form:
15837 \end_layout
15838
15839 \begin_layout LyX-Code
15840 InsetLayout <type>
15841 \end_layout
15842
15843 \begin_layout Standard
15844 Here 
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849 <Type>
15850 \end_layout
15851
15852 \end_inset
15853
15854  indicates the inset whose layout is being defined, and here there are four
15855  cases.
15856 \end_layout
15857
15858 \begin_layout Enumerate
15859 The layout for a pre-existing inset is being modified.
15860  In this case, can be 
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865 <Type>
15866 \end_layout
15867
15868 \end_inset
15869
15870  any one of the following: 
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 Algorithm
15876 \end_layout
15877
15878 \end_inset
15879
15880
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 Branch
15886 \end_layout
15887
15888 \end_inset
15889
15890
15891 \begin_inset Flex Code
15892 status collapsed
15893
15894 \begin_layout Plain Layout
15895 Box
15896 \end_layout
15897
15898 \end_inset
15899
15900
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905 Box:shaded
15906 \end_layout
15907
15908 \end_inset
15909
15910
15911 \begin_inset Flex Code
15912 status collapsed
15913
15914 \begin_layout Plain Layout
15915 Caption:Standard
15916 \end_layout
15917
15918 \end_inset
15919
15920
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 ERT
15926 \end_layout
15927
15928 \end_inset
15929
15930
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 Figure
15936 \end_layout
15937
15938 \end_inset
15939
15940
15941 \begin_inset Flex Code
15942 status collapsed
15943
15944 \begin_layout Plain Layout
15945 Foot
15946 \end_layout
15947
15948 \end_inset
15949
15950
15951 \begin_inset Flex Code
15952 status collapsed
15953
15954 \begin_layout Plain Layout
15955 Index
15956 \end_layout
15957
15958 \end_inset
15959
15960
15961 \begin_inset Flex Code
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965 Info
15966 \end_layout
15967
15968 \end_inset
15969
15970
15971 \begin_inset Flex Code
15972 status collapsed
15973
15974 \begin_layout Plain Layout
15975 Info:menu
15976 \end_layout
15977
15978 \end_inset
15979
15980
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 Info:shortcut
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:shortcuts
15996 \end_layout
15997
15998 \end_inset
15999
16000
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 Listings
16006 \end_layout
16007
16008 \end_inset
16009
16010
16011 \begin_inset Flex Code
16012 status collapsed
16013
16014 \begin_layout Plain Layout
16015 Marginal
16016 \end_layout
16017
16018 \end_inset
16019
16020
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 Note:Comment
16026 \end_layout
16027
16028 \end_inset
16029
16030
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 Note:Note
16036 \end_layout
16037
16038 \end_inset
16039
16040
16041 \begin_inset Flex Code
16042 status collapsed
16043
16044 \begin_layout Plain Layout
16045 Note:Greyedout
16046 \end_layout
16047
16048 \end_inset
16049
16050
16051 \begin_inset Flex Code
16052 status collapsed
16053
16054 \begin_layout Plain Layout
16055 Table
16056 \end_layout
16057
16058 \end_inset
16059
16060 , or 
16061 \begin_inset Flex Code
16062 status collapsed
16063
16064 \begin_layout Plain Layout
16065 URL
16066 \end_layout
16067
16068 \end_inset
16069
16070 .
16071 \end_layout
16072
16073 \begin_layout Enumerate
16074 The layout for a Flex inset is being defined.
16075  In this case, 
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 <Type>
16081 \end_layout
16082
16083 \end_inset
16084
16085  must be of the form 
16086 \begin_inset Quotes eld
16087 \end_inset
16088
16089
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094 Flex:<name>
16095 \end_layout
16096
16097 \end_inset
16098
16099
16100 \begin_inset Quotes erd
16101 \end_inset
16102
16103 , where 
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 name
16109 \end_layout
16110
16111 \end_inset
16112
16113  may be be any valid identifier not used by a pre-existing Flex inset.
16114  The identifier may include spaces, but in that case the whole thing must
16115  be wrapped in quotes.
16116  Note that the definition of a flex inset 
16117 \emph on
16118 must 
16119 \emph default
16120 also include a 
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 LyXType
16126 \end_layout
16127
16128 \end_inset
16129
16130  entry, declaring which type of inset it defines.
16131 \end_layout
16132
16133 \begin_layout Enumerate
16134 The layout for user specific branch is being defined.
16135  In this case, 
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 <Type>
16141 \end_layout
16142
16143 \end_inset
16144
16145  must be of the form 
16146 \begin_inset Quotes eld
16147 \end_inset
16148
16149
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 Branch:<name>
16155 \end_layout
16156
16157 \end_inset
16158
16159
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163 , where 
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168 name
16169 \end_layout
16170
16171 \end_inset
16172
16173  may be be any valid identifier of branch defined in user's document.
16174  The identifier may include spaces, but in that case the whole thing must
16175  be wrapped in quotes.
16176  The main purpose of this feature is to allow LaTeX wrapping around specific
16177  branches as user needs.
16178 \end_layout
16179
16180 \begin_layout Enumerate
16181 The layout of a user (or class) specific caption is being defined.
16182  In this case, 
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187 <Type>
16188 \end_layout
16189
16190 \end_inset
16191
16192  must be of the form 
16193 \begin_inset Quotes eld
16194 \end_inset
16195
16196
16197 \begin_inset Flex Code
16198 status collapsed
16199
16200 \begin_layout Plain Layout
16201 Caption:<name>
16202 \end_layout
16203
16204 \end_inset
16205
16206
16207 \begin_inset Quotes erd
16208 \end_inset
16209
16210 , where 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 name
16216 \end_layout
16217
16218 \end_inset
16219
16220  specifies the name of the caption as it appears in the menu.
16221  Have a look at the standard caption (
16222 \begin_inset Flex Code
16223 status collapsed
16224
16225 \begin_layout Plain Layout
16226 Caption:Standard
16227 \end_layout
16228
16229 \end_inset
16230
16231 ), the specific captions of the KOMA-Script classes (
16232 \begin_inset Flex Code
16233 status collapsed
16234
16235 \begin_layout Plain Layout
16236 Caption:Above
16237 \end_layout
16238
16239 \end_inset
16240
16241
16242 \begin_inset Flex Code
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 Caption:Below
16247 \end_layout
16248
16249 \end_inset
16250
16251 ) or the module 
16252 \family sans
16253 Multilingual
16254 \begin_inset space ~
16255 \end_inset
16256
16257 Captions 
16258 \family default
16259 (
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 Caption:Bicaption
16265 \end_layout
16266
16267 \end_inset
16268
16269 ) for applications.
16270 \end_layout
16271
16272 \begin_layout Standard
16273 The 
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 InsetLayout
16279 \end_layout
16280
16281 \end_inset
16282
16283  definition can contain the following entries:
16284 \end_layout
16285
16286 \begin_layout Description
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291 Argument
16292 \end_layout
16293
16294 \end_inset
16295
16296  [
16297 \begin_inset Flex Code
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301 int
16302 \end_layout
16303
16304 \end_inset
16305
16306 ] Defines argument number of a command\SpecialChar \slash{}
16307 environment associated with the current
16308  layout.
16309  The definition must end with 
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 EndArgument
16315 \end_layout
16316
16317 \end_inset
16318
16319 .
16320  See 
16321 \begin_inset CommandInset ref
16322 LatexCommand ref
16323 reference "sub:Paragraph-Styles"
16324
16325 \end_inset
16326
16327  for details.
16328 \end_layout
16329
16330 \begin_layout Description
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 BabelPreamble
16336 \end_layout
16337
16338 \end_inset
16339
16340  Preamble for changing language commands; see 
16341 \begin_inset CommandInset ref
16342 LatexCommand ref
16343 reference "sub:I18n"
16344
16345 \end_inset
16346
16347 .
16348 \end_layout
16349
16350 \begin_layout Description
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 BgColor
16356 \end_layout
16357
16358 \end_inset
16359
16360  [
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 <name>
16366 \end_layout
16367
16368 \end_inset
16369
16370 ] The color for the inset's background.
16371  See 
16372 \begin_inset CommandInset ref
16373 LatexCommand ref
16374 reference "chap:Names-of-colors"
16375
16376 \end_inset
16377
16378  for a list of the available color names.
16379 \end_layout
16380
16381 \begin_layout Description
16382 \begin_inset Flex Code
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386 ContentAsLabel
16387 \end_layout
16388
16389 \end_inset
16390
16391  [
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396
16397 \emph on
16398 0
16399 \end_layout
16400
16401 \end_inset
16402
16403 ,
16404 \begin_inset space \thinspace{}
16405 \end_inset
16406
16407
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 1
16413 \end_layout
16414
16415 \end_inset
16416
16417 ] Whether to use the content of the inset as the label, when the inset is
16418  closed.
16419  Default is false.
16420 \end_layout
16421
16422 \begin_layout Description
16423 \begin_inset Flex Code
16424 status collapsed
16425
16426 \begin_layout Plain Layout
16427 CopyStyle
16428 \end_layout
16429
16430 \end_inset
16431
16432  [
16433 \begin_inset Flex Code
16434 status collapsed
16435
16436 \begin_layout Plain Layout
16437 <type>
16438 \end_layout
16439
16440 \end_inset
16441
16442 ] As with paragraph styles, see 
16443 \begin_inset CommandInset ref
16444 LatexCommand ref
16445 reference "sub:Paragraph-Styles"
16446
16447 \end_inset
16448
16449 .
16450  Note that you need to specify the complete type, e.
16451 \begin_inset space \thinspace{}
16452 \end_inset
16453
16454 g.
16455 \begin_inset space ~
16456 \end_inset
16457
16458
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463 CopyStyle Flex:<name>
16464 \end_layout
16465
16466 \end_inset
16467
16468 .
16469 \end_layout
16470
16471 \begin_layout Description
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476 CustomPars
16477 \end_layout
16478
16479 \end_inset
16480
16481  [
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486
16487 \emph on
16488 0
16489 \end_layout
16490
16491 \end_inset
16492
16493 ,
16494 \begin_inset space \thinspace{}
16495 \end_inset
16496
16497
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 1
16503 \end_layout
16504
16505 \end_inset
16506
16507 ] Indicates whether the user may employ the Paragraph Settings dialog to
16508  customize the paragraph.
16509 \end_layout
16510
16511 \begin_layout Description
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 Decoration
16517 \end_layout
16518
16519 \end_inset
16520
16521  can be 
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526 Classic
16527 \end_layout
16528
16529 \end_inset
16530
16531
16532 \begin_inset Flex Code
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 Minimalistic
16537 \end_layout
16538
16539 \end_inset
16540
16541 , or 
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 Conglomerate
16547 \end_layout
16548
16549 \end_inset
16550
16551 , describing the rendering style used for the inset's frame and buttons.
16552  Footnotes generally use 
16553 \begin_inset Flex Code
16554 status collapsed
16555
16556 \begin_layout Plain Layout
16557 Classic
16558 \end_layout
16559
16560 \end_inset
16561
16562 , ERT insets generally 
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 Minimalistic
16568 \end_layout
16569
16570 \end_inset
16571
16572 , and character styles 
16573 \begin_inset Flex Code
16574 status collapsed
16575
16576 \begin_layout Plain Layout
16577 Conglomerate
16578 \end_layout
16579
16580 \end_inset
16581
16582 .
16583 \end_layout
16584
16585 \begin_layout Description
16586 \begin_inset Flex Code
16587 status collapsed
16588
16589 \begin_layout Plain Layout
16590 Display
16591 \end_layout
16592
16593 \end_inset
16594
16595  [
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600 0
16601 \end_layout
16602
16603 \end_inset
16604
16605 ,
16606 \emph on
16607
16608 \begin_inset space \thinspace{}
16609 \end_inset
16610
16611
16612 \emph default
16613
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618
16619 \emph on
16620 1
16621 \end_layout
16622
16623 \end_inset
16624
16625 ] Only useful if 
16626 \begin_inset Flex Code
16627 status collapsed
16628
16629 \begin_layout Plain Layout
16630 LatexType
16631 \end_layout
16632
16633 \end_inset
16634
16635  is 
16636 \begin_inset Flex Code
16637 status collapsed
16638
16639 \begin_layout Plain Layout
16640 Environment
16641 \end_layout
16642
16643 \end_inset
16644
16645 .
16646  Indicates whether the environment will stand on its own in the output or
16647  will appear inline with the surrounding text.
16648  If set to false, it is supposed that the LaTeX environment ignores white
16649  space (including one newline character) after the 
16650 \begin_inset Flex Code
16651 status collapsed
16652
16653 \begin_layout Plain Layout
16654
16655 \backslash
16656 begin{
16657 \emph on
16658 LatexName
16659 \emph default
16660 }
16661 \end_layout
16662
16663 \end_inset
16664
16665  and 
16666 \begin_inset Flex Code
16667 status collapsed
16668
16669 \begin_layout Plain Layout
16670
16671 \backslash
16672 end{
16673 \emph on
16674 LatexName
16675 \emph default
16676 }
16677 \end_layout
16678
16679 \end_inset
16680
16681  tags.
16682  Default is true.
16683 \end_layout
16684
16685 \begin_layout Description
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 End
16691 \end_layout
16692
16693 \end_inset
16694
16695  Required at the end of the 
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 InsetLayout
16701 \end_layout
16702
16703 \end_inset
16704
16705  declarations.
16706 \end_layout
16707
16708 \begin_layout Description
16709 \begin_inset Flex Code
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 Font
16714 \end_layout
16715
16716 \end_inset
16717
16718  The font used for both the text body 
16719 \emph on
16720 and
16721 \emph default
16722  the label.
16723  See 
16724 \begin_inset CommandInset ref
16725 LatexCommand ref
16726 reference "sub:Font-description"
16727
16728 \end_inset
16729
16730 .
16731  Note that defining this font automatically defines the 
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 LabelFont
16737 \end_layout
16738
16739 \end_inset
16740
16741  to the same value, so define this first and define 
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 LabelFont
16747 \end_layout
16748
16749 \end_inset
16750
16751  later if you want them to be different.
16752 \end_layout
16753
16754 \begin_layout Description
16755 \begin_inset Flex Code
16756 status collapsed
16757
16758 \begin_layout Plain Layout
16759 ForceLocalFontSwitch
16760 \end_layout
16761
16762 \end_inset
16763
16764  [
16765 \begin_inset Flex Code
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769
16770 \emph on
16771 0
16772 \end_layout
16773
16774 \end_inset
16775
16776 ,
16777 \begin_inset space \thinspace{}
16778 \end_inset
16779
16780
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 1
16786 \end_layout
16787
16788 \end_inset
16789
16790 ] When using babel, always use a local font switch (
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795
16796 \backslash
16797 foreignlanguage
16798 \end_layout
16799
16800 \end_inset
16801
16802 ), never a global one (such as 
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807
16808 \backslash
16809 selectlanguage
16810 \end_layout
16811
16812 \end_inset
16813
16814 ).
16815 \end_layout
16816
16817 \begin_layout Description
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 ForceLTR
16823 \end_layout
16824
16825 \end_inset
16826
16827  [
16828 \begin_inset Flex Code
16829 status collapsed
16830
16831 \begin_layout Plain Layout
16832
16833 \emph on
16834 0
16835 \end_layout
16836
16837 \end_inset
16838
16839 ,
16840 \begin_inset space \thinspace{}
16841 \end_inset
16842
16843
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 1
16849 \end_layout
16850
16851 \end_inset
16852
16853 ] Force the 
16854 \begin_inset Quotes eld
16855 \end_inset
16856
16857 latex
16858 \begin_inset Quotes erd
16859 \end_inset
16860
16861  language, leading to Left-to-Right (Latin) output, e.
16862 \begin_inset space \thinspace{}
16863 \end_inset
16864
16865 g.
16866 \begin_inset space \space{}
16867 \end_inset
16868
16869 in TeX code or URL.
16870  A kludge.
16871 \end_layout
16872
16873 \begin_layout Description
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878 ForcePlain
16879 \end_layout
16880
16881 \end_inset
16882
16883  [
16884 \begin_inset Flex Code
16885 status collapsed
16886
16887 \begin_layout Plain Layout
16888
16889 \emph on
16890 0
16891 \end_layout
16892
16893 \end_inset
16894
16895 ,
16896 \begin_inset space \thinspace{}
16897 \end_inset
16898
16899
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904 1
16905 \end_layout
16906
16907 \end_inset
16908
16909 ] Indicates whether the 
16910 \begin_inset Flex Code
16911 status collapsed
16912
16913 \begin_layout Plain Layout
16914 PlainLayout
16915 \end_layout
16916
16917 \end_inset
16918
16919  should be used or, instead, the user can change the paragraph style used
16920  in the inset.
16921  Default is false.
16922 \end_layout
16923
16924 \begin_layout Description
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 FreeSpacing
16930 \end_layout
16931
16932 \end_inset
16933
16934  [
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939
16940 \emph on
16941 0
16942 \end_layout
16943
16944 \end_inset
16945
16946 ,
16947 \begin_inset space \thinspace{}
16948 \end_inset
16949
16950
16951 \begin_inset Flex Code
16952 status collapsed
16953
16954 \begin_layout Plain Layout
16955 1
16956 \end_layout
16957
16958 \end_inset
16959
16960 ] As with paragraph styles, see 
16961 \begin_inset CommandInset ref
16962 LatexCommand ref
16963 reference "sub:Paragraph-Styles"
16964
16965 \end_inset
16966
16967 .
16968 \end_layout
16969
16970 \begin_layout Description
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 HTML*
16976 \end_layout
16977
16978 \end_inset
16979
16980  These tags control the XHTML output.
16981  See 
16982 \begin_inset CommandInset ref
16983 LatexCommand ref
16984 reference "sec:Tags-for-XHTML"
16985
16986 \end_inset
16987
16988 .
16989 \end_layout
16990
16991 \begin_layout Description
16992 \begin_inset Flex Code
16993 status collapsed
16994
16995 \begin_layout Plain Layout
16996 InToc
16997 \end_layout
16998
16999 \end_inset
17000
17001  [
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006
17007 \emph on
17008 0
17009 \end_layout
17010
17011 \end_inset
17012
17013 ,
17014 \begin_inset space \thinspace{}
17015 \end_inset
17016
17017
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 1
17023 \end_layout
17024
17025 \end_inset
17026
17027 ] Whether to include the contents of this inset in the strings generated
17028  for the `Outline' pane.
17029  One would not, for example, want the content of a footnote in a section
17030  header to be included in the TOC displayed in the outline, but one would
17031  normally want the content of a character style displayed.
17032  Default is false: not to include.
17033 \end_layout
17034
17035 \begin_layout Description
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 KeepEmpty
17041 \end_layout
17042
17043 \end_inset
17044
17045  [
17046 \emph on
17047
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 0
17053 \end_layout
17054
17055 \end_inset
17056
17057
17058 \emph default
17059 ,
17060 \begin_inset space \thinspace{}
17061 \end_inset
17062
17063
17064 \begin_inset Flex Code
17065 status collapsed
17066
17067 \begin_layout Plain Layout
17068 1
17069 \end_layout
17070
17071 \end_inset
17072
17073 ] As with paragraph styles, see 
17074 \begin_inset CommandInset ref
17075 LatexCommand ref
17076 reference "sub:Paragraph-Styles"
17077
17078 \end_inset
17079
17080 .
17081 \end_layout
17082
17083 \begin_layout Description
17084 \begin_inset Flex Code
17085 status collapsed
17086
17087 \begin_layout Plain Layout
17088 LabelFont
17089 \end_layout
17090
17091 \end_inset
17092
17093  The font used for the label.
17094  See 
17095 \begin_inset CommandInset ref
17096 LatexCommand ref
17097 reference "sub:Font-description"
17098
17099 \end_inset
17100
17101 .
17102  Note that this definition can never appear before 
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 Font
17108 \end_layout
17109
17110 \end_inset
17111
17112 , lest it be ineffective.
17113 \end_layout
17114
17115 \begin_layout Description
17116 \begin_inset Flex Code
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 LabelString
17121 \end_layout
17122
17123 \end_inset
17124
17125  [
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 string
17131 \end_layout
17132
17133 \end_inset
17134
17135 =
17136 \begin_inset Quotes erd
17137 \end_inset
17138
17139
17140 \begin_inset Quotes erd
17141 \end_inset
17142
17143 ] What will be displayed on the button or elsewhere as the inset label.
17144  Some inset types (
17145 \begin_inset Flex Code
17146 status collapsed
17147
17148 \begin_layout Plain Layout
17149 TeX code
17150 \end_layout
17151
17152 \end_inset
17153
17154  and 
17155 \begin_inset Flex Code
17156 status collapsed
17157
17158 \begin_layout Plain Layout
17159 Branch
17160 \end_layout
17161
17162 \end_inset
17163
17164 ) modify this label on the fly.
17165 \end_layout
17166
17167 \begin_layout Description
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 LangPreamble
17173 \end_layout
17174
17175 \end_inset
17176
17177  Language dependent preamble; see 
17178 \begin_inset CommandInset ref
17179 LatexCommand ref
17180 reference "sub:I18n"
17181
17182 \end_inset
17183
17184 .
17185 \end_layout
17186
17187 \begin_layout Description
17188 \begin_inset Flex Code
17189 status collapsed
17190
17191 \begin_layout Plain Layout
17192 LatexName
17193 \end_layout
17194
17195 \end_inset
17196
17197  [
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 <name>
17203 \end_layout
17204
17205 \end_inset
17206
17207 ] The name of the corresponding LaTeX stuff.
17208  Either the environment or command name.
17209 \end_layout
17210
17211 \begin_layout Description
17212 \begin_inset Flex Code
17213 status collapsed
17214
17215 \begin_layout Plain Layout
17216 LatexParam
17217 \end_layout
17218
17219 \end_inset
17220
17221  [
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 <parameter>
17227 \end_layout
17228
17229 \end_inset
17230
17231 ] The optional parameter for the corresponding 
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 LatexName
17237 \end_layout
17238
17239 \end_inset
17240
17241  stuff, including possible bracket pairs like 
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246 []
17247 \end_layout
17248
17249 \end_inset
17250
17251 .
17252  This parameter cannot be changed from within LyX (use 
17253 \begin_inset Flex Code
17254 status collapsed
17255
17256 \begin_layout Plain Layout
17257 Argument
17258 \end_layout
17259
17260 \end_inset
17261
17262  for customizable parameters).
17263  It will be output as is after all LaTeX 
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 Argument
17269 \end_layout
17270
17271 \end_inset
17272
17273 s.
17274 \end_layout
17275
17276 \begin_layout Description
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 LatexType
17282 \end_layout
17283
17284 \end_inset
17285
17286  [
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 Command, Environment, None
17292 \end_layout
17293
17294 \end_inset
17295
17296 ] How the style should be translated into LaTeX.
17297 \begin_inset Foot
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 \begin_inset Flex Code
17302 status collapsed
17303
17304 \begin_layout Plain Layout
17305 LatexType
17306 \end_layout
17307
17308 \end_inset
17309
17310  is perhaps a bit misleading, since these rules apply to SGML classes too.
17311  Visit the SGML class files for specific examples.
17312 \end_layout
17313
17314 \end_inset
17315
17316
17317 \end_layout
17318
17319 \begin_deeper
17320 \begin_layout Description
17321 \begin_inset Flex Code
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325 None
17326 \end_layout
17327
17328 \end_inset
17329
17330  means nothing special
17331 \end_layout
17332
17333 \begin_layout Description
17334 \begin_inset Flex Code
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338 Command
17339 \end_layout
17340
17341 \end_inset
17342
17343  means 
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348
17349 \backslash
17350
17351 \emph on
17352 LatexName
17353 \emph default
17354 {\SpecialChar \ldots{}
17355 }
17356 \end_layout
17357
17358 \end_inset
17359
17360
17361 \end_layout
17362
17363 \begin_layout Description
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368 Environment
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 begin{
17381 \emph on
17382 LatexName
17383 \emph default
17384 }\SpecialChar \ldots{}
17385
17386 \backslash
17387 end{
17388 \emph on
17389 LatexName
17390 \emph default
17391 }
17392 \end_layout
17393
17394 \end_inset
17395
17396
17397 \end_layout
17398
17399 \begin_layout Standard
17400 Putting the last few things together, the LaTeX output will be either: 
17401 \end_layout
17402
17403 \begin_layout LyX-Code
17404
17405 \backslash
17406 LatexName[LatexParam]{\SpecialChar \ldots{}
17407 }
17408 \end_layout
17409
17410 \begin_layout Standard
17411 or: 
17412 \end_layout
17413
17414 \begin_layout LyX-Code
17415
17416 \backslash
17417 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
17418  
17419 \backslash
17420 end{LatexName}
17421 \end_layout
17422
17423 \begin_layout Standard
17424 depending upon the LaTeX type.
17425 \end_layout
17426
17427 \end_deeper
17428 \begin_layout Description
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 LeftDelim
17434 \end_layout
17435
17436 \end_inset
17437
17438  [
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 string
17444 \end_layout
17445
17446 \end_inset
17447
17448 ] A string that is put at the beginning of the layout content.
17449  A line break in the output can be indicated by 
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454 <br/>
17455 \end_layout
17456
17457 \end_inset
17458
17459 .
17460 \end_layout
17461
17462 \begin_layout Description
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 LyxType
17468 \end_layout
17469
17470 \end_inset
17471
17472  Can be 
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 charstyle
17478 \end_layout
17479
17480 \end_inset
17481
17482
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 custom
17488 \end_layout
17489
17490 \end_inset
17491
17492
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 element
17498 \end_layout
17499
17500 \end_inset
17501
17502  or 
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 end
17508 \end_layout
17509
17510 \end_inset
17511
17512  (indicating a dummy definition ending definitions of charstyles, etc).
17513  This entry is required in and is only meaningful for Flex insets.
17514  Among other things, it determines on which menu this inset will appear.
17515  Setting 
17516 \begin_inset Flex Code
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520 LyXType
17521 \end_layout
17522
17523 \end_inset
17524
17525  to 
17526 \begin_inset Flex Code
17527 status collapsed
17528
17529 \begin_layout Plain Layout
17530 charstyle
17531 \end_layout
17532
17533 \end_inset
17534
17535  will automatically set 
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 MultiPar
17541 \end_layout
17542
17543 \end_inset
17544
17545  to false.
17546  
17547 \begin_inset Flex Code
17548 status collapsed
17549
17550 \begin_layout Plain Layout
17551 MultiPar
17552 \end_layout
17553
17554 \end_inset
17555
17556  can be set to true for 
17557 \begin_inset Flex Code
17558 status collapsed
17559
17560 \begin_layout Plain Layout
17561 charstyle
17562 \end_layout
17563
17564 \end_inset
17565
17566  insets by setting it 
17567 \emph on
17568 after
17569 \emph default
17570  you set the 
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 LyXType
17576 \end_layout
17577
17578 \end_inset
17579
17580 .
17581 \end_layout
17582
17583 \begin_layout Description
17584 \begin_inset Flex Code
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588 MultiPar
17589 \end_layout
17590
17591 \end_inset
17592
17593  [
17594 \begin_inset Flex Code
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598
17599 \emph on
17600 0
17601 \end_layout
17602
17603 \end_inset
17604
17605 ,
17606 \begin_inset space \thinspace{}
17607 \end_inset
17608
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 1
17615 \end_layout
17616
17617 \end_inset
17618
17619 ] Whether multiple paragraphs are permitted in this inset.
17620  This will also set 
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 CustomPars
17626 \end_layout
17627
17628 \end_inset
17629
17630  to the same value and 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 ForcePlain
17636 \end_layout
17637
17638 \end_inset
17639
17640  to the opposite value.
17641  These can be reset to other values, if they are used 
17642 \emph on
17643 after
17644 \emph default
17645  
17646 \begin_inset Flex Code
17647 status collapsed
17648
17649 \begin_layout Plain Layout
17650 MultiPar
17651 \end_layout
17652
17653 \end_inset
17654
17655 .
17656  Default is true.
17657 \end_layout
17658
17659 \begin_layout Description
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 NeedProtect
17665 \end_layout
17666
17667 \end_inset
17668
17669  [
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674
17675 \emph on
17676 0
17677 \end_layout
17678
17679 \end_inset
17680
17681 ,
17682 \begin_inset space \thinspace{}
17683 \end_inset
17684
17685
17686 \begin_inset Flex Code
17687 status collapsed
17688
17689 \begin_layout Plain Layout
17690 1
17691 \end_layout
17692
17693 \end_inset
17694
17695 ] Whether fragile commands in this inset should be 
17696 \begin_inset Flex Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700
17701 \backslash
17702 protect
17703 \end_layout
17704
17705 \end_inset
17706
17707 'ed.
17708  (Note: This is 
17709 \emph on
17710 not
17711 \emph default
17712  whether the command should itself be protected.) Default is false.
17713 \end_layout
17714
17715 \begin_layout Description
17716 \begin_inset Flex Code
17717 status collapsed
17718
17719 \begin_layout Plain Layout
17720 NoInsetLayout
17721 \end_layout
17722
17723 \end_inset
17724
17725  [
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 <layout>
17731 \end_layout
17732
17733 \end_inset
17734
17735 ] Deletes an existing 
17736 \begin_inset Flex Code
17737 status collapsed
17738
17739 \begin_layout Plain Layout
17740 InsetLayout
17741 \end_layout
17742
17743 \end_inset
17744
17745 .
17746 \end_layout
17747
17748 \begin_layout Description
17749 \begin_inset Flex Code
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 ParbreakIsNewline
17754 \end_layout
17755
17756 \end_inset
17757
17758  [
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763
17764 \emph on
17765 0
17766 \end_layout
17767
17768 \end_inset
17769
17770 ,
17771 \begin_inset space \thinspace{}
17772 \end_inset
17773
17774
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 1
17780 \end_layout
17781
17782 \end_inset
17783
17784 ] As with paragraph styles, see 
17785 \begin_inset CommandInset ref
17786 LatexCommand ref
17787 reference "sub:Paragraph-Styles"
17788
17789 \end_inset
17790
17791 .
17792  Default is false.
17793 \end_layout
17794
17795 \begin_layout Description
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 PassThru
17801 \end_layout
17802
17803 \end_inset
17804
17805  [
17806 \begin_inset Flex Code
17807 status collapsed
17808
17809 \begin_layout Plain Layout
17810
17811 \emph on
17812 0
17813 \end_layout
17814
17815 \end_inset
17816
17817 ,
17818 \begin_inset space \thinspace{}
17819 \end_inset
17820
17821
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 1
17827 \end_layout
17828
17829 \end_inset
17830
17831 ] As with paragraph styles, see 
17832 \begin_inset CommandInset ref
17833 LatexCommand ref
17834 reference "sub:Paragraph-Styles"
17835
17836 \end_inset
17837
17838 .
17839  Default is false.
17840 \end_layout
17841
17842 \begin_layout Description
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 Preamble
17848 \end_layout
17849
17850 \end_inset
17851
17852  As with paragraph styles, see 
17853 \begin_inset CommandInset ref
17854 LatexCommand ref
17855 reference "sub:Paragraph-Styles"
17856
17857 \end_inset
17858
17859 .
17860 \end_layout
17861
17862 \begin_layout Description
17863 \begin_inset Flex Code
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867 RefPrefix
17868 \end_layout
17869
17870 \end_inset
17871
17872  [
17873 \begin_inset Flex Code
17874 status collapsed
17875
17876 \begin_layout Plain Layout
17877 string
17878 \end_layout
17879
17880 \end_inset
17881
17882 ] The prefix to use when creating labels referring to insets of this type.
17883  This allows the use of formatted references.
17884 \end_layout
17885
17886 \begin_layout Description
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891 Requires
17892 \end_layout
17893
17894 \end_inset
17895
17896  [
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901 string
17902 \end_layout
17903
17904 \end_inset
17905
17906 ] As with paragraph styles, see 
17907 \begin_inset CommandInset ref
17908 LatexCommand ref
17909 reference "sub:Paragraph-Styles"
17910
17911 \end_inset
17912
17913 .
17914 \end_layout
17915
17916 \begin_layout Description
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 ResetArgs
17922 \end_layout
17923
17924 \end_inset
17925
17926  [
17927 \begin_inset Flex Code
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931
17932 \emph on
17933 0
17934 \end_layout
17935
17936 \end_inset
17937
17938 ,
17939 \begin_inset space \thinspace{}
17940 \end_inset
17941
17942
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 1
17948 \end_layout
17949
17950 \end_inset
17951
17952 ] Resets the LaTeX arguments of this layout (as defined via the 
17953 \begin_inset Flex Code
17954 status collapsed
17955
17956 \begin_layout Plain Layout
17957 Argument
17958 \end_layout
17959
17960 \end_inset
17961
17962  tag).
17963  This is useful if you have copied a style via 
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 CopyStyle
17969 \end_layout
17970
17971 \end_inset
17972
17973 , but you do not want to inherit its (required and optional) arguments.
17974 \end_layout
17975
17976 \begin_layout Description
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 ResetsFont
17982 \end_layout
17983
17984 \end_inset
17985
17986  [
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 0
17992 \end_layout
17993
17994 \end_inset
17995
17996 ,
17997 \begin_inset space \thinspace{}
17998 \end_inset
17999
18000
18001 \begin_inset Flex Code
18002 status collapsed
18003
18004 \begin_layout Plain Layout
18005
18006 \emph on
18007 1
18008 \end_layout
18009
18010 \end_inset
18011
18012 ] Whether this inset should use the font of its surrounding environment
18013  or uses its own.
18014  Default is false: use the font of the surrounding environment.
18015 \end_layout
18016
18017 \begin_layout Description
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022 RightDelim
18023 \end_layout
18024
18025 \end_inset
18026
18027  [
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 string
18033 \end_layout
18034
18035 \end_inset
18036
18037 ] A string that is put at the end of the layout content.
18038  A line break in the output can be indicated by 
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043 <br/>
18044 \end_layout
18045
18046 \end_inset
18047
18048 .
18049 \end_layout
18050
18051 \begin_layout Description
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 Spellcheck
18057 \end_layout
18058
18059 \end_inset
18060
18061  [
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 0
18067 \end_layout
18068
18069 \end_inset
18070
18071 ,
18072 \begin_inset space \thinspace{}
18073 \end_inset
18074
18075
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080
18081 \emph on
18082 1
18083 \end_layout
18084
18085 \end_inset
18086
18087 ] Allow spell-checking the contents of this inset.
18088  Default is true.
18089 \end_layout
18090
18091 \begin_layout Subsection
18092 Counters
18093 \begin_inset CommandInset label
18094 LatexCommand label
18095 name "sub:Counters"
18096
18097 \end_inset
18098
18099
18100 \end_layout
18101
18102 \begin_layout Standard
18103 It is necessary to define the counters (
18104 \begin_inset Flex MenuItem
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 chapter
18109 \end_layout
18110
18111 \end_inset
18112
18113
18114 \begin_inset Flex MenuItem
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 figure
18119 \end_layout
18120
18121 \end_inset
18122
18123 , \SpecialChar \ldots{}
18124 ) in the text class itself.
18125  The standard counters are defined in the file 
18126 \begin_inset Flex Code
18127 status collapsed
18128
18129 \begin_layout Plain Layout
18130 stdcounters.inc
18131 \end_layout
18132
18133 \end_inset
18134
18135 , so you may have to do no more than add
18136 \end_layout
18137
18138 \begin_layout LyX-Code
18139 Input stdcounters.inc
18140 \end_layout
18141
18142 \begin_layout Standard
18143 to your layout file to get them to work.
18144  But if you want to define custom counters, then you can do so.
18145  The counter declaration must begin with:
18146 \end_layout
18147
18148 \begin_layout LyX-Code
18149 Counter CounterName
18150 \end_layout
18151
18152 \begin_layout Standard
18153 where of course `
18154 \begin_inset Flex Code
18155 status collapsed
18156
18157 \begin_layout Plain Layout
18158 CounterName
18159 \end_layout
18160
18161 \end_inset
18162
18163 ' is replaced by the name of the counter.
18164  And it must end with 
18165 \begin_inset Quotes eld
18166 \end_inset
18167
18168
18169 \begin_inset Flex Code
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 End
18174 \end_layout
18175
18176 \end_inset
18177
18178
18179 \begin_inset Quotes erd
18180 \end_inset
18181
18182 .
18183  The following parameters can also be used:
18184 \end_layout
18185
18186 \begin_layout Description
18187 \begin_inset Flex Code
18188 status collapsed
18189
18190 \begin_layout Plain Layout
18191 InitialValue
18192 \end_layout
18193
18194 \end_inset
18195
18196  [
18197 \begin_inset Flex Code
18198 status collapsed
18199
18200 \begin_layout Plain Layout
18201 int=1
18202 \end_layout
18203
18204 \end_inset
18205
18206 ] Sets the initial value for the counter, to which it will be reset whenever
18207  that happens.
18208  Normally, one will want the default, 1.
18209 \end_layout
18210
18211 \begin_layout Description
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 LabelString
18217 \end_layout
18218
18219 \end_inset
18220
18221  [
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 string
18227 \end_layout
18228
18229 \end_inset
18230
18231 =
18232 \begin_inset Quotes erd
18233 \end_inset
18234
18235
18236 \begin_inset Quotes erd
18237 \end_inset
18238
18239 ] When defined, this string defines how the counter is displayed.
18240  Setting this value sets 
18241 \begin_inset Flex Code
18242 status collapsed
18243
18244 \begin_layout Plain Layout
18245 LabelStringAppendix
18246 \end_layout
18247
18248 \end_inset
18249
18250  to the same value.
18251  The following special constructs can be used in the string:
18252 \end_layout
18253
18254 \begin_deeper
18255 \begin_layout Itemize
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260
18261 \backslash
18262 thecounter
18263 \end_layout
18264
18265 \end_inset
18266
18267  will be replaced by the expansion of the 
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 LabelString
18273 \end_layout
18274
18275 \end_inset
18276
18277  (or 
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282 LabelStringAppendix
18283 \end_layout
18284
18285 \end_inset
18286
18287 ) of the counter 
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 counter
18293 \end_layout
18294
18295 \end_inset
18296
18297 .
18298  
18299 \end_layout
18300
18301 \begin_layout Itemize
18302 counter values can be expressed using LaTeX-like macros
18303 \begin_inset Newline newline
18304 \end_inset
18305
18306
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311
18312 \backslash
18313
18314 \emph on
18315 numbertype
18316 \emph default
18317 {
18318 \emph on
18319 counter
18320 \emph default
18321 }
18322 \end_layout
18323
18324 \end_inset
18325
18326 , where 
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331
18332 \emph on
18333 numbertype
18334 \end_layout
18335
18336 \end_inset
18337
18338  can be:
18339 \begin_inset Foot
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343
18344 \family roman
18345 \series medium
18346 \shape up
18347 \size normal
18348 \emph off
18349 \bar no
18350 \noun off
18351 \color none
18352 Actually, the situation is a bit more complicated: any
18353 \family default
18354 \series default
18355 \shape default
18356 \emph default
18357 \bar default
18358  
18359 \size default
18360 \emph on
18361 \noun default
18362 \color inherit
18363 numbertype
18364 \family roman
18365 \series medium
18366 \shape up
18367 \size normal
18368 \emph off
18369 \bar no
18370 \noun off
18371  other than those described below will produce arabic numerals.
18372  It would not be surprising to see this change in the future.
18373 \end_layout
18374
18375 \end_inset
18376
18377  
18378 \begin_inset Flex Code
18379 status collapsed
18380
18381 \begin_layout Plain Layout
18382 arabic
18383 \end_layout
18384
18385 \end_inset
18386
18387 : 1, 2, 3,\SpecialChar \ldots{}
18388
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 alph
18394 \end_layout
18395
18396 \end_inset
18397
18398  for lower-case letters: a, b, c, \SpecialChar \ldots{}
18399
18400 \begin_inset Flex Code
18401 status collapsed
18402
18403 \begin_layout Plain Layout
18404 Alph
18405 \end_layout
18406
18407 \end_inset
18408
18409  for upper-case letters: A, B, C, \SpecialChar \ldots{}
18410
18411 \begin_inset Flex Code
18412 status collapsed
18413
18414 \begin_layout Plain Layout
18415 roman
18416 \end_layout
18417
18418 \end_inset
18419
18420  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
18421
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 Roman
18427 \end_layout
18428
18429 \end_inset
18430
18431  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
18432
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437 hebrew
18438 \end_layout
18439
18440 \end_inset
18441
18442  for hebrew numerals.
18443 \end_layout
18444
18445 \end_deeper
18446 \begin_layout Standard
18447 If LabelString is not defined, a default value is constructed as follows:
18448  if the counter has a master counter 
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 master
18454 \end_layout
18455
18456 \end_inset
18457
18458  (defined via 
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 Within
18464 \end_layout
18465
18466 \end_inset
18467
18468 ), the string
18469 \begin_inset Newline newline
18470 \end_inset
18471
18472
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477
18478 \backslash
18479 themaster.
18480 \backslash
18481 arabic{counter}
18482 \end_layout
18483
18484 \end_inset
18485
18486  is used; otherwise the string 
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491
18492 \backslash
18493 arabic{counter}
18494 \end_layout
18495
18496 \end_inset
18497
18498  is used.
18499 \end_layout
18500
18501 \begin_layout Description
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 LabelStringAppendix
18507 \end_layout
18508
18509 \end_inset
18510
18511  [
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 string
18517 \end_layout
18518
18519 \end_inset
18520
18521 =
18522 \begin_inset Quotes erd
18523 \end_inset
18524
18525
18526 \begin_inset Quotes erd
18527 \end_inset
18528
18529 ] Same as 
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534 LabelString
18535 \end_layout
18536
18537 \end_inset
18538
18539 , but for use in the Appendix.
18540 \end_layout
18541
18542 \begin_layout Description
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 PrettyFormat
18548 \end_layout
18549
18550 \end_inset
18551
18552  [
18553 \begin_inset Flex Code
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 string
18558 \end_layout
18559
18560 \end_inset
18561
18562 =
18563 \begin_inset Quotes erd
18564 \end_inset
18565
18566
18567 \begin_inset Quotes erd
18568 \end_inset
18569
18570 ] A format for use with formatted references to this counter.
18571  For example, one might want to have references to section numbers appear
18572  as 
18573 \begin_inset Quotes eld
18574 \end_inset
18575
18576 Section 2.4
18577 \begin_inset Quotes erd
18578 \end_inset
18579
18580 .
18581  The string should contain 
18582 \begin_inset Quotes eld
18583 \end_inset
18584
18585 ##
18586 \begin_inset Quotes erd
18587 \end_inset
18588
18589 .
18590  This will be replaced by the counter number itself.
18591  So, for sections, it would be: Section ##.
18592 \end_layout
18593
18594 \begin_layout Description
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599 Within
18600 \end_layout
18601
18602 \end_inset
18603
18604  [
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609 string
18610 \end_layout
18611
18612 \end_inset
18613
18614 =
18615 \begin_inset Quotes erd
18616 \end_inset
18617
18618
18619 \begin_inset Quotes erd
18620 \end_inset
18621
18622 ] If this is set to the name of another counter, the present counter will
18623  be reset every time the other one is increased.
18624  For example, 
18625 \begin_inset Flex Code
18626 status collapsed
18627
18628 \begin_layout Plain Layout
18629 subsection
18630 \end_layout
18631
18632 \end_inset
18633
18634  is numbered inside 
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 section
18640 \end_layout
18641
18642 \end_inset
18643
18644 .
18645 \end_layout
18646
18647 \begin_layout Subsection
18648 Font description
18649 \begin_inset CommandInset label
18650 LatexCommand label
18651 name "sub:Font-description"
18652
18653 \end_inset
18654
18655
18656 \end_layout
18657
18658 \begin_layout Standard
18659 A font description looks like this:
18660 \end_layout
18661
18662 \begin_layout LyX-Code
18663 Font 
18664 \family roman
18665 \emph on
18666 or
18667 \family default
18668 \emph default
18669  LabelFont
18670 \emph on
18671  or
18672 \emph default
18673  DefaultFont
18674 \end_layout
18675
18676 \begin_layout LyX-Code
18677  ...
18678 \end_layout
18679
18680 \begin_layout LyX-Code
18681 EndFont
18682 \end_layout
18683
18684 \begin_layout Standard
18685 The following commands are available:
18686 \end_layout
18687
18688 \begin_layout Description
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693 Color
18694 \end_layout
18695
18696 \end_inset
18697
18698  [
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703
18704 \emph on
18705 none
18706 \end_layout
18707
18708 \end_inset
18709
18710
18711 \begin_inset Flex Code
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 black
18716 \end_layout
18717
18718 \end_inset
18719
18720
18721 \begin_inset Flex Code
18722 status collapsed
18723
18724 \begin_layout Plain Layout
18725 white
18726 \end_layout
18727
18728 \end_inset
18729
18730
18731 \begin_inset Flex Code
18732 status collapsed
18733
18734 \begin_layout Plain Layout
18735 red
18736 \end_layout
18737
18738 \end_inset
18739
18740
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 green
18746 \end_layout
18747
18748 \end_inset
18749
18750
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 blue
18756 \end_layout
18757
18758 \end_inset
18759
18760
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 cyan
18766 \end_layout
18767
18768 \end_inset
18769
18770
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 magenta
18776 \end_layout
18777
18778 \end_inset
18779
18780
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 yellow
18786 \end_layout
18787
18788 \end_inset
18789
18790 ]
18791 \end_layout
18792
18793 \begin_layout Description
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 Family
18799 \end_layout
18800
18801 \end_inset
18802
18803  [
18804 \begin_inset Flex Code
18805 status collapsed
18806
18807 \begin_layout Plain Layout
18808
18809 \emph on
18810 Roman
18811 \end_layout
18812
18813 \end_inset
18814
18815
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 Sans
18821 \end_layout
18822
18823 \end_inset
18824
18825
18826 \begin_inset Flex Code
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830 Typewriter
18831 \end_layout
18832
18833 \end_inset
18834
18835 ]
18836 \end_layout
18837
18838 \begin_layout Description
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 Misc
18844 \end_layout
18845
18846 \end_inset
18847
18848  [
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 string
18854 \end_layout
18855
18856 \end_inset
18857
18858 ] Valid arguments are: 
18859 \begin_inset Flex Code
18860 status collapsed
18861
18862 \begin_layout Plain Layout
18863 emph
18864 \end_layout
18865
18866 \end_inset
18867
18868
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 noun
18874 \end_layout
18875
18876 \end_inset
18877
18878
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 strikeout
18884 \end_layout
18885
18886 \end_inset
18887
18888
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 underbar
18894 \end_layout
18895
18896 \end_inset
18897
18898
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 uuline
18904 \end_layout
18905
18906 \end_inset
18907
18908
18909 \begin_inset Flex Code
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 uwave
18914 \end_layout
18915
18916 \end_inset
18917
18918
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 no_emph
18924 \end_layout
18925
18926 \end_inset
18927
18928
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 no_noun
18934 \end_layout
18935
18936 \end_inset
18937
18938
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 no_strikeout
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_bar
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_uuline
18964 \end_layout
18965
18966 \end_inset
18967
18968  and 
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 no_uwave
18974 \end_layout
18975
18976 \end_inset
18977
18978 .
18979  Each of these turns on or off the corresponding attribute.
18980  For example, 
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 emph
18986 \end_layout
18987
18988 \end_inset
18989
18990  turns on emphasis, and 
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 no_emph
18996 \end_layout
18997
18998 \end_inset
18999
19000  turns it off.
19001  
19002 \begin_inset Newline newline
19003 \end_inset
19004
19005 If the latter seems puzzling, remember that the font settings for the present
19006  context are generally inherited from the surrounding context.
19007  So 
19008 \begin_inset Flex Code
19009 status collapsed
19010
19011 \begin_layout Plain Layout
19012 no_emph
19013 \end_layout
19014
19015 \end_inset
19016
19017  would turn off the emphasis that was anyway in effect, say, in a theorem
19018  environment.
19019 \end_layout
19020
19021 \begin_layout Description
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026 Series
19027 \end_layout
19028
19029 \end_inset
19030
19031  [
19032 \begin_inset Flex Code
19033 status collapsed
19034
19035 \begin_layout Plain Layout
19036
19037 \emph on
19038 Medium
19039 \end_layout
19040
19041 \end_inset
19042
19043
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 Bold
19049 \end_layout
19050
19051 \end_inset
19052
19053
19054 \end_layout
19055
19056 \begin_layout Description
19057 \begin_inset Flex Code
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 Shape
19062 \end_layout
19063
19064 \end_inset
19065
19066  [
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071
19072 \emph on
19073 Up
19074 \end_layout
19075
19076 \end_inset
19077
19078
19079 \begin_inset Flex Code
19080 status collapsed
19081
19082 \begin_layout Plain Layout
19083 Italic
19084 \end_layout
19085
19086 \end_inset
19087
19088
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 SmallCaps
19094 \end_layout
19095
19096 \end_inset
19097
19098
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 Slanted
19104 \end_layout
19105
19106 \end_inset
19107
19108
19109 \end_layout
19110
19111 \begin_layout Description
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 Size
19117 \end_layout
19118
19119 \end_inset
19120
19121  [
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 tiny
19127 \end_layout
19128
19129 \end_inset
19130
19131
19132 \begin_inset Flex Code
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 small
19137 \end_layout
19138
19139 \end_inset
19140
19141
19142 \begin_inset Flex Code
19143 status collapsed
19144
19145 \begin_layout Plain Layout
19146
19147 \emph on
19148 normal
19149 \end_layout
19150
19151 \end_inset
19152
19153
19154 \begin_inset Flex Code
19155 status collapsed
19156
19157 \begin_layout Plain Layout
19158 large
19159 \end_layout
19160
19161 \end_inset
19162
19163
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168 larger
19169 \end_layout
19170
19171 \end_inset
19172
19173
19174 \begin_inset Flex Code
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178 largest
19179 \end_layout
19180
19181 \end_inset
19182
19183
19184 \begin_inset Flex Code
19185 status collapsed
19186
19187 \begin_layout Plain Layout
19188 huge
19189 \end_layout
19190
19191 \end_inset
19192
19193
19194 \begin_inset Flex Code
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198 giant
19199 \end_layout
19200
19201 \end_inset
19202
19203 ]
19204 \end_layout
19205
19206 \begin_layout Subsection
19207 \begin_inset CommandInset label
19208 LatexCommand label
19209 name "sub:Citation-format-description"
19210
19211 \end_inset
19212
19213 Citation format description
19214 \end_layout
19215
19216 \begin_layout Standard
19217 The 
19218 \begin_inset Flex Code
19219 status collapsed
19220
19221 \begin_layout Plain Layout
19222 CiteFormat
19223 \end_layout
19224
19225 \end_inset
19226
19227  blocks are used to describe how bibliographic information should be displayed,
19228  both within LyX itself (in the citation dialog and in tooltips, for example)
19229  and in XHTML output.
19230  Such a block might look like this:
19231 \end_layout
19232
19233 \begin_layout LyX-Code
19234 CiteFormat
19235 \end_layout
19236
19237 \begin_layout LyX-Code
19238  article ...
19239 \end_layout
19240
19241 \begin_layout LyX-Code
19242  book ...
19243 \end_layout
19244
19245 \begin_layout LyX-Code
19246 End
19247 \end_layout
19248
19249 \begin_layout Standard
19250 The individual lines define how the bibliographic information associated
19251  with an article or book, respectively, is to be displayed, and such a definitio
19252 n can be given for any `entry type' that might be present in a BibTeX file.
19253  LyX defines a default format in the source code that will be used if no
19254  specific definition has been given.
19255  LyX predefines several formats in the file 
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 stdciteformats.inc
19261 \end_layout
19262
19263 \end_inset
19264
19265 , which is included in most of LyX's document classes.
19266 \end_layout
19267
19268 \begin_layout Standard
19269 The definitions use a simple language that allows BibTeX keys to be replaced
19270  with their values.
19271  Keys should be enclosed in 
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 %
19277 \end_layout
19278
19279 \end_inset
19280
19281  signs, e.g.: 
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 %author%
19287 \end_layout
19288
19289 \end_inset
19290
19291 .
19292  So a simple definition might look like this:
19293 \end_layout
19294
19295 \begin_layout LyX-Code
19296 misc %author%, 
19297 \begin_inset Quotes eld
19298 \end_inset
19299
19300 %title
19301 \begin_inset Quotes erd
19302 \end_inset
19303
19304 .
19305 \end_layout
19306
19307 \begin_layout Standard
19308 This would print the author, followed by a comma, followed by the title,
19309  in quotes, followed by a period.
19310 \end_layout
19311
19312 \begin_layout Standard
19313 Of course, sometimes you may want to print a key only if it exists.
19314  This can be done by using a conditional construction, such as: 
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 {%volume%[[vol.
19320 \begin_inset space ~
19321 \end_inset
19322
19323 %volume%]]}
19324 \end_layout
19325
19326 \end_inset
19327
19328 .
19329  This says: If the 
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 volume
19335 \end_layout
19336
19337 \end_inset
19338
19339  key exists, then print 
19340 \begin_inset Quotes eld
19341 \end_inset
19342
19343 vol.
19344 \begin_inset space ~
19345 \end_inset
19346
19347
19348 \begin_inset Quotes erd
19349 \end_inset
19350
19351  followed by the volume key.
19352  It is also possible to have an else clause in the conditional, such as:
19353 \begin_inset Newline newline
19354 \end_inset
19355
19356
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 {%author%[[%author%]][[%editor%, ed.]]}
19362 \end_layout
19363
19364 \end_inset
19365
19366 .
19367 \begin_inset Newline newline
19368 \end_inset
19369
19370 Here, the 
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375 author
19376 \end_layout
19377
19378 \end_inset
19379
19380  key is printed if it exists; otherwise, the editor key is printed, followed
19381  by 
19382 \begin_inset Quotes eld
19383 \end_inset
19384
19385 ,
19386 \begin_inset space ~
19387 \end_inset
19388
19389 ed.
19390 \begin_inset Quotes erd
19391 \end_inset
19392
19393  Note that the key is again enclosed in 
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 %
19399 \end_layout
19400
19401 \end_inset
19402
19403  signs; the entire conditional is enclosed in braces; and the if and else
19404  clauses are enclosed in double brackets, 
19405 \begin_inset Quotes eld
19406 \end_inset
19407
19408
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 [[
19414 \end_layout
19415
19416 \end_inset
19417
19418
19419 \begin_inset Quotes eld
19420 \end_inset
19421
19422  and 
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 ]]
19432 \end_layout
19433
19434 \end_inset
19435
19436
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440 .
19441  There must be no space between any of these.
19442 \end_layout
19443
19444 \begin_layout Standard
19445 There is one other piece of syntax available in definitions, which looks
19446  like this: 
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 {!<i>!}
19452 \end_layout
19453
19454 \end_inset
19455
19456 .
19457  This defines a piece of formatting information that is to be used when
19458  creating 
19459 \begin_inset Quotes eld
19460 \end_inset
19461
19462 rich text
19463 \begin_inset Quotes erd
19464 \end_inset
19465
19466 .
19467  Obviously, we do not want to output HTML tags when writing plain text,
19468  so they should be wrapped in 
19469 \begin_inset Quotes eld
19470 \end_inset
19471
19472 {!
19473 \begin_inset Quotes erd
19474 \end_inset
19475
19476  and 
19477 \begin_inset Quotes eld
19478 \end_inset
19479
19480 !}
19481 \begin_inset Quotes erd
19482 \end_inset
19483
19484 .
19485 \end_layout
19486
19487 \begin_layout Standard
19488 Two special sorts of definitions are also possible in a 
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 CiteFormat
19494 \end_layout
19495
19496 \end_inset
19497
19498  block.
19499  An example of the first would be:
19500 \end_layout
19501
19502 \begin_layout LyX-Code
19503 !quotetitle 
19504 \begin_inset Quotes eld
19505 \end_inset
19506
19507 %title%
19508 \begin_inset Quotes erd
19509 \end_inset
19510
19511
19512 \end_layout
19513
19514 \begin_layout Standard
19515 This is an abbreviation, or macro, and it can be used by treating it as
19516  if it were a key: 
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 %!quotetitle%
19522 \end_layout
19523
19524 \end_inset
19525
19526 .
19527  LyX will treat 
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 %!quotetitle%
19533 \end_layout
19534
19535 \end_inset
19536
19537  exactly as it would treat its definition.
19538  So, let us issue the obvious 
19539 \emph on
19540 warning
19541 \emph default
19542 .
19543  Do not do this:
19544 \end_layout
19545
19546 \begin_layout LyX-Code
19547 !funfun %funfun%
19548 \end_layout
19549
19550 \begin_layout Standard
19551 or anything like it.
19552  LyX shouldn't go into an infinite loop, but it may go into a long one before
19553  it gives up.
19554 \end_layout
19555
19556 \begin_layout Standard
19557 The second sort of special definition might look like this:
19558 \end_layout
19559
19560 \begin_layout LyX-Code
19561 _pptext pp.
19562 \end_layout
19563
19564 \begin_layout Standard
19565 This defines a translatable piece of text, which allows relevant parts of
19566  the bibliography to be translated.
19567  It can be included in a definition by treating it as a key: 
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 %_pptext%
19573 \end_layout
19574
19575 \end_inset
19576
19577 .
19578  Several of these are predefined in 
19579 \begin_inset Flex Code
19580 status collapsed
19581
19582 \begin_layout Plain Layout
19583 stdciteformats.inc
19584 \end_layout
19585
19586 \end_inset
19587
19588 .
19589  Note that these are not macros, in the sense just defined.
19590  They will not be expanded.
19591 \end_layout
19592
19593 \begin_layout Standard
19594 So here then is an example that use all these features:
19595 \begin_inset VSpace defskip
19596 \end_inset
19597
19598
19599 \end_layout
19600
19601 \begin_layout Standard
19602 \noindent
19603
19604 \family typewriter
19605 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
19606 \end_layout
19607
19608 \begin_layout Standard
19609 \begin_inset VSpace defskip
19610 \end_inset
19611
19612 This defines a macro that prints the author, followed by a comma, if the
19613  
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 author
19619 \end_layout
19620
19621 \end_inset
19622
19623  key is defined, or else prints the name of the editor, followed by the
19624  
19625 \begin_inset Flex Code
19626 status collapsed
19627
19628 \begin_layout Plain Layout
19629 _edtext
19630 \end_layout
19631
19632 \end_inset
19633
19634  or its translation (it is by default 
19635 \begin_inset Quotes eld
19636 \end_inset
19637
19638 ed.
19639 \begin_inset Quotes erd
19640 \end_inset
19641
19642 ), if the 
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 editor
19648 \end_layout
19649
19650 \end_inset
19651
19652  key is defined.
19653  Note that this is in fact defined in 
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 stdciteformats.inc
19659 \end_layout
19660
19661 \end_inset
19662
19663 , so you can use it in your own definitions, or re-definitions, if you load
19664  that file first.
19665 \end_layout
19666
19667 \begin_layout Section
19668 \begin_inset CommandInset label
19669 LatexCommand label
19670 name "sec:Tags-for-XHTML"
19671
19672 \end_inset
19673
19674 Tags for XHTML output
19675 \end_layout
19676
19677 \begin_layout Standard
19678 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
19679  by layout information.
19680  In general, LyX provides sensible defaults and, as mentioned earlier, it
19681  will even construct default CSS style rules from the other layout tags.
19682  For example, LyX will attempt to use the information provided in the 
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 Font
19688 \end_layout
19689
19690 \end_inset
19691
19692  declaration for the Chapter style to write CSS that will appropriately
19693  format chapter headings.
19694 \end_layout
19695
19696 \begin_layout Standard
19697 In many cases, then, you may not have to do anything at all to get acceptable
19698  XHTML output for your own environments, custom insets, and so forth.
19699  But in some cases you will, and so LyX provides a number of layout tags
19700  that can be used to customize the XHTML and CSS that are generated.
19701 \end_layout
19702
19703 \begin_layout Standard
19704 Note that there are two tags, 
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 HTMLPreamble
19710 \end_layout
19711
19712 \end_inset
19713
19714  and 
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 AddToHTMLPreamble
19720 \end_layout
19721
19722 \end_inset
19723
19724  that may appear outside style and inset declarations.
19725  See 
19726 \begin_inset CommandInset ref
19727 LatexCommand ref
19728 reference "sub:General-text-class"
19729
19730 \end_inset
19731
19732  for details on these.
19733 \end_layout
19734
19735 \begin_layout Subsection
19736 \begin_inset CommandInset label
19737 LatexCommand label
19738 name "sub:Paragraph-Style-XHTML"
19739
19740 \end_inset
19741
19742 Paragraph styles
19743 \end_layout
19744
19745 \begin_layout Standard
19746 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
19747  dealing with a normal paragraph, a command, or an environment, where this
19748  is itself determined by the contents of the corresponding 
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 LaTeXType
19754 \end_layout
19755
19756 \end_inset
19757
19758  tag.
19759  
19760 \end_layout
19761
19762 \begin_layout Standard
19763 For a command or normal paragraph, the output XHTML has the following form:
19764 \end_layout
19765
19766 \begin_layout LyX-Code
19767 <tag attr=
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771 value
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775 >
19776 \end_layout
19777
19778 \begin_layout LyX-Code
19779 <labeltag attr=
19780 \begin_inset Quotes erd
19781 \end_inset
19782
19783 value
19784 \begin_inset Quotes erd
19785 \end_inset
19786
19787 >Label</labeltag>
19788 \end_layout
19789
19790 \begin_layout LyX-Code
19791 Contents of the paragraph.
19792 \end_layout
19793
19794 \begin_layout LyX-Code
19795 </tag>
19796 \end_layout
19797
19798 \begin_layout Standard
19799 The label tags are of course omitted if the paragraph does not have a label.
19800 \end_layout
19801
19802 \begin_layout Standard
19803 For an environment that is not some sort of list, the XHTML takes this form:
19804 \end_layout
19805
19806 \begin_layout LyX-Code
19807 <tag attr=
19808 \begin_inset Quotes erd
19809 \end_inset
19810
19811 value
19812 \begin_inset Quotes erd
19813 \end_inset
19814
19815 >
19816 \end_layout
19817
19818 \begin_layout LyX-Code
19819 <itemtag attr=
19820 \begin_inset Quotes erd
19821 \end_inset
19822
19823 value
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827 ><labeltag attr=
19828 \begin_inset Quotes erd
19829 \end_inset
19830
19831 value
19832 \begin_inset Quotes erd
19833 \end_inset
19834
19835 >Environment Label</labeltag>First paragraph.</itemtag>
19836 \end_layout
19837
19838 \begin_layout LyX-Code
19839 <itemtag>Second paragraph.</itemtag>
19840 \end_layout
19841
19842 \begin_layout LyX-Code
19843 </tag>
19844 \end_layout
19845
19846 \begin_layout Standard
19847 Note that the label is output only for the first paragraph, as it should
19848  be for a theorem, for example.
19849  
19850 \end_layout
19851
19852 \begin_layout Standard
19853 For a list, we have one of these forms:
19854 \end_layout
19855
19856 \begin_layout LyX-Code
19857 <tag attr=
19858 \begin_inset Quotes erd
19859 \end_inset
19860
19861 value
19862 \begin_inset Quotes erd
19863 \end_inset
19864
19865 >
19866 \end_layout
19867
19868 \begin_layout LyX-Code
19869 <itemtag attr=
19870 \begin_inset Quotes erd
19871 \end_inset
19872
19873 value
19874 \begin_inset Quotes erd
19875 \end_inset
19876
19877 ><labeltag attr=
19878 \begin_inset Quotes erd
19879 \end_inset
19880
19881 value
19882 \begin_inset Quotes erd
19883 \end_inset
19884
19885 >List Label</labeltag>First item.</itemtag>
19886 \end_layout
19887
19888 \begin_layout LyX-Code
19889 <itemtag attr=
19890 \begin_inset Quotes erd
19891 \end_inset
19892
19893 value
19894 \begin_inset Quotes erd
19895 \end_inset
19896
19897 ><labeltag attr=
19898 \begin_inset Quotes erd
19899 \end_inset
19900
19901 value
19902 \begin_inset Quotes erd
19903 \end_inset
19904
19905 >List Label</labeltag>Second item.</itemtag>
19906 \end_layout
19907
19908 \begin_layout LyX-Code
19909 </tag>
19910 \end_layout
19911
19912 \begin_layout LyX-Code
19913
19914 \end_layout
19915
19916 \begin_layout LyX-Code
19917 <tag attr=
19918 \begin_inset Quotes erd
19919 \end_inset
19920
19921 value
19922 \begin_inset Quotes erd
19923 \end_inset
19924
19925 >
19926 \end_layout
19927
19928 \begin_layout LyX-Code
19929 <labeltag attr=
19930 \begin_inset Quotes erd
19931 \end_inset
19932
19933 value
19934 \begin_inset Quotes erd
19935 \end_inset
19936
19937 >List Label</labeltag><itemtag attr=
19938 \begin_inset Quotes erd
19939 \end_inset
19940
19941 value
19942 \begin_inset Quotes erd
19943 \end_inset
19944
19945 >First item.</itemtag>
19946 \end_layout
19947
19948 \begin_layout LyX-Code
19949 <labeltag attr=
19950 \begin_inset Quotes erd
19951 \end_inset
19952
19953 value
19954 \begin_inset Quotes erd
19955 \end_inset
19956
19957 >List Label</labeltag><itemtag attr=
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961 value
19962 \begin_inset Quotes erd
19963 \end_inset
19964
19965 >Second item.</itemtag>
19966 \end_layout
19967
19968 \begin_layout LyX-Code
19969 </tag>
19970 \end_layout
19971
19972 \begin_layout Standard
19973 Note the different orders of 
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 labeltag
19979 \end_layout
19980
19981 \end_inset
19982
19983  and 
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988 itemtag
19989 \end_layout
19990
19991 \end_inset
19992
19993 .
19994  Which order we get depends upon the setting of 
19995 \begin_inset Flex Code
19996 status collapsed
19997
19998 \begin_layout Plain Layout
19999 HTMLLabelFirst
20000 \end_layout
20001
20002 \end_inset
20003
20004 : If 
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 HTMLLabelFirst
20010 \end_layout
20011
20012 \end_inset
20013
20014  is false (the default), you get the first of these, with the label within
20015  the item; if true, you get the second, with the label outside the item.
20016 \end_layout
20017
20018 \begin_layout Standard
20019 The specific tags and attributes output for each paragraph type can be controlle
20020 d by means of the layout tags we are about to describe.
20021  As mentioned earlier, however, LyX uses sensible defaults for many of these,
20022  so you often may not need to do very much to get good XHTML output.
20023  Think of the available tags as there so you can tweak things to your liking.
20024 \end_layout
20025
20026 \begin_layout Description
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 HTMLAttr
20032 \end_layout
20033
20034 \end_inset
20035
20036  [
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 string
20042 \end_layout
20043
20044 \end_inset
20045
20046 ] Specifies attribute information to be output with the main tag.
20047  For example, 
20048 \begin_inset Quotes eld
20049 \end_inset
20050
20051
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 class=`mydiv'
20057 \end_layout
20058
20059 \end_inset
20060
20061
20062 \begin_inset Quotes erd
20063 \end_inset
20064
20065 .
20066  By default, LyX will output 
20067 \begin_inset Quotes eld
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 class=`layoutname'
20076 \end_layout
20077
20078 \end_inset
20079
20080
20081 \begin_inset Quotes erd
20082 \end_inset
20083
20084 , where 
20085 \begin_inset Flex Code
20086 status collapsed
20087
20088 \begin_layout Plain Layout
20089 layoutname
20090 \end_layout
20091
20092 \end_inset
20093
20094  is the LyX name of the layout, made lowercase, for example: chapter.
20095  This should 
20096 \emph on
20097 not
20098 \emph default
20099  contain any style information.
20100  Use 
20101 \begin_inset Flex Code
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 HTMLStyle
20106 \end_layout
20107
20108 \end_inset
20109
20110  for that purpose.
20111 \end_layout
20112
20113 \begin_layout Description
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118 HTMLForceCSS
20119 \end_layout
20120
20121 \end_inset
20122
20123  [
20124 \begin_inset Flex Code
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128
20129 \emph on
20130 0
20131 \emph default
20132 ,1
20133 \end_layout
20134
20135 \end_inset
20136
20137 ] Whether to output the default CSS information LyX generates for this layout,
20138  even if additional information is explicitly provided via 
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 HTMLStyle
20144 \end_layout
20145
20146 \end_inset
20147
20148 .
20149  Setting this to 
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 1
20155 \end_layout
20156
20157 \end_inset
20158
20159  allows you to alter or augment the generated CSS, rather than to override
20160  it completely.
20161  Default is 
20162 \begin_inset Flex Code
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 0
20167 \end_layout
20168
20169 \end_inset
20170
20171 .
20172 \end_layout
20173
20174 \begin_layout Description
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 HTMLItem
20180 \end_layout
20181
20182 \end_inset
20183
20184  [
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 string
20190 \end_layout
20191
20192 \end_inset
20193
20194 ] The tag to be used for individual paragraphs of environments, replacing
20195  
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200 itemtag
20201 \end_layout
20202
20203 \end_inset
20204
20205  in the examples above.
20206  Defaults to 
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 div
20212 \end_layout
20213
20214 \end_inset
20215
20216 .
20217 \end_layout
20218
20219 \begin_layout Description
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 HTMLItemAttr
20225 \end_layout
20226
20227 \end_inset
20228
20229  [
20230 \begin_inset Flex Code
20231 status collapsed
20232
20233 \begin_layout Plain Layout
20234 string
20235 \end_layout
20236
20237 \end_inset
20238
20239 ] Attributes for the item tag.
20240  Defaults to 
20241 \begin_inset Quotes eld
20242 \end_inset
20243
20244
20245 \begin_inset Flex Code
20246 status collapsed
20247
20248 \begin_layout Plain Layout
20249 class=`layoutname_item'
20250 \end_layout
20251
20252 \end_inset
20253
20254
20255 \begin_inset Quotes erd
20256 \end_inset
20257
20258 .
20259  This should 
20260 \emph on
20261 not
20262 \emph default
20263  contain any style information.
20264  Use 
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 HTMLStyle
20270 \end_layout
20271
20272 \end_inset
20273
20274  for that purpose.
20275 \end_layout
20276
20277 \begin_layout Description
20278 \begin_inset Flex Code
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 HTMLLabel
20283 \end_layout
20284
20285 \end_inset
20286
20287  [
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 string
20293 \end_layout
20294
20295 \end_inset
20296
20297 ] The tag to be used for paragraph and item labels, replacing 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 labeltag
20303 \end_layout
20304
20305 \end_inset
20306
20307  in the examples above.
20308  Defaults to 
20309 \begin_inset Flex Code
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 span
20314 \end_layout
20315
20316 \end_inset
20317
20318 , unless 
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 LabelType
20324 \end_layout
20325
20326 \end_inset
20327
20328  is either 
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 Top_Environment
20334 \end_layout
20335
20336 \end_inset
20337
20338  or 
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343 Centered_Top_Environment
20344 \end_layout
20345
20346 \end_inset
20347
20348 , in which case it defaults to 
20349 \begin_inset Flex Code
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 div
20354 \end_layout
20355
20356 \end_inset
20357
20358 .
20359 \end_layout
20360
20361 \begin_layout Description
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 HTMLLabelAttr
20367 \end_layout
20368
20369 \end_inset
20370
20371  [
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 string
20377 \end_layout
20378
20379 \end_inset
20380
20381 ] Attributes for the label tag.
20382  Defaults to 
20383 \begin_inset Quotes eld
20384 \end_inset
20385
20386
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 class=`layoutname_label'
20392 \end_layout
20393
20394 \end_inset
20395
20396
20397 \begin_inset Quotes erd
20398 \end_inset
20399
20400 .
20401  This should 
20402 \emph on
20403 not
20404 \emph default
20405  contain any style information.
20406  Use 
20407 \begin_inset Flex Code
20408 status collapsed
20409
20410 \begin_layout Plain Layout
20411 HTMLStyle
20412 \end_layout
20413
20414 \end_inset
20415
20416  for that purpose.
20417 \end_layout
20418
20419 \begin_layout Description
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 HTMLLabelFirst
20425 \end_layout
20426
20427 \end_inset
20428
20429  [
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434
20435 \emph on
20436 0
20437 \emph default
20438 ,1
20439 \end_layout
20440
20441 \end_inset
20442
20443 ] Meaningful only for list-like environments, this tag controls whether
20444  the label tag is output before or inside the item tag.
20445  This is used, for example, in the description environment, where we want
20446  `
20447 \begin_inset Flex Code
20448 status collapsed
20449
20450 \begin_layout Plain Layout
20451 <dt>\SpecialChar \ldots{}
20452 </dt><dd>\SpecialChar \ldots{}
20453 </dd>
20454 \end_layout
20455
20456 \end_inset
20457
20458 .
20459  Default is 
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 0
20465 \end_layout
20466
20467 \end_inset
20468
20469 : The label tag is output inside the item tag.
20470 \end_layout
20471
20472 \begin_layout Description
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 HTMLPreamble
20478 \end_layout
20479
20480 \end_inset
20481
20482  Information to be output in the 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 <head>
20488 \end_layout
20489
20490 \end_inset
20491
20492  section when this style is used.
20493  This might, for example, be used to include a 
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 <script>
20499 \end_layout
20500
20501 \end_inset
20502
20503  block defining an 
20504 \begin_inset Flex Code
20505 status collapsed
20506
20507 \begin_layout Plain Layout
20508 onclick
20509 \end_layout
20510
20511 \end_inset
20512
20513  handler.
20514 \end_layout
20515
20516 \begin_layout Description
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521 HTMLStyle
20522 \end_layout
20523
20524 \end_inset
20525
20526  CSS style information to be included when this style is used.
20527  Note that this will automatically be wrapped in a layout-generated 
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 <style>
20533 \end_layout
20534
20535 \end_inset
20536
20537  block, so only the CSS itself need be included.
20538  Must end with 
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 EndHTMLStyle
20544 \end_layout
20545
20546 \end_inset
20547
20548 .
20549 \end_layout
20550
20551 \begin_layout Description
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 HTMLTag
20557 \end_layout
20558
20559 \end_inset
20560
20561  [
20562 \begin_inset Flex Code
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566 string
20567 \end_layout
20568
20569 \end_inset
20570
20571 ] The tag to be used for the main label, replacing 
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 tag
20577 \end_layout
20578
20579 \end_inset
20580
20581  in the examples above.
20582  Defaults to 
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 div
20588 \end_layout
20589
20590 \end_inset
20591
20592 .
20593 \end_layout
20594
20595 \begin_layout Description
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 HTMLTitle
20601 \end_layout
20602
20603 \end_inset
20604
20605  [
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610
20611 \emph on
20612 0
20613 \emph default
20614 ,1
20615 \end_layout
20616
20617 \end_inset
20618
20619 ] Marks this style as the one to be used to generate the 
20620 \begin_inset Flex Code
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 <title>
20625 \end_layout
20626
20627 \end_inset
20628
20629  tag for the XHTML file.
20630  By default, it is false.
20631  The 
20632 \begin_inset Flex Code
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 stdtitle.inc
20637 \end_layout
20638
20639 \end_inset
20640
20641  file sets it to true for the 
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 title
20647 \end_layout
20648
20649 \end_inset
20650
20651  environment.
20652  
20653 \end_layout
20654
20655 \begin_layout Subsection
20656 InsetLayout XHTML
20657 \end_layout
20658
20659 \begin_layout Standard
20660 The XHTML output of insets can also be controlled by information in layout
20661  files.
20662 \begin_inset Foot
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 At present, this is true only for 
20667 \begin_inset Quotes eld
20668 \end_inset
20669
20670 text
20671 \begin_inset Quotes erd
20672 \end_inset
20673
20674  insets (insets you can type into) and is not true for 
20675 \begin_inset Quotes eld
20676 \end_inset
20677
20678 command
20679 \begin_inset Quotes erd
20680 \end_inset
20681
20682  insets (insets that are associated with dialog boxes).
20683 \end_layout
20684
20685 \end_inset
20686
20687  Here, too, LyX tries to provide sensible defaults, and it constructs default
20688  CSS style rules.
20689  But everything can be customized.
20690 \end_layout
20691
20692 \begin_layout Standard
20693 The XHTML LyX outputs for an inset has the following form:
20694 \end_layout
20695
20696 \begin_layout LyX-Code
20697 <tag attr=
20698 \begin_inset Quotes erd
20699 \end_inset
20700
20701 value
20702 \begin_inset Quotes erd
20703 \end_inset
20704
20705 >
20706 \end_layout
20707
20708 \begin_layout LyX-Code
20709 <labeltag>Label</labeltag>
20710 \end_layout
20711
20712 \begin_layout LyX-Code
20713 <innertag attr=
20714 \begin_inset Quotes erd
20715 \end_inset
20716
20717 value
20718 \begin_inset Quotes erd
20719 \end_inset
20720
20721 >Contents of the inset.</innertag>
20722 \end_layout
20723
20724 \begin_layout LyX-Code
20725 </tag>
20726 \end_layout
20727
20728 \begin_layout Standard
20729 If the inset permits multiple paragraphs---that is, if 
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 MultiPar
20735 \end_layout
20736
20737 \end_inset
20738
20739  is true---then the contents of the inset will itself be output as paragraphs
20740  formatted according to the styles used for those paragraphs (standard,
20741  quote, and the like).
20742  The label tag is of course omitted if the paragraph does not have a label
20743  and, at present, is always 
20744 \begin_inset Flex Code
20745 status collapsed
20746
20747 \begin_layout Plain Layout
20748 span
20749 \end_layout
20750
20751 \end_inset
20752
20753 .
20754  The inner tag is optional and, by default, does not appear.
20755 \end_layout
20756
20757 \begin_layout Standard
20758 The specific tags and attributes output for each inset can be controlled
20759  by means of the following layout tags.
20760 \end_layout
20761
20762 \begin_layout Description
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767 HTMLAttr
20768 \end_layout
20769
20770 \end_inset
20771
20772  [
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 string
20778 \end_layout
20779
20780 \end_inset
20781
20782 ] Specifies attribute information to be output with the main tag.
20783  For example, 
20784 \begin_inset Quotes eld
20785 \end_inset
20786
20787
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 class=`myinset' onclick=`\SpecialChar \ldots{}
20793 '
20794 \end_layout
20795
20796 \end_inset
20797
20798
20799 \begin_inset Quotes erd
20800 \end_inset
20801
20802 .
20803  By default, LyX will output 
20804 \begin_inset Quotes eld
20805 \end_inset
20806
20807
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 class=`insetname'
20813 \end_layout
20814
20815 \end_inset
20816
20817
20818 \begin_inset Quotes erd
20819 \end_inset
20820
20821 , where 
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 insetname
20827 \end_layout
20828
20829 \end_inset
20830
20831  is the LyX name of the inset, made lowercase and with non-alphanumeric
20832  characters converted to underscores, for example: footnote.
20833 \end_layout
20834
20835 \begin_layout Description
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840 HTMLForceCSS
20841 \end_layout
20842
20843 \end_inset
20844
20845  [
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850
20851 \emph on
20852 0
20853 \emph default
20854 ,1
20855 \end_layout
20856
20857 \end_inset
20858
20859 ] Whether to output the default CSS information LyX generates for this layout,
20860  even if additional information is explicitly provided via 
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865 HTMLStyle
20866 \end_layout
20867
20868 \end_inset
20869
20870 .
20871  Setting this to 
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 1
20877 \end_layout
20878
20879 \end_inset
20880
20881  allows you to alter or augment the generated CSS, rather than to override
20882  it completely.
20883  Default is 0.
20884 \end_layout
20885
20886 \begin_layout Description
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 HTMLInnerAttr
20892 \end_layout
20893
20894 \end_inset
20895
20896  [
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 string
20902 \end_layout
20903
20904 \end_inset
20905
20906 ] Attributes for the inner tag.
20907  Defaults to 
20908 \begin_inset Quotes eld
20909 \end_inset
20910
20911
20912 \begin_inset Flex Code
20913 status collapsed
20914
20915 \begin_layout Plain Layout
20916 class=`insetname_inner'
20917 \end_layout
20918
20919 \end_inset
20920
20921
20922 \begin_inset Quotes erd
20923 \end_inset
20924
20925 .
20926 \end_layout
20927
20928 \begin_layout Description
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 HTMLInnerTag
20934 \end_layout
20935
20936 \end_inset
20937
20938  [
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 string
20944 \end_layout
20945
20946 \end_inset
20947
20948 ] The inner tag, replacing 
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 innertag
20954 \end_layout
20955
20956 \end_inset
20957
20958  in the examples above.
20959  By default, there is none.
20960 \end_layout
20961
20962 \begin_layout Description
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 HTMLIsBlock
20968 \end_layout
20969
20970 \end_inset
20971
20972  [
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 0,
20978 \emph on
20979 1
20980 \end_layout
20981
20982 \end_inset
20983
20984 ] Whether this inset represents a standalone block of text (such as a footnote)
20985  or instead represents material that is included in the surrounding text
20986  (such as a branch).
20987  Defaults to 1.
20988 \end_layout
20989
20990 \begin_layout Description
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 HTMLLabel
20996 \end_layout
20997
20998 \end_inset
20999
21000  [
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 string
21006 \end_layout
21007
21008 \end_inset
21009
21010 ] A label for this inset, possibly including a reference to a counter.
21011  For example, for footnote, it might be: 
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016
21017 \backslash
21018 arabic{footnote}
21019 \end_layout
21020
21021 \end_inset
21022
21023 .
21024  This is optional, and there is no default.
21025 \end_layout
21026
21027 \begin_layout Description
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 HTMLPreamble
21033 \end_layout
21034
21035 \end_inset
21036
21037  Information to be output in the 
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 <head>
21043 \end_layout
21044
21045 \end_inset
21046
21047  section when this style is used.
21048  This might, for example, be used to include a 
21049 \begin_inset Flex Code
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 <script>
21054 \end_layout
21055
21056 \end_inset
21057
21058  block defining an 
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 onclick
21064 \end_layout
21065
21066 \end_inset
21067
21068  handler.
21069 \end_layout
21070
21071 \begin_layout Description
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 HTMLStyle
21077 \end_layout
21078
21079 \end_inset
21080
21081  CSS style information to be included when this style is used.
21082  Note that this will automatically be wrapped in a layout-generated 
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 <style>
21088 \end_layout
21089
21090 \end_inset
21091
21092  block, so only the CSS itself need be included.
21093 \end_layout
21094
21095 \begin_layout Description
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 HTMLTag
21101 \end_layout
21102
21103 \end_inset
21104
21105  [
21106 \begin_inset Flex Code
21107 status collapsed
21108
21109 \begin_layout Plain Layout
21110 string
21111 \end_layout
21112
21113 \end_inset
21114
21115 ] The tag to be used for the main label, replacing 
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 tag
21121 \end_layout
21122
21123 \end_inset
21124
21125  in the examples above.
21126  The default depends upon the setting of 
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131 MultiPar
21132 \end_layout
21133
21134 \end_inset
21135
21136 : If 
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 MultiPar
21142 \end_layout
21143
21144 \end_inset
21145
21146  is true, the default is 
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 div
21152 \end_layout
21153
21154 \end_inset
21155
21156 ; if it is false, the default is 
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 span
21162 \end_layout
21163
21164 \end_inset
21165
21166 .
21167 \end_layout
21168
21169 \begin_layout Subsection
21170 Float XHTML
21171 \end_layout
21172
21173 \begin_layout Standard
21174 The XHTML output for floats too can be controlled by layout information.
21175  The output has the following form:
21176 \end_layout
21177
21178 \begin_layout LyX-Code
21179 <tag attr=
21180 \begin_inset Quotes erd
21181 \end_inset
21182
21183 value
21184 \begin_inset Quotes erd
21185 \end_inset
21186
21187 >
21188 \end_layout
21189
21190 \begin_layout LyX-Code
21191 Contents of the float.
21192 \end_layout
21193
21194 \begin_layout LyX-Code
21195 </tag>
21196 \end_layout
21197
21198 \begin_layout Standard
21199 The caption, if there is one, is a separate inset and will be output as
21200  such.
21201  Its appearance can be controlled via the InsetLayout for caption insets.
21202  
21203 \end_layout
21204
21205 \begin_layout Description
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 HTMLAttr
21211 \end_layout
21212
21213 \end_inset
21214
21215  [
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 string
21221 \end_layout
21222
21223 \end_inset
21224
21225 ] Specifies attribute information to be output with the main tag.
21226  For example, 
21227 \begin_inset Quotes eld
21228 \end_inset
21229
21230
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 class=`myfloat' onclick=`\SpecialChar \ldots{}
21236 '
21237 \end_layout
21238
21239 \end_inset
21240
21241
21242 \begin_inset Quotes erd
21243 \end_inset
21244
21245 .
21246  By default, LyX will output 
21247 \begin_inset Quotes eld
21248 \end_inset
21249
21250
21251 \begin_inset Flex Code
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 class=`float float-floattype'
21256 \end_layout
21257
21258 \end_inset
21259
21260
21261 \begin_inset Quotes erd
21262 \end_inset
21263
21264 , where 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 floattype
21270 \end_layout
21271
21272 \end_inset
21273
21274  is LyX's name for this type of float, as determined by the float declaration
21275  (see 
21276 \begin_inset CommandInset ref
21277 LatexCommand ref
21278 reference "sub:Floats"
21279
21280 \end_inset
21281
21282 ), though made lowercase and with non-alphanumeric characters converted
21283  to underscores, for example: float-table.
21284 \end_layout
21285
21286 \begin_layout Description
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 HTMLStyle
21292 \end_layout
21293
21294 \end_inset
21295
21296  CSS style information to be included when this float is used.
21297  Note that this will automatically be wrapped in a layout-generated 
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 <style>
21303 \end_layout
21304
21305 \end_inset
21306
21307  block, so only the CSS itself need be included.
21308 \end_layout
21309
21310 \begin_layout Description
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 HTMLTag
21316 \end_layout
21317
21318 \end_inset
21319
21320  [
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 string
21326 \end_layout
21327
21328 \end_inset
21329
21330 ] The tag to be used for this float, replacing 
21331 \begin_inset Quotes eld
21332 \end_inset
21333
21334
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 tag
21340 \end_layout
21341
21342 \end_inset
21343
21344
21345 \begin_inset Quotes erd
21346 \end_inset
21347
21348  in the example above.
21349  The default is 
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 div
21355 \end_layout
21356
21357 \end_inset
21358
21359  and will rarely need changing.
21360 \end_layout
21361
21362 \begin_layout Subsection
21363 Bibliography formatting
21364 \end_layout
21365
21366 \begin_layout Standard
21367 The bibliography can be formatted using 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 CiteFormat
21373 \end_layout
21374
21375 \end_inset
21376
21377  blocks.
21378  See 
21379 \begin_inset CommandInset ref
21380 LatexCommand ref
21381 reference "sub:Citation-format-description"
21382
21383 \end_inset
21384
21385  for the details.
21386 \end_layout
21387
21388 \begin_layout Subsection
21389 LyX-generated CSS
21390 \end_layout
21391
21392 \begin_layout Standard
21393 We have several times mentioned that LyX will generate default CSS style
21394  rules for both insets and paragraph styles, based upon the other layout
21395  information that is provided.
21396  In this section, we shall say a word about which layout information LyX
21397  uses and how.
21398 \end_layout
21399
21400 \begin_layout Standard
21401 At present, LyX auto-generates CSS only for font information, making use
21402  of the 
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 Family
21408 \end_layout
21409
21410 \end_inset
21411
21412
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 Series
21418 \end_layout
21419
21420 \end_inset
21421
21422
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 Shape
21428 \end_layout
21429
21430 \end_inset
21431
21432 , and 
21433 \begin_inset Flex Code
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437 Size
21438 \end_layout
21439
21440 \end_inset
21441
21442  specified in the 
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 Font
21448 \end_layout
21449
21450 \end_inset
21451
21452  declaration (see 
21453 \begin_inset CommandInset ref
21454 LatexCommand ref
21455 reference "sub:Font-description"
21456
21457 \end_inset
21458
21459 ).
21460  The translation is mostly straightforward and obvious.
21461  For example, 
21462 \begin_inset Quotes eld
21463 \end_inset
21464
21465
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 Family Sans
21471 \end_layout
21472
21473 \end_inset
21474
21475
21476 \begin_inset Quotes erd
21477 \end_inset
21478
21479  becomes 
21480 \begin_inset Quotes eld
21481 \end_inset
21482
21483
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 font-family: sans-serif;
21489 \end_layout
21490
21491 \end_inset
21492
21493
21494 \begin_inset Quotes erd
21495 \end_inset
21496
21497 .
21498  The correspondence of LyX sizes and CSS sizes is a little less obvious
21499  but nonetheless intuitive.
21500  See the 
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 getSizeCSS()
21506 \end_layout
21507
21508 \end_inset
21509
21510  function in 
21511 \begin_inset Flex URL
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515
21516 src/FontInfo.cpp
21517 \end_layout
21518
21519 \end_inset
21520
21521  for the details.
21522 \end_layout
21523
21524 \begin_layout Chapter
21525 Including External Material
21526 \begin_inset CommandInset label
21527 LatexCommand label
21528 name "chap:Including-External-Material"
21529
21530 \end_inset
21531
21532
21533 \end_layout
21534
21535 \begin_layout Standard
21536 \begin_inset Box Shadowbox
21537 position "t"
21538 hor_pos "c"
21539 has_inner_box 1
21540 inner_pos "t"
21541 use_parbox 0
21542 use_makebox 0
21543 width "100col%"
21544 special "none"
21545 height "1in"
21546 height_special "totalheight"
21547 status open
21548
21549 \begin_layout Plain Layout
21550 WARNING: This portion of the documentation has not been updated for some
21551  time.
21552  We certainly hope that it is still accurate, but there are no guarantees.
21553 \end_layout
21554
21555 \end_inset
21556
21557
21558 \end_layout
21559
21560 \begin_layout Standard
21561 The use of material from sources external to LyX is covered in detail in
21562  the 
21563 \emph on
21564 Embedded Objects
21565 \emph default
21566  manual.
21567  This part of the manual covers what needs to happen behind the scenes for
21568  new sorts of material to be included.
21569 \end_layout
21570
21571 \begin_layout Section
21572 How does it work?
21573 \end_layout
21574
21575 \begin_layout Standard
21576 The external material feature is based on the concept of a 
21577 \emph on
21578 template
21579 \emph default
21580 .
21581  A template is a specification of how LyX should interface with a certain
21582  kind of material.
21583  As bundled, LyX comes with predefined templates for Xfig figures, various
21584  raster format images, chess diagrams, and LilyPond music notation.
21585  You can check the actual list by using the menu 
21586 \begin_inset Flex MenuItem
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 Insert\SpecialChar \menuseparator
21591 File\SpecialChar \menuseparator
21592 External Material
21593 \end_layout
21594
21595 \end_inset
21596
21597 .
21598  Furthermore, it is possible to roll your own template to support a specific
21599  kind of material.
21600  Later we'll describe in more detail what is involved, and hopefully you
21601  will submit all the templates you create so we can include them in a later
21602  LyX version.
21603 \end_layout
21604
21605 \begin_layout Standard
21606 Another basic idea of the external material feature is to distinguish between
21607  the original file that serves as a base for final material and the produced
21608  file that is included in your exported or printed document.
21609  For example, consider the case of a figure produced with 
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614 Xfig
21615 \end_layout
21616
21617 \end_inset
21618
21619 .
21620  The Xfig application itself works on an original file with the 
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 .fig
21626 \end_layout
21627
21628 \end_inset
21629
21630  extension.
21631  Within Xfig, you create and change your figure, and when you are done,
21632  you save the 
21633 \begin_inset Flex Code
21634 status collapsed
21635
21636 \begin_layout Plain Layout
21637 fig
21638 \end_layout
21639
21640 \end_inset
21641
21642 -file.
21643  When you want to include the figure in your document, you invoke 
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 transfig
21649 \end_layout
21650
21651 \end_inset
21652
21653  in order to create a PostScript file that can readily be included in your
21654  LaTeX file.
21655  In this case, the 
21656 \begin_inset Flex Code
21657 status collapsed
21658
21659 \begin_layout Plain Layout
21660 .fig
21661 \end_layout
21662
21663 \end_inset
21664
21665  file is the original file, and the PostScript file is the produced file.
21666 \end_layout
21667
21668 \begin_layout Standard
21669 This distinction is important in order to allow updating of the material
21670  while you are in the process of writing the document.
21671  Furthermore, it provides us with the flexibility that is needed to support
21672  multiple export formats.
21673  For instance, in the case of a plain text file, it is not exactly an award-winn
21674 ing idea to include the figure as raw PostScript.
21675  Instead, you would either prefer to just include a reference to the figure
21676  or try to invoke some graphics to ASCII converter to make the final result
21677  look similar to the real graphics.
21678  The external material management allows you to do this, because it is parametri
21679 zed on the different export formats that LyX supports.
21680 \end_layout
21681
21682 \begin_layout Standard
21683 Besides supporting the production of different products according to the
21684  exported format, it supports tight integration with editing and viewing
21685  applications.
21686  In the case of an Xfig figure, you are able to invoke Xfig on the original
21687  file with a single click from within the external material dialog in LyX,
21688  and also preview the produced PostScript file with Ghostview with another
21689  click.
21690  No more fiddling around with the command line and/or file browsers to locate
21691  and manipulate the original or produced files.
21692  In this way, you are finally able to take full advantage of the many different
21693  applications that are relevant to use when you write your documents, and
21694  ultimately be more productive.
21695 \end_layout
21696
21697 \begin_layout Section
21698 The external template configuration file
21699 \end_layout
21700
21701 \begin_layout Standard
21702 It is relatively easy to add custom external template definitions to LyX.
21703  However, be aware that doing this in an careless manner most probably 
21704 \emph on
21705 will
21706 \emph default
21707  introduce an easily exploitable security hole.
21708  So before you do this, please read the discussion about security in 
21709 \begin_inset CommandInset ref
21710 LatexCommand ref
21711 reference "sec:Security-discussion"
21712
21713 \end_inset
21714
21715 .
21716 \end_layout
21717
21718 \begin_layout Standard
21719 Having said that, we encourage you to submit any interesting templates that
21720  you create.
21721  
21722 \end_layout
21723
21724 \begin_layout Standard
21725 The external templates are defined in the 
21726 \begin_inset Flex Code
21727 status collapsed
21728
21729 \begin_layout Plain Layout
21730 LyXDir/lib/external_templates
21731 \end_layout
21732
21733 \end_inset
21734
21735  file.
21736  You can place your own version in 
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741 UserDir/external_templates
21742 \end_layout
21743
21744 \end_inset
21745
21746 .
21747 \end_layout
21748
21749 \begin_layout Standard
21750 A typical template looks like this:
21751 \end_layout
21752
21753 \begin_layout LyX-Code
21754 Template XFig
21755 \end_layout
21756
21757 \begin_layout LyX-Code
21758 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
21759 \end_layout
21760
21761 \begin_layout LyX-Code
21762 HelpText
21763 \end_layout
21764
21765 \begin_layout LyX-Code
21766 An XFig figure.
21767 \end_layout
21768
21769 \begin_layout LyX-Code
21770 HelpTextEnd
21771 \end_layout
21772
21773 \begin_layout LyX-Code
21774 InputFormat fig
21775 \end_layout
21776
21777 \begin_layout LyX-Code
21778 FileFilter "*.fig"
21779 \end_layout
21780
21781 \begin_layout LyX-Code
21782 AutomaticProduction true
21783 \end_layout
21784
21785 \begin_layout LyX-Code
21786 Transform Rotate
21787 \end_layout
21788
21789 \begin_layout LyX-Code
21790 Transform Resize
21791 \end_layout
21792
21793 \begin_layout LyX-Code
21794 Format LaTeX
21795 \end_layout
21796
21797 \begin_layout LyX-Code
21798 TransformCommand Rotate RotationLatexCommand
21799 \end_layout
21800
21801 \begin_layout LyX-Code
21802 TransformCommand Resize ResizeLatexCommand
21803 \end_layout
21804
21805 \begin_layout LyX-Code
21806 Product "$$RotateFront$$ResizeFront
21807 \end_layout
21808
21809 \begin_layout LyX-Code
21810          
21811 \backslash
21812
21813 \backslash
21814 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
21815 \end_layout
21816
21817 \begin_layout LyX-Code
21818          $$ResizeBack$$RotateBack"
21819 \end_layout
21820
21821 \begin_layout LyX-Code
21822 UpdateFormat pstex
21823 \end_layout
21824
21825 \begin_layout LyX-Code
21826 UpdateResult "$$AbsPath$$Basename.pstex_t"
21827 \end_layout
21828
21829 \begin_layout LyX-Code
21830 Requirement "graphicx"
21831 \end_layout
21832
21833 \begin_layout LyX-Code
21834 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
21835 \end_layout
21836
21837 \begin_layout LyX-Code
21838 ReferencedFile latex "$$AbsPath$$Basename.eps"
21839 \end_layout
21840
21841 \begin_layout LyX-Code
21842 ReferencedFile dvi "$$AbsPath$$Basename.eps"
21843 \end_layout
21844
21845 \begin_layout LyX-Code
21846 FormatEnd
21847 \end_layout
21848
21849 \begin_layout LyX-Code
21850 Format PDFLaTeX
21851 \end_layout
21852
21853 \begin_layout LyX-Code
21854 TransformCommand Rotate RotationLatexCommand
21855 \end_layout
21856
21857 \begin_layout LyX-Code
21858 TransformCommand Resize ResizeLatexCommand
21859 \end_layout
21860
21861 \begin_layout LyX-Code
21862 Product "$$RotateFront$$ResizeFront
21863 \end_layout
21864
21865 \begin_layout LyX-Code
21866          
21867 \backslash
21868
21869 \backslash
21870 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
21871 \end_layout
21872
21873 \begin_layout LyX-Code
21874          $$ResizeBack$$RotateBack"
21875 \end_layout
21876
21877 \begin_layout LyX-Code
21878 UpdateFormat pdftex
21879 \end_layout
21880
21881 \begin_layout LyX-Code
21882 UpdateResult "$$AbsPath$$Basename.pdftex_t"
21883 \end_layout
21884
21885 \begin_layout LyX-Code
21886 Requirement "graphicx"
21887 \end_layout
21888
21889 \begin_layout LyX-Code
21890 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
21891 \end_layout
21892
21893 \begin_layout LyX-Code
21894 ReferencedFile latex "$$AbsPath$$Basename.pdf"
21895 \end_layout
21896
21897 \begin_layout LyX-Code
21898 FormatEnd
21899 \end_layout
21900
21901 \begin_layout LyX-Code
21902 Format Ascii
21903 \end_layout
21904
21905 \begin_layout LyX-Code
21906 Product "$$Contents(
21907 \backslash
21908 "$$AbsPath$$Basename.asc
21909 \backslash
21910 ")"
21911 \end_layout
21912
21913 \begin_layout LyX-Code
21914 UpdateFormat asciixfig
21915 \end_layout
21916
21917 \begin_layout LyX-Code
21918 UpdateResult "$$AbsPath$$Basename.asc"
21919 \end_layout
21920
21921 \begin_layout LyX-Code
21922 FormatEnd
21923 \end_layout
21924
21925 \begin_layout LyX-Code
21926 Format DocBook
21927 \end_layout
21928
21929 \begin_layout LyX-Code
21930 Product "<graphic fileref=
21931 \backslash
21932 "$$AbsOrRelPathMaster$$Basename.eps
21933 \backslash
21934 ">
21935 \end_layout
21936
21937 \begin_layout LyX-Code
21938          </graphic>"
21939 \end_layout
21940
21941 \begin_layout LyX-Code
21942 UpdateFormat eps
21943 \end_layout
21944
21945 \begin_layout LyX-Code
21946 UpdateResult "$$AbsPath$$Basename.eps"
21947 \end_layout
21948
21949 \begin_layout LyX-Code
21950 ReferencedFile docbook "$$AbsPath$$Basename.eps"
21951 \end_layout
21952
21953 \begin_layout LyX-Code
21954 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
21955 \end_layout
21956
21957 \begin_layout LyX-Code
21958 FormatEnd
21959 \end_layout
21960
21961 \begin_layout LyX-Code
21962 Product "[XFig: $$FName]"
21963 \end_layout
21964
21965 \begin_layout LyX-Code
21966 FormatEnd
21967 \end_layout
21968
21969 \begin_layout LyX-Code
21970 TemplateEnd
21971 \end_layout
21972
21973 \begin_layout Standard
21974 As you can see, the template is enclosed in 
21975 \begin_inset Flex Code
21976 status collapsed
21977
21978 \begin_layout Plain Layout
21979 Template
21980 \end_layout
21981
21982 \end_inset
21983
21984  \SpecialChar \ldots{}
21985  
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 TemplateEnd
21991 \end_layout
21992
21993 \end_inset
21994
21995 .
21996  It contains a header specifying some general settings and, for each supported
21997  primary document file format, a section 
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002 Format
22003 \end_layout
22004
22005 \end_inset
22006
22007  \SpecialChar \ldots{}
22008  
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 FormatEnd
22014 \end_layout
22015
22016 \end_inset
22017
22018 .
22019 \end_layout
22020
22021 \begin_layout Subsection
22022 The template header
22023 \end_layout
22024
22025 \begin_layout Description
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 AutomaticProduction
22031 \begin_inset space ~
22032 \end_inset
22033
22034 true|false
22035 \end_layout
22036
22037 \end_inset
22038
22039  Whether the file represented by the template must be generated by LyX.
22040  This command must occur exactly once.
22041 \end_layout
22042
22043 \begin_layout Description
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 FileFilter
22049 \begin_inset space ~
22050 \end_inset
22051
22052 <pattern>
22053 \end_layout
22054
22055 \end_inset
22056
22057  A glob pattern that is used in the file dialog to filter out the desired
22058  files.
22059  If there is more than one possible file extension (e.
22060 \begin_inset space \thinspace{}
22061 \end_inset
22062
22063 g.
22064 \begin_inset space \space{}
22065 \end_inset
22066
22067 tgif has 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 .obj
22073 \end_layout
22074
22075 \end_inset
22076
22077  and 
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 .tgo
22083 \end_layout
22084
22085 \end_inset
22086
22087 ), use something like 
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092 "*.{obj,tgo}"
22093 \end_layout
22094
22095 \end_inset
22096
22097 .
22098  This command must occur exactly once.
22099 \end_layout
22100
22101 \begin_layout Description
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 GuiName
22107 \begin_inset space ~
22108 \end_inset
22109
22110 <guiname>
22111 \end_layout
22112
22113 \end_inset
22114
22115  The text that is displayed on the button.
22116  This command must occur exactly once.
22117 \end_layout
22118
22119 \begin_layout Description
22120 \begin_inset Flex Code
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 HelpText
22125 \begin_inset space ~
22126 \end_inset
22127
22128 <text>
22129 \begin_inset space ~
22130 \end_inset
22131
22132 HelpTextEnd
22133 \end_layout
22134
22135 \end_inset
22136
22137  The help text that is used in the External dialog.
22138  Provide enough information to explain to the user just what the template
22139  can provide him with.
22140  This command must occur exactly once.
22141 \end_layout
22142
22143 \begin_layout Description
22144 \begin_inset Flex Code
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 InputFormat
22149 \begin_inset space ~
22150 \end_inset
22151
22152 <format>
22153 \end_layout
22154
22155 \end_inset
22156
22157  The file format of the original file.
22158  This must be the name of a format that is known to LyX (see 
22159 \begin_inset CommandInset ref
22160 LatexCommand ref
22161 reference "sec:Formats"
22162
22163 \end_inset
22164
22165 ).
22166  Use 
22167 \begin_inset Quotes eld
22168 \end_inset
22169
22170
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 *
22176 \end_layout
22177
22178 \end_inset
22179
22180
22181 \begin_inset Quotes erd
22182 \end_inset
22183
22184  if the template can handle original files of more than one format.
22185  LyX will attempt to interrogate the file itself in order to deduce its
22186  format in this case.
22187  This command must occur exactly once.
22188 \end_layout
22189
22190 \begin_layout Description
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195 Template
22196 \begin_inset space ~
22197 \end_inset
22198
22199 <id>
22200 \end_layout
22201
22202 \end_inset
22203
22204  A unique name for the template.
22205  It must not contain substitution macros (see below).
22206 \end_layout
22207
22208 \begin_layout Description
22209 \begin_inset Flex Code
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 Transform
22214 \begin_inset space ~
22215 \end_inset
22216
22217 Rotate|Resize|Clip|Extra
22218 \end_layout
22219
22220 \end_inset
22221
22222  This command specifies which transformations are supported by this template.
22223  It may occur zero or more times.
22224  This command enables the corresponding tabs in the external dialog.
22225  Each 
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 Transform
22231 \end_layout
22232
22233 \end_inset
22234
22235  command must have either a corresponding 
22236 \begin_inset Flex Code
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 TransformCommand
22241 \end_layout
22242
22243 \end_inset
22244
22245  or a 
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250 TransformOption
22251 \end_layout
22252
22253 \end_inset
22254
22255  command in the 
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 Format
22261 \end_layout
22262
22263 \end_inset
22264
22265  section.
22266  Otherwise the transformation will not be supported by that format.
22267 \end_layout
22268
22269 \begin_layout Subsection
22270 The Format section
22271 \end_layout
22272
22273 \begin_layout Description
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 Format
22279 \begin_inset space ~
22280 \end_inset
22281
22282 LaTeX|PDFLaTeX|PlainText|DocBook
22283 \end_layout
22284
22285 \end_inset
22286
22287  The primary document file format that this format definition is for.
22288  Not every template has a sensible representation in all document file formats.
22289  Please define nevertheless a 
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 Format
22295 \end_layout
22296
22297 \end_inset
22298
22299  section for all templates.
22300  Use a dummy text when no representation is available.
22301  Then you can at least see a reference to the external material in the exported
22302  document.
22303 \end_layout
22304
22305 \begin_layout Description
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310 Option
22311 \begin_inset space ~
22312 \end_inset
22313
22314 <name>
22315 \begin_inset space ~
22316 \end_inset
22317
22318 <value>
22319 \end_layout
22320
22321 \end_inset
22322
22323  This command defines an additional macro 
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 $$<name>
22329 \end_layout
22330
22331 \end_inset
22332
22333  for substitution in 
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 Product
22339 \end_layout
22340
22341 \end_inset
22342
22343 .
22344  
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 <value>
22350 \end_layout
22351
22352 \end_inset
22353
22354  itself may contain substitution macros.
22355  The advantage over using 
22356 \begin_inset Flex Code
22357 status collapsed
22358
22359 \begin_layout Plain Layout
22360 <value>
22361 \end_layout
22362
22363 \end_inset
22364
22365  directly in 
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370 Product
22371 \end_layout
22372
22373 \end_inset
22374
22375  is that the substituted value of 
22376 \begin_inset Flex Code
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 $$<name>
22381 \end_layout
22382
22383 \end_inset
22384
22385  is sanitized so that it is a valid optional argument in the document format.
22386  This command may occur zero or more times.
22387 \end_layout
22388
22389 \begin_layout Description
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 Product
22395 \begin_inset space ~
22396 \end_inset
22397
22398 <text>
22399 \end_layout
22400
22401 \end_inset
22402
22403  The text that is inserted in the exported document.
22404  This is actually the most important command and can be quite complex.
22405  This command must occur exactly once.
22406 \end_layout
22407
22408 \begin_layout Description
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413 Preamble
22414 \begin_inset space ~
22415 \end_inset
22416
22417 <name>
22418 \end_layout
22419
22420 \end_inset
22421
22422  This command specifies a preamble snippet that will be included in the
22423  LaTeX preamble.
22424  It has to be defined using 
22425 \begin_inset Flex Code
22426 status collapsed
22427
22428 \begin_layout Plain Layout
22429 PreambleDef
22430 \end_layout
22431
22432 \end_inset
22433
22434  \SpecialChar \ldots{}
22435  
22436 \begin_inset Flex Code
22437 status collapsed
22438
22439 \begin_layout Plain Layout
22440 PreambleDefEnd
22441 \end_layout
22442
22443 \end_inset
22444
22445 .
22446  This command may occur zero or more times.
22447 \end_layout
22448
22449 \begin_layout Description
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 ReferencedFile
22455 \begin_inset space ~
22456 \end_inset
22457
22458 <format>
22459 \begin_inset space ~
22460 \end_inset
22461
22462 <filename>
22463 \end_layout
22464
22465 \end_inset
22466
22467  This command denotes files that are created by the conversion process and
22468  are needed for a particular export format.
22469  If the filename is relative, it is interpreted relative to the master document.
22470  This command may be given zero or more times.
22471 \end_layout
22472
22473 \begin_layout Description
22474 \begin_inset Flex Code
22475 status collapsed
22476
22477 \begin_layout Plain Layout
22478 Requirement
22479 \begin_inset space ~
22480 \end_inset
22481
22482 <package>
22483 \end_layout
22484
22485 \end_inset
22486
22487  The name of a required LaTeX package.
22488  The package is included via 
22489 \begin_inset Flex Code
22490 status collapsed
22491
22492 \begin_layout Plain Layout
22493
22494 \backslash
22495 usepackage{}
22496 \end_layout
22497
22498 \end_inset
22499
22500  in the LaTeX preamble.
22501  This command may occur zero or more times.
22502 \end_layout
22503
22504 \begin_layout Description
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 TransformCommand
22510 \begin_inset space ~
22511 \end_inset
22512
22513 Rotate
22514 \begin_inset space ~
22515 \end_inset
22516
22517 RotationLatexCommand
22518 \end_layout
22519
22520 \end_inset
22521
22522  This command specifies that the built in LaTeX command should be used for
22523  rotation.
22524  This command may occur once or not at all.
22525 \end_layout
22526
22527 \begin_layout Description
22528 \begin_inset Flex Code
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 TransformCommand
22533 \begin_inset space ~
22534 \end_inset
22535
22536 Resize
22537 \begin_inset space ~
22538 \end_inset
22539
22540 ResizeLatexCommand
22541 \end_layout
22542
22543 \end_inset
22544
22545  This command specifies that the built in LaTeX command should be used for
22546  resizing.
22547  This command may occur once or not at all.
22548 \end_layout
22549
22550 \begin_layout Description
22551 \begin_inset Flex Code
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 TransformOption
22556 \begin_inset space ~
22557 \end_inset
22558
22559 Rotate
22560 \begin_inset space ~
22561 \end_inset
22562
22563 RotationLatexOption
22564 \end_layout
22565
22566 \end_inset
22567
22568  This command specifies that rotation is done via an optional argument.
22569  This command may occur once or not at all.
22570 \end_layout
22571
22572 \begin_layout Description
22573 \begin_inset Flex Code
22574 status collapsed
22575
22576 \begin_layout Plain Layout
22577 TransformOption
22578 \begin_inset space ~
22579 \end_inset
22580
22581 Resize
22582 \begin_inset space ~
22583 \end_inset
22584
22585 ResizeLatexOption
22586 \end_layout
22587
22588 \end_inset
22589
22590  This command specifies that resizing is done via an optional argument.
22591  This command may occur once or not at all.
22592 \end_layout
22593
22594 \begin_layout Description
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 TransformOption
22600 \begin_inset space ~
22601 \end_inset
22602
22603 Clip
22604 \begin_inset space ~
22605 \end_inset
22606
22607 ClipLatexOption
22608 \end_layout
22609
22610 \end_inset
22611
22612  This command specifies that clipping is done via an optional argument.
22613  This command may occur once or not at all.
22614 \end_layout
22615
22616 \begin_layout Description
22617 \begin_inset Flex Code
22618 status collapsed
22619
22620 \begin_layout Plain Layout
22621 TransformOption
22622 \begin_inset space ~
22623 \end_inset
22624
22625 Extra
22626 \begin_inset space ~
22627 \end_inset
22628
22629 ExtraLatexOption
22630 \end_layout
22631
22632 \end_inset
22633
22634  This command specifies that an extra optional argument is used.
22635  This command may occur once or not at all.
22636 \end_layout
22637
22638 \begin_layout Description
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 UpdateFormat
22644 \begin_inset space ~
22645 \end_inset
22646
22647 <format>
22648 \end_layout
22649
22650 \end_inset
22651
22652  The file format of the converted file.
22653  This must be the name of a format that is known to LyX (see the 
22654 \begin_inset Flex MenuItem
22655 status collapsed
22656
22657 \begin_layout Plain Layout
22658 Tools\SpecialChar \menuseparator
22659 Preferences\SpecialChar \menuseparator
22660 File Handling\SpecialChar \menuseparator
22661 File Format
22662 \end_layout
22663
22664 \end_inset
22665
22666  dialog).
22667  This command must occur exactly once.
22668  If the resulting file format is PDF, you need to specify the format 
22669 \begin_inset Flex Code
22670 status collapsed
22671
22672 \begin_layout Plain Layout
22673 pdf6
22674 \end_layout
22675
22676 \end_inset
22677
22678 .
22679  This is the PDF format used for including graphics.
22680  The other defined PDF formats are for document export.
22681 \end_layout
22682
22683 \begin_layout Description
22684 \begin_inset Flex Code
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688 UpdateResult
22689 \begin_inset space ~
22690 \end_inset
22691
22692 <filename>
22693 \end_layout
22694
22695 \end_inset
22696
22697  The file name of the converted file.
22698  The file name must be absolute.
22699  This command must occur exactly once.
22700 \end_layout
22701
22702 \begin_layout Subsection
22703 Preamble definitions
22704 \end_layout
22705
22706 \begin_layout Standard
22707 The external template configuration file may contain additional preamble
22708  definitions enclosed by 
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713 PreambleDef
22714 \end_layout
22715
22716 \end_inset
22717
22718  \SpecialChar \ldots{}
22719  
22720 \begin_inset Flex Code
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724 PreambleDefEnd
22725 \end_layout
22726
22727 \end_inset
22728
22729 .
22730  They can be used by the templates in the 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 Format
22736 \end_layout
22737
22738 \end_inset
22739
22740  section.
22741 \end_layout
22742
22743 \begin_layout Section
22744 The substitution mechanism
22745 \end_layout
22746
22747 \begin_layout Standard
22748 When the external material facility invokes an external program, it is done
22749  on the basis of a command defined in the template configuration file.
22750  These commands can contain various macros that are expanded before execution.
22751  Execution always take place in the directory of the containing document.
22752 \end_layout
22753
22754 \begin_layout Standard
22755 Also, whenever external material is to be displayed, the name will be produced
22756  by the substitution mechanism, and most other commands in the template
22757  definition support substitution as well.
22758 \end_layout
22759
22760 \begin_layout Standard
22761 The available macros are the following:
22762 \end_layout
22763
22764 \begin_layout Description
22765 \begin_inset Flex Code
22766 status collapsed
22767
22768 \begin_layout Plain Layout
22769 $$AbsOrRelPathMaster
22770 \end_layout
22771
22772 \end_inset
22773
22774  The file path, absolute or relative to the master LyX document.
22775 \end_layout
22776
22777 \begin_layout Description
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 $$AbsOrRelPathParent
22783 \end_layout
22784
22785 \end_inset
22786
22787  The file path, absolute or relative to the LyX document.
22788 \end_layout
22789
22790 \begin_layout Description
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 $$AbsPath
22796 \end_layout
22797
22798 \end_inset
22799
22800  The absolute file path.
22801 \end_layout
22802
22803 \begin_layout Description
22804 \begin_inset Flex Code
22805 status collapsed
22806
22807 \begin_layout Plain Layout
22808 $$Basename
22809 \end_layout
22810
22811 \end_inset
22812
22813  The filename without path and without the extension.
22814 \end_layout
22815
22816 \begin_layout Description
22817 \begin_inset Flex Code
22818 status collapsed
22819
22820 \begin_layout Plain Layout
22821 $$Contents(
22822 \begin_inset Quotes eld
22823 \end_inset
22824
22825 filename.ext
22826 \begin_inset Quotes erd
22827 \end_inset
22828
22829 )
22830 \end_layout
22831
22832 \end_inset
22833
22834  This macro will expand to the contents of the file with the name 
22835 \begin_inset Flex Code
22836 status collapsed
22837
22838 \begin_layout Plain Layout
22839 filename.ext
22840 \end_layout
22841
22842 \end_inset
22843
22844 .
22845 \end_layout
22846
22847 \begin_layout Description
22848 \begin_inset Flex Code
22849 status collapsed
22850
22851 \begin_layout Plain Layout
22852 $$Extension
22853 \end_layout
22854
22855 \end_inset
22856
22857  The file extension (including the dot).
22858 \end_layout
22859
22860 \begin_layout Description
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 $$FName
22866 \end_layout
22867
22868 \end_inset
22869
22870  The filename of the file specified in the external material dialog.
22871  This is either an absolute name, or it is relative to the LyX document.
22872 \end_layout
22873
22874 \begin_layout Description
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 $$FPath
22880 \end_layout
22881
22882 \end_inset
22883
22884  The path part of 
22885 \begin_inset Flex Code
22886 status collapsed
22887
22888 \begin_layout Plain Layout
22889 $$FName
22890 \end_layout
22891
22892 \end_inset
22893
22894  (absolute name or relative to the LyX document).
22895 \end_layout
22896
22897 \begin_layout Description
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 $$RelPathMaster
22903 \end_layout
22904
22905 \end_inset
22906
22907  The file path, relative to the master LyX document.
22908 \end_layout
22909
22910 \begin_layout Description
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 $$RelPathParent
22916 \end_layout
22917
22918 \end_inset
22919
22920  The file path, relative to the LyX document.
22921 \end_layout
22922
22923 \begin_layout Description
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 $$Sysdir
22929 \end_layout
22930
22931 \end_inset
22932
22933  This macro will expand to the absolute path of the system directory.
22934  This is typically used to point to the various helper scripts that are
22935  bundled with LyX.
22936 \end_layout
22937
22938 \begin_layout Description
22939 \begin_inset Flex Code
22940 status collapsed
22941
22942 \begin_layout Plain Layout
22943 $$Tempname
22944 \end_layout
22945
22946 \end_inset
22947
22948  A name and full path to a temporary file which will be automatically deleted
22949  whenever the containing document is closed, or the external material insertion
22950  deleted.
22951 \end_layout
22952
22953 \begin_layout Standard
22954 All path macros contain a trailing directory separator, so you can construct
22955  e.
22956 \begin_inset space \thinspace{}
22957 \end_inset
22958
22959 g.
22960 \begin_inset space \space{}
22961 \end_inset
22962
22963 the absolute filename with 
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 $$AbsPath$$Basename$$Extension
22969 \end_layout
22970
22971 \end_inset
22972
22973 .
22974 \end_layout
22975
22976 \begin_layout Standard
22977 The macros above are substituted in all commands unless otherwise noted.
22978  The command 
22979 \begin_inset Flex Code
22980 status collapsed
22981
22982 \begin_layout Plain Layout
22983 Product
22984 \end_layout
22985
22986 \end_inset
22987
22988  supports additionally the following substitutions if they are enabled by
22989  the 
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 Transform
22995 \end_layout
22996
22997 \end_inset
22998
22999  and 
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 TransformCommand
23005 \end_layout
23006
23007 \end_inset
23008
23009  commands:
23010 \end_layout
23011
23012 \begin_layout Description
23013 \begin_inset Flex Code
23014 status collapsed
23015
23016 \begin_layout Plain Layout
23017 $$ResizeFront
23018 \end_layout
23019
23020 \end_inset
23021
23022  The front part of the resize command.
23023 \end_layout
23024
23025 \begin_layout Description
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 $$ResizeBack
23031 \end_layout
23032
23033 \end_inset
23034
23035  The back part of the resize command.
23036 \end_layout
23037
23038 \begin_layout Description
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 $$RotateFront
23044 \end_layout
23045
23046 \end_inset
23047
23048  The front part of the rotation command.
23049 \end_layout
23050
23051 \begin_layout Description
23052 \begin_inset Flex Code
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056 $$RotateBack
23057 \end_layout
23058
23059 \end_inset
23060
23061  The back part of the rotation command.
23062 \end_layout
23063
23064 \begin_layout Standard
23065 The value string of the 
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 Option
23071 \end_layout
23072
23073 \end_inset
23074
23075  command supports additionally the following substitutions if they are enabled
23076  by the 
23077 \begin_inset Flex Code
23078 status collapsed
23079
23080 \begin_layout Plain Layout
23081 Transform
23082 \end_layout
23083
23084 \end_inset
23085
23086  and 
23087 \begin_inset Flex Code
23088 status collapsed
23089
23090 \begin_layout Plain Layout
23091 TransformOption
23092 \end_layout
23093
23094 \end_inset
23095
23096  commands:
23097 \end_layout
23098
23099 \begin_layout Description
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 $$Clip
23105 \end_layout
23106
23107 \end_inset
23108
23109  The clip option.
23110 \end_layout
23111
23112 \begin_layout Description
23113 \begin_inset Flex Code
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 $$Extra
23118 \end_layout
23119
23120 \end_inset
23121
23122  The extra option.
23123 \end_layout
23124
23125 \begin_layout Description
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 $$Resize
23131 \end_layout
23132
23133 \end_inset
23134
23135  The resize option.
23136 \end_layout
23137
23138 \begin_layout Description
23139 \begin_inset Flex Code
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 $$Rotate
23144 \end_layout
23145
23146 \end_inset
23147
23148  The rotation option.
23149 \end_layout
23150
23151 \begin_layout Standard
23152 You may ask why there are so many path macros.
23153  There are mainly two reasons:
23154 \end_layout
23155
23156 \begin_layout Enumerate
23157 Relative and absolute file names should remain relative or absolute, respectivel
23158 y.
23159  Users may have reasons to prefer either form.
23160  Relative names are useful for portable documents that should work on different
23161  machines, for example.
23162  Absolute names may be required by some programs.
23163 \end_layout
23164
23165 \begin_layout Enumerate
23166 LaTeX treats relative file names differently than LyX and other programs
23167  in nested included files.
23168  For LyX, a relative file name is always relative to the document that contains
23169  the file name.
23170  For LaTeX, it is always relative to the master document.
23171  These two definitions are identical if you have only one document, but
23172  differ if you have a master document that includes part documents.
23173  That means that relative filenames must be transformed when presented to
23174  LaTeX.
23175  Fortunately LyX does this automatically for you if you choose the right
23176  macros.
23177 \end_layout
23178
23179 \begin_layout Standard
23180 So which path macro should be used in new template definitions? The rule
23181  is not difficult:
23182 \end_layout
23183
23184 \begin_layout Itemize
23185 Use 
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 $$AbsPath
23191 \end_layout
23192
23193 \end_inset
23194
23195  if an absolute path is required.
23196 \end_layout
23197
23198 \begin_layout Itemize
23199 Use 
23200 \begin_inset Flex Code
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204 $$AbsOrRelPathMaster
23205 \end_layout
23206
23207 \end_inset
23208
23209  if the substituted string is some kind of LaTeX input.
23210 \end_layout
23211
23212 \begin_layout Itemize
23213 Else use 
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 $$AbsOrRelPathParent
23219 \end_layout
23220
23221 \end_inset
23222
23223  in order to preserve the user's choice.
23224 \end_layout
23225
23226 \begin_layout Standard
23227 There are special cases where this rule does not work and e.
23228 \begin_inset space \thinspace{}
23229 \end_inset
23230
23231 g.
23232 \begin_inset space \space{}
23233 \end_inset
23234
23235 relative names are needed, but normally it will work just fine.
23236  One example for such a case is the command 
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23242 \end_layout
23243
23244 \end_inset
23245
23246  in the XFig template above: We can't use the absolute name because the
23247  copier for 
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252 .pstex_t
23253 \end_layout
23254
23255 \end_inset
23256
23257  files needs the relative name in order to rewrite the file content.
23258 \end_layout
23259
23260 \begin_layout Section
23261 Security discussion
23262 \begin_inset CommandInset label
23263 LatexCommand label
23264 name "sec:Security-discussion"
23265
23266 \end_inset
23267
23268
23269 \end_layout
23270
23271 \begin_layout Standard
23272 The external material feature interfaces with a lot of external programs
23273  and does so automatically, so we have to consider the security implications
23274  of this.
23275  In particular, since you have the option of including your own filenames
23276  and/or parameter strings and those are expanded into a command, it seems
23277  that it would be possible to create a malicious document which executes
23278  arbitrary commands when a user views or prints the document.
23279  This is something we definitely want to avoid.
23280 \end_layout
23281
23282 \begin_layout Standard
23283 However, since the external program commands are specified in the template
23284  configuration file only, there are no security issues if LyX is properly
23285  configured with safe templates only.
23286  This is so because the external programs are invoked with the 
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291 execvp
23292 \end_layout
23293
23294 \end_inset
23295
23296 -system call rather than the 
23297 \begin_inset Flex Code
23298 status collapsed
23299
23300 \begin_layout Plain Layout
23301 system
23302 \end_layout
23303
23304 \end_inset
23305
23306  system-call, so it's not possible to execute arbitrary commands from the
23307  filename or parameter section via the shell.
23308 \end_layout
23309
23310 \begin_layout Standard
23311 This also implies that you are restricted in what command strings you can
23312  use in the external material templates.
23313  In particular, pipes and redirection are not readily available.
23314  This has to be so if LyX should remain safe.
23315  If you want to use some of the shell features, you should write a safe
23316  script to do this in a controlled manner, and then invoke the script from
23317  the command string.
23318  
23319 \end_layout
23320
23321 \begin_layout Standard
23322 It is possible to design a template that interacts directly with the shell,
23323  but since this would allow a malicious user to execute arbitrary commands
23324  by writing clever filenames and/or parameters, we generally recommend that
23325  you only use safe scripts that work with the 
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 execvp
23331 \end_layout
23332
23333 \end_inset
23334
23335  system call in a controlled manner.
23336  Of course, for use in a controlled environment, it can be tempting to just
23337  fall back to use ordinary shell scripts.
23338  If you do so, be aware that you 
23339 \emph on
23340 will
23341 \emph default
23342  provide an easily exploitable security hole in your system.
23343  Of course it stands to reason that such unsafe templates will never be
23344  included in the standard LyX distribution, although we do encourage people
23345  to submit new templates in the open source tradition.
23346  But LyX as shipped from the official distribution channels will never have
23347  unsafe templates.
23348 \end_layout
23349
23350 \begin_layout Standard
23351 Including external material provides a lot of power, and you have to be
23352  careful not to introduce security hazards with this power.
23353  A subtle error in a single line in an innocent looking script can open
23354  the door to huge security problems.
23355  So if you do not fully understand the issues, we recommend that you consult
23356  a knowledgeable security professional or the LyX development team if you
23357  have any questions about whether a given template is safe or not.
23358  And do this before you use it in an uncontrolled environment.
23359 \end_layout
23360
23361 \begin_layout Chapter
23362 \start_of_appendix
23363 List of supported LyX functions to be used in layouts
23364 \begin_inset CommandInset label
23365 LatexCommand label
23366 name "chap:List-of-functions"
23367
23368 \end_inset
23369
23370
23371 \end_layout
23372
23373 \begin_layout Standard
23374 \align center
23375 \begin_inset Tabular
23376 <lyxtabular version="3" rows="11" columns="8">
23377 <features rotate="0" tabularvalignment="middle">
23378 <column alignment="left" valignment="top">
23379 <column alignment="left" valignment="top">
23380 <column alignment="left" valignment="top">
23381 <column alignment="left" valignment="top">
23382 <column alignment="left" valignment="top">
23383 <column alignment="left" valignment="top">
23384 <column alignment="left" valignment="top">
23385 <column alignment="left" valignment="top">
23386 <row>
23387 <cell alignment="left" valignment="top" usebox="none">
23388 \begin_inset Text
23389
23390 \begin_layout Plain Layout
23391 accents
23392 \end_layout
23393
23394 \end_inset
23395 </cell>
23396 <cell alignment="left" valignment="top" usebox="none">
23397 \begin_inset Text
23398
23399 \begin_layout Plain Layout
23400 booktabs
23401 \end_layout
23402
23403 \end_inset
23404 </cell>
23405 <cell alignment="left" valignment="top" usebox="none">
23406 \begin_inset Text
23407
23408 \begin_layout Plain Layout
23409 feyn
23410 \end_layout
23411
23412 \end_inset
23413 </cell>
23414 <cell alignment="left" valignment="top" usebox="none">
23415 \begin_inset Text
23416
23417 \begin_layout Plain Layout
23418 listings
23419 \end_layout
23420
23421 \end_inset
23422 </cell>
23423 <cell alignment="center" valignment="top" usebox="none">
23424 \begin_inset Text
23425
23426 \begin_layout Plain Layout
23427 natbib
23428 \end_layout
23429
23430 \end_inset
23431 </cell>
23432 <cell alignment="center" valignment="top" usebox="none">
23433 \begin_inset Text
23434
23435 \begin_layout Plain Layout
23436 rotfloat
23437 \end_layout
23438
23439 \end_inset
23440 </cell>
23441 <cell alignment="center" valignment="top" usebox="none">
23442 \begin_inset Text
23443
23444 \begin_layout Plain Layout
23445 tfrupee
23446 \end_layout
23447
23448 \end_inset
23449 </cell>
23450 <cell alignment="center" valignment="top" usebox="none">
23451 \begin_inset Text
23452
23453 \begin_layout Plain Layout
23454 wasysym
23455 \end_layout
23456
23457 \end_inset
23458 </cell>
23459 </row>
23460 <row>
23461 <cell alignment="left" valignment="top" usebox="none">
23462 \begin_inset Text
23463
23464 \begin_layout Plain Layout
23465 amsbsy
23466 \end_layout
23467
23468 \end_inset
23469 </cell>
23470 <cell alignment="left" valignment="top" usebox="none">
23471 \begin_inset Text
23472
23473 \begin_layout Plain Layout
23474 calc
23475 \end_layout
23476
23477 \end_inset
23478 </cell>
23479 <cell alignment="left" valignment="top" usebox="none">
23480 \begin_inset Text
23481
23482 \begin_layout Plain Layout
23483 fixltx2e
23484 \end_layout
23485
23486 \end_inset
23487 </cell>
23488 <cell alignment="left" valignment="top" usebox="none">
23489 \begin_inset Text
23490
23491 \begin_layout Plain Layout
23492 longtable
23493 \end_layout
23494
23495 \end_inset
23496 </cell>
23497 <cell alignment="center" valignment="top" usebox="none">
23498 \begin_inset Text
23499
23500 \begin_layout Plain Layout
23501 nomencl
23502 \end_layout
23503
23504 \end_inset
23505 </cell>
23506 <cell alignment="center" valignment="top" usebox="none">
23507 \begin_inset Text
23508
23509 \begin_layout Plain Layout
23510 rsphrase
23511 \end_layout
23512
23513 \end_inset
23514 </cell>
23515 <cell alignment="center" valignment="top" usebox="none">
23516 \begin_inset Text
23517
23518 \begin_layout Plain Layout
23519 tipa
23520 \end_layout
23521
23522 \end_inset
23523 </cell>
23524 <cell alignment="center" valignment="top" usebox="none">
23525 \begin_inset Text
23526
23527 \begin_layout Plain Layout
23528 wrapfig
23529 \end_layout
23530
23531 \end_inset
23532 </cell>
23533 </row>
23534 <row>
23535 <cell alignment="left" valignment="top" usebox="none">
23536 \begin_inset Text
23537
23538 \begin_layout Plain Layout
23539 amscd
23540 \end_layout
23541
23542 \end_inset
23543 </cell>
23544 <cell alignment="left" valignment="top" usebox="none">
23545 \begin_inset Text
23546
23547 \begin_layout Plain Layout
23548 CJK
23549 \end_layout
23550
23551 \end_inset
23552 </cell>
23553 <cell alignment="left" valignment="top" usebox="none">
23554 \begin_inset Text
23555
23556 \begin_layout Plain Layout
23557 float
23558 \end_layout
23559
23560 \end_inset
23561 </cell>
23562 <cell alignment="left" valignment="top" usebox="none">
23563 \begin_inset Text
23564
23565 \begin_layout Plain Layout
23566 lyxskak
23567 \end_layout
23568
23569 \end_inset
23570 </cell>
23571 <cell alignment="center" valignment="top" usebox="none">
23572 \begin_inset Text
23573
23574 \begin_layout Plain Layout
23575 pdfcolmk
23576 \end_layout
23577
23578 \end_inset
23579 </cell>
23580 <cell alignment="center" valignment="top" usebox="none">
23581 \begin_inset Text
23582
23583 \begin_layout Plain Layout
23584 setspace
23585 \end_layout
23586
23587 \end_inset
23588 </cell>
23589 <cell alignment="center" valignment="top" usebox="none">
23590 \begin_inset Text
23591
23592 \begin_layout Plain Layout
23593 tipx
23594 \end_layout
23595
23596 \end_inset
23597 </cell>
23598 <cell alignment="center" valignment="top" usebox="none">
23599 \begin_inset Text
23600
23601 \begin_layout Plain Layout
23602 xargs
23603 \end_layout
23604
23605 \end_inset
23606 </cell>
23607 </row>
23608 <row>
23609 <cell alignment="left" valignment="top" usebox="none">
23610 \begin_inset Text
23611
23612 \begin_layout Plain Layout
23613 amsmath
23614 \end_layout
23615
23616 \end_inset
23617 </cell>
23618 <cell alignment="left" valignment="top" usebox="none">
23619 \begin_inset Text
23620
23621 \begin_layout Plain Layout
23622 color
23623 \end_layout
23624
23625 \end_inset
23626 </cell>
23627 <cell alignment="left" valignment="top" usebox="none">
23628 \begin_inset Text
23629
23630 \begin_layout Plain Layout
23631 framed
23632 \end_layout
23633
23634 \end_inset
23635 </cell>
23636 <cell alignment="left" valignment="top" usebox="none">
23637 \begin_inset Text
23638
23639 \begin_layout Plain Layout
23640 makeidx
23641 \end_layout
23642
23643 \end_inset
23644 </cell>
23645 <cell alignment="center" valignment="top" usebox="none">
23646 \begin_inset Text
23647
23648 \begin_layout Plain Layout
23649 pdfpages
23650 \end_layout
23651
23652 \end_inset
23653 </cell>
23654 <cell alignment="center" valignment="top" usebox="none">
23655 \begin_inset Text
23656
23657 \begin_layout Plain Layout
23658 shapepar
23659 \end_layout
23660
23661 \end_inset
23662 </cell>
23663 <cell alignment="center" valignment="top" usebox="none">
23664 \begin_inset Text
23665
23666 \begin_layout Plain Layout
23667 tone
23668 \end_layout
23669
23670 \end_inset
23671 </cell>
23672 <cell alignment="center" valignment="top" usebox="none">
23673 \begin_inset Text
23674
23675 \begin_layout Plain Layout
23676 xcolor
23677 \end_layout
23678
23679 \end_inset
23680 </cell>
23681 </row>
23682 <row>
23683 <cell alignment="left" valignment="top" usebox="none">
23684 \begin_inset Text
23685
23686 \begin_layout Plain Layout
23687 amssymb
23688 \end_layout
23689
23690 \end_inset
23691 </cell>
23692 <cell alignment="left" valignment="top" usebox="none">
23693 \begin_inset Text
23694
23695 \begin_layout Plain Layout
23696 covington
23697 \end_layout
23698
23699 \end_inset
23700 </cell>
23701 <cell alignment="left" valignment="top" usebox="none">
23702 \begin_inset Text
23703
23704 \begin_layout Plain Layout
23705 graphicx
23706 \end_layout
23707
23708 \end_inset
23709 </cell>
23710 <cell alignment="left" valignment="top" usebox="none">
23711 \begin_inset Text
23712
23713 \begin_layout Plain Layout
23714 marvosym
23715 \end_layout
23716
23717 \end_inset
23718 </cell>
23719 <cell alignment="center" valignment="top" usebox="none">
23720 \begin_inset Text
23721
23722 \begin_layout Plain Layout
23723 pifont
23724 \end_layout
23725
23726 \end_inset
23727 </cell>
23728 <cell alignment="center" valignment="top" usebox="none">
23729 \begin_inset Text
23730
23731 \begin_layout Plain Layout
23732 slashed
23733 \end_layout
23734
23735 \end_inset
23736 </cell>
23737 <cell alignment="center" valignment="top" usebox="none">
23738 \begin_inset Text
23739
23740 \begin_layout Plain Layout
23741 txfonts
23742 \end_layout
23743
23744 \end_inset
23745 </cell>
23746 <cell alignment="center" valignment="top" usebox="none">
23747 \begin_inset Text
23748
23749 \begin_layout Plain Layout
23750 xy
23751 \end_layout
23752
23753 \end_inset
23754 </cell>
23755 </row>
23756 <row>
23757 <cell alignment="left" valignment="top" usebox="none">
23758 \begin_inset Text
23759
23760 \begin_layout Plain Layout
23761 amstext
23762 \end_layout
23763
23764 \end_inset
23765 </cell>
23766 <cell alignment="left" valignment="top" usebox="none">
23767 \begin_inset Text
23768
23769 \begin_layout Plain Layout
23770 csquotes
23771 \end_layout
23772
23773 \end_inset
23774 </cell>
23775 <cell alignment="left" valignment="top" usebox="none">
23776 \begin_inset Text
23777
23778 \begin_layout Plain Layout
23779 hhline
23780 \end_layout
23781
23782 \end_inset
23783 </cell>
23784 <cell alignment="left" valignment="top" usebox="none">
23785 \begin_inset Text
23786
23787 \begin_layout Plain Layout
23788 mathdesign
23789 \end_layout
23790
23791 \end_inset
23792 </cell>
23793 <cell alignment="center" valignment="top" usebox="none">
23794 \begin_inset Text
23795
23796 \begin_layout Plain Layout
23797 pmboxdraw
23798 \end_layout
23799
23800 \end_inset
23801 </cell>
23802 <cell alignment="center" valignment="top" usebox="none">
23803 \begin_inset Text
23804
23805 \begin_layout Plain Layout
23806 soul
23807 \end_layout
23808
23809 \end_inset
23810 </cell>
23811 <cell alignment="center" valignment="top" usebox="none">
23812 \begin_inset Text
23813
23814 \begin_layout Plain Layout
23815 ulem
23816 \end_layout
23817
23818 \end_inset
23819 </cell>
23820 <cell alignment="center" valignment="top" usebox="none">
23821 \begin_inset Text
23822
23823 \begin_layout Plain Layout
23824 yhmath
23825 \end_layout
23826
23827 \end_inset
23828 </cell>
23829 </row>
23830 <row>
23831 <cell alignment="left" valignment="top" usebox="none">
23832 \begin_inset Text
23833
23834 \begin_layout Plain Layout
23835 amsthm
23836 \end_layout
23837
23838 \end_inset
23839 </cell>
23840 <cell alignment="left" valignment="top" usebox="none">
23841 \begin_inset Text
23842
23843 \begin_layout Plain Layout
23844 dvipost
23845 \end_layout
23846
23847 \end_inset
23848 </cell>
23849 <cell alignment="left" valignment="top" usebox="none">
23850 \begin_inset Text
23851
23852 \begin_layout Plain Layout
23853 hyperref
23854 \end_layout
23855
23856 \end_inset
23857 </cell>
23858 <cell alignment="left" valignment="top" usebox="none">
23859 \begin_inset Text
23860
23861 \begin_layout Plain Layout
23862 mathdots
23863 \end_layout
23864
23865 \end_inset
23866 </cell>
23867 <cell alignment="center" valignment="top" usebox="none">
23868 \begin_inset Text
23869
23870 \begin_layout Plain Layout
23871 polyglossia
23872 \end_layout
23873
23874 \end_inset
23875 </cell>
23876 <cell alignment="center" valignment="top" usebox="none">
23877 \begin_inset Text
23878
23879 \begin_layout Plain Layout
23880 splitidx
23881 \end_layout
23882
23883 \end_inset
23884 </cell>
23885 <cell alignment="center" valignment="top" usebox="none">
23886 \begin_inset Text
23887
23888 \begin_layout Plain Layout
23889 undertilde
23890 \end_layout
23891
23892 \end_inset
23893 </cell>
23894 <cell alignment="center" valignment="top" usebox="none">
23895 \begin_inset Text
23896
23897 \begin_layout Plain Layout
23898
23899 \end_layout
23900
23901 \end_inset
23902 </cell>
23903 </row>
23904 <row>
23905 <cell alignment="left" valignment="top" usebox="none">
23906 \begin_inset Text
23907
23908 \begin_layout Plain Layout
23909 array
23910 \end_layout
23911
23912 \end_inset
23913 </cell>
23914 <cell alignment="left" valignment="top" usebox="none">
23915 \begin_inset Text
23916
23917 \begin_layout Plain Layout
23918 endnotes
23919 \end_layout
23920
23921 \end_inset
23922 </cell>
23923 <cell alignment="left" valignment="top" usebox="none">
23924 \begin_inset Text
23925
23926 \begin_layout Plain Layout
23927 ifsym
23928 \end_layout
23929
23930 \end_inset
23931 </cell>
23932 <cell alignment="left" valignment="top" usebox="none">
23933 \begin_inset Text
23934
23935 \begin_layout Plain Layout
23936 mathrsfs
23937 \end_layout
23938
23939 \end_inset
23940 </cell>
23941 <cell alignment="center" valignment="top" usebox="none">
23942 \begin_inset Text
23943
23944 \begin_layout Plain Layout
23945 prettyref
23946 \end_layout
23947
23948 \end_inset
23949 </cell>
23950 <cell alignment="center" valignment="top" usebox="none">
23951 \begin_inset Text
23952
23953 \begin_layout Plain Layout
23954 subfig
23955 \end_layout
23956
23957 \end_inset
23958 </cell>
23959 <cell alignment="center" valignment="top" usebox="none">
23960 \begin_inset Text
23961
23962 \begin_layout Plain Layout
23963 units
23964 \end_layout
23965
23966 \end_inset
23967 </cell>
23968 <cell alignment="center" valignment="top" usebox="none">
23969 \begin_inset Text
23970
23971 \begin_layout Plain Layout
23972
23973 \end_layout
23974
23975 \end_inset
23976 </cell>
23977 </row>
23978 <row>
23979 <cell alignment="left" valignment="top" usebox="none">
23980 \begin_inset Text
23981
23982 \begin_layout Plain Layout
23983 ascii
23984 \end_layout
23985
23986 \end_inset
23987 </cell>
23988 <cell alignment="left" valignment="top" usebox="none">
23989 \begin_inset Text
23990
23991 \begin_layout Plain Layout
23992 enumitem
23993 \end_layout
23994
23995 \end_inset
23996 </cell>
23997 <cell alignment="left" valignment="top" usebox="none">
23998 \begin_inset Text
23999
24000 \begin_layout Plain Layout
24001 ifthen
24002 \end_layout
24003
24004 \end_inset
24005 </cell>
24006 <cell alignment="left" valignment="top" usebox="none">
24007 \begin_inset Text
24008
24009 \begin_layout Plain Layout
24010 mhchem
24011 \end_layout
24012
24013 \end_inset
24014 </cell>
24015 <cell alignment="center" valignment="top" usebox="none">
24016 \begin_inset Text
24017
24018 \begin_layout Plain Layout
24019 pxfonts
24020 \end_layout
24021
24022 \end_inset
24023 </cell>
24024 <cell alignment="center" valignment="top" usebox="none">
24025 \begin_inset Text
24026
24027 \begin_layout Plain Layout
24028 subscript
24029 \end_layout
24030
24031 \end_inset
24032 </cell>
24033 <cell alignment="center" valignment="top" usebox="none">
24034 \begin_inset Text
24035
24036 \begin_layout Plain Layout
24037 url
24038 \end_layout
24039
24040 \end_inset
24041 </cell>
24042 <cell alignment="center" valignment="top" usebox="none">
24043 \begin_inset Text
24044
24045 \begin_layout Plain Layout
24046
24047 \end_layout
24048
24049 \end_inset
24050 </cell>
24051 </row>
24052 <row>
24053 <cell alignment="left" valignment="top" usebox="none">
24054 \begin_inset Text
24055
24056 \begin_layout Plain Layout
24057 bbding
24058 \end_layout
24059
24060 \end_inset
24061 </cell>
24062 <cell alignment="left" valignment="top" usebox="none">
24063 \begin_inset Text
24064
24065 \begin_layout Plain Layout
24066 esint
24067 \end_layout
24068
24069 \end_inset
24070 </cell>
24071 <cell alignment="left" valignment="top" usebox="none">
24072 \begin_inset Text
24073
24074 \begin_layout Plain Layout
24075 jurabib
24076 \end_layout
24077
24078 \end_inset
24079 </cell>
24080 <cell alignment="left" valignment="top" usebox="none">
24081 \begin_inset Text
24082
24083 \begin_layout Plain Layout
24084 multicol
24085 \end_layout
24086
24087 \end_inset
24088 </cell>
24089 <cell alignment="center" valignment="top" usebox="none">
24090 \begin_inset Text
24091
24092 \begin_layout Plain Layout
24093 refstyle
24094 \end_layout
24095
24096 \end_inset
24097 </cell>
24098 <cell alignment="center" valignment="top" usebox="none">
24099 \begin_inset Text
24100
24101 \begin_layout Plain Layout
24102 textcomp
24103 \end_layout
24104
24105 \end_inset
24106 </cell>
24107 <cell alignment="center" valignment="top" usebox="none">
24108 \begin_inset Text
24109
24110 \begin_layout Plain Layout
24111 varioref
24112 \end_layout
24113
24114 \end_inset
24115 </cell>
24116 <cell alignment="center" valignment="top" usebox="none">
24117 \begin_inset Text
24118
24119 \begin_layout Plain Layout
24120
24121 \end_layout
24122
24123 \end_inset
24124 </cell>
24125 </row>
24126 <row>
24127 <cell alignment="center" valignment="top" usebox="none">
24128 \begin_inset Text
24129
24130 \begin_layout Plain Layout
24131 bm
24132 \end_layout
24133
24134 \end_inset
24135 </cell>
24136 <cell alignment="center" valignment="top" usebox="none">
24137 \begin_inset Text
24138
24139 \begin_layout Plain Layout
24140 fancybox
24141 \end_layout
24142
24143 \end_inset
24144 </cell>
24145 <cell alignment="center" valignment="top" usebox="none">
24146 \begin_inset Text
24147
24148 \begin_layout Plain Layout
24149 latexsym
24150 \end_layout
24151
24152 \end_inset
24153 </cell>
24154 <cell alignment="center" valignment="top" usebox="none">
24155 \begin_inset Text
24156
24157 \begin_layout Plain Layout
24158 multirow
24159 \end_layout
24160
24161 \end_inset
24162 </cell>
24163 <cell alignment="center" valignment="top" usebox="none">
24164 \begin_inset Text
24165
24166 \begin_layout Plain Layout
24167 rotating
24168 \end_layout
24169
24170 \end_inset
24171 </cell>
24172 <cell alignment="center" valignment="top" usebox="none">
24173 \begin_inset Text
24174
24175 \begin_layout Plain Layout
24176 textgreek
24177 \end_layout
24178
24179 \end_inset
24180 </cell>
24181 <cell alignment="center" valignment="top" usebox="none">
24182 \begin_inset Text
24183
24184 \begin_layout Plain Layout
24185 verbatim
24186 \end_layout
24187
24188 \end_inset
24189 </cell>
24190 <cell alignment="center" valignment="top" usebox="none">
24191 \begin_inset Text
24192
24193 \begin_layout Plain Layout
24194
24195 \end_layout
24196
24197 \end_inset
24198 </cell>
24199 </row>
24200 </lyxtabular>
24201
24202 \end_inset
24203
24204
24205 \end_layout
24206
24207 \begin_layout Chapter
24208 Names of available colors to be used in layouts
24209 \begin_inset CommandInset label
24210 LatexCommand label
24211 name "chap:Names-of-colors"
24212
24213 \end_inset
24214
24215
24216 \end_layout
24217
24218 \begin_layout Standard
24219 The colors listed here are the standard colors and the those that you can
24220  adjust in the LyX preferences.
24221 \end_layout
24222
24223 \begin_layout Description
24224 none
24225 \family roman
24226 \series medium
24227 \shape up
24228 \size normal
24229 \emph off
24230 \bar no
24231 \strikeout off
24232 \uuline off
24233 \uwave off
24234 \noun off
24235 \color none
24236  No particular color -- clear or default
24237 \end_layout
24238
24239 \begin_layout Description
24240 black
24241 \end_layout
24242
24243 \begin_layout Description
24244 white
24245 \end_layout
24246
24247 \begin_layout Description
24248 red
24249 \end_layout
24250
24251 \begin_layout Description
24252 green
24253 \end_layout
24254
24255 \begin_layout Description
24256 blue
24257 \end_layout
24258
24259 \begin_layout Description
24260 cyan
24261 \end_layout
24262
24263 \begin_layout Description
24264 magenta
24265 \end_layout
24266
24267 \begin_layout Description
24268 yellow
24269 \end_layout
24270
24271 \begin_layout Description
24272 added_space Added space marker color
24273 \end_layout
24274
24275 \begin_layout Description
24276 addedtext Added text color
24277 \end_layout
24278
24279 \begin_layout Description
24280 appendix Appendix marker color
24281 \end_layout
24282
24283 \begin_layout Description
24284 background Background color
24285 \end_layout
24286
24287 \begin_layout Description
24288 bottomarea Bottom area color
24289 \end_layout
24290
24291 \begin_layout Description
24292 branchlabel Label color for branches
24293 \end_layout
24294
24295 \begin_layout Description
24296 buttonbg Color used for bottom background
24297 \end_layout
24298
24299 \begin_layout Description
24300 buttonhoverbg Color used for button background under focus
24301 \end_layout
24302
24303 \begin_layout Description
24304 buttonframe Color for inset button frames
24305 \end_layout
24306
24307 \begin_layout Description
24308 changebar Changebar color
24309 \end_layout
24310
24311 \begin_layout Description
24312 changedtextauthor1 Changed text color author 1
24313 \end_layout
24314
24315 \begin_layout Description
24316 changedtextauthor2 Changed text color author 2
24317 \end_layout
24318
24319 \begin_layout Description
24320 changedtextauthor3 Changed text color author 3
24321 \end_layout
24322
24323 \begin_layout Description
24324 changedtextauthor4 Changed text color author 4
24325 \end_layout
24326
24327 \begin_layout Description
24328 changedtextauthor5 Changed text color author 5
24329 \end_layout
24330
24331 \begin_layout Description
24332 collapsable_inset_frame Collapsable insets framecolor
24333 \end_layout
24334
24335 \begin_layout Description
24336 collapsable_inset_text Collapsable insets text color
24337 \end_layout
24338
24339 \begin_layout Description
24340 command Text color for command insets
24341 \end_layout
24342
24343 \begin_layout Description
24344 commandbg Background color for command insets
24345 \end_layout
24346
24347 \begin_layout Description
24348 commandframe Frame color for command insets
24349 \end_layout
24350
24351 \begin_layout Description
24352 comment color for comments
24353 \end_layout
24354
24355 \begin_layout Description
24356 commentbg Background color of comments
24357 \end_layout
24358
24359 \begin_layout Description
24360 cursor Cursor color
24361 \end_layout
24362
24363 \begin_layout Description
24364 deletedtext Deleted text color
24365 \end_layout
24366
24367 \begin_layout Description
24368 deletedtextmodifier Deleted text modifying color
24369 \end_layout
24370
24371 \begin_layout Description
24372 depthbar Color for the depth bars in the margin
24373 \end_layout
24374
24375 \begin_layout Description
24376 eolmarker End of line marker color
24377 \end_layout
24378
24379 \begin_layout Description
24380 error Color of the LaTeX error box
24381 \end_layout
24382
24383 \begin_layout Description
24384 footlabel Label color for footnotes
24385 \end_layout
24386
24387 \begin_layout Description
24388 graphicsbg Graphics inset background color
24389 \end_layout
24390
24391 \begin_layout Description
24392 greyedout Label color for greyedout insets
24393 \end_layout
24394
24395 \begin_layout Description
24396 greyedoutbg Background color of greyedout inset
24397 \end_layout
24398
24399 \begin_layout Description
24400 greyedouttext Color for greyedout inset text
24401 \end_layout
24402
24403 \begin_layout Description
24404 indexlabel Label color for index insets
24405 \end_layout
24406
24407 \begin_layout Description
24408 ignore The color is ignored
24409 \end_layout
24410
24411 \begin_layout Description
24412 inherit The color is inherited
24413 \end_layout
24414
24415 \begin_layout Description
24416 inlinecompletion Inline completion color
24417 \end_layout
24418
24419 \begin_layout Description
24420 insetbg Inset marker background color
24421 \end_layout
24422
24423 \begin_layout Description
24424 insetframe Inset marker frame color
24425 \end_layout
24426
24427 \begin_layout Description
24428 language Color for marking foreign language words
24429 \end_layout
24430
24431 \begin_layout Description
24432 latex Text color in LaTeX mode
24433 \end_layout
24434
24435 \begin_layout Description
24436 listingsbg Background color of listings inset
24437 \end_layout
24438
24439 \begin_layout Description
24440 marginlabel Label color for margin notes
24441 \end_layout
24442
24443 \begin_layout Description
24444 math Math inset text color
24445 \end_layout
24446
24447 \begin_layout Description
24448 mathbg Math inset background color
24449 \end_layout
24450
24451 \begin_layout Description
24452 mathcorners Math inset frame color not under focus
24453 \end_layout
24454
24455 \begin_layout Description
24456 mathframe Math inset frame color under focus
24457 \end_layout
24458
24459 \begin_layout Description
24460 mathline Math line color
24461 \end_layout
24462
24463 \begin_layout Description
24464 mathmacrobg Macro math inset background color
24465 \end_layout
24466
24467 \begin_layout Description
24468 mathmacroblend Macro math blended color
24469 \end_layout
24470
24471 \begin_layout Description
24472 mathmacroframe Macro math frame color
24473 \end_layout
24474
24475 \begin_layout Description
24476 mathmacrohoverbg Macro math inset background color hovered
24477 \end_layout
24478
24479 \begin_layout Description
24480 mathmacrolabel Macro math label color
24481 \end_layout
24482
24483 \begin_layout Description
24484 mathmacronewarg Macro template color for new parameters
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 newpage New page color
24493 \end_layout
24494
24495 \begin_layout Description
24496 nonunique_inlinecompletion Inline completion color for the non-unique part
24497 \end_layout
24498
24499 \begin_layout Description
24500 notebg Background color of notes
24501 \end_layout
24502
24503 \begin_layout Description
24504 notelabel Label color for notes
24505 \end_layout
24506
24507 \begin_layout Description
24508 pagebreak Page break/line break color
24509 \end_layout
24510
24511 \begin_layout Description
24512 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
24513 \end_layout
24514
24515 \begin_layout Description
24516 phantomtext Text color for phantom insets
24517 \end_layout
24518
24519 \begin_layout Description
24520 preview The color used for previews
24521 \end_layout
24522
24523 \begin_layout Description
24524 previewframe Preview frame color
24525 \end_layout
24526
24527 \begin_layout Description
24528 regexpframe Color for regexp frame
24529 \end_layout
24530
24531 \begin_layout Description
24532 selection Background color of selected text
24533 \end_layout
24534
24535 \begin_layout Description
24536 selectiontext Foreground color of selected text
24537 \end_layout
24538
24539 \begin_layout Description
24540 shadedbg Background color of shaded box
24541 \end_layout
24542
24543 \begin_layout Description
24544 special Special chars text color
24545 \end_layout
24546
24547 \begin_layout Description
24548 tabularline Table line color
24549 \end_layout
24550
24551 \begin_layout Description
24552 tabularonoffline Table line color
24553 \end_layout
24554
24555 \begin_layout Description
24556 urllabel Label color for URL insets
24557 \end_layout
24558
24559 \begin_layout Description
24560 urltext Color for URL inset text
24561 \end_layout
24562
24563 \end_body
24564 \end_document