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