]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: some more revision
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 459
3 \begin_document
4 \begin_header
5 \textclass scrbook
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that this document prints
10 % out as advertised. If you mess with this preamble,
11 % parts of this document may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}
21   {\usepackage{lmodern}}{}
22
23 \fi % end if pdflatex is used
24
25 % the pages of the TOC is numbered roman
26 % and a pdf-bookmark for the TOC is added
27 \let\myTOC\tableofcontents
28 \renewcommand\tableofcontents{%
29   \frontmatter
30   \pdfbookmark[1]{\contentsname}{}
31   \myTOC
32   \mainmatter }
33 \end_preamble
34 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
35 \use_default_options false
36 \begin_modules
37 logicalmkup
38 \end_modules
39 \maintain_unincluded_children false
40 \begin_local_layout
41 Format 35
42 InsetLayout Flex:MenuItem
43 LyxType               charstyle
44 LabelString           menu
45 LatexType             command
46 LatexName             menuitem
47 Font
48 Family              Sans
49 EndFont
50 Preamble
51 \newcommand*{\menuitem}[1]{{\sffamily #1}}
52 EndPreamble
53 End
54 # In case we need to do with sans...
55 #InsetLayout CharStyle:Code
56 #Font
57 #Family              Sans
58 #EndFont
59 #Preamble
60 #\renewcommand{\code}[1]{{\sffamily #1}}
61 #EndPreamble
62 #End
63 \end_local_layout
64 \language english
65 \language_package default
66 \inputencoding auto
67 \fontencoding global
68 \font_roman default
69 \font_sans default
70 \font_typewriter default
71 \font_math auto
72 \font_default_family default
73 \use_non_tex_fonts false
74 \font_sc false
75 \font_osf false
76 \font_sf_scale 100
77 \font_tt_scale 100
78 \graphics default
79 \default_output_format default
80 \output_sync 0
81 \bibtex_command default
82 \index_command default
83 \paperfontsize 12
84 \spacing single
85 \use_hyperref true
86 \pdf_title "LyX Configuration Manual"
87 \pdf_author "LyX Team"
88 \pdf_subject "LyX-documentation Customization"
89 \pdf_keywords "LyX, documentation, customization"
90 \pdf_bookmarks true
91 \pdf_bookmarksnumbered true
92 \pdf_bookmarksopen true
93 \pdf_bookmarksopenlevel 1
94 \pdf_breaklinks false
95 \pdf_pdfborder false
96 \pdf_colorlinks true
97 \pdf_backref false
98 \pdf_pdfusetitle false
99 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
100 \papersize default
101 \use_geometry false
102 \use_package amsmath 0
103 \use_package amssymb 0
104 \use_package esint 0
105 \use_package mathdots 1
106 \use_package mathtools 0
107 \use_package mhchem 0
108 \use_package stackrel 0
109 \use_package stmaryrd 0
110 \use_package undertilde 0
111 \cite_engine basic
112 \cite_engine_type numerical
113 \biblio_style plain
114 \use_bibtopic false
115 \use_indices false
116 \paperorientation portrait
117 \suppress_date false
118 \justification true
119 \use_refstyle 0
120 \branch OutDated
121 \selected 0
122 \filename_suffix 0
123 \color #f5fae7
124 \end_branch
125 \index Index
126 \shortcut idx
127 \color #008000
128 \end_index
129 \secnumdepth 3
130 \tocdepth 3
131 \paragraph_separation indent
132 \paragraph_indentation default
133 \quotes_language english
134 \papercolumns 1
135 \papersides 2
136 \paperpagestyle headings
137 \tracking_changes true
138 \output_changes false
139 \html_math_output 0
140 \html_css_as_file 0
141 \html_be_strict true
142 \author -712698321 "Jürgen Spitzmüller" 
143 \author -195340706 "Georg Baum" 
144 \author 5863208 "ab" 
145 \author 155139281 "Jrgen Spitzmller" 
146 \author 1082167584 "Kayvan Sylvan" kayvan@sylvan.com
147 \author 1414654397 "Richard Heck" 
148 \author 2090807402 "usti" 
149 \end_header
150
151 \begin_body
152
153 \begin_layout Title
154 Customizing LyX: Features for the Advanced User
155 \end_layout
156
157 \begin_layout Author
158 by the LyX Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 \noindent
164 If you have comments or error corrections, please send them to the LyX Documenta
165 tion mailing list, 
166 \begin_inset CommandInset href
167 LatexCommand href
168 target "lyx-docs@lists.lyx.org"
169 type "mailto:"
170
171 \end_inset
172
173 .
174  Include 
175 \begin_inset Quotes eld
176 \end_inset
177
178 [Customization]
179 \begin_inset Quotes erd
180 \end_inset
181
182  in the subject header, and please cc the current maintainer of this file,
183  Richard Heck <rgheck@comcast.net>.
184 \end_layout
185
186 \end_inset
187
188
189 \begin_inset Newline newline
190 \end_inset
191
192
193 \begin_inset Newline newline
194 \end_inset
195
196 Version 2.
197 \change_deleted -712698321 1357054389
198 0
199 \change_inserted -712698321 1357054389
200 1
201 \change_unchanged
202 .x 
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Standard
215 \begin_inset Note Note
216 status open
217
218 \begin_layout Plain Layout
219 Please use change tracking when modifying this document.
220  This makes it easier for our translators to recognize things that have
221  been changed, and it helps the maintainer keep up-to-date with what's been
222  done.
223 \end_layout
224
225 \end_inset
226
227
228 \end_layout
229
230 \begin_layout Chapter
231 Introduction
232 \end_layout
233
234 \begin_layout Standard
235 This manual covers the customization features present in LyX.
236  In it, we discuss issues like keyboard shortcuts, screen previewing options,
237  printer options, sending commands to LyX via the LyX Server, internationalizati
238 on, installing new LaTeX classes and LyX layouts, etc.
239  We can't possibly hope to touch on everything you can change—our developers
240  add new features faster than we can document them—but we will explain the
241  most common customizations and hopefully point you in the right direction
242  for some of the more obscure ones.
243 \end_layout
244
245 \begin_layout Standard
246 \begin_inset Branch OutDated
247 status collapsed
248
249 \begin_layout Standard
250 Information from previous versions of this document that now seems to be
251  outdated is contained in the OutDated branch of this document.
252  By default, this information will not appear in the LaTeX output.
253 \end_layout
254
255 \end_inset
256
257
258 \end_layout
259
260 \begin_layout Chapter
261 LyX configuration files
262 \end_layout
263
264 \begin_layout Standard
265 This chapter aims to help you to find your way through the LyX configuration
266  files.
267  Before continuing to read this chapter, you should find out where your
268  LyX library and user directories are by using 
269 \begin_inset Flex MenuItem
270 status collapsed
271
272 \begin_layout Plain Layout
273 Help\SpecialChar \menuseparator
274 About
275 \begin_inset space ~
276 \end_inset
277
278 LyX
279 \end_layout
280
281 \end_inset
282
283 .
284  The library directory is the place where LyX places its system-wide configurati
285 on files; the user directory is where you can place your modified versions.
286  We will call the former 
287 \begin_inset Flex Code
288 status collapsed
289
290 \begin_layout Plain Layout
291 LyXDir
292 \end_layout
293
294 \end_inset
295
296  and the latter 
297 \begin_inset Flex MenuItem
298 status collapsed
299
300 \begin_layout Plain Layout
301 UserDir
302 \end_layout
303
304 \end_inset
305
306  in the remainder of this document.
307  
308 \end_layout
309
310 \begin_layout Section
311 What's in 
312 \begin_inset Flex Code
313 status collapsed
314
315 \begin_layout Plain Layout
316 LyXDir
317 \end_layout
318
319 \end_inset
320
321 ?
322 \end_layout
323
324 \begin_layout Standard
325 \begin_inset Flex Code
326 status collapsed
327
328 \begin_layout Plain Layout
329 LyXDir
330 \end_layout
331
332 \end_inset
333
334  and its sub-directories contain a number of files and that can be used
335  to customize LyX's behavior.
336  You can change many of these files from within LyX itself through the 
337 \begin_inset Flex MenuItem
338 status collapsed
339
340 \begin_layout Plain Layout
341 Tools\SpecialChar \menuseparator
342 Preferences
343 \end_layout
344
345 \end_inset
346
347  dialog.
348  Most customization that you will want to do in LyX is possible through
349  this dialog.
350  However, many other inner aspects of LyX can be customized by modifying
351  the files in 
352 \begin_inset Flex Code
353 status collapsed
354
355 \begin_layout Plain Layout
356 LyXDir
357 \end_layout
358
359 \end_inset
360
361 .
362  These files fall in different categories, described in the following subsection
363 s.
364 \end_layout
365
366 \begin_layout Subsection
367 Automatically generated files
368 \end_layout
369
370 \begin_layout Standard
371 The files, which are to be found in 
372 \begin_inset Flex MenuItem
373 status collapsed
374
375 \begin_layout Plain Layout
376 UserDir
377 \end_layout
378
379 \end_inset
380
381 , are generated when you configure LyX.
382  They contain various default values that are guessed by inspection.
383  In general, it is not a good idea to modify them, since they might be overwritt
384 en at any time.
385 \end_layout
386
387 \begin_layout Labeling
388 \labelwidthstring 00.00.0000
389 \begin_inset Flex Code
390 status collapsed
391
392 \begin_layout Plain Layout
393 lyxrc.defaults
394 \end_layout
395
396 \end_inset
397
398  contains defaults for various commands.
399 \end_layout
400
401 \begin_layout Labeling
402 \labelwidthstring 00.00.0000
403 \begin_inset Flex Code
404 status collapsed
405
406 \begin_layout Plain Layout
407 packages.lst
408 \end_layout
409
410 \end_inset
411
412  contains the list of packages that have been recognized by LyX.
413  It is currently unused by the LyX program itself, but the information extracted
414 , and more, is made available with 
415 \begin_inset Flex MenuItem
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar \menuseparator
420 LaTeX
421 \begin_inset space ~
422 \end_inset
423
424 Configuration
425 \end_layout
426
427 \end_inset
428
429 .
430 \end_layout
431
432 \begin_layout Labeling
433 \labelwidthstring 00.00.0000
434 \begin_inset Flex Code
435 status collapsed
436
437 \begin_layout Plain Layout
438 textclass.lst
439 \end_layout
440
441 \end_inset
442
443  the list of text classes that have been found in your 
444 \begin_inset Flex Code
445 status collapsed
446
447 \begin_layout Plain Layout
448 layout/
449 \end_layout
450
451 \end_inset
452
453  directories, along with the associated LaTeX document class and their descripti
454 on.
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 lyxmodules.lst
464 \end_layout
465
466 \end_inset
467
468  the list of layout modules found in your 
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 layout/
474 \end_layout
475
476 \end_inset
477
478  directories
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 *files.lst
488 \end_layout
489
490 \end_inset
491
492  lists of various sorts of LaTeX-related files found on your system
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 doc/LaTeXConfig.lyx
502 \end_layout
503
504 \end_inset
505
506  is automatically generated during configuration from the file 
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511 LaTeXConfig.lyx.in
512 \end_layout
513
514 \end_inset
515
516 .
517  It contains information on your LaTeX configuration.
518 \end_layout
519
520 \begin_layout Subsection
521 Directories
522 \end_layout
523
524 \begin_layout Standard
525 These directories are duplicated between 
526 \begin_inset Flex Code
527 status collapsed
528
529 \begin_layout Plain Layout
530 LyXDir
531 \end_layout
532
533 \end_inset
534
535  and 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 UserDir
541 \end_layout
542
543 \end_inset
544
545 .
546  If a particular files exists in both places, the one in 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 UserDir
552 \end_layout
553
554 \end_inset
555
556  will be used.
557 \end_layout
558
559 \begin_layout Labeling
560 \labelwidthstring 00.00.0000
561 \begin_inset Flex Code
562 status collapsed
563
564 \begin_layout Plain Layout
565 bind/
566 \end_layout
567
568 \end_inset
569
570  this directory contains files with the extension 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 .bind
576 \end_layout
577
578 \end_inset
579
580  that define the keybindings used in LyX.
581  If there exists an internationalized version of the bind file named 
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 $LANG_xxx.bind
587 \end_layout
588
589 \end_inset
590
591 , that will be used first.
592 \end_layout
593
594 \begin_layout Labeling
595 \labelwidthstring 00.00.0000
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 clipart/
601 \end_layout
602
603 \end_inset
604
605  contains graphics files that can be included in documents.
606  
607 \end_layout
608
609 \begin_layout Labeling
610 \labelwidthstring 00.00.0000
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 doc/
616 \end_layout
617
618 \end_inset
619
620  contains LyX documentation files (including the one you are currently reading).
621  The file 
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
626 LaTeXConfig.lyx
627 \end_layout
628
629 \end_inset
630
631  deserves special attention, as noted above.
632  The internationalized help docs are in subdirectories 
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 doc/xx
638 \end_layout
639
640 \end_inset
641
642  where 
643 \begin_inset Quotes eld
644 \end_inset
645
646 xx
647 \begin_inset Quotes erd
648 \end_inset
649
650  is the ISO language code.
651  See chapter
652 \begin_inset space ~
653 \end_inset
654
655
656 \begin_inset CommandInset ref
657 LatexCommand ref
658 reference "cha:Internationalizing-LyX"
659
660 \end_inset
661
662  for details.
663 \end_layout
664
665 \begin_layout Labeling
666 \labelwidthstring 00.00.0000
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 examples/
672 \end_layout
673
674 \end_inset
675
676  contains example files that explain how to use some features.
677  In the file browser, press the 
678 \begin_inset Flex MenuItem
679 status collapsed
680
681 \begin_layout Plain Layout
682 Examples
683 \end_layout
684
685 \end_inset
686
687  button to get there.
688 \end_layout
689
690 \begin_layout Labeling
691 \labelwidthstring 00.00.0000
692 \begin_inset Flex Code
693 status collapsed
694
695 \begin_layout Plain Layout
696 images/
697 \end_layout
698
699 \end_inset
700
701  contains image files that are used by the 
702 \begin_inset Flex MenuItem
703 status collapsed
704
705 \begin_layout Plain Layout
706 Document
707 \end_layout
708
709 \end_inset
710
711  dialog.
712  In addition, it also contains the individual icons used in the toolbar
713  and the banners that can be shown when LyX is launched.
714 \end_layout
715
716 \begin_layout Labeling
717 \labelwidthstring 00.00.0000
718 \begin_inset Flex Code
719 status collapsed
720
721 \begin_layout Plain Layout
722 kbd/
723 \end_layout
724
725 \end_inset
726
727  contains keyboard keymapping files.
728  See Chapter
729 \begin_inset space ~
730 \end_inset
731
732
733 \begin_inset CommandInset ref
734 LatexCommand ref
735 reference "sec:International-Keymap-Stuff"
736
737 \end_inset
738
739  for details.
740 \end_layout
741
742 \begin_layout Labeling
743 \labelwidthstring 00.00.0000
744 \begin_inset Flex Code
745 status collapsed
746
747 \begin_layout Plain Layout
748 layouts/
749 \end_layout
750
751 \end_inset
752
753  contains the text class and module files described in Chapter
754 \begin_inset space ~
755 \end_inset
756
757
758 \begin_inset CommandInset ref
759 LatexCommand ref
760 reference "cha:Installing-New-Document"
761
762 \end_inset
763
764 .
765 \end_layout
766
767 \begin_layout Labeling
768 \labelwidthstring 00.00.0000
769 \begin_inset Flex Code
770 status collapsed
771
772 \begin_layout Plain Layout
773 lyx2lyx
774 \end_layout
775
776 \end_inset
777
778  contains the 
779 \begin_inset Flex Code
780 status collapsed
781
782 \begin_layout Plain Layout
783 lyx2lyx
784 \end_layout
785
786 \end_inset
787
788  Python scripts used to convert between LyX versions.
789  These can be run from the command line if, say, you want to batch-convert
790  files.
791 \end_layout
792
793 \begin_layout Labeling
794 \labelwidthstring 00.00.0000
795 \begin_inset Flex Code
796 status collapsed
797
798 \begin_layout Plain Layout
799 scripts/
800 \end_layout
801
802 \end_inset
803
804  contains some files that demonstrate the capabilities of the 
805 \begin_inset Flex MenuItem
806 status collapsed
807
808 \begin_layout Plain Layout
809 External
810 \begin_inset space ~
811 \end_inset
812
813 Template
814 \end_layout
815
816 \end_inset
817
818  feature.
819  Also contains some scripts used by LyX itself.
820 \end_layout
821
822 \begin_layout Labeling
823 \labelwidthstring 00.00.0000
824 \begin_inset Flex Code
825 status collapsed
826
827 \begin_layout Plain Layout
828 templates/
829 \end_layout
830
831 \end_inset
832
833  contains the standard LyX template files described in Chapter
834 \begin_inset space ~
835 \end_inset
836
837
838 \begin_inset CommandInset ref
839 LatexCommand ref
840 reference "sub:Creating-Templates"
841
842 \end_inset
843
844 .
845 \end_layout
846
847 \begin_layout Labeling
848 \labelwidthstring 00.00.0000
849 \begin_inset Flex Code
850 status collapsed
851
852 \begin_layout Plain Layout
853 ui/
854 \end_layout
855
856 \end_inset
857
858  contains files with the extension 
859 \begin_inset Flex Code
860 status collapsed
861
862 \begin_layout Plain Layout
863 .ui
864 \end_layout
865
866 \end_inset
867
868  that define the user interface to LyX.
869  That is, the files define which items appear in which menus and the items
870  appearing on the toolbar.
871 \end_layout
872
873 \begin_layout Subsection
874 Files you don't want to modify
875 \end_layout
876
877 \begin_layout Standard
878 These files are used internally by LyX and you generally do not need to
879  modify them unless you are a developer.
880 \end_layout
881
882 \begin_layout Labeling
883 \labelwidthstring 00.00.0000
884 \begin_inset Flex Code
885 status collapsed
886
887 \begin_layout Plain Layout
888 CREDITS
889 \end_layout
890
891 \end_inset
892
893  this file contains the list of LyX developers.
894  The contents are displayed with the menu entry 
895 \begin_inset Flex MenuItem
896 status collapsed
897
898 \begin_layout Plain Layout
899 Help\SpecialChar \menuseparator
900 About
901 \begin_inset space ~
902 \end_inset
903
904 LyX
905 \end_layout
906
907 \end_inset
908
909 .
910 \end_layout
911
912 \begin_layout Labeling
913 \labelwidthstring 00.00.0000
914 \begin_inset Flex Code
915 status collapsed
916
917 \begin_layout Plain Layout
918 chkconfig.ltx
919 \end_layout
920
921 \end_inset
922
923  this is a LaTeX script used during the configuration process.
924  Do not run directly.
925 \end_layout
926
927 \begin_layout Labeling
928 \labelwidthstring 00.00.0000
929 \begin_inset Flex Code
930 status collapsed
931
932 \begin_layout Plain Layout
933 configure.py
934 \end_layout
935
936 \end_inset
937
938  this is the script that is used to re-configure LyX.
939  It creates configuration files in the directory it was run from.
940 \end_layout
941
942 \begin_layout Subsection
943 Other files needing a line or two
944 \change_deleted -712698321 1357054454
945 ...
946 \change_inserted -712698321 1357054454
947 \SpecialChar \ldots{}
948
949 \change_unchanged
950
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 encodings
960 \end_layout
961
962 \end_inset
963
964  this contains tables describing how different character encodings can be
965  mapped to Unicode
966 \end_layout
967
968 \begin_layout Labeling
969 \labelwidthstring 00.00.0000
970 \begin_inset Flex Code
971 status collapsed
972
973 \begin_layout Plain Layout
974 external_templates
975 \end_layout
976
977 \end_inset
978
979  this file contains the templates available to the new 
980 \begin_inset Flex MenuItem
981 status collapsed
982
983 \begin_layout Plain Layout
984 External
985 \begin_inset space ~
986 \end_inset
987
988 Template
989 \end_layout
990
991 \end_inset
992
993  feature.
994 \end_layout
995
996 \begin_layout Labeling
997 \labelwidthstring 00.00.0000
998 \begin_inset Flex Code
999 status collapsed
1000
1001 \begin_layout Plain Layout
1002 languages
1003 \end_layout
1004
1005 \end_inset
1006
1007  this file contains a list of all the languages currently supported by LyX.
1008 \change_inserted -712698321 1357054565
1009
1010 \end_layout
1011
1012 \begin_layout Labeling
1013 \labelwidthstring 00.00.0000
1014
1015 \change_inserted -712698321 1357054669
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020
1021 \change_inserted -712698321 1357054669
1022 latexfonts
1023 \change_unchanged
1024
1025 \end_layout
1026
1027 \end_inset
1028
1029  contains information about the supported fonts.
1030 \change_inserted -195340706 1334775793
1031
1032 \end_layout
1033
1034 \begin_layout Labeling
1035 \labelwidthstring 00.00.0000
1036
1037 \change_inserted -195340706 1334775793
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042
1043 \change_inserted -195340706 1334775793
1044 layouttranslations
1045 \end_layout
1046
1047 \end_inset
1048
1049  this file contains translations for internationalized paragraph styles
1050  (see sec.
1051 \begin_inset space \thinspace{}
1052 \end_inset
1053
1054
1055 \begin_inset CommandInset ref
1056 LatexCommand ref
1057 reference "sub:I18n"
1058
1059 \end_inset
1060
1061 ).
1062 \change_inserted -712698321 1357054494
1063
1064 \end_layout
1065
1066 \begin_layout Labeling
1067 \labelwidthstring 00.00.0000
1068
1069 \change_inserted -712698321 1357054554
1070 \begin_inset Flex Code
1071 status collapsed
1072
1073 \begin_layout Plain Layout
1074
1075 \change_inserted -712698321 1357054508
1076 unicodesymbols
1077 \change_unchanged
1078
1079 \end_layout
1080
1081 \end_inset
1082
1083  this file contains information about unicode-encoded glyphs and the way
1084  they are supported by LyX via LaTeX.
1085 \change_unchanged
1086
1087 \end_layout
1088
1089 \begin_layout Section
1090 Your local configuration directory
1091 \end_layout
1092
1093 \begin_layout Standard
1094 Even if you are using LyX as an unprivileged user, you might want to change
1095  LyX configuration for your own use.
1096  The 
1097 \begin_inset Flex Code
1098 status collapsed
1099
1100 \begin_layout Plain Layout
1101 UserDir
1102 \end_layout
1103
1104 \end_inset
1105
1106  directory contains all your personal configuration files.
1107  This is the directory described as 
1108 \begin_inset Quotes eld
1109 \end_inset
1110
1111 user directory
1112 \begin_inset Quotes erd
1113 \end_inset
1114
1115  in 
1116 \begin_inset Flex MenuItem
1117 status collapsed
1118
1119 \begin_layout Plain Layout
1120 Help\SpecialChar \menuseparator
1121 About
1122 \begin_inset space ~
1123 \end_inset
1124
1125 LyX
1126 \end_layout
1127
1128 \end_inset
1129
1130 .
1131  This directory is used as a mirror of 
1132 \begin_inset Flex Code
1133 status collapsed
1134
1135 \begin_layout Plain Layout
1136 LyXDir
1137 \end_layout
1138
1139 \end_inset
1140
1141 , which means that every file in 
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 UserDir
1147 \end_layout
1148
1149 \end_inset
1150
1151  is a replacement for the corresponding file in 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 LyXDir
1157 \end_layout
1158
1159 \end_inset
1160
1161 .
1162  Any configuration file described in the above sections can be placed either
1163  in the system-wide directory, in which case it will affect all users, or
1164  in your local directory for your own use.
1165 \end_layout
1166
1167 \begin_layout Standard
1168 To make things clearer, let's provide a few examples:
1169 \end_layout
1170
1171 \begin_layout Itemize
1172 The preferences set in the 
1173 \begin_inset Flex MenuItem
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Tools\SpecialChar \menuseparator
1178 Preferences
1179 \end_layout
1180
1181 \end_inset
1182
1183  dialog are saved to a file 
1184 \begin_inset Flex Code
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 preferences
1189 \end_layout
1190
1191 \end_inset
1192
1193  in 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 UserDir
1199 \end_layout
1200
1201 \end_inset
1202
1203 .
1204 \end_layout
1205
1206 \begin_layout Itemize
1207 When you reconfigure using 
1208 \begin_inset Flex MenuItem
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 Tools\SpecialChar \menuseparator
1213 Reconfigure
1214 \end_layout
1215
1216 \end_inset
1217
1218 , LyX runs the 
1219 \begin_inset Flex Code
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 configure.py
1224 \end_layout
1225
1226 \end_inset
1227
1228  script, and the resulting files are written in your local configuration
1229  directory.
1230  This means that any additional text class file that you might have added
1231  in 
1232 \begin_inset Flex Code
1233 status collapsed
1234
1235 \begin_layout Plain Layout
1236 UserDir/layouts
1237 \end_layout
1238
1239 \end_inset
1240
1241  will be added to the list of classes in the 
1242 \begin_inset Flex MenuItem
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 Document\SpecialChar \menuseparator
1247 Settings
1248 \end_layout
1249
1250 \end_inset
1251
1252  dialog.
1253 \end_layout
1254
1255 \begin_layout Itemize
1256 If you get some updated documentation from LyX ftp site and cannot install
1257  it because you do not have sysadmin rights on your system, you can just
1258  copy the files in 
1259 \begin_inset Flex Code
1260 status collapsed
1261
1262 \begin_layout Plain Layout
1263 UserDir/doc/
1264 \end_layout
1265
1266 \end_inset
1267
1268  and the items in the 
1269 \begin_inset Flex MenuItem
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 Help
1274 \end_layout
1275
1276 \end_inset
1277
1278  menu will open them!
1279 \end_layout
1280
1281 \begin_layout Section
1282 Running LyX with multiple configurations
1283 \end_layout
1284
1285 \begin_layout Standard
1286 The configuration freedom of the local configuration directory may not suffice
1287  if you want to have more than one configuration at your disposal.
1288  For example, you may want to be use different key bindings or printer settings
1289  at different times.
1290  You can achieve this by having several such directories.
1291  You then specify which directory to use at run-time.
1292 \end_layout
1293
1294 \begin_layout Standard
1295 Invoking LyX with the command line switch 
1296 \begin_inset Flex Code
1297 status collapsed
1298
1299 \begin_layout Plain Layout
1300 -userdir
1301 \end_layout
1302
1303 \end_inset
1304
1305  
1306 \emph on
1307 <some directory>
1308 \emph default
1309  instructs the program to read the configuration from that directory, and
1310  not from the default directory.
1311  (You can determine the default directory by running LyX without the 
1312 \begin_inset Flex Code
1313 status collapsed
1314
1315 \begin_layout Plain Layout
1316 -userdir
1317 \end_layout
1318
1319 \end_inset
1320
1321  switch.) If the specified directory does not exist, LyX offers to create
1322  it for you, just like it does for the default directory on the first time
1323  you run the program.
1324  You can modify the configuration options in this additional user directory
1325  exactly as you would for the default directory.
1326  These directories are completely independent (but read on).
1327  Note that setting the environment variable 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 LYX_USERDIR_VER
1333 \end_layout
1334
1335 \end_inset
1336
1337  to some value has exactly the same effect.
1338 \end_layout
1339
1340 \begin_layout Standard
1341 Having several configurations also requires more maintenance: if you want
1342  to add a new layout to 
1343 \begin_inset Flex Code
1344 status collapsed
1345
1346 \begin_layout Plain Layout
1347 NewUserDir/layouts
1348 \end_layout
1349
1350 \end_inset
1351
1352  which you want available from all your configurations, you must add it
1353  to each directory separately.
1354  You can avoid this with the following trick: after LyX creates the additional
1355  directory, most of the subdirectories (see above) are empty.
1356  If you want the new configuration to mirror an existing one, replace the
1357  empty subdirectory with a symbolic link to the matching subdirectory in
1358  the existing configuration.
1359  Take care with the 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 doc/
1365 \end_layout
1366
1367 \end_inset
1368
1369  subdirectory, however, since it contains a file written by the configuration
1370  script (also accessible through 
1371 \begin_inset Flex MenuItem
1372 status collapsed
1373
1374 \begin_layout Plain Layout
1375 Tools\SpecialChar \menuseparator
1376 Reconfigure
1377 \end_layout
1378
1379 \end_inset
1380
1381 ) which is configuration-specific.
1382 \end_layout
1383
1384 \begin_layout Chapter
1385 The Preferences dialog
1386 \end_layout
1387
1388 \begin_layout Standard
1389 All options of the preferences dialog are described in the Appendix 
1390 \emph on
1391 The Preferences Dialog
1392 \emph default
1393  in the 
1394 \emph on
1395 User's Guide
1396 \emph default
1397 .
1398  For some options you might find here more details.
1399 \end_layout
1400
1401 \begin_layout Section
1402 Formats
1403 \begin_inset CommandInset label
1404 LatexCommand label
1405 name "sec:Formats"
1406
1407 \end_inset
1408
1409
1410 \end_layout
1411
1412 \begin_layout Standard
1413 The first step is to define your file formats if they are not already defined.
1414  To do so, open the 
1415 \begin_inset Flex MenuItem
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419 Tools\SpecialChar \menuseparator
1420 Preferences
1421 \end_layout
1422
1423 \end_inset
1424
1425  dialog.
1426  Under 
1427 \begin_inset Flex MenuItem
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 File Handling\SpecialChar \menuseparator
1432 File formats
1433 \end_layout
1434
1435 \end_inset
1436
1437  press the 
1438 \begin_inset Flex MenuItem
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 New\SpecialChar \ldots{}
1443
1444 \end_layout
1445
1446 \end_inset
1447
1448  button to define your new format.
1449  The 
1450 \begin_inset Flex MenuItem
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 Format
1455 \end_layout
1456
1457 \end_inset
1458
1459  field contains the name used to identify the format in the GUI.
1460  The 
1461 \begin_inset Flex MenuItem
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465 Short Name
1466 \end_layout
1467
1468 \end_inset
1469
1470  is used to identify the format internally.
1471  You will also need to enter a file extension.
1472  These are all required.
1473  The optional 
1474 \begin_inset Flex MenuItem
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 Shortcut
1479 \end_layout
1480
1481 \end_inset
1482
1483  field is used to provide a keyboard shortcut on the menus.
1484  (For example, pressing 
1485 \begin_inset Flex MenuItem
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 Alt-V F D
1490 \end_layout
1491
1492 \end_inset
1493
1494  will 
1495 \begin_inset Flex MenuItem
1496 status collapsed
1497
1498 \begin_layout Plain Layout
1499 View\SpecialChar \menuseparator
1500 View (Other Formats)\SpecialChar \menuseparator
1501 DVI
1502 \end_layout
1503
1504 \end_inset
1505
1506 .) 
1507 \end_layout
1508
1509 \begin_layout Standard
1510 A Format can have a 
1511 \begin_inset Flex MenuItem
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Viewer
1516 \end_layout
1517
1518 \end_inset
1519
1520  and an 
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 Editor
1526 \end_layout
1527
1528 \end_inset
1529
1530  associated with it.
1531  For example, you might want to use 
1532 \begin_inset Flex MenuItem
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 Ghostview
1537 \end_layout
1538
1539 \end_inset
1540
1541  to view PostScript files.
1542  You can enter the command needed to start the program in the corresponding
1543  fields.
1544  In defining this command, you can use the four variables listed in the
1545  next section.
1546  The viewer is launched when you view an image in LyX or use the 
1547 \begin_inset Flex MenuItem
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551 View
1552 \end_layout
1553
1554 \end_inset
1555
1556  menu.
1557  The editor is for example launched when you right-click on an image and
1558  choose 
1559 \begin_inset Flex MenuItem
1560 status collapsed
1561
1562 \begin_layout Plain Layout
1563 Edit externally
1564 \end_layout
1565
1566 \end_inset
1567
1568  in the appearing context menu.
1569 \end_layout
1570
1571 \begin_layout Standard
1572
1573 \change_inserted -195340706 1329851811
1574 The 
1575 \begin_inset Flex MenuItem
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 MIME
1580 \end_layout
1581
1582 \end_inset
1583
1584  type of a format is optional, but if it is specified, it must be unique
1585  across all formats.
1586  It is used to detect files of this format from the file contents.
1587  For some important file formats there is no MIME type officially registered
1588  with the 
1589 \begin_inset CommandInset href
1590 LatexCommand href
1591 name "IANA"
1592 target "http://www.iana.org/assignments/media-types/"
1593
1594 \end_inset
1595
1596 .
1597  Therefore LyX uses the extended list of MIME types as specified by 
1598 \begin_inset CommandInset href
1599 LatexCommand href
1600 name "freedesktop.org"
1601 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1602
1603 \end_inset
1604
1605 .
1606 \end_layout
1607
1608 \begin_layout Standard
1609 The 
1610 \begin_inset Flex MenuItem
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614 Document format
1615 \end_layout
1616
1617 \end_inset
1618
1619  option tells LyX that a format is suitable for document export.
1620  If this is set and if a suitable conversion route exists (see sec.
1621 \begin_inset space \thinspace{}
1622 \end_inset
1623
1624
1625 \begin_inset CommandInset ref
1626 LatexCommand ref
1627 reference "sec:Converters"
1628
1629 \end_inset
1630
1631 ), the format will appear in the 
1632 \begin_inset Flex MenuItem
1633 status collapsed
1634
1635 \begin_layout Plain Layout
1636 File\SpecialChar \menuseparator
1637 Export
1638 \end_layout
1639
1640 \end_inset
1641
1642  menu.
1643  The format will also appear in the 
1644 \begin_inset Flex MenuItem
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 View
1649 \end_layout
1650
1651 \end_inset
1652
1653  menu if a viewer is specified for the format.
1654  Pure image formats, such as 
1655 \begin_inset Flex Code
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 png
1660 \end_layout
1661
1662 \end_inset
1663
1664 , should not use this option.
1665  Formats that can both represent vector graphics and documents like 
1666 \begin_inset Flex Code
1667 status collapsed
1668
1669 \begin_layout Plain Layout
1670 pdf
1671 \end_layout
1672
1673 \end_inset
1674
1675  should use it.
1676 \end_layout
1677
1678 \begin_layout Standard
1679 The option 
1680 \begin_inset Flex MenuItem
1681 status collapsed
1682
1683 \begin_layout Plain Layout
1684 Vector graphics format
1685 \end_layout
1686
1687 \end_inset
1688
1689  tells LyX that a format can contain vector graphics.
1690  This information is used to determine the target format of included graphics
1691  for 
1692 \begin_inset Flex MenuItem
1693 status collapsed
1694
1695 \begin_layout Plain Layout
1696 pdflatex
1697 \end_layout
1698
1699 \end_inset
1700
1701  export.
1702  Included graphics may need to be converted to either 
1703 \begin_inset Flex MenuItem
1704 status collapsed
1705
1706 \begin_layout Plain Layout
1707 pdf
1708 \end_layout
1709
1710 \end_inset
1711
1712
1713 \begin_inset Flex MenuItem
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 png
1718 \end_layout
1719
1720 \end_inset
1721
1722 , or 
1723 \begin_inset Flex MenuItem
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 jpg
1728 \end_layout
1729
1730 \end_inset
1731
1732 , since 
1733 \begin_inset Flex MenuItem
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 pdflatex
1738 \end_layout
1739
1740 \end_inset
1741
1742  cannot handle other image formats.
1743  If an included graphic is not already in 
1744 \begin_inset Flex MenuItem
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 pdf
1749 \end_layout
1750
1751 \end_inset
1752
1753
1754 \begin_inset Flex MenuItem
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 png
1759 \end_layout
1760
1761 \end_inset
1762
1763 , or 
1764 \begin_inset Flex MenuItem
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 jpg
1769 \end_layout
1770
1771 \end_inset
1772
1773  format, it is converted to 
1774 \begin_inset Flex MenuItem
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 pdf
1779 \end_layout
1780
1781 \end_inset
1782
1783  if the vector format option is set, and otherwise to 
1784 \begin_inset Flex MenuItem
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 png
1789 \end_layout
1790
1791 \end_inset
1792
1793 .
1794 \end_layout
1795
1796 \begin_layout Section
1797 Copiers
1798 \end_layout
1799
1800 \begin_layout Standard
1801 Since all conversions from one format to another take place in LyX's temporary
1802  directory, it is sometimes necessary to modify a file before copying it
1803  to the temporary directory in order that the conversion may be performed.
1804 \begin_inset Foot
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 For example, the file may refer to other files—images, for example—using
1809  relative file names, and these may become invalid when the file is copied
1810  to the temporary directory.
1811 \end_layout
1812
1813 \end_inset
1814
1815  This is done by a Copier: It copies a file to (or from) the temporary directory
1816  and may modify it in the process.
1817 \end_layout
1818
1819 \begin_layout Standard
1820 The definitions of the copiers may use four variables:
1821 \end_layout
1822
1823 \begin_layout Labeling
1824 \labelwidthstring 00.00.0000
1825 \begin_inset Flex Code
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 $$s
1830 \end_layout
1831
1832 \end_inset
1833
1834  The LyX system directory (e.
1835 \begin_inset space \thinspace{}
1836 \end_inset
1837
1838 g.
1839 \begin_inset space \space{}
1840 \end_inset
1841
1842
1843 \begin_inset Flex MenuItem
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 /usr/share/lyx
1848 \end_layout
1849
1850 \end_inset
1851
1852 ).
1853 \end_layout
1854
1855 \begin_layout Labeling
1856 \labelwidthstring 00.00.0000
1857 \begin_inset Flex Code
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861 $$i
1862 \end_layout
1863
1864 \end_inset
1865
1866  The input file
1867 \end_layout
1868
1869 \begin_layout Labeling
1870 \labelwidthstring 00.00.0000
1871 \begin_inset Flex Code
1872 status collapsed
1873
1874 \begin_layout Plain Layout
1875 $$o
1876 \end_layout
1877
1878 \end_inset
1879
1880  The output file
1881 \change_inserted 1082167584 1348453985
1882
1883 \end_layout
1884
1885 \begin_layout Labeling
1886 \labelwidthstring 00.00.0000
1887
1888 \change_inserted 1082167584 1348453986
1889 $$b The base name (without filename extension) in the LyX temporary directory
1890 \end_layout
1891
1892 \begin_layout Labeling
1893 \labelwidthstring 00.00.0000
1894
1895 \change_inserted 1082167584 1348453986
1896 $$p The full directory path of the LyX temporary directory
1897 \end_layout
1898
1899 \begin_layout Labeling
1900 \labelwidthstring 00.00.0000
1901
1902 \change_inserted 1082167584 1348453986
1903 $$r The full pathname to the original LyX file being processed
1904 \end_layout
1905
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908
1909 \change_inserted 1082167584 1348453986
1910 $$f The filename (without any directory path) of the LyX file.
1911 \end_layout
1912
1913 \begin_layout Labeling
1914 \labelwidthstring 00.00.0000
1915 \begin_inset Flex Code
1916 status collapsed
1917
1918 \begin_layout Plain Layout
1919 $$l
1920 \end_layout
1921
1922 \end_inset
1923
1924  The `LaTeX name'
1925 \change_inserted 1082167584 1348453720
1926
1927 \end_layout
1928
1929 \begin_layout Standard
1930 The latter should be the filename as it would be used in a LaTeX's 
1931 \series bold
1932
1933 \backslash
1934 include
1935 \series default
1936  command.
1937  It is relevant only when exporting files suitable for such inclusion.
1938 \end_layout
1939
1940 \begin_layout Standard
1941 Copiers can be used to do almost anything with output files.
1942  For example, suppose you want generated pdf files to be copied to a special
1943  directory, 
1944 \begin_inset Flex Code
1945 status collapsed
1946
1947 \begin_layout Plain Layout
1948 /home/you/pdf/
1949 \end_layout
1950
1951 \end_inset
1952
1953 .
1954  Then you could write a shell script such as this one:
1955 \end_layout
1956
1957 \begin_layout Standard
1958 \begin_inset listings
1959 inline false
1960 status open
1961
1962 \begin_layout Plain Layout
1963
1964 #!/bin/bash
1965 \end_layout
1966
1967 \begin_layout Plain Layout
1968
1969 FROMFILE=$1
1970 \end_layout
1971
1972 \begin_layout Plain Layout
1973
1974 TOFILE=`basename $2`
1975 \end_layout
1976
1977 \begin_layout Plain Layout
1978
1979 cp $FROMFILE /home/you/pdf/$TOFILE
1980 \end_layout
1981
1982 \end_inset
1983
1984 Save it in your local LyX directory—say, 
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 /home/you/.lyx/scripts/pdfcopier.sh
1990 \end_layout
1991
1992 \end_inset
1993
1994 —and make it executable, if you need to do so on your platform.
1995  Then, in the 
1996 \begin_inset Flex MenuItem
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 Tools\SpecialChar \menuseparator
2001 Preferences
2002 \end_layout
2003
2004 \end_inset
2005
2006  dialog, select under 
2007 \begin_inset Flex MenuItem
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 File Handling\SpecialChar \menuseparator
2012 File formats
2013 \end_layout
2014
2015 \end_inset
2016
2017  the 
2018 \begin_inset Flex MenuItem
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 PDF(pdflatex)
2023 \end_layout
2024
2025 \end_inset
2026
2027  format—or one of the other pdf formats—and enter 
2028 \begin_inset Flex Code
2029 status collapsed
2030
2031 \begin_layout Plain Layout
2032 pdfcopier.sh $$i $$o
2033 \end_layout
2034
2035 \end_inset
2036
2037  into the 
2038 \begin_inset Flex MenuItem
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042 Copier
2043 \end_layout
2044
2045 \end_inset
2046
2047  field.
2048  
2049 \end_layout
2050
2051 \begin_layout Standard
2052 Copiers are used by LyX in various of its own conversions.
2053  For example, if appropriate programs are found, LyX will automatically
2054  install copiers for the 
2055 \begin_inset Flex MenuItem
2056 status collapsed
2057
2058 \begin_layout Plain Layout
2059 HTML
2060 \end_layout
2061
2062 \end_inset
2063
2064  and 
2065 \begin_inset Flex MenuItem
2066 status collapsed
2067
2068 \begin_layout Plain Layout
2069 HTML
2070 \begin_inset space ~
2071 \end_inset
2072
2073 (MS Word)
2074 \end_layout
2075
2076 \end_inset
2077
2078  formats.
2079  When these formats are exported, the copier sees that not just the main
2080  HTML file but various associated files (style files, images, etc.) are also
2081  copied.
2082  All these files are written to a subdirectory of the directory in which
2083  the original LyX file was found.
2084 \begin_inset Foot
2085 status collapsed
2086
2087 \begin_layout Plain Layout
2088 This copier can be customized.
2089  The optional 
2090 \begin_inset Quotes eld
2091 \end_inset
2092
2093 -e
2094 \begin_inset Quotes erd
2095 \end_inset
2096
2097  argument takes a comma-separated list of extensions to be copied; if it
2098  is omitted, all files will be copied.
2099  The 
2100 \begin_inset Quotes eld
2101 \end_inset
2102
2103 -t
2104 \begin_inset Quotes erd
2105 \end_inset
2106
2107  argument determines the extension added to the generated directory.
2108  By default, it is 
2109 \begin_inset Quotes eld
2110 \end_inset
2111
2112
2113 \begin_inset Flex MenuItem
2114 status collapsed
2115
2116 \begin_layout Plain Layout
2117 LyXconv
2118 \end_layout
2119
2120 \end_inset
2121
2122
2123 \begin_inset Quotes erd
2124 \end_inset
2125
2126 , so HTML generated from 
2127 \begin_inset Flex MenuItem
2128 status collapsed
2129
2130 \begin_layout Plain Layout
2131 /path/to/filename.lyx
2132 \end_layout
2133
2134 \end_inset
2135
2136  will end up in 
2137 \begin_inset Flex MenuItem
2138 status collapsed
2139
2140 \begin_layout Plain Layout
2141 /path/to/filename.html.LyXconv
2142 \end_layout
2143
2144 \end_inset
2145
2146 .
2147  
2148 \end_layout
2149
2150 \end_inset
2151
2152
2153 \end_layout
2154
2155 \begin_layout Section
2156 Converters
2157 \begin_inset CommandInset label
2158 LatexCommand label
2159 name "sec:Converters"
2160
2161 \end_inset
2162
2163
2164 \end_layout
2165
2166 \begin_layout Standard
2167 You can define your own Converters to convert files between different formats.
2168  This is done in the 
2169 \begin_inset Flex MenuItem
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 Tools\SpecialChar \menuseparator
2174 Preferences\SpecialChar \menuseparator
2175 File Handling\SpecialChar \menuseparator
2176 Converters
2177 \end_layout
2178
2179 \end_inset
2180
2181  dialog.
2182 \end_layout
2183
2184 \begin_layout Standard
2185 To define a new converter, select the 
2186 \begin_inset Flex MenuItem
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 From
2191 \begin_inset space ~
2192 \end_inset
2193
2194 format
2195 \end_layout
2196
2197 \end_inset
2198
2199  and 
2200 \begin_inset Flex MenuItem
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 To
2205 \begin_inset space ~
2206 \end_inset
2207
2208 format
2209 \end_layout
2210
2211 \end_inset
2212
2213  from the drop-down lists, enter the command needed for the conversion,
2214  and then press the 
2215 \begin_inset Flex MenuItem
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219 Add
2220 \end_layout
2221
2222 \end_inset
2223
2224  button.
2225  Several variables can be used in the definition of converters:
2226 \end_layout
2227
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 $$s
2235 \end_layout
2236
2237 \end_inset
2238
2239  The LyX system directory
2240 \end_layout
2241
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Flex Code
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 $$i
2249 \end_layout
2250
2251 \end_inset
2252
2253  The input file
2254 \end_layout
2255
2256 \begin_layout Labeling
2257 \labelwidthstring 00.00.0000
2258 \begin_inset Flex Code
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 $$o
2263 \end_layout
2264
2265 \end_inset
2266
2267  The output file
2268 \end_layout
2269
2270 \begin_layout Labeling
2271 \labelwidthstring 00.00.0000
2272 \begin_inset Flex Code
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 $$b
2277 \end_layout
2278
2279 \end_inset
2280
2281  The base filename of the input file (i.
2282 \begin_inset space \thinspace{}
2283 \end_inset
2284
2285 g., without the extension)
2286 \end_layout
2287
2288 \begin_layout Labeling
2289 \labelwidthstring 00.00.0000
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 $$p
2295 \end_layout
2296
2297 \end_inset
2298
2299  The path to the input file
2300 \end_layout
2301
2302 \begin_layout Labeling
2303 \labelwidthstring 00.00.0000
2304 \begin_inset Flex Code
2305 status collapsed
2306
2307 \begin_layout Plain Layout
2308 $$r
2309 \end_layout
2310
2311 \end_inset
2312
2313  The path to the original input file (this is different from $$p when a
2314  chain of converters is called)
2315 \end_layout
2316
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Flex Code
2320 status collapsed
2321
2322 \begin_layout Plain Layout
2323 $$e
2324 \end_layout
2325
2326 \end_inset
2327
2328  The iconv name for the encoding of the document.
2329 \end_layout
2330
2331 \begin_layout Standard
2332 In the 
2333 \begin_inset Flex MenuItem
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 Extra
2338 \begin_inset space ~
2339 \end_inset
2340
2341 Flag
2342 \end_layout
2343
2344 \end_inset
2345
2346  field you can enter the following flags, separated by commas:
2347 \end_layout
2348
2349 \begin_layout Labeling
2350 \labelwidthstring 00.00.0000
2351 \begin_inset Flex Code
2352 status collapsed
2353
2354 \begin_layout Plain Layout
2355 latex
2356 \end_layout
2357
2358 \end_inset
2359
2360  This converter runs some form of LaTeX.
2361  This will make LyX's LaTeX error logs available.
2362 \end_layout
2363
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Flex Code
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 needaux
2371 \end_layout
2372
2373 \end_inset
2374
2375  Needs the LaTeX 
2376 \begin_inset Flex MenuItem
2377 status collapsed
2378
2379 \begin_layout Plain Layout
2380 .aux
2381 \end_layout
2382
2383 \end_inset
2384
2385  file for the conversion.
2386 \change_inserted 1414654397 1337693117
2387
2388 \end_layout
2389
2390 \begin_layout Labeling
2391 \labelwidthstring 00.00.0000
2392
2393 \change_inserted 1414654397 1337693188
2394 \begin_inset Flex Code
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398
2399 \change_inserted 1414654397 1337693129
2400 nice
2401 \change_unchanged
2402
2403 \end_layout
2404
2405 \end_inset
2406
2407  Needs a 
2408 \begin_inset Quotes eld
2409 \end_inset
2410
2411 nice
2412 \begin_inset Quotes erd
2413 \end_inset
2414
2415  file from the backend, which in practice means a LaTeX file like the one
2416  we would export, without 
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421
2422 \change_inserted 1414654397 1337693184
2423 input@path
2424 \change_unchanged
2425
2426 \end_layout
2427
2428 \end_inset
2429
2430 .
2431 \change_unchanged
2432
2433 \end_layout
2434
2435 \begin_layout Labeling
2436 \labelwidthstring 00.00.0000
2437 \begin_inset Flex Code
2438 status collapsed
2439
2440 \begin_layout Plain Layout
2441 xml
2442 \end_layout
2443
2444 \end_inset
2445
2446  Output is XML.
2447 \end_layout
2448
2449 \begin_layout Standard
2450 The following three flags are not really flags at all because they take
2451  an argument in the 
2452 \begin_inset Flex MenuItem
2453 status collapsed
2454
2455 \begin_layout Plain Layout
2456 key
2457 \begin_inset space ~
2458 \end_inset
2459
2460 =
2461 \begin_inset space ~
2462 \end_inset
2463
2464 value
2465 \end_layout
2466
2467 \end_inset
2468
2469  format:
2470 \end_layout
2471
2472 \begin_layout Labeling
2473 \labelwidthstring 00.00.0000
2474 \begin_inset Flex Code
2475 status collapsed
2476
2477 \begin_layout Plain Layout
2478 parselog
2479 \end_layout
2480
2481 \end_inset
2482
2483  If set, the converter's standard error will be redirected to a file 
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 infile.out
2489 \end_layout
2490
2491 \end_inset
2492
2493 , and the script given as argument will be run as: 
2494 \begin_inset Flex Code
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 script < infile.out > infile.log
2499 \end_layout
2500
2501 \end_inset
2502
2503 .
2504  The argument may contain 
2505 \begin_inset Flex Code
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 $$s
2510 \end_layout
2511
2512 \end_inset
2513
2514 .
2515 \end_layout
2516
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2519 \begin_inset Flex Code
2520 status collapsed
2521
2522 \begin_layout Plain Layout
2523 resultdir
2524 \end_layout
2525
2526 \end_inset
2527
2528  The name of the directory in which the converter will dump the generated
2529  files.
2530  LyX will not create this directory, and it does not copy anything into
2531  it, though it will copy this directory to the destination.
2532  The argument may contain 
2533 \begin_inset Flex Code
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537 $$b
2538 \end_layout
2539
2540 \end_inset
2541
2542 , which will be replaced by the base name of the input and output files,
2543  respectively, when the directory is copied.
2544 \begin_inset Newline newline
2545 \end_inset
2546
2547 Note that resultdir and usetempdir make no sense together.
2548  The latter will be ignored if the former is given.
2549 \end_layout
2550
2551 \begin_layout Labeling
2552 \labelwidthstring 00.00.0000
2553 \begin_inset Flex Code
2554 status collapsed
2555
2556 \begin_layout Plain Layout
2557 resultfile
2558 \end_layout
2559
2560 \end_inset
2561
2562  Determines the output file name and may, contain 
2563 \begin_inset Flex Code
2564 status collapsed
2565
2566 \begin_layout Plain Layout
2567 $$b
2568 \end_layout
2569
2570 \end_inset
2571
2572 .
2573  Sensible only with resultdir and optional even then; if not given, it defaults
2574  to `index'.
2575 \end_layout
2576
2577 \begin_layout Standard
2578 None of these last three are presently used in any of the converters that
2579  are installed with LyX.
2580  
2581 \end_layout
2582
2583 \begin_layout Standard
2584 You do not have to define converters for all formats between which you want
2585  to convert.
2586  For example, you will note that there is no `LyX to PostScript' converter,
2587  but LyX will export PostScript.
2588  It does so by first creating a LaTeX file (no converter needs to be defined
2589  for this) which is then converted to DVI using the `LaTeX to DVI' converter,
2590  and finally converting the resulting DVI file to PostScript.
2591  LyX finds such `chains' of converters automatically, and it will always
2592  choose the shortest possible chain.
2593  You can, though, still define multiple conversion methods between file
2594  formats.
2595  For example, the standard LyX configuration provides three ways to convert
2596  LaTeX to PDF: Directly, using 
2597 \begin_inset Flex MenuItem
2598 status collapsed
2599
2600 \begin_layout Plain Layout
2601 pdflatex
2602 \end_layout
2603
2604 \end_inset
2605
2606 ; via (DVI and) PostScript, using 
2607 \begin_inset Flex MenuItem
2608 status collapsed
2609
2610 \begin_layout Plain Layout
2611 ps2pdf
2612 \end_layout
2613
2614 \end_inset
2615
2616 ; or via DVI, using 
2617 \begin_inset Flex MenuItem
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 dvipdfm
2622 \end_layout
2623
2624 \end_inset
2625
2626 .
2627  To define such alternate chains, you must define multiple target `file
2628  formats', as described in section 
2629 \begin_inset CommandInset ref
2630 LatexCommand ref
2631 reference "sec:Formats"
2632
2633 \end_inset
2634
2635 .
2636  For example, in the standard configuration, the formats named 
2637 \begin_inset Flex MenuItem
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641 pdf
2642 \end_layout
2643
2644 \end_inset
2645
2646
2647 \begin_inset Flex MenuItem
2648 status collapsed
2649
2650 \begin_layout Plain Layout
2651 pdf2
2652 \end_layout
2653
2654 \end_inset
2655
2656 , and 
2657 \begin_inset Flex MenuItem
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 pdf3
2662 \end_layout
2663
2664 \end_inset
2665
2666  are defined, all of which share the extension 
2667 \begin_inset Flex MenuItem
2668 status collapsed
2669
2670 \begin_layout Plain Layout
2671 .pdf
2672 \end_layout
2673
2674 \end_inset
2675
2676 , and which correspond to the conversion methods just mentioned.
2677 \end_layout
2678
2679 \begin_layout Chapter
2680 Internationalizing LyX
2681 \begin_inset CommandInset label
2682 LatexCommand label
2683 name "cha:Internationalizing-LyX"
2684
2685 \end_inset
2686
2687
2688 \end_layout
2689
2690 \begin_layout Standard
2691 LyX supports using a translated interface.
2692  Last time we checked, LyX provided text in thirty languages.
2693  The language of choice is called your 
2694 \emph on
2695 locale
2696 \emph default
2697 .
2698  (For further reading on locale settings, see also the documentation for
2699  locale that comes with your operating system.
2700  For Linux, the manual page for 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 locale(5)
2706 \end_layout
2707
2708 \end_inset
2709
2710  could be a good place to start).
2711 \end_layout
2712
2713 \begin_layout Standard
2714 Notice that these translations will work, but do contain a few flaws.
2715  In particular, all dialogs have been designed with the English text in
2716  mind, which means that some of the translated text will be too large to
2717  fit within the space allocated.
2718  This is only a display problem and will not cause any harm.
2719  Also, you will find that some of the translations do not define shortcut
2720  keys for everything.
2721  Sometimes, there are simply not enough free letters to do it.
2722  Other times, the translator just hasn't got around to doing it yet.
2723  Our localization team, which you may wish to join,
2724 \begin_inset Foot
2725 status collapsed
2726
2727 \begin_layout Plain Layout
2728 If you are a fluent speaker of a language other than English, joining these
2729  teams is a great way to give back to the LyX community!
2730 \end_layout
2731
2732 \end_inset
2733
2734  will of course try to fix these shortcomings in future versions of LyX.
2735 \end_layout
2736
2737 \begin_layout Section
2738 Translating LyX
2739 \end_layout
2740
2741 \begin_layout Subsection
2742 Translating the graphical user interface (text messages).
2743 \end_layout
2744
2745 \begin_layout Standard
2746 LyX uses the GNU 
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 gettext
2752 \end_layout
2753
2754 \end_inset
2755
2756  library to handle the internationalization of the interface.
2757  To have LyX speak your favorite language in all menus and dialogs, you
2758  need a 
2759 \begin_inset Flex Code
2760 status collapsed
2761
2762 \begin_layout Plain Layout
2763 po
2764 \end_layout
2765
2766 \end_inset
2767
2768 -file for that language.
2769  When this is available, you'll have to generate a 
2770 \begin_inset Flex Code
2771 status collapsed
2772
2773 \begin_layout Plain Layout
2774 mo
2775 \end_layout
2776
2777 \end_inset
2778
2779 -file from it and install the 
2780 \begin_inset Flex Code
2781 status collapsed
2782
2783 \begin_layout Plain Layout
2784 mo
2785 \end_layout
2786
2787 \end_inset
2788
2789 -file.
2790  The process of doing all of this is explained in the documentation for
2791  GNU 
2792 \begin_inset Flex Code
2793 status collapsed
2794
2795 \begin_layout Plain Layout
2796 gettext
2797 \end_layout
2798
2799 \end_inset
2800
2801 .
2802  It is possible to do this just for yourself, but if you're going to do
2803  it, you might as well share the results of your labors with the rest of
2804  the LyX community.
2805  Send a message to the LyX developers' list for more information about how
2806  to proceed.
2807 \end_layout
2808
2809 \begin_layout Standard
2810 In short, this is what you should do (xx denotes the language code):
2811 \end_layout
2812
2813 \begin_layout Itemize
2814 Check out the LyX source code.
2815  (See the 
2816 \begin_inset CommandInset href
2817 LatexCommand href
2818 name "information on the web"
2819 target "http://www.lyx.org/HowToUseSVN"
2820
2821 \end_inset
2822
2823 .)
2824 \end_layout
2825
2826 \begin_layout Itemize
2827 Copy the file 
2828 \begin_inset Flex Code
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 lyx.pot
2833 \end_layout
2834
2835 \end_inset
2836
2837  to the folder of the 
2838 \begin_inset Flex Code
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842 **.po
2843 \end_layout
2844
2845 \end_inset
2846
2847  files.
2848  Then rename it to 
2849 \begin_inset Flex Code
2850 status collapsed
2851
2852 \begin_layout Plain Layout
2853 xx.po
2854 \end_layout
2855
2856 \end_inset
2857
2858 .
2859  (If 
2860 \begin_inset Flex Code
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864 lyx.pot
2865 \end_layout
2866
2867 \end_inset
2868
2869  doesn't exist anywhere, it can be remade with the console command 
2870 \begin_inset Flex Code
2871 status collapsed
2872
2873 \begin_layout Plain Layout
2874 make lyx.pot
2875 \end_layout
2876
2877 \end_inset
2878
2879  in that directory, or you can use an existing po-file for some other language
2880  as a template).
2881 \end_layout
2882
2883 \begin_layout Itemize
2884 Edit 
2885 \begin_inset Flex Code
2886 status collapsed
2887
2888 \begin_layout Plain Layout
2889 xx.po
2890 \end_layout
2891
2892 \end_inset
2893
2894 .
2895 \begin_inset Foot
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 This is just a text file, so it can be edited in any text editor.
2900  But there are also specialized programs that support such editing, such
2901  as 
2902 \family typewriter
2903 Poedit
2904 \family default
2905  (for all platforms) or 
2906 \family typewriter
2907 KBabel
2908 \family default
2909  (for KDE).
2910  
2911 \family typewriter
2912 Emacs
2913 \family default
2914  contains a `mode' for editing 
2915 \begin_inset Flex Code
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919 po
2920 \end_layout
2921
2922 \end_inset
2923
2924  files, as well.
2925 \end_layout
2926
2927 \end_inset
2928
2929  For some menu- and widget-labels, there are also shortcut keys that should
2930  be translated.
2931  Those keys are marked after a `|', and should be translated according to
2932  the words and phrases of the language.
2933  You should also fill also out the information at the beginning of the new
2934  
2935 \begin_inset Flex Code
2936 status collapsed
2937
2938 \begin_layout Plain Layout
2939 po
2940 \end_layout
2941
2942 \end_inset
2943
2944 -file with your email-address, etc., so people know where to reach you with
2945  suggestions and entertaining flames.
2946 \end_layout
2947
2948 \begin_layout Standard
2949 If you are just doing this on your own, then:
2950 \end_layout
2951
2952 \begin_layout Itemize
2953 Generate 
2954 \begin_inset Flex Code
2955 status collapsed
2956
2957 \begin_layout Plain Layout
2958 xx.mo
2959 \end_layout
2960
2961 \end_inset
2962
2963 .
2964  This can be done with 
2965 \begin_inset Flex Code
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 msgfmt -o xx.mo < xx.po
2970 \end_layout
2971
2972 \end_inset
2973
2974 .
2975 \end_layout
2976
2977 \begin_layout Itemize
2978 Copy the 
2979 \begin_inset Flex Code
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 mo
2984 \end_layout
2985
2986 \end_inset
2987
2988 -file to your locale-tree, at the correct directory for application messages
2989  for the language
2990 \series bold
2991  
2992 \series default
2993 xx, and under the name 
2994 \begin_inset Flex Code
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998 lyx.mo
2999 \end_layout
3000
3001 \end_inset
3002
3003  (e.
3004 \begin_inset space \thinspace{}
3005 \end_inset
3006
3007 g.
3008 \begin_inset space \space{}
3009 \end_inset
3010
3011
3012 \begin_inset Flex Code
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3017 \end_layout
3018
3019 \end_inset
3020
3021
3022 \series bold
3023 .
3024 \end_layout
3025
3026 \begin_layout Standard
3027 As said, however, it would be best if the new 
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 po
3033 \end_layout
3034
3035 \end_inset
3036
3037 -file could be added to the LyX distribution, so others can use it.
3038  Adding it involves making additional changes to LyX.
3039  So send an email to the developers' mailing list if you're interested in
3040  doing that.
3041 \end_layout
3042
3043 \begin_layout Subsubsection
3044 Ambiguous messages
3045 \end_layout
3046
3047 \begin_layout Standard
3048 Sometimes it turns out that one English message needs to be translated into
3049  different messages in the target language.
3050  One example is the message 
3051 \begin_inset Flex Code
3052 status collapsed
3053
3054 \begin_layout Plain Layout
3055 To
3056 \end_layout
3057
3058 \end_inset
3059
3060  which has the German translation 
3061 \lang german
3062 Nach
3063 \lang english
3064  or 
3065 \lang german
3066 Bis
3067 \lang english
3068 , depending upon exactly what the English 
3069 \begin_inset Quotes eld
3070 \end_inset
3071
3072 to
3073 \begin_inset Quotes erd
3074 \end_inset
3075
3076  means.
3077  GNU 
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 gettext
3083 \end_layout
3084
3085 \end_inset
3086
3087  does not handle such ambiguous translations.
3088  Therefore you have to add some context information to the message: Instead
3089  of 
3090 \begin_inset Flex Code
3091 status collapsed
3092
3093 \begin_layout Plain Layout
3094 To
3095 \end_layout
3096
3097 \end_inset
3098
3099  it becomes 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 To[[as in 'From format x to format y']]
3105 \end_layout
3106
3107 \end_inset
3108
3109  and 
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 To[[as in 'From page x to page y']].
3115 \end_layout
3116
3117 \end_inset
3118
3119  Now the two occurrences of 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 To
3125 \end_layout
3126
3127 \end_inset
3128
3129  are different for 
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 gettext
3135 \end_layout
3136
3137 \end_inset
3138
3139  and can be translated correctly to 
3140 \lang german
3141 Nach
3142 \lang english
3143  and 
3144 \lang german
3145 Bis
3146 \lang english
3147 , respectively.
3148 \end_layout
3149
3150 \begin_layout Standard
3151 Of course the context information needs to be stripped off the original
3152  message when no translation is used.
3153  Therefore you have to put it in double square brackets at the end of the
3154  message (see the example above).
3155  The translation mechanism of LyX ensures that everything in double square
3156  brackets at the end of messages is removed before displaying the message.
3157 \end_layout
3158
3159 \begin_layout Subsection
3160 Translating the documentation.
3161 \end_layout
3162
3163 \begin_layout Standard
3164 The online documentation (in the 
3165 \begin_inset Flex MenuItem
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 Help
3170 \end_layout
3171
3172 \end_inset
3173
3174 -menu) can (and should!) be translated.
3175  If there are translated versions of the documentation available
3176 \begin_inset Foot
3177 status collapsed
3178
3179 \begin_layout Plain Layout
3180 As of March 2008, at least some of the documents have been translated into
3181  fourteen languages, with the Tutorial available in a few more.
3182 \end_layout
3183
3184 \end_inset
3185
3186  and the locale is set accordingly, these will be used automagically by
3187  LyX.
3188  LyX looks for translated versions as 
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 LyXDir/doc/xx/DocName.lyx
3194 \end_layout
3195
3196 \end_inset
3197
3198 , where 
3199 \begin_inset Flex Code
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 xx
3204 \end_layout
3205
3206 \end_inset
3207
3208  is the code for the language currently in use.
3209  If there are no translated documents, the default English versions will
3210  be displayed.
3211  Note that the translated versions must have the same filenames (
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 DocName
3217 \end_layout
3218
3219 \end_inset
3220
3221  above) as the original.
3222  If you feel up to translating the documentation (an excellent way to proof-read
3223  the original documentation by the way!), there are a few things you should
3224  do right away:
3225 \end_layout
3226
3227 \begin_layout Itemize
3228 Check out the documentation translation web page at 
3229 \begin_inset CommandInset href
3230 LatexCommand href
3231 name "http://www.lyx.org/Translation"
3232 target "http://www.lyx.org/Translation"
3233
3234 \end_inset
3235
3236 .
3237  That way, you can find out which (if any) documents have already been translate
3238 d into your language.
3239  You can also find out who (if anyone) is organizing the effort to translate
3240  the documentation into your language.
3241  If no one is organizing the effort, please let us know that you're interested.
3242 \end_layout
3243
3244 \begin_layout Standard
3245 Once you get to actually translating, here's a few hints for you that may
3246  save you trouble:
3247 \end_layout
3248
3249 \begin_layout Itemize
3250 Join the documentation team! There is information on how to do that in 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 Intro.lyx
3256 \end_layout
3257
3258 \end_inset
3259
3260  (
3261 \begin_inset Flex MenuItem
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265 Help\SpecialChar \menuseparator
3266 Introduction
3267 \end_layout
3268
3269 \end_inset
3270
3271 ), which by the way is the first document you should translate.
3272 \end_layout
3273
3274 \begin_layout Itemize
3275 Learn the typographic conventions for the language you are translating to.
3276  Typography is an ancient art and over the centuries, a great variety of
3277  conventions have developed throughout different parts of the world.
3278  Also study the professional terminology amongst typographers in your country.
3279  Inventing your own terminology will only confuse the users.
3280  
3281 \emph on
3282 (Warning! Typography is addictive!)
3283 \end_layout
3284
3285 \begin_layout Itemize
3286 Make a copy of the document.
3287  This will be your working copy.
3288  You can use this as your personal translated help-file by placing it in
3289  your 
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 UserDir/doc/xx/
3295 \end_layout
3296
3297 \end_inset
3298
3299  directory.
3300 \end_layout
3301
3302 \begin_layout Itemize
3303 Sometimes the original document (from the LyX-team) will be updated.
3304  Use the source viewer at 
3305 \begin_inset CommandInset href
3306 LatexCommand href
3307 name "http://www.lyx.org/trac/timeline"
3308 target "http://www.lyx.org/trac/timeline"
3309
3310 \end_inset
3311
3312  to see what has been changed.
3313  That way you can easily see which parts of the translated document need
3314  to be updated.
3315 \end_layout
3316
3317 \begin_layout Standard
3318 If you ever find an error in the original document, fix it and notify the
3319  rest of the documentation team of the changes! (You didn't forget to join
3320  the documentation team, did you?)
3321 \end_layout
3322
3323 \begin_layout Standard
3324 \begin_inset Branch OutDated
3325 status collapsed
3326
3327 \begin_layout Section
3328 International Keyboard Support
3329 \end_layout
3330
3331 \begin_layout Standard
3332
3333 \emph on
3334 [Editor's Note: The following section is by
3335 \emph default
3336  
3337 \shape smallcaps
3338 \emph on
3339 Ivan Schreter
3340 \shape default
3341 .
3342  It needs to be fixed to conform to the new Documentation Style sheet and
3343  to make use of the new v1.0 features.
3344  The whole thing also needs to be merged with the section following it.-jw
3345  It may also be badly out of date.-rh (2008)]
3346 \end_layout
3347
3348 \begin_layout Subsection
3349 Defining Own Keymaps: Keymap File Format
3350 \end_layout
3351
3352 \begin_layout Standard
3353 Let's look at a keyboard definition file a little closer.
3354  It is a plain text file defining
3355 \end_layout
3356
3357 \begin_layout Itemize
3358 key-to-key or key-to-string translations
3359 \end_layout
3360
3361 \begin_layout Itemize
3362 dead keys
3363 \end_layout
3364
3365 \begin_layout Itemize
3366 dead keys exceptions
3367 \end_layout
3368
3369 \begin_layout Standard
3370 To define key-to-key or key-to-string translation, use this command:
3371 \end_layout
3372
3373 \begin_layout Quotation
3374 \begin_inset Flex Code
3375 status collapsed
3376
3377 \begin_layout Plain Layout
3378
3379 \backslash
3380 kmap
3381 \end_layout
3382
3383 \end_inset
3384
3385  
3386 \begin_inset Flex Code
3387 status collapsed
3388
3389 \begin_layout Plain Layout
3390 key
3391 \end_layout
3392
3393 \end_inset
3394
3395  outstring 
3396 \end_layout
3397
3398 \begin_layout Standard
3399 where 
3400 \begin_inset Flex Code
3401 status collapsed
3402
3403 \begin_layout Plain Layout
3404 key
3405 \end_layout
3406
3407 \end_inset
3408
3409  is the key to be translated and 
3410 \begin_inset Flex Code
3411 status collapsed
3412
3413 \begin_layout Plain Layout
3414 outstring
3415 \end_layout
3416
3417 \end_inset
3418
3419  is the string to be inserted into the document.
3420  To define dead keys, use:
3421 \end_layout
3422
3423 \begin_layout Quotation
3424 \begin_inset Flex Code
3425 status collapsed
3426
3427 \begin_layout Plain Layout
3428
3429 \backslash
3430 kmod
3431 \end_layout
3432
3433 \end_inset
3434
3435  
3436 \begin_inset Flex Code
3437 status collapsed
3438
3439 \begin_layout Plain Layout
3440 key
3441 \end_layout
3442
3443 \end_inset
3444
3445  deadkey
3446 \end_layout
3447
3448 \begin_layout Standard
3449 where 
3450 \begin_inset Flex Code
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 key
3455 \end_layout
3456
3457 \end_inset
3458
3459  is a keyboard key and 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 deadkey
3465 \end_layout
3466
3467 \end_inset
3468
3469  is dead key name.
3470  The following dead keys are supported (shortcut name is in parentheses):
3471 \end_layout
3472
3473 \begin_layout Quotation
3474
3475 \emph on
3476 Name
3477 \begin_inset space \hfill{}
3478 \end_inset
3479
3480 Example
3481 \end_layout
3482
3483 \begin_layout Quotation
3484 acute (acu)
3485 \begin_inset space \hfill{}
3486 \end_inset
3487
3488 áéíóú
3489 \end_layout
3490
3491 \begin_layout Quotation
3492 grave (gra)
3493 \begin_inset space \hfill{}
3494 \end_inset
3495
3496 àèìòù
3497 \end_layout
3498
3499 \begin_layout Quotation
3500 macron (mac)
3501 \begin_inset space \hfill{}
3502 \end_inset
3503
3504  ō
3505 \end_layout
3506
3507 \begin_layout Quotation
3508 tilde (til)
3509 \begin_inset space \hfill{}
3510 \end_inset
3511
3512 ñÑ
3513 \end_layout
3514
3515 \begin_layout Quotation
3516 underbar (underb)
3517 \begin_inset space \hfill{}
3518 \end_inset
3519
3520
3521 \begin_inset ERT
3522 status open
3523
3524 \begin_layout Plain Layout
3525
3526
3527 \backslash
3528 b o
3529 \end_layout
3530
3531 \end_inset
3532
3533
3534 \end_layout
3535
3536 \begin_layout Quotation
3537 cedilla (ced)
3538 \begin_inset space \hfill{}
3539 \end_inset
3540
3541 çÇ
3542 \end_layout
3543
3544 \begin_layout Quotation
3545 underdot (underd)
3546 \begin_inset space \hfill{}
3547 \end_inset
3548
3549
3550 \begin_inset ERT
3551 status open
3552
3553 \begin_layout Plain Layout
3554
3555
3556 \backslash
3557 d o
3558 \end_layout
3559
3560 \end_inset
3561
3562
3563 \end_layout
3564
3565 \begin_layout Quotation
3566 circumflex (circu)
3567 \begin_inset space \hfill{}
3568 \end_inset
3569
3570 âêîôû
3571 \end_layout
3572
3573 \begin_layout Quotation
3574 circle (circl)
3575 \begin_inset space \hfill{}
3576 \end_inset
3577
3578 ÅůŮ
3579 \end_layout
3580
3581 \begin_layout Quotation
3582 tie (tie)
3583 \begin_inset space \hfill{}
3584 \end_inset
3585
3586
3587 \begin_inset ERT
3588 status open
3589
3590 \begin_layout Plain Layout
3591
3592
3593 \backslash
3594 t o
3595 \end_layout
3596
3597 \end_inset
3598
3599
3600 \end_layout
3601
3602 \begin_layout Quotation
3603 breve (bre)
3604 \begin_inset space \hfill{}
3605 \end_inset
3606
3607 ă
3608 \begin_inset ERT
3609 status open
3610
3611 \begin_layout Plain Layout
3612
3613
3614 \backslash
3615 u o
3616 \end_layout
3617
3618 \end_inset
3619
3620
3621 \end_layout
3622
3623 \begin_layout Quotation
3624 caron (car)
3625 \begin_inset space \hfill{}
3626 \end_inset
3627
3628 čšž
3629 \end_layout
3630
3631 \begin_layout Quotation
3632 hungarian umlaut (hug)
3633 \begin_inset space \hfill{}
3634 \end_inset
3635
3636 őű
3637 \end_layout
3638
3639 \begin_layout Quotation
3640 umlaut (uml)
3641 \begin_inset space \hfill{}
3642 \end_inset
3643
3644 äöü
3645 \end_layout
3646
3647 \begin_layout Quotation
3648 dot (dot)
3649 \begin_inset space \hfill{}
3650 \end_inset
3651
3652 ż
3653 \begin_inset ERT
3654 status open
3655
3656 \begin_layout Plain Layout
3657
3658
3659 \backslash
3660 .s
3661 \end_layout
3662
3663 \end_inset
3664
3665
3666 \end_layout
3667
3668 \begin_layout Standard
3669 Since in many international keyboards there are exceptions to what some
3670  dead keys should do, you can define them using
3671 \end_layout
3672
3673 \begin_layout Quotation
3674 \begin_inset Flex Code
3675 status collapsed
3676
3677 \begin_layout Plain Layout
3678
3679 \backslash
3680 kxmod
3681 \end_layout
3682
3683 \end_inset
3684
3685  deadkey key outstring
3686 \end_layout
3687
3688 \begin_layout Standard
3689 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3690 , so you put in
3691 \end_layout
3692
3693 \begin_layout Quotation
3694 \begin_inset Flex Code
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698
3699 \backslash
3700 kxmod
3701 \end_layout
3702
3703 \end_inset
3704
3705  caron o "
3706 \backslash
3707 ^o"
3708 \end_layout
3709
3710 \begin_layout Standard
3711 to make it work correctly.
3712  Also, you have to define as exceptions dead keys over i and j, to remove
3713  the dot from them before inserting an accent mark.
3714  I will change this when the time comes, but so far I haven't had time.
3715 \end_layout
3716
3717 \begin_layout Standard
3718 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3719  double backslash.
3720  Also, quotes and 
3721 \begin_inset Flex Code
3722 status collapsed
3723
3724 \begin_layout Plain Layout
3725 #
3726 \end_layout
3727
3728 \end_inset
3729
3730  have different meaning.
3731  
3732 \begin_inset Flex Code
3733 status collapsed
3734
3735 \begin_layout Plain Layout
3736 #
3737 \end_layout
3738
3739 \end_inset
3740
3741  marks comments, quotes start and end LaTeX-style commands.
3742  To enter quote, you'll need to use 
3743 \begin_inset Flex Code
3744 status collapsed
3745
3746 \begin_layout Plain Layout
3747
3748 \backslash
3749 "
3750 \end_layout
3751
3752 \end_inset
3753
3754 , to enter 
3755 \begin_inset Flex Code
3756 status collapsed
3757
3758 \begin_layout Plain Layout
3759 #
3760 \end_layout
3761
3762 \end_inset
3763
3764 , use 
3765 \begin_inset Flex Code
3766 status collapsed
3767
3768 \begin_layout Plain Layout
3769
3770 \backslash
3771 #
3772 \end_layout
3773
3774 \end_inset
3775
3776 .
3777 \end_layout
3778
3779 \begin_layout Standard
3780 If you make a keyboard description file that works for your language, please
3781  mail it to me, so I can include it in the next keymap distribution.
3782 \end_layout
3783
3784 \begin_layout Standard
3785 More keywords will be supported in keymap configuration file in future,
3786  like
3787 \end_layout
3788
3789 \begin_layout Itemize
3790 \begin_inset Flex Code
3791 status collapsed
3792
3793 \begin_layout Plain Layout
3794
3795 \backslash
3796 kinclude filename
3797 \end_layout
3798
3799 \end_inset
3800
3801
3802 \emph on
3803
3804 \begin_inset space \hfill{}
3805 \end_inset
3806
3807
3808 \begin_inset Flex Code
3809 status collapsed
3810
3811 \begin_layout Plain Layout
3812 include
3813 \end_layout
3814
3815 \end_inset
3816
3817  another file
3818 \end_layout
3819
3820 \begin_layout Itemize
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825
3826 \backslash
3827 kprog program
3828 \end_layout
3829
3830 \end_inset
3831
3832
3833 \emph on
3834
3835 \begin_inset space \hfill{}
3836 \end_inset
3837
3838
3839 \begin_inset Flex Code
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843 define
3844 \end_layout
3845
3846 \end_inset
3847
3848  an external keymap translation program 
3849 \end_layout
3850
3851 \begin_layout Standard
3852 Also, it should look into 
3853 \begin_inset Flex Code
3854 status collapsed
3855
3856 \begin_layout Plain Layout
3857 lyxrc
3858 \end_layout
3859
3860 \end_inset
3861
3862  file for defaults, too (for example, a 
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867
3868 \backslash
3869 kinclude
3870 \end_layout
3871
3872 \end_inset
3873
3874  option to include default keyboard).
3875 \end_layout
3876
3877 \end_inset
3878
3879
3880 \end_layout
3881
3882 \begin_layout Section
3883 International Keymap Stuff
3884 \begin_inset CommandInset label
3885 LatexCommand label
3886 name "sec:International-Keymap-Stuff"
3887
3888 \end_inset
3889
3890
3891 \end_layout
3892
3893 \begin_layout Standard
3894 \begin_inset Note Note
3895 status open
3896
3897 \begin_layout Plain Layout
3898 In doing the revisions on this document in March 2008, I did not look over
3899  this stuff, as I do not understand it.
3900  It would be good if someone else could do so.
3901  (RH)
3902 \end_layout
3903
3904 \end_inset
3905
3906
3907 \end_layout
3908
3909 \begin_layout Standard
3910 The next two sections describe the 
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915
3916 \shape up
3917 .kmap
3918 \end_layout
3919
3920 \end_inset
3921
3922  and 
3923 \begin_inset Flex Code
3924 status collapsed
3925
3926 \begin_layout Plain Layout
3927
3928 \shape up
3929 .cdef
3930 \end_layout
3931
3932 \end_inset
3933
3934  file syntax in detail.
3935  These sections should help you design your own key map if the ones provided
3936  do not meet your needs.
3937 \end_layout
3938
3939 \begin_layout Subsection
3940 The .kmap File
3941 \end_layout
3942
3943 \begin_layout Standard
3944
3945 \shape up
3946 .
3947 \begin_inset Flex Code
3948 status collapsed
3949
3950 \begin_layout Plain Layout
3951 kmap
3952 \end_layout
3953
3954 \end_inset
3955
3956  file maps keystrokes to characters or strings.
3957  As the name suggests, it sets a keyboard mapping.
3958  The 
3959 \begin_inset Flex Code
3960 status collapsed
3961
3962 \begin_layout Plain Layout
3963 .kmap
3964 \end_layout
3965
3966 \end_inset
3967
3968
3969 \shape default
3970  file keywords 
3971 \shape up
3972
3973 \begin_inset Flex Code
3974 status collapsed
3975
3976 \begin_layout Plain Layout
3977
3978 \shape up
3979 kmap
3980 \end_layout
3981
3982 \end_inset
3983
3984
3985 \shape default
3986 ,
3987 \shape up
3988  
3989 \shape default
3990
3991 \begin_inset Flex Code
3992 status collapsed
3993
3994 \begin_layout Plain Layout
3995
3996 \shape up
3997 kmod
3998 \end_layout
3999
4000 \end_inset
4001
4002 ,
4003 \shape up
4004  
4005 \shape default
4006
4007 \begin_inset Flex Code
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011
4012 \shape up
4013 kxmod
4014 \end_layout
4015
4016 \end_inset
4017
4018 , and 
4019 \begin_inset Flex Code
4020 status collapsed
4021
4022 \begin_layout Plain Layout
4023
4024 \shape up
4025 kcomb
4026 \end_layout
4027
4028 \end_inset
4029
4030  are described in this section.
4031 \end_layout
4032
4033 \begin_layout Labeling
4034 \labelwidthstring 00.00.0000
4035 \begin_inset Flex Code
4036 status collapsed
4037
4038 \begin_layout Plain Layout
4039
4040 \shape up
4041 kmap
4042 \end_layout
4043
4044 \end_inset
4045
4046  Map a character to a string
4047 \end_layout
4048
4049 \begin_layout LyX-Code
4050
4051 \backslash
4052 kmap 
4053 \family roman
4054 \emph on
4055 char
4056 \family default
4057 \emph default
4058  
4059 \family roman
4060 \emph on
4061 string
4062 \end_layout
4063
4064 \begin_layout Standard
4065 This will ma
4066 \family roman
4067 p
4068 \family default
4069  
4070 \family roman
4071 \emph on
4072 char
4073 \family default
4074 \emph default
4075  
4076 \family roman
4077 to
4078 \family default
4079  
4080 \family roman
4081 \emph on
4082 string
4083 \emph default
4084 .
4085  Note that in
4086 \family default
4087  
4088 \family roman
4089 \emph on
4090 string
4091 \emph default
4092 ,
4093 \family default
4094  
4095 \family roman
4096 \shape up
4097 the double-quote (")
4098 \family default
4099 \shape default
4100  
4101 \family roman
4102 and
4103 \family default
4104  
4105 \family roman
4106 \shape up
4107 the backslash (
4108 \backslash
4109 )
4110 \family default
4111 \shape default
4112  
4113 \family roman
4114 must be escaped with a preceding backslash (
4115 \shape up
4116
4117 \backslash
4118
4119 \shape default
4120 )
4121 \family default
4122 .
4123 \end_layout
4124
4125 \begin_layout Standard
4126 An example of a 
4127 \begin_inset Flex MenuItem
4128 status collapsed
4129
4130 \begin_layout Plain Layout
4131
4132 \shape up
4133 kmap
4134 \end_layout
4135
4136 \end_inset
4137
4138  statement to cause the symbol 
4139 \begin_inset Flex MenuItem
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143
4144 \shape up
4145 /
4146 \end_layout
4147
4148 \end_inset
4149
4150  to be output for the keystroke 
4151 \begin_inset Flex MenuItem
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155
4156 \shape up
4157 &
4158 \end_layout
4159
4160 \end_inset
4161
4162  is:
4163 \end_layout
4164
4165 \begin_layout LyX-Code
4166
4167 \backslash
4168 kmap & /
4169 \end_layout
4170
4171 \begin_layout Labeling
4172 \labelwidthstring 00.00.0000
4173 \begin_inset Flex Code
4174 status collapsed
4175
4176 \begin_layout Plain Layout
4177
4178 \shape up
4179 kmod
4180 \end_layout
4181
4182 \end_inset
4183
4184  Specify an accent character
4185 \end_layout
4186
4187 \begin_layout LyX-Code
4188
4189 \backslash
4190 kmod 
4191 \family roman
4192 \emph on
4193 char accent allowed
4194 \end_layout
4195
4196 \begin_layout Standard
4197 This will make the cha
4198 \family roman
4199 racter
4200 \family default
4201  
4202 \family roman
4203 \emph on
4204 char
4205 \family default
4206 \emph default
4207  
4208 \family roman
4209 \shape up
4210 \emph on
4211 be an accent
4212 \family default
4213 \shape default
4214 \emph default
4215  
4216 \family roman
4217 \shape up
4218 on the
4219 \family default
4220 \shape default
4221  
4222 \family roman
4223 \shape up
4224 \emph on
4225 allowed
4226 \family default
4227 \shape default
4228 \emph default
4229  
4230 \family roman
4231 \shape up
4232 cha
4233 \family default
4234 racter(s).
4235  This is the dead key
4236 \begin_inset Foot
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240 The term 
4241 \family roman
4242 \emph on
4243 dead key
4244 \family default
4245 \emph default
4246  refers to a key that does not produce a character by itself, but when followed
4247  with another key, produces the desired accent character.
4248  For example, a German characte
4249 \family roman
4250 r with an umlaut like
4251 \family default
4252  
4253 \family roman
4254 \emph on
4255 ä
4256 \family default
4257 \emph default
4258  
4259 \family roman
4260 can be produced in this manner.
4261 \end_layout
4262
4263 \end_inset
4264
4265  mechanism.
4266  
4267 \end_layout
4268
4269 \begin_layout Standard
4270 If you 
4271 \family roman
4272 hit
4273 \family default
4274  
4275 \family roman
4276 \emph on
4277 char
4278 \family default
4279 \emph default
4280  
4281 \family roman
4282 and then another key not in
4283 \family default
4284  
4285 \family roman
4286 \emph on
4287 allowed
4288 \emph default
4289 , you will get a
4290 \family default
4291  
4292 \family roman
4293 \emph on
4294 char
4295 \family default
4296 \emph default
4297  
4298 \family roman
4299 followed by the other, not allowed key, as output.
4300
4301 \family default
4302  Note that a 
4303 \begin_inset Flex MenuItem
4304 status collapsed
4305
4306 \begin_layout Plain Layout
4307
4308 \shape up
4309 Backspace
4310 \end_layout
4311
4312 \end_inset
4313
4314  cancels a dead key, so if 
4315 \family roman
4316 you hit
4317 \family default
4318  
4319 \family roman
4320 \emph on
4321 char
4322 \family default
4323 \emph default
4324  
4325 \begin_inset Flex MenuItem
4326 status collapsed
4327
4328 \begin_layout Plain Layout
4329
4330 \shape up
4331 \emph on
4332 Backspace
4333 \end_layout
4334
4335 \end_inset
4336
4337 , the cursor will not go one position backwards but will instead cancel
4338  the effect t
4339 \family roman
4340 hat
4341 \family default
4342  
4343 \family roman
4344 \shape up
4345 \emph on
4346 char
4347 \family default
4348 \shape default
4349 \emph default
4350  
4351 \family roman
4352 \shape up
4353 might have had on the next keystroke.
4354  
4355 \end_layout
4356
4357 \begin_layout Standard
4358 The following example specifies that the character ' is to be an acute accent,
4359  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4360 \end_layout
4361
4362 \begin_layout LyX-Code
4363
4364 \backslash
4365 kmod ' acute aeiouAEIOU
4366 \end_layout
4367
4368 \begin_layout Labeling
4369 \labelwidthstring 00.00.0000
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374 kxmod
4375 \end_layout
4376
4377 \end_inset
4378
4379  Specify an exception to the accent character
4380 \end_layout
4381
4382 \begin_layout LyX-Code
4383
4384 \backslash
4385 kxmod  
4386 \family roman
4387 \emph on
4388 accent char result
4389 \end_layout
4390
4391 \begin_layout Standard
4392 This defines an exce
4393 \family roman
4394 ption for
4395 \family default
4396  
4397 \family roman
4398 \emph on
4399 accent
4400 \family default
4401 \emph default
4402  
4403 \family roman
4404 on
4405 \family default
4406  
4407 \family roman
4408 \emph on
4409 char
4410 \emph default
4411 .
4412  T
4413 \shape up
4414 he
4415 \family default
4416 \shape default
4417  
4418 \family roman
4419 \shape up
4420 \emph on
4421 accent
4422 \family default
4423 \shape default
4424 \emph default
4425  
4426 \family roman
4427 \shape up
4428 must
4429 \family default
4430 \shape default
4431  
4432 \shape up
4433 have been assigned a keystroke with a previous
4434 \shape default
4435  
4436 \begin_inset Flex Code
4437 status collapsed
4438
4439 \begin_layout Plain Layout
4440
4441 \shape up
4442
4443 \backslash
4444 kmo
4445 \shape default
4446 d
4447 \end_layout
4448
4449 \end_inset
4450
4451  declar
4452 \family roman
4453 ation and
4454 \family default
4455  
4456 \family roman
4457 \emph on
4458 char
4459 \family default
4460 \emph default
4461  
4462 \family roman
4463 must not belong in the
4464 \family default
4465  
4466 \family roman
4467 \emph on
4468 allowed
4469 \family default
4470 \emph default
4471  
4472 \family roman
4473 set of
4474 \family default
4475  
4476 \family roman
4477 \emph on
4478 accent
4479 \emph default
4480 .
4481  When
4482 \family default
4483  
4484 \family roman
4485 \shape up
4486 you enter the
4487 \family default
4488 \shape default
4489  
4490 \family roman
4491 \shape up
4492 \emph on
4493 accent char
4494 \family default
4495 \shape default
4496 \emph default
4497  
4498 \family roman
4499 \shape up
4500 sequence,
4501 \family default
4502 \shape default
4503  
4504 \family roman
4505 \shape up
4506 \emph on
4507 result
4508 \emph default
4509  is produced.
4510  If such a declaration does not exist in
4511 \family default
4512 \shape default
4513  
4514 \shape up
4515 the
4516 \shape default
4517  
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522
4523 \shape up
4524 .kmap
4525 \end_layout
4526
4527 \end_inset
4528
4529  file and yo
4530 \family roman
4531 u enter
4532 \family default
4533  
4534 \family roman
4535 \emph on
4536 accent char
4537 \emph default
4538 , you get
4539 \family default
4540  
4541 \family roman
4542 \emph on
4543 accent_key char
4544 \emph default
4545  where
4546 \family default
4547  
4548 \family roman
4549 \emph on
4550 accent_key
4551 \emph default
4552  is the first arg
4553 \family default
4554 ument of the 
4555 \begin_inset Flex Code
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559
4560 \shape up
4561
4562 \backslash
4563 kmod
4564 \end_layout
4565
4566 \end_inset
4567
4568  declaration.
4569  
4570 \end_layout
4571
4572 \begin_layout Standard
4573 The following command produces causes äi to be produced when you enter acute-i
4574  ('i):
4575 \end_layout
4576
4577 \begin_layout LyX-Code
4578
4579 \backslash
4580 kxmod acute i "
4581 \backslash
4582
4583 \backslash
4584 '{
4585 \backslash
4586
4587 \backslash
4588 i}"
4589 \end_layout
4590
4591 \begin_layout Labeling
4592 \labelwidthstring 00.00.0000
4593 \begin_inset Flex Code
4594 status collapsed
4595
4596 \begin_layout Plain Layout
4597 kcomb
4598 \end_layout
4599
4600 \end_inset
4601
4602  Combine two accent characters
4603 \end_layout
4604
4605 \begin_layout LyX-Code
4606
4607 \backslash
4608 kcomb 
4609 \family roman
4610 \emph on
4611 accent1 accent2 allowed
4612 \end_layout
4613
4614 \begin_layout Standard
4615 This one is getting pretty esoteric.
4616  It allows you to combine the effect 
4617 \family roman
4618 of
4619 \family default
4620  
4621 \family roman
4622 \emph on
4623 accent1
4624 \family default
4625 \emph default
4626  
4627 \family roman
4628 and
4629 \family default
4630  
4631 \family roman
4632 \emph on
4633 accent2
4634 \family default
4635 \emph default
4636  
4637 \family roman
4638 (in that order!) on
4639 \family default
4640  
4641 \family roman
4642 \emph on
4643 allowed
4644 \family default
4645 \emph default
4646  
4647 \family roman
4648 chars.
4649  The keystrokes for
4650 \family default
4651  
4652 \family roman
4653 \emph on
4654 accent1
4655 \family default
4656 \emph default
4657  
4658 \family roman
4659 and
4660 \family default
4661  
4662 \family roman
4663 \emph on
4664 accent2
4665 \family default
4666 \emph default
4667  
4668 \family roman
4669 must have be
4670 \family default
4671 en set with a 
4672 \begin_inset Flex Code
4673 status collapsed
4674
4675 \begin_layout Plain Layout
4676
4677 \shape up
4678
4679 \backslash
4680 kmod
4681 \end_layout
4682
4683 \end_inset
4684
4685  command at 
4686 \family roman
4687 a
4688 \family default
4689  
4690 \family roman
4691 \emph on
4692 previous
4693 \family default
4694 \emph default
4695  
4696 \family roman
4697 point in the
4698 \family default
4699  file.
4700  
4701 \end_layout
4702
4703 \begin_layout Standard
4704 Consider this example from the 
4705 \begin_inset Flex Code
4706 status collapsed
4707
4708 \begin_layout Plain Layout
4709
4710 \shape up
4711 greek.kmap
4712 \end_layout
4713
4714 \end_inset
4715
4716  file:
4717 \end_layout
4718
4719 \begin_layout LyX-Code
4720
4721 \backslash
4722 kmod ; acute aeioyvhAEIOYVH 
4723 \backslash
4724 kmod : umlaut iyIY 
4725 \backslash
4726 kcomb acute umlaut iyIY
4727 \end_layout
4728
4729 \begin_layout Standard
4730 This allows you to press 
4731 \begin_inset Flex MenuItem
4732 status collapsed
4733
4734 \begin_layout Plain Layout
4735
4736 \shape up
4737 ;:i
4738 \end_layout
4739
4740 \end_inset
4741
4742  and get the effect of 
4743 \begin_inset Flex Code
4744 status collapsed
4745
4746 \begin_layout Plain Layout
4747
4748 \shape up
4749
4750 \backslash
4751 '{
4752 \backslash
4753 "{i}}
4754 \end_layout
4755
4756 \end_inset
4757
4758 .
4759  
4760 \family roman
4761 \shape up
4762 A backspace
4763 \family default
4764 \shape default
4765  in this case cancels the last dead key, so if you press 
4766 \begin_inset Flex MenuItem
4767 status collapsed
4768
4769 \begin_layout Plain Layout
4770
4771 \shape up
4772 ;: Backspace i
4773 \end_layout
4774
4775 \end_inset
4776
4777  you get 
4778 \begin_inset Flex Code
4779 status collapsed
4780
4781 \begin_layout Plain Layout
4782
4783 \shape up
4784
4785 \backslash
4786 '{i}
4787 \end_layout
4788
4789 \end_inset
4790
4791 .
4792 \end_layout
4793
4794 \begin_layout Subsection
4795 The .cdef File
4796 \end_layout
4797
4798 \begin_layout Standard
4799 After the 
4800 \begin_inset Flex Code
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \shape up
4806 .kmap
4807 \end_layout
4808
4809 \end_inset
4810
4811  mapping is performed, a 
4812 \begin_inset Flex Code
4813 status collapsed
4814
4815 \begin_layout Plain Layout
4816
4817 \shape up
4818 .cde
4819 \shape default
4820 f
4821 \end_layout
4822
4823 \end_inset
4824
4825  file maps the strings that the symbols generate to characters in the current
4826  font.
4827  The LyX distribution currently includes at least the 
4828 \begin_inset Flex Code
4829 status collapsed
4830
4831 \begin_layout Plain Layout
4832
4833 \shape up
4834 iso8859-1.cdef
4835 \end_layout
4836
4837 \end_inset
4838
4839  and 
4840 \begin_inset Flex Code
4841 status collapsed
4842
4843 \begin_layout Plain Layout
4844
4845 \shape up
4846 iso8859-2.cdef
4847 \end_layout
4848
4849 \end_inset
4850
4851  files.
4852 \end_layout
4853
4854 \begin_layout Standard
4855 In general the 
4856 \begin_inset Flex Code
4857 status collapsed
4858
4859 \begin_layout Plain Layout
4860
4861 \shape up
4862 .cdef
4863 \end_layout
4864
4865 \end_inset
4866
4867  file is a sequence of declarations of the form
4868 \end_layout
4869
4870 \begin_layout LyX-Code
4871
4872 \family roman
4873 \emph on
4874 char_index_in_set
4875 \family default
4876 \emph default
4877  
4878 \family roman
4879 \emph on
4880  string
4881 \end_layout
4882
4883 \begin_layout Standard
4884 For example, in order to map 
4885 \begin_inset Flex MenuItem
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889
4890 \shape up
4891
4892 \backslash
4893 '{e}
4894 \end_layout
4895
4896 \end_inset
4897
4898  to the corresponding character in the iso-8859-1 set (233), the following
4899  declaration is used
4900 \end_layout
4901
4902 \begin_layout LyX-Code
4903 233 "
4904 \backslash
4905
4906 \backslash
4907 '{e}"
4908 \end_layout
4909
4910 \begin_layout Standard
4911 with 
4912 \begin_inset Flex Code
4913 status collapsed
4914
4915 \begin_layout Plain Layout
4916
4917 \backslash
4918
4919 \end_layout
4920
4921 \end_inset
4922
4923  and 
4924 \begin_inset Flex Code
4925 status collapsed
4926
4927 \begin_layout Plain Layout
4928 "
4929 \end_layout
4930
4931 \end_inset
4932
4933  being escap
4934 \family roman
4935 ed in
4936 \family default
4937  
4938 \family roman
4939 \emph on
4940 string
4941 \emph default
4942 .
4943  Note that
4944 \family default
4945  the same character can apply to more than one string.
4946  In the 
4947 \begin_inset Flex Code
4948 status collapsed
4949
4950 \begin_layout Plain Layout
4951 i
4952 \shape up
4953 so-8859-7.cdef
4954 \end_layout
4955
4956 \end_inset
4957
4958  file you have
4959 \end_layout
4960
4961 \begin_layout LyX-Code
4962 192 "
4963 \backslash
4964
4965 \backslash
4966 '{
4967 \backslash
4968
4969 \backslash
4970
4971 \backslash
4972 "{i}}"
4973 \begin_inset Newline newline
4974 \end_inset
4975
4976 192 "
4977 \backslash
4978
4979 \backslash
4980
4981 \backslash
4982 "{
4983 \backslash
4984
4985 \backslash
4986 '{i}}"
4987 \end_layout
4988
4989 \begin_layout Standard
4990 If LyX cannot find a mapping for the string produced by the keystroke or
4991  a deadkey sequence, it will check if it looks like an accented char and
4992  try to draw an accent over the character on screen.
4993 \end_layout
4994
4995 \begin_layout Subsection
4996 Dead Keys
4997 \end_layout
4998
4999 \begin_layout Standard
5000 There is a second way to add support for international characters through
5001  so-called dead-keys.
5002  A dead-key works in combination with a letter to produce an accented character.
5003  Here, we'll explain how to create a really simple dead-key to illustrate
5004  how they work.
5005 \end_layout
5006
5007 \begin_layout Standard
5008 Suppose you happen to need the circumflex character, 
5009 \begin_inset Quotes eld
5010 \end_inset
5011
5012  ̂
5013 \begin_inset Quotes erd
5014 \end_inset
5015
5016 .
5017  You could bind the 
5018 \begin_inset Flex MenuItem
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022 ^
5023 \end_layout
5024
5025 \end_inset
5026
5027 -key [a.k.a.
5028 \begin_inset space ~
5029 \end_inset
5030
5031
5032 \begin_inset Flex MenuItem
5033 status collapsed
5034
5035 \begin_layout Plain Layout
5036 Shift-6
5037 \end_layout
5038
5039 \end_inset
5040
5041 ] to the LyX command 
5042 \begin_inset Flex Code
5043 status collapsed
5044
5045 \begin_layout Plain Layout
5046 accent-circumflex
5047 \end_layout
5048
5049 \end_inset
5050
5051  in your 
5052 \begin_inset Flex Code
5053 status collapsed
5054
5055 \begin_layout Plain Layout
5056 lyxrc
5057 \end_layout
5058
5059 \end_inset
5060
5061  file.
5062  Now, whenever you type the 
5063 \begin_inset Flex MenuItem
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 ^
5068 \end_layout
5069
5070 \end_inset
5071
5072 -key followed by a letter, that letter will have a circumflex accent on
5073  it.
5074  For example, the sequence 
5075 \begin_inset Quotes eld
5076 \end_inset
5077
5078
5079 \begin_inset Flex MenuItem
5080 status collapsed
5081
5082 \begin_layout Plain Layout
5083 ^e
5084 \end_layout
5085
5086 \end_inset
5087
5088
5089 \begin_inset Quotes erd
5090 \end_inset
5091
5092  produces the letter: 
5093 \begin_inset Quotes eld
5094 \end_inset
5095
5096 ê
5097 \begin_inset Quotes erd
5098 \end_inset
5099
5100 .
5101  If you tried to type 
5102 \begin_inset Quotes eld
5103 \end_inset
5104
5105
5106 \begin_inset Flex MenuItem
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110 ^t
5111 \end_layout
5112
5113 \end_inset
5114
5115
5116 \begin_inset Quotes erd
5117 \end_inset
5118
5119 , however, LyX will complain with a beep, since a 
5120 \begin_inset Quotes eld
5121 \end_inset
5122
5123
5124 \begin_inset Flex MenuItem
5125 status collapsed
5126
5127 \begin_layout Plain Layout
5128 t
5129 \end_layout
5130
5131 \end_inset
5132
5133
5134 \begin_inset Quotes erd
5135 \end_inset
5136
5137  never takes a circumflex accent.
5138  Hitting 
5139 \begin_inset Flex MenuItem
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143 Space
5144 \end_layout
5145
5146 \end_inset
5147
5148  after a dead-key produces the bare-accent.
5149  Please note this last point! If you bind a key to a dead-key, you'll need
5150  to rebind the character on that key to yet another key.
5151  Binding the 
5152 \begin_inset Flex MenuItem
5153 status collapsed
5154
5155 \begin_layout Plain Layout
5156 ,-key
5157 \end_layout
5158
5159 \end_inset
5160
5161  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5162 \end_layout
5163
5164 \begin_layout Standard
5165 One common way to bind dead-keys is to use 
5166 \begin_inset Flex MenuItem
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170 Meta-
5171 \end_layout
5172
5173 \end_inset
5174
5175
5176 \begin_inset Flex MenuItem
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180 Ctrl-
5181 \end_layout
5182
5183 \end_inset
5184
5185 , and 
5186 \begin_inset Flex MenuItem
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 Shift-
5191 \end_layout
5192
5193 \end_inset
5194
5195  in combination with an accent, like 
5196 \begin_inset Quotes eld
5197 \end_inset
5198
5199
5200 \begin_inset Flex MenuItem
5201 status collapsed
5202
5203 \begin_layout Plain Layout
5204 ~
5205 \end_layout
5206
5207 \end_inset
5208
5209
5210 \begin_inset Quotes erd
5211 \end_inset
5212
5213  or 
5214 \begin_inset Quotes eld
5215 \end_inset
5216
5217
5218 \begin_inset Flex MenuItem
5219 status collapsed
5220
5221 \begin_layout Plain Layout
5222 ,
5223 \end_layout
5224
5225 \end_inset
5226
5227
5228 \begin_inset Quotes erd
5229 \end_inset
5230
5231  or 
5232 \begin_inset Quotes eld
5233 \end_inset
5234
5235
5236 \begin_inset Flex MenuItem
5237 status collapsed
5238
5239 \begin_layout Plain Layout
5240 ^
5241 \end_layout
5242
5243 \end_inset
5244
5245
5246 \begin_inset Quotes erd
5247 \end_inset
5248
5249 .
5250  Another way involves using 
5251 \begin_inset Flex Code
5252 status collapsed
5253
5254 \begin_layout Plain Layout
5255 xmodmap
5256 \end_layout
5257
5258 \end_inset
5259
5260  and 
5261 \begin_inset Flex Code
5262 status collapsed
5263
5264 \begin_layout Plain Layout
5265 xkeycaps
5266 \end_layout
5267
5268 \end_inset
5269
5270  to set up the special 
5271 \begin_inset Flex Code
5272 status collapsed
5273
5274 \begin_layout Plain Layout
5275 Mode_Switch
5276 \end_layout
5277
5278 \end_inset
5279
5280  key.
5281  The 
5282 \begin_inset Flex Code
5283 status collapsed
5284
5285 \begin_layout Plain Layout
5286 Mode_Switch
5287 \end_layout
5288
5289 \end_inset
5290
5291  acts in some ways just like 
5292 \begin_inset Flex MenuItem
5293 status collapsed
5294
5295 \begin_layout Plain Layout
5296 Shift
5297 \end_layout
5298
5299 \end_inset
5300
5301  and permits you to bind keys to accented characters.
5302  You can also turn keys into dead-keys by binding them to something like
5303  
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308 usldead_cedilla
5309 \end_layout
5310
5311 \end_inset
5312
5313  and then binding this symbolic key to the corresponding LyX command.
5314 \begin_inset Foot
5315 status collapsed
5316
5317 \begin_layout Plain Layout
5318 Note from 
5319 \noun on
5320 John Weiss
5321 \noun default
5322 : This is exactly what I do in my 
5323 \begin_inset Flex Code
5324 status collapsed
5325
5326 \begin_layout Plain Layout
5327 ~/.lyx/lyxrc
5328 \end_layout
5329
5330 \end_inset
5331
5332  and my 
5333 \begin_inset Flex Code
5334 status collapsed
5335
5336 \begin_layout Plain Layout
5337 ~/.xmodmap
5338 \end_layout
5339
5340 \end_inset
5341
5342  files.
5343  I have my 
5344 \begin_inset Flex MenuItem
5345 status collapsed
5346
5347 \begin_layout Plain Layout
5348 Scroll
5349 \begin_inset space ~
5350 \end_inset
5351
5352 Lock
5353 \end_layout
5354
5355 \end_inset
5356
5357  key set up as 
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 Mode_Shift
5363 \end_layout
5364
5365 \end_inset
5366
5367  and a bunch of these 
5368 \begin_inset Quotes eld
5369 \end_inset
5370
5371
5372 \begin_inset Flex Code
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 usldead_*
5377 \end_layout
5378
5379 \end_inset
5380
5381
5382 \begin_inset Quotes erd
5383 \end_inset
5384
5385  symbolic keys bound such things as 
5386 \begin_inset Flex MenuItem
5387 status collapsed
5388
5389 \begin_layout Plain Layout
5390 Scroll
5391 \begin_inset space ~
5392 \end_inset
5393
5394 Lock-^
5395 \end_layout
5396
5397 \end_inset
5398
5399  and 
5400 \begin_inset Flex MenuItem
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 Scroll
5405 \begin_inset space ~
5406 \end_inset
5407
5408 Lock-~
5409 \end_layout
5410
5411 \end_inset
5412
5413 .
5414  This is how I produce my accented characters.
5415 \end_layout
5416
5417 \end_inset
5418
5419  You can make just about anything into the 
5420 \begin_inset Flex Code
5421 status collapsed
5422
5423 \begin_layout Plain Layout
5424 Mode_Switch
5425 \end_layout
5426
5427 \end_inset
5428
5429  key: One of the 
5430 \begin_inset Flex MenuItem
5431 status collapsed
5432
5433 \begin_layout Plain Layout
5434 Ctrl-
5435 \end_layout
5436
5437 \end_inset
5438
5439  keys, a spare function key, etc.
5440  As for the LyX commands that produce accents, check the entry for 
5441 \begin_inset Flex Code
5442 status collapsed
5443
5444 \begin_layout Plain Layout
5445 accent-acute
5446 \end_layout
5447
5448 \end_inset
5449
5450  in the 
5451 \emph on
5452 Reference Manual
5453 \emph default
5454 .
5455  You'll find the complete list there.
5456 \end_layout
5457
5458 \begin_layout Subsection
5459 Saving your Language Configuration
5460 \end_layout
5461
5462 \begin_layout Standard
5463 You can edit your preferences so that your desired language environment
5464  is automatically configured when LyX starts up, via the 
5465 \begin_inset Flex MenuItem
5466 status collapsed
5467
5468 \begin_layout Plain Layout
5469 Edit\SpecialChar \menuseparator
5470 Preferences
5471 \end_layout
5472
5473 \end_inset
5474
5475  dialog.
5476 \end_layout
5477
5478 \begin_layout Chapter
5479 Installing New Document Classes, Layouts, and Templates
5480 \begin_inset CommandInset label
5481 LatexCommand label
5482 name "cha:Installing-New-Document"
5483
5484 \end_inset
5485
5486
5487 \begin_inset Argument 1
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 Installing New Document Classes
5492 \end_layout
5493
5494 \end_inset
5495
5496
5497 \end_layout
5498
5499 \begin_layout Standard
5500 In this chapter, we describe the procedures for creating and installing
5501  new LyX layout and template files, as well as offer a refresher on correctly
5502  installing new LaTeX document classes.
5503  
5504 \end_layout
5505
5506 \begin_layout Standard
5507 First, let us a say a few words about how one ought to think about the relation
5508  between LyX and LaTeX.
5509  The thing to understand is that, in a certain sense, LyX doesn't know anything
5510  about LaTeX.
5511  Indeed, from LyX's point of view, LaTeX is just one of several 
5512 \begin_inset Quotes eld
5513 \end_inset
5514
5515 backend formats
5516 \begin_inset Quotes erd
5517 \end_inset
5518
5519  in which it is capable of producing output.
5520  Other such formats are DocBook, plaintext, and XHTML.
5521  LaTeX is, of course, a particularly important format, but very little of
5522  the information LyX has about LaTeX is actually contained in the program
5523  itself.
5524 \begin_inset Foot
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528 Some commands are sufficiently complex that they are 
5529 \begin_inset Quotes eld
5530 \end_inset
5531
5532 hardcoded
5533 \begin_inset Quotes erd
5534 \end_inset
5535
5536  into LyX.
5537  But the developers generally regard this as a Bad Thing.
5538 \end_layout
5539
5540 \end_inset
5541
5542  Rather, that information, even for the standard classes like 
5543 \begin_inset Flex Code
5544 status collapsed
5545
5546 \begin_layout Plain Layout
5547 article.cls
5548 \end_layout
5549
5550 \end_inset
5551
5552 , is contained in `layout files'.
5553  Similarly, LyX itself does not know much about DocBook or XHTML.
5554  What it knows is contained in layout files.
5555 \end_layout
5556
5557 \begin_layout Standard
5558 You can think of the layout file for a given document class as a translation
5559  manual between LyX constructs---paragraphs with their corresponding styles,
5560  certain sorts of insets, etc---and the corresponding LaTeX, DocBook, or
5561  XHTML constructs.
5562  Almost everything LyX knows about 
5563 \begin_inset Flex Code
5564 status collapsed
5565
5566 \begin_layout Plain Layout
5567 article.cls
5568 \end_layout
5569
5570 \end_inset
5571
5572 , for example, is contained in the file 
5573 \begin_inset Flex Code
5574 status collapsed
5575
5576 \begin_layout Plain Layout
5577 article.layout
5578 \end_layout
5579
5580 \end_inset
5581
5582  and in various other files it includes.
5583  For this reason, anyone intending to write layout files should plan to
5584  study the existing files.
5585  A good place to start is with 
5586 \begin_inset Flex Code
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 stdsections.inc
5591 \end_layout
5592
5593 \end_inset
5594
5595 , which is included in 
5596 \begin_inset Flex Code
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 article.layout
5601 \end_layout
5602
5603 \end_inset
5604
5605
5606 \begin_inset Flex Code
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610 book.layout
5611 \end_layout
5612
5613 \end_inset
5614
5615 , and many of the other layout files for document classes.
5616  This file is where sections and the like are defined: 
5617 \begin_inset Flex Code
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 stdsections.inc
5622 \end_layout
5623
5624 \end_inset
5625
5626  tells LyX how paragraphs that are marked with the Section, Subsection,
5627  etc, styles can be translated into corresponding LaTeX, DocBook, and XHTML
5628  commands and tags.
5629  The 
5630 \begin_inset Flex Code
5631 status collapsed
5632
5633 \begin_layout Plain Layout
5634 article.layout
5635 \end_layout
5636
5637 \end_inset
5638
5639  file basically just includes several of these 
5640 \begin_inset Flex Code
5641 status collapsed
5642
5643 \begin_layout Plain Layout
5644 std*.inc
5645 \end_layout
5646
5647 \end_inset
5648
5649  files.
5650 \end_layout
5651
5652 \begin_layout Standard
5653 Defining the LyX--LaTeX correspondence is not the only thing layout files
5654  do, though.
5655  Their other job is to define how the LyX constructs themselves will appear
5656  on-screen.
5657  The fact that layout files have these two jobs is often a source of confusion,
5658  because they are completely separate.
5659  Telling LyX how to translate a certain paragraph style into LaTeX does
5660  not tell LyX how to display it; conversely, telling LyX how to display
5661  a certain paragraph style does not tell LyX how to translate it into LaTeX
5662  (let alone tell LaTeX how to display it).
5663  So, in general, when you define a new LyX construct, you must always do
5664  two quite separate things: (i)
5665 \begin_inset space ~
5666 \end_inset
5667
5668 tell LyX how to translate it into LaTeX and (ii)
5669 \begin_inset space ~
5670 \end_inset
5671
5672 tell LyX how to display it.
5673 \end_layout
5674
5675 \begin_layout Standard
5676 Much the same is true, of course, as regards LyX's other backend formats,
5677  though XHTML is in some ways different, because in that case LyX 
5678 \emph on
5679 is
5680 \emph default
5681  able, to some extent, to use information about how it should display a
5682  paragraph on the screen to output information (in the form of CSS) about
5683  how the paragraph should be displayed in a browser.
5684  Even in this case, however, the distinction between what LyX does internally
5685  and how things are rendered externally remains in force, and the two can
5686  be controlled separately.
5687  See 
5688 \begin_inset CommandInset ref
5689 LatexCommand ref
5690 reference "sec:Tags-for-XHTML"
5691
5692 \end_inset
5693
5694  for the details.
5695 \end_layout
5696
5697 \begin_layout Section
5698 Installing new LaTeX files
5699 \end_layout
5700
5701 \begin_layout Standard
5702 Some installations may not include a LaTeX package or class file that you
5703  would like to use within LyX.
5704  For example, you might need FoilTeX, a package for preparing slides for
5705  overhead projectors.
5706  Modern LaTeX distributions like TeXLive (2008 or newer) or MiKTeX provide
5707  a user interface for installing such packages.
5708  For example, with MiKTeX, you start the program 
5709 \begin_inset Quotes eld
5710 \end_inset
5711
5712 Package
5713 \begin_inset space ~
5714 \end_inset
5715
5716 Manager
5717 \begin_inset Quotes erd
5718 \end_inset
5719
5720  to get a list of available packages.
5721  To install one of them, right click on it or use the corresponding toolbar
5722  button.
5723 \end_layout
5724
5725 \begin_layout Standard
5726 If your LaTeX distribution does not provide such a `package manager', or
5727  if the package is not available from your distribution, then follow these
5728  steps to install it manually:
5729 \end_layout
5730
5731 \begin_layout Enumerate
5732 Get the package from 
5733 \begin_inset CommandInset href
5734 LatexCommand href
5735 name "CTAN"
5736 target "http://www.ctan.org/"
5737
5738 \end_inset
5739
5740  or wherever.
5741 \end_layout
5742
5743 \begin_layout Enumerate
5744 If the package contains a file with the ending 
5745 \begin_inset Quotes eld
5746 \end_inset
5747
5748
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 .ins
5754 \end_layout
5755
5756 \end_inset
5757
5758
5759 \begin_inset Quotes erd
5760 \end_inset
5761
5762  (is the case for FoilTeX) then open a console, change to the folder of
5763  this file and execute the command 
5764 \begin_inset Flex Code
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 latex foiltex.ins
5769 \end_layout
5770
5771 \end_inset
5772
5773 .
5774  You have now unpacked the package and have all files to install it.
5775  Most LaTeX-packages are not packed and you can skip this step.
5776 \end_layout
5777
5778 \begin_layout Enumerate
5779 Now you need to decide if the package should be available for all users
5780  or only for you.
5781 \end_layout
5782
5783 \begin_deeper
5784 \begin_layout Enumerate
5785 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
5786  for all users on your system, then install it in your `local' TeX tree,
5787  otherwise install it in your own `user' TeX tree.
5788  Where these trees should be created, if they do not already exist, depends
5789  on your system.
5790  To find this out, look in the file 
5791 \begin_inset Flex Code
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 texmf.cnf
5796 \end_layout
5797
5798 \end_inset
5799
5800 .
5801 \begin_inset Foot
5802 status collapsed
5803
5804 \begin_layout Plain Layout
5805 This is usually in the directory 
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 $TEXMF/web2c
5811 \end_layout
5812
5813 \end_inset
5814
5815 , though you can execute the command 
5816 \begin_inset Flex Code
5817 status collapsed
5818
5819 \begin_layout Plain Layout
5820 kpsewhich texmf.cnf
5821 \end_layout
5822
5823 \end_inset
5824
5825  to locate it.
5826 \end_layout
5827
5828 \end_inset
5829
5830  The location of the `local' TeX tree is defined by the 
5831 \begin_inset Flex Code
5832 status collapsed
5833
5834 \begin_layout Plain Layout
5835 TEXMFLOCAL
5836 \end_layout
5837
5838 \end_inset
5839
5840  variable; this is usually somewhere like 
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 /usr/local/share/texmf
5846 \end_layout
5847
5848 \end_inset
5849
5850 .
5851  The location of the `user' TeX tree is defined by 
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 TEXMFHOME
5857 \end_layout
5858
5859 \end_inset
5860
5861  and is commonly 
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 $HOME/texmf
5867 \end_layout
5868
5869 \end_inset
5870
5871 .
5872  (If these variables are not predefined, you have to define them.) You'll
5873  probably need root permissions to create or modify the `local' tree, but
5874  not for your `user' tree.
5875 \begin_inset Newline newline
5876 \end_inset
5877
5878 In general, it is recommended to install in the user tree because your user
5879  will not be modified or even overwritten when you upgrade your system.
5880  It will typically also be backed up together with everything else when
5881  you backup your home directory (which, of course, you do on a regular basis).
5882 \end_layout
5883
5884 \begin_layout Enumerate
5885 On Windows, if you want the new package to be available for all users on
5886  your system, change to the folder where LaTeX is installed and then change
5887  to the subfolder 
5888 \begin_inset Flex Code
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892 ~
5893 \backslash
5894 tex
5895 \backslash
5896 latex
5897 \end_layout
5898
5899 \end_inset
5900
5901 .
5902  (For MiKTeX, this would be by default the folder 
5903 \begin_inset Flex Code
5904 status collapsed
5905
5906 \begin_layout Plain Layout
5907 ~:
5908 \backslash
5909 Programs
5910 \backslash
5911 MiKTeX
5912 \backslash
5913 tex
5914 \backslash
5915 latex
5916 \end_layout
5917
5918 \end_inset
5919
5920 .)
5921 \begin_inset Foot
5922 status open
5923
5924 \begin_layout Plain Layout
5925 Note that this will be the correct path only on English installations.
5926  On a German one, it would be 
5927 \begin_inset Flex Code
5928 status collapsed
5929
5930 \begin_layout Plain Layout
5931 ~:
5932 \backslash
5933 Programme
5934 \backslash
5935 MiKTeX
5936 \backslash
5937 tex
5938 \backslash
5939 latex
5940 \end_layout
5941
5942 \end_inset
5943
5944 , and similarly for other languages.
5945 \end_layout
5946
5947 \end_inset
5948
5949  Create there a new folder 
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954 foiltex
5955 \end_layout
5956
5957 \end_inset
5958
5959  and copy all files of the package into it.
5960  
5961 \begin_inset Newline newline
5962 \end_inset
5963
5964 If the package should only available for you or you don't have admin permissions
5965 , do the same, but in the local LaTeX folder.
5966  E.
5967 \begin_inset space \thinspace{}
5968 \end_inset
5969
5970 g., for MiKTeX
5971 \begin_inset space ~
5972 \end_inset
5973
5974 2.8 under Windows XP, this would be the folder:
5975 \begin_inset Newline newline
5976 \end_inset
5977
5978
5979 \family sans
5980
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 ~:
5986 \backslash
5987 Documents and Settings
5988 \backslash
5989 <username>
5990 \backslash
5991 Application Data
5992 \backslash
5993
5994 \end_layout
5995
5996 \end_inset
5997
5998
5999 \begin_inset Newline newline
6000 \end_inset
6001
6002
6003 \family default
6004
6005 \begin_inset Phantom HPhantom
6006 status open
6007
6008 \begin_layout Plain Layout
6009
6010 \family sans
6011 ~:
6012 \backslash
6013
6014 \end_layout
6015
6016 \end_inset
6017
6018
6019 \begin_inset Flex Code
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 MiKTeX
6024 \backslash
6025 2.8
6026 \backslash
6027 tex
6028 \backslash
6029 latex
6030 \end_layout
6031
6032 \end_inset
6033
6034
6035 \begin_inset Newline newline
6036 \end_inset
6037
6038 On Vista, it would be:
6039 \begin_inset Newline newline
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 ~:
6048 \backslash
6049 Users
6050 \backslash
6051 <username>
6052 \backslash
6053 AppData
6054 \backslash
6055 Roaming
6056 \backslash
6057 2.8
6058 \backslash
6059 MiKTeX
6060 \backslash
6061 tex
6062 \backslash
6063 latex
6064 \end_layout
6065
6066 \end_inset
6067
6068
6069 \end_layout
6070
6071 \end_deeper
6072 \begin_layout Enumerate
6073 Now one only need to tell LaTeX that there are new files.
6074  This depends on the used LaTeX-Distribution:
6075 \end_layout
6076
6077 \begin_deeper
6078 \begin_layout Enumerate
6079 For TeXLive execute the command 
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 texhash
6085 \end_layout
6086
6087 \end_inset
6088
6089  from a console.
6090  If you installed the package for all users, then you will probably need
6091  to have root permissions for that.
6092 \end_layout
6093
6094 \begin_layout Enumerate
6095 For MiKTeX, if you have installed the package for all users, start the program
6096  
6097 \begin_inset Quotes eld
6098 \end_inset
6099
6100 Settings
6101 \begin_inset space ~
6102 \end_inset
6103
6104 (Admin)
6105 \begin_inset Quotes erd
6106 \end_inset
6107
6108  and press the button marked 
6109 \begin_inset Quotes eld
6110 \end_inset
6111
6112 Refresh FNDB
6113 \begin_inset Quotes erd
6114 \end_inset
6115
6116 .
6117  Otherwise start the program 
6118 \begin_inset Quotes eld
6119 \end_inset
6120
6121 Settings
6122 \begin_inset Quotes erd
6123 \end_inset
6124
6125  and do the same.
6126 \end_layout
6127
6128 \end_deeper
6129 \begin_layout Enumerate
6130 Finally, you need to tell LyX that there are new packages available.
6131  So, in LyX, use the menu 
6132 \begin_inset Flex MenuItem
6133 status collapsed
6134
6135 \begin_layout Plain Layout
6136 Tools
6137 \family sans
6138 \SpecialChar \menuseparator
6139 Reconfigure
6140 \end_layout
6141
6142 \end_inset
6143
6144  and then restart LyX.
6145 \end_layout
6146
6147 \begin_layout Standard
6148 Now the package is installed.
6149  In our example, the document class 
6150 \begin_inset Flex Code
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 Slides
6155 \begin_inset space ~
6156 \end_inset
6157
6158 (FoilTe
6159 \begin_inset ERT
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163
6164 {}
6165 \end_layout
6166
6167 \end_inset
6168
6169 x)
6170 \end_layout
6171
6172 \end_inset
6173
6174  will now be available under 
6175 \begin_inset Flex MenuItem
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179 Document\SpecialChar \menuseparator
6180 Settings\SpecialChar \menuseparator
6181 Document Class
6182 \end_layout
6183
6184 \end_inset
6185
6186 .
6187  
6188 \end_layout
6189
6190 \begin_layout Standard
6191 If you would like to use a LaTeX document class that is not even listed
6192  in the menu 
6193 \begin_inset Flex MenuItem
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 Document\SpecialChar \menuseparator
6198 Settings\SpecialChar \menuseparator
6199 Document Class
6200 \end_layout
6201
6202 \end_inset
6203
6204 , then you need to create a `layout' file for it.
6205  That is the topic of the next section.
6206 \end_layout
6207
6208 \begin_layout Section
6209 Types of layout files
6210 \end_layout
6211
6212 \begin_layout Standard
6213 This section describes the various sorts of LyX files that contain layout
6214  information.
6215  These files describe various paragraph and character styles, determining
6216  how LyX should display them and how they should be translated into LaTeX,
6217  DocBook, XHTML, or whatever output format is being used.
6218  
6219 \end_layout
6220
6221 \begin_layout Standard
6222 We shall try to provide a thorough description of the process of writing
6223  layout files here.
6224  However, there are so many different types of documents supported even
6225  by just LaTeX that we can't hope to cover every different possibility or
6226  problem you might encounter.
6227  The LyX users' list is frequented by people with lots of experience with
6228  layout design who are willing to share what they've learned, so please
6229  feel free to ask questions there.
6230 \end_layout
6231
6232 \begin_layout Standard
6233 As you prepare to write a new layout, it is extremely helpful to look at
6234  the layouts distributed with LyX.
6235  If you write a LyX layout for a LaTeX document class that might also be
6236  used by others, or write a module that might be useful to others, then
6237  you should consider posting your layout to the 
6238 \begin_inset CommandInset href
6239 LatexCommand href
6240 name "layout section on the LyX wiki"
6241 target "http://wiki.lyx.org/Layouts/Layouts"
6242
6243 \end_inset
6244
6245  or even to the LyX developers' list, so that it might be included in LyX
6246  itself.
6247 \begin_inset Foot
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 Note that LyX is licensed under the General Public License, so any material
6252  that is contributed to LyX must be similarly licensed.
6253 \end_layout
6254
6255 \end_inset
6256
6257
6258 \end_layout
6259
6260 \begin_layout Subsection
6261 Layout modules
6262 \begin_inset CommandInset label
6263 LatexCommand label
6264 name "sub:Layout-modules"
6265
6266 \end_inset
6267
6268
6269 \end_layout
6270
6271 \begin_layout Standard
6272 We have spoken to this point about `layout files'.
6273  But there are different sorts of files that contain layout information.
6274  Layout files, strictly so called, have the 
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 .layout
6280 \end_layout
6281
6282 \end_inset
6283
6284  extension and provide LyX with information about document classes.
6285  As of LyX 1.6, however, layout information can also be contained in layout
6286  
6287 \emph on
6288 modules
6289 \emph default
6290 , which have the 
6291 \begin_inset Flex Code
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 .module
6296 \end_layout
6297
6298 \end_inset
6299
6300  extension.
6301  Modules are to LaTeX packages much as layouts are to LaTeX classes, and
6302  some modules—such as the 
6303 \begin_inset Flex Code
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307 endnotes
6308 \end_layout
6309
6310 \end_inset
6311
6312  module—specifically provide support for one package.
6313  In a sense, layout modules are similar to included
6314 \begin_inset Foot
6315 status collapsed
6316
6317 \begin_layout Plain Layout
6318 These can have any extension, but by convention have the 
6319 \begin_inset Flex Code
6320 status collapsed
6321
6322 \begin_layout Plain Layout
6323 .inc
6324 \end_layout
6325
6326 \end_inset
6327
6328  extension.
6329 \end_layout
6330
6331 \end_inset
6332
6333  files—files like 
6334 \begin_inset Flex Code
6335 status collapsed
6336
6337 \begin_layout Plain Layout
6338 stdsections.inc
6339 \end_layout
6340
6341 \end_inset
6342
6343 —in that modules are not specific to a given document class but may be used
6344  with many different classes.
6345  The difference is that using an included file with 
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 article.cls
6351 \end_layout
6352
6353 \end_inset
6354
6355  requires editing that file.
6356  Modules, by contrast, are selected in the 
6357 \begin_inset Flex MenuItem
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361 Document\SpecialChar \menuseparator
6362 Settings
6363 \end_layout
6364
6365 \end_inset
6366
6367  dialog.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 Building modules is the easiest way to get started with layout editing,
6372  since it can be as simple as adding a single new paragraph style or flex
6373  inset.
6374  But modules may, in principle, contain anything a layout file can contain.
6375 \end_layout
6376
6377 \begin_layout Standard
6378 After creating a new module and copying it to the 
6379 \begin_inset Flex Code
6380 status collapsed
6381
6382 \begin_layout Plain Layout
6383 layouts/
6384 \end_layout
6385
6386 \end_inset
6387
6388  folder, you will need to reconfigure and then restart LyX for the module
6389  to appear in the menu.
6390  However, changes you make to the module will be seen immediately, if you
6391  open 
6392 \begin_inset Flex MenuItem
6393 status collapsed
6394
6395 \begin_layout Plain Layout
6396 Document\SpecialChar \menuseparator
6397 Settings
6398 \end_layout
6399
6400 \end_inset
6401
6402 , highlight something, and then hit 
6403 \begin_inset Quotes eld
6404 \end_inset
6405
6406 OK
6407 \begin_inset Quotes erd
6408 \end_inset
6409
6410 .
6411  
6412 \emph on
6413 It is strongly recommended that you save your work before doing this
6414 \emph default
6415 .
6416  In fact, 
6417 \emph on
6418 it is strongly recommended that you not attempt to edit modules while simultaneo
6419 usly working on actual documents
6420 \emph default
6421 .
6422  Though of course the developers strive to keep LyX stable in such situations,
6423  syntax errors and the like in your module file could cause strange behavior.
6424 \end_layout
6425
6426 \begin_layout Subsubsection
6427 Local Layout
6428 \end_layout
6429
6430 \begin_layout Standard
6431 Modules are to LyX as packages are to LaTeX.
6432  Sometimes, however, you find yourself wanting a specific inset or character
6433  style just for one document and writing a module that will also be available
6434  to other documents makes little sense.
6435  What you need is LyX's 
6436 \begin_inset Quotes eld
6437 \end_inset
6438
6439 Local Layout
6440 \begin_inset Quotes erd
6441 \end_inset
6442
6443 .
6444 \end_layout
6445
6446 \begin_layout Standard
6447 You will find it under 
6448 \family sans
6449 Document\SpecialChar \menuseparator
6450 Settings\SpecialChar \menuseparator
6451 Local Layout
6452 \family default
6453 .
6454  The large text box allows you to enter anything that you might enter in
6455  a layout file or module.
6456  You can think of a document's local layout, in fact, as a module that belongs
6457  just to it.
6458  So, in particular, you must enter a 
6459 \begin_inset Flex Code
6460 status collapsed
6461
6462 \begin_layout Plain Layout
6463 Format
6464 \end_layout
6465
6466 \end_inset
6467
6468  tag.
6469  Any format is acceptable, but one would normally use the format current
6470  at the time.
6471  (In LyX 2.0, the current layout format is 35.) You should be aware that local
6472  layout is not supported by versions of LyX prior to 1.6, so you should not
6473  use it if you want to be able to export your document to LyX 1.5 or earlier
6474  (without, that is, losing the local layout information).
6475  If you wish to be able to export to 1.6---local layout is supported in 1.6,
6476  though there is no UI for it---then you should use format 11 and, of course,
6477  use only layout constructs that were available in LyX 1.6.
6478 \end_layout
6479
6480 \begin_layout Standard
6481 When you have entered something in the 
6482 \begin_inset Flex Code
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 Local Layout
6487 \end_layout
6488
6489 \end_inset
6490
6491  pane, LyX will enable the 
6492 \begin_inset Quotes eld
6493 \end_inset
6494
6495 Validate
6496 \begin_inset Quotes erd
6497 \end_inset
6498
6499  button at the bottom.
6500  Clicking this button will cause LyX to determine whether what you have
6501  entered is valid layout information for the chosen format.
6502  LyX will report the result but, unfortunately, will not tell you what errors
6503  there might have been.
6504  These will be written to the terminal, however, if LyX is started from
6505  a terminal.
6506  You will not be permitted to save your local layout until you have entered
6507  something valid.
6508 \end_layout
6509
6510 \begin_layout Standard
6511 The warnings at the end of the previous section apply here, too.
6512  Do not play with local layout while you are actually working, especially
6513  if you have not saved your document.
6514  That said, using local layout with a test document can be a very convenient
6515  way to try out layout ideas, or even to start developing a module.
6516 \end_layout
6517
6518 \begin_layout Subsection
6519 Layout for 
6520 \begin_inset Flex MenuItem
6521 status collapsed
6522
6523 \begin_layout Plain Layout
6524 .sty
6525 \end_layout
6526
6527 \end_inset
6528
6529  files
6530 \end_layout
6531
6532 \begin_layout Standard
6533 There are two situations you are likely to encounter when wanting to support
6534  a new LaTeX document class, involving style (
6535 \begin_inset Flex Code
6536 status collapsed
6537
6538 \begin_layout Plain Layout
6539 .sty
6540 \end_layout
6541
6542 \end_inset
6543
6544 ) files and LaTeX2e class (
6545 \begin_inset Flex Code
6546 status collapsed
6547
6548 \begin_layout Plain Layout
6549 .cls
6550 \end_layout
6551
6552 \end_inset
6553
6554 ) .
6555  Supporting a style file is usually fairly easy.
6556  Supporting a new class file is a bit harder.
6557  We'll discuss the former in this section and the latter in the next.
6558  Similar remarks apply, of course, if you want to support a new DocBook
6559  DTD.
6560 \end_layout
6561
6562 \begin_layout Standard
6563 The easier case is the one in which your new document class is provided
6564  as a style file that is to be used in conjunction with an already supported
6565  document class.
6566  For the sake of the example, we'll assume that the style file is called
6567  
6568 \begin_inset Flex MenuItem
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 myclass.sty
6573 \end_layout
6574
6575 \end_inset
6576
6577  and that it is meant to be used with 
6578 \begin_inset Flex MenuItem
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 report.cls
6583 \end_layout
6584
6585 \end_inset
6586
6587 , which is a standard class.
6588  
6589 \end_layout
6590
6591 \begin_layout Standard
6592 Start by copying the existing class's layout file into your local directory:
6593 \begin_inset Foot
6594 status collapsed
6595
6596 \begin_layout Plain Layout
6597 Of course, which directory is your local directory will vary by platform,
6598  and LyX allows you to specify your local directory on startup, too, using
6599  the 
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 -userdir
6605 \end_layout
6606
6607 \end_inset
6608
6609  option.
6610 \end_layout
6611
6612 \end_inset
6613
6614
6615 \end_layout
6616
6617 \begin_layout LyX-Code
6618 cp report.layout ~/.lyx/layouts/myclass.layout
6619 \end_layout
6620
6621 \begin_layout Standard
6622 Then edit 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 myclass.layout
6628 \end_layout
6629
6630 \end_inset
6631
6632  and change the line: 
6633 \end_layout
6634
6635 \begin_layout LyX-Code
6636
6637 \backslash
6638 DeclareLaTeXClass{report}
6639 \end_layout
6640
6641 \begin_layout Standard
6642 to read
6643 \end_layout
6644
6645 \begin_layout LyX-Code
6646
6647 \backslash
6648 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6649 \end_layout
6650
6651 \begin_layout Standard
6652 Then add:
6653 \end_layout
6654
6655 \begin_layout LyX-Code
6656 Preamble 
6657 \begin_inset Newline newline
6658 \end_inset
6659
6660     
6661 \backslash
6662 usepackage{myclass}
6663 \begin_inset Newline newline
6664 \end_inset
6665
6666 EndPreamble
6667 \end_layout
6668
6669 \begin_layout Standard
6670 near the top of the file.
6671 \end_layout
6672
6673 \begin_layout Standard
6674 Start LyX and select 
6675 \begin_inset Flex MenuItem
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679 Tools\SpecialChar \menuseparator
6680 Reconfigure
6681 \end_layout
6682
6683 \end_inset
6684
6685 .
6686  Then restart LyX and try creating a new document.
6687  You should see "
6688 \begin_inset Flex MenuItem
6689 status collapsed
6690
6691 \begin_layout Plain Layout
6692 report (myclass)
6693 \end_layout
6694
6695 \end_inset
6696
6697 " as a document class option in the 
6698 \begin_inset Flex MenuItem
6699 status collapsed
6700
6701 \begin_layout Plain Layout
6702 Document\SpecialChar \menuseparator
6703 Settings
6704 \end_layout
6705
6706 \end_inset
6707
6708  dialog.
6709  It is likely that some of the sectioning commands and such in your new
6710  class will work differently from how they worked in the base class—
6711 \begin_inset Flex Code
6712 status collapsed
6713
6714 \begin_layout Plain Layout
6715 report
6716 \end_layout
6717
6718 \end_inset
6719
6720  in this example—so you can fiddle around with the settings for the different
6721  sections if you wish.
6722  The layout information for sections is contained in 
6723 \begin_inset Flex Code
6724 status collapsed
6725
6726 \begin_layout Plain Layout
6727 stdsections.inc
6728 \end_layout
6729
6730 \end_inset
6731
6732 , but you do not need to copy and change this file.
6733  Instead, you can simply add your changes to your layout file, after the
6734  line 
6735 \begin_inset Flex Code
6736 status collapsed
6737
6738 \begin_layout Plain Layout
6739 Input stdclass.inc
6740 \end_layout
6741
6742 \end_inset
6743
6744 , which itself includes 
6745 \begin_inset Flex Code
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749 stdsections.inc
6750 \end_layout
6751
6752 \end_inset
6753
6754 .
6755  For example, you might add these lines:
6756 \end_layout
6757
6758 \begin_layout LyX-Code
6759 Style Chapter
6760 \end_layout
6761
6762 \begin_layout LyX-Code
6763     Font
6764 \end_layout
6765
6766 \begin_layout LyX-Code
6767         Family Sans
6768 \end_layout
6769
6770 \begin_layout LyX-Code
6771     EndFont
6772 \end_layout
6773
6774 \begin_layout LyX-Code
6775 End
6776 \end_layout
6777
6778 \begin_layout Standard
6779 to change the font for chapter headings to sans-serif.
6780  This will override (or, in this case, add to) the existing declaration
6781  for the Chapter style.
6782  
6783 \end_layout
6784
6785 \begin_layout Standard
6786 Your new package may also provide commands or environments not present in
6787  the base class.
6788  In this case, you will want to add these to the layout file.
6789  See 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 \begin_inset Newline newline
12297 \end_inset
12298
12299 This 
12300 \emph on
12301 must
12302 \emph default
12303  be given if 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308 LabelType
12309 \end_layout
12310
12311 \end_inset
12312
12313  is 
12314 \begin_inset Flex Code
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 Counter
12319 \end_layout
12320
12321 \end_inset
12322
12323 .
12324  In that case, the counter will be stepped each time the style appears.
12325 \begin_inset Newline newline
12326 \end_inset
12327
12328 This 
12329 \emph on
12330 may
12331 \emph default
12332  also be given if 
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 LabelType
12338 \end_layout
12339
12340 \end_inset
12341
12342  is 
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347 Enumerate
12348 \end_layout
12349
12350 \end_inset
12351
12352 , though this case is a bit complicated.
12353  Suppose you declare 
12354 \begin_inset Quotes eld
12355 \end_inset
12356
12357
12358 \begin_inset Flex Code
12359 status collapsed
12360
12361 \begin_layout Plain Layout
12362 LabelCounter myenum
12363 \end_layout
12364
12365 \end_inset
12366
12367
12368 \begin_inset Quotes erd
12369 \end_inset
12370
12371 .
12372  Then the actual counters used are 
12373 \begin_inset Flex Code
12374 status collapsed
12375
12376 \begin_layout Plain Layout
12377 myenumi
12378 \end_layout
12379
12380 \end_inset
12381
12382
12383 \begin_inset Flex Code
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387 myenumii
12388 \end_layout
12389
12390 \end_inset
12391
12392
12393 \begin_inset Flex Code
12394 status collapsed
12395
12396 \begin_layout Plain Layout
12397 myenumiii
12398 \end_layout
12399
12400 \end_inset
12401
12402  and 
12403 \begin_inset Flex Code
12404 status collapsed
12405
12406 \begin_layout Plain Layout
12407 myenumiv
12408 \end_layout
12409
12410 \end_inset
12411
12412 , much as in LaTeX.
12413  These counters must all be declared separately.
12414 \begin_inset Newline newline
12415 \end_inset
12416
12417 See Section 
12418 \begin_inset CommandInset ref
12419 LatexCommand ref
12420 reference "sub:Counters"
12421
12422 \end_inset
12423
12424  for details on counters.
12425 \end_layout
12426
12427 \begin_layout Description
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 LabelFont
12433 \end_layout
12434
12435 \end_inset
12436
12437  The font used for the label.
12438  See section
12439 \begin_inset space ~
12440 \end_inset
12441
12442
12443 \begin_inset CommandInset ref
12444 LatexCommand ref
12445 reference "sub:Font-description"
12446
12447 \end_inset
12448
12449 .
12450 \end_layout
12451
12452 \begin_layout Description
12453 \begin_inset Flex Code
12454 status collapsed
12455
12456 \begin_layout Plain Layout
12457 LabelIndent
12458 \end_layout
12459
12460 \end_inset
12461
12462  [
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 string=""
12468 \end_layout
12469
12470 \end_inset
12471
12472 ] Text that indicates how far a label should be indented.
12473 \end_layout
12474
12475 \begin_layout Description
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 Labelsep
12481 \end_layout
12482
12483 \end_inset
12484
12485  [
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490 string=""
12491 \end_layout
12492
12493 \end_inset
12494
12495 ] Text that indicates the amount of horizontal space between the label and
12496  the text body.
12497  Only used for labels that are not above the text body.
12498 \end_layout
12499
12500 \begin_layout Description
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 LabelString
12506 \end_layout
12507
12508 \end_inset
12509
12510  [
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 string=""
12516 \end_layout
12517
12518 \end_inset
12519
12520 ] The string used for a label with a 
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 Static
12526 \end_layout
12527
12528 \end_inset
12529
12530  
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 LabelType
12536 \end_layout
12537
12538 \end_inset
12539
12540 .
12541  When 
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546 LabelCounter
12547 \end_layout
12548
12549 \end_inset
12550
12551  is set, this string can be contain the special formatting commands described
12552  in Section 
12553 \begin_inset CommandInset ref
12554 LatexCommand ref
12555 reference "sub:Counters"
12556
12557 \end_inset
12558
12559 .
12560 \end_layout
12561
12562 \begin_layout Description
12563 \begin_inset Flex Code
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 LabelStringAppendix
12568 \end_layout
12569
12570 \end_inset
12571
12572  [
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 string=""
12578 \end_layout
12579
12580 \end_inset
12581
12582 ] This is used inside the appendix instead of
12583 \begin_inset Newline newline
12584 \end_inset
12585
12586
12587 \begin_inset Flex Code
12588 status collapsed
12589
12590 \begin_layout Plain Layout
12591 LabelString
12592 \end_layout
12593
12594 \end_inset
12595
12596 .
12597  Note that every 
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 LabelString
12603 \end_layout
12604
12605 \end_inset
12606
12607  statement resets
12608 \begin_inset Newline newline
12609 \end_inset
12610
12611
12612 \begin_inset Flex Code
12613 status collapsed
12614
12615 \begin_layout Plain Layout
12616 LabelStringAppendix
12617 \end_layout
12618
12619 \end_inset
12620
12621  too.
12622 \end_layout
12623
12624 \begin_layout Description
12625 \begin_inset Flex Code
12626 status collapsed
12627
12628 \begin_layout Plain Layout
12629 LabelTag
12630 \end_layout
12631
12632 \end_inset
12633
12634  [FIXME] (Used only with XML-type formats.)
12635 \end_layout
12636
12637 \begin_layout Description
12638 \begin_inset Flex Code
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642 LabelType
12643 \end_layout
12644
12645 \end_inset
12646
12647  [
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652
12653 \emph on
12654 No_Label
12655 \emph default
12656 , Manual, Static, Top_Environment,
12657 \begin_inset Newline newline
12658 \end_inset
12659
12660 Centered_Top_Environment, Counter, Sensitive, Enumerate,
12661 \begin_inset Newline newline
12662 \end_inset
12663
12664 Itemize, Bibliography
12665 \end_layout
12666
12667 \end_inset
12668
12669 ]
12670 \end_layout
12671
12672 \begin_deeper
12673 \begin_layout Description
12674 \begin_inset Flex Code
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678 Manual
12679 \end_layout
12680
12681 \end_inset
12682
12683  means the label is the very first word (up to the first real blank).
12684  Use protected spaces if you want more than one word as the label.
12685  
12686 \end_layout
12687
12688 \begin_layout Description
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 Static
12694 \end_layout
12695
12696 \end_inset
12697
12698  means the label is simply what is declared as 
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703 LabelString
12704 \end_layout
12705
12706 \end_inset
12707
12708 .
12709  Note that this really is `static'.
12710 \end_layout
12711
12712 \begin_layout Description
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 Top_Environment
12718 \end_layout
12719
12720 \end_inset
12721
12722
12723 \begin_inset space ~
12724 \end_inset
12725
12726 and
12727 \begin_inset space ~
12728 \end_inset
12729
12730
12731 \begin_inset Flex Code
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735 Centered_Top_Environment
12736 \end_layout
12737
12738 \end_inset
12739
12740  are special cases of 
12741 \begin_inset Flex Code
12742 status collapsed
12743
12744 \begin_layout Plain Layout
12745 Static
12746 \end_layout
12747
12748 \end_inset
12749
12750 .
12751  The label will be printed above the paragraph, but only at the top of an
12752  environment or the top of a chain of paragraphs with this style.
12753  This might be used with the 
12754 \begin_inset Flex MenuItem
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758 Abstract
12759 \end_layout
12760
12761 \end_inset
12762
12763  style, for example.
12764 \end_layout
12765
12766 \begin_layout Description
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 Sensitive
12772 \end_layout
12773
12774 \end_inset
12775
12776  is a special case for the caption-labels 
12777 \begin_inset Quotes eld
12778 \end_inset
12779
12780 Figure
12781 \begin_inset Quotes erd
12782 \end_inset
12783
12784  and 
12785 \begin_inset Quotes eld
12786 \end_inset
12787
12788 Table
12789 \begin_inset Quotes erd
12790 \end_inset
12791
12792 .
12793 \begin_inset Newline newline
12794 \end_inset
12795
12796
12797 \begin_inset Flex Code
12798 status collapsed
12799
12800 \begin_layout Plain Layout
12801 Sensitive
12802 \end_layout
12803
12804 \end_inset
12805
12806  means the (hardcoded) label string depends on the kind of float: It is
12807  hardcoded to be `FloatType N', where N is the value of the counter associated
12808  with the float.
12809  For the case that a caption is inserted outside of a float 
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 LabelString
12815 \end_layout
12816
12817 \end_inset
12818
12819  should be set to e.
12820 \begin_inset space \thinspace{}
12821 \end_inset
12822
12823 g
12824 \begin_inset space \space{}
12825 \end_inset
12826
12827
12828 \begin_inset Quotes eld
12829 \end_inset
12830
12831 Senseless!
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835 .
12836 \end_layout
12837
12838 \begin_layout Description
12839 \begin_inset Flex Code
12840 status collapsed
12841
12842 \begin_layout Plain Layout
12843 Counter
12844 \end_layout
12845
12846 \end_inset
12847
12848  defines automatically numbered labels.
12849  The 
12850 \begin_inset Flex Code
12851 status collapsed
12852
12853 \begin_layout Plain Layout
12854 LabelString
12855 \end_layout
12856
12857 \end_inset
12858
12859  will be expanded to contain any counters: So the result will for example
12860  be 
12861 \begin_inset Quotes eld
12862 \end_inset
12863
12864
12865 \begin_inset Flex Code
12866 status collapsed
12867
12868 \begin_layout Plain Layout
12869 Section 
12870 \backslash
12871 thechapter.
12872 \backslash
12873 thesection
12874 \end_layout
12875
12876 \end_inset
12877
12878
12879 \begin_inset Quotes erd
12880 \end_inset
12881
12882 .
12883  See Section
12884 \begin_inset space ~
12885 \end_inset
12886
12887
12888 \begin_inset CommandInset ref
12889 LatexCommand ref
12890 reference "sub:Counters"
12891
12892 \end_inset
12893
12894  for more information on counters.
12895 \end_layout
12896
12897 \begin_layout Description
12898 \begin_inset Flex Code
12899 status collapsed
12900
12901 \begin_layout Plain Layout
12902 Enumerate
12903 \end_layout
12904
12905 \end_inset
12906
12907  produces the usual sort of enumeration labels.
12908  At present, it is hardcoded to use Arabic numerals, lowercase letters,
12909  small Roman numerals, and uppercase letters for the four possible depths.
12910 \end_layout
12911
12912 \begin_layout Description
12913 \begin_inset Flex Code
12914 status collapsed
12915
12916 \begin_layout Plain Layout
12917 Itemize
12918 \end_layout
12919
12920 \end_inset
12921
12922  produces various bullets at the different levels.
12923  It is also hardcoded.
12924 \end_layout
12925
12926 \begin_layout Description
12927 \begin_inset Flex Code
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931 Bibliography
12932 \end_layout
12933
12934 \end_inset
12935
12936  is used internally by LyX and should be used only with 
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 LatexType BibEnvironment
12942 \end_layout
12943
12944 \end_inset
12945
12946 .
12947 \end_layout
12948
12949 \end_deeper
12950 \begin_layout Description
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 LangPreamble
12956 \end_layout
12957
12958 \end_inset
12959
12960  Note that this will completely override any prior 
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 LangPreamble
12966 \end_layout
12967
12968 \end_inset
12969
12970  declaration for this style.
12971  Must end with 
12972 \begin_inset Quotes eld
12973 \end_inset
12974
12975
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 EndLangPreamble
12981 \end_layout
12982
12983 \end_inset
12984
12985
12986 \begin_inset Quotes erd
12987 \end_inset
12988
12989 .
12990  See section 
12991 \begin_inset CommandInset ref
12992 LatexCommand ref
12993 reference "sub:I18n"
12994
12995 \end_inset
12996
12997  for details on its use.
12998 \end_layout
12999
13000 \begin_layout Description
13001 \begin_inset Flex Code
13002 status collapsed
13003
13004 \begin_layout Plain Layout
13005 LatexName
13006 \end_layout
13007
13008 \end_inset
13009
13010  [
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 <name>
13016 \end_layout
13017
13018 \end_inset
13019
13020 ] The name of the corresponding LaTeX stuff.
13021  Either the environment or command name.
13022 \end_layout
13023
13024 \begin_layout Description
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 LatexParam
13030 \end_layout
13031
13032 \end_inset
13033
13034  [
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 <parameter>
13040 \end_layout
13041
13042 \end_inset
13043
13044 ] An optional parameter for the corresponding 
13045 \begin_inset Flex Code
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049 LatexName
13050 \end_layout
13051
13052 \end_inset
13053
13054  stuff.
13055  This parameter cannot be changed from within LyX
13056 \change_inserted -712698321 1355144804
13057  (use 
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062
13063 \change_inserted -712698321 1355144804
13064 Argument
13065 \end_layout
13066
13067 \end_inset
13068
13069  for customizable parameters)
13070 \change_unchanged
13071 .
13072
13073 \change_inserted -712698321 1355144804
13074  This will be output as is after all LaTeX 
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079
13080 \change_inserted -712698321 1355144658
13081 Arguments
13082 \change_unchanged
13083
13084 \end_layout
13085
13086 \end_inset
13087
13088 .
13089 \change_unchanged
13090
13091 \end_layout
13092
13093 \begin_layout Description
13094 \begin_inset Flex Code
13095 status collapsed
13096
13097 \begin_layout Plain Layout
13098 LatexType
13099 \end_layout
13100
13101 \end_inset
13102
13103  [
13104 \begin_inset Flex Code
13105 status collapsed
13106
13107 \begin_layout Plain Layout
13108
13109 \emph on
13110 Paragraph
13111 \emph default
13112 , Command, Environment, Item_Environment,
13113 \begin_inset Newline newline
13114 \end_inset
13115
13116 List_Environment, Bib_Environment
13117 \end_layout
13118
13119 \end_inset
13120
13121 ] How the style should be translated into LaTeX.
13122 \begin_inset Foot
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126 \begin_inset Flex Code
13127 status collapsed
13128
13129 \begin_layout Plain Layout
13130 LatexType
13131 \end_layout
13132
13133 \end_inset
13134
13135  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13136  Visit the SGML class files for specific examples.
13137 \end_layout
13138
13139 \end_inset
13140
13141
13142 \end_layout
13143
13144 \begin_deeper
13145 \begin_layout Description
13146 \begin_inset Flex Code
13147 status collapsed
13148
13149 \begin_layout Plain Layout
13150 Paragraph
13151 \end_layout
13152
13153 \end_inset
13154
13155  means nothing special.
13156 \end_layout
13157
13158 \begin_layout Description
13159 \begin_inset Flex Code
13160 status collapsed
13161
13162 \begin_layout Plain Layout
13163 Command
13164 \end_layout
13165
13166 \end_inset
13167
13168  means 
13169 \begin_inset Flex Code
13170 status collapsed
13171
13172 \begin_layout Plain Layout
13173
13174 \backslash
13175
13176 \emph on
13177 LatexName
13178 \emph default
13179 {\SpecialChar \ldots{}
13180 }
13181 \end_layout
13182
13183 \end_inset
13184
13185 .
13186 \end_layout
13187
13188 \begin_layout Description
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 Environment
13194 \end_layout
13195
13196 \end_inset
13197
13198  means 
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203
13204 \backslash
13205 begin{
13206 \emph on
13207 LatexName
13208 \emph default
13209 }\SpecialChar \ldots{}
13210
13211 \backslash
13212 end{
13213 \emph on
13214 LatexName
13215 \emph default
13216 }
13217 \end_layout
13218
13219 \end_inset
13220
13221 .
13222  
13223 \end_layout
13224
13225 \begin_layout Description
13226 \begin_inset Flex Code
13227 status collapsed
13228
13229 \begin_layout Plain Layout
13230 Item_Environment
13231 \end_layout
13232
13233 \end_inset
13234
13235  is the same as 
13236 \begin_inset Flex Code
13237 status collapsed
13238
13239 \begin_layout Plain Layout
13240 Environment
13241 \end_layout
13242
13243 \end_inset
13244
13245 , except that an 
13246 \begin_inset Flex Code
13247 status collapsed
13248
13249 \begin_layout Plain Layout
13250
13251 \backslash
13252 item
13253 \end_layout
13254
13255 \end_inset
13256
13257  is generated for each paragraph of this environment.
13258  
13259 \end_layout
13260
13261 \begin_layout Description
13262 \begin_inset Flex Code
13263 status collapsed
13264
13265 \begin_layout Plain Layout
13266 List_Environment
13267 \end_layout
13268
13269 \end_inset
13270
13271  is the same as 
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 Item_Environment
13277 \end_layout
13278
13279 \end_inset
13280
13281 , except that
13282 \begin_inset Newline newline
13283 \end_inset
13284
13285
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290 LabelWidthString
13291 \end_layout
13292
13293 \end_inset
13294
13295  is passed as an argument to the environment.
13296 \begin_inset Newline newline
13297 \end_inset
13298
13299
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304 LabelWidthString
13305 \end_layout
13306
13307 \end_inset
13308
13309  can be defined in the 
13310 \begin_inset Flex MenuItem
13311 status collapsed
13312
13313 \begin_layout Plain Layout
13314 Edit\SpecialChar \menuseparator
13315 Paragraph
13316 \begin_inset space ~
13317 \end_inset
13318
13319 settings
13320 \end_layout
13321
13322 \end_inset
13323
13324  dialog.
13325 \end_layout
13326
13327 \begin_layout Description
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 Bib_Environment
13333 \end_layout
13334
13335 \end_inset
13336
13337  is like 
13338 \begin_inset Flex Code
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342 Environment
13343 \end_layout
13344
13345 \end_inset
13346
13347  but adds additionally the necessary mandatory argument (the longest label)
13348  to the begin statement of the bibliography environment:
13349 \begin_inset Newline newline
13350 \end_inset
13351
13352
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357
13358 \backslash
13359 begin{thebibliography}{99}
13360 \end_layout
13361
13362 \end_inset
13363
13364  It is therefore only useful for bibliography environments.
13365  The default longest label 
13366 \begin_inset Quotes eld
13367 \end_inset
13368
13369 99
13370 \begin_inset Quotes erd
13371 \end_inset
13372
13373  can be changed by the user in the paragraph settings of a bibliography
13374  item.
13375 \end_layout
13376
13377 \begin_layout Standard
13378 Putting the last few things together, the LaTeX output will be either: 
13379 \end_layout
13380
13381 \begin_layout LyX-Code
13382
13383 \backslash
13384 LatexName[LatexParam]{\SpecialChar \ldots{}
13385 }
13386 \end_layout
13387
13388 \begin_layout Standard
13389 or: 
13390 \end_layout
13391
13392 \begin_layout LyX-Code
13393
13394 \backslash
13395 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
13396  
13397 \backslash
13398 end{LatexName}.
13399 \end_layout
13400
13401 \begin_layout Standard
13402 depending upon the LaTeX type.
13403 \end_layout
13404
13405 \end_deeper
13406 \begin_layout Description
13407
13408 \change_inserted -712698321 1354263086
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413
13414 \change_inserted -712698321 1353866852
13415 LeftDelim
13416 \end_layout
13417
13418 \end_inset
13419
13420  [
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425
13426 \change_inserted -712698321 1353866852
13427 string
13428 \end_layout
13429
13430 \end_inset
13431
13432 ] A string that is put at the beginning of the style content.
13433  A line break in the output can be indicated by 
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438
13439 \change_inserted -712698321 1354263086
13440 <br/>
13441 \end_layout
13442
13443 \end_inset
13444
13445 .
13446 \change_unchanged
13447
13448 \end_layout
13449
13450 \begin_layout Description
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 LeftMargin
13456 \end_layout
13457
13458 \end_inset
13459
13460  [
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 string=""
13466 \end_layout
13467
13468 \end_inset
13469
13470 ] If you put styles into environments, the different 
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 LeftMargin
13476 \end_layout
13477
13478 \end_inset
13479
13480  are not simply added, but added with a factor 
13481 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13482 \end_inset
13483
13484 .
13485  Note that this parameter is also used when 
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 Margin
13491 \end_layout
13492
13493 \end_inset
13494
13495  is defined as 
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 Manual
13501 \end_layout
13502
13503 \end_inset
13504
13505  or 
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 Dynamic
13511 \end_layout
13512
13513 \end_inset
13514
13515 .
13516  Then it is added to the manual or dynamic margin.
13517 \begin_inset Newline newline
13518 \end_inset
13519
13520 For example 
13521 \begin_inset Quotes eld
13522 \end_inset
13523
13524
13525 \begin_inset Flex Code
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529 MM
13530 \end_layout
13531
13532 \end_inset
13533
13534
13535 \begin_inset Quotes erd
13536 \end_inset
13537
13538  means that the paragraph is indented with the width of 
13539 \begin_inset Quotes eld
13540 \end_inset
13541
13542
13543 \begin_inset Flex Code
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547 MM
13548 \end_layout
13549
13550 \end_inset
13551
13552
13553 \begin_inset Quotes erd
13554 \end_inset
13555
13556  in the normal font.
13557  You can get a negative width by prefixing the string with 
13558 \begin_inset Quotes eld
13559 \end_inset
13560
13561
13562 \begin_inset Flex Code
13563 status collapsed
13564
13565 \begin_layout Plain Layout
13566 -
13567 \end_layout
13568
13569 \end_inset
13570
13571
13572 \begin_inset Quotes erd
13573 \end_inset
13574
13575 .
13576  This way was chosen so that the look is the same with each used screen
13577  font.
13578 \end_layout
13579
13580 \begin_layout Description
13581 \begin_inset Flex Code
13582 status collapsed
13583
13584 \begin_layout Plain Layout
13585 Margin
13586 \end_layout
13587
13588 \end_inset
13589
13590  [
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595
13596 \emph on
13597 Static
13598 \emph default
13599 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13600 \end_layout
13601
13602 \end_inset
13603
13604
13605 \begin_inset Newline newline
13606 \end_inset
13607
13608 The kind of margin that the style has on the left side.
13609 \end_layout
13610
13611 \begin_deeper
13612 \begin_layout Description
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617 Static
13618 \end_layout
13619
13620 \end_inset
13621
13622  just means a fixed margin.
13623 \end_layout
13624
13625 \begin_layout Description
13626 \begin_inset Flex Code
13627 status collapsed
13628
13629 \begin_layout Plain Layout
13630 Manual
13631 \end_layout
13632
13633 \end_inset
13634
13635  means that the left margin depends on the string entered in the 
13636 \begin_inset Flex MenuItem
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 Edit\SpecialChar \menuseparator
13641 Paragraph
13642 \begin_inset space ~
13643 \end_inset
13644
13645 Settings
13646 \end_layout
13647
13648 \end_inset
13649
13650  dialog.
13651  This is used to typeset nice lists without tabulators.
13652 \end_layout
13653
13654 \begin_layout Description
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659 Dynamic
13660 \end_layout
13661
13662 \end_inset
13663
13664  means that the margin depends on the size of the label.
13665  This is used for automatic enumerated headlines.
13666  It is obvious that the headline 
13667 \begin_inset Quotes eld
13668 \end_inset
13669
13670 5.4.3.2.1 Very long headline
13671 \begin_inset Quotes erd
13672 \end_inset
13673
13674  must have a wider left margin (as wide as 
13675 \begin_inset Quotes eld
13676 \end_inset
13677
13678 5.4.3.2.1
13679 \begin_inset Quotes erd
13680 \end_inset
13681
13682  plus the space) than 
13683 \begin_inset Quotes eld
13684 \end_inset
13685
13686 3.2 Very long headline
13687 \begin_inset Quotes erd
13688 \end_inset
13689
13690 , even if standard 
13691 \begin_inset Quotes eld
13692 \end_inset
13693
13694 word processors
13695 \begin_inset Quotes erd
13696 \end_inset
13697
13698  are not able to do this.
13699 \end_layout
13700
13701 \begin_layout Description
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 First_Dynamic
13707 \end_layout
13708
13709 \end_inset
13710
13711  is similar, but only the very first row of the paragraph is dynamic, while
13712  the others are static; this is used, for example, for descriptions.
13713 \end_layout
13714
13715 \begin_layout Description
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720 Right_Address_Box
13721 \end_layout
13722
13723 \end_inset
13724
13725  means the margin is chosen in a way that the longest row of this paragraph
13726  fits to the right margin.
13727  This is used to typeset an address on the right edge of the page.
13728 \end_layout
13729
13730 \end_deeper
13731 \begin_layout Description
13732 \begin_inset Flex Code
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736 NeedProtect
13737 \end_layout
13738
13739 \end_inset
13740
13741  [
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746
13747 \emph on
13748 0
13749 \end_layout
13750
13751 \end_inset
13752
13753 ,
13754 \begin_inset space \thinspace{}
13755 \end_inset
13756
13757
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762 1
13763 \end_layout
13764
13765 \end_inset
13766
13767 ] Whether fragile commands in this style should be 
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772
13773 \backslash
13774 protect
13775 \end_layout
13776
13777 \end_inset
13778
13779 'ed.
13780  (Note: This is 
13781 \emph on
13782 not
13783 \emph default
13784  whether this command should itself be protected.)
13785 \end_layout
13786
13787 \begin_layout Description
13788 \begin_inset Flex Code
13789 status collapsed
13790
13791 \begin_layout Plain Layout
13792 Newline
13793 \end_layout
13794
13795 \end_inset
13796
13797  [
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 0
13803 \end_layout
13804
13805 \end_inset
13806
13807 ,
13808 \begin_inset space \thinspace{}
13809 \end_inset
13810
13811
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816
13817 \emph on
13818 1
13819 \end_layout
13820
13821 \end_inset
13822
13823 ] Whether newlines are translated into LaTeX newlines (
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828
13829 \backslash
13830
13831 \backslash
13832
13833 \end_layout
13834
13835 \end_inset
13836
13837 ) or not.
13838  The translation can be switched off to allow more comfortable LaTeX editing
13839  inside LyX.
13840 \end_layout
13841
13842 \begin_layout Description
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 NextNoIndent
13848 \end_layout
13849
13850 \end_inset
13851
13852  [
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857
13858 \emph on
13859 0
13860 \end_layout
13861
13862 \end_inset
13863
13864 ,
13865 \begin_inset space \thinspace{}
13866 \end_inset
13867
13868
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 1
13874 \end_layout
13875
13876 \end_inset
13877
13878 ] If set to true, and if 
13879 \begin_inset Flex Code
13880 status collapsed
13881
13882 \begin_layout Plain Layout
13883 DefaultStyle
13884 \end_layout
13885
13886 \end_inset
13887
13888  (usually 
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 Standard
13894 \end_layout
13895
13896 \end_inset
13897
13898 ) paragraphs are being indented, then the indentation of such a paragraph
13899  following one of this type will be suppressed.
13900  (So this will not affect the display of non-default paragraphs.)
13901 \end_layout
13902
13903 \begin_layout Description
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 ObsoletedBy
13909 \end_layout
13910
13911 \end_inset
13912
13913  [
13914 \begin_inset Flex Code
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918 <name>
13919 \end_layout
13920
13921 \end_inset
13922
13923 ] Name of a style that has replaced this style.
13924  This is used to rename a style, while keeping backward compatibility.
13925 \end_layout
13926
13927 \begin_layout Description
13928
13929 \change_deleted -712698321 1353679722
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 OptionalArgs
13935 \end_layout
13936
13937 \end_inset
13938
13939  [
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 int=0
13945 \end_layout
13946
13947 \end_inset
13948
13949 ] The number of optional arguments that can be used with this style.
13950  This is useful for things like section headings, and only makes sense with
13951  LaTeX.
13952  Note that, on output, the optional arguments will all precede any required
13953  arguments (see below).
13954  So one can have constructs like:
13955 \end_layout
13956
13957 \begin_deeper
13958 \begin_layout LyX-Code
13959
13960 \change_deleted -712698321 1353679722
13961
13962 \backslash
13963 mycmd[opt1]{req1}{contents of paragraph}
13964 \end_layout
13965
13966 \begin_layout Standard
13967
13968 \change_deleted -712698321 1353679722
13969 but one cannot have things like: 
13970 \end_layout
13971
13972 \begin_layout LyX-Code
13973
13974 \change_deleted -712698321 1353679722
13975
13976 \backslash
13977 mycmd[opt1]{req1}[opt2]{contents of paragraph}
13978 \end_layout
13979
13980 \begin_layout Standard
13981
13982 \change_deleted -712698321 1353679722
13983 at least, not without ERT (with which you can have anything).
13984  
13985 \change_unchanged
13986
13987 \end_layout
13988
13989 \end_deeper
13990 \begin_layout Description
13991 \begin_inset Flex Code
13992 status collapsed
13993
13994 \begin_layout Plain Layout
13995 ParbreakIsNewline
13996 \end_layout
13997
13998 \end_inset
13999
14000  [
14001 \begin_inset Flex Code
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005
14006 \emph on
14007 0
14008 \end_layout
14009
14010 \end_inset
14011
14012 ,
14013 \begin_inset space \thinspace{}
14014 \end_inset
14015
14016
14017 \begin_inset Flex Code
14018 status collapsed
14019
14020 \begin_layout Plain Layout
14021 1
14022 \end_layout
14023
14024 \end_inset
14025
14026 ] Indicates that paragraphs will not be separated by an empty line in LaTeX
14027  output, but only by a line break; together with 
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 PassThru 1
14033 \end_layout
14034
14035 \end_inset
14036
14037 , this allows to emulate a plain text editor (like the ERT inset).
14038 \end_layout
14039
14040 \begin_layout Description
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 ParIndent
14046 \end_layout
14047
14048 \end_inset
14049
14050  [
14051 \begin_inset Flex Code
14052 status collapsed
14053
14054 \begin_layout Plain Layout
14055 string=""
14056 \end_layout
14057
14058 \end_inset
14059
14060 ] The indent of the very first line of a paragraph.
14061  The
14062 \begin_inset Newline newline
14063 \end_inset
14064
14065
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 Parindent
14071 \end_layout
14072
14073 \end_inset
14074
14075  will be fixed for a certain style.
14076  The exception is the default style, since the indentation for these paragraphs
14077  can be prohibited with 
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082 NextNoIndent
14083 \end_layout
14084
14085 \end_inset
14086
14087 .
14088  Also, 
14089 \begin_inset Flex Code
14090 status collapsed
14091
14092 \begin_layout Plain Layout
14093 Standard
14094 \end_layout
14095
14096 \end_inset
14097
14098  style paragraphs inside environments use the 
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 Parindent
14104 \end_layout
14105
14106 \end_inset
14107
14108  of the environment, not their native one.
14109  For example, 
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 Standard
14115 \end_layout
14116
14117 \end_inset
14118
14119  paragraphs inside an enumeration are not indented.
14120 \end_layout
14121
14122 \begin_layout Description
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 ParSep
14128 \end_layout
14129
14130 \end_inset
14131
14132  [
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 float=0
14138 \end_layout
14139
14140 \end_inset
14141
14142 ] The vertical space between two paragraphs of this style.
14143 \end_layout
14144
14145 \begin_layout Description
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 Parskip
14151 \end_layout
14152
14153 \end_inset
14154
14155  [
14156 \begin_inset Flex Code
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160 float=0
14161 \end_layout
14162
14163 \end_inset
14164
14165 ] LyX allows the user to choose either 
14166 \begin_inset Quotes eld
14167 \end_inset
14168
14169 indent
14170 \begin_inset Quotes erd
14171 \end_inset
14172
14173  or 
14174 \begin_inset Quotes eld
14175 \end_inset
14176
14177 skip
14178 \begin_inset Quotes erd
14179 \end_inset
14180
14181  to separate paragraphs.
14182  When 
14183 \begin_inset Quotes eld
14184 \end_inset
14185
14186 indent
14187 \begin_inset Quotes erd
14188 \end_inset
14189
14190  is chosen, 
14191 \begin_inset Flex Code
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 Parskip
14196 \end_layout
14197
14198 \end_inset
14199
14200  is ignored.
14201  When 
14202 \begin_inset Quotes eld
14203 \end_inset
14204
14205 skip
14206 \begin_inset Quotes erd
14207 \end_inset
14208
14209  is chosen, 
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 ParIndent
14215 \end_layout
14216
14217 \end_inset
14218
14219  is ignored and all paragraphs are separated by the 
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224 Parskip
14225 \end_layout
14226
14227 \end_inset
14228
14229  argument.
14230  The vertical space is calculated with 
14231 \begin_inset Flex Code
14232 status collapsed
14233
14234 \begin_layout Plain Layout
14235 Parskip
14236 \begin_inset space ~
14237 \end_inset
14238
14239 * DefaultHeight
14240 \end_layout
14241
14242 \end_inset
14243
14244  where 
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 DefaultHeight
14250 \end_layout
14251
14252 \end_inset
14253
14254  is the height of a row with the normal font.
14255  This way, the look stays the same with different screen fonts.
14256 \end_layout
14257
14258 \begin_layout Description
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 PassThru
14264 \end_layout
14265
14266 \end_inset
14267
14268  [
14269 \begin_inset Flex Code
14270 status collapsed
14271
14272 \begin_layout Plain Layout
14273
14274 \emph on
14275 0
14276 \end_layout
14277
14278 \end_inset
14279
14280 ,
14281 \begin_inset space \thinspace{}
14282 \end_inset
14283
14284
14285 \begin_inset Flex Code
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 1
14290 \end_layout
14291
14292 \end_inset
14293
14294 ] Whether the contents of this paragraph should be output in raw form, meaning
14295  without special translations that LaTeX would require.
14296 \end_layout
14297
14298 \begin_layout Description
14299 \begin_inset Flex Code
14300 status collapsed
14301
14302 \begin_layout Plain Layout
14303 Preamble
14304 \end_layout
14305
14306 \end_inset
14307
14308  Information to be included in the LaTeX preamble when this style is used.
14309  Used to define macros, load packages, etc., required by this particular
14310  style.
14311  Must end with 
14312 \begin_inset Quotes eld
14313 \end_inset
14314
14315
14316 \begin_inset Flex Code
14317 status collapsed
14318
14319 \begin_layout Plain Layout
14320 EndPreamble
14321 \end_layout
14322
14323 \end_inset
14324
14325
14326 \begin_inset Quotes erd
14327 \end_inset
14328
14329 .
14330 \end_layout
14331
14332 \begin_layout Description
14333 \begin_inset Flex Code
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337 RefPrefix
14338 \end_layout
14339
14340 \end_inset
14341
14342  [
14343 \begin_inset Flex Code
14344 status collapsed
14345
14346 \begin_layout Plain Layout
14347 string
14348 \end_layout
14349
14350 \end_inset
14351
14352 ] The prefix to use when creating labels referring to paragraphs of this
14353  type.
14354  This allows the use of formatted references.
14355 \end_layout
14356
14357 \begin_layout Description
14358
14359 \change_deleted -712698321 1353681258
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 RequiredArgs
14365 \end_layout
14366
14367 \end_inset
14368
14369  [
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 int=0
14375 \end_layout
14376
14377 \end_inset
14378
14379 ] The number of required arguments that the LaTeX command or environment
14380  corresponding to this style expects.
14381  In the case of a command, these are required arguments 
14382 \emph on
14383 other than
14384 \emph default
14385  that associated with the content of the paragraph itself.
14386  These do not actually have to be provided: LyX will output empty arguments
14387  if necessary.
14388  Note that optional arguments will be output before required arguments.
14389  See the discussion of the 
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 OptionalArgs
14395 \end_layout
14396
14397 \end_inset
14398
14399  tag above for more information.
14400 \change_unchanged
14401
14402 \end_layout
14403
14404 \begin_layout Description
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409 Requires 
14410 \end_layout
14411
14412 \end_inset
14413
14414  [
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 string
14420 \end_layout
14421
14422 \end_inset
14423
14424 ] Whether the style requires the feature 
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 string
14430 \end_layout
14431
14432 \end_inset
14433
14434 .
14435  See the description of 
14436 \begin_inset Flex Code
14437 status collapsed
14438
14439 \begin_layout Plain Layout
14440 Provides
14441 \end_layout
14442
14443 \end_inset
14444
14445  above (sec.
14446 \begin_inset space ~
14447 \end_inset
14448
14449
14450 \begin_inset CommandInset ref
14451 LatexCommand ref
14452 reference "sub:General-text-class"
14453
14454 \end_inset
14455
14456 ) for information on `features'.
14457 \end_layout
14458
14459 \begin_layout Description
14460
14461 \change_inserted -712698321 1353693371
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466
14467 \change_inserted -712698321 1353693146
14468 ResetArgs
14469 \change_unchanged
14470
14471 \end_layout
14472
14473 \end_inset
14474
14475  [
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480
14481 \change_inserted -712698321 1353693235
14482
14483 \emph on
14484 0
14485 \end_layout
14486
14487 \end_inset
14488
14489 ,
14490 \begin_inset Flex Code
14491 status collapsed
14492
14493 \begin_layout Plain Layout
14494
14495 \change_inserted -712698321 1353693235
14496 1
14497 \end_layout
14498
14499 \end_inset
14500
14501 ] Resets the LaTeX arguments of this style (as defined via the 
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506
14507 \change_inserted -712698321 1353693371
14508 Argument
14509 \change_unchanged
14510
14511 \end_layout
14512
14513 \end_inset
14514
14515  tag).
14516  This is useful if you have copied a style via 
14517 \begin_inset Flex Code
14518 status collapsed
14519
14520 \begin_layout Plain Layout
14521
14522 \change_inserted -712698321 1353693302
14523 CopyStyle
14524 \change_unchanged
14525
14526 \end_layout
14527
14528 \end_inset
14529
14530 , but you do not want to inherit its (required and optional) arguments.
14531 \change_unchanged
14532
14533 \end_layout
14534
14535 \begin_layout Description
14536
14537 \change_inserted -712698321 1354263074
14538 \begin_inset Flex Code
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542
14543 \change_inserted -712698321 1353866876
14544 RightDelim
14545 \end_layout
14546
14547 \end_inset
14548
14549  [
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554
14555 \change_inserted -712698321 1353866873
14556 string
14557 \end_layout
14558
14559 \end_inset
14560
14561 ] A string that is put at the end of the layout content.
14562  A line break in the output can be indicated by 
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567
14568 \change_inserted -712698321 1354263069
14569 <br/>
14570 \change_unchanged
14571
14572 \end_layout
14573
14574 \end_inset
14575
14576 .
14577 \end_layout
14578
14579 \begin_layout Description
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584 RightMargin
14585 \end_layout
14586
14587 \end_inset
14588
14589  [
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 string=""
14595 \end_layout
14596
14597 \end_inset
14598
14599 ] Similar to 
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 LeftMargin
14605 \end_layout
14606
14607 \end_inset
14608
14609 .
14610 \end_layout
14611
14612 \begin_layout Description
14613 \begin_inset Flex Code
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617 Spacing
14618 \end_layout
14619
14620 \end_inset
14621
14622  [
14623 \begin_inset Flex Code
14624 status collapsed
14625
14626 \begin_layout Plain Layout
14627
14628 \emph on
14629 single
14630 \end_layout
14631
14632 \end_inset
14633
14634
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 onehalf
14640 \end_layout
14641
14642 \end_inset
14643
14644
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 double
14650 \end_layout
14651
14652 \end_inset
14653
14654
14655 \begin_inset Flex Code
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 other
14660 \begin_inset space ~
14661 \end_inset
14662
14663 <value>
14664 \end_layout
14665
14666 \end_inset
14667
14668 ] This defines what the default spacing should be in the style.
14669  The arguments 
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 single
14675 \end_layout
14676
14677 \end_inset
14678
14679
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 onehalf
14685 \end_layout
14686
14687 \end_inset
14688
14689  and 
14690 \begin_inset Flex Code
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694 double
14695 \end_layout
14696
14697 \end_inset
14698
14699  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14700  If you specify the argument 
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 other
14706 \end_layout
14707
14708 \end_inset
14709
14710 , then you must also provide a value argument which will be the actual multiplie
14711 r value.
14712  Note that, contrary to other parameters, 
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 Spacing
14718 \end_layout
14719
14720 \end_inset
14721
14722  implies the generation of specific LaTeX code, using the LaTeX package
14723  
14724 \family roman
14725
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 setspace
14731 \end_layout
14732
14733 \end_inset
14734
14735 .
14736 \end_layout
14737
14738 \begin_layout Description
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 Spellcheck
14744 \end_layout
14745
14746 \end_inset
14747
14748  [
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 0
14754 \end_layout
14755
14756 \end_inset
14757
14758 ,
14759 \begin_inset space \thinspace{}
14760 \end_inset
14761
14762
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767
14768 \emph on
14769 1
14770 \end_layout
14771
14772 \end_inset
14773
14774 ] Allow spell-checking paragraphs of this style.
14775  Default is true.
14776 \end_layout
14777
14778 \begin_layout Description
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 TextFont
14784 \end_layout
14785
14786 \end_inset
14787
14788  The font used for the text body .
14789  See section 
14790 \begin_inset CommandInset ref
14791 LatexCommand ref
14792 reference "sub:Font-description"
14793
14794 \end_inset
14795
14796 .
14797 \end_layout
14798
14799 \begin_layout Description
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 TocLevel
14805 \end_layout
14806
14807 \end_inset
14808
14809
14810 \series medium
14811  [
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816
14817 \series medium
14818 int=3
14819 \end_layout
14820
14821 \end_inset
14822
14823 ]
14824 \series default
14825  The level of the style in the table of contents.
14826  This is used for automatic numbering of section headings.
14827 \end_layout
14828
14829 \begin_layout Description
14830 \begin_inset Flex Code
14831 status collapsed
14832
14833 \begin_layout Plain Layout
14834 TopSep
14835 \end_layout
14836
14837 \end_inset
14838
14839  [
14840 \begin_inset Flex Code
14841 status collapsed
14842
14843 \begin_layout Plain Layout
14844 float=0
14845 \end_layout
14846
14847 \end_inset
14848
14849 ] The vertical space with which the very first of a chain of paragraphs
14850  with this style is separated from the previous paragraph.
14851  If the previous paragraph has another style, the separations are not simply
14852  added, but the maximum is taken.
14853 \end_layout
14854
14855 \begin_layout Subsection
14856 \begin_inset CommandInset label
14857 LatexCommand label
14858 name "sub:I18n"
14859
14860 \end_inset
14861
14862 Internationalization of Paragraph Styles
14863 \end_layout
14864
14865 \begin_layout Standard
14866 LyX has long supported internationalization of layout information, but,
14867  until version 2.0, this applied only to the user interface and not to, say,
14868  PDF output.
14869  Thus, French authors were forced to resort to ugly hacks if they wanted
14870  `
14871 \lang french
14872 Théorème
14873 \lang english
14874  1' instead of `Theorem 1'.
14875  Thanks to Georg Baum, that is no longer the case.
14876 \end_layout
14877
14878 \begin_layout Standard
14879 If a 
14880 \begin_inset Flex Code
14881 status collapsed
14882
14883 \begin_layout Plain Layout
14884 Style
14885 \end_layout
14886
14887 \end_inset
14888
14889  defines text that is to appear in the typeset document, it may use 
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 LangPreamble
14895 \end_layout
14896
14897 \end_inset
14898
14899  and 
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 BabelPreamble
14905 \end_layout
14906
14907 \end_inset
14908
14909  to support non-English and even multi-language documents correctly.
14910  The following excerpt (from the 
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 theorems-ams.inc
14916 \end_layout
14917
14918 \end_inset
14919
14920  file) shows how this works:
14921 \end_layout
14922
14923 \begin_layout LyX-Code
14924 Preamble
14925 \end_layout
14926
14927 \begin_deeper
14928 \begin_layout LyX-Code
14929   
14930 \backslash
14931 theoremstyle{remark}
14932 \end_layout
14933
14934 \begin_layout LyX-Code
14935   
14936 \backslash
14937 newtheorem{claim}[thm]{
14938 \backslash
14939 protect
14940 \backslash
14941 claimname}
14942 \end_layout
14943
14944 \begin_layout LyX-Code
14945 EndPreamble
14946 \end_layout
14947
14948 \begin_layout LyX-Code
14949 LangPreamble
14950 \end_layout
14951
14952 \begin_layout LyX-Code
14953   
14954 \backslash
14955 providecommand{
14956 \backslash
14957 claimname}{_(Claim)}
14958 \end_layout
14959
14960 \begin_layout LyX-Code
14961 EndLangPreamble
14962 \end_layout
14963
14964 \begin_layout LyX-Code
14965 BabelPreamble
14966 \end_layout
14967
14968 \begin_layout LyX-Code
14969     
14970 \backslash
14971 addto
14972 \backslash
14973 captions$$lang{
14974 \backslash
14975 renewcommand{
14976 \backslash
14977 claimname}{_(Claim)}}
14978 \end_layout
14979
14980 \begin_layout LyX-Code
14981 EndBabelPreamble
14982 \end_layout
14983
14984 \end_deeper
14985 \begin_layout Standard
14986 In principle, any legal LaTeX may appear in the 
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 LangPreamble
14992 \end_layout
14993
14994 \end_inset
14995
14996  and 
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 BabelPreamble
15002 \end_layout
15003
15004 \end_inset
15005
15006  tags, but in practice they will typically look as they do here.
15007  The key to correct translation of the typeset text is the definition of
15008  the LaTeX command 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013
15014 \backslash
15015 claimname
15016 \end_layout
15017
15018 \end_inset
15019
15020  and its use in 
15021 \begin_inset Flex Code
15022 status collapsed
15023
15024 \begin_layout Plain Layout
15025
15026 \backslash
15027 newtheorem
15028 \end_layout
15029
15030 \end_inset
15031
15032 .
15033  
15034 \end_layout
15035
15036 \begin_layout Standard
15037 The 
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 LangPreamble
15043 \end_layout
15044
15045 \end_inset
15046
15047  tag provides for internationalization based upon the overall language of
15048  the document.
15049  The contents of the tag will be included in the preamble, just as with
15050  the 
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055 Preamble
15056 \end_layout
15057
15058 \end_inset
15059
15060  tag.
15061  What makes it special is the use of the 
15062 \begin_inset Quotes eld
15063 \end_inset
15064
15065 function
15066 \begin_inset Quotes erd
15067 \end_inset
15068
15069  
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 _()
15075 \end_layout
15076
15077 \end_inset
15078
15079 , which will be replaced, when LyX produces LaTeX output, with the translation
15080  of its argument into the document language.
15081 \end_layout
15082
15083 \begin_layout Standard
15084 The 
15085 \begin_inset Flex Code
15086 status collapsed
15087
15088 \begin_layout Plain Layout
15089 BabelPreamble
15090 \end_layout
15091
15092 \end_inset
15093
15094  tag is more complex, since it is meant to provide support for multi-language
15095  documents and so offers an interface to the 
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 babel
15101 \end_layout
15102
15103 \end_inset
15104
15105  package.
15106  Its contents will be added to the preamble once for each language that
15107  appears in the document.
15108  In this case, the argument to 
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 _()
15114 \end_layout
15115
15116 \end_inset
15117
15118  will be replaced with its translation into the language in question; the
15119  expression 
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 $$lang
15125 \end_layout
15126
15127 \end_inset
15128
15129  is replaced by the language name (as used by the babel package).
15130 \end_layout
15131
15132 \begin_layout Standard
15133 A German document that also included a French section would thus have the
15134  following in the preamble:
15135 \end_layout
15136
15137 \begin_layout LyX-Code
15138
15139 \backslash
15140 addto
15141 \backslash
15142 captionsfrench{
15143 \backslash
15144 renewcommand{
15145 \backslash
15146 claimname}{Affirmation}}
15147 \begin_inset Newline newline
15148 \end_inset
15149
15150
15151 \backslash
15152 addto
15153 \backslash
15154 captionsngerman{
15155 \backslash
15156 renewcommand{
15157 \backslash
15158 claimname}{Behauptung}}
15159 \begin_inset Newline newline
15160 \end_inset
15161
15162
15163 \backslash
15164 providecommand{
15165 \backslash
15166 claimname}{Behauptung}
15167 \end_layout
15168
15169 \begin_layout Standard
15170 LaTeX and 
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 babel
15176 \end_layout
15177
15178 \end_inset
15179
15180  will then conspire to produce the correct text in the output.
15181 \end_layout
15182
15183 \begin_layout Standard
15184 One important point to note here is that the translations are provided by
15185  LyX itself, through the 
15186 \change_inserted -195340706 1334775793
15187 file 
15188 \begin_inset Flex Code
15189 status collapsed
15190
15191 \begin_layout Plain Layout
15192
15193 \change_inserted -195340706 1334775793
15194 layouttranslations
15195 \end_layout
15196
15197 \end_inset
15198
15199
15200 \change_deleted -195340706 1334775793
15201 same mechanism it uses for internationalization of the user interface
15202 \change_unchanged
15203 .
15204  This means, in effect, that 
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 LangPreamble
15210 \end_layout
15211
15212 \end_inset
15213
15214  and 
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 BabelPreamble
15220 \end_layout
15221
15222 \end_inset
15223
15224  are really only of use in layout files that are provided with LyX, since
15225  text entered in user-created layout files will not be seen by LyX's internation
15226 alization routines
15227 \change_inserted -195340706 1334775793
15228  unless the 
15229 \begin_inset Flex Code
15230 status collapsed
15231
15232 \begin_layout Plain Layout
15233
15234 \change_inserted -195340706 1334775793
15235 layouttranslations
15236 \end_layout
15237
15238 \end_inset
15239
15240  file is modified accordingly
15241 \change_unchanged
15242 .
15243  That said, however, any layout created with the intention that it will
15244  be included with LyX should use these tags where appropriate.
15245
15246 \change_inserted -195340706 1334775793
15247  Please note that the paragraph style translations provided by LyX will
15248  never change with a minor update (e.g.
15249  from version 2.1.x to 2.1.y).
15250  It is however quite likely that a major update (e.g.
15251  from 2.0.x to 2.1.y) will introduce new translations or corrections.
15252 \change_unchanged
15253
15254 \end_layout
15255
15256 \begin_layout Subsection
15257 Floats
15258 \begin_inset CommandInset label
15259 LatexCommand label
15260 name "sub:Floats"
15261
15262 \end_inset
15263
15264
15265 \end_layout
15266
15267 \begin_layout Standard
15268 It is necessary to define the floats (
15269 \begin_inset Flex MenuItem
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 figure
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \begin_inset Flex MenuItem
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 table
15284 \end_layout
15285
15286 \end_inset
15287
15288 , \SpecialChar \ldots{}
15289 ) in the text class itself.
15290  Standard floats are included in the file 
15291 \begin_inset Flex Code
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295 stdfloats.inc
15296 \end_layout
15297
15298 \end_inset
15299
15300 , so you may have to do no more than add
15301 \end_layout
15302
15303 \begin_layout LyX-Code
15304 Input stdfloats.inc
15305 \end_layout
15306
15307 \begin_layout Standard
15308 to your layout file.
15309  If you want to implement a text class that proposes some other float types
15310  (like the AGU class bundled with LyX), the information below will hopefully
15311  help you:
15312 \end_layout
15313
15314 \begin_layout Description
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 Extension
15320 \end_layout
15321
15322 \end_inset
15323
15324  [
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329 string
15330 \end_layout
15331
15332 \end_inset
15333
15334 =
15335 \begin_inset Quotes erd
15336 \end_inset
15337
15338
15339 \begin_inset Quotes erd
15340 \end_inset
15341
15342 ] The file name extension of an auxiliary file for the list of figures (or
15343  whatever).
15344  LaTeX writes the captions to this file.
15345 \end_layout
15346
15347 \begin_layout Description
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 GuiName
15353 \end_layout
15354
15355 \end_inset
15356
15357  [
15358 \begin_inset Flex Code
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362 string
15363 \end_layout
15364
15365 \end_inset
15366
15367 =
15368 \begin_inset Quotes erd
15369 \end_inset
15370
15371
15372 \begin_inset Quotes erd
15373 \end_inset
15374
15375 ] The string that will be used in the menus and also for the caption.
15376  This is translated to the current language if babel is used.
15377 \end_layout
15378
15379 \begin_layout Description
15380 \begin_inset Flex Code
15381 status collapsed
15382
15383 \begin_layout Plain Layout
15384 HTML*
15385 \end_layout
15386
15387 \end_inset
15388
15389  These tags control the XHTML output.
15390  See section
15391 \begin_inset space ~
15392 \end_inset
15393
15394
15395 \begin_inset CommandInset ref
15396 LatexCommand ref
15397 reference "sec:Tags-for-XHTML"
15398
15399 \end_inset
15400
15401 .
15402 \end_layout
15403
15404 \begin_layout Description
15405 \begin_inset Flex Code
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409 IsPredefined
15410 \end_layout
15411
15412 \end_inset
15413
15414  [
15415 \emph on
15416
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 0
15422 \end_layout
15423
15424 \end_inset
15425
15426
15427 \emph default
15428 ,
15429 \begin_inset space \thinspace{}
15430 \end_inset
15431
15432
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 1
15438 \end_layout
15439
15440 \end_inset
15441
15442 ] Indicates whether the float is already defined in the document class or
15443  if instead the LaTeX package 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 float
15449 \end_layout
15450
15451 \end_inset
15452
15453  needs to be loaded to define it on-the-fly.
15454  The default is 
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 0
15460 \end_layout
15461
15462 \end_inset
15463
15464 , which means: 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 float
15470 \end_layout
15471
15472 \end_inset
15473
15474  is used.
15475  It should be set to 
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 1
15481 \end_layout
15482
15483 \end_inset
15484
15485  if the float is already defined by the LaTeX document class.
15486 \end_layout
15487
15488 \begin_layout Description
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 ListCommand
15494 \end_layout
15495
15496 \end_inset
15497
15498  [
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 string
15504 \end_layout
15505
15506 \end_inset
15507
15508 =
15509 \begin_inset Quotes erd
15510 \end_inset
15511
15512
15513 \begin_inset Quotes erd
15514 \end_inset
15515
15516 ] The command used to generate a list of floats of this type; the leading
15517  `
15518 \backslash
15519 ' must be omitted.
15520  This 
15521 \emph on
15522 must
15523 \emph default
15524  be given if 
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529 UsesFloatPkg
15530 \end_layout
15531
15532 \end_inset
15533
15534  is false, since there is no standard way to generate this command.
15535  It is ignored if 
15536 \begin_inset Flex Code
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540 UsesFloatPkg
15541 \end_layout
15542
15543 \end_inset
15544
15545  is true, since in that case there is a standard way to define the command.
15546 \end_layout
15547
15548 \begin_layout Description
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 ListName
15554 \end_layout
15555
15556 \end_inset
15557
15558  [
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 string
15564 \end_layout
15565
15566 \end_inset
15567
15568 =
15569 \begin_inset Quotes erd
15570 \end_inset
15571
15572
15573 \begin_inset Quotes erd
15574 \end_inset
15575
15576 ] A title for a list of floats of this kind (list of figures, tables, or
15577  whatever).
15578  It is used for the screen label within LyX, it is used by LaTeX for the
15579  title and it is used as the title in the XHTML output.
15580  It will be translated to the document language.
15581 \end_layout
15582
15583 \begin_layout Description
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 NumberWithin
15589 \end_layout
15590
15591 \end_inset
15592
15593  [
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 string
15599 \end_layout
15600
15601 \end_inset
15602
15603 =
15604 \begin_inset Quotes erd
15605 \end_inset
15606
15607
15608 \begin_inset Quotes erd
15609 \end_inset
15610
15611 ] This (optional) argument determines whether floats of this class will
15612  be numbered within some sectional unit of the document.
15613  For example, if 
15614 \begin_inset Flex Code
15615 status collapsed
15616
15617 \begin_layout Plain Layout
15618 NumberWithin
15619 \end_layout
15620
15621 \end_inset
15622
15623  is set to 
15624 \begin_inset Quotes eld
15625 \end_inset
15626
15627
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 chapter
15633 \end_layout
15634
15635 \end_inset
15636
15637
15638 \begin_inset Quotes erd
15639 \end_inset
15640
15641 , the floats will be numbered within chapters.
15642  
15643 \end_layout
15644
15645 \begin_layout Description
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 Placement
15651 \end_layout
15652
15653 \end_inset
15654
15655  [
15656 \begin_inset Flex Code
15657 status collapsed
15658
15659 \begin_layout Plain Layout
15660 string
15661 \end_layout
15662
15663 \end_inset
15664
15665 =
15666 \begin_inset Quotes erd
15667 \end_inset
15668
15669
15670 \begin_inset Quotes erd
15671 \end_inset
15672
15673 ] The default placement for the given class of floats.
15674  The string should be as in standard LaTeX: 
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 t
15680 \end_layout
15681
15682 \end_inset
15683
15684
15685 \begin_inset Flex Code
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 b
15690 \end_layout
15691
15692 \end_inset
15693
15694
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 p
15700 \end_layout
15701
15702 \end_inset
15703
15704  and 
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 h
15710 \end_layout
15711
15712 \end_inset
15713
15714  for top, bottom, page, and here, respectively.
15715 \begin_inset Foot
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 Note that the order of these letters in the string is irrelevant, like in
15720  LaTeX.
15721 \end_layout
15722
15723 \end_inset
15724
15725  On top of that there is a new type, 
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 H
15731 \end_layout
15732
15733 \end_inset
15734
15735 , which does not really correspond to a float, since it means: put it 
15736 \begin_inset Quotes eld
15737 \end_inset
15738
15739 here
15740 \begin_inset Quotes erd
15741 \end_inset
15742
15743  and nowhere else.
15744  Note however that the 
15745 \begin_inset Flex Code
15746 status collapsed
15747
15748 \begin_layout Plain Layout
15749 H
15750 \end_layout
15751
15752 \end_inset
15753
15754  specifier is special and, because of implementation details, cannot be
15755  used in non-built in float types.
15756  If you do not understand what this means, just use 
15757 \begin_inset Quotes eld
15758 \end_inset
15759
15760
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 tbp
15766 \end_layout
15767
15768 \end_inset
15769
15770
15771 \begin_inset Quotes erd
15772 \end_inset
15773
15774 .
15775 \end_layout
15776
15777 \begin_layout Description
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 RefPrefix
15783 \end_layout
15784
15785 \end_inset
15786
15787  [
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792 string
15793 \end_layout
15794
15795 \end_inset
15796
15797 ] The prefix to use when creating labels referring to floats of this type.
15798  This allows the use of formatted references.
15799  Note that you can remove any 
15800 \begin_inset Flex Code
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 RefPrefix
15805 \end_layout
15806
15807 \end_inset
15808
15809  set by a copied style by using the special value 
15810 \begin_inset Quotes eld
15811 \end_inset
15812
15813 OFF
15814 \begin_inset Quotes erd
15815 \end_inset
15816
15817 , which must be all caps.
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 Style
15826 \end_layout
15827
15828 \end_inset
15829
15830  [
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 string
15836 \end_layout
15837
15838 \end_inset
15839
15840 =
15841 \begin_inset Quotes erd
15842 \end_inset
15843
15844
15845 \begin_inset Quotes erd
15846 \end_inset
15847
15848 ] The style used when defining the float using 
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853
15854 \backslash
15855 newfloat
15856 \end_layout
15857
15858 \end_inset
15859
15860 .
15861 \end_layout
15862
15863 \begin_layout Description
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868 Type
15869 \end_layout
15870
15871 \end_inset
15872
15873  [
15874 \begin_inset Flex Code
15875 status collapsed
15876
15877 \begin_layout Plain Layout
15878 string
15879 \end_layout
15880
15881 \end_inset
15882
15883 =
15884 \begin_inset Quotes erd
15885 \end_inset
15886
15887
15888 \begin_inset Quotes erd
15889 \end_inset
15890
15891 ] The 
15892 \begin_inset Quotes eld
15893 \end_inset
15894
15895 type
15896 \begin_inset Quotes erd
15897 \end_inset
15898
15899  of the new class of floats, like program or algorithm.
15900  After the appropriate 
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905
15906 \backslash
15907 newfloat
15908 \end_layout
15909
15910 \end_inset
15911
15912 , commands such as 
15913 \begin_inset Flex Code
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917
15918 \backslash
15919 begin{program}
15920 \end_layout
15921
15922 \end_inset
15923
15924  or 
15925 \begin_inset Flex Code
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929
15930 \backslash
15931 end{algorithm*}
15932 \end_layout
15933
15934 \end_inset
15935
15936  will be available.
15937 \end_layout
15938
15939 \begin_layout Description
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944 UsesFloatPkg
15945 \end_layout
15946
15947 \end_inset
15948
15949  [
15950 \begin_inset Flex Code
15951 status collapsed
15952
15953 \begin_layout Plain Layout
15954 0
15955 \end_layout
15956
15957 \end_inset
15958
15959 ,
15960 \begin_inset space \thinspace{}
15961 \end_inset
15962
15963
15964 \begin_inset Flex Code
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968
15969 \emph on
15970 1
15971 \end_layout
15972
15973 \end_inset
15974
15975 ] Specifies whether this float is defined using the LaTeX package 
15976 \begin_inset Flex Code
15977 status collapsed
15978
15979 \begin_layout Plain Layout
15980 float
15981 \end_layout
15982
15983 \end_inset
15984
15985 , either by the class file, another package or on-the-fly by LyX itself.
15986 \end_layout
15987
15988 \begin_layout Standard
15989 Note that defining a float with type 
15990 \begin_inset Flex Code
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994
15995 \emph on
15996 type
15997 \end_layout
15998
15999 \end_inset
16000
16001  automatically defines the corresponding counter with name 
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006
16007 \emph on
16008 type
16009 \end_layout
16010
16011 \end_inset
16012
16013 .
16014 \end_layout
16015
16016 \begin_layout Subsection
16017 Flex insets and InsetLayout
16018 \begin_inset CommandInset label
16019 LatexCommand label
16020 name "sub:Flex-insets-and"
16021
16022 \end_inset
16023
16024
16025 \end_layout
16026
16027 \begin_layout Standard
16028 Flex insets come in three different kinds: 
16029 \end_layout
16030
16031 \begin_layout Itemize
16032 character style (
16033 \begin_inset Flex Code
16034 status collapsed
16035
16036 \begin_layout Plain Layout
16037 CharStyle
16038 \end_layout
16039
16040 \end_inset
16041
16042 ): These define semantic markup corresponding to such LaTeX commands as
16043  
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048
16049 \backslash
16050 noun
16051 \end_layout
16052
16053 \end_inset
16054
16055  and 
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060
16061 \backslash
16062 code
16063 \end_layout
16064
16065 \end_inset
16066
16067 .
16068 \end_layout
16069
16070 \begin_layout Itemize
16071 user custom (
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 Custom
16077 \end_layout
16078
16079 \end_inset
16080
16081 ): These can be used to define custom collapsible insets, similar to TeX
16082  code, footnote, and the like.
16083  An obvious example is an endnote inset, which is defined in the 
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 endnote
16089 \end_layout
16090
16091 \end_inset
16092
16093  module.
16094 \end_layout
16095
16096 \begin_layout Itemize
16097 XML elements (
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 Element
16103 \end_layout
16104
16105 \end_inset
16106
16107 ): For use with DocBook classes.
16108 \end_layout
16109
16110 \begin_layout Standard
16111 Flex insets are defined using the 
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 InsetLayout
16117 \end_layout
16118
16119 \end_inset
16120
16121  tag, which shall be explained in a moment.
16122 \end_layout
16123
16124 \begin_layout Standard
16125 The 
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 InsetLayout
16131 \end_layout
16132
16133 \end_inset
16134
16135  tag also serves another function: It can be used to customize the general
16136  layout of many different types of insets.
16137  Currently, 
16138 \begin_inset Flex Code
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142 InsetLayout
16143 \end_layout
16144
16145 \end_inset
16146
16147  can be used to customize the layout parameters for footnotes, marginal
16148  notes, note insets, TeX code (ERT) insets, branches, listings, indexes,
16149  boxes, tables, algorithms, URLs, and 
16150 \change_deleted -712698321 1356964515
16151 optional argument
16152 \change_inserted -712698321 1356964516
16153 caption
16154 \change_unchanged
16155 s, as well as to define Flex insets.
16156 \end_layout
16157
16158 \begin_layout Standard
16159 The 
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 InsetLayout
16165 \end_layout
16166
16167 \end_inset
16168
16169  definition must begin with a line of the form:
16170 \end_layout
16171
16172 \begin_layout LyX-Code
16173 InsetLayout <type>
16174 \end_layout
16175
16176 \begin_layout Standard
16177 Here 
16178 \begin_inset Flex Code
16179 status collapsed
16180
16181 \begin_layout Plain Layout
16182 <Type>
16183 \end_layout
16184
16185 \end_inset
16186
16187  indicates the inset whose layout is being defined, and here there are 
16188 \change_deleted -712698321 1356964888
16189 three
16190 \change_inserted -712698321 1356964888
16191 four
16192 \change_deleted 5863208 1334489267
16193 two
16194 \change_unchanged
16195  cases.
16196 \end_layout
16197
16198 \begin_layout Enumerate
16199 The layout for a pre-existing inset is being modified.
16200  In this case, can be 
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 <Type>
16206 \end_layout
16207
16208 \end_inset
16209
16210  any one of the following: 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 Algorithm
16216 \end_layout
16217
16218 \end_inset
16219
16220
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 Branch
16226 \end_layout
16227
16228 \end_inset
16229
16230
16231 \begin_inset Flex Code
16232 status collapsed
16233
16234 \begin_layout Plain Layout
16235 Box
16236 \end_layout
16237
16238 \end_inset
16239
16240
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 Box:shaded
16246 \end_layout
16247
16248 \end_inset
16249
16250
16251 \change_inserted -712698321 1356964563
16252
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257
16258 \change_inserted -712698321 1356964560
16259 Caption:Standard
16260 \change_unchanged
16261
16262 \end_layout
16263
16264 \end_inset
16265
16266
16267 \change_unchanged
16268
16269 \begin_inset Flex Code
16270 status collapsed
16271
16272 \begin_layout Plain Layout
16273 ERT
16274 \end_layout
16275
16276 \end_inset
16277
16278
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283 Figure
16284 \end_layout
16285
16286 \end_inset
16287
16288
16289 \begin_inset Flex Code
16290 status collapsed
16291
16292 \begin_layout Plain Layout
16293 Foot
16294 \end_layout
16295
16296 \end_inset
16297
16298
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303 Index
16304 \end_layout
16305
16306 \end_inset
16307
16308
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 Info
16314 \end_layout
16315
16316 \end_inset
16317
16318
16319 \begin_inset Flex Code
16320 status collapsed
16321
16322 \begin_layout Plain Layout
16323 Info:menu
16324 \end_layout
16325
16326 \end_inset
16327
16328
16329 \begin_inset Flex Code
16330 status collapsed
16331
16332 \begin_layout Plain Layout
16333 Info:shortcut
16334 \end_layout
16335
16336 \end_inset
16337
16338
16339 \begin_inset Flex Code
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343 Info:shortcuts
16344 \end_layout
16345
16346 \end_inset
16347
16348
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 Listings
16354 \end_layout
16355
16356 \end_inset
16357
16358
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 Marginal
16364 \end_layout
16365
16366 \end_inset
16367
16368
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 Note:Comment
16374 \end_layout
16375
16376 \end_inset
16377
16378
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 Note:Note
16384 \end_layout
16385
16386 \end_inset
16387
16388
16389 \begin_inset Flex Code
16390 status collapsed
16391
16392 \begin_layout Plain Layout
16393 Note:Greyedout
16394 \end_layout
16395
16396 \end_inset
16397
16398
16399 \change_deleted -712698321 1356964592
16400
16401 \begin_inset Flex Code
16402 status collapsed
16403
16404 \begin_layout Plain Layout
16405
16406 \change_deleted -712698321 1353866704
16407 Opt
16408 \change_unchanged
16409 Arg
16410 \change_inserted -712698321 1353866707
16411 ument
16412 \change_unchanged
16413
16414 \end_layout
16415
16416 \end_inset
16417
16418
16419 \change_unchanged
16420
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 Table
16426 \end_layout
16427
16428 \end_inset
16429
16430 , or 
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435 URL
16436 \end_layout
16437
16438 \end_inset
16439
16440 .
16441 \end_layout
16442
16443 \begin_layout Enumerate
16444 The layout for a Flex inset is being defined.
16445  In this case, 
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 <Type>
16451 \end_layout
16452
16453 \end_inset
16454
16455  must be of the form 
16456 \begin_inset Quotes eld
16457 \end_inset
16458
16459
16460 \begin_inset Flex Code
16461 status collapsed
16462
16463 \begin_layout Plain Layout
16464 Flex:<name>
16465 \end_layout
16466
16467 \end_inset
16468
16469
16470 \begin_inset Quotes erd
16471 \end_inset
16472
16473 , where 
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478 name
16479 \end_layout
16480
16481 \end_inset
16482
16483  may be be any valid identifier not used by a pre-existing Flex inset.
16484  The identifier may include spaces, but in that case the whole thing must
16485  be wrapped in quotes.
16486  Note that the definition of a flex inset 
16487 \emph on
16488 must 
16489 \emph default
16490 also include a 
16491 \begin_inset Flex Code
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495 LyXType
16496 \end_layout
16497
16498 \end_inset
16499
16500  entry, declaring which type of inset it defines.
16501 \change_inserted 5863208 1334489312
16502
16503 \end_layout
16504
16505 \begin_layout Enumerate
16506
16507 \change_inserted 5863208 1334492248
16508 The layout for user specific branch is being defined.
16509  In this case, 
16510 \begin_inset Flex Code
16511 status collapsed
16512
16513 \begin_layout Plain Layout
16514
16515 \change_inserted 5863208 1334489384
16516 <Type>
16517 \end_layout
16518
16519 \end_inset
16520
16521  must be of the form 
16522 \begin_inset Quotes eld
16523 \end_inset
16524
16525
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530
16531 \change_inserted 5863208 1334489392
16532 Branch:<name>
16533 \end_layout
16534
16535 \end_inset
16536
16537
16538 \begin_inset Quotes erd
16539 \end_inset
16540
16541 , where 
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546
16547 \change_inserted 5863208 1334489384
16548 name
16549 \end_layout
16550
16551 \end_inset
16552
16553  may be be any valid identifier of branch defined in user's document.
16554  The identifier may include spaces, but in that case the whole thing must
16555  be wrapped in quotes.
16556  The main purpose of this feature is to allow LaTeX wrapping around specific
16557  branches as user needs.
16558 \change_inserted -712698321 1356964893
16559
16560 \end_layout
16561
16562 \begin_layout Enumerate
16563
16564 \change_inserted -712698321 1356965125
16565 The layout of a user (or class) specific caption is being defined.
16566  In this case, 
16567 \begin_inset Flex Code
16568 status collapsed
16569
16570 \begin_layout Plain Layout
16571
16572 \change_inserted -712698321 1356964939
16573 <Type>
16574 \end_layout
16575
16576 \end_inset
16577
16578  must be of the form 
16579 \begin_inset Quotes eld
16580 \end_inset
16581
16582
16583 \begin_inset Flex Code
16584 status collapsed
16585
16586 \begin_layout Plain Layout
16587
16588 \change_inserted -712698321 1356964943
16589 Caption:<name>
16590 \end_layout
16591
16592 \end_inset
16593
16594
16595 \begin_inset Quotes erd
16596 \end_inset
16597
16598 , where 
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603
16604 \change_inserted -712698321 1356964939
16605 name
16606 \end_layout
16607
16608 \end_inset
16609
16610  specifies the name of the caption as it appears in the menu.
16611  Have a look at the standard caption (
16612 \begin_inset Flex Code
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616
16617 \change_inserted -712698321 1356964987
16618 Caption:Standard
16619 \end_layout
16620
16621 \end_inset
16622
16623 ), the specific captions of the KOMA-Script classes (
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628
16629 \change_inserted -712698321 1356965018
16630 Caption:Above
16631 \end_layout
16632
16633 \end_inset
16634
16635
16636 \begin_inset Flex Code
16637 status collapsed
16638
16639 \begin_layout Plain Layout
16640
16641 \change_inserted -712698321 1356965021
16642 Caption:Below
16643 \end_layout
16644
16645 \end_inset
16646
16647 ) or the 
16648 \emph on
16649 biling
16650 \emph default
16651  module (
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656
16657 \change_inserted -712698321 1356965045
16658 Caption:Bicaption
16659 \end_layout
16660
16661 \end_inset
16662
16663 ) for applications.
16664 \change_unchanged
16665
16666 \end_layout
16667
16668 \begin_layout Standard
16669 The 
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 InsetLayout
16675 \end_layout
16676
16677 \end_inset
16678
16679  definition can contain the following entries:
16680 \end_layout
16681
16682 \begin_layout Description
16683
16684 \change_inserted -712698321 1353681390
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689
16690 \change_inserted -712698321 1353681344
16691 Argument
16692 \end_layout
16693
16694 \end_inset
16695
16696  [
16697 \begin_inset Flex Code
16698 status collapsed
16699
16700 \begin_layout Plain Layout
16701
16702 \change_inserted -712698321 1353681344
16703 int
16704 \end_layout
16705
16706 \end_inset
16707
16708 ] Defines argument number <int> of a command\SpecialChar \slash{}
16709 environment associated with
16710  the current layout.
16711  The definition must end with 
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716
16717 \change_inserted -712698321 1353681344
16718 EndArgument
16719 \end_layout
16720
16721 \end_inset
16722
16723 .
16724  See section
16725 \begin_inset space ~
16726 \end_inset
16727
16728
16729 \begin_inset CommandInset ref
16730 LatexCommand ref
16731 reference "sub:Paragraph-Styles"
16732
16733 \end_inset
16734
16735  for details.
16736 \end_layout
16737
16738 \begin_layout Description
16739
16740 \change_inserted -195340706 1333913893
16741 \begin_inset Flex Code
16742 status collapsed
16743
16744 \begin_layout Plain Layout
16745 BabelPreamble
16746 \end_layout
16747
16748 \end_inset
16749
16750  Preamble for changing languages.
16751  See section
16752 \begin_inset space ~
16753 \end_inset
16754
16755
16756 \begin_inset CommandInset ref
16757 LatexCommand ref
16758 reference "sub:I18n"
16759
16760 \end_inset
16761
16762 .
16763 \end_layout
16764
16765 \begin_layout Description
16766 \begin_inset Flex Code
16767 status collapsed
16768
16769 \begin_layout Plain Layout
16770 BgColor
16771 \end_layout
16772
16773 \end_inset
16774
16775  [
16776 \begin_inset Flex Code
16777 status collapsed
16778
16779 \begin_layout Plain Layout
16780 <name>
16781 \end_layout
16782
16783 \end_inset
16784
16785 ] The color for the inset's background.
16786  See chapter
16787 \begin_inset space ~
16788 \end_inset
16789
16790
16791 \begin_inset CommandInset ref
16792 LatexCommand ref
16793 reference "chap:Names-of-colors"
16794
16795 \end_inset
16796
16797  for a list of the available color names.
16798 \end_layout
16799
16800 \begin_layout Description
16801 \begin_inset Flex Code
16802 status collapsed
16803
16804 \begin_layout Plain Layout
16805 ContentAsLabel
16806 \end_layout
16807
16808 \end_inset
16809
16810  [
16811 \begin_inset Flex Code
16812 status collapsed
16813
16814 \begin_layout Plain Layout
16815
16816 \emph on
16817 0
16818 \end_layout
16819
16820 \end_inset
16821
16822 ,
16823 \begin_inset space \thinspace{}
16824 \end_inset
16825
16826
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 1
16832 \end_layout
16833
16834 \end_inset
16835
16836 ] Whether to use the content of the inset as the label, when the inset is
16837  closed.
16838  Default is false.
16839 \end_layout
16840
16841 \begin_layout Description
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 CopyStyle
16847 \end_layout
16848
16849 \end_inset
16850
16851  [
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 <type>
16857 \end_layout
16858
16859 \end_inset
16860
16861 ] As with paragraph styles, see sec.
16862 \begin_inset space ~
16863 \end_inset
16864
16865
16866 \begin_inset CommandInset ref
16867 LatexCommand ref
16868 reference "sub:Paragraph-Styles"
16869
16870 \end_inset
16871
16872 .
16873  Note that you need to specify the complete type, e.
16874 \begin_inset space \thinspace{}
16875 \end_inset
16876
16877 g.
16878 \begin_inset space ~
16879 \end_inset
16880
16881
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 CopyStyle Flex:<name>
16887 \end_layout
16888
16889 \end_inset
16890
16891 .
16892 \end_layout
16893
16894 \begin_layout Description
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 CustomPars
16900 \end_layout
16901
16902 \end_inset
16903
16904  [
16905 \begin_inset Flex Code
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909
16910 \emph on
16911 0
16912 \end_layout
16913
16914 \end_inset
16915
16916 ,
16917 \begin_inset space \thinspace{}
16918 \end_inset
16919
16920
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925 1
16926 \end_layout
16927
16928 \end_inset
16929
16930 ] Indicates whether the user may employ the Paragraph Settings dialog to
16931  customize the paragraph.
16932 \end_layout
16933
16934 \begin_layout Description
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 Decoration
16940 \end_layout
16941
16942 \end_inset
16943
16944  can be 
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 Classic
16950 \end_layout
16951
16952 \end_inset
16953
16954
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 Minimalistic
16960 \end_layout
16961
16962 \end_inset
16963
16964 , or 
16965 \begin_inset Flex Code
16966 status collapsed
16967
16968 \begin_layout Plain Layout
16969 Conglomerate
16970 \end_layout
16971
16972 \end_inset
16973
16974 , describing the rendering style used for the inset's frame and buttons.
16975  Footnotes generally use 
16976 \begin_inset Flex Code
16977 status collapsed
16978
16979 \begin_layout Plain Layout
16980 Classic
16981 \end_layout
16982
16983 \end_inset
16984
16985 , ERT insets generally 
16986 \begin_inset Flex Code
16987 status collapsed
16988
16989 \begin_layout Plain Layout
16990 Minimalistic
16991 \end_layout
16992
16993 \end_inset
16994
16995 , and character styles 
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 Conglomerate
17001 \end_layout
17002
17003 \end_inset
17004
17005 .
17006 \end_layout
17007
17008 \begin_layout Description
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 Display
17014 \end_layout
17015
17016 \end_inset
17017
17018  [
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 0
17024 \end_layout
17025
17026 \end_inset
17027
17028 ,
17029 \emph on
17030
17031 \begin_inset space \thinspace{}
17032 \end_inset
17033
17034
17035 \emph default
17036
17037 \begin_inset Flex Code
17038 status collapsed
17039
17040 \begin_layout Plain Layout
17041
17042 \emph on
17043 1
17044 \end_layout
17045
17046 \end_inset
17047
17048 ] Only useful if 
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 LatexType
17054 \end_layout
17055
17056 \end_inset
17057
17058  is 
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 Environment
17064 \end_layout
17065
17066 \end_inset
17067
17068 .
17069  Indicates whether the environment will stand on its own in the output or
17070  will appear inline with the surrounding text.
17071  If set to false, it is supposed that the LaTeX environment ignores white
17072  space (including one newline character) after the 
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077
17078 \backslash
17079 begin{
17080 \emph on
17081 LatexName
17082 \emph default
17083 }
17084 \end_layout
17085
17086 \end_inset
17087
17088  and 
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093
17094 \backslash
17095 end{
17096 \emph on
17097 LatexName
17098 \emph default
17099 }
17100 \end_layout
17101
17102 \end_inset
17103
17104  tags.
17105  Default is true.
17106 \end_layout
17107
17108 \begin_layout Description
17109 \begin_inset Flex Code
17110 status collapsed
17111
17112 \begin_layout Plain Layout
17113 End
17114 \end_layout
17115
17116 \end_inset
17117
17118  Required at the end of the 
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 InsetLayout
17124 \end_layout
17125
17126 \end_inset
17127
17128  declarations.
17129 \end_layout
17130
17131 \begin_layout Description
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136 Font
17137 \end_layout
17138
17139 \end_inset
17140
17141  The font used for both the text body 
17142 \emph on
17143 and
17144 \emph default
17145  the label.
17146  See section
17147 \begin_inset space ~
17148 \end_inset
17149
17150
17151 \begin_inset CommandInset ref
17152 LatexCommand ref
17153 reference "sub:Font-description"
17154
17155 \end_inset
17156
17157 .
17158  Note that defining this font automatically defines the 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 LabelFont
17164 \end_layout
17165
17166 \end_inset
17167
17168  to the same value, so define this first and define 
17169 \begin_inset Flex Code
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173 LabelFont
17174 \end_layout
17175
17176 \end_inset
17177
17178  later if you want them to be different.
17179 \change_inserted 155139281 1354130923
17180
17181 \end_layout
17182
17183 \begin_layout Description
17184
17185 \change_inserted 155139281 1354130923
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190
17191 \change_inserted 155139281 1354130923
17192 ForceLocalFontSwitch
17193 \end_layout
17194
17195 \end_inset
17196
17197  [
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202
17203 \change_inserted 155139281 1354130923
17204
17205 \emph on
17206 0
17207 \end_layout
17208
17209 \end_inset
17210
17211 ,
17212 \begin_inset Flex Code
17213 status collapsed
17214
17215 \begin_layout Plain Layout
17216
17217 \change_inserted 155139281 1354130923
17218 1
17219 \end_layout
17220
17221 \end_inset
17222
17223 ] When using babel, always use a local font switch (
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228
17229 \change_inserted 155139281 1354130923
17230
17231 \backslash
17232 foreignlanguage
17233 \end_layout
17234
17235 \end_inset
17236
17237 ), never a global one (such as 
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242
17243 \change_inserted 155139281 1354130923
17244
17245 \backslash
17246 selectlanguage
17247 \end_layout
17248
17249 \end_inset
17250
17251 ).
17252 \change_unchanged
17253
17254 \end_layout
17255
17256 \begin_layout Description
17257 \begin_inset Flex Code
17258 status collapsed
17259
17260 \begin_layout Plain Layout
17261 ForceLTR
17262 \end_layout
17263
17264 \end_inset
17265
17266  [
17267 \begin_inset Flex Code
17268 status collapsed
17269
17270 \begin_layout Plain Layout
17271
17272 \emph on
17273 0
17274 \end_layout
17275
17276 \end_inset
17277
17278 ,
17279 \begin_inset space \thinspace{}
17280 \end_inset
17281
17282
17283 \begin_inset Flex Code
17284 status collapsed
17285
17286 \begin_layout Plain Layout
17287 1
17288 \end_layout
17289
17290 \end_inset
17291
17292 ] Force the 
17293 \begin_inset Quotes eld
17294 \end_inset
17295
17296 latex
17297 \begin_inset Quotes erd
17298 \end_inset
17299
17300  language, leading to Left-to-Right (Latin) output, e.
17301 \begin_inset space \thinspace{}
17302 \end_inset
17303
17304 g.
17305 \begin_inset space \space{}
17306 \end_inset
17307
17308 in TeX code or URL.
17309  A kludge.
17310 \end_layout
17311
17312 \begin_layout Description
17313 \begin_inset Flex Code
17314 status collapsed
17315
17316 \begin_layout Plain Layout
17317 ForcePlain
17318 \end_layout
17319
17320 \end_inset
17321
17322  [
17323 \begin_inset Flex Code
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327
17328 \emph on
17329 0
17330 \end_layout
17331
17332 \end_inset
17333
17334 ,
17335 \begin_inset space \thinspace{}
17336 \end_inset
17337
17338
17339 \begin_inset Flex Code
17340 status collapsed
17341
17342 \begin_layout Plain Layout
17343 1
17344 \end_layout
17345
17346 \end_inset
17347
17348 ] Indicates whether the 
17349 \begin_inset Flex Code
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 PlainLayout
17354 \end_layout
17355
17356 \end_inset
17357
17358  should be used or, instead, the user can change the paragraph style used
17359  in the inset.
17360  Default is false.
17361 \end_layout
17362
17363 \begin_layout Description
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368 FreeSpacing
17369 \end_layout
17370
17371 \end_inset
17372
17373  [
17374 \begin_inset Flex Code
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378
17379 \emph on
17380 0
17381 \end_layout
17382
17383 \end_inset
17384
17385 ,
17386 \begin_inset space \thinspace{}
17387 \end_inset
17388
17389
17390 \begin_inset Flex Code
17391 status collapsed
17392
17393 \begin_layout Plain Layout
17394 1
17395 \end_layout
17396
17397 \end_inset
17398
17399 ] As with paragraph styles, see sec.
17400 \begin_inset space ~
17401 \end_inset
17402
17403
17404 \begin_inset CommandInset ref
17405 LatexCommand ref
17406 reference "sub:Paragraph-Styles"
17407
17408 \end_inset
17409
17410 .
17411 \end_layout
17412
17413 \begin_layout Description
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 HTML*
17419 \end_layout
17420
17421 \end_inset
17422
17423  These tags control the XHTML output.
17424  See section
17425 \begin_inset space ~
17426 \end_inset
17427
17428
17429 \begin_inset CommandInset ref
17430 LatexCommand ref
17431 reference "sec:Tags-for-XHTML"
17432
17433 \end_inset
17434
17435 .
17436 \end_layout
17437
17438 \begin_layout Description
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 InToc
17444 \end_layout
17445
17446 \end_inset
17447
17448  [
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453
17454 \emph on
17455 0
17456 \end_layout
17457
17458 \end_inset
17459
17460 ,
17461 \begin_inset space \thinspace{}
17462 \end_inset
17463
17464
17465 \begin_inset Flex Code
17466 status collapsed
17467
17468 \begin_layout Plain Layout
17469 1
17470 \end_layout
17471
17472 \end_inset
17473
17474 ] Whether to include the contents of this inset in the strings generated
17475  for the `Outline' pane.
17476  One would not, for example, want the content of a footnote in a section
17477  header to be included in the TOC displayed in the outline, but one would
17478  normally want the content of a character style displayed.
17479  Default is false: not to include.
17480 \end_layout
17481
17482 \begin_layout Description
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 KeepEmpty
17488 \end_layout
17489
17490 \end_inset
17491
17492  [
17493 \emph on
17494
17495 \begin_inset Flex Code
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499 0
17500 \end_layout
17501
17502 \end_inset
17503
17504
17505 \emph default
17506 ,
17507 \begin_inset space \thinspace{}
17508 \end_inset
17509
17510
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515 1
17516 \end_layout
17517
17518 \end_inset
17519
17520 ] As with paragraph styles, see sec.
17521 \begin_inset space ~
17522 \end_inset
17523
17524
17525 \begin_inset CommandInset ref
17526 LatexCommand ref
17527 reference "sub:Paragraph-Styles"
17528
17529 \end_inset
17530
17531 .
17532 \end_layout
17533
17534 \begin_layout Description
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 LabelFont
17540 \end_layout
17541
17542 \end_inset
17543
17544  The font used for the label.
17545  See section
17546 \begin_inset space ~
17547 \end_inset
17548
17549
17550 \begin_inset CommandInset ref
17551 LatexCommand ref
17552 reference "sub:Font-description"
17553
17554 \end_inset
17555
17556 .
17557  Note that this definition can never appear before 
17558 \begin_inset Flex Code
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562 Font
17563 \end_layout
17564
17565 \end_inset
17566
17567 , lest it be ineffective.
17568 \end_layout
17569
17570 \begin_layout Description
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 LabelString
17576 \end_layout
17577
17578 \end_inset
17579
17580  [
17581 \begin_inset Flex Code
17582 status collapsed
17583
17584 \begin_layout Plain Layout
17585 string
17586 \end_layout
17587
17588 \end_inset
17589
17590 =
17591 \begin_inset Quotes erd
17592 \end_inset
17593
17594
17595 \begin_inset Quotes erd
17596 \end_inset
17597
17598 ] What will be displayed on the button or elsewhere as the inset label.
17599  Some inset types (
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 TeX code
17605 \end_layout
17606
17607 \end_inset
17608
17609  and 
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 Branch
17615 \end_layout
17616
17617 \end_inset
17618
17619 ) modify this label on the fly.
17620 \end_layout
17621
17622 \begin_layout Description
17623
17624 \change_inserted -195340706 1333913893
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 LangPreamble
17630 \end_layout
17631
17632 \end_inset
17633
17634  Language dependent preamble.
17635  See section
17636 \begin_inset space ~
17637 \end_inset
17638
17639
17640 \begin_inset CommandInset ref
17641 LatexCommand ref
17642 reference "sub:I18n"
17643
17644 \end_inset
17645
17646 .
17647 \end_layout
17648
17649 \begin_layout Description
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 LatexName
17655 \end_layout
17656
17657 \end_inset
17658
17659  [
17660 \begin_inset Flex Code
17661 status collapsed
17662
17663 \begin_layout Plain Layout
17664 <name>
17665 \end_layout
17666
17667 \end_inset
17668
17669 ] The name of the corresponding LaTeX stuff.
17670  Either the environment or command name.
17671 \end_layout
17672
17673 \begin_layout Description
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 LatexParam
17679 \end_layout
17680
17681 \end_inset
17682
17683  [
17684 \begin_inset Flex Code
17685 status collapsed
17686
17687 \begin_layout Plain Layout
17688 <parameter>
17689 \end_layout
17690
17691 \end_inset
17692
17693 ] The optional parameter for the corresponding 
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 LatexName
17699 \end_layout
17700
17701 \end_inset
17702
17703  stuff, including possible bracket pairs like 
17704 \begin_inset Flex Code
17705 status collapsed
17706
17707 \begin_layout Plain Layout
17708 []
17709 \end_layout
17710
17711 \end_inset
17712
17713 .
17714  
17715 \change_inserted -712698321 1355144715
17716 This will be output as is after all LaTeX 
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721
17722 \change_inserted -712698321 1355144713
17723 Arguments
17724 \end_layout
17725
17726 \end_inset
17727
17728 .
17729  
17730 \change_unchanged
17731 This parameter cannot be changed from within LyX
17732 \change_inserted -712698321 1355144775
17733  (use 
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738
17739 \change_inserted -712698321 1355144747
17740 Argument
17741 \end_layout
17742
17743 \end_inset
17744
17745  for customizable parameters)
17746 \change_unchanged
17747 .
17748 \end_layout
17749
17750 \begin_layout Description
17751 \begin_inset Flex Code
17752 status collapsed
17753
17754 \begin_layout Plain Layout
17755 LatexType
17756 \end_layout
17757
17758 \end_inset
17759
17760  [
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765
17766 \change_deleted -712698321 1353867544
17767
17768 \emph on
17769 Paragraph
17770 \emph default
17771
17772 \change_unchanged
17773 Command, Environment, 
17774 \change_inserted -712698321 1353867573
17775 None
17776 \change_deleted -712698321 1353867557
17777 Item_Environment,
17778 \change_unchanged
17779
17780 \end_layout
17781
17782 \end_inset
17783
17784  
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789
17790 \change_deleted -712698321 1353867564
17791 List_Environment
17792 \change_unchanged
17793
17794 \change_deleted -712698321 1353867569
17795 Bib_Environment
17796 \change_unchanged
17797
17798 \end_layout
17799
17800 \end_inset
17801
17802 ] How the style should be translated into LaTeX.
17803 \begin_inset Foot
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 \begin_inset Flex Code
17808 status collapsed
17809
17810 \begin_layout Plain Layout
17811 LatexType
17812 \end_layout
17813
17814 \end_inset
17815
17816  is perhaps a bit misleading, since these rules apply to SGML classes, too.
17817  Visit the SGML class files for specific examples.
17818 \end_layout
17819
17820 \end_inset
17821
17822
17823 \end_layout
17824
17825 \begin_deeper
17826 \begin_layout Description
17827 \begin_inset Flex Code
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831
17832 \change_deleted -712698321 1353867582
17833 Paragraph
17834 \change_inserted -712698321 1353867583
17835 None
17836 \change_unchanged
17837
17838 \end_layout
17839
17840 \end_inset
17841
17842  means nothing special.
17843  
17844 \end_layout
17845
17846 \begin_layout Description
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851 Command
17852 \end_layout
17853
17854 \end_inset
17855
17856  means 
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861
17862 \backslash
17863
17864 \emph on
17865 LatexName
17866 \emph default
17867 {\SpecialChar \ldots{}
17868 }
17869 \end_layout
17870
17871 \end_inset
17872
17873 .
17874 \end_layout
17875
17876 \begin_layout Description
17877 \begin_inset Flex Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 Environment
17882 \end_layout
17883
17884 \end_inset
17885
17886  means 
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891
17892 \backslash
17893 begin{
17894 \emph on
17895 LatexName
17896 \emph default
17897 }\SpecialChar \ldots{}
17898
17899 \backslash
17900 end{
17901 \emph on
17902 LatexName
17903 \emph default
17904 }
17905 \end_layout
17906
17907 \end_inset
17908
17909 .
17910  
17911 \end_layout
17912
17913 \begin_layout Description
17914
17915 \change_deleted -712698321 1353867600
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 Item_Environment
17921 \end_layout
17922
17923 \end_inset
17924
17925  is the same as 
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 Environment
17931 \end_layout
17932
17933 \end_inset
17934
17935 , except that an 
17936 \begin_inset Flex Code
17937 status collapsed
17938
17939 \begin_layout Plain Layout
17940
17941 \backslash
17942 item
17943 \end_layout
17944
17945 \end_inset
17946
17947  is generated for each paragraph of this environment.
17948  
17949 \end_layout
17950
17951 \begin_layout Description
17952
17953 \change_deleted -712698321 1353867600
17954 \begin_inset Flex Code
17955 status collapsed
17956
17957 \begin_layout Plain Layout
17958 List_Environment
17959 \end_layout
17960
17961 \end_inset
17962
17963  is the same as 
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 Item_Environment
17969 \end_layout
17970
17971 \end_inset
17972
17973 , except that 
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 LabelWidthString
17979 \end_layout
17980
17981 \end_inset
17982
17983  is passed as an argument to the environment.
17984  
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 LabelWidthString
17990 \end_layout
17991
17992 \end_inset
17993
17994  can be defined in the 
17995 \begin_inset Flex MenuItem
17996 status collapsed
17997
17998 \begin_layout Plain Layout
17999
18000 \bar under
18001 Edit
18002 \bar default
18003 \SpecialChar \menuseparator
18004
18005 \bar under
18006 P
18007 \bar default
18008 aragraph
18009 \begin_inset space ~
18010 \end_inset
18011
18012 settings
18013 \end_layout
18014
18015 \end_inset
18016
18017  dialog.
18018  
18019 \change_unchanged
18020
18021 \end_layout
18022
18023 \begin_layout Standard
18024 Putting the last few things together, the LaTeX output will be either: 
18025 \end_layout
18026
18027 \begin_layout LyX-Code
18028
18029 \backslash
18030
18031 \change_deleted 2090807402 1356919073
18032 latexname
18033 \change_inserted 2090807402 1356919073
18034 LatexName
18035 \change_unchanged
18036 [
18037 \change_deleted 2090807402 1356919073
18038 latexparam
18039 \change_inserted 2090807402 1356919002
18040 LatexParam
18041 \change_unchanged
18042 ]{\SpecialChar \ldots{}
18043 }
18044 \end_layout
18045
18046 \begin_layout Standard
18047 or: 
18048 \end_layout
18049
18050 \begin_layout LyX-Code
18051
18052 \backslash
18053 begin{
18054 \change_deleted 2090807402 1356919013
18055 latexname
18056 \change_inserted 2090807402 1356919014
18057 LatexName
18058 \change_unchanged
18059 }[
18060 \change_deleted 2090807402 1356919013
18061 latexparam
18062 \change_inserted 2090807402 1356919008
18063 LatexParam
18064 \change_unchanged
18065 ] \SpecialChar \ldots{}
18066  
18067 \backslash
18068 end{
18069 \change_deleted 2090807402 1356919016
18070 latexname
18071 \change_inserted 2090807402 1356919016
18072 LatexName
18073 \change_unchanged
18074 }.
18075 \end_layout
18076
18077 \begin_layout Standard
18078 depending upon the LaTeX type.
18079 \end_layout
18080
18081 \end_deeper
18082 \begin_layout Description
18083
18084 \change_inserted -712698321 1354263128
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089
18090 \change_inserted -712698321 1353866742
18091 LeftDelim
18092 \change_unchanged
18093
18094 \end_layout
18095
18096 \end_inset
18097
18098  [
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103
18104 \change_inserted -712698321 1353866752
18105 string
18106 \end_layout
18107
18108 \end_inset
18109
18110 ] A string that is put at the beginning of the layout content.
18111  A line break in the output can be indicated by 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116
18117 \change_inserted -712698321 1354263128
18118 <br/>
18119 \end_layout
18120
18121 \end_inset
18122
18123 .
18124 \change_unchanged
18125
18126 \end_layout
18127
18128 \begin_layout Description
18129 \begin_inset Flex Code
18130 status collapsed
18131
18132 \begin_layout Plain Layout
18133 LyxType
18134 \end_layout
18135
18136 \end_inset
18137
18138  Can be 
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 charstyle
18144 \end_layout
18145
18146 \end_inset
18147
18148
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 custom
18154 \end_layout
18155
18156 \end_inset
18157
18158
18159 \begin_inset Flex Code
18160 status collapsed
18161
18162 \begin_layout Plain Layout
18163 element
18164 \end_layout
18165
18166 \end_inset
18167
18168  or 
18169 \begin_inset Flex Code
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 end
18174 \end_layout
18175
18176 \end_inset
18177
18178  (indicating a dummy definition ending definitions of charstyles, etc).
18179  This entry is required in and is only meaningful for Flex insets.
18180  Among other things, it determines on which menu this inset will appear.
18181  Setting 
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 LyXType
18187 \end_layout
18188
18189 \end_inset
18190
18191  to 
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196 charstyle
18197 \end_layout
18198
18199 \end_inset
18200
18201  will automatically set 
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 MultiPar
18207 \end_layout
18208
18209 \end_inset
18210
18211  to false.
18212  
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 MultiPar
18218 \end_layout
18219
18220 \end_inset
18221
18222  can be set to true for 
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 charstyle
18228 \end_layout
18229
18230 \end_inset
18231
18232  insets by setting it 
18233 \emph on
18234 after
18235 \emph default
18236  you set the 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 LyXType
18242 \end_layout
18243
18244 \end_inset
18245
18246 .
18247 \end_layout
18248
18249 \begin_layout Description
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 MultiPar
18255 \end_layout
18256
18257 \end_inset
18258
18259  [
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264
18265 \emph on
18266 0
18267 \end_layout
18268
18269 \end_inset
18270
18271 ,
18272 \begin_inset space \thinspace{}
18273 \end_inset
18274
18275
18276 \begin_inset Flex Code
18277 status collapsed
18278
18279 \begin_layout Plain Layout
18280 1
18281 \end_layout
18282
18283 \end_inset
18284
18285 ] Whether multiple paragraphs are permitted in this inset.
18286  This will also set 
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 CustomPars
18292 \end_layout
18293
18294 \end_inset
18295
18296  to the same value and 
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 ForcePlain
18302 \end_layout
18303
18304 \end_inset
18305
18306  to the opposite value.
18307  These can be reset to other values, if they are used 
18308 \emph on
18309 after
18310 \emph default
18311  
18312 \begin_inset Flex Code
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316 MultiPar
18317 \end_layout
18318
18319 \end_inset
18320
18321 .
18322  Default is true.
18323 \end_layout
18324
18325 \begin_layout Description
18326 \begin_inset Flex Code
18327 status collapsed
18328
18329 \begin_layout Plain Layout
18330 NeedProtect
18331 \end_layout
18332
18333 \end_inset
18334
18335  [
18336 \begin_inset Flex Code
18337 status collapsed
18338
18339 \begin_layout Plain Layout
18340
18341 \emph on
18342 0
18343 \end_layout
18344
18345 \end_inset
18346
18347 ,
18348 \begin_inset space \thinspace{}
18349 \end_inset
18350
18351
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 1
18357 \end_layout
18358
18359 \end_inset
18360
18361 ] Whether fragile commands in this inset should be 
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366
18367 \backslash
18368 protect
18369 \end_layout
18370
18371 \end_inset
18372
18373 'ed.
18374  (Note: This is 
18375 \emph on
18376 not
18377 \emph default
18378  whether the command should itself be protected.) Default is false.
18379 \end_layout
18380
18381 \begin_layout Description
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 ParbreakIsNewline
18387 \end_layout
18388
18389 \end_inset
18390
18391  [
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396
18397 \emph on
18398 0
18399 \end_layout
18400
18401 \end_inset
18402
18403 ,
18404 \begin_inset space \thinspace{}
18405 \end_inset
18406
18407
18408 \begin_inset Flex Code
18409 status collapsed
18410
18411 \begin_layout Plain Layout
18412 1
18413 \end_layout
18414
18415 \end_inset
18416
18417 ] As with paragraph styles, see sec.
18418 \begin_inset space ~
18419 \end_inset
18420
18421
18422 \begin_inset CommandInset ref
18423 LatexCommand ref
18424 reference "sub:Paragraph-Styles"
18425
18426 \end_inset
18427
18428 .
18429  Default is false.
18430 \end_layout
18431
18432 \begin_layout Description
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437 PassThru
18438 \end_layout
18439
18440 \end_inset
18441
18442  [
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447
18448 \emph on
18449 0
18450 \end_layout
18451
18452 \end_inset
18453
18454 ,
18455 \begin_inset space \thinspace{}
18456 \end_inset
18457
18458
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 1
18464 \end_layout
18465
18466 \end_inset
18467
18468 ] As with paragraph styles, see sec.
18469 \begin_inset space ~
18470 \end_inset
18471
18472
18473 \begin_inset CommandInset ref
18474 LatexCommand ref
18475 reference "sub:Paragraph-Styles"
18476
18477 \end_inset
18478
18479 .
18480  Default is false.
18481 \end_layout
18482
18483 \begin_layout Description
18484 \begin_inset Flex Code
18485 status collapsed
18486
18487 \begin_layout Plain Layout
18488 Preamble
18489 \end_layout
18490
18491 \end_inset
18492
18493  As with paragraph styles, see sec.
18494 \begin_inset space ~
18495 \end_inset
18496
18497
18498 \begin_inset CommandInset ref
18499 LatexCommand ref
18500 reference "sub:Paragraph-Styles"
18501
18502 \end_inset
18503
18504 .
18505 \end_layout
18506
18507 \begin_layout Description
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 RefPrefix
18513 \end_layout
18514
18515 \end_inset
18516
18517  [
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 string
18523 \end_layout
18524
18525 \end_inset
18526
18527 ] The prefix to use when creating labels referring to insets of this type.
18528  This allows the use of formatted references.
18529 \end_layout
18530
18531 \begin_layout Description
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 Requires
18537 \end_layout
18538
18539 \end_inset
18540
18541  [
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 string
18547 \end_layout
18548
18549 \end_inset
18550
18551 ] As with paragraph styles, see sec.
18552 \begin_inset space ~
18553 \end_inset
18554
18555
18556 \begin_inset CommandInset ref
18557 LatexCommand ref
18558 reference "sub:Paragraph-Styles"
18559
18560 \end_inset
18561
18562 .
18563 \change_inserted -712698321 1354439699
18564
18565 \end_layout
18566
18567 \begin_layout Description
18568
18569 \change_inserted -712698321 1354439705
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574
18575 \change_inserted -712698321 1354439699
18576 ResetArgs
18577 \end_layout
18578
18579 \end_inset
18580
18581  [
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586
18587 \change_inserted -712698321 1354439699
18588
18589 \emph on
18590 0
18591 \end_layout
18592
18593 \end_inset
18594
18595 ,
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600
18601 \change_inserted -712698321 1354439699
18602 1
18603 \end_layout
18604
18605 \end_inset
18606
18607 ] Resets the LaTeX arguments of this layout (as defined via the 
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612
18613 \change_inserted -712698321 1354439699
18614 Argument
18615 \end_layout
18616
18617 \end_inset
18618
18619  tag).
18620  This is useful if you have copied a style via 
18621 \begin_inset Flex Code
18622 status collapsed
18623
18624 \begin_layout Plain Layout
18625
18626 \change_inserted -712698321 1354439699
18627 CopyStyle
18628 \end_layout
18629
18630 \end_inset
18631
18632 , but you do not want to inherit its (required and optional) arguments.
18633
18634 \change_deleted -712698321 1354439698
18635  
18636 \change_unchanged
18637
18638 \end_layout
18639
18640 \begin_layout Description
18641 \begin_inset Flex Code
18642 status collapsed
18643
18644 \begin_layout Plain Layout
18645 ResetsFont
18646 \end_layout
18647
18648 \end_inset
18649
18650  [
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 0
18656 \end_layout
18657
18658 \end_inset
18659
18660 ,
18661 \begin_inset space \thinspace{}
18662 \end_inset
18663
18664
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669
18670 \emph on
18671 1
18672 \end_layout
18673
18674 \end_inset
18675
18676 ] Whether this inset should use the font of its surrounding environment
18677  or uses its own.
18678  Default is true: uses its own.
18679 \end_layout
18680
18681 \begin_layout Description
18682
18683 \change_inserted -712698321 1354263134
18684 \begin_inset Flex Code
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688
18689 \change_inserted -712698321 1353866810
18690 RightDelim
18691 \end_layout
18692
18693 \end_inset
18694
18695  [
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700
18701 \change_inserted -712698321 1353866806
18702 string
18703 \end_layout
18704
18705 \end_inset
18706
18707 ] A string that is put at the end of the layout content.
18708  A line break in the output can be indicated by 
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713
18714 \change_inserted -712698321 1354263134
18715 <br/>
18716 \end_layout
18717
18718 \end_inset
18719
18720 .
18721 \change_unchanged
18722
18723 \end_layout
18724
18725 \begin_layout Description
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 Spellcheck
18731 \end_layout
18732
18733 \end_inset
18734
18735  [
18736 \begin_inset Flex Code
18737 status collapsed
18738
18739 \begin_layout Plain Layout
18740 0
18741 \end_layout
18742
18743 \end_inset
18744
18745 ,
18746 \begin_inset space \thinspace{}
18747 \end_inset
18748
18749
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754
18755 \emph on
18756 1
18757 \end_layout
18758
18759 \end_inset
18760
18761 ] Allow spell-checking the contents of this inset.
18762  Default is true.
18763 \end_layout
18764
18765 \begin_layout Subsection
18766 Counters
18767 \begin_inset CommandInset label
18768 LatexCommand label
18769 name "sub:Counters"
18770
18771 \end_inset
18772
18773
18774 \end_layout
18775
18776 \begin_layout Standard
18777 It is necessary to define the counters (
18778 \begin_inset Flex MenuItem
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 chapter
18783 \end_layout
18784
18785 \end_inset
18786
18787
18788 \begin_inset Flex MenuItem
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 figure
18793 \end_layout
18794
18795 \end_inset
18796
18797 , \SpecialChar \ldots{}
18798 ) in the text class itself.
18799  The standard counters are defined in the file 
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 stdcounters.inc
18805 \end_layout
18806
18807 \end_inset
18808
18809 , so you may have to do no more than add
18810 \end_layout
18811
18812 \begin_layout LyX-Code
18813 Input stdcounters.inc
18814 \end_layout
18815
18816 \begin_layout Standard
18817 to your layout file to get them to work.
18818  But if you want to define custom counters, then you can do so.
18819  The counter declaration must begin with:
18820 \end_layout
18821
18822 \begin_layout LyX-Code
18823 Counter CounterName
18824 \end_layout
18825
18826 \begin_layout Standard
18827 where of course `
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 CounterName
18833 \end_layout
18834
18835 \end_inset
18836
18837 ' is replaced by the name of the counter.
18838  And it must end with 
18839 \begin_inset Quotes eld
18840 \end_inset
18841
18842
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 End
18848 \end_layout
18849
18850 \end_inset
18851
18852
18853 \begin_inset Quotes erd
18854 \end_inset
18855
18856 .
18857  The following parameters can also be used:
18858 \end_layout
18859
18860 \begin_layout Description
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 LabelString
18866 \end_layout
18867
18868 \end_inset
18869
18870  [
18871 \begin_inset Flex Code
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 string
18876 \end_layout
18877
18878 \end_inset
18879
18880 =
18881 \begin_inset Quotes erd
18882 \end_inset
18883
18884
18885 \begin_inset Quotes erd
18886 \end_inset
18887
18888 ] When defined, this string defines how the counter is displayed.
18889  Setting this value sets 
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 LabelStringAppendix
18895 \end_layout
18896
18897 \end_inset
18898
18899  to the same value.
18900  The following special constructs can be used in the string:
18901 \end_layout
18902
18903 \begin_deeper
18904 \begin_layout Itemize
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909
18910 \backslash
18911 thecounter
18912 \end_layout
18913
18914 \end_inset
18915
18916  will be replaced by the expansion of the 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 LabelString
18922 \end_layout
18923
18924 \end_inset
18925
18926  (or 
18927 \begin_inset Flex Code
18928 status collapsed
18929
18930 \begin_layout Plain Layout
18931 LabelStringAppendix
18932 \end_layout
18933
18934 \end_inset
18935
18936 ) of the counter 
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 counter
18942 \end_layout
18943
18944 \end_inset
18945
18946 .
18947  
18948 \end_layout
18949
18950 \begin_layout Itemize
18951 counter values can be expressed using LaTeX-like macros
18952 \begin_inset Newline newline
18953 \end_inset
18954
18955
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960
18961 \backslash
18962
18963 \emph on
18964 numbertype
18965 \emph default
18966 {
18967 \emph on
18968 counter
18969 \emph default
18970 }
18971 \end_layout
18972
18973 \end_inset
18974
18975 , where 
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980
18981 \emph on
18982 numbertype
18983 \end_layout
18984
18985 \end_inset
18986
18987  can be:
18988 \begin_inset Foot
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992
18993 \family roman
18994 \series medium
18995 \shape up
18996 \size normal
18997 \emph off
18998 \bar no
18999 \noun off
19000 \color none
19001 Actually, the situation is a bit more complicated: any
19002 \family default
19003 \series default
19004 \shape default
19005 \emph default
19006 \bar default
19007  
19008 \size default
19009 \emph on
19010 \noun default
19011 \color inherit
19012 numbertype
19013 \family roman
19014 \series medium
19015 \shape up
19016 \size normal
19017 \emph off
19018 \bar no
19019 \noun off
19020  other than those described below will produce arabic numerals.
19021  It would not be surprising to see this change in the future.
19022 \end_layout
19023
19024 \end_inset
19025
19026  
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 arabic
19032 \end_layout
19033
19034 \end_inset
19035
19036 : 1, 2, 3,\SpecialChar \ldots{}
19037
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 alph
19043 \end_layout
19044
19045 \end_inset
19046
19047  for lower-case letters: a, b, c, \SpecialChar \ldots{}
19048
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 Alph
19054 \end_layout
19055
19056 \end_inset
19057
19058  for upper-case letters: A, B, C, \SpecialChar \ldots{}
19059
19060 \begin_inset Flex Code
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 roman
19065 \end_layout
19066
19067 \end_inset
19068
19069  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
19070
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 Roman
19076 \end_layout
19077
19078 \end_inset
19079
19080  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
19081
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 hebrew
19087 \end_layout
19088
19089 \end_inset
19090
19091  for hebrew numerals.
19092 \end_layout
19093
19094 \end_deeper
19095 \begin_layout Standard
19096 If LabelString is not defined, a default value is constructed as follows:
19097  if the counter has a master counter 
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 master
19103 \end_layout
19104
19105 \end_inset
19106
19107  (defined via 
19108 \begin_inset Flex Code
19109 status collapsed
19110
19111 \begin_layout Plain Layout
19112 Within
19113 \end_layout
19114
19115 \end_inset
19116
19117 ), the string
19118 \begin_inset Newline newline
19119 \end_inset
19120
19121
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126
19127 \backslash
19128 themaster.
19129 \backslash
19130 arabic{counter}
19131 \end_layout
19132
19133 \end_inset
19134
19135  is used; otherwise the string 
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140
19141 \backslash
19142 arabic{counter}
19143 \end_layout
19144
19145 \end_inset
19146
19147  is used.
19148 \end_layout
19149
19150 \begin_layout Description
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 LabelStringAppendix
19156 \end_layout
19157
19158 \end_inset
19159
19160  [
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 string
19166 \end_layout
19167
19168 \end_inset
19169
19170 =
19171 \begin_inset Quotes erd
19172 \end_inset
19173
19174
19175 \begin_inset Quotes erd
19176 \end_inset
19177
19178 ] Same as 
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 LabelString
19184 \end_layout
19185
19186 \end_inset
19187
19188 , but for use in the Appendix.
19189 \end_layout
19190
19191 \begin_layout Description
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 PrettyFormat
19197 \end_layout
19198
19199 \end_inset
19200
19201  [
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 string
19207 \end_layout
19208
19209 \end_inset
19210
19211 =
19212 \begin_inset Quotes erd
19213 \end_inset
19214
19215
19216 \begin_inset Quotes erd
19217 \end_inset
19218
19219 ] A format for use with formatted references to this counter.
19220  For example, one might want to have references to section numbers appear
19221  as 
19222 \begin_inset Quotes eld
19223 \end_inset
19224
19225 Section 2.4
19226 \begin_inset Quotes erd
19227 \end_inset
19228
19229 .
19230  The string should contain 
19231 \begin_inset Quotes eld
19232 \end_inset
19233
19234 ##
19235 \begin_inset Quotes erd
19236 \end_inset
19237
19238 .
19239  This will be replaced by the counter number itself.
19240  So, for sections, it would be: Section ##.
19241 \end_layout
19242
19243 \begin_layout Description
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 Within
19249 \end_layout
19250
19251 \end_inset
19252
19253  [
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 string
19259 \end_layout
19260
19261 \end_inset
19262
19263 =
19264 \begin_inset Quotes erd
19265 \end_inset
19266
19267
19268 \begin_inset Quotes erd
19269 \end_inset
19270
19271 ] If this is set to the name of another counter, the present counter will
19272  be reset every time the other one is increased.
19273  For example, 
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 subsection
19279 \end_layout
19280
19281 \end_inset
19282
19283  is numbered inside 
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 section
19289 \end_layout
19290
19291 \end_inset
19292
19293 .
19294 \end_layout
19295
19296 \begin_layout Subsection
19297 Font description
19298 \begin_inset CommandInset label
19299 LatexCommand label
19300 name "sub:Font-description"
19301
19302 \end_inset
19303
19304
19305 \end_layout
19306
19307 \begin_layout Standard
19308 A font description looks like this:
19309 \end_layout
19310
19311 \begin_layout LyX-Code
19312 Font 
19313 \family roman
19314 \emph on
19315 or
19316 \family default
19317 \emph default
19318  LabelFont
19319 \emph on
19320  or
19321 \emph default
19322  DefaultFont
19323 \end_layout
19324
19325 \begin_layout LyX-Code
19326  ...
19327 \end_layout
19328
19329 \begin_layout LyX-Code
19330 EndFont
19331 \end_layout
19332
19333 \begin_layout Standard
19334 The following commands are available:
19335 \end_layout
19336
19337 \begin_layout Description
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342 Color
19343 \end_layout
19344
19345 \end_inset
19346
19347  [
19348 \begin_inset Flex Code
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352
19353 \emph on
19354 none
19355 \end_layout
19356
19357 \end_inset
19358
19359
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 black
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 white
19375 \end_layout
19376
19377 \end_inset
19378
19379
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 red
19385 \end_layout
19386
19387 \end_inset
19388
19389
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 green
19395 \end_layout
19396
19397 \end_inset
19398
19399
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404 blue
19405 \end_layout
19406
19407 \end_inset
19408
19409
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 cyan
19415 \end_layout
19416
19417 \end_inset
19418
19419
19420 \begin_inset Flex Code
19421 status collapsed
19422
19423 \begin_layout Plain Layout
19424 magenta
19425 \end_layout
19426
19427 \end_inset
19428
19429
19430 \begin_inset Flex Code
19431 status collapsed
19432
19433 \begin_layout Plain Layout
19434 yellow
19435 \end_layout
19436
19437 \end_inset
19438
19439 ]
19440 \end_layout
19441
19442 \begin_layout Description
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Family
19448 \end_layout
19449
19450 \end_inset
19451
19452  [
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457
19458 \emph on
19459 Roman
19460 \end_layout
19461
19462 \end_inset
19463
19464
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 Sans
19470 \end_layout
19471
19472 \end_inset
19473
19474
19475 \begin_inset Flex Code
19476 status collapsed
19477
19478 \begin_layout Plain Layout
19479 Typewriter
19480 \end_layout
19481
19482 \end_inset
19483
19484 ]
19485 \end_layout
19486
19487 \begin_layout Description
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 Misc
19493 \end_layout
19494
19495 \end_inset
19496
19497  [
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 string
19503 \end_layout
19504
19505 \end_inset
19506
19507 ] Valid arguments are: 
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 emph
19513 \end_layout
19514
19515 \end_inset
19516
19517
19518 \begin_inset Flex Code
19519 status collapsed
19520
19521 \begin_layout Plain Layout
19522 noun
19523 \end_layout
19524
19525 \end_inset
19526
19527
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 strikeout
19533 \end_layout
19534
19535 \end_inset
19536
19537
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 underbar
19543 \end_layout
19544
19545 \end_inset
19546
19547
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 uuline
19553 \end_layout
19554
19555 \end_inset
19556
19557
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 uwave
19563 \end_layout
19564
19565 \end_inset
19566
19567
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 no_emph
19573 \end_layout
19574
19575 \end_inset
19576
19577
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 no_noun
19583 \end_layout
19584
19585 \end_inset
19586
19587
19588 \begin_inset Flex Code
19589 status collapsed
19590
19591 \begin_layout Plain Layout
19592 no_strikeout
19593 \end_layout
19594
19595 \end_inset
19596
19597
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602 no_bar
19603 \end_layout
19604
19605 \end_inset
19606
19607
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612 no_uuline
19613 \end_layout
19614
19615 \end_inset
19616
19617  and 
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 no_uwave
19623 \end_layout
19624
19625 \end_inset
19626
19627 .
19628  Each of these turns on or off the corresponding attribute.
19629  For example, 
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 emph
19635 \end_layout
19636
19637 \end_inset
19638
19639  turns on emphasis, and 
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 no_emph
19645 \end_layout
19646
19647 \end_inset
19648
19649  turns it off.
19650  
19651 \begin_inset Newline newline
19652 \end_inset
19653
19654 If the latter seems puzzling, remember that the font settings for the present
19655  context are generally inherited from the surrounding context.
19656  So 
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 no_emph
19662 \end_layout
19663
19664 \end_inset
19665
19666  would turn off the emphasis that was anyway in effect, say, in a theorem
19667  environment.
19668 \end_layout
19669
19670 \begin_layout Description
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 Series
19676 \end_layout
19677
19678 \end_inset
19679
19680  [
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685
19686 \emph on
19687 Medium
19688 \end_layout
19689
19690 \end_inset
19691
19692
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 Bold
19698 \end_layout
19699
19700 \end_inset
19701
19702
19703 \end_layout
19704
19705 \begin_layout Description
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 Shape
19711 \end_layout
19712
19713 \end_inset
19714
19715  [
19716 \begin_inset Flex Code
19717 status collapsed
19718
19719 \begin_layout Plain Layout
19720
19721 \emph on
19722 Up
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 Italic
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 SmallCaps
19743 \end_layout
19744
19745 \end_inset
19746
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Slanted
19753 \end_layout
19754
19755 \end_inset
19756
19757
19758 \end_layout
19759
19760 \begin_layout Description
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765 Size
19766 \end_layout
19767
19768 \end_inset
19769
19770  [
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 tiny
19776 \end_layout
19777
19778 \end_inset
19779
19780
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 small
19786 \end_layout
19787
19788 \end_inset
19789
19790
19791 \begin_inset Flex Code
19792 status collapsed
19793
19794 \begin_layout Plain Layout
19795
19796 \emph on
19797 normal
19798 \end_layout
19799
19800 \end_inset
19801
19802
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 large
19808 \end_layout
19809
19810 \end_inset
19811
19812
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 larger
19818 \end_layout
19819
19820 \end_inset
19821
19822
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 largest
19828 \end_layout
19829
19830 \end_inset
19831
19832
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 huge
19838 \end_layout
19839
19840 \end_inset
19841
19842
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 giant
19848 \end_layout
19849
19850 \end_inset
19851
19852 ]
19853 \end_layout
19854
19855 \begin_layout Subsection
19856 \begin_inset CommandInset label
19857 LatexCommand label
19858 name "sub:Citation-format-description"
19859
19860 \end_inset
19861
19862 Citation format description
19863 \end_layout
19864
19865 \begin_layout Standard
19866 The 
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 CiteFormat
19872 \end_layout
19873
19874 \end_inset
19875
19876  blocks are used to describe how bibliographic information should be displayed,
19877  both within LyX itself (in the citation dialog and in tooltips, for example)
19878  and in XHTML output.
19879  Such a block might look like this:
19880 \end_layout
19881
19882 \begin_layout LyX-Code
19883 CiteFormat
19884 \end_layout
19885
19886 \begin_layout LyX-Code
19887  article ...
19888 \end_layout
19889
19890 \begin_layout LyX-Code
19891  book ...
19892 \end_layout
19893
19894 \begin_layout LyX-Code
19895 End
19896 \end_layout
19897
19898 \begin_layout Standard
19899 The individual lines define how the bibliographic information associated
19900  with an article or book, respectively, is to be displayed, and such a definitio
19901 n can be given for any `entry type' that might be present in a BibTeX file.
19902  LyX defines a default format in the source code that will be used if no
19903  specific definition has been given.
19904  LyX predefines several formats in the file 
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 stdciteformats.inc
19910 \end_layout
19911
19912 \end_inset
19913
19914 , which is included in most of LyX's document classes.
19915 \end_layout
19916
19917 \begin_layout Standard
19918 The definitions use a simple language that allows BibTeX keys to be replaced
19919  with their values.
19920  Keys should be enclosed in 
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 %
19926 \end_layout
19927
19928 \end_inset
19929
19930  signs, e.g.: 
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 %author%
19936 \end_layout
19937
19938 \end_inset
19939
19940 .
19941  So a simple definition might look like this:
19942 \end_layout
19943
19944 \begin_layout LyX-Code
19945 misc %author%, 
19946 \begin_inset Quotes eld
19947 \end_inset
19948
19949 %title
19950 \begin_inset Quotes erd
19951 \end_inset
19952
19953 .
19954 \end_layout
19955
19956 \begin_layout Standard
19957 This would print the author, followed by a comma, followed by the title,
19958  in quotes, followed by a period.
19959 \end_layout
19960
19961 \begin_layout Standard
19962 Of course, sometimes you may want to print a key only if it exists.
19963  This can be done by using a conditional construction, such as: 
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 {%volume%[[vol.
19969 \begin_inset space ~
19970 \end_inset
19971
19972 %volume%]]}
19973 \end_layout
19974
19975 \end_inset
19976
19977 .
19978  This says: If the 
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 volume
19984 \end_layout
19985
19986 \end_inset
19987
19988  key exists, then print 
19989 \begin_inset Quotes eld
19990 \end_inset
19991
19992 vol.
19993 \begin_inset space ~
19994 \end_inset
19995
19996
19997 \begin_inset Quotes erd
19998 \end_inset
19999
20000  followed by the volume key.
20001  It is also possible to have an else clause in the conditional, such as:
20002 \begin_inset Newline newline
20003 \end_inset
20004
20005
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 {%author%[[%author%]][[%editor%, ed.]]}
20011 \end_layout
20012
20013 \end_inset
20014
20015 .
20016 \begin_inset Newline newline
20017 \end_inset
20018
20019 Here, the 
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 author
20025 \end_layout
20026
20027 \end_inset
20028
20029  key is printed if it exists; otherwise, the editor key is printed, followed
20030  by 
20031 \begin_inset Quotes eld
20032 \end_inset
20033
20034 ,
20035 \begin_inset space ~
20036 \end_inset
20037
20038 ed.
20039 \begin_inset Quotes erd
20040 \end_inset
20041
20042  Note that the key is again enclosed in 
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 %
20048 \end_layout
20049
20050 \end_inset
20051
20052  signs; the entire conditional is enclosed in braces; and the if and else
20053  clauses are enclosed in double brackets, 
20054 \begin_inset Quotes eld
20055 \end_inset
20056
20057
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 [[
20063 \end_layout
20064
20065 \end_inset
20066
20067
20068 \begin_inset Quotes eld
20069 \end_inset
20070
20071  and 
20072 \begin_inset Quotes eld
20073 \end_inset
20074
20075
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 ]]
20081 \end_layout
20082
20083 \end_inset
20084
20085
20086 \begin_inset Quotes erd
20087 \end_inset
20088
20089 .
20090  There must be no space between any of these.
20091 \end_layout
20092
20093 \begin_layout Standard
20094 There is one other piece of syntax available in definitions, which looks
20095  like this: 
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 {!<i>!}
20101 \end_layout
20102
20103 \end_inset
20104
20105 .
20106  This defines a piece of formatting information that is to be used when
20107  creating 
20108 \begin_inset Quotes eld
20109 \end_inset
20110
20111 rich text
20112 \begin_inset Quotes erd
20113 \end_inset
20114
20115 .
20116  Obviously, we do not want to output HTML tags when writing plain text,
20117  so they should be wrapped in 
20118 \begin_inset Quotes eld
20119 \end_inset
20120
20121 {!
20122 \begin_inset Quotes erd
20123 \end_inset
20124
20125  and 
20126 \begin_inset Quotes eld
20127 \end_inset
20128
20129 !}
20130 \begin_inset Quotes erd
20131 \end_inset
20132
20133 .
20134 \end_layout
20135
20136 \begin_layout Standard
20137 Two special sorts of definitions are also possible in a 
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142 CiteFormat
20143 \end_layout
20144
20145 \end_inset
20146
20147  block.
20148  An example of the first would be:
20149 \end_layout
20150
20151 \begin_layout LyX-Code
20152 !quotetitle 
20153 \begin_inset Quotes eld
20154 \end_inset
20155
20156 %title%
20157 \begin_inset Quotes erd
20158 \end_inset
20159
20160
20161 \end_layout
20162
20163 \begin_layout Standard
20164 This is an abbreviation, or macro, and it can be used by treating it as
20165  if it were a key: 
20166 \begin_inset Flex Code
20167 status collapsed
20168
20169 \begin_layout Plain Layout
20170 %!quotetitle%
20171 \end_layout
20172
20173 \end_inset
20174
20175 .
20176  LyX will treat 
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 %!quotetitle%
20182 \end_layout
20183
20184 \end_inset
20185
20186  exactly as it would treat its definition.
20187  So, let us issue the obvious 
20188 \emph on
20189 warning
20190 \emph default
20191 .
20192  Do not do this:
20193 \end_layout
20194
20195 \begin_layout LyX-Code
20196 !funfun %funfun%
20197 \end_layout
20198
20199 \begin_layout Standard
20200 or anything like it.
20201  LyX shouldn't go into an infinite loop, but it may go into a long one before
20202  it gives up.
20203 \end_layout
20204
20205 \begin_layout Standard
20206 The second sort of special definition might look like this:
20207 \end_layout
20208
20209 \begin_layout LyX-Code
20210 _pptext pp.
20211 \end_layout
20212
20213 \begin_layout Standard
20214 This defines a translatable piece of text, which allows relevant parts of
20215  the bibliography to be translated.
20216  It can be included in a definition by treating it as a key: 
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 %_pptext%
20222 \end_layout
20223
20224 \end_inset
20225
20226 .
20227  Several of these are predefined in 
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 stdciteformats.inc
20233 \end_layout
20234
20235 \end_inset
20236
20237 .
20238  Note that these are not macros, in the sense just defined.
20239  They will not be expanded.
20240 \end_layout
20241
20242 \begin_layout Standard
20243 So here then is an example that use all these features:
20244 \begin_inset VSpace defskip
20245 \end_inset
20246
20247
20248 \end_layout
20249
20250 \begin_layout Standard
20251 \noindent
20252
20253 \family typewriter
20254 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20255 \end_layout
20256
20257 \begin_layout Standard
20258 \begin_inset VSpace defskip
20259 \end_inset
20260
20261 This defines a macro that prints the author, followed by a comma, if the
20262  
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 author
20268 \end_layout
20269
20270 \end_inset
20271
20272  key is defined, or else prints the name of the editor, followed by the
20273  
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 _edtext
20279 \end_layout
20280
20281 \end_inset
20282
20283  or its translation (it is by default 
20284 \begin_inset Quotes eld
20285 \end_inset
20286
20287 ed.
20288 \begin_inset Quotes erd
20289 \end_inset
20290
20291 ), if the 
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 editor
20297 \end_layout
20298
20299 \end_inset
20300
20301  key is defined.
20302  Note that this is in fact defined in 
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 stdciteformats.inc
20308 \end_layout
20309
20310 \end_inset
20311
20312 , so you can use it in your own definitions, or re-definitions, if you load
20313  that file first.
20314 \end_layout
20315
20316 \begin_layout Section
20317 \begin_inset CommandInset label
20318 LatexCommand label
20319 name "sec:Tags-for-XHTML"
20320
20321 \end_inset
20322
20323 Tags for XHTML output
20324 \end_layout
20325
20326 \begin_layout Standard
20327 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
20328  by layout information.
20329  In general, LyX provides sensible defaults and, as mentioned earlier, it
20330  will even construct default CSS style rules from the other layout tags.
20331  For example, LyX will attempt to use the information provided in the 
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 Font
20337 \end_layout
20338
20339 \end_inset
20340
20341  declaration for the Chapter style to write CSS that will appropriately
20342  format chapter headings.
20343 \end_layout
20344
20345 \begin_layout Standard
20346 In many cases, then, you may not have to do anything at all to get acceptable
20347  XHTML output for your own environments, custom insets, and so forth.
20348  But in some cases you will, and so LyX provides a number of layout tags
20349  that can be used to customize the XHTML and CSS that are generated.
20350 \end_layout
20351
20352 \begin_layout Standard
20353 Note that there are two tags, 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 HTMLPreamble
20359 \end_layout
20360
20361 \end_inset
20362
20363  and 
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 AddToHTMLPreamble
20369 \end_layout
20370
20371 \end_inset
20372
20373  that may appear outside style and inset declarations.
20374  See 
20375 \begin_inset CommandInset ref
20376 LatexCommand ref
20377 reference "sub:General-text-class"
20378
20379 \end_inset
20380
20381  for details on these.
20382 \end_layout
20383
20384 \begin_layout Subsection
20385 \begin_inset CommandInset label
20386 LatexCommand label
20387 name "sub:Paragraph-Style-XHTML"
20388
20389 \end_inset
20390
20391 Paragraph styles
20392 \end_layout
20393
20394 \begin_layout Standard
20395 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
20396  dealing with a normal paragraph, a command, or an environment, where this
20397  is itself determined by the contents of the corresponding 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 LaTeXType
20403 \end_layout
20404
20405 \end_inset
20406
20407  tag.
20408  
20409 \end_layout
20410
20411 \begin_layout Standard
20412 For a command or normal paragraph, the output XHTML has the following form:
20413 \end_layout
20414
20415 \begin_layout LyX-Code
20416 <tag attr=
20417 \begin_inset Quotes erd
20418 \end_inset
20419
20420 value
20421 \begin_inset Quotes erd
20422 \end_inset
20423
20424 >
20425 \end_layout
20426
20427 \begin_layout LyX-Code
20428 <labeltag attr=
20429 \begin_inset Quotes erd
20430 \end_inset
20431
20432 value
20433 \begin_inset Quotes erd
20434 \end_inset
20435
20436 >Label</labeltag>
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440 Contents of the paragraph.
20441 \end_layout
20442
20443 \begin_layout LyX-Code
20444 </tag>
20445 \end_layout
20446
20447 \begin_layout Standard
20448 The label tags are of course omitted if the paragraph does not have a label.
20449 \end_layout
20450
20451 \begin_layout Standard
20452 For an environment that is not some sort of list, the XHTML takes this form:
20453 \end_layout
20454
20455 \begin_layout LyX-Code
20456 <tag attr=
20457 \begin_inset Quotes erd
20458 \end_inset
20459
20460 value
20461 \begin_inset Quotes erd
20462 \end_inset
20463
20464 >
20465 \end_layout
20466
20467 \begin_layout LyX-Code
20468 <itemtag attr=
20469 \begin_inset Quotes erd
20470 \end_inset
20471
20472 value
20473 \begin_inset Quotes erd
20474 \end_inset
20475
20476 ><labeltag attr=
20477 \begin_inset Quotes erd
20478 \end_inset
20479
20480 value
20481 \begin_inset Quotes erd
20482 \end_inset
20483
20484 >Environment Label</labeltag>First paragraph.</itemtag>
20485 \end_layout
20486
20487 \begin_layout LyX-Code
20488 <itemtag>Second paragraph.</itemtag>
20489 \end_layout
20490
20491 \begin_layout LyX-Code
20492 </tag>
20493 \end_layout
20494
20495 \begin_layout Standard
20496 Note that the label is output only for the first paragraph, as it should
20497  be for a theorem, for example.
20498  
20499 \end_layout
20500
20501 \begin_layout Standard
20502 For a list, we have one of these forms:
20503 \end_layout
20504
20505 \begin_layout LyX-Code
20506 <tag attr=
20507 \begin_inset Quotes erd
20508 \end_inset
20509
20510 value
20511 \begin_inset Quotes erd
20512 \end_inset
20513
20514 >
20515 \end_layout
20516
20517 \begin_layout LyX-Code
20518 <itemtag attr=
20519 \begin_inset Quotes erd
20520 \end_inset
20521
20522 value
20523 \begin_inset Quotes erd
20524 \end_inset
20525
20526 ><labeltag attr=
20527 \begin_inset Quotes erd
20528 \end_inset
20529
20530 value
20531 \begin_inset Quotes erd
20532 \end_inset
20533
20534 >List Label</labeltag>First item.</itemtag>
20535 \end_layout
20536
20537 \begin_layout LyX-Code
20538 <itemtag attr=
20539 \begin_inset Quotes erd
20540 \end_inset
20541
20542 value
20543 \begin_inset Quotes erd
20544 \end_inset
20545
20546 ><labeltag attr=
20547 \begin_inset Quotes erd
20548 \end_inset
20549
20550 value
20551 \begin_inset Quotes erd
20552 \end_inset
20553
20554 >List Label</labeltag>Second item.</itemtag>
20555 \end_layout
20556
20557 \begin_layout LyX-Code
20558 </tag>
20559 \end_layout
20560
20561 \begin_layout LyX-Code
20562
20563 \end_layout
20564
20565 \begin_layout LyX-Code
20566 <tag attr=
20567 \begin_inset Quotes erd
20568 \end_inset
20569
20570 value
20571 \begin_inset Quotes erd
20572 \end_inset
20573
20574 >
20575 \end_layout
20576
20577 \begin_layout LyX-Code
20578 <labeltag attr=
20579 \begin_inset Quotes erd
20580 \end_inset
20581
20582 value
20583 \begin_inset Quotes erd
20584 \end_inset
20585
20586 >List Label</labeltag><itemtag attr=
20587 \begin_inset Quotes erd
20588 \end_inset
20589
20590 value
20591 \begin_inset Quotes erd
20592 \end_inset
20593
20594 >First item.</itemtag>
20595 \end_layout
20596
20597 \begin_layout LyX-Code
20598 <labeltag attr=
20599 \begin_inset Quotes erd
20600 \end_inset
20601
20602 value
20603 \begin_inset Quotes erd
20604 \end_inset
20605
20606 >List Label</labeltag><itemtag attr=
20607 \begin_inset Quotes erd
20608 \end_inset
20609
20610 value
20611 \begin_inset Quotes erd
20612 \end_inset
20613
20614 >Second item.</itemtag>
20615 \end_layout
20616
20617 \begin_layout LyX-Code
20618 </tag>
20619 \end_layout
20620
20621 \begin_layout Standard
20622 Note the different orders of 
20623 \begin_inset Flex Code
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 labeltag
20628 \end_layout
20629
20630 \end_inset
20631
20632  and 
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 itemtag
20638 \end_layout
20639
20640 \end_inset
20641
20642 .
20643  Which order we get depends upon the setting of 
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 HTMLLabelFirst
20649 \end_layout
20650
20651 \end_inset
20652
20653 : If 
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 HTMLLabelFirst
20659 \end_layout
20660
20661 \end_inset
20662
20663  is false (the default), you get the first of these, with the label within
20664  the item; if true, you get the second, with the label outside the item.
20665 \end_layout
20666
20667 \begin_layout Standard
20668 The specific tags and attributes output for each paragraph type can be controlle
20669 d by means of the layout tags we are about to describe.
20670  As mentioned earlier, however, LyX uses sensible defaults for many of these,
20671  so you often may not need to do very much to get good XHTML output.
20672  Think of the available tags as there so you can tweak things to your liking.
20673 \end_layout
20674
20675 \begin_layout Description
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 HTMLAttr
20681 \end_layout
20682
20683 \end_inset
20684
20685  [
20686 \begin_inset Flex Code
20687 status collapsed
20688
20689 \begin_layout Plain Layout
20690 string
20691 \end_layout
20692
20693 \end_inset
20694
20695 ] Specifies attribute information to be output with the main tag.
20696  For example, 
20697 \begin_inset Quotes eld
20698 \end_inset
20699
20700
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 class=`mydiv'
20706 \end_layout
20707
20708 \end_inset
20709
20710
20711 \begin_inset Quotes erd
20712 \end_inset
20713
20714 .
20715  By default, LyX will output 
20716 \begin_inset Quotes eld
20717 \end_inset
20718
20719
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 class=`layoutname'
20725 \end_layout
20726
20727 \end_inset
20728
20729
20730 \begin_inset Quotes erd
20731 \end_inset
20732
20733 , where 
20734 \begin_inset Flex Code
20735 status collapsed
20736
20737 \begin_layout Plain Layout
20738 layoutname
20739 \end_layout
20740
20741 \end_inset
20742
20743  is the LyX name of the layout, made lowercase, for example: chapter.
20744  This should 
20745 \emph on
20746 not
20747 \emph default
20748  contain any style information.
20749  Use 
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 HTMLStyle
20755 \end_layout
20756
20757 \end_inset
20758
20759  for that purpose.
20760 \end_layout
20761
20762 \begin_layout Description
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767 HTMLForceCSS
20768 \end_layout
20769
20770 \end_inset
20771
20772  [
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777
20778 \emph on
20779 0
20780 \emph default
20781 ,1
20782 \end_layout
20783
20784 \end_inset
20785
20786 ] Whether to output the default CSS information LyX generates for this layout,
20787  even if additional information is explicitly provided via 
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 HTMLStyle
20793 \end_layout
20794
20795 \end_inset
20796
20797 .
20798  Setting this to 
20799 \begin_inset Flex Code
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803 1
20804 \end_layout
20805
20806 \end_inset
20807
20808  allows you to alter or augment the generated CSS, rather than to override
20809  it completely.
20810  Default is 
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 0
20816 \end_layout
20817
20818 \end_inset
20819
20820 .
20821 \end_layout
20822
20823 \begin_layout Description
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 HTMLItem
20829 \end_layout
20830
20831 \end_inset
20832
20833  [
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 string
20839 \end_layout
20840
20841 \end_inset
20842
20843 ] The tag to be used for individual paragraphs of environments, replacing
20844  
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 itemtag
20850 \end_layout
20851
20852 \end_inset
20853
20854  in the examples above.
20855  Defaults to 
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 div
20861 \end_layout
20862
20863 \end_inset
20864
20865 .
20866 \end_layout
20867
20868 \begin_layout Description
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 HTMLItemAttr
20874 \end_layout
20875
20876 \end_inset
20877
20878  [
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 string
20884 \end_layout
20885
20886 \end_inset
20887
20888 ] Attributes for the item tag.
20889  Defaults to 
20890 \begin_inset Quotes eld
20891 \end_inset
20892
20893
20894 \begin_inset Flex Code
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 class=`layoutname_item'
20899 \end_layout
20900
20901 \end_inset
20902
20903
20904 \begin_inset Quotes erd
20905 \end_inset
20906
20907 .
20908  This should 
20909 \emph on
20910 not
20911 \emph default
20912  contain any style information.
20913  Use 
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 HTMLStyle
20919 \end_layout
20920
20921 \end_inset
20922
20923  for that purpose.
20924 \end_layout
20925
20926 \begin_layout Description
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 HTMLLabel
20932 \end_layout
20933
20934 \end_inset
20935
20936  [
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 string
20942 \end_layout
20943
20944 \end_inset
20945
20946 ] The tag to be used for paragraph and item labels, replacing 
20947 \begin_inset Flex Code
20948 status collapsed
20949
20950 \begin_layout Plain Layout
20951 labeltag
20952 \end_layout
20953
20954 \end_inset
20955
20956  in the examples above.
20957  Defaults to 
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 span
20963 \end_layout
20964
20965 \end_inset
20966
20967 , unless 
20968 \begin_inset Flex Code
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972 LabelType
20973 \end_layout
20974
20975 \end_inset
20976
20977  is either 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 Top_Environment
20983 \end_layout
20984
20985 \end_inset
20986
20987  or 
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 Centered_Top_Environment
20993 \end_layout
20994
20995 \end_inset
20996
20997 , in which case it defaults to 
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 div
21003 \end_layout
21004
21005 \end_inset
21006
21007 .
21008 \end_layout
21009
21010 \begin_layout Description
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 HTMLLabelAttr
21016 \end_layout
21017
21018 \end_inset
21019
21020  [
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 string
21026 \end_layout
21027
21028 \end_inset
21029
21030 ] Attributes for the label tag.
21031  Defaults to 
21032 \begin_inset Quotes eld
21033 \end_inset
21034
21035
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 class=`layoutname_label'
21041 \end_layout
21042
21043 \end_inset
21044
21045
21046 \begin_inset Quotes erd
21047 \end_inset
21048
21049 .
21050  This should 
21051 \emph on
21052 not
21053 \emph default
21054  contain any style information.
21055  Use 
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 HTMLStyle
21061 \end_layout
21062
21063 \end_inset
21064
21065  for that purpose.
21066 \end_layout
21067
21068 \begin_layout Description
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 HTMLLabelFirst
21074 \end_layout
21075
21076 \end_inset
21077
21078  [
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083
21084 \emph on
21085 0
21086 \emph default
21087 ,1
21088 \end_layout
21089
21090 \end_inset
21091
21092 ] Meaningful only for list-like environments, this tag controls whether
21093  the label tag is output before or inside the item tag.
21094  This is used, for example, in the description environment, where we want
21095  `
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 <dt>\SpecialChar \ldots{}
21101 </dt><dd>\SpecialChar \ldots{}
21102 </dd>
21103 \end_layout
21104
21105 \end_inset
21106
21107 .
21108  Default is 
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 0
21114 \end_layout
21115
21116 \end_inset
21117
21118 : The label tag is output inside the item tag.
21119 \end_layout
21120
21121 \begin_layout Description
21122 \begin_inset Flex Code
21123 status collapsed
21124
21125 \begin_layout Plain Layout
21126 HTMLPreamble
21127 \end_layout
21128
21129 \end_inset
21130
21131  Information to be output in the 
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 <head>
21137 \end_layout
21138
21139 \end_inset
21140
21141  section when this style is used.
21142  This might, for example, be used to include a 
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 <script>
21148 \end_layout
21149
21150 \end_inset
21151
21152  block defining an 
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 onclick
21158 \end_layout
21159
21160 \end_inset
21161
21162  handler.
21163 \end_layout
21164
21165 \begin_layout Description
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 HTMLStyle
21171 \end_layout
21172
21173 \end_inset
21174
21175  CSS style information to be included when this style is used.
21176  Note that this will automatically be wrapped in a layout-generated 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 <style>
21182 \end_layout
21183
21184 \end_inset
21185
21186  block, so only the CSS itself need be included.
21187 \end_layout
21188
21189 \begin_layout Description
21190 \begin_inset Flex Code
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194 HTMLTag
21195 \end_layout
21196
21197 \end_inset
21198
21199  [
21200 \begin_inset Flex Code
21201 status collapsed
21202
21203 \begin_layout Plain Layout
21204 string
21205 \end_layout
21206
21207 \end_inset
21208
21209 ] The tag to be used for the main label, replacing 
21210 \begin_inset Flex Code
21211 status collapsed
21212
21213 \begin_layout Plain Layout
21214 tag
21215 \end_layout
21216
21217 \end_inset
21218
21219  in the examples above.
21220  Defaults to 
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 div
21226 \end_layout
21227
21228 \end_inset
21229
21230 .
21231 \end_layout
21232
21233 \begin_layout Description
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 HTMLTitle
21239 \end_layout
21240
21241 \end_inset
21242
21243  [
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248
21249 \emph on
21250 0
21251 \emph default
21252 ,1
21253 \end_layout
21254
21255 \end_inset
21256
21257 ] Marks this style as the one to be used to generate the 
21258 \begin_inset Flex Code
21259 status collapsed
21260
21261 \begin_layout Plain Layout
21262 <title>
21263 \end_layout
21264
21265 \end_inset
21266
21267  tag for the XHTML file.
21268  By default, it is false.
21269  The 
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 stdtitle.inc
21275 \end_layout
21276
21277 \end_inset
21278
21279  file sets it to true for the 
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284 title
21285 \end_layout
21286
21287 \end_inset
21288
21289  environment.
21290  
21291 \end_layout
21292
21293 \begin_layout Subsection
21294 InsetLayout XHTML
21295 \end_layout
21296
21297 \begin_layout Standard
21298 The XHTML output of insets can also be controlled by information in layout
21299  files.
21300 \begin_inset Foot
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 At present, this is true only for 
21305 \begin_inset Quotes eld
21306 \end_inset
21307
21308 text
21309 \begin_inset Quotes erd
21310 \end_inset
21311
21312  insets (insets you can type into) and is not true for 
21313 \begin_inset Quotes eld
21314 \end_inset
21315
21316 command
21317 \begin_inset Quotes erd
21318 \end_inset
21319
21320  insets (insets that are associated with dialog boxes).
21321 \end_layout
21322
21323 \end_inset
21324
21325  Here, too, LyX tries to provide sensible defaults, and it constructs default
21326  CSS style rules.
21327  But everything can be customized.
21328 \end_layout
21329
21330 \begin_layout Standard
21331 The XHTML LyX outputs for an inset has the following form:
21332 \end_layout
21333
21334 \begin_layout LyX-Code
21335 <tag attr=
21336 \begin_inset Quotes erd
21337 \end_inset
21338
21339 value
21340 \begin_inset Quotes erd
21341 \end_inset
21342
21343 >
21344 \end_layout
21345
21346 \begin_layout LyX-Code
21347 <labeltag>Label</labeltag>
21348 \end_layout
21349
21350 \begin_layout LyX-Code
21351 <innertag attr=
21352 \begin_inset Quotes erd
21353 \end_inset
21354
21355 value
21356 \begin_inset Quotes erd
21357 \end_inset
21358
21359 >Contents of the inset.</innertag>
21360 \end_layout
21361
21362 \begin_layout LyX-Code
21363 </tag>
21364 \end_layout
21365
21366 \begin_layout Standard
21367 If the inset permits multiple paragraphs---that is, if 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 MultiPar
21373 \end_layout
21374
21375 \end_inset
21376
21377  is true---then the contents of the inset will itself be output as paragraphs
21378  formatted according to the styles used for those paragraphs (standard,
21379  quote, and the like).
21380  The label tag is of course omitted if the paragraph does not have a label
21381  and, at present, is always 
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 span
21387 \end_layout
21388
21389 \end_inset
21390
21391 .
21392  The inner tag is optional and, by default, does not appear.
21393 \end_layout
21394
21395 \begin_layout Standard
21396 The specific tags and attributes output for each inset can be controlled
21397  by means of the following layout tags.
21398 \end_layout
21399
21400 \begin_layout Description
21401 \begin_inset Flex Code
21402 status collapsed
21403
21404 \begin_layout Plain Layout
21405 HTMLAttr
21406 \end_layout
21407
21408 \end_inset
21409
21410  [
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 string
21416 \end_layout
21417
21418 \end_inset
21419
21420 ] Specifies attribute information to be output with the main tag.
21421  For example, 
21422 \begin_inset Quotes eld
21423 \end_inset
21424
21425
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 class=`myinset' onclick=`\SpecialChar \ldots{}
21431 '
21432 \end_layout
21433
21434 \end_inset
21435
21436
21437 \begin_inset Quotes erd
21438 \end_inset
21439
21440 .
21441  By default, LyX will output 
21442 \begin_inset Quotes eld
21443 \end_inset
21444
21445
21446 \begin_inset Flex Code
21447 status collapsed
21448
21449 \begin_layout Plain Layout
21450 class=`insetname'
21451 \end_layout
21452
21453 \end_inset
21454
21455
21456 \begin_inset Quotes erd
21457 \end_inset
21458
21459 , where 
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 insetname
21465 \end_layout
21466
21467 \end_inset
21468
21469  is the LyX name of the inset, made lowercase and with non-alphanumeric
21470  characters converted to underscores, for example: footnote.
21471 \end_layout
21472
21473 \begin_layout Description
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 HTMLForceCSS
21479 \end_layout
21480
21481 \end_inset
21482
21483  [
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488
21489 \emph on
21490 0
21491 \emph default
21492 ,1
21493 \end_layout
21494
21495 \end_inset
21496
21497 ] Whether to output the default CSS information LyX generates for this layout,
21498  even if additional information is explicitly provided via 
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 HTMLStyle
21504 \end_layout
21505
21506 \end_inset
21507
21508 .
21509  Setting this to 
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 1
21515 \end_layout
21516
21517 \end_inset
21518
21519  allows you to alter or augment the generated CSS, rather than to override
21520  it completely.
21521  Default is 0.
21522 \end_layout
21523
21524 \begin_layout Description
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 HTMLInnerAttr
21530 \end_layout
21531
21532 \end_inset
21533
21534  [
21535 \begin_inset Flex Code
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539 string
21540 \end_layout
21541
21542 \end_inset
21543
21544 ] Attributes for the inner tag.
21545  Defaults to 
21546 \begin_inset Quotes eld
21547 \end_inset
21548
21549
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 class=`insetname_inner'
21555 \end_layout
21556
21557 \end_inset
21558
21559
21560 \begin_inset Quotes erd
21561 \end_inset
21562
21563 .
21564 \end_layout
21565
21566 \begin_layout Description
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 HTMLInnerTag
21572 \end_layout
21573
21574 \end_inset
21575
21576  [
21577 \begin_inset Flex Code
21578 status collapsed
21579
21580 \begin_layout Plain Layout
21581 string
21582 \end_layout
21583
21584 \end_inset
21585
21586 ] The inner tag, replacing 
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591 innertag
21592 \end_layout
21593
21594 \end_inset
21595
21596  in the examples above.
21597  By default, there is none.
21598 \end_layout
21599
21600 \begin_layout Description
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 HTMLIsBlock
21606 \end_layout
21607
21608 \end_inset
21609
21610  [
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615 0,
21616 \emph on
21617 1
21618 \end_layout
21619
21620 \end_inset
21621
21622 ] Whether this inset represents a standalone block of text (such as a footnote)
21623  or instead represents material that is included in the surrounding text
21624  (such as a branch).
21625  Defaults to 1.
21626 \end_layout
21627
21628 \begin_layout Description
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633 HTMLLabel
21634 \end_layout
21635
21636 \end_inset
21637
21638  [
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 string
21644 \end_layout
21645
21646 \end_inset
21647
21648 ] A label for this inset, possibly including a reference to a counter.
21649  For example, for footnote, it might be: 
21650 \begin_inset Flex Code
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654
21655 \backslash
21656 arabic{footnote}
21657 \end_layout
21658
21659 \end_inset
21660
21661 .
21662  This is optional, and there is no default.
21663 \end_layout
21664
21665 \begin_layout Description
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 HTMLPreamble
21671 \end_layout
21672
21673 \end_inset
21674
21675  Information to be output in the 
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 <head>
21681 \end_layout
21682
21683 \end_inset
21684
21685  section when this style is used.
21686  This might, for example, be used to include a 
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691 <script>
21692 \end_layout
21693
21694 \end_inset
21695
21696  block defining an 
21697 \begin_inset Flex Code
21698 status collapsed
21699
21700 \begin_layout Plain Layout
21701 onclick
21702 \end_layout
21703
21704 \end_inset
21705
21706  handler.
21707 \end_layout
21708
21709 \begin_layout Description
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 HTMLStyle
21715 \end_layout
21716
21717 \end_inset
21718
21719  CSS style information to be included when this style is used.
21720  Note that this will automatically be wrapped in a layout-generated 
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 <style>
21726 \end_layout
21727
21728 \end_inset
21729
21730  block, so only the CSS itself need be included.
21731 \end_layout
21732
21733 \begin_layout Description
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 HTMLTag
21739 \end_layout
21740
21741 \end_inset
21742
21743  [
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 string
21749 \end_layout
21750
21751 \end_inset
21752
21753 ] The tag to be used for the main label, replacing 
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 tag
21759 \end_layout
21760
21761 \end_inset
21762
21763  in the examples above.
21764  The default depends upon the setting of 
21765 \begin_inset Flex Code
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769 MultiPar
21770 \end_layout
21771
21772 \end_inset
21773
21774 : If 
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779 MultiPar
21780 \end_layout
21781
21782 \end_inset
21783
21784  is true, the default is 
21785 \begin_inset Flex Code
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 div
21790 \end_layout
21791
21792 \end_inset
21793
21794 ; if it is false, the default is 
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799 span
21800 \end_layout
21801
21802 \end_inset
21803
21804 .
21805 \end_layout
21806
21807 \begin_layout Subsection
21808 Float XHTML
21809 \end_layout
21810
21811 \begin_layout Standard
21812 The XHTML output for floats too can be controlled by layout information.
21813  The output has the following form:
21814 \end_layout
21815
21816 \begin_layout LyX-Code
21817 <tag attr=
21818 \begin_inset Quotes erd
21819 \end_inset
21820
21821 value
21822 \begin_inset Quotes erd
21823 \end_inset
21824
21825 >
21826 \end_layout
21827
21828 \begin_layout LyX-Code
21829 Contents of the float.
21830 \end_layout
21831
21832 \begin_layout LyX-Code
21833 </tag>
21834 \end_layout
21835
21836 \begin_layout Standard
21837 The caption, if there is one, is a separate inset and will be output as
21838  such.
21839  Its appearance can be controlled via the InsetLayout for caption insets.
21840  
21841 \end_layout
21842
21843 \begin_layout Description
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848 HTMLAttr
21849 \end_layout
21850
21851 \end_inset
21852
21853  [
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 string
21859 \end_layout
21860
21861 \end_inset
21862
21863 ] Specifies attribute information to be output with the main tag.
21864  For example, 
21865 \begin_inset Quotes eld
21866 \end_inset
21867
21868
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 class=`myfloat' onclick=`\SpecialChar \ldots{}
21874 '
21875 \end_layout
21876
21877 \end_inset
21878
21879
21880 \begin_inset Quotes erd
21881 \end_inset
21882
21883 .
21884  By default, LyX will output 
21885 \begin_inset Quotes eld
21886 \end_inset
21887
21888
21889 \begin_inset Flex Code
21890 status collapsed
21891
21892 \begin_layout Plain Layout
21893 class=`float float-floattype'
21894 \end_layout
21895
21896 \end_inset
21897
21898
21899 \begin_inset Quotes erd
21900 \end_inset
21901
21902 , where 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 floattype
21908 \end_layout
21909
21910 \end_inset
21911
21912  is LyX's name for this type of float, as determined by the float declaration
21913  (see 
21914 \begin_inset CommandInset ref
21915 LatexCommand ref
21916 reference "sub:Floats"
21917
21918 \end_inset
21919
21920 ), though made lowercase and with non-alphanumeric characters converted
21921  to underscores, for example: float-table.
21922 \end_layout
21923
21924 \begin_layout Description
21925 \begin_inset Flex Code
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929 HTMLStyle
21930 \end_layout
21931
21932 \end_inset
21933
21934  CSS style information to be included when this float is used.
21935  Note that this will automatically be wrapped in a layout-generated 
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 <style>
21941 \end_layout
21942
21943 \end_inset
21944
21945  block, so only the CSS itself need be included.
21946 \end_layout
21947
21948 \begin_layout Description
21949 \begin_inset Flex Code
21950 status collapsed
21951
21952 \begin_layout Plain Layout
21953 HTMLTag
21954 \end_layout
21955
21956 \end_inset
21957
21958  [
21959 \begin_inset Flex Code
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963 string
21964 \end_layout
21965
21966 \end_inset
21967
21968 ] The tag to be used for this float, replacing 
21969 \begin_inset Quotes eld
21970 \end_inset
21971
21972
21973 \begin_inset Flex Code
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 tag
21978 \end_layout
21979
21980 \end_inset
21981
21982
21983 \begin_inset Quotes erd
21984 \end_inset
21985
21986  in the example above.
21987  The default is 
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 div
21993 \end_layout
21994
21995 \end_inset
21996
21997  and will rarely need changing.
21998 \end_layout
21999
22000 \begin_layout Subsection
22001 Bibliography formatting
22002 \end_layout
22003
22004 \begin_layout Standard
22005 The bibliography can be formatted using 
22006 \begin_inset Flex Code
22007 status collapsed
22008
22009 \begin_layout Plain Layout
22010 CiteFormat
22011 \end_layout
22012
22013 \end_inset
22014
22015  blocks.
22016  See Section 
22017 \begin_inset CommandInset ref
22018 LatexCommand ref
22019 reference "sub:Citation-format-description"
22020
22021 \end_inset
22022
22023  for the details.
22024 \end_layout
22025
22026 \begin_layout Subsection
22027 LyX-generated CSS
22028 \end_layout
22029
22030 \begin_layout Standard
22031 We have several times mentioned that LyX will generate default CSS style
22032  rules for both insets and paragraph styles, based upon the other layout
22033  information that is provided.
22034  In this section, we shall say a word about which layout information LyX
22035  uses and how.
22036 \end_layout
22037
22038 \begin_layout Standard
22039 At present, LyX auto-generates CSS only for font information, making use
22040  of the 
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 Family
22046 \end_layout
22047
22048 \end_inset
22049
22050
22051 \begin_inset Flex Code
22052 status collapsed
22053
22054 \begin_layout Plain Layout
22055 Series
22056 \end_layout
22057
22058 \end_inset
22059
22060
22061 \begin_inset Flex Code
22062 status collapsed
22063
22064 \begin_layout Plain Layout
22065 Shape
22066 \end_layout
22067
22068 \end_inset
22069
22070 , and 
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 Size
22076 \end_layout
22077
22078 \end_inset
22079
22080  specified in the 
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 Font
22086 \end_layout
22087
22088 \end_inset
22089
22090  declaration.
22091  (See 
22092 \begin_inset CommandInset ref
22093 LatexCommand ref
22094 reference "sub:Font-description"
22095
22096 \end_inset
22097
22098 .) The translation is mostly straightforward and obvious.
22099  For example, 
22100 \begin_inset Quotes eld
22101 \end_inset
22102
22103
22104 \begin_inset Flex Code
22105 status collapsed
22106
22107 \begin_layout Plain Layout
22108 Family Sans
22109 \end_layout
22110
22111 \end_inset
22112
22113
22114 \begin_inset Quotes erd
22115 \end_inset
22116
22117  becomes 
22118 \begin_inset Quotes eld
22119 \end_inset
22120
22121
22122 \begin_inset Flex Code
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 font-family: sans-serif;
22127 \end_layout
22128
22129 \end_inset
22130
22131
22132 \begin_inset Quotes erd
22133 \end_inset
22134
22135 .
22136  The correspondence of LyX sizes and CSS sizes is a little less obvious
22137  but nonetheless intuitive.
22138  See the 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 getSizeCSS()
22144 \end_layout
22145
22146 \end_inset
22147
22148  function in 
22149 \begin_inset Flex URL
22150 status collapsed
22151
22152 \begin_layout Plain Layout
22153
22154 src/FontInfo.cpp
22155 \end_layout
22156
22157 \end_inset
22158
22159  for the details.
22160 \end_layout
22161
22162 \begin_layout Chapter
22163 Including External Material
22164 \end_layout
22165
22166 \begin_layout Standard
22167 \begin_inset Box Shadowbox
22168 position "t"
22169 hor_pos "c"
22170 has_inner_box 1
22171 inner_pos "t"
22172 use_parbox 0
22173 use_makebox 0
22174 width "100col%"
22175 special "none"
22176 height "1in"
22177 height_special "totalheight"
22178 status open
22179
22180 \begin_layout Plain Layout
22181 WARNING: This portion of the documentation has not been updated for some
22182  time.
22183  We certainly hope that it is still accurate, but there are no guarantees.
22184 \end_layout
22185
22186 \end_inset
22187
22188
22189 \end_layout
22190
22191 \begin_layout Standard
22192 The use of material from sources external to LyX is covered in detail in
22193  the 
22194 \emph on
22195 Embedded Objects
22196 \emph default
22197  manual.
22198  This part of the manual covers what needs to happen behind the scenes for
22199  new sorts of material to be included.
22200 \end_layout
22201
22202 \begin_layout Section
22203 How does it work?
22204 \end_layout
22205
22206 \begin_layout Standard
22207 The external material feature is based on the concept of a 
22208 \emph on
22209 template
22210 \emph default
22211 .
22212  A template is a specification of how LyX should interface with a certain
22213  kind of material.
22214  As bundled, LyX comes with predefined templates for Xfig figures, various
22215  raster format images, chess diagrams, and LilyPond music notation.
22216  You can check the actual list by using the menu 
22217 \begin_inset Flex MenuItem
22218 status collapsed
22219
22220 \begin_layout Plain Layout
22221 Insert\SpecialChar \menuseparator
22222 File\SpecialChar \menuseparator
22223 External Material
22224 \end_layout
22225
22226 \end_inset
22227
22228 .
22229  Furthermore, it is possible to roll your own template to support a specific
22230  kind of material.
22231  Later we'll describe in more detail what is involved, and hopefully you
22232  will submit all the templates you create so we can include them in a later
22233  LyX version.
22234 \end_layout
22235
22236 \begin_layout Standard
22237 Another basic idea of the external material feature is to distinguish between
22238  the original file that serves as a base for final material and the produced
22239  file that is included in your exported or printed document.
22240  For example, consider the case of a figure produced with 
22241 \begin_inset Flex Code
22242 status collapsed
22243
22244 \begin_layout Plain Layout
22245 Xfig
22246 \end_layout
22247
22248 \end_inset
22249
22250 .
22251  The Xfig application itself works on an original file with the 
22252 \begin_inset Flex Code
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256 .fig
22257 \end_layout
22258
22259 \end_inset
22260
22261  extension.
22262  Within Xfig, you create and change your figure, and when you are done,
22263  you save the 
22264 \begin_inset Flex Code
22265 status collapsed
22266
22267 \begin_layout Plain Layout
22268 fig
22269 \end_layout
22270
22271 \end_inset
22272
22273 -file.
22274  When you want to include the figure in your document, you invoke 
22275 \begin_inset Flex Code
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279 transfig
22280 \end_layout
22281
22282 \end_inset
22283
22284  in order to create a PostScript file that can readily be included in your
22285  LaTeX file.
22286  In this case, the 
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291 .fig
22292 \end_layout
22293
22294 \end_inset
22295
22296  file is the original file, and the PostScript file is the produced file.
22297 \end_layout
22298
22299 \begin_layout Standard
22300 This distinction is important in order to allow updating of the material
22301  while you are in the process of writing the document.
22302  Furthermore, it provides us with the flexibility that is needed to support
22303  multiple export formats.
22304  For instance, in the case of a plain text file, it is not exactly an award-winn
22305 ing idea to include the figure as raw PostScript.
22306  Instead, you would either prefer to just include a reference to the figure
22307  or try to invoke some graphics to ASCII converter to make the final result
22308  look similar to the real graphics.
22309  The external material management allows you to do this, because it is parametri
22310 zed on the different export formats that LyX supports.
22311 \end_layout
22312
22313 \begin_layout Standard
22314 Besides supporting the production of different products according to the
22315  exported format, it supports tight integration with editing and viewing
22316  applications.
22317  In the case of an Xfig figure, you are able to invoke Xfig on the original
22318  file with a single click from within the external material dialog in LyX,
22319  and also preview the produced PostScript file with Ghostview with another
22320  click.
22321  No more fiddling around with the command line and/or file browsers to locate
22322  and manipulate the original or produced files.
22323  In this way, you are finally able to take full advantage of the many different
22324  applications that are relevant to use when you write your documents, and
22325  ultimately be more productive.
22326 \end_layout
22327
22328 \begin_layout Section
22329 The external template configuration file
22330 \end_layout
22331
22332 \begin_layout Standard
22333 It is relatively easy to add custom external template definitions to LyX.
22334  However, be aware that doing this in an careless manner most probably 
22335 \emph on
22336 will
22337 \emph default
22338  introduce an easily exploitable security hole.
22339  So before you do this, please read the discussion about security in section
22340  
22341 \begin_inset CommandInset ref
22342 LatexCommand ref
22343 reference "sec:Security-discussion"
22344
22345 \end_inset
22346
22347 .
22348 \end_layout
22349
22350 \begin_layout Standard
22351 Having said that, we encourage you to submit any interesting templates that
22352  you create.
22353  
22354 \end_layout
22355
22356 \begin_layout Standard
22357 The external templates are defined in the 
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 LyXDir/lib/external_templates
22363 \end_layout
22364
22365 \end_inset
22366
22367  file.
22368  You can place your own version in 
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 UserDir/external_templates
22374 \end_layout
22375
22376 \end_inset
22377
22378 .
22379 \end_layout
22380
22381 \begin_layout Standard
22382 A typical template looks like this:
22383 \end_layout
22384
22385 \begin_layout LyX-Code
22386 Template XFig
22387 \end_layout
22388
22389 \begin_layout LyX-Code
22390 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22391 \end_layout
22392
22393 \begin_layout LyX-Code
22394 HelpText
22395 \end_layout
22396
22397 \begin_layout LyX-Code
22398 An XFig figure.
22399 \end_layout
22400
22401 \begin_layout LyX-Code
22402 HelpTextEnd
22403 \end_layout
22404
22405 \begin_layout LyX-Code
22406 InputFormat fig
22407 \end_layout
22408
22409 \begin_layout LyX-Code
22410 FileFilter "*.fig"
22411 \end_layout
22412
22413 \begin_layout LyX-Code
22414 AutomaticProduction true
22415 \end_layout
22416
22417 \begin_layout LyX-Code
22418 Transform Rotate
22419 \end_layout
22420
22421 \begin_layout LyX-Code
22422 Transform Resize
22423 \end_layout
22424
22425 \begin_layout LyX-Code
22426 Format LaTeX
22427 \end_layout
22428
22429 \begin_layout LyX-Code
22430 TransformCommand Rotate RotationLatexCommand
22431 \end_layout
22432
22433 \begin_layout LyX-Code
22434 TransformCommand Resize ResizeLatexCommand
22435 \end_layout
22436
22437 \begin_layout LyX-Code
22438 Product "$$RotateFront$$ResizeFront
22439 \end_layout
22440
22441 \begin_layout LyX-Code
22442          
22443 \backslash
22444
22445 \backslash
22446 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22447 \end_layout
22448
22449 \begin_layout LyX-Code
22450          $$ResizeBack$$RotateBack"
22451 \end_layout
22452
22453 \begin_layout LyX-Code
22454 UpdateFormat pstex
22455 \end_layout
22456
22457 \begin_layout LyX-Code
22458 UpdateResult "$$AbsPath$$Basename.pstex_t"
22459 \end_layout
22460
22461 \begin_layout LyX-Code
22462 Requirement "graphicx"
22463 \end_layout
22464
22465 \begin_layout LyX-Code
22466 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22467 \end_layout
22468
22469 \begin_layout LyX-Code
22470 ReferencedFile latex "$$AbsPath$$Basename.eps"
22471 \end_layout
22472
22473 \begin_layout LyX-Code
22474 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22475 \end_layout
22476
22477 \begin_layout LyX-Code
22478 FormatEnd
22479 \end_layout
22480
22481 \begin_layout LyX-Code
22482 Format PDFLaTeX
22483 \end_layout
22484
22485 \begin_layout LyX-Code
22486 TransformCommand Rotate RotationLatexCommand
22487 \end_layout
22488
22489 \begin_layout LyX-Code
22490 TransformCommand Resize ResizeLatexCommand
22491 \end_layout
22492
22493 \begin_layout LyX-Code
22494 Product "$$RotateFront$$ResizeFront
22495 \end_layout
22496
22497 \begin_layout LyX-Code
22498          
22499 \backslash
22500
22501 \backslash
22502 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22503 \end_layout
22504
22505 \begin_layout LyX-Code
22506          $$ResizeBack$$RotateBack"
22507 \end_layout
22508
22509 \begin_layout LyX-Code
22510 UpdateFormat pdftex
22511 \end_layout
22512
22513 \begin_layout LyX-Code
22514 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22515 \end_layout
22516
22517 \begin_layout LyX-Code
22518 Requirement "graphicx"
22519 \end_layout
22520
22521 \begin_layout LyX-Code
22522 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22523 \end_layout
22524
22525 \begin_layout LyX-Code
22526 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22527 \end_layout
22528
22529 \begin_layout LyX-Code
22530 FormatEnd
22531 \end_layout
22532
22533 \begin_layout LyX-Code
22534 Format Ascii
22535 \end_layout
22536
22537 \begin_layout LyX-Code
22538 Product "$$Contents(
22539 \backslash
22540 "$$AbsPath$$Basename.asc
22541 \backslash
22542 ")"
22543 \end_layout
22544
22545 \begin_layout LyX-Code
22546 UpdateFormat asciixfig
22547 \end_layout
22548
22549 \begin_layout LyX-Code
22550 UpdateResult "$$AbsPath$$Basename.asc"
22551 \end_layout
22552
22553 \begin_layout LyX-Code
22554 FormatEnd
22555 \end_layout
22556
22557 \begin_layout LyX-Code
22558 Format DocBook
22559 \end_layout
22560
22561 \begin_layout LyX-Code
22562 Product "<graphic fileref=
22563 \backslash
22564 "$$AbsOrRelPathMaster$$Basename.eps
22565 \backslash
22566 ">
22567 \end_layout
22568
22569 \begin_layout LyX-Code
22570          </graphic>"
22571 \end_layout
22572
22573 \begin_layout LyX-Code
22574 UpdateFormat eps
22575 \end_layout
22576
22577 \begin_layout LyX-Code
22578 UpdateResult "$$AbsPath$$Basename.eps"
22579 \end_layout
22580
22581 \begin_layout LyX-Code
22582 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22583 \end_layout
22584
22585 \begin_layout LyX-Code
22586 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22587 \end_layout
22588
22589 \begin_layout LyX-Code
22590 FormatEnd
22591 \end_layout
22592
22593 \begin_layout LyX-Code
22594 Product "[XFig: $$FName]"
22595 \end_layout
22596
22597 \begin_layout LyX-Code
22598 FormatEnd
22599 \end_layout
22600
22601 \begin_layout LyX-Code
22602 TemplateEnd
22603 \end_layout
22604
22605 \begin_layout Standard
22606 As you can see, the template is enclosed in 
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 Template
22612 \end_layout
22613
22614 \end_inset
22615
22616  \SpecialChar \ldots{}
22617  
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 TemplateEnd
22623 \end_layout
22624
22625 \end_inset
22626
22627 .
22628  It contains a header specifying some general settings and, for each supported
22629  primary document file format, a section 
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 Format
22635 \end_layout
22636
22637 \end_inset
22638
22639  \SpecialChar \ldots{}
22640  
22641 \begin_inset Flex Code
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645 FormatEnd
22646 \end_layout
22647
22648 \end_inset
22649
22650 .
22651 \end_layout
22652
22653 \begin_layout Subsection
22654 The template header
22655 \end_layout
22656
22657 \begin_layout Description
22658 \begin_inset Flex Code
22659 status collapsed
22660
22661 \begin_layout Plain Layout
22662 AutomaticProduction
22663 \begin_inset space ~
22664 \end_inset
22665
22666 true|false
22667 \end_layout
22668
22669 \end_inset
22670
22671  Whether the file represented by the template must be generated by LyX.
22672  This command must occur exactly once.
22673 \end_layout
22674
22675 \begin_layout Description
22676 \begin_inset Flex Code
22677 status collapsed
22678
22679 \begin_layout Plain Layout
22680 FileFilter
22681 \begin_inset space ~
22682 \end_inset
22683
22684 <pattern>
22685 \end_layout
22686
22687 \end_inset
22688
22689  A glob pattern that is used in the file dialog to filter out the desired
22690  files.
22691  If there is more than one possible file extension (e.
22692 \begin_inset space \thinspace{}
22693 \end_inset
22694
22695 g.
22696 \begin_inset space \space{}
22697 \end_inset
22698
22699 tgif has 
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704 .obj
22705 \end_layout
22706
22707 \end_inset
22708
22709  and 
22710 \begin_inset Flex Code
22711 status collapsed
22712
22713 \begin_layout Plain Layout
22714 .tgo
22715 \end_layout
22716
22717 \end_inset
22718
22719 ), use something like 
22720 \begin_inset Flex Code
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724 "*.{obj,tgo}"
22725 \end_layout
22726
22727 \end_inset
22728
22729 .
22730  This command must occur exactly once.
22731 \end_layout
22732
22733 \begin_layout Description
22734 \begin_inset Flex Code
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738 GuiName
22739 \begin_inset space ~
22740 \end_inset
22741
22742 <guiname>
22743 \end_layout
22744
22745 \end_inset
22746
22747  The text that is displayed on the button.
22748  This command must occur exactly once.
22749 \end_layout
22750
22751 \begin_layout Description
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 HelpText
22757 \begin_inset space ~
22758 \end_inset
22759
22760 <text>
22761 \begin_inset space ~
22762 \end_inset
22763
22764 HelpTextEnd
22765 \end_layout
22766
22767 \end_inset
22768
22769  The help text that is used in the External dialog.
22770  Provide enough information to explain to the user just what the template
22771  can provide him with.
22772  This command must occur exactly once.
22773 \end_layout
22774
22775 \begin_layout Description
22776 \begin_inset Flex Code
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 InputFormat
22781 \begin_inset space ~
22782 \end_inset
22783
22784 <format>
22785 \end_layout
22786
22787 \end_inset
22788
22789  The file format of the original file.
22790  This must be the name of a format that is known to LyX (see section
22791 \begin_inset space ~
22792 \end_inset
22793
22794
22795 \begin_inset CommandInset ref
22796 LatexCommand ref
22797 reference "sec:Formats"
22798
22799 \end_inset
22800
22801 ).
22802  Use 
22803 \begin_inset Quotes eld
22804 \end_inset
22805
22806
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811 *
22812 \end_layout
22813
22814 \end_inset
22815
22816
22817 \begin_inset Quotes erd
22818 \end_inset
22819
22820  if the template can handle original files of more than one format.
22821  LyX will attempt to interrogate the file itself in order to deduce its
22822  format in this case.
22823  This command must occur exactly once.
22824 \end_layout
22825
22826 \begin_layout Description
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 Template
22832 \begin_inset space ~
22833 \end_inset
22834
22835 <id>
22836 \end_layout
22837
22838 \end_inset
22839
22840  A unique name for the template.
22841  It must not contain substitution macros (see below).
22842 \end_layout
22843
22844 \begin_layout Description
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849 Transform
22850 \begin_inset space ~
22851 \end_inset
22852
22853 Rotate|Resize|Clip|Extra
22854 \end_layout
22855
22856 \end_inset
22857
22858  This command specifies which transformations are supported by this template.
22859  It may occur zero or more times.
22860  This command enables the corresponding tabs in the external dialog.
22861  Each 
22862 \begin_inset Flex Code
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866 Transform
22867 \end_layout
22868
22869 \end_inset
22870
22871  command must have either a corresponding 
22872 \begin_inset Flex Code
22873 status collapsed
22874
22875 \begin_layout Plain Layout
22876 TransformCommand
22877 \end_layout
22878
22879 \end_inset
22880
22881  or a 
22882 \begin_inset Flex Code
22883 status collapsed
22884
22885 \begin_layout Plain Layout
22886 TransformOption
22887 \end_layout
22888
22889 \end_inset
22890
22891  command in the 
22892 \begin_inset Flex Code
22893 status collapsed
22894
22895 \begin_layout Plain Layout
22896 Format
22897 \end_layout
22898
22899 \end_inset
22900
22901  section.
22902  Otherwise the transformation will not be supported by that format.
22903 \end_layout
22904
22905 \begin_layout Subsection
22906 The Format section
22907 \end_layout
22908
22909 \begin_layout Description
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 Format
22915 \begin_inset space ~
22916 \end_inset
22917
22918 LaTeX|PDFLaTeX|PlainText|DocBook
22919 \end_layout
22920
22921 \end_inset
22922
22923  The primary document file format that this format definition is for.
22924  Not every template has a sensible representation in all document file formats.
22925  Please define nevertheless a 
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 Format
22931 \end_layout
22932
22933 \end_inset
22934
22935  section for all templates.
22936  Use a dummy text when no representation is available.
22937  Then you can at least see a reference to the external material in the exported
22938  document.
22939 \end_layout
22940
22941 \begin_layout Description
22942 \begin_inset Flex Code
22943 status collapsed
22944
22945 \begin_layout Plain Layout
22946 Option
22947 \begin_inset space ~
22948 \end_inset
22949
22950 <name>
22951 \begin_inset space ~
22952 \end_inset
22953
22954 <value>
22955 \end_layout
22956
22957 \end_inset
22958
22959  This command defines an additional macro 
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 $$<name>
22965 \end_layout
22966
22967 \end_inset
22968
22969  for substitution in 
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 Product
22975 \end_layout
22976
22977 \end_inset
22978
22979 .
22980  
22981 \begin_inset Flex Code
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 <value>
22986 \end_layout
22987
22988 \end_inset
22989
22990  itself may contain substitution macros.
22991  The advantage over using 
22992 \begin_inset Flex Code
22993 status collapsed
22994
22995 \begin_layout Plain Layout
22996 <value>
22997 \end_layout
22998
22999 \end_inset
23000
23001  directly in 
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006 Product
23007 \end_layout
23008
23009 \end_inset
23010
23011  is that the substituted value of 
23012 \begin_inset Flex Code
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016 $$<name>
23017 \end_layout
23018
23019 \end_inset
23020
23021  is sanitized so that it is a valid optional argument in the document format.
23022  This command may occur zero or more times.
23023 \end_layout
23024
23025 \begin_layout Description
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 Product
23031 \begin_inset space ~
23032 \end_inset
23033
23034 <text>
23035 \end_layout
23036
23037 \end_inset
23038
23039  The text that is inserted in the exported document.
23040  This is actually the most important command and can be quite complex.
23041  This command must occur exactly once.
23042 \end_layout
23043
23044 \begin_layout Description
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 Preamble
23050 \begin_inset space ~
23051 \end_inset
23052
23053 <name>
23054 \end_layout
23055
23056 \end_inset
23057
23058  This command specifies a preamble snippet that will be included in the
23059  LaTeX preamble.
23060  It has to be defined using 
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065 PreambleDef
23066 \end_layout
23067
23068 \end_inset
23069
23070  \SpecialChar \ldots{}
23071  
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 PreambleDefEnd
23077 \end_layout
23078
23079 \end_inset
23080
23081 .
23082  This command may occur zero or more times.
23083 \end_layout
23084
23085 \begin_layout Description
23086 \begin_inset Flex Code
23087 status collapsed
23088
23089 \begin_layout Plain Layout
23090 ReferencedFile
23091 \begin_inset space ~
23092 \end_inset
23093
23094 <format>
23095 \begin_inset space ~
23096 \end_inset
23097
23098 <filename>
23099 \end_layout
23100
23101 \end_inset
23102
23103  This command denotes files that are created by the conversion process and
23104  are needed for a particular export format.
23105  If the filename is relative, it is interpreted relative to the master document.
23106  This command may be given zero or more times.
23107 \end_layout
23108
23109 \begin_layout Description
23110 \begin_inset Flex Code
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 Requirement
23115 \begin_inset space ~
23116 \end_inset
23117
23118 <package>
23119 \end_layout
23120
23121 \end_inset
23122
23123  The name of a required LaTeX package.
23124  The package is included via 
23125 \begin_inset Flex Code
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129
23130 \backslash
23131 usepackage{}
23132 \end_layout
23133
23134 \end_inset
23135
23136  in the LaTeX preamble.
23137  This command may occur zero or more times.
23138 \end_layout
23139
23140 \begin_layout Description
23141 \begin_inset Flex Code
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145 TransformCommand
23146 \begin_inset space ~
23147 \end_inset
23148
23149 Rotate
23150 \begin_inset space ~
23151 \end_inset
23152
23153 RotationLatexCommand
23154 \end_layout
23155
23156 \end_inset
23157
23158  This command specifies that the built in LaTeX command should be used for
23159  rotation.
23160  This command may occur once or not at all.
23161 \end_layout
23162
23163 \begin_layout Description
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 TransformCommand
23169 \begin_inset space ~
23170 \end_inset
23171
23172 Resize
23173 \begin_inset space ~
23174 \end_inset
23175
23176 ResizeLatexCommand
23177 \end_layout
23178
23179 \end_inset
23180
23181  This command specifies that the built in LaTeX command should be used for
23182  resizing.
23183  This command may occur once or not at all.
23184 \end_layout
23185
23186 \begin_layout Description
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 TransformOption
23192 \begin_inset space ~
23193 \end_inset
23194
23195 Rotate
23196 \begin_inset space ~
23197 \end_inset
23198
23199 RotationLatexOption
23200 \end_layout
23201
23202 \end_inset
23203
23204  This command specifies that rotation is done via an optional argument.
23205  This command may occur once or not at all.
23206 \end_layout
23207
23208 \begin_layout Description
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 TransformOption
23214 \begin_inset space ~
23215 \end_inset
23216
23217 Resize
23218 \begin_inset space ~
23219 \end_inset
23220
23221 ResizeLatexOption
23222 \end_layout
23223
23224 \end_inset
23225
23226  This command specifies that resizing is done via an optional argument.
23227  This command may occur once or not at all.
23228 \end_layout
23229
23230 \begin_layout Description
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 TransformOption
23236 \begin_inset space ~
23237 \end_inset
23238
23239 Clip
23240 \begin_inset space ~
23241 \end_inset
23242
23243 ClipLatexOption
23244 \end_layout
23245
23246 \end_inset
23247
23248  This command specifies that clipping is done via an optional argument.
23249  This command may occur once or not at all.
23250 \end_layout
23251
23252 \begin_layout Description
23253 \begin_inset Flex Code
23254 status collapsed
23255
23256 \begin_layout Plain Layout
23257 TransformOption
23258 \begin_inset space ~
23259 \end_inset
23260
23261 Extra
23262 \begin_inset space ~
23263 \end_inset
23264
23265 ExtraLatexOption
23266 \end_layout
23267
23268 \end_inset
23269
23270  This command specifies that an extra optional argument is used.
23271  This command may occur once or not at all.
23272 \end_layout
23273
23274 \begin_layout Description
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 UpdateFormat
23280 \begin_inset space ~
23281 \end_inset
23282
23283 <format>
23284 \end_layout
23285
23286 \end_inset
23287
23288  The file format of the converted file.
23289  This must be the name of a format that is known to LyX (see the 
23290 \begin_inset Flex MenuItem
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \bar under
23296 T
23297 \bar default
23298 ools\SpecialChar \menuseparator
23299
23300 \bar under
23301 P
23302 \bar default
23303 references\SpecialChar \menuseparator
23304 File Handling\SpecialChar \menuseparator
23305 File Format
23306 \end_layout
23307
23308 \end_inset
23309
23310  dialog).
23311  This command must occur exactly once.
23312 \end_layout
23313
23314 \begin_layout Description
23315 \begin_inset Flex Code
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319 UpdateResult
23320 \begin_inset space ~
23321 \end_inset
23322
23323 <filename>
23324 \end_layout
23325
23326 \end_inset
23327
23328  The file name of the converted file.
23329  The file name must be absolute.
23330  This command must occur exactly once.
23331 \end_layout
23332
23333 \begin_layout Subsection
23334 Preamble definitions
23335 \end_layout
23336
23337 \begin_layout Standard
23338 The external template configuration file may contain additional preamble
23339  definitions enclosed by 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 PreambleDef
23345 \end_layout
23346
23347 \end_inset
23348
23349  \SpecialChar \ldots{}
23350  
23351 \begin_inset Flex Code
23352 status collapsed
23353
23354 \begin_layout Plain Layout
23355 PreambleDefEnd
23356 \end_layout
23357
23358 \end_inset
23359
23360 .
23361  They can be used by the templates in the 
23362 \begin_inset Flex Code
23363 status collapsed
23364
23365 \begin_layout Plain Layout
23366 Format
23367 \end_layout
23368
23369 \end_inset
23370
23371  section.
23372 \end_layout
23373
23374 \begin_layout Section
23375 The substitution mechanism
23376 \end_layout
23377
23378 \begin_layout Standard
23379 When the external material facility invokes an external program, it is done
23380  on the basis of a command defined in the template configuration file.
23381  These commands can contain various macros that are expanded before execution.
23382  Execution always take place in the directory of the containing document.
23383 \end_layout
23384
23385 \begin_layout Standard
23386 Also, whenever external material is to be displayed, the name will be produced
23387  by the substitution mechanism, and most other commands in the template
23388  definition support substitution as well.
23389 \end_layout
23390
23391 \begin_layout Standard
23392 The available macros are the following:
23393 \end_layout
23394
23395 \begin_layout Description
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 $$AbsOrRelPathMaster
23401 \end_layout
23402
23403 \end_inset
23404
23405  The file path, absolute or relative to the master LyX document.
23406 \end_layout
23407
23408 \begin_layout Description
23409 \begin_inset Flex Code
23410 status collapsed
23411
23412 \begin_layout Plain Layout
23413 $$AbsOrRelPathParent
23414 \end_layout
23415
23416 \end_inset
23417
23418  The file path, absolute or relative to the LyX document.
23419 \end_layout
23420
23421 \begin_layout Description
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 $$AbsPath
23427 \end_layout
23428
23429 \end_inset
23430
23431  The absolute file path.
23432 \end_layout
23433
23434 \begin_layout Description
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 $$Basename
23440 \end_layout
23441
23442 \end_inset
23443
23444  The filename without path and without the extension.
23445 \end_layout
23446
23447 \begin_layout Description
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 $$Contents(
23453 \begin_inset Quotes eld
23454 \end_inset
23455
23456 filename.ext
23457 \begin_inset Quotes erd
23458 \end_inset
23459
23460 )
23461 \end_layout
23462
23463 \end_inset
23464
23465  This macro will expand to the contents of the file with the name 
23466 \begin_inset Flex Code
23467 status collapsed
23468
23469 \begin_layout Plain Layout
23470 filename.ext
23471 \end_layout
23472
23473 \end_inset
23474
23475 .
23476 \end_layout
23477
23478 \begin_layout Description
23479 \begin_inset Flex Code
23480 status collapsed
23481
23482 \begin_layout Plain Layout
23483 $$Extension
23484 \end_layout
23485
23486 \end_inset
23487
23488  The file extension (including the dot).
23489 \end_layout
23490
23491 \begin_layout Description
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 $$FName
23497 \end_layout
23498
23499 \end_inset
23500
23501  The filename of the file specified in the external material dialog.
23502  This is either an absolute name, or it is relative to the LyX document.
23503 \end_layout
23504
23505 \begin_layout Description
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 $$FPath
23511 \end_layout
23512
23513 \end_inset
23514
23515  The path part of 
23516 \begin_inset Flex Code
23517 status collapsed
23518
23519 \begin_layout Plain Layout
23520 $$FName
23521 \end_layout
23522
23523 \end_inset
23524
23525  (absolute name or relative to the LyX document).
23526 \end_layout
23527
23528 \begin_layout Description
23529 \begin_inset Flex Code
23530 status collapsed
23531
23532 \begin_layout Plain Layout
23533 $$RelPathMaster
23534 \end_layout
23535
23536 \end_inset
23537
23538  The file path, relative to the master LyX document.
23539 \end_layout
23540
23541 \begin_layout Description
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 $$RelPathParent
23547 \end_layout
23548
23549 \end_inset
23550
23551  The file path, relative to the LyX document.
23552 \end_layout
23553
23554 \begin_layout Description
23555 \begin_inset Flex Code
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 $$Sysdir
23560 \end_layout
23561
23562 \end_inset
23563
23564  This macro will expand to the absolute path of the system directory.
23565  This is typically used to point to the various helper scripts that are
23566  bundled with LyX.
23567 \end_layout
23568
23569 \begin_layout Description
23570 \begin_inset Flex Code
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574 $$Tempname
23575 \end_layout
23576
23577 \end_inset
23578
23579  A name and full path to a temporary file which will be automatically deleted
23580  whenever the containing document is closed, or the external material insertion
23581  deleted.
23582 \end_layout
23583
23584 \begin_layout Standard
23585 All path macros contain a trailing directory separator, so you can construct
23586  e.
23587 \begin_inset space \thinspace{}
23588 \end_inset
23589
23590 g.
23591 \begin_inset space \space{}
23592 \end_inset
23593
23594 the absolute filename with 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 $$AbsPath$$Basename$$Extension
23600 \end_layout
23601
23602 \end_inset
23603
23604 .
23605 \end_layout
23606
23607 \begin_layout Standard
23608 The macros above are substituted in all commands unless otherwise noted.
23609  The command 
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 Product
23615 \end_layout
23616
23617 \end_inset
23618
23619  supports additionally the following substitutions if they are enabled by
23620  the 
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625 Transform
23626 \end_layout
23627
23628 \end_inset
23629
23630  and 
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 TransformCommand
23636 \end_layout
23637
23638 \end_inset
23639
23640  commands:
23641 \end_layout
23642
23643 \begin_layout Description
23644 \begin_inset Flex Code
23645 status collapsed
23646
23647 \begin_layout Plain Layout
23648 $$ResizeFront
23649 \end_layout
23650
23651 \end_inset
23652
23653  The front part of the resize command.
23654 \end_layout
23655
23656 \begin_layout Description
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 $$ResizeBack
23662 \end_layout
23663
23664 \end_inset
23665
23666  The back part of the resize command.
23667 \end_layout
23668
23669 \begin_layout Description
23670 \begin_inset Flex Code
23671 status collapsed
23672
23673 \begin_layout Plain Layout
23674 $$RotateFront
23675 \end_layout
23676
23677 \end_inset
23678
23679  The front part of the rotation command.
23680 \end_layout
23681
23682 \begin_layout Description
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 $$RotateBack
23688 \end_layout
23689
23690 \end_inset
23691
23692  The back part of the rotation command.
23693 \end_layout
23694
23695 \begin_layout Standard
23696 The value string of the 
23697 \begin_inset Flex Code
23698 status collapsed
23699
23700 \begin_layout Plain Layout
23701 Option
23702 \end_layout
23703
23704 \end_inset
23705
23706  command supports additionally the following substitutions if they are enabled
23707  by the 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 Transform
23713 \end_layout
23714
23715 \end_inset
23716
23717  and 
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 TransformOption
23723 \end_layout
23724
23725 \end_inset
23726
23727  commands:
23728 \end_layout
23729
23730 \begin_layout Description
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 $$Clip
23736 \end_layout
23737
23738 \end_inset
23739
23740  The clip option.
23741 \end_layout
23742
23743 \begin_layout Description
23744 \begin_inset Flex Code
23745 status collapsed
23746
23747 \begin_layout Plain Layout
23748 $$Extra
23749 \end_layout
23750
23751 \end_inset
23752
23753  The extra option.
23754 \end_layout
23755
23756 \begin_layout Description
23757 \begin_inset Flex Code
23758 status collapsed
23759
23760 \begin_layout Plain Layout
23761 $$Resize
23762 \end_layout
23763
23764 \end_inset
23765
23766  The resize option.
23767 \end_layout
23768
23769 \begin_layout Description
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 $$Rotate
23775 \end_layout
23776
23777 \end_inset
23778
23779  The rotation option.
23780 \end_layout
23781
23782 \begin_layout Standard
23783 You may ask why there are so many path macros.
23784  There are mainly two reasons:
23785 \end_layout
23786
23787 \begin_layout Enumerate
23788 Relative and absolute file names should remain relative or absolute, respectivel
23789 y.
23790  Users may have reasons to prefer either form.
23791  Relative names are useful for portable documents that should work on different
23792  machines, for example.
23793  Absolute names may be required by some programs.
23794 \end_layout
23795
23796 \begin_layout Enumerate
23797 LaTeX treats relative file names differently than LyX and other programs
23798  in nested included files.
23799  For LyX, a relative file name is always relative to the document that contains
23800  the file name.
23801  For LaTeX, it is always relative to the master document.
23802  These two definitions are identical if you have only one document, but
23803  differ if you have a master document that includes part documents.
23804  That means that relative filenames must be transformed when presented to
23805  LaTeX.
23806  Fortunately LyX does this automatically for you if you choose the right
23807  macros.
23808 \end_layout
23809
23810 \begin_layout Standard
23811 So which path macro should be used in new template definitions? The rule
23812  is not difficult:
23813 \end_layout
23814
23815 \begin_layout Itemize
23816 Use 
23817 \begin_inset Flex Code
23818 status collapsed
23819
23820 \begin_layout Plain Layout
23821 $$AbsPath
23822 \end_layout
23823
23824 \end_inset
23825
23826  if an absolute path is required.
23827 \end_layout
23828
23829 \begin_layout Itemize
23830 Use 
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835 $$AbsOrRelPathMaster
23836 \end_layout
23837
23838 \end_inset
23839
23840  if the substituted string is some kind of LaTeX input.
23841 \end_layout
23842
23843 \begin_layout Itemize
23844 Else use 
23845 \begin_inset Flex Code
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849 $$AbsOrRelPathParent
23850 \end_layout
23851
23852 \end_inset
23853
23854  in order to preserve the user's choice.
23855 \end_layout
23856
23857 \begin_layout Standard
23858 There are special cases where this rule does not work and e.
23859 \begin_inset space \thinspace{}
23860 \end_inset
23861
23862 g.
23863 \begin_inset space \space{}
23864 \end_inset
23865
23866 relative names are needed, but normally it will work just fine.
23867  One example for such a case is the command 
23868 \begin_inset Flex Code
23869 status collapsed
23870
23871 \begin_layout Plain Layout
23872 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23873 \end_layout
23874
23875 \end_inset
23876
23877  in the XFig template above: We can't use the absolute name because the
23878  copier for 
23879 \begin_inset Flex Code
23880 status collapsed
23881
23882 \begin_layout Plain Layout
23883 .pstex_t
23884 \end_layout
23885
23886 \end_inset
23887
23888  files needs the relative name in order to rewrite the file content.
23889 \end_layout
23890
23891 \begin_layout Section
23892 Security discussion
23893 \begin_inset CommandInset label
23894 LatexCommand label
23895 name "sec:Security-discussion"
23896
23897 \end_inset
23898
23899
23900 \end_layout
23901
23902 \begin_layout Standard
23903 The external material feature interfaces with a lot of external programs
23904  and does so automatically, so we have to consider the security implications
23905  of this.
23906  In particular, since you have the option of including your own filenames
23907  and/or parameter strings and those are expanded into a command, it seems
23908  that it would be possible to create a malicious document which executes
23909  arbitrary commands when a user views or prints the document.
23910  This is something we definitely want to avoid.
23911 \end_layout
23912
23913 \begin_layout Standard
23914 However, since the external program commands are specified in the template
23915  configuration file only, there are no security issues if LyX is properly
23916  configured with safe templates only.
23917  This is so because the external programs are invoked with the 
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 execvp
23923 \end_layout
23924
23925 \end_inset
23926
23927 -system call rather than the 
23928 \begin_inset Flex Code
23929 status collapsed
23930
23931 \begin_layout Plain Layout
23932 system
23933 \end_layout
23934
23935 \end_inset
23936
23937  system-call, so it's not possible to execute arbitrary commands from the
23938  filename or parameter section via the shell.
23939 \end_layout
23940
23941 \begin_layout Standard
23942 This also implies that you are restricted in what command strings you can
23943  use in the external material templates.
23944  In particular, pipes and redirection are not readily available.
23945  This has to be so if LyX should remain safe.
23946  If you want to use some of the shell features, you should write a safe
23947  script to do this in a controlled manner, and then invoke the script from
23948  the command string.
23949  
23950 \end_layout
23951
23952 \begin_layout Standard
23953 It is possible to design a template that interacts directly with the shell,
23954  but since this would allow a malicious user to execute arbitrary commands
23955  by writing clever filenames and/or parameters, we generally recommend that
23956  you only use safe scripts that work with the 
23957 \begin_inset Flex Code
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 execvp
23962 \end_layout
23963
23964 \end_inset
23965
23966  system call in a controlled manner.
23967  Of course, for use in a controlled environment, it can be tempting to just
23968  fall back to use ordinary shell scripts.
23969  If you do so, be aware that you 
23970 \emph on
23971 will
23972 \emph default
23973  provide an easily exploitable security hole in your system.
23974  Of course it stands to reason that such unsafe templates will never be
23975  included in the standard LyX distribution, although we do encourage people
23976  to submit new templates in the open source tradition.
23977  But LyX as shipped from the official distribution channels will never have
23978  unsafe templates.
23979 \end_layout
23980
23981 \begin_layout Standard
23982 Including external material provides a lot of power, and you have to be
23983  careful not to introduce security hazards with this power.
23984  A subtle error in a single line in an innocent looking script can open
23985  the door to huge security problems.
23986  So if you do not fully understand the issues, we recommend that you consult
23987  a knowledgeable security professional or the LyX development team if you
23988  have any questions about whether a given template is safe or not.
23989  And do this before you use it in an uncontrolled environment.
23990 \end_layout
23991
23992 \begin_layout Chapter
23993 \start_of_appendix
23994 List of functions to be used in layouts
23995 \begin_inset CommandInset label
23996 LatexCommand label
23997 name "chap:List-of-functions"
23998
23999 \end_inset
24000
24001
24002 \end_layout
24003
24004 \begin_layout Standard
24005 \align center
24006 \begin_inset Tabular
24007 <lyxtabular version="3" rows="10" columns="6">
24008 <features rotate="0" tabularvalignment="middle">
24009 <column alignment="left" valignment="top" width="14col%">
24010 <column alignment="left" valignment="top" width="14col%">
24011 <column alignment="left" valignment="top" width="14col%">
24012 <column alignment="left" valignment="top" width="14col%">
24013 <column alignment="left" valignment="top" width="14col%">
24014 <column alignment="left" valignment="top" width="14col%">
24015 <row>
24016 <cell alignment="left" valignment="top" usebox="none">
24017 \begin_inset Text
24018
24019 \begin_layout Plain Layout
24020 accents
24021 \end_layout
24022
24023 \end_inset
24024 </cell>
24025 <cell alignment="left" valignment="top" usebox="none">
24026 \begin_inset Text
24027
24028 \begin_layout Plain Layout
24029 bbding
24030 \end_layout
24031
24032 \end_inset
24033 </cell>
24034 <cell alignment="left" valignment="top" usebox="none">
24035 \begin_inset Text
24036
24037 \begin_layout Plain Layout
24038 dvipost
24039 \end_layout
24040
24041 \end_inset
24042 </cell>
24043 <cell alignment="left" valignment="top" usebox="none">
24044 \begin_inset Text
24045
24046 \begin_layout Plain Layout
24047 fancybox
24048 \end_layout
24049
24050 \end_inset
24051 </cell>
24052 <cell alignment="left" valignment="top" usebox="none">
24053 \begin_inset Text
24054
24055 \begin_layout Plain Layout
24056 hhline
24057 \end_layout
24058
24059 \end_inset
24060 </cell>
24061 <cell alignment="left" valignment="top" usebox="none">
24062 \begin_inset Text
24063
24064 \begin_layout Plain Layout
24065 latexsym
24066 \end_layout
24067
24068 \end_inset
24069 </cell>
24070 </row>
24071 <row>
24072 <cell alignment="left" valignment="top" usebox="none">
24073 \begin_inset Text
24074
24075 \begin_layout Plain Layout
24076 amsbsy
24077 \end_layout
24078
24079 \end_inset
24080 </cell>
24081 <cell alignment="left" valignment="top" usebox="none">
24082 \begin_inset Text
24083
24084 \begin_layout Plain Layout
24085 bm
24086 \end_layout
24087
24088 \end_inset
24089 </cell>
24090 <cell alignment="left" valignment="top" usebox="none">
24091 \begin_inset Text
24092
24093 \begin_layout Plain Layout
24094
24095 \end_layout
24096
24097 \end_inset
24098 </cell>
24099 <cell alignment="left" valignment="top" usebox="none">
24100 \begin_inset Text
24101
24102 \begin_layout Plain Layout
24103 feyn
24104 \end_layout
24105
24106 \end_inset
24107 </cell>
24108 <cell alignment="left" valignment="top" usebox="none">
24109 \begin_inset Text
24110
24111 \begin_layout Plain Layout
24112 hyperref
24113 \end_layout
24114
24115 \end_inset
24116 </cell>
24117 <cell alignment="left" valignment="top" usebox="none">
24118 \begin_inset Text
24119
24120 \begin_layout Plain Layout
24121 listings
24122 \end_layout
24123
24124 \end_inset
24125 </cell>
24126 </row>
24127 <row>
24128 <cell alignment="left" valignment="top" usebox="none">
24129 \begin_inset Text
24130
24131 \begin_layout Plain Layout
24132 amscd
24133 \end_layout
24134
24135 \end_inset
24136 </cell>
24137 <cell alignment="left" valignment="top" usebox="none">
24138 \begin_inset Text
24139
24140 \begin_layout Plain Layout
24141 booktabs
24142 \end_layout
24143
24144 \end_inset
24145 </cell>
24146 <cell alignment="left" valignment="top" usebox="none">
24147 \begin_inset Text
24148
24149 \begin_layout Plain Layout
24150 endnotes
24151 \end_layout
24152
24153 \end_inset
24154 </cell>
24155 <cell alignment="left" valignment="top" usebox="none">
24156 \begin_inset Text
24157
24158 \begin_layout Plain Layout
24159 fixltx2e
24160 \end_layout
24161
24162 \end_inset
24163 </cell>
24164 <cell alignment="left" valignment="top" usebox="none">
24165 \begin_inset Text
24166
24167 \begin_layout Plain Layout
24168
24169 \end_layout
24170
24171 \end_inset
24172 </cell>
24173 <cell alignment="left" valignment="top" usebox="none">
24174 \begin_inset Text
24175
24176 \begin_layout Plain Layout
24177 longtable
24178 \end_layout
24179
24180 \end_inset
24181 </cell>
24182 </row>
24183 <row>
24184 <cell alignment="left" valignment="top" usebox="none">
24185 \begin_inset Text
24186
24187 \begin_layout Plain Layout
24188 amsmath
24189 \end_layout
24190
24191 \end_inset
24192 </cell>
24193 <cell alignment="left" valignment="top" usebox="none">
24194 \begin_inset Text
24195
24196 \begin_layout Plain Layout
24197
24198 \end_layout
24199
24200 \end_inset
24201 </cell>
24202 <cell alignment="left" valignment="top" usebox="none">
24203 \begin_inset Text
24204
24205 \begin_layout Plain Layout
24206 enumitem
24207 \end_layout
24208
24209 \end_inset
24210 </cell>
24211 <cell alignment="left" valignment="top" usebox="none">
24212 \begin_inset Text
24213
24214 \begin_layout Plain Layout
24215 float
24216 \end_layout
24217
24218 \end_inset
24219 </cell>
24220 <cell alignment="left" valignment="top" usebox="none">
24221 \begin_inset Text
24222
24223 \begin_layout Plain Layout
24224 ifsym
24225 \end_layout
24226
24227 \end_inset
24228 </cell>
24229 <cell alignment="left" valignment="top" usebox="none">
24230 \begin_inset Text
24231
24232 \begin_layout Plain Layout
24233 lyxskak
24234 \end_layout
24235
24236 \end_inset
24237 </cell>
24238 </row>
24239 <row>
24240 <cell alignment="left" valignment="top" usebox="none">
24241 \begin_inset Text
24242
24243 \begin_layout Plain Layout
24244 amssymb
24245 \end_layout
24246
24247 \end_inset
24248 </cell>
24249 <cell alignment="left" valignment="top" usebox="none">
24250 \begin_inset Text
24251
24252 \begin_layout Plain Layout
24253 CJK
24254 \end_layout
24255
24256 \end_inset
24257 </cell>
24258 <cell alignment="left" valignment="top" usebox="none">
24259 \begin_inset Text
24260
24261 \begin_layout Plain Layout
24262 esint
24263 \end_layout
24264
24265 \end_inset
24266 </cell>
24267 <cell alignment="left" valignment="top" usebox="none">
24268 \begin_inset Text
24269
24270 \begin_layout Plain Layout
24271 framed
24272 \end_layout
24273
24274 \end_inset
24275 </cell>
24276 <cell alignment="left" valignment="top" usebox="none">
24277 \begin_inset Text
24278
24279 \begin_layout Plain Layout
24280 ifthen
24281 \end_layout
24282
24283 \end_inset
24284 </cell>
24285 <cell alignment="left" valignment="top" usebox="none">
24286 \begin_inset Text
24287
24288 \begin_layout Plain Layout
24289
24290 \end_layout
24291
24292 \end_inset
24293 </cell>
24294 </row>
24295 <row>
24296 <cell alignment="left" valignment="top" usebox="none">
24297 \begin_inset Text
24298
24299 \begin_layout Plain Layout
24300 amstext
24301 \end_layout
24302
24303 \end_inset
24304 </cell>
24305 <cell alignment="left" valignment="top" usebox="none">
24306 \begin_inset Text
24307
24308 \begin_layout Plain Layout
24309 color
24310 \end_layout
24311
24312 \end_inset
24313 </cell>
24314 <cell alignment="left" valignment="top" usebox="none">
24315 \begin_inset Text
24316
24317 \begin_layout Plain Layout
24318
24319 \end_layout
24320
24321 \end_inset
24322 </cell>
24323 <cell alignment="left" valignment="top" usebox="none">
24324 \begin_inset Text
24325
24326 \begin_layout Plain Layout
24327
24328 \end_layout
24329
24330 \end_inset
24331 </cell>
24332 <cell alignment="left" valignment="top" usebox="none">
24333 \begin_inset Text
24334
24335 \begin_layout Plain Layout
24336
24337 \end_layout
24338
24339 \end_inset
24340 </cell>
24341 <cell alignment="left" valignment="top" usebox="none">
24342 \begin_inset Text
24343
24344 \begin_layout Plain Layout
24345 makeidx
24346 \end_layout
24347
24348 \end_inset
24349 </cell>
24350 </row>
24351 <row>
24352 <cell alignment="left" valignment="top" usebox="none">
24353 \begin_inset Text
24354
24355 \begin_layout Plain Layout
24356 amsthm
24357 \end_layout
24358
24359 \end_inset
24360 </cell>
24361 <cell alignment="left" valignment="top" usebox="none">
24362 \begin_inset Text
24363
24364 \begin_layout Plain Layout
24365 covington
24366 \end_layout
24367
24368 \end_inset
24369 </cell>
24370 <cell alignment="left" valignment="top" usebox="none">
24371 \begin_inset Text
24372
24373 \begin_layout Plain Layout
24374
24375 \end_layout
24376
24377 \end_inset
24378 </cell>
24379 <cell alignment="left" valignment="top" usebox="none">
24380 \begin_inset Text
24381
24382 \begin_layout Plain Layout
24383 graphicx
24384 \end_layout
24385
24386 \end_inset
24387 </cell>
24388 <cell alignment="left" valignment="top" usebox="none">
24389 \begin_inset Text
24390
24391 \begin_layout Plain Layout
24392 jurabib
24393 \end_layout
24394
24395 \end_inset
24396 </cell>
24397 <cell alignment="left" valignment="top" usebox="none">
24398 \begin_inset Text
24399
24400 \begin_layout Plain Layout
24401 marvosym
24402 \end_layout
24403
24404 \end_inset
24405 </cell>
24406 </row>
24407 <row>
24408 <cell alignment="left" valignment="top" usebox="none">
24409 \begin_inset Text
24410
24411 \begin_layout Plain Layout
24412 array
24413 \end_layout
24414
24415 \end_inset
24416 </cell>
24417 <cell alignment="left" valignment="top" usebox="none">
24418 \begin_inset Text
24419
24420 \begin_layout Plain Layout
24421 csquotes
24422 \end_layout
24423
24424 \end_inset
24425 </cell>
24426 <cell alignment="left" valignment="top" usebox="none">
24427 \begin_inset Text
24428
24429 \begin_layout Plain Layout
24430
24431 \end_layout
24432
24433 \end_inset
24434 </cell>
24435 <cell alignment="left" valignment="top" usebox="none">
24436 \begin_inset Text
24437
24438 \begin_layout Plain Layout
24439
24440 \end_layout
24441
24442 \end_inset
24443 </cell>
24444 <cell alignment="left" valignment="top" usebox="none">
24445 \begin_inset Text
24446
24447 \begin_layout Plain Layout
24448
24449 \end_layout
24450
24451 \end_inset
24452 </cell>
24453 <cell alignment="left" valignment="top" usebox="none">
24454 \begin_inset Text
24455
24456 \begin_layout Plain Layout
24457 mathdesign
24458 \end_layout
24459
24460 \end_inset
24461 </cell>
24462 </row>
24463 <row>
24464 <cell alignment="left" valignment="top" usebox="none">
24465 \begin_inset Text
24466
24467 \begin_layout Plain Layout
24468 ascii
24469 \end_layout
24470
24471 \end_inset
24472 </cell>
24473 <cell alignment="left" valignment="top" usebox="none">
24474 \begin_inset Text
24475
24476 \begin_layout Plain Layout
24477
24478 \end_layout
24479
24480 \end_inset
24481 </cell>
24482 <cell alignment="left" valignment="top" usebox="none">
24483 \begin_inset Text
24484
24485 \begin_layout Plain Layout
24486
24487 \end_layout
24488
24489 \end_inset
24490 </cell>
24491 <cell alignment="left" valignment="top" usebox="none">
24492 \begin_inset Text
24493
24494 \begin_layout Plain Layout
24495 mathdesign
24496 \end_layout
24497
24498 \end_inset
24499 </cell>
24500 <cell alignment="left" valignment="top" usebox="none">
24501 \begin_inset Text
24502
24503 \begin_layout Plain Layout
24504
24505 \end_layout
24506
24507 \end_inset
24508 </cell>
24509 <cell alignment="left" valignment="top" usebox="none">
24510 \begin_inset Text
24511
24512 \begin_layout Plain Layout
24513 mathdots
24514 \end_layout
24515
24516 \end_inset
24517 </cell>
24518 </row>
24519 <row>
24520 <cell alignment="left" valignment="top" usebox="none">
24521 \begin_inset Text
24522
24523 \begin_layout Plain Layout
24524
24525 \end_layout
24526
24527 \end_inset
24528 </cell>
24529 <cell alignment="left" valignment="top" usebox="none">
24530 \begin_inset Text
24531
24532 \begin_layout Plain Layout
24533
24534 \end_layout
24535
24536 \end_inset
24537 </cell>
24538 <cell alignment="left" valignment="top" usebox="none">
24539 \begin_inset Text
24540
24541 \begin_layout Plain Layout
24542
24543 \end_layout
24544
24545 \end_inset
24546 </cell>
24547 <cell alignment="left" valignment="top" usebox="none">
24548 \begin_inset Text
24549
24550 \begin_layout Plain Layout
24551 mathdots
24552 \end_layout
24553
24554 \end_inset
24555 </cell>
24556 <cell alignment="left" valignment="top" usebox="none">
24557 \begin_inset Text
24558
24559 \begin_layout Plain Layout
24560
24561 \end_layout
24562
24563 \end_inset
24564 </cell>
24565 <cell alignment="left" valignment="top" usebox="none">
24566 \begin_inset Text
24567
24568 \begin_layout Plain Layout
24569 subfig
24570 \end_layout
24571
24572 \end_inset
24573 </cell>
24574 </row>
24575 </lyxtabular>
24576
24577 \end_inset
24578
24579
24580 \end_layout
24581
24582 \begin_layout Standard
24583 \align center
24584 \begin_inset Tabular
24585 <lyxtabular version="3" rows="10" columns="6">
24586 <features rotate="0" tabularvalignment="middle">
24587 <column alignment="left" valignment="top" width="14col%">
24588 <column alignment="left" valignment="top" width="14col%">
24589 <column alignment="left" valignment="top" width="14col%">
24590 <column alignment="left" valignment="top" width="14col%">
24591 <column alignment="left" valignment="top" width="14col%">
24592 <column alignment="left" valignment="top" width="14col%">
24593 <row>
24594 <cell alignment="left" valignment="top" usebox="none">
24595 \begin_inset Text
24596
24597 \begin_layout Plain Layout
24598 makeidx
24599 \end_layout
24600
24601 \end_inset
24602 </cell>
24603 <cell alignment="left" valignment="top" usebox="none">
24604 \begin_inset Text
24605
24606 \begin_layout Plain Layout
24607 pdfcolmk
24608 \end_layout
24609
24610 \end_inset
24611 </cell>
24612 <cell alignment="left" valignment="top" usebox="none">
24613 \begin_inset Text
24614
24615 \begin_layout Plain Layout
24616 setspace
24617 \end_layout
24618
24619 \end_inset
24620 </cell>
24621 <cell alignment="left" valignment="top" usebox="none">
24622 \begin_inset Text
24623
24624 \begin_layout Plain Layout
24625 textcomp
24626 \end_layout
24627
24628 \end_inset
24629 </cell>
24630 <cell alignment="left" valignment="top" usebox="none">
24631 \begin_inset Text
24632
24633 \begin_layout Plain Layout
24634 ulem
24635 \end_layout
24636
24637 \end_inset
24638 </cell>
24639 <cell alignment="left" valignment="top" usebox="none">
24640 \begin_inset Text
24641
24642 \begin_layout Plain Layout
24643 xargs
24644 \end_layout
24645
24646 \end_inset
24647 </cell>
24648 </row>
24649 <row>
24650 <cell alignment="left" valignment="top" usebox="none">
24651 \begin_inset Text
24652
24653 \begin_layout Plain Layout
24654 marvosym
24655 \end_layout
24656
24657 \end_inset
24658 </cell>
24659 <cell alignment="left" valignment="top" usebox="none">
24660 \begin_inset Text
24661
24662 \begin_layout Plain Layout
24663 pdfpages
24664 \end_layout
24665
24666 \end_inset
24667 </cell>
24668 <cell alignment="left" valignment="top" usebox="none">
24669 \begin_inset Text
24670
24671 \begin_layout Plain Layout
24672 slashed
24673 \end_layout
24674
24675 \end_inset
24676 </cell>
24677 <cell alignment="left" valignment="top" usebox="none">
24678 \begin_inset Text
24679
24680 \begin_layout Plain Layout
24681 textgreek
24682 \end_layout
24683
24684 \end_inset
24685 </cell>
24686 <cell alignment="left" valignment="top" usebox="none">
24687 \begin_inset Text
24688
24689 \begin_layout Plain Layout
24690 undertilde
24691 \end_layout
24692
24693 \end_inset
24694 </cell>
24695 <cell alignment="left" valignment="top" usebox="none">
24696 \begin_inset Text
24697
24698 \begin_layout Plain Layout
24699 xcolor
24700 \end_layout
24701
24702 \end_inset
24703 </cell>
24704 </row>
24705 <row>
24706 <cell alignment="left" valignment="top" usebox="none">
24707 \begin_inset Text
24708
24709 \begin_layout Plain Layout
24710 mathdesign
24711 \end_layout
24712
24713 \end_inset
24714 </cell>
24715 <cell alignment="left" valignment="top" usebox="none">
24716 \begin_inset Text
24717
24718 \begin_layout Plain Layout
24719 pifont
24720 \end_layout
24721
24722 \end_inset
24723 </cell>
24724 <cell alignment="left" valignment="top" usebox="none">
24725 \begin_inset Text
24726
24727 \begin_layout Plain Layout
24728 soul
24729 \end_layout
24730
24731 \end_inset
24732 </cell>
24733 <cell alignment="left" valignment="top" usebox="none">
24734 \begin_inset Text
24735
24736 \begin_layout Plain Layout
24737 tfrupee
24738 \end_layout
24739
24740 \end_inset
24741 </cell>
24742 <cell alignment="left" valignment="top" usebox="none">
24743 \begin_inset Text
24744
24745 \begin_layout Plain Layout
24746 units
24747 \end_layout
24748
24749 \end_inset
24750 </cell>
24751 <cell alignment="left" valignment="top" usebox="none">
24752 \begin_inset Text
24753
24754 \begin_layout Plain Layout
24755 xy
24756 \end_layout
24757
24758 \end_inset
24759 </cell>
24760 </row>
24761 <row>
24762 <cell alignment="left" valignment="top" usebox="none">
24763 \begin_inset Text
24764
24765 \begin_layout Plain Layout
24766 mathdots
24767 \end_layout
24768
24769 \end_inset
24770 </cell>
24771 <cell alignment="left" valignment="top" usebox="none">
24772 \begin_inset Text
24773
24774 \begin_layout Plain Layout
24775 pmboxdraw
24776 \end_layout
24777
24778 \end_inset
24779 </cell>
24780 <cell alignment="left" valignment="top" usebox="none">
24781 \begin_inset Text
24782
24783 \begin_layout Plain Layout
24784 splitidx
24785 \end_layout
24786
24787 \end_inset
24788 </cell>
24789 <cell alignment="left" valignment="top" usebox="none">
24790 \begin_inset Text
24791
24792 \begin_layout Plain Layout
24793 tipa
24794 \end_layout
24795
24796 \end_inset
24797 </cell>
24798 <cell alignment="left" valignment="top" usebox="none">
24799 \begin_inset Text
24800
24801 \begin_layout Plain Layout
24802 url
24803 \end_layout
24804
24805 \end_inset
24806 </cell>
24807 <cell alignment="left" valignment="top" usebox="none">
24808 \begin_inset Text
24809
24810 \begin_layout Plain Layout
24811
24812 \end_layout
24813
24814 \end_inset
24815 </cell>
24816 </row>
24817 <row>
24818 <cell alignment="left" valignment="top" usebox="none">
24819 \begin_inset Text
24820
24821 \begin_layout Plain Layout
24822 mathrsfs
24823 \end_layout
24824
24825 \end_inset
24826 </cell>
24827 <cell alignment="left" valignment="top" usebox="none">
24828 \begin_inset Text
24829
24830 \begin_layout Plain Layout
24831 polyglossia
24832 \end_layout
24833
24834 \end_inset
24835 </cell>
24836 <cell alignment="left" valignment="top" usebox="none">
24837 \begin_inset Text
24838
24839 \begin_layout Plain Layout
24840 subfig
24841 \end_layout
24842
24843 \end_inset
24844 </cell>
24845 <cell alignment="left" valignment="top" usebox="none">
24846 \begin_inset Text
24847
24848 \begin_layout Plain Layout
24849 tipx
24850 \end_layout
24851
24852 \end_inset
24853 </cell>
24854 <cell alignment="left" valignment="top" usebox="none">
24855 \begin_inset Text
24856
24857 \begin_layout Plain Layout
24858
24859 \end_layout
24860
24861 \end_inset
24862 </cell>
24863 <cell alignment="left" valignment="top" usebox="none">
24864 \begin_inset Text
24865
24866 \begin_layout Plain Layout
24867 yhmath
24868 \end_layout
24869
24870 \end_inset
24871 </cell>
24872 </row>
24873 <row>
24874 <cell alignment="left" valignment="top" usebox="none">
24875 \begin_inset Text
24876
24877 \begin_layout Plain Layout
24878 mhchem
24879 \end_layout
24880
24881 \end_inset
24882 </cell>
24883 <cell alignment="left" valignment="top" usebox="none">
24884 \begin_inset Text
24885
24886 \begin_layout Plain Layout
24887 prettyref
24888 \end_layout
24889
24890 \end_inset
24891 </cell>
24892 <cell alignment="left" valignment="top" usebox="none">
24893 \begin_inset Text
24894
24895 \begin_layout Plain Layout
24896 subscript
24897 \end_layout
24898
24899 \end_inset
24900 </cell>
24901 <cell alignment="left" valignment="top" usebox="none">
24902 \begin_inset Text
24903
24904 \begin_layout Plain Layout
24905 tone
24906 \end_layout
24907
24908 \end_inset
24909 </cell>
24910 <cell alignment="left" valignment="top" usebox="none">
24911 \begin_inset Text
24912
24913 \begin_layout Plain Layout
24914 varioref
24915 \end_layout
24916
24917 \end_inset
24918 </cell>
24919 <cell alignment="left" valignment="top" usebox="none">
24920 \begin_inset Text
24921
24922 \begin_layout Plain Layout
24923
24924 \end_layout
24925
24926 \end_inset
24927 </cell>
24928 </row>
24929 <row>
24930 <cell alignment="left" valignment="top" usebox="none">
24931 \begin_inset Text
24932
24933 \begin_layout Plain Layout
24934 multirow
24935 \end_layout
24936
24937 \end_inset
24938 </cell>
24939 <cell alignment="left" valignment="top" usebox="none">
24940 \begin_inset Text
24941
24942 \begin_layout Plain Layout
24943 pxfonts
24944 \end_layout
24945
24946 \end_inset
24947 </cell>
24948 <cell alignment="left" valignment="top" usebox="none">
24949 \begin_inset Text
24950
24951 \begin_layout Plain Layout
24952
24953 \end_layout
24954
24955 \end_inset
24956 </cell>
24957 <cell alignment="left" valignment="top" usebox="none">
24958 \begin_inset Text
24959
24960 \begin_layout Plain Layout
24961 txfonts
24962 \end_layout
24963
24964 \end_inset
24965 </cell>
24966 <cell alignment="left" valignment="top" usebox="none">
24967 \begin_inset Text
24968
24969 \begin_layout Plain Layout
24970 verbatim
24971 \end_layout
24972
24973 \end_inset
24974 </cell>
24975 <cell alignment="left" valignment="top" usebox="none">
24976 \begin_inset Text
24977
24978 \begin_layout Plain Layout
24979
24980 \end_layout
24981
24982 \end_inset
24983 </cell>
24984 </row>
24985 <row>
24986 <cell alignment="left" valignment="top" usebox="none">
24987 \begin_inset Text
24988
24989 \begin_layout Plain Layout
24990
24991 \end_layout
24992
24993 \end_inset
24994 </cell>
24995 <cell alignment="left" valignment="top" usebox="none">
24996 \begin_inset Text
24997
24998 \begin_layout Plain Layout
24999
25000 \end_layout
25001
25002 \end_inset
25003 </cell>
25004 <cell alignment="left" valignment="top" usebox="none">
25005 \begin_inset Text
25006
25007 \begin_layout Plain Layout
25008
25009 \end_layout
25010
25011 \end_inset
25012 </cell>
25013 <cell alignment="left" valignment="top" usebox="none">
25014 \begin_inset Text
25015
25016 \begin_layout Plain Layout
25017
25018 \end_layout
25019
25020 \end_inset
25021 </cell>
25022 <cell alignment="left" valignment="top" usebox="none">
25023 \begin_inset Text
25024
25025 \begin_layout Plain Layout
25026
25027 \end_layout
25028
25029 \end_inset
25030 </cell>
25031 <cell alignment="left" valignment="top" usebox="none">
25032 \begin_inset Text
25033
25034 \begin_layout Plain Layout
25035
25036 \end_layout
25037
25038 \end_inset
25039 </cell>
25040 </row>
25041 <row>
25042 <cell alignment="left" valignment="top" usebox="none">
25043 \begin_inset Text
25044
25045 \begin_layout Plain Layout
25046 natbib
25047 \end_layout
25048
25049 \end_inset
25050 </cell>
25051 <cell alignment="left" valignment="top" usebox="none">
25052 \begin_inset Text
25053
25054 \begin_layout Plain Layout
25055 rotating
25056 \end_layout
25057
25058 \end_inset
25059 </cell>
25060 <cell alignment="left" valignment="top" usebox="none">
25061 \begin_inset Text
25062
25063 \begin_layout Plain Layout
25064
25065 \end_layout
25066
25067 \end_inset
25068 </cell>
25069 <cell alignment="left" valignment="top" usebox="none">
25070 \begin_inset Text
25071
25072 \begin_layout Plain Layout
25073
25074 \end_layout
25075
25076 \end_inset
25077 </cell>
25078 <cell alignment="left" valignment="top" usebox="none">
25079 \begin_inset Text
25080
25081 \begin_layout Plain Layout
25082 wasysym
25083 \end_layout
25084
25085 \end_inset
25086 </cell>
25087 <cell alignment="left" valignment="top" usebox="none">
25088 \begin_inset Text
25089
25090 \begin_layout Plain Layout
25091
25092 \end_layout
25093
25094 \end_inset
25095 </cell>
25096 </row>
25097 <row>
25098 <cell alignment="left" valignment="top" usebox="none">
25099 \begin_inset Text
25100
25101 \begin_layout Plain Layout
25102 nomencl
25103 \end_layout
25104
25105 \end_inset
25106 </cell>
25107 <cell alignment="left" valignment="top" usebox="none">
25108 \begin_inset Text
25109
25110 \begin_layout Plain Layout
25111 rotfloat
25112 \end_layout
25113
25114 \end_inset
25115 </cell>
25116 <cell alignment="left" valignment="top" usebox="none">
25117 \begin_inset Text
25118
25119 \begin_layout Plain Layout
25120
25121 \end_layout
25122
25123 \end_inset
25124 </cell>
25125 <cell alignment="left" valignment="top" usebox="none">
25126 \begin_inset Text
25127
25128 \begin_layout Plain Layout
25129
25130 \end_layout
25131
25132 \end_inset
25133 </cell>
25134 <cell alignment="left" valignment="top" usebox="none">
25135 \begin_inset Text
25136
25137 \begin_layout Plain Layout
25138 wrapfig
25139 \end_layout
25140
25141 \end_inset
25142 </cell>
25143 <cell alignment="left" valignment="top" usebox="none">
25144 \begin_inset Text
25145
25146 \begin_layout Plain Layout
25147
25148 \end_layout
25149
25150 \end_inset
25151 </cell>
25152 </row>
25153 </lyxtabular>
25154
25155 \end_inset
25156
25157
25158 \end_layout
25159
25160 \begin_layout Chapter
25161 List of supported LyX functions to be used in layouts
25162 \end_layout
25163
25164 \begin_layout Standard
25165 \align center
25166 \begin_inset Tabular
25167 <lyxtabular version="3" rows="10" columns="8">
25168 <features rotate="0" tabularvalignment="middle">
25169 <column alignment="left" valignment="top" width="0">
25170 <column alignment="left" valignment="top" width="0">
25171 <column alignment="left" valignment="top" width="0">
25172 <column alignment="left" valignment="top" width="0">
25173 <column alignment="left" valignment="top" width="0">
25174 <column alignment="left" valignment="top" width="0">
25175 <column alignment="left" valignment="top" width="0">
25176 <column alignment="left" valignment="top" width="0">
25177 <row>
25178 <cell alignment="left" valignment="top" usebox="none">
25179 \begin_inset Text
25180
25181 \begin_layout Plain Layout
25182 accents
25183 \end_layout
25184
25185 \end_inset
25186 </cell>
25187 <cell alignment="left" valignment="top" usebox="none">
25188 \begin_inset Text
25189
25190 \begin_layout Plain Layout
25191 bm
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 esint
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 ifthen
25210 \end_layout
25211
25212 \end_inset
25213 </cell>
25214 <cell alignment="center" valignment="top" usebox="none">
25215 \begin_inset Text
25216
25217 \begin_layout Plain Layout
25218 mathrsfs
25219 \end_layout
25220
25221 \end_inset
25222 </cell>
25223 <cell alignment="center" valignment="top" usebox="none">
25224 \begin_inset Text
25225
25226 \begin_layout Plain Layout
25227 prettyref
25228 \end_layout
25229
25230 \end_inset
25231 </cell>
25232 <cell alignment="center" valignment="top" usebox="none">
25233 \begin_inset Text
25234
25235 \begin_layout Plain Layout
25236 subscript
25237 \end_layout
25238
25239 \end_inset
25240 </cell>
25241 <cell alignment="center" valignment="top" usebox="none">
25242 \begin_inset Text
25243
25244 \begin_layout Plain Layout
25245 units
25246 \end_layout
25247
25248 \end_inset
25249 </cell>
25250 </row>
25251 <row>
25252 <cell alignment="left" valignment="top" usebox="none">
25253 \begin_inset Text
25254
25255 \begin_layout Plain Layout
25256 amsbsy
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 booktabs
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 fancybox
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 jurabib
25284 \end_layout
25285
25286 \end_inset
25287 </cell>
25288 <cell alignment="center" valignment="top" usebox="none">
25289 \begin_inset Text
25290
25291 \begin_layout Plain Layout
25292 mhchem
25293 \end_layout
25294
25295 \end_inset
25296 </cell>
25297 <cell alignment="center" valignment="top" usebox="none">
25298 \begin_inset Text
25299
25300 \begin_layout Plain Layout
25301 pxfonts
25302 \end_layout
25303
25304 \end_inset
25305 </cell>
25306 <cell alignment="center" valignment="top" usebox="none">
25307 \begin_inset Text
25308
25309 \begin_layout Plain Layout
25310 textcomp
25311 \end_layout
25312
25313 \end_inset
25314 </cell>
25315 <cell alignment="center" valignment="top" usebox="none">
25316 \begin_inset Text
25317
25318 \begin_layout Plain Layout
25319 url
25320 \end_layout
25321
25322 \end_inset
25323 </cell>
25324 </row>
25325 <row>
25326 <cell alignment="left" valignment="top" usebox="none">
25327 \begin_inset Text
25328
25329 \begin_layout Plain Layout
25330 amscd
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 calc
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 feyn
25349 \end_layout
25350
25351 \end_inset
25352 </cell>
25353 <cell alignment="left" valignment="top" usebox="none">
25354 \begin_inset Text
25355
25356 \begin_layout Plain Layout
25357 latexsym
25358 \end_layout
25359
25360 \end_inset
25361 </cell>
25362 <cell alignment="center" valignment="top" usebox="none">
25363 \begin_inset Text
25364
25365 \begin_layout Plain Layout
25366 multirow
25367 \end_layout
25368
25369 \end_inset
25370 </cell>
25371 <cell alignment="center" valignment="top" usebox="none">
25372 \begin_inset Text
25373
25374 \begin_layout Plain Layout
25375 refstyle
25376 \end_layout
25377
25378 \end_inset
25379 </cell>
25380 <cell alignment="center" valignment="top" usebox="none">
25381 \begin_inset Text
25382
25383 \begin_layout Plain Layout
25384 textgreek
25385 \end_layout
25386
25387 \end_inset
25388 </cell>
25389 <cell alignment="center" valignment="top" usebox="none">
25390 \begin_inset Text
25391
25392 \begin_layout Plain Layout
25393 varioref
25394 \end_layout
25395
25396 \end_inset
25397 </cell>
25398 </row>
25399 <row>
25400 <cell alignment="left" valignment="top" usebox="none">
25401 \begin_inset Text
25402
25403 \begin_layout Plain Layout
25404 amsmath
25405 \end_layout
25406
25407 \end_inset
25408 </cell>
25409 <cell alignment="left" valignment="top" usebox="none">
25410 \begin_inset Text
25411
25412 \begin_layout Plain Layout
25413 CJK
25414 \end_layout
25415
25416 \end_inset
25417 </cell>
25418 <cell alignment="left" valignment="top" usebox="none">
25419 \begin_inset Text
25420
25421 \begin_layout Plain Layout
25422 fixltx2e
25423 \end_layout
25424
25425 \end_inset
25426 </cell>
25427 <cell alignment="left" valignment="top" usebox="none">
25428 \begin_inset Text
25429
25430 \begin_layout Plain Layout
25431 listings
25432 \end_layout
25433
25434 \end_inset
25435 </cell>
25436 <cell alignment="center" valignment="top" usebox="none">
25437 \begin_inset Text
25438
25439 \begin_layout Plain Layout
25440 natbib
25441 \end_layout
25442
25443 \end_inset
25444 </cell>
25445 <cell alignment="center" valignment="top" usebox="none">
25446 \begin_inset Text
25447
25448 \begin_layout Plain Layout
25449 rotating
25450 \end_layout
25451
25452 \end_inset
25453 </cell>
25454 <cell alignment="center" valignment="top" usebox="none">
25455 \begin_inset Text
25456
25457 \begin_layout Plain Layout
25458 tfrupee
25459 \end_layout
25460
25461 \end_inset
25462 </cell>
25463 <cell alignment="center" valignment="top" usebox="none">
25464 \begin_inset Text
25465
25466 \begin_layout Plain Layout
25467 verbatim
25468 \end_layout
25469
25470 \end_inset
25471 </cell>
25472 </row>
25473 <row>
25474 <cell alignment="left" valignment="top" usebox="none">
25475 \begin_inset Text
25476
25477 \begin_layout Plain Layout
25478 amssymb
25479 \end_layout
25480
25481 \end_inset
25482 </cell>
25483 <cell alignment="left" valignment="top" usebox="none">
25484 \begin_inset Text
25485
25486 \begin_layout Plain Layout
25487 color
25488 \end_layout
25489
25490 \end_inset
25491 </cell>
25492 <cell alignment="left" valignment="top" usebox="none">
25493 \begin_inset Text
25494
25495 \begin_layout Plain Layout
25496 float
25497 \end_layout
25498
25499 \end_inset
25500 </cell>
25501 <cell alignment="left" valignment="top" usebox="none">
25502 \begin_inset Text
25503
25504 \begin_layout Plain Layout
25505 longtable
25506 \end_layout
25507
25508 \end_inset
25509 </cell>
25510 <cell alignment="center" valignment="top" usebox="none">
25511 \begin_inset Text
25512
25513 \begin_layout Plain Layout
25514 nomencl
25515 \end_layout
25516
25517 \end_inset
25518 </cell>
25519 <cell alignment="center" valignment="top" usebox="none">
25520 \begin_inset Text
25521
25522 \begin_layout Plain Layout
25523 rotfloat
25524 \end_layout
25525
25526 \end_inset
25527 </cell>
25528 <cell alignment="center" valignment="top" usebox="none">
25529 \begin_inset Text
25530
25531 \begin_layout Plain Layout
25532 tipa
25533 \end_layout
25534
25535 \end_inset
25536 </cell>
25537 <cell alignment="center" valignment="top" usebox="none">
25538 \begin_inset Text
25539
25540 \begin_layout Plain Layout
25541 wasysym
25542 \end_layout
25543
25544 \end_inset
25545 </cell>
25546 </row>
25547 <row>
25548 <cell alignment="left" valignment="top" usebox="none">
25549 \begin_inset Text
25550
25551 \begin_layout Plain Layout
25552 amstext
25553 \end_layout
25554
25555 \end_inset
25556 </cell>
25557 <cell alignment="left" valignment="top" usebox="none">
25558 \begin_inset Text
25559
25560 \begin_layout Plain Layout
25561 covington
25562 \end_layout
25563
25564 \end_inset
25565 </cell>
25566 <cell alignment="left" valignment="top" usebox="none">
25567 \begin_inset Text
25568
25569 \begin_layout Plain Layout
25570 framed
25571 \end_layout
25572
25573 \end_inset
25574 </cell>
25575 <cell alignment="left" valignment="top" usebox="none">
25576 \begin_inset Text
25577
25578 \begin_layout Plain Layout
25579 lyxskak
25580 \end_layout
25581
25582 \end_inset
25583 </cell>
25584 <cell alignment="center" valignment="top" usebox="none">
25585 \begin_inset Text
25586
25587 \begin_layout Plain Layout
25588 pdfcolmk
25589 \end_layout
25590
25591 \end_inset
25592 </cell>
25593 <cell alignment="center" valignment="top" usebox="none">
25594 \begin_inset Text
25595
25596 \begin_layout Plain Layout
25597 setspace
25598 \end_layout
25599
25600 \end_inset
25601 </cell>
25602 <cell alignment="center" valignment="top" usebox="none">
25603 \begin_inset Text
25604
25605 \begin_layout Plain Layout
25606 tipx
25607 \end_layout
25608
25609 \end_inset
25610 </cell>
25611 <cell alignment="center" valignment="top" usebox="none">
25612 \begin_inset Text
25613
25614 \begin_layout Plain Layout
25615 wrapfig
25616 \end_layout
25617
25618 \end_inset
25619 </cell>
25620 </row>
25621 <row>
25622 <cell alignment="left" valignment="top" usebox="none">
25623 \begin_inset Text
25624
25625 \begin_layout Plain Layout
25626 amsthm
25627 \end_layout
25628
25629 \end_inset
25630 </cell>
25631 <cell alignment="left" valignment="top" usebox="none">
25632 \begin_inset Text
25633
25634 \begin_layout Plain Layout
25635 csquotes
25636 \end_layout
25637
25638 \end_inset
25639 </cell>
25640 <cell alignment="left" valignment="top" usebox="none">
25641 \begin_inset Text
25642
25643 \begin_layout Plain Layout
25644 graphicx
25645 \end_layout
25646
25647 \end_inset
25648 </cell>
25649 <cell alignment="left" valignment="top" usebox="none">
25650 \begin_inset Text
25651
25652 \begin_layout Plain Layout
25653 makeidx
25654 \end_layout
25655
25656 \end_inset
25657 </cell>
25658 <cell alignment="center" valignment="top" usebox="none">
25659 \begin_inset Text
25660
25661 \begin_layout Plain Layout
25662 pdfpages
25663 \end_layout
25664
25665 \end_inset
25666 </cell>
25667 <cell alignment="center" valignment="top" usebox="none">
25668 \begin_inset Text
25669
25670 \begin_layout Plain Layout
25671 slashed
25672 \end_layout
25673
25674 \end_inset
25675 </cell>
25676 <cell alignment="center" valignment="top" usebox="none">
25677 \begin_inset Text
25678
25679 \begin_layout Plain Layout
25680 tone
25681 \end_layout
25682
25683 \end_inset
25684 </cell>
25685 <cell alignment="center" valignment="top" usebox="none">
25686 \begin_inset Text
25687
25688 \begin_layout Plain Layout
25689 xargs
25690 \end_layout
25691
25692 \end_inset
25693 </cell>
25694 </row>
25695 <row>
25696 <cell alignment="left" valignment="top" usebox="none">
25697 \begin_inset Text
25698
25699 \begin_layout Plain Layout
25700 array
25701 \end_layout
25702
25703 \end_inset
25704 </cell>
25705 <cell alignment="left" valignment="top" usebox="none">
25706 \begin_inset Text
25707
25708 \begin_layout Plain Layout
25709 dvipost
25710 \end_layout
25711
25712 \end_inset
25713 </cell>
25714 <cell alignment="left" valignment="top" usebox="none">
25715 \begin_inset Text
25716
25717 \begin_layout Plain Layout
25718 hhline
25719 \end_layout
25720
25721 \end_inset
25722 </cell>
25723 <cell alignment="left" valignment="top" usebox="none">
25724 \begin_inset Text
25725
25726 \begin_layout Plain Layout
25727 marvosym
25728 \end_layout
25729
25730 \end_inset
25731 </cell>
25732 <cell alignment="center" valignment="top" usebox="none">
25733 \begin_inset Text
25734
25735 \begin_layout Plain Layout
25736 pifont
25737 \end_layout
25738
25739 \end_inset
25740 </cell>
25741 <cell alignment="center" valignment="top" usebox="none">
25742 \begin_inset Text
25743
25744 \begin_layout Plain Layout
25745 soul
25746 \end_layout
25747
25748 \end_inset
25749 </cell>
25750 <cell alignment="center" valignment="top" usebox="none">
25751 \begin_inset Text
25752
25753 \begin_layout Plain Layout
25754 txfonts
25755 \end_layout
25756
25757 \end_inset
25758 </cell>
25759 <cell alignment="center" valignment="top" usebox="none">
25760 \begin_inset Text
25761
25762 \begin_layout Plain Layout
25763 xcolor
25764 \end_layout
25765
25766 \end_inset
25767 </cell>
25768 </row>
25769 <row>
25770 <cell alignment="left" valignment="top" usebox="none">
25771 \begin_inset Text
25772
25773 \begin_layout Plain Layout
25774 ascii
25775 \end_layout
25776
25777 \end_inset
25778 </cell>
25779 <cell alignment="left" valignment="top" usebox="none">
25780 \begin_inset Text
25781
25782 \begin_layout Plain Layout
25783 endnotes
25784 \end_layout
25785
25786 \end_inset
25787 </cell>
25788 <cell alignment="left" valignment="top" usebox="none">
25789 \begin_inset Text
25790
25791 \begin_layout Plain Layout
25792 hyperref
25793 \end_layout
25794
25795 \end_inset
25796 </cell>
25797 <cell alignment="left" valignment="top" usebox="none">
25798 \begin_inset Text
25799
25800 \begin_layout Plain Layout
25801 mathdesign
25802 \end_layout
25803
25804 \end_inset
25805 </cell>
25806 <cell alignment="center" valignment="top" usebox="none">
25807 \begin_inset Text
25808
25809 \begin_layout Plain Layout
25810 pmboxdraw
25811 \end_layout
25812
25813 \end_inset
25814 </cell>
25815 <cell alignment="center" valignment="top" usebox="none">
25816 \begin_inset Text
25817
25818 \begin_layout Plain Layout
25819 splitidx
25820 \end_layout
25821
25822 \end_inset
25823 </cell>
25824 <cell alignment="center" valignment="top" usebox="none">
25825 \begin_inset Text
25826
25827 \begin_layout Plain Layout
25828 ulem
25829 \end_layout
25830
25831 \end_inset
25832 </cell>
25833 <cell alignment="center" valignment="top" usebox="none">
25834 \begin_inset Text
25835
25836 \begin_layout Plain Layout
25837 xy
25838 \end_layout
25839
25840 \end_inset
25841 </cell>
25842 </row>
25843 <row>
25844 <cell alignment="left" valignment="top" usebox="none">
25845 \begin_inset Text
25846
25847 \begin_layout Plain Layout
25848 bbding
25849 \end_layout
25850
25851 \end_inset
25852 </cell>
25853 <cell alignment="left" valignment="top" usebox="none">
25854 \begin_inset Text
25855
25856 \begin_layout Plain Layout
25857 enumitem
25858 \end_layout
25859
25860 \end_inset
25861 </cell>
25862 <cell alignment="left" valignment="top" usebox="none">
25863 \begin_inset Text
25864
25865 \begin_layout Plain Layout
25866 ifsym
25867 \end_layout
25868
25869 \end_inset
25870 </cell>
25871 <cell alignment="left" valignment="top" usebox="none">
25872 \begin_inset Text
25873
25874 \begin_layout Plain Layout
25875 mathdots
25876 \end_layout
25877
25878 \end_inset
25879 </cell>
25880 <cell alignment="center" valignment="top" usebox="none">
25881 \begin_inset Text
25882
25883 \begin_layout Plain Layout
25884 polyglossia
25885 \end_layout
25886
25887 \end_inset
25888 </cell>
25889 <cell alignment="center" valignment="top" usebox="none">
25890 \begin_inset Text
25891
25892 \begin_layout Plain Layout
25893 subfig
25894 \end_layout
25895
25896 \end_inset
25897 </cell>
25898 <cell alignment="center" valignment="top" usebox="none">
25899 \begin_inset Text
25900
25901 \begin_layout Plain Layout
25902 undertilde
25903 \end_layout
25904
25905 \end_inset
25906 </cell>
25907 <cell alignment="center" valignment="top" usebox="none">
25908 \begin_inset Text
25909
25910 \begin_layout Plain Layout
25911 yhmath
25912 \end_layout
25913
25914 \end_inset
25915 </cell>
25916 </row>
25917 </lyxtabular>
25918
25919 \end_inset
25920
25921
25922 \end_layout
25923
25924 \begin_layout Standard
25925 accents amsbsy amscd amsmath amssymb amstext amsthm array ascii bbding bm
25926  booktabs calc CJK color covington csquotes dvipost endnotes enumitem esint
25927  fancybox feyn fixltx2e float framed graphicx hhline hyperref ifsym ifthen
25928  jurabib latexsym listings longtable lyxskak makeidx marvosym mathdesign
25929  mathdots mathrsfs mhchem multirow natbib nomencl pdfcolmk pdfpages pifont
25930  pmboxdraw polyglossia prettyref pxfonts refstyle rotating rotfloat setspace
25931  slashed soul splitidx subfig subscript textcomp textgreek tfrupee tipa
25932  tipx tone txfonts ulem undertilde units url varioref verbatim wasysym wrapfig
25933  xargs xcolor xy yhmath 
25934 \end_layout
25935
25936 \begin_layout Chapter
25937 Names of available colors to be used in layouts
25938 \begin_inset CommandInset label
25939 LatexCommand label
25940 name "chap:Names-of-colors"
25941
25942 \end_inset
25943
25944
25945 \end_layout
25946
25947 \begin_layout Standard
25948 The colors listed here are the standard colors and the those that you can
25949  adjust in the LyX preferences.
25950 \end_layout
25951
25952 \begin_layout Description
25953 none
25954 \family roman
25955 \series medium
25956 \shape up
25957 \size normal
25958 \emph off
25959 \bar no
25960 \strikeout off
25961 \uuline off
25962 \uwave off
25963 \noun off
25964 \color none
25965  No particular color -- clear or default
25966 \end_layout
25967
25968 \begin_layout Description
25969 black
25970 \end_layout
25971
25972 \begin_layout Description
25973 white
25974 \end_layout
25975
25976 \begin_layout Description
25977 red
25978 \end_layout
25979
25980 \begin_layout Description
25981 green
25982 \end_layout
25983
25984 \begin_layout Description
25985 blue
25986 \end_layout
25987
25988 \begin_layout Description
25989 cyan
25990 \end_layout
25991
25992 \begin_layout Description
25993 magenta
25994 \end_layout
25995
25996 \begin_layout Description
25997 yellow
25998 \end_layout
25999
26000 \begin_layout Description
26001 cursor Cursor color
26002 \end_layout
26003
26004 \begin_layout Description
26005 background Background color
26006 \end_layout
26007
26008 \begin_layout Description
26009 foreground Foreground color
26010 \end_layout
26011
26012 \begin_layout Description
26013 selection Background color of selected text
26014 \end_layout
26015
26016 \begin_layout Description
26017 selectiontext Foreground color of selected text
26018 \end_layout
26019
26020 \begin_layout Description
26021 latex Text color in LaTeX mode 
26022 \end_layout
26023
26024 \begin_layout Description
26025 preview The color used for previews
26026 \end_layout
26027
26028 \begin_layout Description
26029 inlinecompletion Inline completion color 
26030 \end_layout
26031
26032 \begin_layout Description
26033 nonunique_inlinecompletion Inline completion color for the non-unique part
26034 \end_layout
26035
26036 \begin_layout Description
26037 notelabel Label color for notes
26038 \end_layout
26039
26040 \begin_layout Description
26041 notebg Background color of notes
26042 \end_layout
26043
26044 \begin_layout Description
26045 commentlabel Label color for comments
26046 \end_layout
26047
26048 \begin_layout Description
26049 commentbg Background color of comments
26050 \end_layout
26051
26052 \begin_layout Description
26053 greyedoutlabel Label color for greyedout insets
26054 \end_layout
26055
26056 \begin_layout Description
26057 greyedouttext Color for greyedout inset text
26058 \end_layout
26059
26060 \begin_layout Description
26061 greyedoutbg Background color of greyedout inset
26062 \end_layout
26063
26064 \begin_layout Description
26065 shadedbg Background color of shaded box
26066 \end_layout
26067
26068 \begin_layout Description
26069 listingsbg Background color of listings inset
26070 \end_layout
26071
26072 \begin_layout Description
26073 branchlabel Label color for branches
26074 \end_layout
26075
26076 \begin_layout Description
26077 footlabel Label color for footnotes
26078 \end_layout
26079
26080 \begin_layout Description
26081 indexlabel Label color for index insets 
26082 \end_layout
26083
26084 \begin_layout Description
26085 marginlabel Label color for margin notes 
26086 \end_layout
26087
26088 \begin_layout Description
26089 phantomtext Text color for phantom insets 
26090 \end_layout
26091
26092 \begin_layout Description
26093 urllabel Label color for URL insets
26094 \end_layout
26095
26096 \begin_layout Description
26097 urltext Color for URL inset text
26098 \end_layout
26099
26100 \begin_layout Description
26101 depthbar Color for the depth bars in the margin
26102 \end_layout
26103
26104 \begin_layout Description
26105 language Color for marking foreign language words
26106 \end_layout
26107
26108 \begin_layout Description
26109 command Text color for command insets
26110 \end_layout
26111
26112 \begin_layout Description
26113 commandbg Background color for command insets 
26114 \end_layout
26115
26116 \begin_layout Description
26117 commandframe Frame color for command insets
26118 \end_layout
26119
26120 \begin_layout Description
26121 special Special chars text color
26122 \end_layout
26123
26124 \begin_layout Description
26125 graphicsbg Graphics inset background color 
26126 \end_layout
26127
26128 \begin_layout Description
26129 math Math inset text color 
26130 \end_layout
26131
26132 \begin_layout Description
26133 mathbg Math inset background color
26134 \end_layout
26135
26136 \begin_layout Description
26137 mathmacrobg Macro math inset background color
26138 \end_layout
26139
26140 \begin_layout Description
26141 mathmacrohoverbg Macro math inset background color hovered
26142 \end_layout
26143
26144 \begin_layout Description
26145 mathmacrolabel Macro math label color
26146 \end_layout
26147
26148 \begin_layout Description
26149 mathmacroframe Macro math frame color
26150 \end_layout
26151
26152 \begin_layout Description
26153 mathmacroblend Macro math blended color
26154 \end_layout
26155
26156 \begin_layout Description
26157 mathmacrooldarg Macro template color for old parameters 
26158 \end_layout
26159
26160 \begin_layout Description
26161 mathmacronewarg Macro template color for new parameters
26162 \end_layout
26163
26164 \begin_layout Description
26165 mathframe Math inset frame color under focus 
26166 \end_layout
26167
26168 \begin_layout Description
26169 mathcorners Math inset frame color not under focus
26170 \end_layout
26171
26172 \begin_layout Description
26173 mathline Math line color
26174 \end_layout
26175
26176 \begin_layout Description
26177 collapsable Collapsable insets text 
26178 \end_layout
26179
26180 \begin_layout Description
26181 collapsableframe Collapsable insets frame
26182 \end_layout
26183
26184 \begin_layout Description
26185 insetbg Inset marker background color
26186 \end_layout
26187
26188 \begin_layout Description
26189 insetframe Inset marker frame color
26190 \end_layout
26191
26192 \begin_layout Description
26193 error Error box text color
26194 \end_layout
26195
26196 \begin_layout Description
26197 eolmarker End of line marker color
26198 \end_layout
26199
26200 \begin_layout Description
26201 added_space Added space colour
26202 \end_layout
26203
26204 \begin_layout Description
26205 appendix Appendix marker color
26206 \end_layout
26207
26208 \begin_layout Description
26209 changebar Changebar color
26210 \end_layout
26211
26212 \begin_layout Description
26213 deletedtext Deleted text color
26214 \end_layout
26215
26216 \begin_layout Description
26217 addedtext Added text color
26218 \end_layout
26219
26220 \begin_layout Description
26221 changedtextauthor1 Changed text color author 1
26222 \end_layout
26223
26224 \begin_layout Description
26225 changedtextauthor2 Changed text color author 2
26226 \end_layout
26227
26228 \begin_layout Description
26229 changedtextauthor3 Changed text color author 3
26230 \end_layout
26231
26232 \begin_layout Description
26233 changedtextauthor4 Changed text color author 4
26234 \end_layout
26235
26236 \begin_layout Description
26237 changedtextauthor5 Changed text color author 5
26238 \end_layout
26239
26240 \begin_layout Description
26241 deletedtextmodifier Deleted text modifying color
26242 \end_layout
26243
26244 \begin_layout Description
26245 tabularline Table line color
26246 \end_layout
26247
26248 \begin_layout Description
26249 tabularonoffline Table line color 
26250 \end_layout
26251
26252 \begin_layout Description
26253 bottomarea Bottom area color
26254 \end_layout
26255
26256 \begin_layout Description
26257 newpage New page color 
26258 \end_layout
26259
26260 \begin_layout Description
26261 pagebreak Page break color
26262 \end_layout
26263
26264 \begin_layout Description
26265 buttonframe Color used for button frame
26266 \end_layout
26267
26268 \begin_layout Description
26269 buttonbg Color used for bottom background
26270 \end_layout
26271
26272 \begin_layout Description
26273 buttonhoverbg Color used for buttom under focus 
26274 \end_layout
26275
26276 \begin_layout Description
26277 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
26278  
26279 \end_layout
26280
26281 \begin_layout Description
26282 previewframe Preview frame color
26283 \end_layout
26284
26285 \begin_layout Description
26286 inherit Color is inherited 
26287 \end_layout
26288
26289 \begin_layout Description
26290 regexpframe Color for regexp frame
26291 \end_layout
26292
26293 \begin_layout Description
26294 ignore For ignoring updates of a color
26295 \end_layout
26296
26297 \end_body
26298 \end_document