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