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