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