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