]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: port from branch: revised section 5.3.3 and 5.3.4
[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  The complete list of supported features is unfortunately not documented
9549  outside the LyX source code —but see 
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 LaTeXFeatures.cpp
9555 \end_layout
9556
9557 \end_inset
9558
9559  if you are interested.
9560  
9561 \begin_inset Flex MenuItem
9562 status collapsed
9563
9564 \begin_layout Plain Layout
9565 Help\SpecialChar \menuseparator
9566 LaTe
9567 \begin_inset ERT
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571
9572 {}
9573 \end_layout
9574
9575 \end_inset
9576
9577 X Configuration
9578 \end_layout
9579
9580 \end_inset
9581
9582  also gives an overview of the supported packages.
9583 \end_layout
9584
9585 \begin_layout Description
9586 \begin_inset Flex Code
9587 status collapsed
9588
9589 \begin_layout Plain Layout
9590 ProvidesModule
9591 \end_layout
9592
9593 \end_inset
9594
9595  [
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 string
9601 \end_layout
9602
9603 \end_inset
9604
9605 ] Indicates that this layout provides the functionality of the module mentioned,
9606  which should be specified by the filename without the 
9607 \begin_inset Flex Code
9608 status collapsed
9609
9610 \begin_layout Plain Layout
9611 .module
9612 \end_layout
9613
9614 \end_inset
9615
9616  extension.
9617  This will typically be used if the layout includes the module directly,
9618  rather than using the 
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 DefaultModule
9624 \end_layout
9625
9626 \end_inset
9627
9628  tag to indicate that it ought to be used.
9629  It could also be used in a module that provided an alternate implementation
9630  of the same functionality.
9631 \end_layout
9632
9633 \begin_layout Description
9634 \begin_inset Flex Code
9635 status collapsed
9636
9637 \begin_layout Plain Layout
9638 Requires
9639 \end_layout
9640
9641 \end_inset
9642
9643  [
9644 \begin_inset Flex Code
9645 status collapsed
9646
9647 \begin_layout Plain Layout
9648 string
9649 \end_layout
9650
9651 \end_inset
9652
9653 ] Whether the class requires the feature 
9654 \begin_inset Flex Code
9655 status collapsed
9656
9657 \begin_layout Plain Layout
9658 string
9659 \end_layout
9660
9661 \end_inset
9662
9663 .
9664  Multiple features must be separated by commas.
9665  Note that you can only request supported features.
9666  (See 
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671 LaTeXFeatures.cpp
9672 \end_layout
9673
9674 \end_inset
9675
9676  for a list of these.)
9677 \end_layout
9678
9679 \begin_layout Description
9680 \begin_inset Flex Code
9681 status collapsed
9682
9683 \begin_layout Plain Layout
9684 RightMargin
9685 \end_layout
9686
9687 \end_inset
9688
9689  [
9690 \begin_inset Flex Code
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694 string
9695 \end_layout
9696
9697 \end_inset
9698
9699 ] A string that indicates the width of the right margin on the screen, for
9700  example, 
9701 \begin_inset Quotes eld
9702 \end_inset
9703
9704
9705 \begin_inset Flex Code
9706 status collapsed
9707
9708 \begin_layout Plain Layout
9709 MMMMM
9710 \end_layout
9711
9712 \end_inset
9713
9714
9715 \begin_inset Quotes erd
9716 \end_inset
9717
9718 .
9719 \end_layout
9720
9721 \begin_layout Description
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 SecNumDepth
9727 \end_layout
9728
9729 \end_inset
9730
9731  [
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 int=3
9737 \end_layout
9738
9739 \end_inset
9740
9741 ] Sets which divisions get numbered.
9742  Corresponds to the
9743 \begin_inset Newline newline
9744 \end_inset
9745
9746
9747 \begin_inset Flex Code
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 secnumdepth
9752 \end_layout
9753
9754 \end_inset
9755
9756  counter in LaTeX.
9757 \end_layout
9758
9759 \begin_layout Description
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 Sides
9765 \end_layout
9766
9767 \end_inset
9768
9769  [
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774
9775 \emph on
9776 1
9777 \end_layout
9778
9779 \end_inset
9780
9781 ,
9782 \begin_inset space \thinspace{}
9783 \end_inset
9784
9785
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 2
9791 \end_layout
9792
9793 \end_inset
9794
9795 ] Whether the class-default should be printing on one or both sides of the
9796  paper.
9797  Can be changed in the 
9798 \begin_inset Flex MenuItem
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 Document\SpecialChar \menuseparator
9803 Settings
9804 \end_layout
9805
9806 \end_inset
9807
9808  dialog.
9809 \end_layout
9810
9811 \begin_layout Description
9812 \begin_inset Flex Code
9813 status collapsed
9814
9815 \begin_layout Plain Layout
9816 Style
9817 \end_layout
9818
9819 \end_inset
9820
9821  [
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 <name>
9827 \end_layout
9828
9829 \end_inset
9830
9831 ] This sequence defines a paragraph style.
9832  If the style does not yet exist, it is created; if it does exist, its parameter
9833 s are modified.
9834  Must end with 
9835 \begin_inset Quotes eld
9836 \end_inset
9837
9838
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843 End
9844 \end_layout
9845
9846 \end_inset
9847
9848
9849 \begin_inset Quotes erd
9850 \end_inset
9851
9852 .
9853 \begin_inset Newline newline
9854 \end_inset
9855
9856 See Section
9857 \begin_inset space ~
9858 \end_inset
9859
9860
9861 \begin_inset CommandInset ref
9862 LatexCommand ref
9863 reference "sub:Paragraph-Styles"
9864
9865 \end_inset
9866
9867  for details on paragraph styles.
9868 \end_layout
9869
9870 \begin_layout Description
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 TitleLatexName
9876 \end_layout
9877
9878 \end_inset
9879
9880  [
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 string="maketitle"
9886 \end_layout
9887
9888 \end_inset
9889
9890 ] The name of the command or environment to be used with 
9891 \begin_inset Flex Code
9892 status collapsed
9893
9894 \begin_layout Plain Layout
9895 TitleLatexType
9896 \end_layout
9897
9898 \end_inset
9899
9900 .
9901 \end_layout
9902
9903 \begin_layout Description
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 TitleLatexType
9909 \end_layout
9910
9911 \end_inset
9912
9913  [
9914 \begin_inset Flex Code
9915 status collapsed
9916
9917 \begin_layout Plain Layout
9918
9919 \emph on
9920 CommandAfter
9921 \end_layout
9922
9923 \end_inset
9924
9925
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 Environment
9931 \end_layout
9932
9933 \end_inset
9934
9935 ] Indicates what kind of markup is used to define the title of a document.
9936  
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 CommandAfter
9942 \end_layout
9943
9944 \end_inset
9945
9946  means that the macro with name 
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951 TitleLatexName
9952 \end_layout
9953
9954 \end_inset
9955
9956  will be inserted after the last layout which has 
9957 \begin_inset Quotes eld
9958 \end_inset
9959
9960
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965 InTitle
9966 \begin_inset space ~
9967 \end_inset
9968
9969 1
9970 \end_layout
9971
9972 \end_inset
9973
9974
9975 \begin_inset Quotes erd
9976 \end_inset
9977
9978 .
9979  
9980 \begin_inset Flex Code
9981 status collapsed
9982
9983 \begin_layout Plain Layout
9984 Environment
9985 \end_layout
9986
9987 \end_inset
9988
9989  corresponds to the case where all layouts which have 
9990 \begin_inset Quotes eld
9991 \end_inset
9992
9993
9994 \begin_inset Flex Code
9995 status collapsed
9996
9997 \begin_layout Plain Layout
9998 InTitle
9999 \begin_inset space ~
10000 \end_inset
10001
10002 1
10003 \end_layout
10004
10005 \end_inset
10006
10007
10008 \begin_inset Quotes erd
10009 \end_inset
10010
10011  should be enclosed into the 
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 TitleLatexName
10017 \end_layout
10018
10019 \end_inset
10020
10021  environment.
10022 \end_layout
10023
10024 \begin_layout Description
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 TocDepth
10030 \end_layout
10031
10032 \end_inset
10033
10034  [
10035 \begin_inset Flex Code
10036 status collapsed
10037
10038 \begin_layout Plain Layout
10039 int=3
10040 \end_layout
10041
10042 \end_inset
10043
10044 ] Sets which divisions are included in the table of contents.
10045  Corresponds to the 
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 tocdepth
10051 \end_layout
10052
10053 \end_inset
10054
10055  counter in LaTeX.
10056 \end_layout
10057
10058 \begin_layout Subsection
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 ClassOptions
10064 \end_layout
10065
10066 \end_inset
10067
10068  section
10069 \begin_inset CommandInset label
10070 LatexCommand label
10071 name "sub:ClassOptions"
10072
10073 \end_inset
10074
10075
10076 \end_layout
10077
10078 \begin_layout Standard
10079 The 
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 ClassOptions
10085 \end_layout
10086
10087 \end_inset
10088
10089  section can contain the following entries:
10090 \end_layout
10091
10092 \begin_layout Description
10093 \begin_inset Flex Code
10094 status collapsed
10095
10096 \begin_layout Plain Layout
10097 FontSize
10098 \end_layout
10099
10100 \end_inset
10101
10102  [
10103 \begin_inset Flex Code
10104 status collapsed
10105
10106 \begin_layout Plain Layout
10107 string="10|11|12"
10108 \end_layout
10109
10110 \end_inset
10111
10112 ] The list of available font sizes for the document's main font, separated
10113  by 
10114 \begin_inset Quotes eld
10115 \end_inset
10116
10117
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 |
10123 \end_layout
10124
10125 \end_inset
10126
10127
10128 \begin_inset Quotes erd
10129 \end_inset
10130
10131 .
10132 \end_layout
10133
10134 \begin_layout Description
10135 \begin_inset Flex Code
10136 status collapsed
10137
10138 \begin_layout Plain Layout
10139 Header
10140 \end_layout
10141
10142 \end_inset
10143
10144  Used to set the DTD line with XML-based output classes.
10145  E.
10146 \begin_inset space \thinspace{}
10147 \end_inset
10148
10149 g.: PUBLIC 
10150 \begin_inset Quotes eld
10151 \end_inset
10152
10153 -//OASIS//DTD DocBook V4.2//EN
10154 \begin_inset Quotes erd
10155 \end_inset
10156
10157 .
10158 \end_layout
10159
10160 \begin_layout Description
10161 \begin_inset Flex Code
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 PageStyle
10166 \end_layout
10167
10168 \end_inset
10169
10170  [
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 string="empty|plain|headings|fancy"
10176 \end_layout
10177
10178 \end_inset
10179
10180 ] The list of available page sty\SpecialChar \-
10181 les, separated by 
10182 \begin_inset Quotes eld
10183 \end_inset
10184
10185
10186 \begin_inset Flex Code
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190 |
10191 \end_layout
10192
10193 \end_inset
10194
10195
10196 \begin_inset Quotes erd
10197 \end_inset
10198
10199 .
10200 \end_layout
10201
10202 \begin_layout Description
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 Other
10208 \end_layout
10209
10210 \end_inset
10211
10212  [
10213 \begin_inset Flex Code
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 string=""
10218 \end_layout
10219
10220 \end_inset
10221
10222 ] Some document class options, separated by a comma, that will be added
10223  to the optional part of the 
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228
10229 \backslash
10230 documentclass
10231 \end_layout
10232
10233 \end_inset
10234
10235  command.
10236 \end_layout
10237
10238 \begin_layout Standard
10239 The 
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244 ClassOptions
10245 \end_layout
10246
10247 \end_inset
10248
10249  section must end with 
10250 \begin_inset Quotes eld
10251 \end_inset
10252
10253
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 End
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Quotes erd
10265 \end_inset
10266
10267 .
10268 \end_layout
10269
10270 \begin_layout Subsection
10271 Paragraph styles
10272 \begin_inset CommandInset label
10273 LatexCommand label
10274 name "sub:Paragraph-Styles"
10275
10276 \end_inset
10277
10278
10279 \end_layout
10280
10281 \begin_layout Standard
10282 A paragraph style description looks like this:
10283 \begin_inset Foot
10284 status collapsed
10285
10286 \begin_layout Plain Layout
10287 Note that this will either define a new style or modify an existing one.
10288 \end_layout
10289
10290 \end_inset
10291
10292
10293 \end_layout
10294
10295 \begin_layout LyX-Code
10296 Style 
10297 \family roman
10298 \emph on
10299 name
10300 \end_layout
10301
10302 \begin_layout LyX-Code
10303  ...
10304 \end_layout
10305
10306 \begin_layout LyX-Code
10307 End
10308 \end_layout
10309
10310 \begin_layout Standard
10311 where the following commands are allowed:
10312 \end_layout
10313
10314 \begin_layout Description
10315 \begin_inset Flex Code
10316 status collapsed
10317
10318 \begin_layout Plain Layout
10319 Align
10320 \end_layout
10321
10322 \end_inset
10323
10324  [
10325 \begin_inset Flex Code
10326 status collapsed
10327
10328 \begin_layout Plain Layout
10329
10330 \emph on
10331 block
10332 \emph default
10333 , left, right, center
10334 \end_layout
10335
10336 \end_inset
10337
10338 ] Paragraph alignment.
10339 \end_layout
10340
10341 \begin_layout Description
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 AlignPossible
10347 \end_layout
10348
10349 \end_inset
10350
10351  [
10352 \begin_inset Flex Code
10353 status collapsed
10354
10355 \begin_layout Plain Layout
10356
10357 \emph on
10358 block
10359 \emph default
10360 , left, right, center
10361 \end_layout
10362
10363 \end_inset
10364
10365 ] A comma separated list of permitted alignments.
10366  (Some LaTeX styles prohibit certain alignments, since those wouldn't make
10367  sense.
10368  For example a right-aligned or centered enumeration isn't possible.)
10369 \change_inserted -712698321 1353679769
10370
10371 \end_layout
10372
10373 \begin_layout Description
10374
10375 \change_inserted -712698321 1353680268
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380
10381 \change_inserted -712698321 1353679781
10382 Argument
10383 \end_layout
10384
10385 \end_inset
10386
10387  [
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392
10393 \change_inserted -712698321 1353679772
10394 int
10395 \end_layout
10396
10397 \end_inset
10398
10399 ] Defines argument number <int> of a command\SpecialChar \slash{}
10400 environment associated with
10401  the current style.
10402  This is useful for things like section headings, and only makes sense with
10403  LaTeX.
10404  Every (optional or required) argument of a command or environment -- except
10405  for the required argument that is associated with the content of the paragraph
10406  itself -- has a separate definition, where the number specifies the order
10407  of the arguments.
10408  The definition must end with 
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413
10414 \change_inserted -712698321 1353680069
10415 EndArgument
10416 \end_layout
10417
10418 \end_inset
10419
10420 .
10421  So a command with two optional arguments has:
10422 \end_layout
10423
10424 \begin_deeper
10425 \begin_layout Quote
10426
10427 \change_inserted -712698321 1353680127
10428
10429 \family typewriter
10430 Argument 1
10431 \end_layout
10432
10433 \begin_layout Quote
10434
10435 \change_inserted -712698321 1353680195
10436
10437 \family typewriter
10438 ...
10439 \end_layout
10440
10441 \begin_layout Quote
10442
10443 \change_inserted -712698321 1353680135
10444
10445 \family typewriter
10446 EndArgument
10447 \end_layout
10448
10449 \begin_layout Quote
10450
10451 \change_inserted -712698321 1353680140
10452
10453 \family typewriter
10454 Argument 2
10455 \end_layout
10456
10457 \begin_layout Quote
10458
10459 \change_inserted -712698321 1353680197
10460
10461 \family typewriter
10462 ...
10463 \end_layout
10464
10465 \begin_layout Quote
10466
10467 \change_inserted -712698321 1353680147
10468
10469 \family typewriter
10470 EndArgument
10471 \end_layout
10472
10473 \begin_layout Standard
10474
10475 \change_inserted -712698321 1353680528
10476 Inside the 
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481
10482 \change_inserted -712698321 1353680412
10483 Argument
10484 \end_layout
10485
10486 \end_inset
10487
10488  definition, the following specifications are possible:
10489 \end_layout
10490
10491 \begin_layout Itemize
10492
10493 \change_inserted -712698321 1355076779
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498
10499 \change_inserted -712698321 1353680543
10500 LabelString
10501 \change_unchanged
10502
10503 \end_layout
10504
10505 \end_inset
10506
10507  
10508 \begin_inset Flex Code
10509 status collapsed
10510
10511 \begin_layout Plain Layout
10512
10513 \change_inserted -712698321 1353680567
10514 [string]
10515 \end_layout
10516
10517 \end_inset
10518
10519  The string that will appear both in the menu (to insert this argument)
10520  and on the argument inset button (unless you also specify a separate 
10521 \begin_inset Flex Code
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525
10526 \change_inserted -712698321 1355076779
10527 MenuString
10528 \end_layout
10529
10530 \end_inset
10531
10532 ).
10533  For the menu, you can define an accelerator by appending the respective
10534  character to the string, divided by 
10535 \begin_inset Quotes eld
10536 \end_inset
10537
10538 |
10539 \begin_inset Quotes erd
10540 \end_inset
10541
10542  (e.
10543 \begin_inset space \thinspace{}
10544 \end_inset
10545
10546 g.
10547  
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552
10553 \change_inserted -712698321 1353691482
10554 \begin_inset Quotes eld
10555 \end_inset
10556
10557 Short Title|S
10558 \begin_inset Quotes erd
10559 \end_inset
10560
10561
10562 \change_unchanged
10563
10564 \end_layout
10565
10566 \end_inset
10567
10568 ).
10569 \end_layout
10570
10571 \begin_layout Itemize
10572
10573 \change_inserted -712698321 1355076754
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578
10579 \change_inserted -712698321 1355076658
10580 MenuString
10581 \end_layout
10582
10583 \end_inset
10584
10585  
10586 \begin_inset Flex Code
10587 status collapsed
10588
10589 \begin_layout Plain Layout
10590
10591 \change_inserted -712698321 1355076654
10592 [string]
10593 \end_layout
10594
10595 \end_inset
10596
10597  A separate string for the menu.
10598  You can define an accelerator by appending the respective character to
10599  the string, divided by 
10600 \begin_inset Quotes eld
10601 \end_inset
10602
10603 |
10604 \begin_inset Quotes erd
10605 \end_inset
10606
10607  (e.
10608 \begin_inset space \thinspace{}
10609 \end_inset
10610
10611 g.
10612  
10613 \begin_inset Flex Code
10614 status collapsed
10615
10616 \begin_layout Plain Layout
10617
10618 \change_inserted -712698321 1355076654
10619 \begin_inset Quotes eld
10620 \end_inset
10621
10622 Short Title|S
10623 \begin_inset Quotes erd
10624 \end_inset
10625
10626
10627 \end_layout
10628
10629 \end_inset
10630
10631 ).
10632  This specification is optional.
10633  If it is not given the 
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638
10639 \change_inserted -712698321 1355076736
10640 LabelString
10641 \change_unchanged
10642
10643 \end_layout
10644
10645 \end_inset
10646
10647  will be used instead for the menu.
10648 \end_layout
10649
10650 \begin_layout Itemize
10651
10652 \change_inserted -712698321 1353680665
10653 \begin_inset Flex Code
10654 status collapsed
10655
10656 \begin_layout Plain Layout
10657
10658 \change_inserted -712698321 1353680616
10659 Tooltip
10660 \end_layout
10661
10662 \end_inset
10663
10664  
10665 \begin_inset Flex Code
10666 status collapsed
10667
10668 \begin_layout Plain Layout
10669
10670 \change_inserted -712698321 1353680623
10671 [string]
10672 \end_layout
10673
10674 \end_inset
10675
10676  A longer explanatory text that appears in the tooltip when hovering over
10677  the argument inset.
10678 \end_layout
10679
10680 \begin_layout Itemize
10681
10682 \change_inserted -712698321 1353680874
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687
10688 \change_inserted -712698321 1353680732
10689 Mandatory
10690 \end_layout
10691
10692 \end_inset
10693
10694  
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699
10700 \change_inserted -712698321 1353680738
10701 [int=0]
10702 \end_layout
10703
10704 \end_inset
10705
10706  Declare if this is a mandatory 
10707 \change_inserted 2090807402 1353765594
10708 (1) 
10709 \change_inserted -712698321 1353680874
10710 or an optional 
10711 \change_inserted 2090807402 1353765599
10712 (0) 
10713 \change_inserted -712698321 1353680874
10714 argument.
10715  Mandatory arguments will be output empty if not given, while optional arguments
10716  will not be output at all.
10717  By default, mandatory arguments are delimited by 
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722
10723 \change_inserted -712698321 1353680808
10724 {...}
10725 \change_unchanged
10726
10727 \end_layout
10728
10729 \end_inset
10730
10731 , while optional arguments are delimited by 
10732 \begin_inset Flex Code
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736
10737 \change_inserted -712698321 1353680833
10738 [...]
10739 \end_layout
10740
10741 \end_inset
10742
10743
10744 \end_layout
10745
10746 \begin_layout Itemize
10747
10748 \change_inserted -712698321 1353917199
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753
10754 \change_inserted -712698321 1353680879
10755 Requires
10756 \end_layout
10757
10758 \end_inset
10759
10760  
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765
10766 \change_inserted -712698321 1353680874
10767 [int=0]
10768 \end_layout
10769
10770 \end_inset
10771
10772  defines another argument (by its number) which this argument requires to
10773  be output if it is itself output.
10774  E.
10775 \begin_inset space \thinspace{}
10776 \end_inset
10777
10778 g., in LaTeX commands, optional arguments often require previous optional
10779  arguments to be output (at least empty), as in 
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784
10785 \change_inserted -712698321 1353688183
10786
10787 \backslash
10788 command[][arg]{text}
10789 \change_unchanged
10790
10791 \end_layout
10792
10793 \end_inset
10794
10795 .
10796  This can be achieved by the statement 
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801
10802 \change_inserted -712698321 1353681031
10803 Requires 1
10804 \change_unchanged
10805
10806 \end_layout
10807
10808 \end_inset
10809
10810  within 
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815
10816 \change_inserted -712698321 1353681045
10817 Argument 2
10818 \change_unchanged
10819
10820 \end_layout
10821
10822 \end_inset
10823
10824 .
10825 \end_layout
10826
10827 \begin_layout Itemize
10828
10829 \change_inserted -712698321 1354263104
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834
10835 \change_inserted -712698321 1353681072
10836 LeftDelim
10837 \change_unchanged
10838
10839 \end_layout
10840
10841 \end_inset
10842
10843  
10844 \begin_inset Flex Code
10845 status collapsed
10846
10847 \begin_layout Plain Layout
10848
10849 \change_inserted -712698321 1353681067
10850 [string]
10851 \end_layout
10852
10853 \end_inset
10854
10855  defines a custom left delimiter (instead of 
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860
10861 \change_inserted -712698321 1353681127
10862 {
10863 \change_unchanged
10864
10865 \end_layout
10866
10867 \end_inset
10868
10869  or 
10870 \begin_inset Flex Code
10871 status collapsed
10872
10873 \begin_layout Plain Layout
10874
10875 \change_inserted -712698321 1353681133
10876 [
10877 \change_unchanged
10878
10879 \end_layout
10880
10881 \end_inset
10882
10883 ).
10884  A line break in the output can be indicated by 
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889
10890 \change_inserted -712698321 1354263104
10891 <br/>
10892 \end_layout
10893
10894 \end_inset
10895
10896 .
10897 \change_unchanged
10898
10899 \end_layout
10900
10901 \begin_layout Itemize
10902
10903 \change_inserted -712698321 1355144479
10904 \begin_inset Flex Code
10905 status collapsed
10906
10907 \begin_layout Plain Layout
10908
10909 \change_inserted -712698321 1353681149
10910 RightDelim
10911 \end_layout
10912
10913 \end_inset
10914
10915  
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920
10921 \change_inserted -712698321 1353681146
10922 [string]
10923 \end_layout
10924
10925 \end_inset
10926
10927  defines a custom right delimiter (instead of 
10928 \begin_inset Flex Code
10929 status collapsed
10930
10931 \begin_layout Plain Layout
10932
10933 \change_inserted -712698321 1353681158
10934 }
10935 \end_layout
10936
10937 \end_inset
10938
10939  or 
10940 \begin_inset Flex Code
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944
10945 \change_inserted -712698321 1353681161
10946 ]
10947 \end_layout
10948
10949 \end_inset
10950
10951 ).
10952  A line break in the output can be indicated by 
10953 \begin_inset Flex Code
10954 status collapsed
10955
10956 \begin_layout Plain Layout
10957
10958 \change_inserted -712698321 1354263106
10959 <br/>
10960 \end_layout
10961
10962 \end_inset
10963
10964 .
10965 \end_layout
10966
10967 \begin_layout Itemize
10968
10969 \change_inserted -712698321 1355144578
10970 \begin_inset Flex Code
10971 status collapsed
10972
10973 \begin_layout Plain Layout
10974
10975 \change_inserted -712698321 1355144487
10976 PresetArg
10977 \change_unchanged
10978
10979 \end_layout
10980
10981 \end_inset
10982
10983  
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988
10989 \change_inserted -712698321 1355144500
10990 [string]
10991 \end_layout
10992
10993 \end_inset
10994
10995  defines an argument that is inserted in any case (alone or in addition
10996  to user-specified arguments).
10997  Multiple arguments need to be separated by comma.
10998 \change_unchanged
10999
11000 \end_layout
11001
11002 \begin_layout Itemize
11003
11004 \change_inserted -712698321 1353917320
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009
11010 \change_inserted -712698321 1353917320
11011 Font
11012 \end_layout
11013
11014 \end_inset
11015
11016  The font used for the argument content.
11017  See section
11018 \begin_inset space ~
11019 \end_inset
11020
11021
11022 \begin_inset CommandInset ref
11023 LatexCommand ref
11024 reference "sub:Font-description"
11025
11026 \end_inset
11027
11028 .
11029 \end_layout
11030
11031 \begin_layout Itemize
11032
11033 \change_inserted -712698321 1353917320
11034 \begin_inset Flex Code
11035 status collapsed
11036
11037 \begin_layout Plain Layout
11038
11039 \change_inserted -712698321 1353917320
11040 LabelFont
11041 \end_layout
11042
11043 \end_inset
11044
11045  The font used for the label.
11046  See section
11047 \begin_inset space ~
11048 \end_inset
11049
11050
11051 \begin_inset CommandInset ref
11052 LatexCommand ref
11053 reference "sub:Font-description"
11054
11055 \end_inset
11056
11057 .
11058 \end_layout
11059
11060 \begin_layout Itemize
11061
11062 \change_inserted -712698321 1355661048
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067
11068 \change_inserted -712698321 1353917320
11069 Decoration
11070 \end_layout
11071
11072 \end_inset
11073
11074  can be 
11075 \begin_inset Flex Code
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079
11080 \change_inserted -712698321 1353917320
11081 Classic
11082 \end_layout
11083
11084 \end_inset
11085
11086
11087 \begin_inset Flex Code
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091
11092 \change_inserted -712698321 1353917320
11093 Minimalistic
11094 \end_layout
11095
11096 \end_inset
11097
11098 , or 
11099 \begin_inset Flex Code
11100 status collapsed
11101
11102 \begin_layout Plain Layout
11103
11104 \change_inserted -712698321 1353917320
11105 Conglomerate
11106 \end_layout
11107
11108 \end_inset
11109
11110 , describing the rendering style used for the inset's frame and buttons.
11111  Default is 
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116
11117 \change_inserted -712698321 1353917320
11118 Classic
11119 \end_layout
11120
11121 \end_inset
11122
11123 .
11124 \end_layout
11125
11126 \begin_layout Itemize
11127
11128 \change_inserted -712698321 1355747298
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133
11134 \change_inserted -712698321 1355661057
11135 AutoInsert
11136 \end_layout
11137
11138 \end_inset
11139
11140  
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145
11146 \change_inserted -712698321 1355661049
11147 [int=0]
11148 \end_layout
11149
11150 \end_inset
11151
11152  If this is set to 
11153 \begin_inset Flex Code
11154 status collapsed
11155
11156 \begin_layout Plain Layout
11157
11158 \change_inserted -712698321 1355661077
11159 1
11160 \change_unchanged
11161
11162 \end_layout
11163
11164 \end_inset
11165
11166 , this argument is automatically inserted when the respective style is selected.
11167  Currently, only one argument per style\SpecialChar \slash{}
11168 layout can be automatically inserted.
11169 \change_inserted 155139281 1354198988
11170
11171 \end_layout
11172
11173 \begin_layout Standard
11174
11175 \change_inserted -712698321 1356689813
11176 By default, the text entered in the LyX workarea in the respective layout
11177  is the last (mandatory) argument of a command if the 
11178 \begin_inset Flex Code
11179 status collapsed
11180
11181 \begin_layout Plain Layout
11182
11183 \change_inserted -712698321 1356689619
11184 LatexType
11185 \change_unchanged
11186
11187 \end_layout
11188
11189 \end_inset
11190
11191  is 
11192 \begin_inset Flex Code
11193 status collapsed
11194
11195 \begin_layout Plain Layout
11196
11197 \change_inserted -712698321 1356689629
11198 Command
11199 \change_unchanged
11200
11201 \end_layout
11202
11203 \end_inset
11204
11205 .
11206  However, arguments with the prefix 
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211
11212 \change_inserted -712698321 1356689679
11213 post:
11214 \change_unchanged
11215
11216 \end_layout
11217
11218 \end_inset
11219
11220  are output after this workarea argument.
11221  Note that post-argument numbering restarts at 1, so the first argument
11222  following the workarea argument is 
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227
11228 \change_inserted -712698321 1356689813
11229 post:1
11230 \change_unchanged
11231
11232 \end_layout
11233
11234 \end_inset
11235
11236 .
11237  Post-arguments are ignored in any other 
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242
11243 \change_inserted -712698321 1356689801
11244 LatexType
11245 \end_layout
11246
11247 \end_inset
11248
11249  than 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254
11255 \change_inserted -712698321 1356689801
11256 Command
11257 \end_layout
11258
11259 \end_inset
11260
11261 .
11262 \change_unchanged
11263
11264 \end_layout
11265
11266 \begin_layout Standard
11267
11268 \change_inserted 155139281 1354199102
11269 Arguments for list 
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274
11275 \change_inserted 155139281 1354199013
11276
11277 \backslash
11278 item
11279 \change_unchanged
11280
11281 \end_layout
11282
11283 \end_inset
11284
11285 s (as in 
11286 \begin_inset Flex Code
11287 status collapsed
11288
11289 \begin_layout Plain Layout
11290
11291 \change_inserted 155139281 1354199102
11292
11293 \backslash
11294 item[foo]
11295 \change_unchanged
11296
11297 \end_layout
11298
11299 \end_inset
11300
11301 ) have the prefix 
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306
11307 \change_inserted 155139281 1354199044
11308 item:
11309 \change_unchanged
11310
11311 \end_layout
11312
11313 \end_inset
11314
11315  followed by the number (e.
11316 \begin_inset space \thinspace{}
11317 \end_inset
11318
11319 g.
11320  
11321 \begin_inset Flex Code
11322 status collapsed
11323
11324 \begin_layout Plain Layout
11325
11326 \change_inserted 155139281 1354199064
11327 Argument item:1
11328 \change_unchanged
11329
11330 \end_layout
11331
11332 \end_inset
11333
11334 )
11335 \change_unchanged
11336
11337 \end_layout
11338
11339 \end_deeper
11340 \begin_layout Description
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 BabelPreamble
11346 \end_layout
11347
11348 \end_inset
11349
11350  Note that this will completely override any prior 
11351 \begin_inset Flex Code
11352 status collapsed
11353
11354 \begin_layout Plain Layout
11355 BabelPreamble
11356 \end_layout
11357
11358 \end_inset
11359
11360  declaration for this style.
11361  Must end with 
11362 \begin_inset Quotes eld
11363 \end_inset
11364
11365
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370 EndBabelPreamble
11371 \end_layout
11372
11373 \end_inset
11374
11375
11376 \begin_inset Quotes erd
11377 \end_inset
11378
11379 .
11380  See section
11381 \begin_inset space ~
11382 \end_inset
11383
11384
11385 \begin_inset CommandInset ref
11386 LatexCommand ref
11387 reference "sub:I18n"
11388
11389 \end_inset
11390
11391  for details on its use.
11392 \end_layout
11393
11394 \begin_layout Description
11395 \begin_inset Flex Code
11396 status collapsed
11397
11398 \begin_layout Plain Layout
11399 BottomSep
11400 \end_layout
11401
11402 \end_inset
11403
11404  [
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 float=0
11410 \end_layout
11411
11412 \end_inset
11413
11414 ]
11415 \begin_inset Foot
11416 status collapsed
11417
11418 \begin_layout Plain Layout
11419 Note that a `float' here is a real number, such as: 1.5.
11420 \end_layout
11421
11422 \end_inset
11423
11424  The vertical space with which the last of a chain of paragraphs with this
11425  style is separated from the following paragraph.
11426  If the next paragraph has another style, the separations are not simply
11427  added, but the maximum is taken.
11428 \end_layout
11429
11430 \begin_layout Description
11431 \begin_inset Flex Code
11432 status collapsed
11433
11434 \begin_layout Plain Layout
11435 Category
11436 \end_layout
11437
11438 \end_inset
11439
11440  [
11441 \begin_inset Flex Code
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 string
11446 \end_layout
11447
11448 \end_inset
11449
11450 ] The category for this style.
11451  This is used to group related styles in the style combobox on the toolbar.
11452  Any string can be used, but you may want to use existing categories with
11453  your own styles.
11454  
11455 \end_layout
11456
11457 \begin_layout Description
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 CommandDepth
11463 \end_layout
11464
11465 \end_inset
11466
11467  Depth of XML command.
11468  Used only with XML-type formats.
11469 \end_layout
11470
11471 \begin_layout Description
11472 \begin_inset Flex Code
11473 status collapsed
11474
11475 \begin_layout Plain Layout
11476 CopyStyle
11477 \end_layout
11478
11479 \end_inset
11480
11481  [
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 string
11487 \end_layout
11488
11489 \end_inset
11490
11491 ] Copies all the features of an existing style into the current one.
11492  
11493 \end_layout
11494
11495 \begin_layout Description
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 DependsOn
11501 \end_layout
11502
11503 \end_inset
11504
11505  [
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 <name>
11511 \end_layout
11512
11513 \end_inset
11514
11515 ] The name of a style whose preamble should be output 
11516 \emph on
11517 before
11518 \emph default
11519  this one.
11520  This allows to ensure some ordering of the preamble snippets when macros
11521  definitions depend on one another.
11522 \begin_inset Foot
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 Note that, besides that functionality, there is no way to ensure any ordering
11527  of preambles.
11528  The ordering that you see in a given version of LyX may change without
11529  warning in later versions.
11530 \end_layout
11531
11532 \end_inset
11533
11534
11535 \end_layout
11536
11537 \begin_layout Description
11538 \begin_inset Flex Code
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 EndLabeltype
11543 \end_layout
11544
11545 \end_inset
11546
11547  [
11548 \begin_inset Flex Code
11549 status collapsed
11550
11551 \begin_layout Plain Layout
11552
11553 \emph on
11554 No_Label
11555 \emph default
11556 , Box, Filled_Box, Static
11557 \end_layout
11558
11559 \end_inset
11560
11561 ] The type of label that stands at the end of the paragraph (or sequence
11562  of paragraphs if 
11563 \begin_inset Flex Code
11564 status collapsed
11565
11566 \begin_layout Plain Layout
11567 LatexType
11568 \end_layout
11569
11570 \end_inset
11571
11572  is
11573 \begin_inset Newline newline
11574 \end_inset
11575
11576
11577 \begin_inset Flex Code
11578 status collapsed
11579
11580 \begin_layout Plain Layout
11581 Environment
11582 \end_layout
11583
11584 \end_inset
11585
11586
11587 \begin_inset Flex Code
11588 status collapsed
11589
11590 \begin_layout Plain Layout
11591 Item_Environment
11592 \end_layout
11593
11594 \end_inset
11595
11596  or 
11597 \begin_inset Flex Code
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 List_Environment
11602 \end_layout
11603
11604 \end_inset
11605
11606 ).
11607  
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612 No_Label
11613 \end_layout
11614
11615 \end_inset
11616
11617  means 
11618 \begin_inset Quotes eld
11619 \end_inset
11620
11621 nothing
11622 \begin_inset Quotes erd
11623 \end_inset
11624
11625
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 Box
11631 \end_layout
11632
11633 \end_inset
11634
11635  (resp.
11636 \begin_inset space \space{}
11637 \end_inset
11638
11639
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 Filled_Box
11645 \end_layout
11646
11647 \end_inset
11648
11649 ) is a white (resp.
11650 \begin_inset space ~
11651 \end_inset
11652
11653 black) square suitable for end of proof markers, 
11654 \begin_inset Flex Code
11655 status collapsed
11656
11657 \begin_layout Plain Layout
11658 Static
11659 \end_layout
11660
11661 \end_inset
11662
11663  is an explicit text string.
11664 \end_layout
11665
11666 \begin_layout Description
11667 \begin_inset Flex Code
11668 status collapsed
11669
11670 \begin_layout Plain Layout
11671 EndLabelString
11672 \end_layout
11673
11674 \end_inset
11675
11676  [
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 string=""
11682 \end_layout
11683
11684 \end_inset
11685
11686 ] The string used for a label with a 
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 Static
11692 \end_layout
11693
11694 \end_inset
11695
11696
11697 \begin_inset Newline newline
11698 \end_inset
11699
11700
11701 \begin_inset Flex Code
11702 status collapsed
11703
11704 \begin_layout Plain Layout
11705 EndLabelType
11706 \end_layout
11707
11708 \end_inset
11709
11710 .
11711  
11712 \end_layout
11713
11714 \begin_layout Description
11715 \begin_inset Flex Code
11716 status collapsed
11717
11718 \begin_layout Plain Layout
11719 Font
11720 \end_layout
11721
11722 \end_inset
11723
11724  The font used for both the text body 
11725 \emph on
11726 and
11727 \emph default
11728  the label.
11729  See section
11730 \begin_inset space ~
11731 \end_inset
11732
11733
11734 \begin_inset CommandInset ref
11735 LatexCommand ref
11736 reference "sub:Font-description"
11737
11738 \end_inset
11739
11740 .
11741  Note that defining this font automatically defines the 
11742 \begin_inset Flex Code
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746 LabelFont
11747 \end_layout
11748
11749 \end_inset
11750
11751  to the same value.
11752  So you should define this one first if you also want to define 
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 LabelFont
11758 \end_layout
11759
11760 \end_inset
11761
11762 .
11763 \end_layout
11764
11765 \begin_layout Description
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770 FreeSpacing
11771 \end_layout
11772
11773 \end_inset
11774
11775  [
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780
11781 \emph on
11782 0
11783 \end_layout
11784
11785 \end_inset
11786
11787 ,
11788 \begin_inset space \thinspace{}
11789 \end_inset
11790
11791
11792 \begin_inset Flex Code
11793 status collapsed
11794
11795 \begin_layout Plain Layout
11796 1
11797 \end_layout
11798
11799 \end_inset
11800
11801 ] Usually LyX does not allow you to insert more than one space between words,
11802  since a space is considered as the separation between two words, not a
11803  character or symbol of its own.
11804  This is a very fine thing but sometimes annoying, for example, when typing
11805  program code or plain LaTeX code.
11806  For this reason, 
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 FreeSpacing
11812 \end_layout
11813
11814 \end_inset
11815
11816  can be enabled.
11817  Note that LyX will create protected blanks for the additional blanks when
11818  in another mode than LaTeX-mode.
11819 \end_layout
11820
11821 \begin_layout Description
11822 \begin_inset Flex Code
11823 status collapsed
11824
11825 \begin_layout Plain Layout
11826 HTML*
11827 \end_layout
11828
11829 \end_inset
11830
11831  These tags are used with XHTML output.
11832  See 
11833 \begin_inset CommandInset ref
11834 LatexCommand ref
11835 reference "sub:Paragraph-Style-XHTML"
11836
11837 \end_inset
11838
11839 .
11840 \end_layout
11841
11842 \begin_layout Description
11843 \begin_inset Flex Code
11844 status collapsed
11845
11846 \begin_layout Plain Layout
11847 InnerTag
11848 \end_layout
11849
11850 \end_inset
11851
11852  [FIXME] (Used only with XML-type formats.)
11853 \end_layout
11854
11855 \begin_layout Description
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 InPreamble
11861 \end_layout
11862
11863 \end_inset
11864
11865  [
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870
11871 \emph on
11872 0
11873 \end_layout
11874
11875 \end_inset
11876
11877 ,
11878 \begin_inset space \thinspace{}
11879 \end_inset
11880
11881
11882 \begin_inset Flex Code
11883 status collapsed
11884
11885 \begin_layout Plain Layout
11886 1
11887 \end_layout
11888
11889 \end_inset
11890
11891 ] If 
11892 \begin_inset Flex Code
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896 1
11897 \end_layout
11898
11899 \end_inset
11900
11901 , marks the style as to be included in the document preamble and not in
11902  the document body.
11903  This is useful for document classes that want such information as the title
11904  and author to appear in the preamble.
11905  Note that this works only for styles for which the 
11906 \begin_inset Flex Code
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 LatexType
11911 \end_layout
11912
11913 \end_inset
11914
11915  is 
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920 Command
11921 \end_layout
11922
11923 \end_inset
11924
11925  or 
11926 \begin_inset Flex Code
11927 status collapsed
11928
11929 \begin_layout Plain Layout
11930 Paragraph
11931 \end_layout
11932
11933 \end_inset
11934
11935 .
11936 \end_layout
11937
11938 \begin_layout Description
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943 InTitle
11944 \end_layout
11945
11946 \end_inset
11947
11948  [
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953
11954 \emph on
11955 0
11956 \end_layout
11957
11958 \end_inset
11959
11960 ,
11961 \begin_inset space \thinspace{}
11962 \end_inset
11963
11964
11965 \begin_inset Flex Code
11966 status collapsed
11967
11968 \begin_layout Plain Layout
11969 1
11970 \end_layout
11971
11972 \end_inset
11973
11974 ] If 
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979 1
11980 \end_layout
11981
11982 \end_inset
11983
11984 , marks the style as being part of a title block (see also the 
11985 \begin_inset Flex Code
11986 status collapsed
11987
11988 \begin_layout Plain Layout
11989 TitleLatexType
11990 \end_layout
11991
11992 \end_inset
11993
11994  and 
11995 \begin_inset Flex Code
11996 status collapsed
11997
11998 \begin_layout Plain Layout
11999 TitleLatexName
12000 \end_layout
12001
12002 \end_inset
12003
12004  global entries).
12005 \end_layout
12006
12007 \begin_layout Description
12008
12009 \change_inserted -712698321 1355932296
12010 \begin_inset Flex Code
12011 status collapsed
12012
12013 \begin_layout Plain Layout
12014
12015 \change_inserted -712698321 1355932178
12016 ItemCommand
12017 \end_layout
12018
12019 \end_inset
12020
12021  [
12022 \begin_inset Flex Code
12023 status collapsed
12024
12025 \begin_layout Plain Layout
12026
12027 \change_inserted -712698321 1355932181
12028 string="item"
12029 \end_layout
12030
12031 \end_inset
12032
12033 ] The LaTeX command sequence declaring an item in a list.
12034  The command is to be defined without the preceding backslash (the default
12035  is 
12036 \begin_inset Quotes eld
12037 \end_inset
12038
12039 item
12040 \begin_inset Quotes erd
12041 \end_inset
12042
12043 , resulting in 
12044 \begin_inset Flex Code
12045 status collapsed
12046
12047 \begin_layout Plain Layout
12048
12049 \change_inserted -712698321 1355932279
12050
12051 \backslash
12052 item
12053 \change_unchanged
12054
12055 \end_layout
12056
12057 \end_inset
12058
12059  in the LaTeX output).
12060 \end_layout
12061
12062 \begin_layout Description
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 ItemSep
12068 \end_layout
12069
12070 \end_inset
12071
12072  [
12073 \begin_inset Flex Code
12074 status collapsed
12075
12076 \begin_layout Plain Layout
12077 float=0
12078 \end_layout
12079
12080 \end_inset
12081
12082 ] This provides extra space between paragraphs that have the same style.
12083  If you put other styles into an environment, each is separated with the
12084  environment's 
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 ParSep
12090 \end_layout
12091
12092 \end_inset
12093
12094 .
12095  But the whole items of the environment are additionally separated with
12096  this 
12097 \begin_inset Flex Code
12098 status collapsed
12099
12100 \begin_layout Plain Layout
12101 ItemSep
12102 \end_layout
12103
12104 \end_inset
12105
12106 .
12107  Note that this is a
12108 \emph on
12109  multiplier.
12110 \end_layout
12111
12112 \begin_layout Description
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 ItemTag
12118 \end_layout
12119
12120 \end_inset
12121
12122  [FIXME] (Used only with XML-type formats.)
12123 \end_layout
12124
12125 \begin_layout Description
12126 \begin_inset Flex Code
12127 status collapsed
12128
12129 \begin_layout Plain Layout
12130 KeepEmpty
12131 \end_layout
12132
12133 \end_inset
12134
12135  [
12136 \begin_inset Flex Code
12137 status collapsed
12138
12139 \begin_layout Plain Layout
12140
12141 \emph on
12142 0
12143 \end_layout
12144
12145 \end_inset
12146
12147 ,
12148 \begin_inset space \thinspace{}
12149 \end_inset
12150
12151
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156 1
12157 \end_layout
12158
12159 \end_inset
12160
12161 ] Usually LyX does not allow you to leave a paragraph empty, since it would
12162  lead to empty LaTeX output.
12163  There are some cases where this could be desirable however: in a letter
12164  template, the required fields can be provided as empty fields, so that
12165  people do not forget them; in some special classes, a style can be used
12166  as some kind of break, which does not contain actual text.
12167 \end_layout
12168
12169 \begin_layout Description
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 LabelBottomsep
12175 \end_layout
12176
12177 \end_inset
12178
12179  [
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 float=0
12185 \end_layout
12186
12187 \end_inset
12188
12189 ] The vertical space between the label and the text body.
12190  Only used for labels that are above the text body (
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 Top_Environment
12196 \end_layout
12197
12198 \end_inset
12199
12200  and
12201 \begin_inset Newline newline
12202 \end_inset
12203
12204
12205 \begin_inset Flex Code
12206 status collapsed
12207
12208 \begin_layout Plain Layout
12209 Centered_Top_Environment
12210 \end_layout
12211
12212 \end_inset
12213
12214 ).
12215 \end_layout
12216
12217 \begin_layout Description
12218 \begin_inset Flex Code
12219 status collapsed
12220
12221 \begin_layout Plain Layout
12222 LabelCounter
12223 \end_layout
12224
12225 \end_inset
12226
12227  [
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 string=""
12233 \end_layout
12234
12235 \end_inset
12236
12237 ] The name of the counter for automatic numbering.
12238 \begin_inset Newline newline
12239 \end_inset
12240
12241 This 
12242 \emph on
12243 must
12244 \emph default
12245  be given if 
12246 \begin_inset Flex Code
12247 status collapsed
12248
12249 \begin_layout Plain Layout
12250 LabelType
12251 \end_layout
12252
12253 \end_inset
12254
12255  is 
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260 Counter
12261 \end_layout
12262
12263 \end_inset
12264
12265 .
12266  In that case, the counter will be stepped each time the style appears.
12267 \begin_inset Newline newline
12268 \end_inset
12269
12270 This 
12271 \emph on
12272 may
12273 \emph default
12274  also be given if 
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279 LabelType
12280 \end_layout
12281
12282 \end_inset
12283
12284  is 
12285 \begin_inset Flex Code
12286 status collapsed
12287
12288 \begin_layout Plain Layout
12289 Enumerate
12290 \end_layout
12291
12292 \end_inset
12293
12294 , though this case is a bit complicated.
12295  Suppose you declare 
12296 \begin_inset Quotes eld
12297 \end_inset
12298
12299
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 LabelCounter myenum
12305 \end_layout
12306
12307 \end_inset
12308
12309
12310 \begin_inset Quotes erd
12311 \end_inset
12312
12313 .
12314  Then the actual counters used are 
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 myenumi
12320 \end_layout
12321
12322 \end_inset
12323
12324
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 myenumii
12330 \end_layout
12331
12332 \end_inset
12333
12334
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339 myenumiii
12340 \end_layout
12341
12342 \end_inset
12343
12344  and 
12345 \begin_inset Flex Code
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349 myenumiv
12350 \end_layout
12351
12352 \end_inset
12353
12354 , much as in LaTeX.
12355  These counters must all be declared separately.
12356 \begin_inset Newline newline
12357 \end_inset
12358
12359 See Section 
12360 \begin_inset CommandInset ref
12361 LatexCommand ref
12362 reference "sub:Counters"
12363
12364 \end_inset
12365
12366  for details on counters.
12367 \end_layout
12368
12369 \begin_layout Description
12370 \begin_inset Flex Code
12371 status collapsed
12372
12373 \begin_layout Plain Layout
12374 LabelFont
12375 \end_layout
12376
12377 \end_inset
12378
12379  The font used for the label.
12380  See section
12381 \begin_inset space ~
12382 \end_inset
12383
12384
12385 \begin_inset CommandInset ref
12386 LatexCommand ref
12387 reference "sub:Font-description"
12388
12389 \end_inset
12390
12391 .
12392 \end_layout
12393
12394 \begin_layout Description
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 LabelIndent
12400 \end_layout
12401
12402 \end_inset
12403
12404  [
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 string=""
12410 \end_layout
12411
12412 \end_inset
12413
12414 ] Text that indicates how far a label should be indented.
12415 \end_layout
12416
12417 \begin_layout Description
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 Labelsep
12423 \end_layout
12424
12425 \end_inset
12426
12427  [
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 string=""
12433 \end_layout
12434
12435 \end_inset
12436
12437 ] Text that indicates the amount of horizontal space between the label and
12438  the text body.
12439  Only used for labels that are not above the text body.
12440 \end_layout
12441
12442 \begin_layout Description
12443 \begin_inset Flex Code
12444 status collapsed
12445
12446 \begin_layout Plain Layout
12447 LabelString
12448 \end_layout
12449
12450 \end_inset
12451
12452  [
12453 \begin_inset Flex Code
12454 status collapsed
12455
12456 \begin_layout Plain Layout
12457 string=""
12458 \end_layout
12459
12460 \end_inset
12461
12462 ] The string used for a label with a 
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 Static
12468 \end_layout
12469
12470 \end_inset
12471
12472  
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 LabelType
12478 \end_layout
12479
12480 \end_inset
12481
12482 .
12483  When 
12484 \begin_inset Flex Code
12485 status collapsed
12486
12487 \begin_layout Plain Layout
12488 LabelCounter
12489 \end_layout
12490
12491 \end_inset
12492
12493  is set, this string can be contain the special formatting commands described
12494  in Section 
12495 \begin_inset CommandInset ref
12496 LatexCommand ref
12497 reference "sub:Counters"
12498
12499 \end_inset
12500
12501 .
12502 \end_layout
12503
12504 \begin_layout Description
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 LabelStringAppendix
12510 \end_layout
12511
12512 \end_inset
12513
12514  [
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 string=""
12520 \end_layout
12521
12522 \end_inset
12523
12524 ] This is used inside the appendix instead of
12525 \begin_inset Newline newline
12526 \end_inset
12527
12528
12529 \begin_inset Flex Code
12530 status collapsed
12531
12532 \begin_layout Plain Layout
12533 LabelString
12534 \end_layout
12535
12536 \end_inset
12537
12538 .
12539  Note that every 
12540 \begin_inset Flex Code
12541 status collapsed
12542
12543 \begin_layout Plain Layout
12544 LabelString
12545 \end_layout
12546
12547 \end_inset
12548
12549  statement resets
12550 \begin_inset Newline newline
12551 \end_inset
12552
12553
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 LabelStringAppendix
12559 \end_layout
12560
12561 \end_inset
12562
12563  too.
12564 \end_layout
12565
12566 \begin_layout Description
12567 \begin_inset Flex Code
12568 status collapsed
12569
12570 \begin_layout Plain Layout
12571 LabelTag
12572 \end_layout
12573
12574 \end_inset
12575
12576  [FIXME] (Used only with XML-type formats.)
12577 \end_layout
12578
12579 \begin_layout Description
12580 \begin_inset Flex Code
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584 LabelType
12585 \end_layout
12586
12587 \end_inset
12588
12589  [
12590 \begin_inset Flex Code
12591 status collapsed
12592
12593 \begin_layout Plain Layout
12594
12595 \emph on
12596 No_Label
12597 \emph default
12598 , Manual, Static, Top_Environment,
12599 \begin_inset Newline newline
12600 \end_inset
12601
12602 Centered_Top_Environment, Counter, Sensitive, Enumerate,
12603 \begin_inset Newline newline
12604 \end_inset
12605
12606 Itemize, Bibliography
12607 \end_layout
12608
12609 \end_inset
12610
12611 ]
12612 \end_layout
12613
12614 \begin_deeper
12615 \begin_layout Description
12616 \begin_inset Flex Code
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 Manual
12621 \end_layout
12622
12623 \end_inset
12624
12625  means the label is the very first word (up to the first real blank).
12626  Use protected spaces if you want more than one word as the label.
12627  
12628 \end_layout
12629
12630 \begin_layout Description
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635 Static
12636 \end_layout
12637
12638 \end_inset
12639
12640  means the label is simply what is declared as 
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 LabelString
12646 \end_layout
12647
12648 \end_inset
12649
12650 .
12651  Note that this really is `static'.
12652 \end_layout
12653
12654 \begin_layout Description
12655 \begin_inset Flex Code
12656 status collapsed
12657
12658 \begin_layout Plain Layout
12659 Top_Environment
12660 \end_layout
12661
12662 \end_inset
12663
12664
12665 \begin_inset space ~
12666 \end_inset
12667
12668 and
12669 \begin_inset space ~
12670 \end_inset
12671
12672
12673 \begin_inset Flex Code
12674 status collapsed
12675
12676 \begin_layout Plain Layout
12677 Centered_Top_Environment
12678 \end_layout
12679
12680 \end_inset
12681
12682  are special cases of 
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 Static
12688 \end_layout
12689
12690 \end_inset
12691
12692 .
12693  The label will be printed above the paragraph, but only at the top of an
12694  environment or the top of a chain of paragraphs with this style.
12695  This might be used with the 
12696 \begin_inset Flex MenuItem
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 Abstract
12701 \end_layout
12702
12703 \end_inset
12704
12705  style, for example.
12706 \end_layout
12707
12708 \begin_layout Description
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713 Sensitive
12714 \end_layout
12715
12716 \end_inset
12717
12718  is a special case for the caption-labels 
12719 \begin_inset Quotes eld
12720 \end_inset
12721
12722 Figure
12723 \begin_inset Quotes erd
12724 \end_inset
12725
12726  and 
12727 \begin_inset Quotes eld
12728 \end_inset
12729
12730 Table
12731 \begin_inset Quotes erd
12732 \end_inset
12733
12734 .
12735 \begin_inset Newline newline
12736 \end_inset
12737
12738
12739 \begin_inset Flex Code
12740 status collapsed
12741
12742 \begin_layout Plain Layout
12743 Sensitive
12744 \end_layout
12745
12746 \end_inset
12747
12748  means the (hardcoded) label string depends on the kind of float: It is
12749  hardcoded to be `FloatType N', where N is the value of the counter associated
12750  with the float.
12751 \end_layout
12752
12753 \begin_layout Description
12754 \begin_inset Flex Code
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758 Counter
12759 \end_layout
12760
12761 \end_inset
12762
12763  defines automatically numbered labels.
12764  The 
12765 \begin_inset Flex Code
12766 status collapsed
12767
12768 \begin_layout Plain Layout
12769 LabelString
12770 \end_layout
12771
12772 \end_inset
12773
12774  will be expanded to contain any counters: So the result will for example
12775  be 
12776 \begin_inset Quotes eld
12777 \end_inset
12778
12779
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 Section 
12785 \backslash
12786 thechapter.
12787 \backslash
12788 thesection
12789 \end_layout
12790
12791 \end_inset
12792
12793
12794 \begin_inset Quotes erd
12795 \end_inset
12796
12797 .
12798  See Section
12799 \begin_inset space ~
12800 \end_inset
12801
12802
12803 \begin_inset CommandInset ref
12804 LatexCommand ref
12805 reference "sub:Counters"
12806
12807 \end_inset
12808
12809  for more information on counters.
12810 \end_layout
12811
12812 \begin_layout Description
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817 Enumerate
12818 \end_layout
12819
12820 \end_inset
12821
12822  produces the usual sort of enumeration labels.
12823  At present, it is hardcoded to use Arabic numerals, lowercase letters,
12824  small Roman numerals, and uppercase letters for the four possible depths.
12825 \end_layout
12826
12827 \begin_layout Description
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 Itemize
12833 \end_layout
12834
12835 \end_inset
12836
12837  produces various bullets at the different levels.
12838  It is also hardcoded.
12839 \end_layout
12840
12841 \begin_layout Description
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 Bibliography
12847 \end_layout
12848
12849 \end_inset
12850
12851  is used internally by LyX and should be used only with 
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 LatexType BibEnvironment
12857 \end_layout
12858
12859 \end_inset
12860
12861 .
12862 \end_layout
12863
12864 \end_deeper
12865 \begin_layout Description
12866 \begin_inset Flex Code
12867 status collapsed
12868
12869 \begin_layout Plain Layout
12870 LangPreamble
12871 \end_layout
12872
12873 \end_inset
12874
12875  Note that this will completely override any prior 
12876 \begin_inset Flex Code
12877 status collapsed
12878
12879 \begin_layout Plain Layout
12880 LangPreamble
12881 \end_layout
12882
12883 \end_inset
12884
12885  declaration for this style.
12886  Must end with 
12887 \begin_inset Quotes eld
12888 \end_inset
12889
12890
12891 \begin_inset Flex Code
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895 EndLangPreamble
12896 \end_layout
12897
12898 \end_inset
12899
12900
12901 \begin_inset Quotes erd
12902 \end_inset
12903
12904 .
12905  See section 
12906 \begin_inset CommandInset ref
12907 LatexCommand ref
12908 reference "sub:I18n"
12909
12910 \end_inset
12911
12912  for details on its use.
12913 \end_layout
12914
12915 \begin_layout Description
12916 \begin_inset Flex Code
12917 status collapsed
12918
12919 \begin_layout Plain Layout
12920 LatexName
12921 \end_layout
12922
12923 \end_inset
12924
12925  [
12926 \begin_inset Flex Code
12927 status collapsed
12928
12929 \begin_layout Plain Layout
12930 <name>
12931 \end_layout
12932
12933 \end_inset
12934
12935 ] The name of the corresponding LaTeX stuff.
12936  Either the environment or command name.
12937 \end_layout
12938
12939 \begin_layout Description
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 LatexParam
12945 \end_layout
12946
12947 \end_inset
12948
12949  [
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 <parameter>
12955 \end_layout
12956
12957 \end_inset
12958
12959 ] An optional parameter for the corresponding 
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 LatexName
12965 \end_layout
12966
12967 \end_inset
12968
12969  stuff.
12970  This parameter cannot be changed from within LyX
12971 \change_inserted -712698321 1355144804
12972  (use 
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977
12978 \change_inserted -712698321 1355144804
12979 Argument
12980 \end_layout
12981
12982 \end_inset
12983
12984  for customizable parameters)
12985 \change_unchanged
12986 .
12987
12988 \change_inserted -712698321 1355144804
12989  This will be output as is after all LaTeX 
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994
12995 \change_inserted -712698321 1355144658
12996 Arguments
12997 \change_unchanged
12998
12999 \end_layout
13000
13001 \end_inset
13002
13003 .
13004 \change_unchanged
13005
13006 \end_layout
13007
13008 \begin_layout Description
13009 \begin_inset Flex Code
13010 status collapsed
13011
13012 \begin_layout Plain Layout
13013 LatexType
13014 \end_layout
13015
13016 \end_inset
13017
13018  [
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023
13024 \emph on
13025 Paragraph
13026 \emph default
13027 , Command, Environment, Item_Environment,
13028 \begin_inset Newline newline
13029 \end_inset
13030
13031 List_Environment, Bib_Environment
13032 \end_layout
13033
13034 \end_inset
13035
13036 ] How the style should be translated into LaTeX.
13037 \begin_inset Foot
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045 LatexType
13046 \end_layout
13047
13048 \end_inset
13049
13050  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13051  Visit the SGML class files for specific examples.
13052 \end_layout
13053
13054 \end_inset
13055
13056
13057 \end_layout
13058
13059 \begin_deeper
13060 \begin_layout Description
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 Paragraph
13066 \end_layout
13067
13068 \end_inset
13069
13070  means nothing special.
13071 \end_layout
13072
13073 \begin_layout Description
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 Command
13079 \end_layout
13080
13081 \end_inset
13082
13083  means 
13084 \begin_inset Flex Code
13085 status collapsed
13086
13087 \begin_layout Plain Layout
13088
13089 \backslash
13090
13091 \emph on
13092 LatexName
13093 \emph default
13094 {\SpecialChar \ldots{}
13095 }
13096 \end_layout
13097
13098 \end_inset
13099
13100 .
13101 \end_layout
13102
13103 \begin_layout Description
13104 \begin_inset Flex Code
13105 status collapsed
13106
13107 \begin_layout Plain Layout
13108 Environment
13109 \end_layout
13110
13111 \end_inset
13112
13113  means 
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118
13119 \backslash
13120 begin{
13121 \emph on
13122 LatexName
13123 \emph default
13124 }\SpecialChar \ldots{}
13125
13126 \backslash
13127 end{
13128 \emph on
13129 LatexName
13130 \emph default
13131 }
13132 \end_layout
13133
13134 \end_inset
13135
13136 .
13137  
13138 \end_layout
13139
13140 \begin_layout Description
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 Item_Environment
13146 \end_layout
13147
13148 \end_inset
13149
13150  is the same as 
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 Environment
13156 \end_layout
13157
13158 \end_inset
13159
13160 , except that an 
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165
13166 \backslash
13167 item
13168 \end_layout
13169
13170 \end_inset
13171
13172  is generated for each paragraph of this environment.
13173  
13174 \end_layout
13175
13176 \begin_layout Description
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 List_Environment
13182 \end_layout
13183
13184 \end_inset
13185
13186  is the same as 
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191 Item_Environment
13192 \end_layout
13193
13194 \end_inset
13195
13196 , except that
13197 \begin_inset Newline newline
13198 \end_inset
13199
13200
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205 LabelWidthString
13206 \end_layout
13207
13208 \end_inset
13209
13210  is passed as an argument to the environment.
13211 \begin_inset Newline newline
13212 \end_inset
13213
13214
13215 \begin_inset Flex Code
13216 status collapsed
13217
13218 \begin_layout Plain Layout
13219 LabelWidthString
13220 \end_layout
13221
13222 \end_inset
13223
13224  can be defined in the 
13225 \begin_inset Flex MenuItem
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 Edit\SpecialChar \menuseparator
13230 Paragraph
13231 \begin_inset space ~
13232 \end_inset
13233
13234 settings
13235 \end_layout
13236
13237 \end_inset
13238
13239  dialog.
13240 \end_layout
13241
13242 \begin_layout Description
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 Bib_Environment
13248 \end_layout
13249
13250 \end_inset
13251
13252  is like 
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257 Environment
13258 \end_layout
13259
13260 \end_inset
13261
13262  but adds additionally the necessary mandatory argument to the begin statement
13263  of the bibliography environment:
13264 \begin_inset Newline newline
13265 \end_inset
13266
13267
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272
13273 \backslash
13274 begin{thebibliography}{99}
13275 \end_layout
13276
13277 \end_inset
13278
13279  It is therefore only useful for bibliography environments.
13280 \end_layout
13281
13282 \begin_layout Standard
13283 Putting the last few things together, the LaTeX output will be either: 
13284 \end_layout
13285
13286 \begin_layout LyX-Code
13287
13288 \backslash
13289 LatexName[LatexParam]{\SpecialChar \ldots{}
13290 }
13291 \end_layout
13292
13293 \begin_layout Standard
13294 or: 
13295 \end_layout
13296
13297 \begin_layout LyX-Code
13298
13299 \backslash
13300 begin{LatexName}[LatexParam] \SpecialChar \ldots{}
13301  
13302 \backslash
13303 end{LatexName}.
13304 \end_layout
13305
13306 \begin_layout Standard
13307 depending upon the LaTeX type.
13308 \end_layout
13309
13310 \end_deeper
13311 \begin_layout Description
13312
13313 \change_inserted -712698321 1354263086
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318
13319 \change_inserted -712698321 1353866852
13320 LeftDelim
13321 \end_layout
13322
13323 \end_inset
13324
13325  [
13326 \begin_inset Flex Code
13327 status collapsed
13328
13329 \begin_layout Plain Layout
13330
13331 \change_inserted -712698321 1353866852
13332 string
13333 \end_layout
13334
13335 \end_inset
13336
13337 ] A string that is put at the beginning of the style content.
13338  A line break in the output can be indicated by 
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343
13344 \change_inserted -712698321 1354263086
13345 <br/>
13346 \end_layout
13347
13348 \end_inset
13349
13350 .
13351 \change_unchanged
13352
13353 \end_layout
13354
13355 \begin_layout Description
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 LeftMargin
13361 \end_layout
13362
13363 \end_inset
13364
13365  [
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370 string=""
13371 \end_layout
13372
13373 \end_inset
13374
13375 ] If you put styles into environments, the different 
13376 \begin_inset Flex Code
13377 status collapsed
13378
13379 \begin_layout Plain Layout
13380 LeftMargin
13381 \end_layout
13382
13383 \end_inset
13384
13385  are not simply added, but added with a factor 
13386 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13387 \end_inset
13388
13389 .
13390  Note that this parameter is also used when 
13391 \begin_inset Flex Code
13392 status collapsed
13393
13394 \begin_layout Plain Layout
13395 Margin
13396 \end_layout
13397
13398 \end_inset
13399
13400  is defined as 
13401 \begin_inset Flex Code
13402 status collapsed
13403
13404 \begin_layout Plain Layout
13405 Manual
13406 \end_layout
13407
13408 \end_inset
13409
13410  or 
13411 \begin_inset Flex Code
13412 status collapsed
13413
13414 \begin_layout Plain Layout
13415 Dynamic
13416 \end_layout
13417
13418 \end_inset
13419
13420 .
13421  Then it is added to the manual or dynamic margin.
13422 \begin_inset Newline newline
13423 \end_inset
13424
13425 For example 
13426 \begin_inset Quotes eld
13427 \end_inset
13428
13429
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 MM
13435 \end_layout
13436
13437 \end_inset
13438
13439
13440 \begin_inset Quotes erd
13441 \end_inset
13442
13443  means that the paragraph is indented with the width of 
13444 \begin_inset Quotes eld
13445 \end_inset
13446
13447
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 MM
13453 \end_layout
13454
13455 \end_inset
13456
13457
13458 \begin_inset Quotes erd
13459 \end_inset
13460
13461  in the normal font.
13462  You can get a negative width by prefixing the string with 
13463 \begin_inset Quotes eld
13464 \end_inset
13465
13466
13467 \begin_inset Flex Code
13468 status collapsed
13469
13470 \begin_layout Plain Layout
13471 -
13472 \end_layout
13473
13474 \end_inset
13475
13476
13477 \begin_inset Quotes erd
13478 \end_inset
13479
13480 .
13481  This way was chosen so that the look is the same with each used screen
13482  font.
13483 \end_layout
13484
13485 \begin_layout Description
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 Margin
13491 \end_layout
13492
13493 \end_inset
13494
13495  [
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500
13501 \emph on
13502 Static
13503 \emph default
13504 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13505 \end_layout
13506
13507 \end_inset
13508
13509
13510 \begin_inset Newline newline
13511 \end_inset
13512
13513 The kind of margin that the style has on the left side.
13514 \end_layout
13515
13516 \begin_deeper
13517 \begin_layout Description
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 Static
13523 \end_layout
13524
13525 \end_inset
13526
13527  just means a fixed margin.
13528 \end_layout
13529
13530 \begin_layout Description
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 Manual
13536 \end_layout
13537
13538 \end_inset
13539
13540  means that the left margin depends on the string entered in the 
13541 \begin_inset Flex MenuItem
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Edit\SpecialChar \menuseparator
13546 Paragraph
13547 \begin_inset space ~
13548 \end_inset
13549
13550 Settings
13551 \end_layout
13552
13553 \end_inset
13554
13555  dialog.
13556  This is used to typeset nice lists without tabulators.
13557 \end_layout
13558
13559 \begin_layout Description
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 Dynamic
13565 \end_layout
13566
13567 \end_inset
13568
13569  means that the margin depends on the size of the label.
13570  This is used for automatic enumerated headlines.
13571  It is obvious that the headline 
13572 \begin_inset Quotes eld
13573 \end_inset
13574
13575 5.4.3.2.1 Very long headline
13576 \begin_inset Quotes erd
13577 \end_inset
13578
13579  must have a wider left margin (as wide as 
13580 \begin_inset Quotes eld
13581 \end_inset
13582
13583 5.4.3.2.1
13584 \begin_inset Quotes erd
13585 \end_inset
13586
13587  plus the space) than 
13588 \begin_inset Quotes eld
13589 \end_inset
13590
13591 3.2 Very long headline
13592 \begin_inset Quotes erd
13593 \end_inset
13594
13595 , even if standard 
13596 \begin_inset Quotes eld
13597 \end_inset
13598
13599 word processors
13600 \begin_inset Quotes erd
13601 \end_inset
13602
13603  are not able to do this.
13604 \end_layout
13605
13606 \begin_layout Description
13607 \begin_inset Flex Code
13608 status collapsed
13609
13610 \begin_layout Plain Layout
13611 First_Dynamic
13612 \end_layout
13613
13614 \end_inset
13615
13616  is similar, but only the very first row of the paragraph is dynamic, while
13617  the others are static; this is used, for example, for descriptions.
13618 \end_layout
13619
13620 \begin_layout Description
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 Right_Address_Box
13626 \end_layout
13627
13628 \end_inset
13629
13630  means the margin is chosen in a way that the longest row of this paragraph
13631  fits to the right margin.
13632  This is used to typeset an address on the right edge of the page.
13633 \end_layout
13634
13635 \end_deeper
13636 \begin_layout Description
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641 NeedProtect
13642 \end_layout
13643
13644 \end_inset
13645
13646  [
13647 \begin_inset Flex Code
13648 status collapsed
13649
13650 \begin_layout Plain Layout
13651
13652 \emph on
13653 0
13654 \end_layout
13655
13656 \end_inset
13657
13658 ,
13659 \begin_inset space \thinspace{}
13660 \end_inset
13661
13662
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667 1
13668 \end_layout
13669
13670 \end_inset
13671
13672 ] Whether fragile commands in this style should be 
13673 \begin_inset Flex Code
13674 status collapsed
13675
13676 \begin_layout Plain Layout
13677
13678 \backslash
13679 protect
13680 \end_layout
13681
13682 \end_inset
13683
13684 'ed.
13685  (Note: This is 
13686 \emph on
13687 not
13688 \emph default
13689  whether this command should itself be protected.)
13690 \end_layout
13691
13692 \begin_layout Description
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 Newline
13698 \end_layout
13699
13700 \end_inset
13701
13702  [
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707 0
13708 \end_layout
13709
13710 \end_inset
13711
13712 ,
13713 \begin_inset space \thinspace{}
13714 \end_inset
13715
13716
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721
13722 \emph on
13723 1
13724 \end_layout
13725
13726 \end_inset
13727
13728 ] Whether newlines are translated into LaTeX newlines (
13729 \begin_inset Flex Code
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733
13734 \backslash
13735
13736 \backslash
13737
13738 \end_layout
13739
13740 \end_inset
13741
13742 ) or not.
13743  The translation can be switched off to allow more comfortable LaTeX editing
13744  inside LyX.
13745 \end_layout
13746
13747 \begin_layout Description
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 NextNoIndent
13753 \end_layout
13754
13755 \end_inset
13756
13757  [
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762
13763 \emph on
13764 0
13765 \end_layout
13766
13767 \end_inset
13768
13769 ,
13770 \begin_inset space \thinspace{}
13771 \end_inset
13772
13773
13774 \begin_inset Flex Code
13775 status collapsed
13776
13777 \begin_layout Plain Layout
13778 1
13779 \end_layout
13780
13781 \end_inset
13782
13783 ] If set to true, and if 
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 DefaultStyle
13789 \end_layout
13790
13791 \end_inset
13792
13793  (usually 
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 Standard
13799 \end_layout
13800
13801 \end_inset
13802
13803 ) paragraphs are being indented, then the indentation of such a paragraph
13804  following one of this type will be suppressed.
13805  (So this will not affect the display of non-default paragraphs.)
13806 \end_layout
13807
13808 \begin_layout Description
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813 ObsoletedBy
13814 \end_layout
13815
13816 \end_inset
13817
13818  [
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 <name>
13824 \end_layout
13825
13826 \end_inset
13827
13828 ] Name of a style that has replaced this style.
13829  This is used to rename a style, while keeping backward compatibility.
13830 \end_layout
13831
13832 \begin_layout Description
13833
13834 \change_deleted -712698321 1353679722
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 OptionalArgs
13840 \end_layout
13841
13842 \end_inset
13843
13844  [
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 int=0
13850 \end_layout
13851
13852 \end_inset
13853
13854 ] The number of optional arguments that can be used with this style.
13855  This is useful for things like section headings, and only makes sense with
13856  LaTeX.
13857  Note that, on output, the optional arguments will all precede any required
13858  arguments (see below).
13859  So one can have constructs like:
13860 \end_layout
13861
13862 \begin_deeper
13863 \begin_layout LyX-Code
13864
13865 \change_deleted -712698321 1353679722
13866
13867 \backslash
13868 mycmd[opt1]{req1}{contents of paragraph}
13869 \end_layout
13870
13871 \begin_layout Standard
13872
13873 \change_deleted -712698321 1353679722
13874 but one cannot have things like: 
13875 \end_layout
13876
13877 \begin_layout LyX-Code
13878
13879 \change_deleted -712698321 1353679722
13880
13881 \backslash
13882 mycmd[opt1]{req1}[opt2]{contents of paragraph}
13883 \end_layout
13884
13885 \begin_layout Standard
13886
13887 \change_deleted -712698321 1353679722
13888 at least, not without ERT (with which you can have anything).
13889  
13890 \change_unchanged
13891
13892 \end_layout
13893
13894 \end_deeper
13895 \begin_layout Description
13896 \begin_inset Flex Code
13897 status collapsed
13898
13899 \begin_layout Plain Layout
13900 ParbreakIsNewline
13901 \end_layout
13902
13903 \end_inset
13904
13905  [
13906 \begin_inset Flex Code
13907 status collapsed
13908
13909 \begin_layout Plain Layout
13910
13911 \emph on
13912 0
13913 \end_layout
13914
13915 \end_inset
13916
13917 ,
13918 \begin_inset space \thinspace{}
13919 \end_inset
13920
13921
13922 \begin_inset Flex Code
13923 status collapsed
13924
13925 \begin_layout Plain Layout
13926 1
13927 \end_layout
13928
13929 \end_inset
13930
13931 ] Indicates that paragraphs will not be separated by an empty line in LaTeX
13932  output, but only by a line break; together with 
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 PassThru 1
13938 \end_layout
13939
13940 \end_inset
13941
13942 , this allows to emulate a plain text editor (like the ERT inset).
13943 \end_layout
13944
13945 \begin_layout Description
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 ParIndent
13951 \end_layout
13952
13953 \end_inset
13954
13955  [
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 string=""
13961 \end_layout
13962
13963 \end_inset
13964
13965 ] The indent of the very first line of a paragraph.
13966  The
13967 \begin_inset Newline newline
13968 \end_inset
13969
13970
13971 \begin_inset Flex Code
13972 status collapsed
13973
13974 \begin_layout Plain Layout
13975 Parindent
13976 \end_layout
13977
13978 \end_inset
13979
13980  will be fixed for a certain style.
13981  The exception is the default style, since the indentation for these paragraphs
13982  can be prohibited with 
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 NextNoIndent
13988 \end_layout
13989
13990 \end_inset
13991
13992 .
13993  Also, 
13994 \begin_inset Flex Code
13995 status collapsed
13996
13997 \begin_layout Plain Layout
13998 Standard
13999 \end_layout
14000
14001 \end_inset
14002
14003  style paragraphs inside environments use the 
14004 \begin_inset Flex Code
14005 status collapsed
14006
14007 \begin_layout Plain Layout
14008 Parindent
14009 \end_layout
14010
14011 \end_inset
14012
14013  of the environment, not their native one.
14014  For example, 
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 Standard
14020 \end_layout
14021
14022 \end_inset
14023
14024  paragraphs inside an enumeration are not indented.
14025 \end_layout
14026
14027 \begin_layout Description
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 ParSep
14033 \end_layout
14034
14035 \end_inset
14036
14037  [
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 float=0
14043 \end_layout
14044
14045 \end_inset
14046
14047 ] The vertical space between two paragraphs of this style.
14048 \end_layout
14049
14050 \begin_layout Description
14051 \begin_inset Flex Code
14052 status collapsed
14053
14054 \begin_layout Plain Layout
14055 Parskip
14056 \end_layout
14057
14058 \end_inset
14059
14060  [
14061 \begin_inset Flex Code
14062 status collapsed
14063
14064 \begin_layout Plain Layout
14065 float=0
14066 \end_layout
14067
14068 \end_inset
14069
14070 ] LyX allows the user to choose either 
14071 \begin_inset Quotes eld
14072 \end_inset
14073
14074 indent
14075 \begin_inset Quotes erd
14076 \end_inset
14077
14078  or 
14079 \begin_inset Quotes eld
14080 \end_inset
14081
14082 skip
14083 \begin_inset Quotes erd
14084 \end_inset
14085
14086  to separate paragraphs.
14087  When 
14088 \begin_inset Quotes eld
14089 \end_inset
14090
14091 indent
14092 \begin_inset Quotes erd
14093 \end_inset
14094
14095  is chosen, 
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 Parskip
14101 \end_layout
14102
14103 \end_inset
14104
14105  is ignored.
14106  When 
14107 \begin_inset Quotes eld
14108 \end_inset
14109
14110 skip
14111 \begin_inset Quotes erd
14112 \end_inset
14113
14114  is chosen, 
14115 \begin_inset Flex Code
14116 status collapsed
14117
14118 \begin_layout Plain Layout
14119 ParIndent
14120 \end_layout
14121
14122 \end_inset
14123
14124  is ignored and all paragraphs are separated by the 
14125 \begin_inset Flex Code
14126 status collapsed
14127
14128 \begin_layout Plain Layout
14129 Parskip
14130 \end_layout
14131
14132 \end_inset
14133
14134  argument.
14135  The vertical space is calculated with 
14136 \begin_inset Flex Code
14137 status collapsed
14138
14139 \begin_layout Plain Layout
14140 Parskip
14141 \begin_inset space ~
14142 \end_inset
14143
14144 * DefaultHeight
14145 \end_layout
14146
14147 \end_inset
14148
14149  where 
14150 \begin_inset Flex Code
14151 status collapsed
14152
14153 \begin_layout Plain Layout
14154 DefaultHeight
14155 \end_layout
14156
14157 \end_inset
14158
14159  is the height of a row with the normal font.
14160  This way, the look stays the same with different screen fonts.
14161 \end_layout
14162
14163 \begin_layout Description
14164 \begin_inset Flex Code
14165 status collapsed
14166
14167 \begin_layout Plain Layout
14168 PassThru
14169 \end_layout
14170
14171 \end_inset
14172
14173  [
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178
14179 \emph on
14180 0
14181 \end_layout
14182
14183 \end_inset
14184
14185 ,
14186 \begin_inset space \thinspace{}
14187 \end_inset
14188
14189
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 1
14195 \end_layout
14196
14197 \end_inset
14198
14199 ] Whether the contents of this paragraph should be output in raw form, meaning
14200  without special translations that LaTeX would require.
14201 \end_layout
14202
14203 \begin_layout Description
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 Preamble
14209 \end_layout
14210
14211 \end_inset
14212
14213  Information to be included in the LaTeX preamble when this style is used.
14214  Used to define macros, load packages, etc., required by this particular
14215  style.
14216  Must end with 
14217 \begin_inset Quotes eld
14218 \end_inset
14219
14220
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225 EndPreamble
14226 \end_layout
14227
14228 \end_inset
14229
14230
14231 \begin_inset Quotes erd
14232 \end_inset
14233
14234 .
14235 \end_layout
14236
14237 \begin_layout Description
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 RefPrefix
14243 \end_layout
14244
14245 \end_inset
14246
14247  [
14248 \begin_inset Flex Code
14249 status collapsed
14250
14251 \begin_layout Plain Layout
14252 string
14253 \end_layout
14254
14255 \end_inset
14256
14257 ] The prefix to use when creating labels referring to paragraphs of this
14258  type.
14259  This allows the use of formatted references.
14260 \end_layout
14261
14262 \begin_layout Description
14263
14264 \change_deleted -712698321 1353681258
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 RequiredArgs
14270 \end_layout
14271
14272 \end_inset
14273
14274  [
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 int=0
14280 \end_layout
14281
14282 \end_inset
14283
14284 ] The number of required arguments that the LaTeX command or environment
14285  corresponding to this style expects.
14286  In the case of a command, these are required arguments 
14287 \emph on
14288 other than
14289 \emph default
14290  that associated with the content of the paragraph itself.
14291  These do not actually have to be provided: LyX will output empty arguments
14292  if necessary.
14293  Note that optional arguments will be output before required arguments.
14294  See the discussion of the 
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 OptionalArgs
14300 \end_layout
14301
14302 \end_inset
14303
14304  tag above for more information.
14305 \change_unchanged
14306
14307 \end_layout
14308
14309 \begin_layout Description
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 Requires 
14315 \end_layout
14316
14317 \end_inset
14318
14319  [
14320 \begin_inset Flex Code
14321 status collapsed
14322
14323 \begin_layout Plain Layout
14324 string
14325 \end_layout
14326
14327 \end_inset
14328
14329 ] Whether the style requires the feature 
14330 \begin_inset Flex Code
14331 status collapsed
14332
14333 \begin_layout Plain Layout
14334 string
14335 \end_layout
14336
14337 \end_inset
14338
14339 .
14340  See the description of 
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 Provides
14346 \end_layout
14347
14348 \end_inset
14349
14350  above (sec.
14351 \begin_inset space ~
14352 \end_inset
14353
14354
14355 \begin_inset CommandInset ref
14356 LatexCommand ref
14357 reference "sub:General-text-class"
14358
14359 \end_inset
14360
14361 ) for information on `features'.
14362 \end_layout
14363
14364 \begin_layout Description
14365
14366 \change_inserted -712698321 1353693371
14367 \begin_inset Flex Code
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371
14372 \change_inserted -712698321 1353693146
14373 ResetArgs
14374 \change_unchanged
14375
14376 \end_layout
14377
14378 \end_inset
14379
14380  [
14381 \begin_inset Flex Code
14382 status collapsed
14383
14384 \begin_layout Plain Layout
14385
14386 \change_inserted -712698321 1353693235
14387
14388 \emph on
14389 0
14390 \end_layout
14391
14392 \end_inset
14393
14394 ,
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399
14400 \change_inserted -712698321 1353693235
14401 1
14402 \end_layout
14403
14404 \end_inset
14405
14406 ] Resets the LaTeX arguments of this style (as defined via the 
14407 \begin_inset Flex Code
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411
14412 \change_inserted -712698321 1353693371
14413 Argument
14414 \change_unchanged
14415
14416 \end_layout
14417
14418 \end_inset
14419
14420  tag).
14421  This is useful if you have copied a style via 
14422 \begin_inset Flex Code
14423 status collapsed
14424
14425 \begin_layout Plain Layout
14426
14427 \change_inserted -712698321 1353693302
14428 CopyStyle
14429 \change_unchanged
14430
14431 \end_layout
14432
14433 \end_inset
14434
14435 , but you do not want to inherit its (required and optional) arguments.
14436 \change_unchanged
14437
14438 \end_layout
14439
14440 \begin_layout Description
14441
14442 \change_inserted -712698321 1354263074
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \change_inserted -712698321 1353866876
14449 RightDelim
14450 \end_layout
14451
14452 \end_inset
14453
14454  [
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \change_inserted -712698321 1353866873
14461 string
14462 \end_layout
14463
14464 \end_inset
14465
14466 ] A string that is put at the end of the layout content.
14467  A line break in the output can be indicated by 
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472
14473 \change_inserted -712698321 1354263069
14474 <br/>
14475 \change_unchanged
14476
14477 \end_layout
14478
14479 \end_inset
14480
14481 .
14482 \end_layout
14483
14484 \begin_layout Description
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 RightMargin
14490 \end_layout
14491
14492 \end_inset
14493
14494  [
14495 \begin_inset Flex Code
14496 status collapsed
14497
14498 \begin_layout Plain Layout
14499 string=""
14500 \end_layout
14501
14502 \end_inset
14503
14504 ] Similar to 
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 LeftMargin
14510 \end_layout
14511
14512 \end_inset
14513
14514 .
14515 \end_layout
14516
14517 \begin_layout Description
14518 \begin_inset Flex Code
14519 status collapsed
14520
14521 \begin_layout Plain Layout
14522 Spacing
14523 \end_layout
14524
14525 \end_inset
14526
14527  [
14528 \begin_inset Flex Code
14529 status collapsed
14530
14531 \begin_layout Plain Layout
14532
14533 \emph on
14534 single
14535 \end_layout
14536
14537 \end_inset
14538
14539
14540 \begin_inset Flex Code
14541 status collapsed
14542
14543 \begin_layout Plain Layout
14544 onehalf
14545 \end_layout
14546
14547 \end_inset
14548
14549
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 double
14555 \end_layout
14556
14557 \end_inset
14558
14559
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 other
14565 \begin_inset space ~
14566 \end_inset
14567
14568 <value>
14569 \end_layout
14570
14571 \end_inset
14572
14573 ] This defines what the default spacing should be in the style.
14574  The arguments 
14575 \begin_inset Flex Code
14576 status collapsed
14577
14578 \begin_layout Plain Layout
14579 single
14580 \end_layout
14581
14582 \end_inset
14583
14584
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 onehalf
14590 \end_layout
14591
14592 \end_inset
14593
14594  and 
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 double
14600 \end_layout
14601
14602 \end_inset
14603
14604  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14605  If you specify the argument 
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 other
14611 \end_layout
14612
14613 \end_inset
14614
14615 , then you must also provide a value argument which will be the actual multiplie
14616 r value.
14617  Note that, contrary to other parameters, 
14618 \begin_inset Flex Code
14619 status collapsed
14620
14621 \begin_layout Plain Layout
14622 Spacing
14623 \end_layout
14624
14625 \end_inset
14626
14627  implies the generation of specific LaTeX code, using the LaTeX package
14628  
14629 \family roman
14630
14631 \begin_inset Flex Code
14632 status collapsed
14633
14634 \begin_layout Plain Layout
14635 setspace
14636 \end_layout
14637
14638 \end_inset
14639
14640 .
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 Spellcheck
14649 \end_layout
14650
14651 \end_inset
14652
14653  [
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 0
14659 \end_layout
14660
14661 \end_inset
14662
14663 ,
14664 \begin_inset space \thinspace{}
14665 \end_inset
14666
14667
14668 \begin_inset Flex Code
14669 status collapsed
14670
14671 \begin_layout Plain Layout
14672
14673 \emph on
14674 1
14675 \end_layout
14676
14677 \end_inset
14678
14679 ] Allow spell-checking paragraphs of this style.
14680  Default is true.
14681 \end_layout
14682
14683 \begin_layout Description
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 TextFont
14689 \end_layout
14690
14691 \end_inset
14692
14693  The font used for the text body .
14694  See section 
14695 \begin_inset CommandInset ref
14696 LatexCommand ref
14697 reference "sub:Font-description"
14698
14699 \end_inset
14700
14701 .
14702 \end_layout
14703
14704 \begin_layout Description
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 TocLevel
14710 \end_layout
14711
14712 \end_inset
14713
14714
14715 \series medium
14716  [
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721
14722 \series medium
14723 int=3
14724 \end_layout
14725
14726 \end_inset
14727
14728 ]
14729 \series default
14730  The level of the style in the table of contents.
14731  This is used for automatic numbering of section headings.
14732 \end_layout
14733
14734 \begin_layout Description
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 TopSep
14740 \end_layout
14741
14742 \end_inset
14743
14744  [
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 float=0
14750 \end_layout
14751
14752 \end_inset
14753
14754 ] The vertical space with which the very first of a chain of paragraphs
14755  with this style is separated from the previous paragraph.
14756  If the previous paragraph has another style, the separations are not simply
14757  added, but the maximum is taken.
14758 \end_layout
14759
14760 \begin_layout Subsection
14761 \begin_inset CommandInset label
14762 LatexCommand label
14763 name "sub:I18n"
14764
14765 \end_inset
14766
14767 Internationalization of Paragraph Styles
14768 \end_layout
14769
14770 \begin_layout Standard
14771 LyX has long supported internationalization of layout information, but,
14772  until version 2.0, this applied only to the user interface and not to, say,
14773  PDF output.
14774  Thus, French authors were forced to resort to ugly hacks if they wanted
14775  `
14776 \lang french
14777 Théorème
14778 \lang english
14779  1' instead of `Theorem 1'.
14780  Thanks to Georg Baum, that is no longer the case.
14781 \end_layout
14782
14783 \begin_layout Standard
14784 If a 
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 Style
14790 \end_layout
14791
14792 \end_inset
14793
14794  defines text that is to appear in the typeset document, it may use 
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 LangPreamble
14800 \end_layout
14801
14802 \end_inset
14803
14804  and 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 BabelPreamble
14810 \end_layout
14811
14812 \end_inset
14813
14814  to support non-English and even multi-language documents correctly.
14815  The following excerpt (from the 
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 theorems-ams.inc
14821 \end_layout
14822
14823 \end_inset
14824
14825  file) shows how this works:
14826 \end_layout
14827
14828 \begin_layout LyX-Code
14829 Preamble
14830 \end_layout
14831
14832 \begin_deeper
14833 \begin_layout LyX-Code
14834   
14835 \backslash
14836 theoremstyle{remark}
14837 \end_layout
14838
14839 \begin_layout LyX-Code
14840   
14841 \backslash
14842 newtheorem{claim}[thm]{
14843 \backslash
14844 protect
14845 \backslash
14846 claimname}
14847 \end_layout
14848
14849 \begin_layout LyX-Code
14850 EndPreamble
14851 \end_layout
14852
14853 \begin_layout LyX-Code
14854 LangPreamble
14855 \end_layout
14856
14857 \begin_layout LyX-Code
14858   
14859 \backslash
14860 providecommand{
14861 \backslash
14862 claimname}{_(Claim)}
14863 \end_layout
14864
14865 \begin_layout LyX-Code
14866 EndLangPreamble
14867 \end_layout
14868
14869 \begin_layout LyX-Code
14870 BabelPreamble
14871 \end_layout
14872
14873 \begin_layout LyX-Code
14874     
14875 \backslash
14876 addto
14877 \backslash
14878 captions$$lang{
14879 \backslash
14880 renewcommand{
14881 \backslash
14882 claimname}{_(Claim)}}
14883 \end_layout
14884
14885 \begin_layout LyX-Code
14886 EndBabelPreamble
14887 \end_layout
14888
14889 \end_deeper
14890 \begin_layout Standard
14891 In principle, any legal LaTeX may appear in the 
14892 \begin_inset Flex Code
14893 status collapsed
14894
14895 \begin_layout Plain Layout
14896 LangPreamble
14897 \end_layout
14898
14899 \end_inset
14900
14901  and 
14902 \begin_inset Flex Code
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 BabelPreamble
14907 \end_layout
14908
14909 \end_inset
14910
14911  tags, but in practice they will typically look as they do here.
14912  The key to correct translation of the typeset text is the definition of
14913  the LaTeX command 
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918
14919 \backslash
14920 claimname
14921 \end_layout
14922
14923 \end_inset
14924
14925  and its use in 
14926 \begin_inset Flex Code
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930
14931 \backslash
14932 newtheorem
14933 \end_layout
14934
14935 \end_inset
14936
14937 .
14938  
14939 \end_layout
14940
14941 \begin_layout Standard
14942 The 
14943 \begin_inset Flex Code
14944 status collapsed
14945
14946 \begin_layout Plain Layout
14947 LangPreamble
14948 \end_layout
14949
14950 \end_inset
14951
14952  tag provides for internationalization based upon the overall language of
14953  the document.
14954  The contents of the tag will be included in the preamble, just as with
14955  the 
14956 \begin_inset Flex Code
14957 status collapsed
14958
14959 \begin_layout Plain Layout
14960 Preamble
14961 \end_layout
14962
14963 \end_inset
14964
14965  tag.
14966  What makes it special is the use of the 
14967 \begin_inset Quotes eld
14968 \end_inset
14969
14970 function
14971 \begin_inset Quotes erd
14972 \end_inset
14973
14974  
14975 \begin_inset Flex Code
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 _()
14980 \end_layout
14981
14982 \end_inset
14983
14984 , which will be replaced, when LyX produces LaTeX output, with the translation
14985  of its argument into the document language.
14986 \end_layout
14987
14988 \begin_layout Standard
14989 The 
14990 \begin_inset Flex Code
14991 status collapsed
14992
14993 \begin_layout Plain Layout
14994 BabelPreamble
14995 \end_layout
14996
14997 \end_inset
14998
14999  tag is more complex, since it is meant to provide support for multi-language
15000  documents and so offers an interface to the 
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 babel
15006 \end_layout
15007
15008 \end_inset
15009
15010  package.
15011  Its contents will be added to the preamble once for each language that
15012  appears in the document.
15013  In this case, the argument to 
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 _()
15019 \end_layout
15020
15021 \end_inset
15022
15023  will be replaced with its translation into the language in question; the
15024  expression 
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 $$lang
15030 \end_layout
15031
15032 \end_inset
15033
15034  is replaced by the language name (as used by the babel package).
15035 \end_layout
15036
15037 \begin_layout Standard
15038 A German document that also included a French section would thus have the
15039  following in the preamble:
15040 \end_layout
15041
15042 \begin_layout LyX-Code
15043
15044 \backslash
15045 addto
15046 \backslash
15047 captionsfrench{
15048 \backslash
15049 renewcommand{
15050 \backslash
15051 claimname}{Affirmation}}
15052 \begin_inset Newline newline
15053 \end_inset
15054
15055
15056 \backslash
15057 addto
15058 \backslash
15059 captionsngerman{
15060 \backslash
15061 renewcommand{
15062 \backslash
15063 claimname}{Behauptung}}
15064 \begin_inset Newline newline
15065 \end_inset
15066
15067
15068 \backslash
15069 providecommand{
15070 \backslash
15071 claimname}{Behauptung}
15072 \end_layout
15073
15074 \begin_layout Standard
15075 LaTeX and 
15076 \begin_inset Flex Code
15077 status collapsed
15078
15079 \begin_layout Plain Layout
15080 babel
15081 \end_layout
15082
15083 \end_inset
15084
15085  will then conspire to produce the correct text in the output.
15086 \end_layout
15087
15088 \begin_layout Standard
15089 One important point to note here is that the translations are provided by
15090  LyX itself, through the 
15091 \change_inserted -195340706 1334775793
15092 file 
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097
15098 \change_inserted -195340706 1334775793
15099 layouttranslations
15100 \end_layout
15101
15102 \end_inset
15103
15104
15105 \change_deleted -195340706 1334775793
15106 same mechanism it uses for internationalization of the user interface
15107 \change_unchanged
15108 .
15109  This means, in effect, that 
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 LangPreamble
15115 \end_layout
15116
15117 \end_inset
15118
15119  and 
15120 \begin_inset Flex Code
15121 status collapsed
15122
15123 \begin_layout Plain Layout
15124 BabelPreamble
15125 \end_layout
15126
15127 \end_inset
15128
15129  are really only of use in layout files that are provided with LyX, since
15130  text entered in user-created layout files will not be seen by LyX's internation
15131 alization routines
15132 \change_inserted -195340706 1334775793
15133  unless the 
15134 \begin_inset Flex Code
15135 status collapsed
15136
15137 \begin_layout Plain Layout
15138
15139 \change_inserted -195340706 1334775793
15140 layouttranslations
15141 \end_layout
15142
15143 \end_inset
15144
15145  file is modified accordingly
15146 \change_unchanged
15147 .
15148  That said, however, any layout created with the intention that it will
15149  be included with LyX should use these tags where appropriate.
15150
15151 \change_inserted -195340706 1334775793
15152  Please note that the paragraph style translations provided by LyX will
15153  never change with a minor update (e.g.
15154  from version 2.1.x to 2.1.y).
15155  It is however quite likely that a major update (e.g.
15156  from 2.0.x to 2.1.y) will introduce new translations or corrections.
15157 \change_unchanged
15158
15159 \end_layout
15160
15161 \begin_layout Subsection
15162 Floats
15163 \begin_inset CommandInset label
15164 LatexCommand label
15165 name "sub:Floats"
15166
15167 \end_inset
15168
15169
15170 \end_layout
15171
15172 \begin_layout Standard
15173 It is necessary to define the floats (
15174 \begin_inset Flex MenuItem
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 figure
15179 \end_layout
15180
15181 \end_inset
15182
15183
15184 \begin_inset Flex MenuItem
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 table
15189 \end_layout
15190
15191 \end_inset
15192
15193 , \SpecialChar \ldots{}
15194 ) in the text class itself.
15195  Standard floats are included in the file 
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200 stdfloats.inc
15201 \end_layout
15202
15203 \end_inset
15204
15205 , so you may have to do no more than add
15206 \end_layout
15207
15208 \begin_layout LyX-Code
15209 Input stdfloats.inc
15210 \end_layout
15211
15212 \begin_layout Standard
15213 to your layout file.
15214  If you want to implement a text class that proposes some other float types
15215  (like the AGU class bundled with LyX), the information below will hopefully
15216  help you:
15217 \end_layout
15218
15219 \begin_layout Description
15220 \begin_inset Flex Code
15221 status collapsed
15222
15223 \begin_layout Plain Layout
15224 Extension
15225 \end_layout
15226
15227 \end_inset
15228
15229  [
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 string
15235 \end_layout
15236
15237 \end_inset
15238
15239 =
15240 \begin_inset Quotes erd
15241 \end_inset
15242
15243
15244 \begin_inset Quotes erd
15245 \end_inset
15246
15247 ] The file name extension of an auxiliary file for the list of figures (or
15248  whatever).
15249  LaTeX writes the captions to this file.
15250 \end_layout
15251
15252 \begin_layout Description
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 GuiName
15258 \end_layout
15259
15260 \end_inset
15261
15262  [
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 string
15268 \end_layout
15269
15270 \end_inset
15271
15272 =
15273 \begin_inset Quotes erd
15274 \end_inset
15275
15276
15277 \begin_inset Quotes erd
15278 \end_inset
15279
15280 ] The string that will be used in the menus and also for the caption.
15281  This is translated to the current language if babel is used.
15282 \end_layout
15283
15284 \begin_layout Description
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 HTML*
15290 \end_layout
15291
15292 \end_inset
15293
15294  These tags control the XHTML output.
15295  See section
15296 \begin_inset space ~
15297 \end_inset
15298
15299
15300 \begin_inset CommandInset ref
15301 LatexCommand ref
15302 reference "sec:Tags-for-XHTML"
15303
15304 \end_inset
15305
15306 .
15307 \end_layout
15308
15309 \begin_layout Description
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 IsPredefined
15315 \end_layout
15316
15317 \end_inset
15318
15319  [
15320 \emph on
15321
15322 \begin_inset Flex Code
15323 status collapsed
15324
15325 \begin_layout Plain Layout
15326 0
15327 \end_layout
15328
15329 \end_inset
15330
15331
15332 \emph default
15333 ,
15334 \begin_inset space \thinspace{}
15335 \end_inset
15336
15337
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 1
15343 \end_layout
15344
15345 \end_inset
15346
15347 ] Indicates whether the float is already defined in the document class or
15348  if instead the LaTeX package 
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 float
15354 \end_layout
15355
15356 \end_inset
15357
15358  needs to be loaded to define it on-the-fly.
15359  The default is 
15360 \begin_inset Flex Code
15361 status collapsed
15362
15363 \begin_layout Plain Layout
15364 0
15365 \end_layout
15366
15367 \end_inset
15368
15369 , which means: 
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374 float
15375 \end_layout
15376
15377 \end_inset
15378
15379  is used.
15380  It should be set to 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 1
15386 \end_layout
15387
15388 \end_inset
15389
15390  if the float is already defined by the LaTeX document class.
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 ListCommand
15399 \end_layout
15400
15401 \end_inset
15402
15403  [
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 string
15409 \end_layout
15410
15411 \end_inset
15412
15413 =
15414 \begin_inset Quotes erd
15415 \end_inset
15416
15417
15418 \begin_inset Quotes erd
15419 \end_inset
15420
15421 ] The command used to generate a list of floats of this type; the leading
15422  `
15423 \backslash
15424 ' must be omitted.
15425  This 
15426 \emph on
15427 must
15428 \emph default
15429  be given if 
15430 \begin_inset Flex Code
15431 status collapsed
15432
15433 \begin_layout Plain Layout
15434 UsesFloatPkg
15435 \end_layout
15436
15437 \end_inset
15438
15439  is false, since there is no standard way to generate this command.
15440  It is ignored if 
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 UsesFloatPkg
15446 \end_layout
15447
15448 \end_inset
15449
15450  is true, since in that case there is a standard way to define the command.
15451 \end_layout
15452
15453 \begin_layout Description
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 ListName
15459 \end_layout
15460
15461 \end_inset
15462
15463  [
15464 \begin_inset Flex Code
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468 string
15469 \end_layout
15470
15471 \end_inset
15472
15473 =
15474 \begin_inset Quotes erd
15475 \end_inset
15476
15477
15478 \begin_inset Quotes erd
15479 \end_inset
15480
15481 ] A title for a list of floats of this kind (list of figures, tables, or
15482  whatever).
15483  It is used for the screen label within LyX, it is used by LaTeX for the
15484  title and it is used as the title in the XHTML output.
15485  It will be translated to the document language.
15486 \end_layout
15487
15488 \begin_layout Description
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 NumberWithin
15494 \end_layout
15495
15496 \end_inset
15497
15498  [
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 string
15504 \end_layout
15505
15506 \end_inset
15507
15508 =
15509 \begin_inset Quotes erd
15510 \end_inset
15511
15512
15513 \begin_inset Quotes erd
15514 \end_inset
15515
15516 ] This (optional) argument determines whether floats of this class will
15517  be numbered within some sectional unit of the document.
15518  For example, if 
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 NumberWithin
15524 \end_layout
15525
15526 \end_inset
15527
15528  is set to 
15529 \begin_inset Quotes eld
15530 \end_inset
15531
15532
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537 chapter
15538 \end_layout
15539
15540 \end_inset
15541
15542
15543 \begin_inset Quotes erd
15544 \end_inset
15545
15546 , the floats will be numbered within chapters.
15547  
15548 \end_layout
15549
15550 \begin_layout Description
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 Placement
15556 \end_layout
15557
15558 \end_inset
15559
15560  [
15561 \begin_inset Flex Code
15562 status collapsed
15563
15564 \begin_layout Plain Layout
15565 string
15566 \end_layout
15567
15568 \end_inset
15569
15570 =
15571 \begin_inset Quotes erd
15572 \end_inset
15573
15574
15575 \begin_inset Quotes erd
15576 \end_inset
15577
15578 ] The default placement for the given class of floats.
15579  The string should be as in standard LaTeX: 
15580 \begin_inset Flex Code
15581 status collapsed
15582
15583 \begin_layout Plain Layout
15584 t
15585 \end_layout
15586
15587 \end_inset
15588
15589
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 b
15595 \end_layout
15596
15597 \end_inset
15598
15599
15600 \begin_inset Flex Code
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604 p
15605 \end_layout
15606
15607 \end_inset
15608
15609  and 
15610 \begin_inset Flex Code
15611 status collapsed
15612
15613 \begin_layout Plain Layout
15614 h
15615 \end_layout
15616
15617 \end_inset
15618
15619  for top, bottom, page, and here, respectively.
15620 \begin_inset Foot
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 Note that the order of these letters in the string is irrelevant, like in
15625  LaTeX.
15626 \end_layout
15627
15628 \end_inset
15629
15630  On top of that there is a new type, 
15631 \begin_inset Flex Code
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635 H
15636 \end_layout
15637
15638 \end_inset
15639
15640 , which does not really correspond to a float, since it means: put it 
15641 \begin_inset Quotes eld
15642 \end_inset
15643
15644 here
15645 \begin_inset Quotes erd
15646 \end_inset
15647
15648  and nowhere else.
15649  Note however that the 
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 H
15655 \end_layout
15656
15657 \end_inset
15658
15659  specifier is special and, because of implementation details, cannot be
15660  used in non-built in float types.
15661  If you do not understand what this means, just use 
15662 \begin_inset Quotes eld
15663 \end_inset
15664
15665
15666 \begin_inset Flex Code
15667 status collapsed
15668
15669 \begin_layout Plain Layout
15670 tbp
15671 \end_layout
15672
15673 \end_inset
15674
15675
15676 \begin_inset Quotes erd
15677 \end_inset
15678
15679 .
15680 \end_layout
15681
15682 \begin_layout Description
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  [
15693 \begin_inset Flex Code
15694 status collapsed
15695
15696 \begin_layout Plain Layout
15697 string
15698 \end_layout
15699
15700 \end_inset
15701
15702 ] The prefix to use when creating labels referring to floats of this type.
15703  This allows the use of formatted references.
15704  Note that you can remove any 
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709 RefPrefix
15710 \end_layout
15711
15712 \end_inset
15713
15714  set by a copied style by using the special value 
15715 \begin_inset Quotes eld
15716 \end_inset
15717
15718 OFF
15719 \begin_inset Quotes erd
15720 \end_inset
15721
15722 , which must be all caps.
15723 \end_layout
15724
15725 \begin_layout Description
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 Style
15731 \end_layout
15732
15733 \end_inset
15734
15735  [
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 string
15741 \end_layout
15742
15743 \end_inset
15744
15745 =
15746 \begin_inset Quotes erd
15747 \end_inset
15748
15749
15750 \begin_inset Quotes erd
15751 \end_inset
15752
15753 ] The style used when defining the float using 
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758
15759 \backslash
15760 newfloat
15761 \end_layout
15762
15763 \end_inset
15764
15765 .
15766 \end_layout
15767
15768 \begin_layout Description
15769 \begin_inset Flex Code
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 Type
15774 \end_layout
15775
15776 \end_inset
15777
15778  [
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 string
15784 \end_layout
15785
15786 \end_inset
15787
15788 =
15789 \begin_inset Quotes erd
15790 \end_inset
15791
15792
15793 \begin_inset Quotes erd
15794 \end_inset
15795
15796 ] The 
15797 \begin_inset Quotes eld
15798 \end_inset
15799
15800 type
15801 \begin_inset Quotes erd
15802 \end_inset
15803
15804  of the new class of floats, like program or algorithm.
15805  After the appropriate 
15806 \begin_inset Flex Code
15807 status collapsed
15808
15809 \begin_layout Plain Layout
15810
15811 \backslash
15812 newfloat
15813 \end_layout
15814
15815 \end_inset
15816
15817 , commands such as 
15818 \begin_inset Flex Code
15819 status collapsed
15820
15821 \begin_layout Plain Layout
15822
15823 \backslash
15824 begin{program}
15825 \end_layout
15826
15827 \end_inset
15828
15829  or 
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834
15835 \backslash
15836 end{algorithm*}
15837 \end_layout
15838
15839 \end_inset
15840
15841  will be available.
15842 \end_layout
15843
15844 \begin_layout Description
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849 UsesFloatPkg
15850 \end_layout
15851
15852 \end_inset
15853
15854  [
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859 0
15860 \end_layout
15861
15862 \end_inset
15863
15864 ,
15865 \begin_inset space \thinspace{}
15866 \end_inset
15867
15868
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873
15874 \emph on
15875 1
15876 \end_layout
15877
15878 \end_inset
15879
15880 ] Specifies whether this float is defined using the LaTeX package 
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 float
15886 \end_layout
15887
15888 \end_inset
15889
15890 , either by the class file, another package or on-the-fly by LyX itself.
15891 \end_layout
15892
15893 \begin_layout Standard
15894 Note that defining a float with type 
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899
15900 \emph on
15901 type
15902 \end_layout
15903
15904 \end_inset
15905
15906  automatically defines the corresponding counter with name 
15907 \begin_inset Flex Code
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911
15912 \emph on
15913 type
15914 \end_layout
15915
15916 \end_inset
15917
15918 .
15919 \end_layout
15920
15921 \begin_layout Subsection
15922 Flex insets and InsetLayout
15923 \begin_inset CommandInset label
15924 LatexCommand label
15925 name "sub:Flex-insets-and"
15926
15927 \end_inset
15928
15929
15930 \end_layout
15931
15932 \begin_layout Standard
15933 Flex insets come in three different kinds: 
15934 \end_layout
15935
15936 \begin_layout Itemize
15937 character style (
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 CharStyle
15943 \end_layout
15944
15945 \end_inset
15946
15947 ): These define semantic markup corresponding to such LaTeX commands as
15948  
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953
15954 \backslash
15955 noun
15956 \end_layout
15957
15958 \end_inset
15959
15960  and 
15961 \begin_inset Flex Code
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965
15966 \backslash
15967 code
15968 \end_layout
15969
15970 \end_inset
15971
15972 .
15973 \end_layout
15974
15975 \begin_layout Itemize
15976 user custom (
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 Custom
15982 \end_layout
15983
15984 \end_inset
15985
15986 ): These can be used to define custom collapsible insets, similar to TeX
15987  code, footnote, and the like.
15988  An obvious example is an endnote inset, which is defined in the 
15989 \begin_inset Flex Code
15990 status collapsed
15991
15992 \begin_layout Plain Layout
15993 endnote
15994 \end_layout
15995
15996 \end_inset
15997
15998  module.
15999 \end_layout
16000
16001 \begin_layout Itemize
16002 XML elements (
16003 \begin_inset Flex Code
16004 status collapsed
16005
16006 \begin_layout Plain Layout
16007 Element
16008 \end_layout
16009
16010 \end_inset
16011
16012 ): For use with DocBook classes.
16013 \end_layout
16014
16015 \begin_layout Standard
16016 Flex insets are defined using the 
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 InsetLayout
16022 \end_layout
16023
16024 \end_inset
16025
16026  tag, which shall be explained in a moment.
16027 \end_layout
16028
16029 \begin_layout Standard
16030 The 
16031 \begin_inset Flex Code
16032 status collapsed
16033
16034 \begin_layout Plain Layout
16035 InsetLayout
16036 \end_layout
16037
16038 \end_inset
16039
16040  tag also serves another function: It can be used to customize the general
16041  layout of many different types of insets.
16042  Currently, 
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  can be used to customize the layout parameters for footnotes, marginal
16053  notes, note insets, TeX code (ERT) insets, branches, listings, indexes,
16054  boxes, tables, algorithms, URLs, and 
16055 \change_deleted -712698321 1356964515
16056 optional argument
16057 \change_inserted -712698321 1356964516
16058 caption
16059 \change_unchanged
16060 s, as well as to define Flex insets.
16061 \end_layout
16062
16063 \begin_layout Standard
16064 The 
16065 \begin_inset Flex Code
16066 status collapsed
16067
16068 \begin_layout Plain Layout
16069 InsetLayout
16070 \end_layout
16071
16072 \end_inset
16073
16074  definition must begin with a line of the form:
16075 \end_layout
16076
16077 \begin_layout LyX-Code
16078 InsetLayout <type>
16079 \end_layout
16080
16081 \begin_layout Standard
16082 Here 
16083 \begin_inset Flex Code
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087 <Type>
16088 \end_layout
16089
16090 \end_inset
16091
16092  indicates the inset whose layout is being defined, and here there are 
16093 \change_deleted -712698321 1356964888
16094 three
16095 \change_inserted -712698321 1356964888
16096 four
16097 \change_deleted 5863208 1334489267
16098 two
16099 \change_unchanged
16100  cases.
16101 \end_layout
16102
16103 \begin_layout Enumerate
16104 The layout for a pre-existing inset is being modified.
16105  In this case, can be 
16106 \begin_inset Flex Code
16107 status collapsed
16108
16109 \begin_layout Plain Layout
16110 <Type>
16111 \end_layout
16112
16113 \end_inset
16114
16115  any one of the following: 
16116 \begin_inset Flex Code
16117 status collapsed
16118
16119 \begin_layout Plain Layout
16120 Algorithm
16121 \end_layout
16122
16123 \end_inset
16124
16125
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 Branch
16131 \end_layout
16132
16133 \end_inset
16134
16135
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 Box
16141 \end_layout
16142
16143 \end_inset
16144
16145
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 Box:shaded
16151 \end_layout
16152
16153 \end_inset
16154
16155
16156 \change_inserted -712698321 1356964563
16157
16158 \begin_inset Flex Code
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162
16163 \change_inserted -712698321 1356964560
16164 Caption:Standard
16165 \change_unchanged
16166
16167 \end_layout
16168
16169 \end_inset
16170
16171
16172 \change_unchanged
16173
16174 \begin_inset Flex Code
16175 status collapsed
16176
16177 \begin_layout Plain Layout
16178 ERT
16179 \end_layout
16180
16181 \end_inset
16182
16183
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 Figure
16189 \end_layout
16190
16191 \end_inset
16192
16193
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 Foot
16199 \end_layout
16200
16201 \end_inset
16202
16203
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 Index
16209 \end_layout
16210
16211 \end_inset
16212
16213
16214 \begin_inset Flex Code
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218 Info
16219 \end_layout
16220
16221 \end_inset
16222
16223
16224 \begin_inset Flex Code
16225 status collapsed
16226
16227 \begin_layout Plain Layout
16228 Info:menu
16229 \end_layout
16230
16231 \end_inset
16232
16233
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 Info:shortcut
16239 \end_layout
16240
16241 \end_inset
16242
16243
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 Info:shortcuts
16249 \end_layout
16250
16251 \end_inset
16252
16253
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 Listings
16259 \end_layout
16260
16261 \end_inset
16262
16263
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 Marginal
16269 \end_layout
16270
16271 \end_inset
16272
16273
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 Note:Comment
16279 \end_layout
16280
16281 \end_inset
16282
16283
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 Note:Note
16289 \end_layout
16290
16291 \end_inset
16292
16293
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 Note:Greyedout
16299 \end_layout
16300
16301 \end_inset
16302
16303
16304 \change_deleted -712698321 1356964592
16305
16306 \begin_inset Flex Code
16307 status collapsed
16308
16309 \begin_layout Plain Layout
16310
16311 \change_deleted -712698321 1353866704
16312 Opt
16313 \change_unchanged
16314 Arg
16315 \change_inserted -712698321 1353866707
16316 ument
16317 \change_unchanged
16318
16319 \end_layout
16320
16321 \end_inset
16322
16323
16324 \change_unchanged
16325
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 Table
16331 \end_layout
16332
16333 \end_inset
16334
16335 , or 
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 URL
16341 \end_layout
16342
16343 \end_inset
16344
16345 .
16346 \end_layout
16347
16348 \begin_layout Enumerate
16349 The layout for a Flex inset is being defined.
16350  In this case, 
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 <Type>
16356 \end_layout
16357
16358 \end_inset
16359
16360  must be of the form 
16361 \begin_inset Quotes eld
16362 \end_inset
16363
16364
16365 \begin_inset Flex Code
16366 status collapsed
16367
16368 \begin_layout Plain Layout
16369 Flex:<name>
16370 \end_layout
16371
16372 \end_inset
16373
16374
16375 \begin_inset Quotes erd
16376 \end_inset
16377
16378 , where 
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383 name
16384 \end_layout
16385
16386 \end_inset
16387
16388  may be be any valid identifier not used by a pre-existing Flex inset.
16389  The identifier may include spaces, but in that case the whole thing must
16390  be wrapped in quotes.
16391  Note that the definition of a flex inset 
16392 \emph on
16393 must 
16394 \emph default
16395 also include a 
16396 \begin_inset Flex Code
16397 status collapsed
16398
16399 \begin_layout Plain Layout
16400 LyXType
16401 \end_layout
16402
16403 \end_inset
16404
16405  entry, declaring which type of inset it defines.
16406 \change_inserted 5863208 1334489312
16407
16408 \end_layout
16409
16410 \begin_layout Enumerate
16411
16412 \change_inserted 5863208 1334492248
16413 The layout for user specific branch is being defined.
16414  In this case, 
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419
16420 \change_inserted 5863208 1334489384
16421 <Type>
16422 \end_layout
16423
16424 \end_inset
16425
16426  must be of the form 
16427 \begin_inset Quotes eld
16428 \end_inset
16429
16430
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435
16436 \change_inserted 5863208 1334489392
16437 Branch:<name>
16438 \end_layout
16439
16440 \end_inset
16441
16442
16443 \begin_inset Quotes erd
16444 \end_inset
16445
16446 , where 
16447 \begin_inset Flex Code
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451
16452 \change_inserted 5863208 1334489384
16453 name
16454 \end_layout
16455
16456 \end_inset
16457
16458  may be be any valid identifier of branch defined in user's document.
16459  The identifier may include spaces, but in that case the whole thing must
16460  be wrapped in quotes.
16461  The main purpose of this feature is to allow LaTeX wrapping around specific
16462  branches as user needs.
16463 \change_inserted -712698321 1356964893
16464
16465 \end_layout
16466
16467 \begin_layout Enumerate
16468
16469 \change_inserted -712698321 1356965125
16470 The layout of a user (or class) specific caption is being defined.
16471  In this case, 
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476
16477 \change_inserted -712698321 1356964939
16478 <Type>
16479 \end_layout
16480
16481 \end_inset
16482
16483  must be of the form 
16484 \begin_inset Quotes eld
16485 \end_inset
16486
16487
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492
16493 \change_inserted -712698321 1356964943
16494 Caption:<name>
16495 \end_layout
16496
16497 \end_inset
16498
16499
16500 \begin_inset Quotes erd
16501 \end_inset
16502
16503 , where 
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508
16509 \change_inserted -712698321 1356964939
16510 name
16511 \end_layout
16512
16513 \end_inset
16514
16515  specifies the name of the caption as it appears in the menu.
16516  Have a look at the standard caption (
16517 \begin_inset Flex Code
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521
16522 \change_inserted -712698321 1356964987
16523 Caption:Standard
16524 \end_layout
16525
16526 \end_inset
16527
16528 ), the specific captions of the KOMA-Script classes (
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533
16534 \change_inserted -712698321 1356965018
16535 Caption:Above
16536 \end_layout
16537
16538 \end_inset
16539
16540
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545
16546 \change_inserted -712698321 1356965021
16547 Caption:Below
16548 \end_layout
16549
16550 \end_inset
16551
16552 ) or the 
16553 \emph on
16554 biling
16555 \emph default
16556  module (
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561
16562 \change_inserted -712698321 1356965045
16563 Caption:Bicaption
16564 \end_layout
16565
16566 \end_inset
16567
16568 ) for applications.
16569 \change_unchanged
16570
16571 \end_layout
16572
16573 \begin_layout Standard
16574 The 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 InsetLayout
16580 \end_layout
16581
16582 \end_inset
16583
16584  definition can contain the following entries:
16585 \end_layout
16586
16587 \begin_layout Description
16588
16589 \change_inserted -712698321 1353681390
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594
16595 \change_inserted -712698321 1353681344
16596 Argument
16597 \end_layout
16598
16599 \end_inset
16600
16601  [
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606
16607 \change_inserted -712698321 1353681344
16608 int
16609 \end_layout
16610
16611 \end_inset
16612
16613 ] Defines argument number <int> of a command\SpecialChar \slash{}
16614 environment associated with
16615  the current layout.
16616  The definition must end with 
16617 \begin_inset Flex Code
16618 status collapsed
16619
16620 \begin_layout Plain Layout
16621
16622 \change_inserted -712698321 1353681344
16623 EndArgument
16624 \end_layout
16625
16626 \end_inset
16627
16628 .
16629  See section
16630 \begin_inset space ~
16631 \end_inset
16632
16633
16634 \begin_inset CommandInset ref
16635 LatexCommand ref
16636 reference "sub:Paragraph-Styles"
16637
16638 \end_inset
16639
16640  for details.
16641 \end_layout
16642
16643 \begin_layout Description
16644
16645 \change_inserted -195340706 1333913893
16646 \begin_inset Flex Code
16647 status collapsed
16648
16649 \begin_layout Plain Layout
16650 BabelPreamble
16651 \end_layout
16652
16653 \end_inset
16654
16655  Preamble for changing languages.
16656  See section
16657 \begin_inset space ~
16658 \end_inset
16659
16660
16661 \begin_inset CommandInset ref
16662 LatexCommand ref
16663 reference "sub:I18n"
16664
16665 \end_inset
16666
16667 .
16668 \end_layout
16669
16670 \begin_layout Description
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 BgColor
16676 \end_layout
16677
16678 \end_inset
16679
16680  [
16681 \begin_inset Flex Code
16682 status collapsed
16683
16684 \begin_layout Plain Layout
16685 <name>
16686 \end_layout
16687
16688 \end_inset
16689
16690 ] The color for the inset's background.
16691  See chapter
16692 \begin_inset space ~
16693 \end_inset
16694
16695
16696 \begin_inset CommandInset ref
16697 LatexCommand ref
16698 reference "chap:Names-of-colors"
16699
16700 \end_inset
16701
16702  for a list of the available color names.
16703 \end_layout
16704
16705 \begin_layout Description
16706 \begin_inset Flex Code
16707 status collapsed
16708
16709 \begin_layout Plain Layout
16710 ContentAsLabel
16711 \end_layout
16712
16713 \end_inset
16714
16715  [
16716 \begin_inset Flex Code
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720
16721 \emph on
16722 0
16723 \end_layout
16724
16725 \end_inset
16726
16727 ,
16728 \begin_inset space \thinspace{}
16729 \end_inset
16730
16731
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 1
16737 \end_layout
16738
16739 \end_inset
16740
16741 ] Whether to use the content of the inset as the label, when the inset is
16742  closed.
16743  Default is false.
16744 \end_layout
16745
16746 \begin_layout Description
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 CopyStyle
16752 \end_layout
16753
16754 \end_inset
16755
16756  [
16757 \begin_inset Flex Code
16758 status collapsed
16759
16760 \begin_layout Plain Layout
16761 <type>
16762 \end_layout
16763
16764 \end_inset
16765
16766 ] As with paragraph styles, see sec.
16767 \begin_inset space ~
16768 \end_inset
16769
16770
16771 \begin_inset CommandInset ref
16772 LatexCommand ref
16773 reference "sub:Paragraph-Styles"
16774
16775 \end_inset
16776
16777 .
16778  Note that you need to specify the complete type, e.
16779 \begin_inset space \thinspace{}
16780 \end_inset
16781
16782 g.
16783 \begin_inset space ~
16784 \end_inset
16785
16786
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791 CopyStyle Flex:<name>
16792 \end_layout
16793
16794 \end_inset
16795
16796 .
16797 \end_layout
16798
16799 \begin_layout Description
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 CustomPars
16805 \end_layout
16806
16807 \end_inset
16808
16809  [
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814
16815 \emph on
16816 0
16817 \end_layout
16818
16819 \end_inset
16820
16821 ,
16822 \begin_inset space \thinspace{}
16823 \end_inset
16824
16825
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 1
16831 \end_layout
16832
16833 \end_inset
16834
16835 ] Indicates whether the user may employ the Paragraph Settings dialog to
16836  customize the paragraph.
16837 \end_layout
16838
16839 \begin_layout Description
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 Decoration
16845 \end_layout
16846
16847 \end_inset
16848
16849  can be 
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 Classic
16855 \end_layout
16856
16857 \end_inset
16858
16859
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 Minimalistic
16865 \end_layout
16866
16867 \end_inset
16868
16869 , or 
16870 \begin_inset Flex Code
16871 status collapsed
16872
16873 \begin_layout Plain Layout
16874 Conglomerate
16875 \end_layout
16876
16877 \end_inset
16878
16879 , describing the rendering style used for the inset's frame and buttons.
16880  Footnotes generally use 
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 Classic
16886 \end_layout
16887
16888 \end_inset
16889
16890 , ERT insets generally 
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 Minimalistic
16896 \end_layout
16897
16898 \end_inset
16899
16900 , and character styles 
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 Conglomerate
16906 \end_layout
16907
16908 \end_inset
16909
16910 .
16911 \end_layout
16912
16913 \begin_layout Description
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 Display
16919 \end_layout
16920
16921 \end_inset
16922
16923  [
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 0
16929 \end_layout
16930
16931 \end_inset
16932
16933 ,
16934 \emph on
16935
16936 \begin_inset space \thinspace{}
16937 \end_inset
16938
16939
16940 \emph default
16941
16942 \begin_inset Flex Code
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946
16947 \emph on
16948 1
16949 \end_layout
16950
16951 \end_inset
16952
16953 ] Only useful if 
16954 \begin_inset Flex Code
16955 status collapsed
16956
16957 \begin_layout Plain Layout
16958 LatexType
16959 \end_layout
16960
16961 \end_inset
16962
16963  is 
16964 \begin_inset Flex Code
16965 status collapsed
16966
16967 \begin_layout Plain Layout
16968 Environment
16969 \end_layout
16970
16971 \end_inset
16972
16973 .
16974  Indicates whether the environment will stand on its own in the output or
16975  will appear inline with the surrounding text.
16976  If set to false, it is supposed that the LaTeX environment ignores white
16977  space (including one newline character) after the 
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982
16983 \backslash
16984 begin{
16985 \emph on
16986 LatexName
16987 \emph default
16988 }
16989 \end_layout
16990
16991 \end_inset
16992
16993  and 
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998
16999 \backslash
17000 end{
17001 \emph on
17002 LatexName
17003 \emph default
17004 }
17005 \end_layout
17006
17007 \end_inset
17008
17009  tags.
17010  Default is true.
17011 \end_layout
17012
17013 \begin_layout Description
17014 \begin_inset Flex Code
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 End
17019 \end_layout
17020
17021 \end_inset
17022
17023  Required at the end of the 
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 InsetLayout
17029 \end_layout
17030
17031 \end_inset
17032
17033  declarations.
17034 \end_layout
17035
17036 \begin_layout Description
17037 \begin_inset Flex Code
17038 status collapsed
17039
17040 \begin_layout Plain Layout
17041 Font
17042 \end_layout
17043
17044 \end_inset
17045
17046  The font used for both the text body 
17047 \emph on
17048 and
17049 \emph default
17050  the label.
17051  See section
17052 \begin_inset space ~
17053 \end_inset
17054
17055
17056 \begin_inset CommandInset ref
17057 LatexCommand ref
17058 reference "sub:Font-description"
17059
17060 \end_inset
17061
17062 .
17063  Note that defining this font automatically defines the 
17064 \begin_inset Flex Code
17065 status collapsed
17066
17067 \begin_layout Plain Layout
17068 LabelFont
17069 \end_layout
17070
17071 \end_inset
17072
17073  to the same value, so define this first and define 
17074 \begin_inset Flex Code
17075 status collapsed
17076
17077 \begin_layout Plain Layout
17078 LabelFont
17079 \end_layout
17080
17081 \end_inset
17082
17083  later if you want them to be different.
17084 \change_inserted 155139281 1354130923
17085
17086 \end_layout
17087
17088 \begin_layout Description
17089
17090 \change_inserted 155139281 1354130923
17091 \begin_inset Flex Code
17092 status collapsed
17093
17094 \begin_layout Plain Layout
17095
17096 \change_inserted 155139281 1354130923
17097 ForceLocalFontSwitch
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107
17108 \change_inserted 155139281 1354130923
17109
17110 \emph on
17111 0
17112 \end_layout
17113
17114 \end_inset
17115
17116 ,
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121
17122 \change_inserted 155139281 1354130923
17123 1
17124 \end_layout
17125
17126 \end_inset
17127
17128 ] When using babel, always use a local font switch (
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133
17134 \change_inserted 155139281 1354130923
17135
17136 \backslash
17137 foreignlanguage
17138 \end_layout
17139
17140 \end_inset
17141
17142 ), never a global one (such as 
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147
17148 \change_inserted 155139281 1354130923
17149
17150 \backslash
17151 selectlanguage
17152 \end_layout
17153
17154 \end_inset
17155
17156 ).
17157 \change_unchanged
17158
17159 \end_layout
17160
17161 \begin_layout Description
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166 ForceLTR
17167 \end_layout
17168
17169 \end_inset
17170
17171  [
17172 \begin_inset Flex Code
17173 status collapsed
17174
17175 \begin_layout Plain Layout
17176
17177 \emph on
17178 0
17179 \end_layout
17180
17181 \end_inset
17182
17183 ,
17184 \begin_inset space \thinspace{}
17185 \end_inset
17186
17187
17188 \begin_inset Flex Code
17189 status collapsed
17190
17191 \begin_layout Plain Layout
17192 1
17193 \end_layout
17194
17195 \end_inset
17196
17197 ] Force the 
17198 \begin_inset Quotes eld
17199 \end_inset
17200
17201 latex
17202 \begin_inset Quotes erd
17203 \end_inset
17204
17205  language, leading to Left-to-Right (Latin) output, e.
17206 \begin_inset space \thinspace{}
17207 \end_inset
17208
17209 g.
17210 \begin_inset space \space{}
17211 \end_inset
17212
17213 in TeX code or URL.
17214  A kludge.
17215 \end_layout
17216
17217 \begin_layout Description
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 ForcePlain
17223 \end_layout
17224
17225 \end_inset
17226
17227  [
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232
17233 \emph on
17234 0
17235 \end_layout
17236
17237 \end_inset
17238
17239 ,
17240 \begin_inset space \thinspace{}
17241 \end_inset
17242
17243
17244 \begin_inset Flex Code
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 1
17249 \end_layout
17250
17251 \end_inset
17252
17253 ] Indicates whether the 
17254 \begin_inset Flex Code
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258 PlainLayout
17259 \end_layout
17260
17261 \end_inset
17262
17263  should be used or, instead, the user can change the paragraph style used
17264  in the inset.
17265  Default is false.
17266 \end_layout
17267
17268 \begin_layout Description
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 FreeSpacing
17274 \end_layout
17275
17276 \end_inset
17277
17278  [
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283
17284 \emph on
17285 0
17286 \end_layout
17287
17288 \end_inset
17289
17290 ,
17291 \begin_inset space \thinspace{}
17292 \end_inset
17293
17294
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 1
17300 \end_layout
17301
17302 \end_inset
17303
17304 ] As with paragraph styles, see sec.
17305 \begin_inset space ~
17306 \end_inset
17307
17308
17309 \begin_inset CommandInset ref
17310 LatexCommand ref
17311 reference "sub:Paragraph-Styles"
17312
17313 \end_inset
17314
17315 .
17316 \end_layout
17317
17318 \begin_layout Description
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 HTML*
17324 \end_layout
17325
17326 \end_inset
17327
17328  These tags control the XHTML output.
17329  See section
17330 \begin_inset space ~
17331 \end_inset
17332
17333
17334 \begin_inset CommandInset ref
17335 LatexCommand ref
17336 reference "sec:Tags-for-XHTML"
17337
17338 \end_inset
17339
17340 .
17341 \end_layout
17342
17343 \begin_layout Description
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 InToc
17349 \end_layout
17350
17351 \end_inset
17352
17353  [
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358
17359 \emph on
17360 0
17361 \end_layout
17362
17363 \end_inset
17364
17365 ,
17366 \begin_inset space \thinspace{}
17367 \end_inset
17368
17369
17370 \begin_inset Flex Code
17371 status collapsed
17372
17373 \begin_layout Plain Layout
17374 1
17375 \end_layout
17376
17377 \end_inset
17378
17379 ] Whether to include the contents of this inset in the strings generated
17380  for the `Outline' pane.
17381  One would not, for example, want the content of a footnote in a section
17382  header to be included in the TOC displayed in the outline, but one would
17383  normally want the content of a character style displayed.
17384  Default is false: not to include.
17385 \end_layout
17386
17387 \begin_layout Description
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 KeepEmpty
17393 \end_layout
17394
17395 \end_inset
17396
17397  [
17398 \emph on
17399
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 0
17405 \end_layout
17406
17407 \end_inset
17408
17409
17410 \emph default
17411 ,
17412 \begin_inset space \thinspace{}
17413 \end_inset
17414
17415
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 1
17421 \end_layout
17422
17423 \end_inset
17424
17425 ] As with paragraph styles, see sec.
17426 \begin_inset space ~
17427 \end_inset
17428
17429
17430 \begin_inset CommandInset ref
17431 LatexCommand ref
17432 reference "sub:Paragraph-Styles"
17433
17434 \end_inset
17435
17436 .
17437 \end_layout
17438
17439 \begin_layout Description
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 LabelFont
17445 \end_layout
17446
17447 \end_inset
17448
17449  The font used for the label.
17450  See section
17451 \begin_inset space ~
17452 \end_inset
17453
17454
17455 \begin_inset CommandInset ref
17456 LatexCommand ref
17457 reference "sub:Font-description"
17458
17459 \end_inset
17460
17461 .
17462  Note that this definition can never appear before 
17463 \begin_inset Flex Code
17464 status collapsed
17465
17466 \begin_layout Plain Layout
17467 Font
17468 \end_layout
17469
17470 \end_inset
17471
17472 , lest it be ineffective.
17473 \end_layout
17474
17475 \begin_layout Description
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 LabelString
17481 \end_layout
17482
17483 \end_inset
17484
17485  [
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 string
17491 \end_layout
17492
17493 \end_inset
17494
17495 =
17496 \begin_inset Quotes erd
17497 \end_inset
17498
17499
17500 \begin_inset Quotes erd
17501 \end_inset
17502
17503 ] What will be displayed on the button or elsewhere as the inset label.
17504  Some inset types (
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 TeX code
17510 \end_layout
17511
17512 \end_inset
17513
17514  and 
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 Branch
17520 \end_layout
17521
17522 \end_inset
17523
17524 ) modify this label on the fly.
17525 \end_layout
17526
17527 \begin_layout Description
17528
17529 \change_inserted -195340706 1333913893
17530 \begin_inset Flex Code
17531 status collapsed
17532
17533 \begin_layout Plain Layout
17534 LangPreamble
17535 \end_layout
17536
17537 \end_inset
17538
17539  Language dependent preamble.
17540  See section
17541 \begin_inset space ~
17542 \end_inset
17543
17544
17545 \begin_inset CommandInset ref
17546 LatexCommand ref
17547 reference "sub:I18n"
17548
17549 \end_inset
17550
17551 .
17552 \end_layout
17553
17554 \begin_layout Description
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 LatexName
17560 \end_layout
17561
17562 \end_inset
17563
17564  [
17565 \begin_inset Flex Code
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 <name>
17570 \end_layout
17571
17572 \end_inset
17573
17574 ] The name of the corresponding LaTeX stuff.
17575  Either the environment or command name.
17576 \end_layout
17577
17578 \begin_layout Description
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 LatexParam
17584 \end_layout
17585
17586 \end_inset
17587
17588  [
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 <parameter>
17594 \end_layout
17595
17596 \end_inset
17597
17598 ] The optional parameter for the corresponding 
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 LatexName
17604 \end_layout
17605
17606 \end_inset
17607
17608  stuff, including possible bracket pairs like 
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 []
17614 \end_layout
17615
17616 \end_inset
17617
17618 .
17619  
17620 \change_inserted -712698321 1355144715
17621 This will be output as is after all LaTeX 
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626
17627 \change_inserted -712698321 1355144713
17628 Arguments
17629 \end_layout
17630
17631 \end_inset
17632
17633 .
17634  
17635 \change_unchanged
17636 This parameter cannot be changed from within LyX
17637 \change_inserted -712698321 1355144775
17638  (use 
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643
17644 \change_inserted -712698321 1355144747
17645 Argument
17646 \end_layout
17647
17648 \end_inset
17649
17650  for customizable parameters)
17651 \change_unchanged
17652 .
17653 \end_layout
17654
17655 \begin_layout Description
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 LatexType
17661 \end_layout
17662
17663 \end_inset
17664
17665  [
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670
17671 \change_deleted -712698321 1353867544
17672
17673 \emph on
17674 Paragraph
17675 \emph default
17676
17677 \change_unchanged
17678 Command, Environment, 
17679 \change_inserted -712698321 1353867573
17680 None
17681 \change_deleted -712698321 1353867557
17682 Item_Environment,
17683 \change_unchanged
17684
17685 \end_layout
17686
17687 \end_inset
17688
17689  
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694
17695 \change_deleted -712698321 1353867564
17696 List_Environment
17697 \change_unchanged
17698
17699 \change_deleted -712698321 1353867569
17700 Bib_Environment
17701 \change_unchanged
17702
17703 \end_layout
17704
17705 \end_inset
17706
17707 ] How the style should be translated into LaTeX.
17708 \begin_inset Foot
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 LatexType
17717 \end_layout
17718
17719 \end_inset
17720
17721  is perhaps a bit misleading, since these rules apply to SGML classes, too.
17722  Visit the SGML class files for specific examples.
17723 \end_layout
17724
17725 \end_inset
17726
17727
17728 \end_layout
17729
17730 \begin_deeper
17731 \begin_layout Description
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736
17737 \change_deleted -712698321 1353867582
17738 Paragraph
17739 \change_inserted -712698321 1353867583
17740 None
17741 \change_unchanged
17742
17743 \end_layout
17744
17745 \end_inset
17746
17747  means nothing special.
17748  
17749 \end_layout
17750
17751 \begin_layout Description
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 Command
17757 \end_layout
17758
17759 \end_inset
17760
17761  means 
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766
17767 \backslash
17768
17769 \emph on
17770 LatexName
17771 \emph default
17772 {\SpecialChar \ldots{}
17773 }
17774 \end_layout
17775
17776 \end_inset
17777
17778 .
17779 \end_layout
17780
17781 \begin_layout Description
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 Environment
17787 \end_layout
17788
17789 \end_inset
17790
17791  means 
17792 \begin_inset Flex Code
17793 status collapsed
17794
17795 \begin_layout Plain Layout
17796
17797 \backslash
17798 begin{
17799 \emph on
17800 LatexName
17801 \emph default
17802 }\SpecialChar \ldots{}
17803
17804 \backslash
17805 end{
17806 \emph on
17807 LatexName
17808 \emph default
17809 }
17810 \end_layout
17811
17812 \end_inset
17813
17814 .
17815  
17816 \end_layout
17817
17818 \begin_layout Description
17819
17820 \change_deleted -712698321 1353867600
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 Item_Environment
17826 \end_layout
17827
17828 \end_inset
17829
17830  is the same as 
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 Environment
17836 \end_layout
17837
17838 \end_inset
17839
17840 , except that an 
17841 \begin_inset Flex Code
17842 status collapsed
17843
17844 \begin_layout Plain Layout
17845
17846 \backslash
17847 item
17848 \end_layout
17849
17850 \end_inset
17851
17852  is generated for each paragraph of this environment.
17853  
17854 \end_layout
17855
17856 \begin_layout Description
17857
17858 \change_deleted -712698321 1353867600
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 List_Environment
17864 \end_layout
17865
17866 \end_inset
17867
17868  is the same as 
17869 \begin_inset Flex Code
17870 status collapsed
17871
17872 \begin_layout Plain Layout
17873 Item_Environment
17874 \end_layout
17875
17876 \end_inset
17877
17878 , except that 
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 LabelWidthString
17884 \end_layout
17885
17886 \end_inset
17887
17888  is passed as an argument to the environment.
17889  
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 LabelWidthString
17895 \end_layout
17896
17897 \end_inset
17898
17899  can be defined in the 
17900 \begin_inset Flex MenuItem
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904
17905 \bar under
17906 Edit
17907 \bar default
17908 \SpecialChar \menuseparator
17909
17910 \bar under
17911 P
17912 \bar default
17913 aragraph
17914 \begin_inset space ~
17915 \end_inset
17916
17917 settings
17918 \end_layout
17919
17920 \end_inset
17921
17922  dialog.
17923  
17924 \change_unchanged
17925
17926 \end_layout
17927
17928 \begin_layout Standard
17929 Putting the last few things together, the LaTeX output will be either: 
17930 \end_layout
17931
17932 \begin_layout LyX-Code
17933
17934 \backslash
17935
17936 \change_deleted 2090807402 1356919073
17937 latexname
17938 \change_inserted 2090807402 1356919073
17939 LatexName
17940 \change_unchanged
17941 [
17942 \change_deleted 2090807402 1356919073
17943 latexparam
17944 \change_inserted 2090807402 1356919002
17945 LatexParam
17946 \change_unchanged
17947 ]{\SpecialChar \ldots{}
17948 }
17949 \end_layout
17950
17951 \begin_layout Standard
17952 or: 
17953 \end_layout
17954
17955 \begin_layout LyX-Code
17956
17957 \backslash
17958 begin{
17959 \change_deleted 2090807402 1356919013
17960 latexname
17961 \change_inserted 2090807402 1356919014
17962 LatexName
17963 \change_unchanged
17964 }[
17965 \change_deleted 2090807402 1356919013
17966 latexparam
17967 \change_inserted 2090807402 1356919008
17968 LatexParam
17969 \change_unchanged
17970 ] \SpecialChar \ldots{}
17971  
17972 \backslash
17973 end{
17974 \change_deleted 2090807402 1356919016
17975 latexname
17976 \change_inserted 2090807402 1356919016
17977 LatexName
17978 \change_unchanged
17979 }.
17980 \end_layout
17981
17982 \begin_layout Standard
17983 depending upon the LaTeX type.
17984 \end_layout
17985
17986 \end_deeper
17987 \begin_layout Description
17988
17989 \change_inserted -712698321 1354263128
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994
17995 \change_inserted -712698321 1353866742
17996 LeftDelim
17997 \change_unchanged
17998
17999 \end_layout
18000
18001 \end_inset
18002
18003  [
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008
18009 \change_inserted -712698321 1353866752
18010 string
18011 \end_layout
18012
18013 \end_inset
18014
18015 ] A string that is put at the beginning of the layout content.
18016  A line break in the output can be indicated by 
18017 \begin_inset Flex Code
18018 status collapsed
18019
18020 \begin_layout Plain Layout
18021
18022 \change_inserted -712698321 1354263128
18023 <br/>
18024 \end_layout
18025
18026 \end_inset
18027
18028 .
18029 \change_unchanged
18030
18031 \end_layout
18032
18033 \begin_layout Description
18034 \begin_inset Flex Code
18035 status collapsed
18036
18037 \begin_layout Plain Layout
18038 LyxType
18039 \end_layout
18040
18041 \end_inset
18042
18043  Can be 
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 charstyle
18049 \end_layout
18050
18051 \end_inset
18052
18053
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 custom
18059 \end_layout
18060
18061 \end_inset
18062
18063
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068 element
18069 \end_layout
18070
18071 \end_inset
18072
18073  or 
18074 \begin_inset Flex Code
18075 status collapsed
18076
18077 \begin_layout Plain Layout
18078 end
18079 \end_layout
18080
18081 \end_inset
18082
18083  (indicating a dummy definition ending definitions of charstyles, etc).
18084  This entry is required in and is only meaningful for Flex insets.
18085  Among other things, it determines on which menu this inset will appear.
18086  Setting 
18087 \begin_inset Flex Code
18088 status collapsed
18089
18090 \begin_layout Plain Layout
18091 LyXType
18092 \end_layout
18093
18094 \end_inset
18095
18096  to 
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 charstyle
18102 \end_layout
18103
18104 \end_inset
18105
18106  will automatically set 
18107 \begin_inset Flex Code
18108 status collapsed
18109
18110 \begin_layout Plain Layout
18111 MultiPar
18112 \end_layout
18113
18114 \end_inset
18115
18116  to false.
18117  
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 MultiPar
18123 \end_layout
18124
18125 \end_inset
18126
18127  can be set to true for 
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 charstyle
18133 \end_layout
18134
18135 \end_inset
18136
18137  insets by setting it 
18138 \emph on
18139 after
18140 \emph default
18141  you set the 
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146 LyXType
18147 \end_layout
18148
18149 \end_inset
18150
18151 .
18152 \end_layout
18153
18154 \begin_layout Description
18155 \begin_inset Flex Code
18156 status collapsed
18157
18158 \begin_layout Plain Layout
18159 MultiPar
18160 \end_layout
18161
18162 \end_inset
18163
18164  [
18165 \begin_inset Flex Code
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169
18170 \emph on
18171 0
18172 \end_layout
18173
18174 \end_inset
18175
18176 ,
18177 \begin_inset space \thinspace{}
18178 \end_inset
18179
18180
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 1
18186 \end_layout
18187
18188 \end_inset
18189
18190 ] Whether multiple paragraphs are permitted in this inset.
18191  This will also set 
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196 CustomPars
18197 \end_layout
18198
18199 \end_inset
18200
18201  to the same value and 
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 ForcePlain
18207 \end_layout
18208
18209 \end_inset
18210
18211  to the opposite value.
18212  These can be reset to other values, if they are used 
18213 \emph on
18214 after
18215 \emph default
18216  
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 MultiPar
18222 \end_layout
18223
18224 \end_inset
18225
18226 .
18227  Default is true.
18228 \end_layout
18229
18230 \begin_layout Description
18231 \begin_inset Flex Code
18232 status collapsed
18233
18234 \begin_layout Plain Layout
18235 NeedProtect
18236 \end_layout
18237
18238 \end_inset
18239
18240  [
18241 \begin_inset Flex Code
18242 status collapsed
18243
18244 \begin_layout Plain Layout
18245
18246 \emph on
18247 0
18248 \end_layout
18249
18250 \end_inset
18251
18252 ,
18253 \begin_inset space \thinspace{}
18254 \end_inset
18255
18256
18257 \begin_inset Flex Code
18258 status collapsed
18259
18260 \begin_layout Plain Layout
18261 1
18262 \end_layout
18263
18264 \end_inset
18265
18266 ] Whether fragile commands in this inset should be 
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271
18272 \backslash
18273 protect
18274 \end_layout
18275
18276 \end_inset
18277
18278 'ed.
18279  (Note: This is 
18280 \emph on
18281 not
18282 \emph default
18283  whether the command should itself be protected.) Default is false.
18284 \end_layout
18285
18286 \begin_layout Description
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 ParbreakIsNewline
18292 \end_layout
18293
18294 \end_inset
18295
18296  [
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301
18302 \emph on
18303 0
18304 \end_layout
18305
18306 \end_inset
18307
18308 ,
18309 \begin_inset space \thinspace{}
18310 \end_inset
18311
18312
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317 1
18318 \end_layout
18319
18320 \end_inset
18321
18322 ] As with paragraph styles, see sec.
18323 \begin_inset space ~
18324 \end_inset
18325
18326
18327 \begin_inset CommandInset ref
18328 LatexCommand ref
18329 reference "sub:Paragraph-Styles"
18330
18331 \end_inset
18332
18333 .
18334  Default is false.
18335 \end_layout
18336
18337 \begin_layout Description
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342 PassThru
18343 \end_layout
18344
18345 \end_inset
18346
18347  [
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352
18353 \emph on
18354 0
18355 \end_layout
18356
18357 \end_inset
18358
18359 ,
18360 \begin_inset space \thinspace{}
18361 \end_inset
18362
18363
18364 \begin_inset Flex Code
18365 status collapsed
18366
18367 \begin_layout Plain Layout
18368 1
18369 \end_layout
18370
18371 \end_inset
18372
18373 ] As with paragraph styles, see sec.
18374 \begin_inset space ~
18375 \end_inset
18376
18377
18378 \begin_inset CommandInset ref
18379 LatexCommand ref
18380 reference "sub:Paragraph-Styles"
18381
18382 \end_inset
18383
18384 .
18385  Default is false.
18386 \end_layout
18387
18388 \begin_layout Description
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 Preamble
18394 \end_layout
18395
18396 \end_inset
18397
18398  As with paragraph styles, see sec.
18399 \begin_inset space ~
18400 \end_inset
18401
18402
18403 \begin_inset CommandInset ref
18404 LatexCommand ref
18405 reference "sub:Paragraph-Styles"
18406
18407 \end_inset
18408
18409 .
18410 \end_layout
18411
18412 \begin_layout Description
18413 \begin_inset Flex Code
18414 status collapsed
18415
18416 \begin_layout Plain Layout
18417 RefPrefix
18418 \end_layout
18419
18420 \end_inset
18421
18422  [
18423 \begin_inset Flex Code
18424 status collapsed
18425
18426 \begin_layout Plain Layout
18427 string
18428 \end_layout
18429
18430 \end_inset
18431
18432 ] The prefix to use when creating labels referring to insets of this type.
18433  This allows the use of formatted references.
18434 \end_layout
18435
18436 \begin_layout Description
18437 \begin_inset Flex Code
18438 status collapsed
18439
18440 \begin_layout Plain Layout
18441 Requires
18442 \end_layout
18443
18444 \end_inset
18445
18446  [
18447 \begin_inset Flex Code
18448 status collapsed
18449
18450 \begin_layout Plain Layout
18451 string
18452 \end_layout
18453
18454 \end_inset
18455
18456 ] As with paragraph styles, see sec.
18457 \begin_inset space ~
18458 \end_inset
18459
18460
18461 \begin_inset CommandInset ref
18462 LatexCommand ref
18463 reference "sub:Paragraph-Styles"
18464
18465 \end_inset
18466
18467 .
18468 \change_inserted -712698321 1354439699
18469
18470 \end_layout
18471
18472 \begin_layout Description
18473
18474 \change_inserted -712698321 1354439705
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479
18480 \change_inserted -712698321 1354439699
18481 ResetArgs
18482 \end_layout
18483
18484 \end_inset
18485
18486  [
18487 \begin_inset Flex Code
18488 status collapsed
18489
18490 \begin_layout Plain Layout
18491
18492 \change_inserted -712698321 1354439699
18493
18494 \emph on
18495 0
18496 \end_layout
18497
18498 \end_inset
18499
18500 ,
18501 \begin_inset Flex Code
18502 status collapsed
18503
18504 \begin_layout Plain Layout
18505
18506 \change_inserted -712698321 1354439699
18507 1
18508 \end_layout
18509
18510 \end_inset
18511
18512 ] Resets the LaTeX arguments of this layout (as defined via the 
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517
18518 \change_inserted -712698321 1354439699
18519 Argument
18520 \end_layout
18521
18522 \end_inset
18523
18524  tag).
18525  This is useful if you have copied a style via 
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530
18531 \change_inserted -712698321 1354439699
18532 CopyStyle
18533 \end_layout
18534
18535 \end_inset
18536
18537 , but you do not want to inherit its (required and optional) arguments.
18538
18539 \change_deleted -712698321 1354439698
18540  
18541 \change_unchanged
18542
18543 \end_layout
18544
18545 \begin_layout Description
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 ResetsFont
18551 \end_layout
18552
18553 \end_inset
18554
18555  [
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 0
18561 \end_layout
18562
18563 \end_inset
18564
18565 ,
18566 \begin_inset space \thinspace{}
18567 \end_inset
18568
18569
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574
18575 \emph on
18576 1
18577 \end_layout
18578
18579 \end_inset
18580
18581 ] Whether this inset should use the font of its surrounding environment
18582  or uses its own.
18583  Default is true: uses its own.
18584 \end_layout
18585
18586 \begin_layout Description
18587
18588 \change_inserted -712698321 1354263134
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593
18594 \change_inserted -712698321 1353866810
18595 RightDelim
18596 \end_layout
18597
18598 \end_inset
18599
18600  [
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605
18606 \change_inserted -712698321 1353866806
18607 string
18608 \end_layout
18609
18610 \end_inset
18611
18612 ] A string that is put at the end of the layout content.
18613  A line break in the output can be indicated by 
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618
18619 \change_inserted -712698321 1354263134
18620 <br/>
18621 \end_layout
18622
18623 \end_inset
18624
18625 .
18626 \change_unchanged
18627
18628 \end_layout
18629
18630 \begin_layout Description
18631 \begin_inset Flex Code
18632 status collapsed
18633
18634 \begin_layout Plain Layout
18635 Spellcheck
18636 \end_layout
18637
18638 \end_inset
18639
18640  [
18641 \begin_inset Flex Code
18642 status collapsed
18643
18644 \begin_layout Plain Layout
18645 0
18646 \end_layout
18647
18648 \end_inset
18649
18650 ,
18651 \begin_inset space \thinspace{}
18652 \end_inset
18653
18654
18655 \begin_inset Flex Code
18656 status collapsed
18657
18658 \begin_layout Plain Layout
18659
18660 \emph on
18661 1
18662 \end_layout
18663
18664 \end_inset
18665
18666 ] Allow spell-checking the contents of this inset.
18667  Default is true.
18668 \end_layout
18669
18670 \begin_layout Subsection
18671 Counters
18672 \begin_inset CommandInset label
18673 LatexCommand label
18674 name "sub:Counters"
18675
18676 \end_inset
18677
18678
18679 \end_layout
18680
18681 \begin_layout Standard
18682 It is necessary to define the counters (
18683 \begin_inset Flex MenuItem
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687 chapter
18688 \end_layout
18689
18690 \end_inset
18691
18692
18693 \begin_inset Flex MenuItem
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 figure
18698 \end_layout
18699
18700 \end_inset
18701
18702 , \SpecialChar \ldots{}
18703 ) in the text class itself.
18704  The standard counters are defined in the file 
18705 \begin_inset Flex Code
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709 stdcounters.inc
18710 \end_layout
18711
18712 \end_inset
18713
18714 , so you may have to do no more than add
18715 \end_layout
18716
18717 \begin_layout LyX-Code
18718 Input stdcounters.inc
18719 \end_layout
18720
18721 \begin_layout Standard
18722 to your layout file to get them to work.
18723  But if you want to define custom counters, then you can do so.
18724  The counter declaration must begin with:
18725 \end_layout
18726
18727 \begin_layout LyX-Code
18728 Counter CounterName
18729 \end_layout
18730
18731 \begin_layout Standard
18732 where of course `
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 CounterName
18738 \end_layout
18739
18740 \end_inset
18741
18742 ' is replaced by the name of the counter.
18743  And it must end with 
18744 \begin_inset Quotes eld
18745 \end_inset
18746
18747
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 End
18753 \end_layout
18754
18755 \end_inset
18756
18757
18758 \begin_inset Quotes erd
18759 \end_inset
18760
18761 .
18762  The following parameters can also be used:
18763 \end_layout
18764
18765 \begin_layout Description
18766 \begin_inset Flex Code
18767 status collapsed
18768
18769 \begin_layout Plain Layout
18770 LabelString
18771 \end_layout
18772
18773 \end_inset
18774
18775  [
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 string
18781 \end_layout
18782
18783 \end_inset
18784
18785 =
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789
18790 \begin_inset Quotes erd
18791 \end_inset
18792
18793 ] When defined, this string defines how the counter is displayed.
18794  Setting this value sets 
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 LabelStringAppendix
18800 \end_layout
18801
18802 \end_inset
18803
18804  to the same value.
18805  The following special constructs can be used in the string:
18806 \end_layout
18807
18808 \begin_deeper
18809 \begin_layout Itemize
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814
18815 \backslash
18816 thecounter
18817 \end_layout
18818
18819 \end_inset
18820
18821  will be replaced by the expansion of the 
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 LabelString
18827 \end_layout
18828
18829 \end_inset
18830
18831  (or 
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 LabelStringAppendix
18837 \end_layout
18838
18839 \end_inset
18840
18841 ) of the counter 
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 counter
18847 \end_layout
18848
18849 \end_inset
18850
18851 .
18852  
18853 \end_layout
18854
18855 \begin_layout Itemize
18856 counter values can be expressed using LaTeX-like macros
18857 \begin_inset Newline newline
18858 \end_inset
18859
18860
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865
18866 \backslash
18867
18868 \emph on
18869 numbertype
18870 \emph default
18871 {
18872 \emph on
18873 counter
18874 \emph default
18875 }
18876 \end_layout
18877
18878 \end_inset
18879
18880 , where 
18881 \begin_inset Flex Code
18882 status collapsed
18883
18884 \begin_layout Plain Layout
18885
18886 \emph on
18887 numbertype
18888 \end_layout
18889
18890 \end_inset
18891
18892  can be:
18893 \begin_inset Foot
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897
18898 \family roman
18899 \series medium
18900 \shape up
18901 \size normal
18902 \emph off
18903 \bar no
18904 \noun off
18905 \color none
18906 Actually, the situation is a bit more complicated: any
18907 \family default
18908 \series default
18909 \shape default
18910 \emph default
18911 \bar default
18912  
18913 \size default
18914 \emph on
18915 \noun default
18916 \color inherit
18917 numbertype
18918 \family roman
18919 \series medium
18920 \shape up
18921 \size normal
18922 \emph off
18923 \bar no
18924 \noun off
18925  other than those described below will produce arabic numerals.
18926  It would not be surprising to see this change in the future.
18927 \end_layout
18928
18929 \end_inset
18930
18931  
18932 \begin_inset Flex Code
18933 status collapsed
18934
18935 \begin_layout Plain Layout
18936 arabic
18937 \end_layout
18938
18939 \end_inset
18940
18941 : 1, 2, 3,\SpecialChar \ldots{}
18942
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 alph
18948 \end_layout
18949
18950 \end_inset
18951
18952  for lower-case letters: a, b, c, \SpecialChar \ldots{}
18953
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 Alph
18959 \end_layout
18960
18961 \end_inset
18962
18963  for upper-case letters: A, B, C, \SpecialChar \ldots{}
18964
18965 \begin_inset Flex Code
18966 status collapsed
18967
18968 \begin_layout Plain Layout
18969 roman
18970 \end_layout
18971
18972 \end_inset
18973
18974  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
18975
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 Roman
18981 \end_layout
18982
18983 \end_inset
18984
18985  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
18986
18987 \begin_inset Flex Code
18988 status collapsed
18989
18990 \begin_layout Plain Layout
18991 hebrew
18992 \end_layout
18993
18994 \end_inset
18995
18996  for hebrew numerals.
18997 \end_layout
18998
18999 \end_deeper
19000 \begin_layout Standard
19001 If LabelString is not defined, a default value is constructed as follows:
19002  if the counter has a master counter 
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 master
19008 \end_layout
19009
19010 \end_inset
19011
19012  (defined via 
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 Within
19018 \end_layout
19019
19020 \end_inset
19021
19022 ), the string
19023 \begin_inset Newline newline
19024 \end_inset
19025
19026
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031
19032 \backslash
19033 themaster.
19034 \backslash
19035 arabic{counter}
19036 \end_layout
19037
19038 \end_inset
19039
19040  is used; otherwise the string 
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045
19046 \backslash
19047 arabic{counter}
19048 \end_layout
19049
19050 \end_inset
19051
19052  is used.
19053 \end_layout
19054
19055 \begin_layout Description
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 LabelStringAppendix
19061 \end_layout
19062
19063 \end_inset
19064
19065  [
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 string
19071 \end_layout
19072
19073 \end_inset
19074
19075 =
19076 \begin_inset Quotes erd
19077 \end_inset
19078
19079
19080 \begin_inset Quotes erd
19081 \end_inset
19082
19083 ] Same as 
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 LabelString
19089 \end_layout
19090
19091 \end_inset
19092
19093 , but for use in the Appendix.
19094 \end_layout
19095
19096 \begin_layout Description
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 PrettyFormat
19102 \end_layout
19103
19104 \end_inset
19105
19106  [
19107 \begin_inset Flex Code
19108 status collapsed
19109
19110 \begin_layout Plain Layout
19111 string
19112 \end_layout
19113
19114 \end_inset
19115
19116 =
19117 \begin_inset Quotes erd
19118 \end_inset
19119
19120
19121 \begin_inset Quotes erd
19122 \end_inset
19123
19124 ] A format for use with formatted references to this counter.
19125  For example, one might want to have references to section numbers appear
19126  as 
19127 \begin_inset Quotes eld
19128 \end_inset
19129
19130 Section 2.4
19131 \begin_inset Quotes erd
19132 \end_inset
19133
19134 .
19135  The string should contain 
19136 \begin_inset Quotes eld
19137 \end_inset
19138
19139 ##
19140 \begin_inset Quotes erd
19141 \end_inset
19142
19143 .
19144  This will be replaced by the counter number itself.
19145  So, for sections, it would be: Section ##.
19146 \end_layout
19147
19148 \begin_layout Description
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 Within
19154 \end_layout
19155
19156 \end_inset
19157
19158  [
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 string
19164 \end_layout
19165
19166 \end_inset
19167
19168 =
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172
19173 \begin_inset Quotes erd
19174 \end_inset
19175
19176 ] If this is set to the name of another counter, the present counter will
19177  be reset every time the other one is increased.
19178  For example, 
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 subsection
19184 \end_layout
19185
19186 \end_inset
19187
19188  is numbered inside 
19189 \begin_inset Flex Code
19190 status collapsed
19191
19192 \begin_layout Plain Layout
19193 section
19194 \end_layout
19195
19196 \end_inset
19197
19198 .
19199 \end_layout
19200
19201 \begin_layout Subsection
19202 Font description
19203 \begin_inset CommandInset label
19204 LatexCommand label
19205 name "sub:Font-description"
19206
19207 \end_inset
19208
19209
19210 \end_layout
19211
19212 \begin_layout Standard
19213 A font description looks like this:
19214 \end_layout
19215
19216 \begin_layout LyX-Code
19217 Font 
19218 \family roman
19219 \emph on
19220 or
19221 \family default
19222 \emph default
19223  LabelFont
19224 \emph on
19225  or
19226 \emph default
19227  DefaultFont
19228 \end_layout
19229
19230 \begin_layout LyX-Code
19231  ...
19232 \end_layout
19233
19234 \begin_layout LyX-Code
19235 EndFont
19236 \end_layout
19237
19238 \begin_layout Standard
19239 The following commands are available:
19240 \end_layout
19241
19242 \begin_layout Description
19243 \begin_inset Flex Code
19244 status collapsed
19245
19246 \begin_layout Plain Layout
19247 Color
19248 \end_layout
19249
19250 \end_inset
19251
19252  [
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257
19258 \emph on
19259 none
19260 \end_layout
19261
19262 \end_inset
19263
19264
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 black
19270 \end_layout
19271
19272 \end_inset
19273
19274
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 white
19280 \end_layout
19281
19282 \end_inset
19283
19284
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 red
19290 \end_layout
19291
19292 \end_inset
19293
19294
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 green
19300 \end_layout
19301
19302 \end_inset
19303
19304
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 blue
19310 \end_layout
19311
19312 \end_inset
19313
19314
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 cyan
19320 \end_layout
19321
19322 \end_inset
19323
19324
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 magenta
19330 \end_layout
19331
19332 \end_inset
19333
19334
19335 \begin_inset Flex Code
19336 status collapsed
19337
19338 \begin_layout Plain Layout
19339 yellow
19340 \end_layout
19341
19342 \end_inset
19343
19344 ]
19345 \end_layout
19346
19347 \begin_layout Description
19348 \begin_inset Flex Code
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352 Family
19353 \end_layout
19354
19355 \end_inset
19356
19357  [
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362
19363 \emph on
19364 Roman
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 Sans
19375 \end_layout
19376
19377 \end_inset
19378
19379
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 Typewriter
19385 \end_layout
19386
19387 \end_inset
19388
19389 ]
19390 \end_layout
19391
19392 \begin_layout Description
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 Misc
19398 \end_layout
19399
19400 \end_inset
19401
19402  [
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 string
19408 \end_layout
19409
19410 \end_inset
19411
19412 ] Valid arguments are: 
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 emph
19418 \end_layout
19419
19420 \end_inset
19421
19422
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 noun
19428 \end_layout
19429
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 strikeout
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 underbar
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 uuline
19458 \end_layout
19459
19460 \end_inset
19461
19462
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 uwave
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 no_emph
19478 \end_layout
19479
19480 \end_inset
19481
19482
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 no_noun
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 no_strikeout
19498 \end_layout
19499
19500 \end_inset
19501
19502
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 no_bar
19508 \end_layout
19509
19510 \end_inset
19511
19512
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 no_uuline
19518 \end_layout
19519
19520 \end_inset
19521
19522  and 
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 no_uwave
19528 \end_layout
19529
19530 \end_inset
19531
19532 .
19533  Each of these turns on or off the corresponding attribute.
19534  For example, 
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539 emph
19540 \end_layout
19541
19542 \end_inset
19543
19544  turns on emphasis, and 
19545 \begin_inset Flex Code
19546 status collapsed
19547
19548 \begin_layout Plain Layout
19549 no_emph
19550 \end_layout
19551
19552 \end_inset
19553
19554  turns it off.
19555  
19556 \begin_inset Newline newline
19557 \end_inset
19558
19559 If the latter seems puzzling, remember that the font settings for the present
19560  context are generally inherited from the surrounding context.
19561  So 
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 no_emph
19567 \end_layout
19568
19569 \end_inset
19570
19571  would turn off the emphasis that was anyway in effect, say, in a theorem
19572  environment.
19573 \end_layout
19574
19575 \begin_layout Description
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 Series
19581 \end_layout
19582
19583 \end_inset
19584
19585  [
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590
19591 \emph on
19592 Medium
19593 \end_layout
19594
19595 \end_inset
19596
19597
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602 Bold
19603 \end_layout
19604
19605 \end_inset
19606
19607
19608 \end_layout
19609
19610 \begin_layout Description
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 Shape
19616 \end_layout
19617
19618 \end_inset
19619
19620  [
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625
19626 \emph on
19627 Up
19628 \end_layout
19629
19630 \end_inset
19631
19632
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 Italic
19638 \end_layout
19639
19640 \end_inset
19641
19642
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 SmallCaps
19648 \end_layout
19649
19650 \end_inset
19651
19652
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 Slanted
19658 \end_layout
19659
19660 \end_inset
19661
19662
19663 \end_layout
19664
19665 \begin_layout Description
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 Size
19671 \end_layout
19672
19673 \end_inset
19674
19675  [
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 tiny
19681 \end_layout
19682
19683 \end_inset
19684
19685
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 small
19691 \end_layout
19692
19693 \end_inset
19694
19695
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700
19701 \emph on
19702 normal
19703 \end_layout
19704
19705 \end_inset
19706
19707
19708 \begin_inset Flex Code
19709 status collapsed
19710
19711 \begin_layout Plain Layout
19712 large
19713 \end_layout
19714
19715 \end_inset
19716
19717
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 larger
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 largest
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 huge
19743 \end_layout
19744
19745 \end_inset
19746
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 giant
19753 \end_layout
19754
19755 \end_inset
19756
19757 ]
19758 \end_layout
19759
19760 \begin_layout Subsection
19761 \begin_inset CommandInset label
19762 LatexCommand label
19763 name "sub:Citation-format-description"
19764
19765 \end_inset
19766
19767 Citation format description
19768 \end_layout
19769
19770 \begin_layout Standard
19771 The 
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 CiteFormat
19777 \end_layout
19778
19779 \end_inset
19780
19781  blocks are used to describe how bibliographic information should be displayed,
19782  both within LyX itself (in the citation dialog and in tooltips, for example)
19783  and in XHTML output.
19784  Such a block might look like this:
19785 \end_layout
19786
19787 \begin_layout LyX-Code
19788 CiteFormat
19789 \end_layout
19790
19791 \begin_layout LyX-Code
19792  article ...
19793 \end_layout
19794
19795 \begin_layout LyX-Code
19796  book ...
19797 \end_layout
19798
19799 \begin_layout LyX-Code
19800 End
19801 \end_layout
19802
19803 \begin_layout Standard
19804 The individual lines define how the bibliographic information associated
19805  with an article or book, respectively, is to be displayed, and such a definitio
19806 n can be given for any `entry type' that might be present in a BibTeX file.
19807  LyX defines a default format in the source code that will be used if no
19808  specific definition has been given.
19809  LyX predefines several formats in the file 
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 stdciteformats.inc
19815 \end_layout
19816
19817 \end_inset
19818
19819 , which is included in most of LyX's document classes.
19820 \end_layout
19821
19822 \begin_layout Standard
19823 The definitions use a simple language that allows BibTeX keys to be replaced
19824  with their values.
19825  Keys should be enclosed in 
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 %
19831 \end_layout
19832
19833 \end_inset
19834
19835  signs, e.g.: 
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 %author%
19841 \end_layout
19842
19843 \end_inset
19844
19845 .
19846  So a simple definition might look like this:
19847 \end_layout
19848
19849 \begin_layout LyX-Code
19850 misc %author%, 
19851 \begin_inset Quotes eld
19852 \end_inset
19853
19854 %title
19855 \begin_inset Quotes erd
19856 \end_inset
19857
19858 .
19859 \end_layout
19860
19861 \begin_layout Standard
19862 This would print the author, followed by a comma, followed by the title,
19863  in quotes, followed by a period.
19864 \end_layout
19865
19866 \begin_layout Standard
19867 Of course, sometimes you may want to print a key only if it exists.
19868  This can be done by using a conditional construction, such as: 
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 {%volume%[[vol.
19874 \begin_inset space ~
19875 \end_inset
19876
19877 %volume%]]}
19878 \end_layout
19879
19880 \end_inset
19881
19882 .
19883  This says: If the 
19884 \begin_inset Flex Code
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888 volume
19889 \end_layout
19890
19891 \end_inset
19892
19893  key exists, then print 
19894 \begin_inset Quotes eld
19895 \end_inset
19896
19897 vol.
19898 \begin_inset space ~
19899 \end_inset
19900
19901
19902 \begin_inset Quotes erd
19903 \end_inset
19904
19905  followed by the volume key.
19906  It is also possible to have an else clause in the conditional, such as:
19907 \begin_inset Newline newline
19908 \end_inset
19909
19910
19911 \begin_inset Flex Code
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 {%author%[[%author%]][[%editor%, ed.]]}
19916 \end_layout
19917
19918 \end_inset
19919
19920 .
19921 \begin_inset Newline newline
19922 \end_inset
19923
19924 Here, the 
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 author
19930 \end_layout
19931
19932 \end_inset
19933
19934  key is printed if it exists; otherwise, the editor key is printed, followed
19935  by 
19936 \begin_inset Quotes eld
19937 \end_inset
19938
19939 ,
19940 \begin_inset space ~
19941 \end_inset
19942
19943 ed.
19944 \begin_inset Quotes erd
19945 \end_inset
19946
19947  Note that the key is again enclosed in 
19948 \begin_inset Flex Code
19949 status collapsed
19950
19951 \begin_layout Plain Layout
19952 %
19953 \end_layout
19954
19955 \end_inset
19956
19957  signs; the entire conditional is enclosed in braces; and the if and else
19958  clauses are enclosed in double brackets, 
19959 \begin_inset Quotes eld
19960 \end_inset
19961
19962
19963 \begin_inset Flex Code
19964 status collapsed
19965
19966 \begin_layout Plain Layout
19967 [[
19968 \end_layout
19969
19970 \end_inset
19971
19972
19973 \begin_inset Quotes eld
19974 \end_inset
19975
19976  and 
19977 \begin_inset Quotes eld
19978 \end_inset
19979
19980
19981 \begin_inset Flex Code
19982 status collapsed
19983
19984 \begin_layout Plain Layout
19985 ]]
19986 \end_layout
19987
19988 \end_inset
19989
19990
19991 \begin_inset Quotes erd
19992 \end_inset
19993
19994 .
19995  There must be no space between any of these.
19996 \end_layout
19997
19998 \begin_layout Standard
19999 There is one other piece of syntax available in definitions, which looks
20000  like this: 
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 {!<i>!}
20006 \end_layout
20007
20008 \end_inset
20009
20010 .
20011  This defines a piece of formatting information that is to be used when
20012  creating 
20013 \begin_inset Quotes eld
20014 \end_inset
20015
20016 rich text
20017 \begin_inset Quotes erd
20018 \end_inset
20019
20020 .
20021  Obviously, we do not want to output HTML tags when writing plain text,
20022  so they should be wrapped in 
20023 \begin_inset Quotes eld
20024 \end_inset
20025
20026 {!
20027 \begin_inset Quotes erd
20028 \end_inset
20029
20030  and 
20031 \begin_inset Quotes eld
20032 \end_inset
20033
20034 !}
20035 \begin_inset Quotes erd
20036 \end_inset
20037
20038 .
20039 \end_layout
20040
20041 \begin_layout Standard
20042 Two special sorts of definitions are also possible in a 
20043 \begin_inset Flex Code
20044 status collapsed
20045
20046 \begin_layout Plain Layout
20047 CiteFormat
20048 \end_layout
20049
20050 \end_inset
20051
20052  block.
20053  An example of the first would be:
20054 \end_layout
20055
20056 \begin_layout LyX-Code
20057 !quotetitle 
20058 \begin_inset Quotes eld
20059 \end_inset
20060
20061 %title%
20062 \begin_inset Quotes erd
20063 \end_inset
20064
20065
20066 \end_layout
20067
20068 \begin_layout Standard
20069 This is an abbreviation, or macro, and it can be used by treating it as
20070  if it were a key: 
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 %!quotetitle%
20076 \end_layout
20077
20078 \end_inset
20079
20080 .
20081  LyX will treat 
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086 %!quotetitle%
20087 \end_layout
20088
20089 \end_inset
20090
20091  exactly as it would treat its definition.
20092  So, let us issue the obvious 
20093 \emph on
20094 warning
20095 \emph default
20096 .
20097  Do not do this:
20098 \end_layout
20099
20100 \begin_layout LyX-Code
20101 !funfun %funfun%
20102 \end_layout
20103
20104 \begin_layout Standard
20105 or anything like it.
20106  LyX shouldn't go into an infinite loop, but it may go into a long one before
20107  it gives up.
20108 \end_layout
20109
20110 \begin_layout Standard
20111 The second sort of special definition might look like this:
20112 \end_layout
20113
20114 \begin_layout LyX-Code
20115 _pptext pp.
20116 \end_layout
20117
20118 \begin_layout Standard
20119 This defines a translatable piece of text, which allows relevant parts of
20120  the bibliography to be translated.
20121  It can be included in a definition by treating it as a key: 
20122 \begin_inset Flex Code
20123 status collapsed
20124
20125 \begin_layout Plain Layout
20126 %_pptext%
20127 \end_layout
20128
20129 \end_inset
20130
20131 .
20132  Several of these are predefined in 
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137 stdciteformats.inc
20138 \end_layout
20139
20140 \end_inset
20141
20142 .
20143  Note that these are not macros, in the sense just defined.
20144  They will not be expanded.
20145 \end_layout
20146
20147 \begin_layout Standard
20148 So here then is an example that use all these features:
20149 \begin_inset VSpace defskip
20150 \end_inset
20151
20152
20153 \end_layout
20154
20155 \begin_layout Standard
20156 \noindent
20157
20158 \family typewriter
20159 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20160 \end_layout
20161
20162 \begin_layout Standard
20163 \begin_inset VSpace defskip
20164 \end_inset
20165
20166 This defines a macro that prints the author, followed by a comma, if the
20167  
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 author
20173 \end_layout
20174
20175 \end_inset
20176
20177  key is defined, or else prints the name of the editor, followed by the
20178  
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 _edtext
20184 \end_layout
20185
20186 \end_inset
20187
20188  or its translation (it is by default 
20189 \begin_inset Quotes eld
20190 \end_inset
20191
20192 ed.
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196 ), if the 
20197 \begin_inset Flex Code
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201 editor
20202 \end_layout
20203
20204 \end_inset
20205
20206  key is defined.
20207  Note that this is in fact defined in 
20208 \begin_inset Flex Code
20209 status collapsed
20210
20211 \begin_layout Plain Layout
20212 stdciteformats.inc
20213 \end_layout
20214
20215 \end_inset
20216
20217 , so you can use it in your own definitions, or re-definitions, if you load
20218  that file first.
20219 \end_layout
20220
20221 \begin_layout Section
20222 \begin_inset CommandInset label
20223 LatexCommand label
20224 name "sec:Tags-for-XHTML"
20225
20226 \end_inset
20227
20228 Tags for XHTML output
20229 \end_layout
20230
20231 \begin_layout Standard
20232 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
20233  by layout information.
20234  In general, LyX provides sensible defaults and, as mentioned earlier, it
20235  will even construct default CSS style rules from the other layout tags.
20236  For example, LyX will attempt to use the information provided in the 
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 Font
20242 \end_layout
20243
20244 \end_inset
20245
20246  declaration for the Chapter style to write CSS that will appropriately
20247  format chapter headings.
20248 \end_layout
20249
20250 \begin_layout Standard
20251 In many cases, then, you may not have to do anything at all to get acceptable
20252  XHTML output for your own environments, custom insets, and so forth.
20253  But in some cases you will, and so LyX provides a number of layout tags
20254  that can be used to customize the XHTML and CSS that are generated.
20255 \end_layout
20256
20257 \begin_layout Standard
20258 Note that there are two tags, 
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 HTMLPreamble
20264 \end_layout
20265
20266 \end_inset
20267
20268  and 
20269 \begin_inset Flex Code
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273 AddToHTMLPreamble
20274 \end_layout
20275
20276 \end_inset
20277
20278  that may appear outside style and inset declarations.
20279  See 
20280 \begin_inset CommandInset ref
20281 LatexCommand ref
20282 reference "sub:General-text-class"
20283
20284 \end_inset
20285
20286  for details on these.
20287 \end_layout
20288
20289 \begin_layout Subsection
20290 \begin_inset CommandInset label
20291 LatexCommand label
20292 name "sub:Paragraph-Style-XHTML"
20293
20294 \end_inset
20295
20296 Paragraph styles
20297 \end_layout
20298
20299 \begin_layout Standard
20300 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
20301  dealing with a normal paragraph, a command, or an environment, where this
20302  is itself determined by the contents of the corresponding 
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 LaTeXType
20308 \end_layout
20309
20310 \end_inset
20311
20312  tag.
20313  
20314 \end_layout
20315
20316 \begin_layout Standard
20317 For a command or normal paragraph, the output XHTML has the following form:
20318 \end_layout
20319
20320 \begin_layout LyX-Code
20321 <tag attr=
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325 value
20326 \begin_inset Quotes erd
20327 \end_inset
20328
20329 >
20330 \end_layout
20331
20332 \begin_layout LyX-Code
20333 <labeltag attr=
20334 \begin_inset Quotes erd
20335 \end_inset
20336
20337 value
20338 \begin_inset Quotes erd
20339 \end_inset
20340
20341 >Label</labeltag>
20342 \end_layout
20343
20344 \begin_layout LyX-Code
20345 Contents of the paragraph.
20346 \end_layout
20347
20348 \begin_layout LyX-Code
20349 </tag>
20350 \end_layout
20351
20352 \begin_layout Standard
20353 The label tags are of course omitted if the paragraph does not have a label.
20354 \end_layout
20355
20356 \begin_layout Standard
20357 For an environment that is not some sort of list, the XHTML takes this form:
20358 \end_layout
20359
20360 \begin_layout LyX-Code
20361 <tag attr=
20362 \begin_inset Quotes erd
20363 \end_inset
20364
20365 value
20366 \begin_inset Quotes erd
20367 \end_inset
20368
20369 >
20370 \end_layout
20371
20372 \begin_layout LyX-Code
20373 <itemtag attr=
20374 \begin_inset Quotes erd
20375 \end_inset
20376
20377 value
20378 \begin_inset Quotes erd
20379 \end_inset
20380
20381 ><labeltag attr=
20382 \begin_inset Quotes erd
20383 \end_inset
20384
20385 value
20386 \begin_inset Quotes erd
20387 \end_inset
20388
20389 >Environment Label</labeltag>First paragraph.</itemtag>
20390 \end_layout
20391
20392 \begin_layout LyX-Code
20393 <itemtag>Second paragraph.</itemtag>
20394 \end_layout
20395
20396 \begin_layout LyX-Code
20397 </tag>
20398 \end_layout
20399
20400 \begin_layout Standard
20401 Note that the label is output only for the first paragraph, as it should
20402  be for a theorem, for example.
20403  
20404 \end_layout
20405
20406 \begin_layout Standard
20407 For a list, we have one of these forms:
20408 \end_layout
20409
20410 \begin_layout LyX-Code
20411 <tag attr=
20412 \begin_inset Quotes erd
20413 \end_inset
20414
20415 value
20416 \begin_inset Quotes erd
20417 \end_inset
20418
20419 >
20420 \end_layout
20421
20422 \begin_layout LyX-Code
20423 <itemtag attr=
20424 \begin_inset Quotes erd
20425 \end_inset
20426
20427 value
20428 \begin_inset Quotes erd
20429 \end_inset
20430
20431 ><labeltag attr=
20432 \begin_inset Quotes erd
20433 \end_inset
20434
20435 value
20436 \begin_inset Quotes erd
20437 \end_inset
20438
20439 >List Label</labeltag>First item.</itemtag>
20440 \end_layout
20441
20442 \begin_layout LyX-Code
20443 <itemtag attr=
20444 \begin_inset Quotes erd
20445 \end_inset
20446
20447 value
20448 \begin_inset Quotes erd
20449 \end_inset
20450
20451 ><labeltag attr=
20452 \begin_inset Quotes erd
20453 \end_inset
20454
20455 value
20456 \begin_inset Quotes erd
20457 \end_inset
20458
20459 >List Label</labeltag>Second item.</itemtag>
20460 \end_layout
20461
20462 \begin_layout LyX-Code
20463 </tag>
20464 \end_layout
20465
20466 \begin_layout LyX-Code
20467
20468 \end_layout
20469
20470 \begin_layout LyX-Code
20471 <tag attr=
20472 \begin_inset Quotes erd
20473 \end_inset
20474
20475 value
20476 \begin_inset Quotes erd
20477 \end_inset
20478
20479 >
20480 \end_layout
20481
20482 \begin_layout LyX-Code
20483 <labeltag attr=
20484 \begin_inset Quotes erd
20485 \end_inset
20486
20487 value
20488 \begin_inset Quotes erd
20489 \end_inset
20490
20491 >List Label</labeltag><itemtag attr=
20492 \begin_inset Quotes erd
20493 \end_inset
20494
20495 value
20496 \begin_inset Quotes erd
20497 \end_inset
20498
20499 >First item.</itemtag>
20500 \end_layout
20501
20502 \begin_layout LyX-Code
20503 <labeltag attr=
20504 \begin_inset Quotes erd
20505 \end_inset
20506
20507 value
20508 \begin_inset Quotes erd
20509 \end_inset
20510
20511 >List Label</labeltag><itemtag attr=
20512 \begin_inset Quotes erd
20513 \end_inset
20514
20515 value
20516 \begin_inset Quotes erd
20517 \end_inset
20518
20519 >Second item.</itemtag>
20520 \end_layout
20521
20522 \begin_layout LyX-Code
20523 </tag>
20524 \end_layout
20525
20526 \begin_layout Standard
20527 Note the different orders of 
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 labeltag
20533 \end_layout
20534
20535 \end_inset
20536
20537  and 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 itemtag
20543 \end_layout
20544
20545 \end_inset
20546
20547 .
20548  Which order we get depends upon the setting of 
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 HTMLLabelFirst
20554 \end_layout
20555
20556 \end_inset
20557
20558 : If 
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563 HTMLLabelFirst
20564 \end_layout
20565
20566 \end_inset
20567
20568  is false (the default), you get the first of these, with the label within
20569  the item; if true, you get the second, with the label outside the item.
20570 \end_layout
20571
20572 \begin_layout Standard
20573 The specific tags and attributes output for each paragraph type can be controlle
20574 d by means of the layout tags we are about to describe.
20575  As mentioned earlier, however, LyX uses sensible defaults for many of these,
20576  so you often may not need to do very much to get good XHTML output.
20577  Think of the available tags as there so you can tweak things to your liking.
20578 \end_layout
20579
20580 \begin_layout Description
20581 \begin_inset Flex Code
20582 status collapsed
20583
20584 \begin_layout Plain Layout
20585 HTMLAttr
20586 \end_layout
20587
20588 \end_inset
20589
20590  [
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 string
20596 \end_layout
20597
20598 \end_inset
20599
20600 ] Specifies attribute information to be output with the main tag.
20601  For example, 
20602 \begin_inset Quotes eld
20603 \end_inset
20604
20605
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 class=`mydiv'
20611 \end_layout
20612
20613 \end_inset
20614
20615
20616 \begin_inset Quotes erd
20617 \end_inset
20618
20619 .
20620  By default, LyX will output 
20621 \begin_inset Quotes eld
20622 \end_inset
20623
20624
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 class=`layoutname'
20630 \end_layout
20631
20632 \end_inset
20633
20634
20635 \begin_inset Quotes erd
20636 \end_inset
20637
20638 , where 
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 layoutname
20644 \end_layout
20645
20646 \end_inset
20647
20648  is the LyX name of the layout, made lowercase, for example: chapter.
20649  This should 
20650 \emph on
20651 not
20652 \emph default
20653  contain any style information.
20654  Use 
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 HTMLStyle
20660 \end_layout
20661
20662 \end_inset
20663
20664  for that purpose.
20665 \end_layout
20666
20667 \begin_layout Description
20668 \begin_inset Flex Code
20669 status collapsed
20670
20671 \begin_layout Plain Layout
20672 HTMLForceCSS
20673 \end_layout
20674
20675 \end_inset
20676
20677  [
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682
20683 \emph on
20684 0
20685 \emph default
20686 ,1
20687 \end_layout
20688
20689 \end_inset
20690
20691 ] Whether to output the default CSS information LyX generates for this layout,
20692  even if additional information is explicitly provided via 
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 HTMLStyle
20698 \end_layout
20699
20700 \end_inset
20701
20702 .
20703  Setting this to 
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 1
20709 \end_layout
20710
20711 \end_inset
20712
20713  allows you to alter or augment the generated CSS, rather than to override
20714  it completely.
20715  Default is 
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 0
20721 \end_layout
20722
20723 \end_inset
20724
20725 .
20726 \end_layout
20727
20728 \begin_layout Description
20729 \begin_inset Flex Code
20730 status collapsed
20731
20732 \begin_layout Plain Layout
20733 HTMLItem
20734 \end_layout
20735
20736 \end_inset
20737
20738  [
20739 \begin_inset Flex Code
20740 status collapsed
20741
20742 \begin_layout Plain Layout
20743 string
20744 \end_layout
20745
20746 \end_inset
20747
20748 ] The tag to be used for individual paragraphs of environments, replacing
20749  
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754 itemtag
20755 \end_layout
20756
20757 \end_inset
20758
20759  in the examples above.
20760  Defaults to 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 div
20766 \end_layout
20767
20768 \end_inset
20769
20770 .
20771 \end_layout
20772
20773 \begin_layout Description
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778 HTMLItemAttr
20779 \end_layout
20780
20781 \end_inset
20782
20783  [
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 string
20789 \end_layout
20790
20791 \end_inset
20792
20793 ] Attributes for the item tag.
20794  Defaults to 
20795 \begin_inset Quotes eld
20796 \end_inset
20797
20798
20799 \begin_inset Flex Code
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803 class=`layoutname_item'
20804 \end_layout
20805
20806 \end_inset
20807
20808
20809 \begin_inset Quotes erd
20810 \end_inset
20811
20812 .
20813  This should 
20814 \emph on
20815 not
20816 \emph default
20817  contain any style information.
20818  Use 
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 HTMLStyle
20824 \end_layout
20825
20826 \end_inset
20827
20828  for that purpose.
20829 \end_layout
20830
20831 \begin_layout Description
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 HTMLLabel
20837 \end_layout
20838
20839 \end_inset
20840
20841  [
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 string
20847 \end_layout
20848
20849 \end_inset
20850
20851 ] The tag to be used for paragraph and item labels, replacing 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 labeltag
20857 \end_layout
20858
20859 \end_inset
20860
20861  in the examples above.
20862  Defaults to 
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 span
20868 \end_layout
20869
20870 \end_inset
20871
20872 , unless 
20873 \begin_inset Flex Code
20874 status collapsed
20875
20876 \begin_layout Plain Layout
20877 LabelType
20878 \end_layout
20879
20880 \end_inset
20881
20882  is either 
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 Top_Environment
20888 \end_layout
20889
20890 \end_inset
20891
20892  or 
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897 Centered_Top_Environment
20898 \end_layout
20899
20900 \end_inset
20901
20902 , in which case it defaults to 
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 div
20908 \end_layout
20909
20910 \end_inset
20911
20912 .
20913 \end_layout
20914
20915 \begin_layout Description
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 HTMLLabelAttr
20921 \end_layout
20922
20923 \end_inset
20924
20925  [
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 string
20931 \end_layout
20932
20933 \end_inset
20934
20935 ] Attributes for the label tag.
20936  Defaults to 
20937 \begin_inset Quotes eld
20938 \end_inset
20939
20940
20941 \begin_inset Flex Code
20942 status collapsed
20943
20944 \begin_layout Plain Layout
20945 class=`layoutname_label'
20946 \end_layout
20947
20948 \end_inset
20949
20950
20951 \begin_inset Quotes erd
20952 \end_inset
20953
20954 .
20955  This should 
20956 \emph on
20957 not
20958 \emph default
20959  contain any style information.
20960  Use 
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 HTMLStyle
20966 \end_layout
20967
20968 \end_inset
20969
20970  for that purpose.
20971 \end_layout
20972
20973 \begin_layout Description
20974 \begin_inset Flex Code
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978 HTMLLabelFirst
20979 \end_layout
20980
20981 \end_inset
20982
20983  [
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988
20989 \emph on
20990 0
20991 \emph default
20992 ,1
20993 \end_layout
20994
20995 \end_inset
20996
20997 ] Meaningful only for list-like environments, this tag controls whether
20998  the label tag is output before or inside the item tag.
20999  This is used, for example, in the description environment, where we want
21000  `
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 <dt>\SpecialChar \ldots{}
21006 </dt><dd>\SpecialChar \ldots{}
21007 </dd>
21008 \end_layout
21009
21010 \end_inset
21011
21012 .
21013  Default is 
21014 \begin_inset Flex Code
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 0
21019 \end_layout
21020
21021 \end_inset
21022
21023 : The label tag is output inside the item tag.
21024 \end_layout
21025
21026 \begin_layout Description
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 HTMLPreamble
21032 \end_layout
21033
21034 \end_inset
21035
21036  Information to be output in the 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 <head>
21042 \end_layout
21043
21044 \end_inset
21045
21046  section when this style is used.
21047  This might, for example, be used to include a 
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 <script>
21053 \end_layout
21054
21055 \end_inset
21056
21057  block defining an 
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 onclick
21063 \end_layout
21064
21065 \end_inset
21066
21067  handler.
21068 \end_layout
21069
21070 \begin_layout Description
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 HTMLStyle
21076 \end_layout
21077
21078 \end_inset
21079
21080  CSS style information to be included when this style is used.
21081  Note that this will automatically be wrapped in a layout-generated 
21082 \begin_inset Flex Code
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086 <style>
21087 \end_layout
21088
21089 \end_inset
21090
21091  block, so only the CSS itself need be included.
21092 \end_layout
21093
21094 \begin_layout Description
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 HTMLTag
21100 \end_layout
21101
21102 \end_inset
21103
21104  [
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 string
21110 \end_layout
21111
21112 \end_inset
21113
21114 ] The tag to be used for the main label, replacing 
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 tag
21120 \end_layout
21121
21122 \end_inset
21123
21124  in the examples above.
21125  Defaults to 
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 div
21131 \end_layout
21132
21133 \end_inset
21134
21135 .
21136 \end_layout
21137
21138 \begin_layout Description
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 HTMLTitle
21144 \end_layout
21145
21146 \end_inset
21147
21148  [
21149 \begin_inset Flex Code
21150 status collapsed
21151
21152 \begin_layout Plain Layout
21153
21154 \emph on
21155 0
21156 \emph default
21157 ,1
21158 \end_layout
21159
21160 \end_inset
21161
21162 ] Marks this style as the one to be used to generate 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  tag for the XHTML file.
21173  By default, it is false.
21174  The 
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 stdtitle.inc
21180 \end_layout
21181
21182 \end_inset
21183
21184  file sets it to true for the 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189 title
21190 \end_layout
21191
21192 \end_inset
21193
21194  environment.
21195  
21196 \end_layout
21197
21198 \begin_layout Subsection
21199 InsetLayout XHTML
21200 \end_layout
21201
21202 \begin_layout Standard
21203 The XHTML output of insets can also be controlled by information in layout
21204  files.
21205 \begin_inset Foot
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209 At present, this is true only for 
21210 \begin_inset Quotes eld
21211 \end_inset
21212
21213 text
21214 \begin_inset Quotes erd
21215 \end_inset
21216
21217  insets (insets you can type into) and is not true for 
21218 \begin_inset Quotes eld
21219 \end_inset
21220
21221 command
21222 \begin_inset Quotes erd
21223 \end_inset
21224
21225  insets (insets that are associated with dialog boxes).
21226 \end_layout
21227
21228 \end_inset
21229
21230  Here, too, LyX tries to provide sensible defaults, and it constructs default
21231  CSS style rules.
21232  But everything can be customized.
21233 \end_layout
21234
21235 \begin_layout Standard
21236 The XHTML LyX outputs for an inset has the following form:
21237 \end_layout
21238
21239 \begin_layout LyX-Code
21240 <tag attr=
21241 \begin_inset Quotes erd
21242 \end_inset
21243
21244 value
21245 \begin_inset Quotes erd
21246 \end_inset
21247
21248 >
21249 \end_layout
21250
21251 \begin_layout LyX-Code
21252 <labeltag>Label</labeltag>
21253 \end_layout
21254
21255 \begin_layout LyX-Code
21256 <innertag attr=
21257 \begin_inset Quotes erd
21258 \end_inset
21259
21260 value
21261 \begin_inset Quotes erd
21262 \end_inset
21263
21264 >Contents of the inset.</innertag>
21265 \end_layout
21266
21267 \begin_layout LyX-Code
21268 </tag>
21269 \end_layout
21270
21271 \begin_layout Standard
21272 If the inset permits multiple paragraphs---that is, if 
21273 \begin_inset Flex Code
21274 status collapsed
21275
21276 \begin_layout Plain Layout
21277 MultiPar
21278 \end_layout
21279
21280 \end_inset
21281
21282  is true---then the contents of the inset will itself be output as paragraphs
21283  formatted according to the styles used for those paragraphs (standard,
21284  quote, and the like).
21285  The label tag is of course omitted if the paragraph does not have a label
21286  and, at present, is always 
21287 \begin_inset Flex Code
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 span
21292 \end_layout
21293
21294 \end_inset
21295
21296 .
21297  The inner tag is optional and, by default, does not appear.
21298 \end_layout
21299
21300 \begin_layout Standard
21301 The specific tags and attributes output for each inset can be controlled
21302  by means of the following layout tags.
21303 \end_layout
21304
21305 \begin_layout Description
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 HTMLAttr
21311 \end_layout
21312
21313 \end_inset
21314
21315  [
21316 \begin_inset Flex Code
21317 status collapsed
21318
21319 \begin_layout Plain Layout
21320 string
21321 \end_layout
21322
21323 \end_inset
21324
21325 ] Specifies attribute information to be output with the main tag.
21326  For example, 
21327 \begin_inset Quotes eld
21328 \end_inset
21329
21330
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 class=`myinset' onclick=`\SpecialChar \ldots{}
21336 '
21337 \end_layout
21338
21339 \end_inset
21340
21341
21342 \begin_inset Quotes erd
21343 \end_inset
21344
21345 .
21346  By default, LyX will output 
21347 \begin_inset Quotes eld
21348 \end_inset
21349
21350
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355 class=`insetname'
21356 \end_layout
21357
21358 \end_inset
21359
21360
21361 \begin_inset Quotes erd
21362 \end_inset
21363
21364 , where 
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 insetname
21370 \end_layout
21371
21372 \end_inset
21373
21374  is the LyX name of the inset, made lowercase and with non-alphanumeric
21375  characters converted to underscores, for example: footnote.
21376 \end_layout
21377
21378 \begin_layout Description
21379 \begin_inset Flex Code
21380 status collapsed
21381
21382 \begin_layout Plain Layout
21383 HTMLForceCSS
21384 \end_layout
21385
21386 \end_inset
21387
21388  [
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393
21394 \emph on
21395 0
21396 \emph default
21397 ,1
21398 \end_layout
21399
21400 \end_inset
21401
21402 ] Whether to output the default CSS information LyX generates for this layout,
21403  even if additional information is explicitly provided via 
21404 \begin_inset Flex Code
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 HTMLStyle
21409 \end_layout
21410
21411 \end_inset
21412
21413 .
21414  Setting this to 
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419 1
21420 \end_layout
21421
21422 \end_inset
21423
21424  allows you to alter or augment the generated CSS, rather than to override
21425  it completely.
21426  Default is 0.
21427 \end_layout
21428
21429 \begin_layout Description
21430 \begin_inset Flex Code
21431 status collapsed
21432
21433 \begin_layout Plain Layout
21434 HTMLInnerAttr
21435 \end_layout
21436
21437 \end_inset
21438
21439  [
21440 \begin_inset Flex Code
21441 status collapsed
21442
21443 \begin_layout Plain Layout
21444 string
21445 \end_layout
21446
21447 \end_inset
21448
21449 ] Attributes for the inner tag.
21450  Defaults to 
21451 \begin_inset Quotes eld
21452 \end_inset
21453
21454
21455 \begin_inset Flex Code
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 class=`insetname_inner'
21460 \end_layout
21461
21462 \end_inset
21463
21464
21465 \begin_inset Quotes erd
21466 \end_inset
21467
21468 .
21469 \end_layout
21470
21471 \begin_layout Description
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 HTMLInnerTag
21477 \end_layout
21478
21479 \end_inset
21480
21481  [
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 string
21487 \end_layout
21488
21489 \end_inset
21490
21491 ] The inner tag, replacing 
21492 \begin_inset Flex Code
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 innertag
21497 \end_layout
21498
21499 \end_inset
21500
21501  in the examples above.
21502  By default, there is none.
21503 \end_layout
21504
21505 \begin_layout Description
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 HTMLIsBlock
21511 \end_layout
21512
21513 \end_inset
21514
21515  [
21516 \begin_inset Flex Code
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 0,
21521 \emph on
21522 1
21523 \end_layout
21524
21525 \end_inset
21526
21527 ] Whether this inset represents a standalone block of text (such as a footnote)
21528  or instead represents material that is included in the surrounding text
21529  (such as a branch).
21530  Defaults to 1.
21531 \end_layout
21532
21533 \begin_layout Description
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 HTMLLabel
21539 \end_layout
21540
21541 \end_inset
21542
21543  [
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 string
21549 \end_layout
21550
21551 \end_inset
21552
21553 ] A label for this inset, possibly including a reference to a counter.
21554  For example, for footnote, it might be: 
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559
21560 \backslash
21561 arabic{footnote}
21562 \end_layout
21563
21564 \end_inset
21565
21566 .
21567  This is optional, and there is no default.
21568 \end_layout
21569
21570 \begin_layout Description
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575 HTMLPreamble
21576 \end_layout
21577
21578 \end_inset
21579
21580  Information to be output in the 
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 <head>
21586 \end_layout
21587
21588 \end_inset
21589
21590  section when this style is used.
21591  This might, for example, be used to include a 
21592 \begin_inset Flex Code
21593 status collapsed
21594
21595 \begin_layout Plain Layout
21596 <script>
21597 \end_layout
21598
21599 \end_inset
21600
21601  block defining an 
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 onclick
21607 \end_layout
21608
21609 \end_inset
21610
21611  handler.
21612 \end_layout
21613
21614 \begin_layout Description
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 HTMLStyle
21620 \end_layout
21621
21622 \end_inset
21623
21624  CSS style information to be included when this style is used.
21625  Note that this will automatically be wrapped in a layout-generated 
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 <style>
21631 \end_layout
21632
21633 \end_inset
21634
21635  block, so only the CSS itself need be included.
21636 \end_layout
21637
21638 \begin_layout Description
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 HTMLTag
21644 \end_layout
21645
21646 \end_inset
21647
21648  [
21649 \begin_inset Flex Code
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653 string
21654 \end_layout
21655
21656 \end_inset
21657
21658 ] The tag to be used for the main label, replacing 
21659 \begin_inset Flex Code
21660 status collapsed
21661
21662 \begin_layout Plain Layout
21663 tag
21664 \end_layout
21665
21666 \end_inset
21667
21668  in the examples above.
21669  The default depends upon the setting of 
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 MultiPar
21675 \end_layout
21676
21677 \end_inset
21678
21679 : If 
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 MultiPar
21685 \end_layout
21686
21687 \end_inset
21688
21689  is true, the default is 
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 div
21695 \end_layout
21696
21697 \end_inset
21698
21699 ; if it is false, the default is 
21700 \begin_inset Flex Code
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 span
21705 \end_layout
21706
21707 \end_inset
21708
21709 .
21710 \end_layout
21711
21712 \begin_layout Subsection
21713 Float XHTML
21714 \end_layout
21715
21716 \begin_layout Standard
21717 The XHTML output for floats too can be controlled by layout information.
21718  The output has the following form:
21719 \end_layout
21720
21721 \begin_layout LyX-Code
21722 <tag attr=
21723 \begin_inset Quotes erd
21724 \end_inset
21725
21726 value
21727 \begin_inset Quotes erd
21728 \end_inset
21729
21730 >
21731 \end_layout
21732
21733 \begin_layout LyX-Code
21734 Contents of the float.
21735 \end_layout
21736
21737 \begin_layout LyX-Code
21738 </tag>
21739 \end_layout
21740
21741 \begin_layout Standard
21742 The caption, if there is one, is a separate inset and will be output as
21743  such.
21744  Its appearance can be controlled via the InsetLayout for caption insets.
21745  
21746 \end_layout
21747
21748 \begin_layout Description
21749 \begin_inset Flex Code
21750 status collapsed
21751
21752 \begin_layout Plain Layout
21753 HTMLAttr
21754 \end_layout
21755
21756 \end_inset
21757
21758  [
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763 string
21764 \end_layout
21765
21766 \end_inset
21767
21768 ] Specifies attribute information to be output with the main tag.
21769  For example, 
21770 \begin_inset Quotes eld
21771 \end_inset
21772
21773
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 class=`myfloat' onclick=`\SpecialChar \ldots{}
21779 '
21780 \end_layout
21781
21782 \end_inset
21783
21784
21785 \begin_inset Quotes erd
21786 \end_inset
21787
21788 .
21789  By default, LyX will output 
21790 \begin_inset Quotes eld
21791 \end_inset
21792
21793
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798 class=`float float-floattype'
21799 \end_layout
21800
21801 \end_inset
21802
21803
21804 \begin_inset Quotes erd
21805 \end_inset
21806
21807 , where 
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 floattype
21813 \end_layout
21814
21815 \end_inset
21816
21817  is LyX's name for this type of float, as determined by the float declaration
21818  (see 
21819 \begin_inset CommandInset ref
21820 LatexCommand ref
21821 reference "sub:Floats"
21822
21823 \end_inset
21824
21825 ), though made lowercase and with non-alphanumeric characters converted
21826  to underscores, for example: float-table.
21827 \end_layout
21828
21829 \begin_layout Description
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 HTMLStyle
21835 \end_layout
21836
21837 \end_inset
21838
21839  CSS style information to be included when this float is used.
21840  Note that this will automatically be wrapped in a layout-generated 
21841 \begin_inset Flex Code
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845 <style>
21846 \end_layout
21847
21848 \end_inset
21849
21850  block, so only the CSS itself need be included.
21851 \end_layout
21852
21853 \begin_layout Description
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 HTMLTag
21859 \end_layout
21860
21861 \end_inset
21862
21863  [
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 string
21869 \end_layout
21870
21871 \end_inset
21872
21873 ] The tag to be used for this float, replacing 
21874 \begin_inset Quotes eld
21875 \end_inset
21876
21877
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 tag
21883 \end_layout
21884
21885 \end_inset
21886
21887
21888 \begin_inset Quotes erd
21889 \end_inset
21890
21891  in the example above.
21892  The default is 
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897 div
21898 \end_layout
21899
21900 \end_inset
21901
21902  and will rarely need changing.
21903 \end_layout
21904
21905 \begin_layout Subsection
21906 Bibliography formatting
21907 \end_layout
21908
21909 \begin_layout Standard
21910 The bibliography can be formatted using 
21911 \begin_inset Flex Code
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915 CiteFormat
21916 \end_layout
21917
21918 \end_inset
21919
21920  blocks.
21921  See Section 
21922 \begin_inset CommandInset ref
21923 LatexCommand ref
21924 reference "sub:Citation-format-description"
21925
21926 \end_inset
21927
21928  for the details.
21929 \end_layout
21930
21931 \begin_layout Subsection
21932 LyX-generated CSS
21933 \end_layout
21934
21935 \begin_layout Standard
21936 We have several times mentioned that LyX will generate default CSS style
21937  rules for both insets and paragraph styles, based upon the other layout
21938  information that is provided.
21939  In this section, we shall say a word about which layout information LyX
21940  uses and how.
21941 \end_layout
21942
21943 \begin_layout Standard
21944 At present, LyX auto-generates CSS only for font information, making use
21945  of the 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 Family
21951 \end_layout
21952
21953 \end_inset
21954
21955
21956 \begin_inset Flex Code
21957 status collapsed
21958
21959 \begin_layout Plain Layout
21960 Series
21961 \end_layout
21962
21963 \end_inset
21964
21965
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 Shape
21971 \end_layout
21972
21973 \end_inset
21974
21975 , and 
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 Size
21981 \end_layout
21982
21983 \end_inset
21984
21985  specified in the 
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 Font
21991 \end_layout
21992
21993 \end_inset
21994
21995  declaration.
21996  (See 
21997 \begin_inset CommandInset ref
21998 LatexCommand ref
21999 reference "sub:Font-description"
22000
22001 \end_inset
22002
22003 .) The translation is mostly straightforward and obvious.
22004  For example, 
22005 \begin_inset Quotes eld
22006 \end_inset
22007
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 Family Sans
22014 \end_layout
22015
22016 \end_inset
22017
22018
22019 \begin_inset Quotes erd
22020 \end_inset
22021
22022  becomes 
22023 \begin_inset Quotes eld
22024 \end_inset
22025
22026
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 font-family: sans-serif;
22032 \end_layout
22033
22034 \end_inset
22035
22036
22037 \begin_inset Quotes erd
22038 \end_inset
22039
22040 .
22041  The correspondence of LyX sizes and CSS sizes is a little less obvious
22042  but nonetheless intuitive.
22043  See the 
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 getSizeCSS()
22049 \end_layout
22050
22051 \end_inset
22052
22053  function in 
22054 \begin_inset Flex URL
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058
22059 src/FontInfo.cpp
22060 \end_layout
22061
22062 \end_inset
22063
22064  for the details.
22065 \end_layout
22066
22067 \begin_layout Chapter
22068 Including External Material
22069 \end_layout
22070
22071 \begin_layout Standard
22072 \begin_inset Box Shadowbox
22073 position "t"
22074 hor_pos "c"
22075 has_inner_box 1
22076 inner_pos "t"
22077 use_parbox 0
22078 use_makebox 0
22079 width "100col%"
22080 special "none"
22081 height "1in"
22082 height_special "totalheight"
22083 status open
22084
22085 \begin_layout Plain Layout
22086 WARNING: This portion of the documentation has not been updated for some
22087  time.
22088  We certainly hope that it is still accurate, but there are no guarantees.
22089 \end_layout
22090
22091 \end_inset
22092
22093
22094 \end_layout
22095
22096 \begin_layout Standard
22097 The use of material from sources external to LyX is covered in detail in
22098  the 
22099 \emph on
22100 Embedded Objects
22101 \emph default
22102  manual.
22103  This part of the manual covers what needs to happen behind the scenes for
22104  new sorts of material to be included.
22105 \end_layout
22106
22107 \begin_layout Section
22108 How does it work?
22109 \end_layout
22110
22111 \begin_layout Standard
22112 The external material feature is based on the concept of a 
22113 \emph on
22114 template
22115 \emph default
22116 .
22117  A template is a specification of how LyX should interface with a certain
22118  kind of material.
22119  As bundled, LyX comes with predefined templates for Xfig figures, various
22120  raster format images, chess diagrams, and LilyPond music notation.
22121  You can check the actual list by using the menu 
22122 \begin_inset Flex MenuItem
22123 status collapsed
22124
22125 \begin_layout Plain Layout
22126 Insert\SpecialChar \menuseparator
22127 File\SpecialChar \menuseparator
22128 External Material
22129 \end_layout
22130
22131 \end_inset
22132
22133 .
22134  Furthermore, it is possible to roll your own template to support a specific
22135  kind of material.
22136  Later we'll describe in more detail what is involved, and hopefully you
22137  will submit all the templates you create so we can include them in a later
22138  LyX version.
22139 \end_layout
22140
22141 \begin_layout Standard
22142 Another basic idea of the external material feature is to distinguish between
22143  the original file that serves as a base for final material and the produced
22144  file that is included in your exported or printed document.
22145  For example, consider the case of a figure produced with 
22146 \begin_inset Flex Code
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 Xfig
22151 \end_layout
22152
22153 \end_inset
22154
22155 .
22156  The Xfig application itself works on an original file with the 
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 .fig
22162 \end_layout
22163
22164 \end_inset
22165
22166  extension.
22167  Within Xfig, you create and change your figure, and when you are done,
22168  you save the 
22169 \begin_inset Flex Code
22170 status collapsed
22171
22172 \begin_layout Plain Layout
22173 fig
22174 \end_layout
22175
22176 \end_inset
22177
22178 -file.
22179  When you want to include the figure in your document, you invoke 
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 transfig
22185 \end_layout
22186
22187 \end_inset
22188
22189  in order to create a PostScript file that can readily be included in your
22190  LaTeX file.
22191  In this case, the 
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 .fig
22197 \end_layout
22198
22199 \end_inset
22200
22201  file is the original file, and the PostScript file is the produced file.
22202 \end_layout
22203
22204 \begin_layout Standard
22205 This distinction is important in order to allow updating of the material
22206  while you are in the process of writing the document.
22207  Furthermore, it provides us with the flexibility that is needed to support
22208  multiple export formats.
22209  For instance, in the case of a plain text file, it is not exactly an award-winn
22210 ing idea to include the figure as raw PostScript.
22211  Instead, you would either prefer to just include a reference to the figure
22212  or try to invoke some graphics to ASCII converter to make the final result
22213  look similar to the real graphics.
22214  The external material management allows you to do this, because it is parametri
22215 zed on the different export formats that LyX supports.
22216 \end_layout
22217
22218 \begin_layout Standard
22219 Besides supporting the production of different products according to the
22220  exported format, it supports tight integration with editing and viewing
22221  applications.
22222  In the case of an Xfig figure, you are able to invoke Xfig on the original
22223  file with a single click from within the external material dialog in LyX,
22224  and also preview the produced PostScript file with Ghostview with another
22225  click.
22226  No more fiddling around with the command line and/or file browsers to locate
22227  and manipulate the original or produced files.
22228  In this way, you are finally able to take full advantage of the many different
22229  applications that are relevant to use when you write your documents, and
22230  ultimately be more productive.
22231 \end_layout
22232
22233 \begin_layout Section
22234 The external template configuration file
22235 \end_layout
22236
22237 \begin_layout Standard
22238 It is relatively easy to add custom external template definitions to LyX.
22239  However, be aware that doing this in an careless manner most probably 
22240 \emph on
22241 will
22242 \emph default
22243  introduce an easily exploitable security hole.
22244  So before you do this, please read the discussion about security in section
22245  
22246 \begin_inset CommandInset ref
22247 LatexCommand ref
22248 reference "sec:Security-discussion"
22249
22250 \end_inset
22251
22252 .
22253 \end_layout
22254
22255 \begin_layout Standard
22256 Having said that, we encourage you to submit any interesting templates that
22257  you create.
22258  
22259 \end_layout
22260
22261 \begin_layout Standard
22262 The external templates are defined in the 
22263 \begin_inset Flex Code
22264 status collapsed
22265
22266 \begin_layout Plain Layout
22267 LyXDir/lib/external_templates
22268 \end_layout
22269
22270 \end_inset
22271
22272  file.
22273  You can place your own version in 
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 UserDir/external_templates
22279 \end_layout
22280
22281 \end_inset
22282
22283 .
22284 \end_layout
22285
22286 \begin_layout Standard
22287 A typical template looks like this:
22288 \end_layout
22289
22290 \begin_layout LyX-Code
22291 Template XFig
22292 \end_layout
22293
22294 \begin_layout LyX-Code
22295 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22296 \end_layout
22297
22298 \begin_layout LyX-Code
22299 HelpText
22300 \end_layout
22301
22302 \begin_layout LyX-Code
22303 An XFig figure.
22304 \end_layout
22305
22306 \begin_layout LyX-Code
22307 HelpTextEnd
22308 \end_layout
22309
22310 \begin_layout LyX-Code
22311 InputFormat fig
22312 \end_layout
22313
22314 \begin_layout LyX-Code
22315 FileFilter "*.fig"
22316 \end_layout
22317
22318 \begin_layout LyX-Code
22319 AutomaticProduction true
22320 \end_layout
22321
22322 \begin_layout LyX-Code
22323 Transform Rotate
22324 \end_layout
22325
22326 \begin_layout LyX-Code
22327 Transform Resize
22328 \end_layout
22329
22330 \begin_layout LyX-Code
22331 Format LaTeX
22332 \end_layout
22333
22334 \begin_layout LyX-Code
22335 TransformCommand Rotate RotationLatexCommand
22336 \end_layout
22337
22338 \begin_layout LyX-Code
22339 TransformCommand Resize ResizeLatexCommand
22340 \end_layout
22341
22342 \begin_layout LyX-Code
22343 Product "$$RotateFront$$ResizeFront
22344 \end_layout
22345
22346 \begin_layout LyX-Code
22347          
22348 \backslash
22349
22350 \backslash
22351 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22352 \end_layout
22353
22354 \begin_layout LyX-Code
22355          $$ResizeBack$$RotateBack"
22356 \end_layout
22357
22358 \begin_layout LyX-Code
22359 UpdateFormat pstex
22360 \end_layout
22361
22362 \begin_layout LyX-Code
22363 UpdateResult "$$AbsPath$$Basename.pstex_t"
22364 \end_layout
22365
22366 \begin_layout LyX-Code
22367 Requirement "graphicx"
22368 \end_layout
22369
22370 \begin_layout LyX-Code
22371 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22372 \end_layout
22373
22374 \begin_layout LyX-Code
22375 ReferencedFile latex "$$AbsPath$$Basename.eps"
22376 \end_layout
22377
22378 \begin_layout LyX-Code
22379 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22380 \end_layout
22381
22382 \begin_layout LyX-Code
22383 FormatEnd
22384 \end_layout
22385
22386 \begin_layout LyX-Code
22387 Format PDFLaTeX
22388 \end_layout
22389
22390 \begin_layout LyX-Code
22391 TransformCommand Rotate RotationLatexCommand
22392 \end_layout
22393
22394 \begin_layout LyX-Code
22395 TransformCommand Resize ResizeLatexCommand
22396 \end_layout
22397
22398 \begin_layout LyX-Code
22399 Product "$$RotateFront$$ResizeFront
22400 \end_layout
22401
22402 \begin_layout LyX-Code
22403          
22404 \backslash
22405
22406 \backslash
22407 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22408 \end_layout
22409
22410 \begin_layout LyX-Code
22411          $$ResizeBack$$RotateBack"
22412 \end_layout
22413
22414 \begin_layout LyX-Code
22415 UpdateFormat pdftex
22416 \end_layout
22417
22418 \begin_layout LyX-Code
22419 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22420 \end_layout
22421
22422 \begin_layout LyX-Code
22423 Requirement "graphicx"
22424 \end_layout
22425
22426 \begin_layout LyX-Code
22427 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22428 \end_layout
22429
22430 \begin_layout LyX-Code
22431 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22432 \end_layout
22433
22434 \begin_layout LyX-Code
22435 FormatEnd
22436 \end_layout
22437
22438 \begin_layout LyX-Code
22439 Format Ascii
22440 \end_layout
22441
22442 \begin_layout LyX-Code
22443 Product "$$Contents(
22444 \backslash
22445 "$$AbsPath$$Basename.asc
22446 \backslash
22447 ")"
22448 \end_layout
22449
22450 \begin_layout LyX-Code
22451 UpdateFormat asciixfig
22452 \end_layout
22453
22454 \begin_layout LyX-Code
22455 UpdateResult "$$AbsPath$$Basename.asc"
22456 \end_layout
22457
22458 \begin_layout LyX-Code
22459 FormatEnd
22460 \end_layout
22461
22462 \begin_layout LyX-Code
22463 Format DocBook
22464 \end_layout
22465
22466 \begin_layout LyX-Code
22467 Product "<graphic fileref=
22468 \backslash
22469 "$$AbsOrRelPathMaster$$Basename.eps
22470 \backslash
22471 ">
22472 \end_layout
22473
22474 \begin_layout LyX-Code
22475          </graphic>"
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 UpdateFormat eps
22480 \end_layout
22481
22482 \begin_layout LyX-Code
22483 UpdateResult "$$AbsPath$$Basename.eps"
22484 \end_layout
22485
22486 \begin_layout LyX-Code
22487 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22488 \end_layout
22489
22490 \begin_layout LyX-Code
22491 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22492 \end_layout
22493
22494 \begin_layout LyX-Code
22495 FormatEnd
22496 \end_layout
22497
22498 \begin_layout LyX-Code
22499 Product "[XFig: $$FName]"
22500 \end_layout
22501
22502 \begin_layout LyX-Code
22503 FormatEnd
22504 \end_layout
22505
22506 \begin_layout LyX-Code
22507 TemplateEnd
22508 \end_layout
22509
22510 \begin_layout Standard
22511 As you can see, the template is enclosed in 
22512 \begin_inset Flex Code
22513 status collapsed
22514
22515 \begin_layout Plain Layout
22516 Template
22517 \end_layout
22518
22519 \end_inset
22520
22521  \SpecialChar \ldots{}
22522  
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 TemplateEnd
22528 \end_layout
22529
22530 \end_inset
22531
22532 .
22533  It contains a header specifying some general settings and, for each supported
22534  primary document file format, a section 
22535 \begin_inset Flex Code
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 Format
22540 \end_layout
22541
22542 \end_inset
22543
22544  \SpecialChar \ldots{}
22545  
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 FormatEnd
22551 \end_layout
22552
22553 \end_inset
22554
22555 .
22556 \end_layout
22557
22558 \begin_layout Subsection
22559 The template header
22560 \end_layout
22561
22562 \begin_layout Description
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 AutomaticProduction
22568 \begin_inset space ~
22569 \end_inset
22570
22571 true|false
22572 \end_layout
22573
22574 \end_inset
22575
22576  Whether the file represented by the template must be generated by LyX.
22577  This command must occur exactly once.
22578 \end_layout
22579
22580 \begin_layout Description
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 FileFilter
22586 \begin_inset space ~
22587 \end_inset
22588
22589 <pattern>
22590 \end_layout
22591
22592 \end_inset
22593
22594  A glob pattern that is used in the file dialog to filter out the desired
22595  files.
22596  If there is more than one possible file extension (e.
22597 \begin_inset space \thinspace{}
22598 \end_inset
22599
22600 g.
22601 \begin_inset space \space{}
22602 \end_inset
22603
22604 tgif has 
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 .obj
22610 \end_layout
22611
22612 \end_inset
22613
22614  and 
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 .tgo
22620 \end_layout
22621
22622 \end_inset
22623
22624 ), use something like 
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 "*.{obj,tgo}"
22630 \end_layout
22631
22632 \end_inset
22633
22634 .
22635  This command must occur exactly once.
22636 \end_layout
22637
22638 \begin_layout Description
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 GuiName
22644 \begin_inset space ~
22645 \end_inset
22646
22647 <guiname>
22648 \end_layout
22649
22650 \end_inset
22651
22652  The text that is displayed on the button.
22653  This command must occur exactly once.
22654 \end_layout
22655
22656 \begin_layout Description
22657 \begin_inset Flex Code
22658 status collapsed
22659
22660 \begin_layout Plain Layout
22661 HelpText
22662 \begin_inset space ~
22663 \end_inset
22664
22665 <text>
22666 \begin_inset space ~
22667 \end_inset
22668
22669 HelpTextEnd
22670 \end_layout
22671
22672 \end_inset
22673
22674  The help text that is used in the External dialog.
22675  Provide enough information to explain to the user just what the template
22676  can provide him with.
22677  This command must occur exactly once.
22678 \end_layout
22679
22680 \begin_layout Description
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685 InputFormat
22686 \begin_inset space ~
22687 \end_inset
22688
22689 <format>
22690 \end_layout
22691
22692 \end_inset
22693
22694  The file format of the original file.
22695  This must be the name of a format that is known to LyX (see section
22696 \begin_inset space ~
22697 \end_inset
22698
22699
22700 \begin_inset CommandInset ref
22701 LatexCommand ref
22702 reference "sec:Formats"
22703
22704 \end_inset
22705
22706 ).
22707  Use 
22708 \begin_inset Quotes eld
22709 \end_inset
22710
22711
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 *
22717 \end_layout
22718
22719 \end_inset
22720
22721
22722 \begin_inset Quotes erd
22723 \end_inset
22724
22725  if the template can handle original files of more than one format.
22726  LyX will attempt to interrogate the file itself in order to deduce its
22727  format in this case.
22728  This command must occur exactly once.
22729 \end_layout
22730
22731 \begin_layout Description
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 Template
22737 \begin_inset space ~
22738 \end_inset
22739
22740 <id>
22741 \end_layout
22742
22743 \end_inset
22744
22745  A unique name for the template.
22746  It must not contain substitution macros (see below).
22747 \end_layout
22748
22749 \begin_layout Description
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754 Transform
22755 \begin_inset space ~
22756 \end_inset
22757
22758 Rotate|Resize|Clip|Extra
22759 \end_layout
22760
22761 \end_inset
22762
22763  This command specifies which transformations are supported by this template.
22764  It may occur zero or more times.
22765  This command enables the corresponding tabs in the external dialog.
22766  Each 
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 Transform
22772 \end_layout
22773
22774 \end_inset
22775
22776  command must have either a corresponding 
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 TransformCommand
22782 \end_layout
22783
22784 \end_inset
22785
22786  or a 
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 TransformOption
22792 \end_layout
22793
22794 \end_inset
22795
22796  command in the 
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 Format
22802 \end_layout
22803
22804 \end_inset
22805
22806  section.
22807  Otherwise the transformation will not be supported by that format.
22808 \end_layout
22809
22810 \begin_layout Subsection
22811 The Format section
22812 \end_layout
22813
22814 \begin_layout Description
22815 \begin_inset Flex Code
22816 status collapsed
22817
22818 \begin_layout Plain Layout
22819 Format
22820 \begin_inset space ~
22821 \end_inset
22822
22823 LaTeX|PDFLaTeX|PlainText|DocBook
22824 \end_layout
22825
22826 \end_inset
22827
22828  The primary document file format that this format definition is for.
22829  Not every template has a sensible representation in all document file formats.
22830  Please define nevertheless a 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 Format
22836 \end_layout
22837
22838 \end_inset
22839
22840  section for all templates.
22841  Use a dummy text when no representation is available.
22842  Then you can at least see a reference to the external material in the exported
22843  document.
22844 \end_layout
22845
22846 \begin_layout Description
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 Option
22852 \begin_inset space ~
22853 \end_inset
22854
22855 <name>
22856 \begin_inset space ~
22857 \end_inset
22858
22859 <value>
22860 \end_layout
22861
22862 \end_inset
22863
22864  This command defines an additional macro 
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 $$<name>
22870 \end_layout
22871
22872 \end_inset
22873
22874  for substitution in 
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 Product
22880 \end_layout
22881
22882 \end_inset
22883
22884 .
22885  
22886 \begin_inset Flex Code
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890 <value>
22891 \end_layout
22892
22893 \end_inset
22894
22895  itself may contain substitution macros.
22896  The advantage over using 
22897 \begin_inset Flex Code
22898 status collapsed
22899
22900 \begin_layout Plain Layout
22901 <value>
22902 \end_layout
22903
22904 \end_inset
22905
22906  directly in 
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 Product
22912 \end_layout
22913
22914 \end_inset
22915
22916  is that the substituted value of 
22917 \begin_inset Flex Code
22918 status collapsed
22919
22920 \begin_layout Plain Layout
22921 $$<name>
22922 \end_layout
22923
22924 \end_inset
22925
22926  is sanitized so that it is a valid optional argument in the document format.
22927  This command may occur zero or more times.
22928 \end_layout
22929
22930 \begin_layout Description
22931 \begin_inset Flex Code
22932 status collapsed
22933
22934 \begin_layout Plain Layout
22935 Product
22936 \begin_inset space ~
22937 \end_inset
22938
22939 <text>
22940 \end_layout
22941
22942 \end_inset
22943
22944  The text that is inserted in the exported document.
22945  This is actually the most important command and can be quite complex.
22946  This command must occur exactly once.
22947 \end_layout
22948
22949 \begin_layout Description
22950 \begin_inset Flex Code
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954 Preamble
22955 \begin_inset space ~
22956 \end_inset
22957
22958 <name>
22959 \end_layout
22960
22961 \end_inset
22962
22963  This command specifies a preamble snippet that will be included in the
22964  LaTeX preamble.
22965  It has to be defined using 
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 PreambleDef
22971 \end_layout
22972
22973 \end_inset
22974
22975  \SpecialChar \ldots{}
22976  
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981 PreambleDefEnd
22982 \end_layout
22983
22984 \end_inset
22985
22986 .
22987  This command may occur zero or more times.
22988 \end_layout
22989
22990 \begin_layout Description
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 ReferencedFile
22996 \begin_inset space ~
22997 \end_inset
22998
22999 <format>
23000 \begin_inset space ~
23001 \end_inset
23002
23003 <filename>
23004 \end_layout
23005
23006 \end_inset
23007
23008  This command denotes files that are created by the conversion process and
23009  are needed for a particular export format.
23010  If the filename is relative, it is interpreted relative to the master document.
23011  This command may be given zero or more times.
23012 \end_layout
23013
23014 \begin_layout Description
23015 \begin_inset Flex Code
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 Requirement
23020 \begin_inset space ~
23021 \end_inset
23022
23023 <package>
23024 \end_layout
23025
23026 \end_inset
23027
23028  The name of a required LaTeX package.
23029  The package is included via 
23030 \begin_inset Flex Code
23031 status collapsed
23032
23033 \begin_layout Plain Layout
23034
23035 \backslash
23036 usepackage{}
23037 \end_layout
23038
23039 \end_inset
23040
23041  in the LaTeX preamble.
23042  This command may occur zero or more times.
23043 \end_layout
23044
23045 \begin_layout Description
23046 \begin_inset Flex Code
23047 status collapsed
23048
23049 \begin_layout Plain Layout
23050 TransformCommand
23051 \begin_inset space ~
23052 \end_inset
23053
23054 Rotate
23055 \begin_inset space ~
23056 \end_inset
23057
23058 RotationLatexCommand
23059 \end_layout
23060
23061 \end_inset
23062
23063  This command specifies that the built in LaTeX command should be used for
23064  rotation.
23065  This command may occur once or not at all.
23066 \end_layout
23067
23068 \begin_layout Description
23069 \begin_inset Flex Code
23070 status collapsed
23071
23072 \begin_layout Plain Layout
23073 TransformCommand
23074 \begin_inset space ~
23075 \end_inset
23076
23077 Resize
23078 \begin_inset space ~
23079 \end_inset
23080
23081 ResizeLatexCommand
23082 \end_layout
23083
23084 \end_inset
23085
23086  This command specifies that the built in LaTeX command should be used for
23087  resizing.
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 Rotate
23101 \begin_inset space ~
23102 \end_inset
23103
23104 RotationLatexOption
23105 \end_layout
23106
23107 \end_inset
23108
23109  This command specifies that rotation 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 Resize
23123 \begin_inset space ~
23124 \end_inset
23125
23126 ResizeLatexOption
23127 \end_layout
23128
23129 \end_inset
23130
23131  This command specifies that resizing 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 Clip
23145 \begin_inset space ~
23146 \end_inset
23147
23148 ClipLatexOption
23149 \end_layout
23150
23151 \end_inset
23152
23153  This command specifies that clipping is done via an optional argument.
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 TransformOption
23163 \begin_inset space ~
23164 \end_inset
23165
23166 Extra
23167 \begin_inset space ~
23168 \end_inset
23169
23170 ExtraLatexOption
23171 \end_layout
23172
23173 \end_inset
23174
23175  This command specifies that an extra optional argument is used.
23176  This command may occur once or not at all.
23177 \end_layout
23178
23179 \begin_layout Description
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 UpdateFormat
23185 \begin_inset space ~
23186 \end_inset
23187
23188 <format>
23189 \end_layout
23190
23191 \end_inset
23192
23193  The file format of the converted file.
23194  This must be the name of a format that is known to LyX (see the 
23195 \begin_inset Flex MenuItem
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199
23200 \bar under
23201 T
23202 \bar default
23203 ools\SpecialChar \menuseparator
23204
23205 \bar under
23206 P
23207 \bar default
23208 references\SpecialChar \menuseparator
23209 File Handling\SpecialChar \menuseparator
23210 File Format
23211 \end_layout
23212
23213 \end_inset
23214
23215  dialog).
23216  This command must occur exactly once.
23217 \end_layout
23218
23219 \begin_layout Description
23220 \begin_inset Flex Code
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224 UpdateResult
23225 \begin_inset space ~
23226 \end_inset
23227
23228 <filename>
23229 \end_layout
23230
23231 \end_inset
23232
23233  The file name of the converted file.
23234  The file name must be absolute.
23235  This command must occur exactly once.
23236 \end_layout
23237
23238 \begin_layout Subsection
23239 Preamble definitions
23240 \end_layout
23241
23242 \begin_layout Standard
23243 The external template configuration file may contain additional preamble
23244  definitions enclosed by 
23245 \begin_inset Flex Code
23246 status collapsed
23247
23248 \begin_layout Plain Layout
23249 PreambleDef
23250 \end_layout
23251
23252 \end_inset
23253
23254  \SpecialChar \ldots{}
23255  
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 PreambleDefEnd
23261 \end_layout
23262
23263 \end_inset
23264
23265 .
23266  They can be used by the templates in the 
23267 \begin_inset Flex Code
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 Format
23272 \end_layout
23273
23274 \end_inset
23275
23276  section.
23277 \end_layout
23278
23279 \begin_layout Section
23280 The substitution mechanism
23281 \end_layout
23282
23283 \begin_layout Standard
23284 When the external material facility invokes an external program, it is done
23285  on the basis of a command defined in the template configuration file.
23286  These commands can contain various macros that are expanded before execution.
23287  Execution always take place in the directory of the containing document.
23288 \end_layout
23289
23290 \begin_layout Standard
23291 Also, whenever external material is to be displayed, the name will be produced
23292  by the substitution mechanism, and most other commands in the template
23293  definition support substitution as well.
23294 \end_layout
23295
23296 \begin_layout Standard
23297 The available macros are the following:
23298 \end_layout
23299
23300 \begin_layout Description
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 $$AbsOrRelPathMaster
23306 \end_layout
23307
23308 \end_inset
23309
23310  The file path, absolute or relative to the master LyX document.
23311 \end_layout
23312
23313 \begin_layout Description
23314 \begin_inset Flex Code
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318 $$AbsOrRelPathParent
23319 \end_layout
23320
23321 \end_inset
23322
23323  The file path, absolute or relative to the LyX document.
23324 \end_layout
23325
23326 \begin_layout Description
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 $$AbsPath
23332 \end_layout
23333
23334 \end_inset
23335
23336  The absolute file path.
23337 \end_layout
23338
23339 \begin_layout Description
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 $$Basename
23345 \end_layout
23346
23347 \end_inset
23348
23349  The filename without path and without the extension.
23350 \end_layout
23351
23352 \begin_layout Description
23353 \begin_inset Flex Code
23354 status collapsed
23355
23356 \begin_layout Plain Layout
23357 $$Contents(
23358 \begin_inset Quotes eld
23359 \end_inset
23360
23361 filename.ext
23362 \begin_inset Quotes erd
23363 \end_inset
23364
23365 )
23366 \end_layout
23367
23368 \end_inset
23369
23370  This macro will expand to the contents of the file with the name 
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375 filename.ext
23376 \end_layout
23377
23378 \end_inset
23379
23380 .
23381 \end_layout
23382
23383 \begin_layout Description
23384 \begin_inset Flex Code
23385 status collapsed
23386
23387 \begin_layout Plain Layout
23388 $$Extension
23389 \end_layout
23390
23391 \end_inset
23392
23393  The file extension (including the dot).
23394 \end_layout
23395
23396 \begin_layout Description
23397 \begin_inset Flex Code
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401 $$FName
23402 \end_layout
23403
23404 \end_inset
23405
23406  The filename of the file specified in the external material dialog.
23407  This is either an absolute name, or it is relative to the LyX document.
23408 \end_layout
23409
23410 \begin_layout Description
23411 \begin_inset Flex Code
23412 status collapsed
23413
23414 \begin_layout Plain Layout
23415 $$FPath
23416 \end_layout
23417
23418 \end_inset
23419
23420  The path part of 
23421 \begin_inset Flex Code
23422 status collapsed
23423
23424 \begin_layout Plain Layout
23425 $$FName
23426 \end_layout
23427
23428 \end_inset
23429
23430  (absolute name or relative to the LyX document).
23431 \end_layout
23432
23433 \begin_layout Description
23434 \begin_inset Flex Code
23435 status collapsed
23436
23437 \begin_layout Plain Layout
23438 $$RelPathMaster
23439 \end_layout
23440
23441 \end_inset
23442
23443  The file path, relative to the master LyX document.
23444 \end_layout
23445
23446 \begin_layout Description
23447 \begin_inset Flex Code
23448 status collapsed
23449
23450 \begin_layout Plain Layout
23451 $$RelPathParent
23452 \end_layout
23453
23454 \end_inset
23455
23456  The file path, relative to the LyX document.
23457 \end_layout
23458
23459 \begin_layout Description
23460 \begin_inset Flex Code
23461 status collapsed
23462
23463 \begin_layout Plain Layout
23464 $$Sysdir
23465 \end_layout
23466
23467 \end_inset
23468
23469  This macro will expand to the absolute path of the system directory.
23470  This is typically used to point to the various helper scripts that are
23471  bundled with LyX.
23472 \end_layout
23473
23474 \begin_layout Description
23475 \begin_inset Flex Code
23476 status collapsed
23477
23478 \begin_layout Plain Layout
23479 $$Tempname
23480 \end_layout
23481
23482 \end_inset
23483
23484  A name and full path to a temporary file which will be automatically deleted
23485  whenever the containing document is closed, or the external material insertion
23486  deleted.
23487 \end_layout
23488
23489 \begin_layout Standard
23490 All path macros contain a trailing directory separator, so you can construct
23491  e.
23492 \begin_inset space \thinspace{}
23493 \end_inset
23494
23495 g.
23496 \begin_inset space \space{}
23497 \end_inset
23498
23499 the absolute filename with 
23500 \begin_inset Flex Code
23501 status collapsed
23502
23503 \begin_layout Plain Layout
23504 $$AbsPath$$Basename$$Extension
23505 \end_layout
23506
23507 \end_inset
23508
23509 .
23510 \end_layout
23511
23512 \begin_layout Standard
23513 The macros above are substituted in all commands unless otherwise noted.
23514  The command 
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519 Product
23520 \end_layout
23521
23522 \end_inset
23523
23524  supports additionally the following substitutions if they are enabled by
23525  the 
23526 \begin_inset Flex Code
23527 status collapsed
23528
23529 \begin_layout Plain Layout
23530 Transform
23531 \end_layout
23532
23533 \end_inset
23534
23535  and 
23536 \begin_inset Flex Code
23537 status collapsed
23538
23539 \begin_layout Plain Layout
23540 TransformCommand
23541 \end_layout
23542
23543 \end_inset
23544
23545  commands:
23546 \end_layout
23547
23548 \begin_layout Description
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 $$ResizeFront
23554 \end_layout
23555
23556 \end_inset
23557
23558  The front part of the resize command.
23559 \end_layout
23560
23561 \begin_layout Description
23562 \begin_inset Flex Code
23563 status collapsed
23564
23565 \begin_layout Plain Layout
23566 $$ResizeBack
23567 \end_layout
23568
23569 \end_inset
23570
23571  The back part of the resize command.
23572 \end_layout
23573
23574 \begin_layout Description
23575 \begin_inset Flex Code
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 $$RotateFront
23580 \end_layout
23581
23582 \end_inset
23583
23584  The front part of the rotation command.
23585 \end_layout
23586
23587 \begin_layout Description
23588 \begin_inset Flex Code
23589 status collapsed
23590
23591 \begin_layout Plain Layout
23592 $$RotateBack
23593 \end_layout
23594
23595 \end_inset
23596
23597  The back part of the rotation command.
23598 \end_layout
23599
23600 \begin_layout Standard
23601 The value string of the 
23602 \begin_inset Flex Code
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606 Option
23607 \end_layout
23608
23609 \end_inset
23610
23611  command supports additionally the following substitutions if they are enabled
23612  by the 
23613 \begin_inset Flex Code
23614 status collapsed
23615
23616 \begin_layout Plain Layout
23617 Transform
23618 \end_layout
23619
23620 \end_inset
23621
23622  and 
23623 \begin_inset Flex Code
23624 status collapsed
23625
23626 \begin_layout Plain Layout
23627 TransformOption
23628 \end_layout
23629
23630 \end_inset
23631
23632  commands:
23633 \end_layout
23634
23635 \begin_layout Description
23636 \begin_inset Flex Code
23637 status collapsed
23638
23639 \begin_layout Plain Layout
23640 $$Clip
23641 \end_layout
23642
23643 \end_inset
23644
23645  The clip option.
23646 \end_layout
23647
23648 \begin_layout Description
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 $$Extra
23654 \end_layout
23655
23656 \end_inset
23657
23658  The extra option.
23659 \end_layout
23660
23661 \begin_layout Description
23662 \begin_inset Flex Code
23663 status collapsed
23664
23665 \begin_layout Plain Layout
23666 $$Resize
23667 \end_layout
23668
23669 \end_inset
23670
23671  The resize option.
23672 \end_layout
23673
23674 \begin_layout Description
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 $$Rotate
23680 \end_layout
23681
23682 \end_inset
23683
23684  The rotation option.
23685 \end_layout
23686
23687 \begin_layout Standard
23688 You may ask why there are so many path macros.
23689  There are mainly two reasons:
23690 \end_layout
23691
23692 \begin_layout Enumerate
23693 Relative and absolute file names should remain relative or absolute, respectivel
23694 y.
23695  Users may have reasons to prefer either form.
23696  Relative names are useful for portable documents that should work on different
23697  machines, for example.
23698  Absolute names may be required by some programs.
23699 \end_layout
23700
23701 \begin_layout Enumerate
23702 LaTeX treats relative file names differently than LyX and other programs
23703  in nested included files.
23704  For LyX, a relative file name is always relative to the document that contains
23705  the file name.
23706  For LaTeX, it is always relative to the master document.
23707  These two definitions are identical if you have only one document, but
23708  differ if you have a master document that includes part documents.
23709  That means that relative filenames must be transformed when presented to
23710  LaTeX.
23711  Fortunately LyX does this automatically for you if you choose the right
23712  macros.
23713 \end_layout
23714
23715 \begin_layout Standard
23716 So which path macro should be used in new template definitions? The rule
23717  is not difficult:
23718 \end_layout
23719
23720 \begin_layout Itemize
23721 Use 
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726 $$AbsPath
23727 \end_layout
23728
23729 \end_inset
23730
23731  if an absolute path is required.
23732 \end_layout
23733
23734 \begin_layout Itemize
23735 Use 
23736 \begin_inset Flex Code
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 $$AbsOrRelPathMaster
23741 \end_layout
23742
23743 \end_inset
23744
23745  if the substituted string is some kind of LaTeX input.
23746 \end_layout
23747
23748 \begin_layout Itemize
23749 Else use 
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 $$AbsOrRelPathParent
23755 \end_layout
23756
23757 \end_inset
23758
23759  in order to preserve the user's choice.
23760 \end_layout
23761
23762 \begin_layout Standard
23763 There are special cases where this rule does not work and e.
23764 \begin_inset space \thinspace{}
23765 \end_inset
23766
23767 g.
23768 \begin_inset space \space{}
23769 \end_inset
23770
23771 relative names are needed, but normally it will work just fine.
23772  One example for such a case is the command 
23773 \begin_inset Flex Code
23774 status collapsed
23775
23776 \begin_layout Plain Layout
23777 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23778 \end_layout
23779
23780 \end_inset
23781
23782  in the XFig template above: We can't use the absolute name because the
23783  copier for 
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788 .pstex_t
23789 \end_layout
23790
23791 \end_inset
23792
23793  files needs the relative name in order to rewrite the file content.
23794 \end_layout
23795
23796 \begin_layout Section
23797 Security discussion
23798 \begin_inset CommandInset label
23799 LatexCommand label
23800 name "sec:Security-discussion"
23801
23802 \end_inset
23803
23804
23805 \end_layout
23806
23807 \begin_layout Standard
23808 The external material feature interfaces with a lot of external programs
23809  and does so automatically, so we have to consider the security implications
23810  of this.
23811  In particular, since you have the option of including your own filenames
23812  and/or parameter strings and those are expanded into a command, it seems
23813  that it would be possible to create a malicious document which executes
23814  arbitrary commands when a user views or prints the document.
23815  This is something we definitely want to avoid.
23816 \end_layout
23817
23818 \begin_layout Standard
23819 However, since the external program commands are specified in the template
23820  configuration file only, there are no security issues if LyX is properly
23821  configured with safe templates only.
23822  This is so because the external programs are invoked with the 
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 execvp
23828 \end_layout
23829
23830 \end_inset
23831
23832 -system call rather than the 
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 system
23838 \end_layout
23839
23840 \end_inset
23841
23842  system-call, so it's not possible to execute arbitrary commands from the
23843  filename or parameter section via the shell.
23844 \end_layout
23845
23846 \begin_layout Standard
23847 This also implies that you are restricted in what command strings you can
23848  use in the external material templates.
23849  In particular, pipes and redirection are not readily available.
23850  This has to be so if LyX should remain safe.
23851  If you want to use some of the shell features, you should write a safe
23852  script to do this in a controlled manner, and then invoke the script from
23853  the command string.
23854  
23855 \end_layout
23856
23857 \begin_layout Standard
23858 It is possible to design a template that interacts directly with the shell,
23859  but since this would allow a malicious user to execute arbitrary commands
23860  by writing clever filenames and/or parameters, we generally recommend that
23861  you only use safe scripts that work with the 
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866 execvp
23867 \end_layout
23868
23869 \end_inset
23870
23871  system call in a controlled manner.
23872  Of course, for use in a controlled environment, it can be tempting to just
23873  fall back to use ordinary shell scripts.
23874  If you do so, be aware that you 
23875 \emph on
23876 will
23877 \emph default
23878  provide an easily exploitable security hole in your system.
23879  Of course it stands to reason that such unsafe templates will never be
23880  included in the standard LyX distribution, although we do encourage people
23881  to submit new templates in the open source tradition.
23882  But LyX as shipped from the official distribution channels will never have
23883  unsafe templates.
23884 \end_layout
23885
23886 \begin_layout Standard
23887 Including external material provides a lot of power, and you have to be
23888  careful not to introduce security hazards with this power.
23889  A subtle error in a single line in an innocent looking script can open
23890  the door to huge security problems.
23891  So if you do not fully understand the issues, we recommend that you consult
23892  a knowledgeable security professional or the LyX development team if you
23893  have any questions about whether a given template is safe or not.
23894  And do this before you use it in an uncontrolled environment.
23895 \end_layout
23896
23897 \begin_layout Chapter
23898 \start_of_appendix
23899 List of supported LyX functions to be used in layouts
23900 \end_layout
23901
23902 \begin_layout Standard
23903 \align center
23904 \begin_inset Tabular
23905 <lyxtabular version="3" rows="10" columns="8">
23906 <features rotate="0" tabularvalignment="middle">
23907 <column alignment="left" valignment="top" width="0">
23908 <column alignment="left" valignment="top" width="0">
23909 <column alignment="left" valignment="top" width="0">
23910 <column alignment="left" valignment="top" width="0">
23911 <column alignment="left" valignment="top" width="0">
23912 <column alignment="left" valignment="top" width="0">
23913 <column alignment="left" valignment="top" width="0">
23914 <column alignment="left" valignment="top" width="0">
23915 <row>
23916 <cell alignment="left" valignment="top" usebox="none">
23917 \begin_inset Text
23918
23919 \begin_layout Plain Layout
23920 accents
23921 \end_layout
23922
23923 \end_inset
23924 </cell>
23925 <cell alignment="left" valignment="top" usebox="none">
23926 \begin_inset Text
23927
23928 \begin_layout Plain Layout
23929 bm
23930 \end_layout
23931
23932 \end_inset
23933 </cell>
23934 <cell alignment="left" valignment="top" usebox="none">
23935 \begin_inset Text
23936
23937 \begin_layout Plain Layout
23938 esint
23939 \end_layout
23940
23941 \end_inset
23942 </cell>
23943 <cell alignment="left" valignment="top" usebox="none">
23944 \begin_inset Text
23945
23946 \begin_layout Plain Layout
23947 ifthen
23948 \end_layout
23949
23950 \end_inset
23951 </cell>
23952 <cell alignment="center" valignment="top" usebox="none">
23953 \begin_inset Text
23954
23955 \begin_layout Plain Layout
23956 mathrsfs
23957 \end_layout
23958
23959 \end_inset
23960 </cell>
23961 <cell alignment="center" valignment="top" usebox="none">
23962 \begin_inset Text
23963
23964 \begin_layout Plain Layout
23965 prettyref
23966 \end_layout
23967
23968 \end_inset
23969 </cell>
23970 <cell alignment="center" valignment="top" usebox="none">
23971 \begin_inset Text
23972
23973 \begin_layout Plain Layout
23974 subscript
23975 \end_layout
23976
23977 \end_inset
23978 </cell>
23979 <cell alignment="center" valignment="top" usebox="none">
23980 \begin_inset Text
23981
23982 \begin_layout Plain Layout
23983 units
23984 \end_layout
23985
23986 \end_inset
23987 </cell>
23988 </row>
23989 <row>
23990 <cell alignment="left" valignment="top" usebox="none">
23991 \begin_inset Text
23992
23993 \begin_layout Plain Layout
23994 amsbsy
23995 \end_layout
23996
23997 \end_inset
23998 </cell>
23999 <cell alignment="left" valignment="top" usebox="none">
24000 \begin_inset Text
24001
24002 \begin_layout Plain Layout
24003 booktabs
24004 \end_layout
24005
24006 \end_inset
24007 </cell>
24008 <cell alignment="left" valignment="top" usebox="none">
24009 \begin_inset Text
24010
24011 \begin_layout Plain Layout
24012 fancybox
24013 \end_layout
24014
24015 \end_inset
24016 </cell>
24017 <cell alignment="left" valignment="top" usebox="none">
24018 \begin_inset Text
24019
24020 \begin_layout Plain Layout
24021 jurabib
24022 \end_layout
24023
24024 \end_inset
24025 </cell>
24026 <cell alignment="center" valignment="top" usebox="none">
24027 \begin_inset Text
24028
24029 \begin_layout Plain Layout
24030 mhchem
24031 \end_layout
24032
24033 \end_inset
24034 </cell>
24035 <cell alignment="center" valignment="top" usebox="none">
24036 \begin_inset Text
24037
24038 \begin_layout Plain Layout
24039 pxfonts
24040 \end_layout
24041
24042 \end_inset
24043 </cell>
24044 <cell alignment="center" valignment="top" usebox="none">
24045 \begin_inset Text
24046
24047 \begin_layout Plain Layout
24048 textcomp
24049 \end_layout
24050
24051 \end_inset
24052 </cell>
24053 <cell alignment="center" valignment="top" usebox="none">
24054 \begin_inset Text
24055
24056 \begin_layout Plain Layout
24057 url
24058 \end_layout
24059
24060 \end_inset
24061 </cell>
24062 </row>
24063 <row>
24064 <cell alignment="left" valignment="top" usebox="none">
24065 \begin_inset Text
24066
24067 \begin_layout Plain Layout
24068 amscd
24069 \end_layout
24070
24071 \end_inset
24072 </cell>
24073 <cell alignment="left" valignment="top" usebox="none">
24074 \begin_inset Text
24075
24076 \begin_layout Plain Layout
24077 calc
24078 \end_layout
24079
24080 \end_inset
24081 </cell>
24082 <cell alignment="left" valignment="top" usebox="none">
24083 \begin_inset Text
24084
24085 \begin_layout Plain Layout
24086 feyn
24087 \end_layout
24088
24089 \end_inset
24090 </cell>
24091 <cell alignment="left" valignment="top" usebox="none">
24092 \begin_inset Text
24093
24094 \begin_layout Plain Layout
24095 latexsym
24096 \end_layout
24097
24098 \end_inset
24099 </cell>
24100 <cell alignment="center" valignment="top" usebox="none">
24101 \begin_inset Text
24102
24103 \begin_layout Plain Layout
24104 multirow
24105 \end_layout
24106
24107 \end_inset
24108 </cell>
24109 <cell alignment="center" valignment="top" usebox="none">
24110 \begin_inset Text
24111
24112 \begin_layout Plain Layout
24113 refstyle
24114 \end_layout
24115
24116 \end_inset
24117 </cell>
24118 <cell alignment="center" valignment="top" usebox="none">
24119 \begin_inset Text
24120
24121 \begin_layout Plain Layout
24122 textgreek
24123 \end_layout
24124
24125 \end_inset
24126 </cell>
24127 <cell alignment="center" valignment="top" usebox="none">
24128 \begin_inset Text
24129
24130 \begin_layout Plain Layout
24131 varioref
24132 \end_layout
24133
24134 \end_inset
24135 </cell>
24136 </row>
24137 <row>
24138 <cell alignment="left" valignment="top" usebox="none">
24139 \begin_inset Text
24140
24141 \begin_layout Plain Layout
24142 amsmath
24143 \end_layout
24144
24145 \end_inset
24146 </cell>
24147 <cell alignment="left" valignment="top" usebox="none">
24148 \begin_inset Text
24149
24150 \begin_layout Plain Layout
24151 CJK
24152 \end_layout
24153
24154 \end_inset
24155 </cell>
24156 <cell alignment="left" valignment="top" usebox="none">
24157 \begin_inset Text
24158
24159 \begin_layout Plain Layout
24160 fixltx2e
24161 \end_layout
24162
24163 \end_inset
24164 </cell>
24165 <cell alignment="left" valignment="top" usebox="none">
24166 \begin_inset Text
24167
24168 \begin_layout Plain Layout
24169 listings
24170 \end_layout
24171
24172 \end_inset
24173 </cell>
24174 <cell alignment="center" valignment="top" usebox="none">
24175 \begin_inset Text
24176
24177 \begin_layout Plain Layout
24178 natbib
24179 \end_layout
24180
24181 \end_inset
24182 </cell>
24183 <cell alignment="center" valignment="top" usebox="none">
24184 \begin_inset Text
24185
24186 \begin_layout Plain Layout
24187 rotating
24188 \end_layout
24189
24190 \end_inset
24191 </cell>
24192 <cell alignment="center" valignment="top" usebox="none">
24193 \begin_inset Text
24194
24195 \begin_layout Plain Layout
24196 tfrupee
24197 \end_layout
24198
24199 \end_inset
24200 </cell>
24201 <cell alignment="center" valignment="top" usebox="none">
24202 \begin_inset Text
24203
24204 \begin_layout Plain Layout
24205 verbatim
24206 \end_layout
24207
24208 \end_inset
24209 </cell>
24210 </row>
24211 <row>
24212 <cell alignment="left" valignment="top" usebox="none">
24213 \begin_inset Text
24214
24215 \begin_layout Plain Layout
24216 amssymb
24217 \end_layout
24218
24219 \end_inset
24220 </cell>
24221 <cell alignment="left" valignment="top" usebox="none">
24222 \begin_inset Text
24223
24224 \begin_layout Plain Layout
24225 color
24226 \end_layout
24227
24228 \end_inset
24229 </cell>
24230 <cell alignment="left" valignment="top" usebox="none">
24231 \begin_inset Text
24232
24233 \begin_layout Plain Layout
24234 float
24235 \end_layout
24236
24237 \end_inset
24238 </cell>
24239 <cell alignment="left" valignment="top" usebox="none">
24240 \begin_inset Text
24241
24242 \begin_layout Plain Layout
24243 longtable
24244 \end_layout
24245
24246 \end_inset
24247 </cell>
24248 <cell alignment="center" valignment="top" usebox="none">
24249 \begin_inset Text
24250
24251 \begin_layout Plain Layout
24252 nomencl
24253 \end_layout
24254
24255 \end_inset
24256 </cell>
24257 <cell alignment="center" valignment="top" usebox="none">
24258 \begin_inset Text
24259
24260 \begin_layout Plain Layout
24261 rotfloat
24262 \end_layout
24263
24264 \end_inset
24265 </cell>
24266 <cell alignment="center" valignment="top" usebox="none">
24267 \begin_inset Text
24268
24269 \begin_layout Plain Layout
24270 tipa
24271 \end_layout
24272
24273 \end_inset
24274 </cell>
24275 <cell alignment="center" valignment="top" usebox="none">
24276 \begin_inset Text
24277
24278 \begin_layout Plain Layout
24279 wasysym
24280 \end_layout
24281
24282 \end_inset
24283 </cell>
24284 </row>
24285 <row>
24286 <cell alignment="left" valignment="top" usebox="none">
24287 \begin_inset Text
24288
24289 \begin_layout Plain Layout
24290 amstext
24291 \end_layout
24292
24293 \end_inset
24294 </cell>
24295 <cell alignment="left" valignment="top" usebox="none">
24296 \begin_inset Text
24297
24298 \begin_layout Plain Layout
24299 covington
24300 \end_layout
24301
24302 \end_inset
24303 </cell>
24304 <cell alignment="left" valignment="top" usebox="none">
24305 \begin_inset Text
24306
24307 \begin_layout Plain Layout
24308 framed
24309 \end_layout
24310
24311 \end_inset
24312 </cell>
24313 <cell alignment="left" valignment="top" usebox="none">
24314 \begin_inset Text
24315
24316 \begin_layout Plain Layout
24317 lyxskak
24318 \end_layout
24319
24320 \end_inset
24321 </cell>
24322 <cell alignment="center" valignment="top" usebox="none">
24323 \begin_inset Text
24324
24325 \begin_layout Plain Layout
24326 pdfcolmk
24327 \end_layout
24328
24329 \end_inset
24330 </cell>
24331 <cell alignment="center" valignment="top" usebox="none">
24332 \begin_inset Text
24333
24334 \begin_layout Plain Layout
24335 setspace
24336 \end_layout
24337
24338 \end_inset
24339 </cell>
24340 <cell alignment="center" valignment="top" usebox="none">
24341 \begin_inset Text
24342
24343 \begin_layout Plain Layout
24344 tipx
24345 \end_layout
24346
24347 \end_inset
24348 </cell>
24349 <cell alignment="center" valignment="top" usebox="none">
24350 \begin_inset Text
24351
24352 \begin_layout Plain Layout
24353 wrapfig
24354 \end_layout
24355
24356 \end_inset
24357 </cell>
24358 </row>
24359 <row>
24360 <cell alignment="left" valignment="top" usebox="none">
24361 \begin_inset Text
24362
24363 \begin_layout Plain Layout
24364 amsthm
24365 \end_layout
24366
24367 \end_inset
24368 </cell>
24369 <cell alignment="left" valignment="top" usebox="none">
24370 \begin_inset Text
24371
24372 \begin_layout Plain Layout
24373 csquotes
24374 \end_layout
24375
24376 \end_inset
24377 </cell>
24378 <cell alignment="left" valignment="top" usebox="none">
24379 \begin_inset Text
24380
24381 \begin_layout Plain Layout
24382 graphicx
24383 \end_layout
24384
24385 \end_inset
24386 </cell>
24387 <cell alignment="left" valignment="top" usebox="none">
24388 \begin_inset Text
24389
24390 \begin_layout Plain Layout
24391 makeidx
24392 \end_layout
24393
24394 \end_inset
24395 </cell>
24396 <cell alignment="center" valignment="top" usebox="none">
24397 \begin_inset Text
24398
24399 \begin_layout Plain Layout
24400 pdfpages
24401 \end_layout
24402
24403 \end_inset
24404 </cell>
24405 <cell alignment="center" valignment="top" usebox="none">
24406 \begin_inset Text
24407
24408 \begin_layout Plain Layout
24409 slashed
24410 \end_layout
24411
24412 \end_inset
24413 </cell>
24414 <cell alignment="center" valignment="top" usebox="none">
24415 \begin_inset Text
24416
24417 \begin_layout Plain Layout
24418 tone
24419 \end_layout
24420
24421 \end_inset
24422 </cell>
24423 <cell alignment="center" valignment="top" usebox="none">
24424 \begin_inset Text
24425
24426 \begin_layout Plain Layout
24427 xargs
24428 \end_layout
24429
24430 \end_inset
24431 </cell>
24432 </row>
24433 <row>
24434 <cell alignment="left" valignment="top" usebox="none">
24435 \begin_inset Text
24436
24437 \begin_layout Plain Layout
24438 array
24439 \end_layout
24440
24441 \end_inset
24442 </cell>
24443 <cell alignment="left" valignment="top" usebox="none">
24444 \begin_inset Text
24445
24446 \begin_layout Plain Layout
24447 dvipost
24448 \end_layout
24449
24450 \end_inset
24451 </cell>
24452 <cell alignment="left" valignment="top" usebox="none">
24453 \begin_inset Text
24454
24455 \begin_layout Plain Layout
24456 hhline
24457 \end_layout
24458
24459 \end_inset
24460 </cell>
24461 <cell alignment="left" valignment="top" usebox="none">
24462 \begin_inset Text
24463
24464 \begin_layout Plain Layout
24465 marvosym
24466 \end_layout
24467
24468 \end_inset
24469 </cell>
24470 <cell alignment="center" valignment="top" usebox="none">
24471 \begin_inset Text
24472
24473 \begin_layout Plain Layout
24474 pifont
24475 \end_layout
24476
24477 \end_inset
24478 </cell>
24479 <cell alignment="center" valignment="top" usebox="none">
24480 \begin_inset Text
24481
24482 \begin_layout Plain Layout
24483 soul
24484 \end_layout
24485
24486 \end_inset
24487 </cell>
24488 <cell alignment="center" valignment="top" usebox="none">
24489 \begin_inset Text
24490
24491 \begin_layout Plain Layout
24492 txfonts
24493 \end_layout
24494
24495 \end_inset
24496 </cell>
24497 <cell alignment="center" valignment="top" usebox="none">
24498 \begin_inset Text
24499
24500 \begin_layout Plain Layout
24501 xcolor
24502 \end_layout
24503
24504 \end_inset
24505 </cell>
24506 </row>
24507 <row>
24508 <cell alignment="left" valignment="top" usebox="none">
24509 \begin_inset Text
24510
24511 \begin_layout Plain Layout
24512 ascii
24513 \end_layout
24514
24515 \end_inset
24516 </cell>
24517 <cell alignment="left" valignment="top" usebox="none">
24518 \begin_inset Text
24519
24520 \begin_layout Plain Layout
24521 endnotes
24522 \end_layout
24523
24524 \end_inset
24525 </cell>
24526 <cell alignment="left" valignment="top" usebox="none">
24527 \begin_inset Text
24528
24529 \begin_layout Plain Layout
24530 hyperref
24531 \end_layout
24532
24533 \end_inset
24534 </cell>
24535 <cell alignment="left" valignment="top" usebox="none">
24536 \begin_inset Text
24537
24538 \begin_layout Plain Layout
24539 mathdesign
24540 \end_layout
24541
24542 \end_inset
24543 </cell>
24544 <cell alignment="center" valignment="top" usebox="none">
24545 \begin_inset Text
24546
24547 \begin_layout Plain Layout
24548 pmboxdraw
24549 \end_layout
24550
24551 \end_inset
24552 </cell>
24553 <cell alignment="center" valignment="top" usebox="none">
24554 \begin_inset Text
24555
24556 \begin_layout Plain Layout
24557 splitidx
24558 \end_layout
24559
24560 \end_inset
24561 </cell>
24562 <cell alignment="center" valignment="top" usebox="none">
24563 \begin_inset Text
24564
24565 \begin_layout Plain Layout
24566 ulem
24567 \end_layout
24568
24569 \end_inset
24570 </cell>
24571 <cell alignment="center" valignment="top" usebox="none">
24572 \begin_inset Text
24573
24574 \begin_layout Plain Layout
24575 xy
24576 \end_layout
24577
24578 \end_inset
24579 </cell>
24580 </row>
24581 <row>
24582 <cell alignment="left" valignment="top" usebox="none">
24583 \begin_inset Text
24584
24585 \begin_layout Plain Layout
24586 bbding
24587 \end_layout
24588
24589 \end_inset
24590 </cell>
24591 <cell alignment="left" valignment="top" usebox="none">
24592 \begin_inset Text
24593
24594 \begin_layout Plain Layout
24595 enumitem
24596 \end_layout
24597
24598 \end_inset
24599 </cell>
24600 <cell alignment="left" valignment="top" usebox="none">
24601 \begin_inset Text
24602
24603 \begin_layout Plain Layout
24604 ifsym
24605 \end_layout
24606
24607 \end_inset
24608 </cell>
24609 <cell alignment="left" valignment="top" usebox="none">
24610 \begin_inset Text
24611
24612 \begin_layout Plain Layout
24613 mathdots
24614 \end_layout
24615
24616 \end_inset
24617 </cell>
24618 <cell alignment="center" valignment="top" usebox="none">
24619 \begin_inset Text
24620
24621 \begin_layout Plain Layout
24622 polyglossia
24623 \end_layout
24624
24625 \end_inset
24626 </cell>
24627 <cell alignment="center" valignment="top" usebox="none">
24628 \begin_inset Text
24629
24630 \begin_layout Plain Layout
24631 subfig
24632 \end_layout
24633
24634 \end_inset
24635 </cell>
24636 <cell alignment="center" valignment="top" usebox="none">
24637 \begin_inset Text
24638
24639 \begin_layout Plain Layout
24640 undertilde
24641 \end_layout
24642
24643 \end_inset
24644 </cell>
24645 <cell alignment="center" valignment="top" usebox="none">
24646 \begin_inset Text
24647
24648 \begin_layout Plain Layout
24649 yhmath
24650 \end_layout
24651
24652 \end_inset
24653 </cell>
24654 </row>
24655 </lyxtabular>
24656
24657 \end_inset
24658
24659
24660 \end_layout
24661
24662 \begin_layout Standard
24663 accents amsbsy amscd amsmath amssymb amstext amsthm array ascii bbding bm
24664  booktabs calc CJK color covington csquotes dvipost endnotes enumitem esint
24665  fancybox feyn fixltx2e float framed graphicx hhline hyperref ifsym ifthen
24666  jurabib latexsym listings longtable lyxskak makeidx marvosym mathdesign
24667  mathdots mathrsfs mhchem multirow natbib nomencl pdfcolmk pdfpages pifont
24668  pmboxdraw polyglossia prettyref pxfonts refstyle rotating rotfloat setspace
24669  slashed soul splitidx subfig subscript textcomp textgreek tfrupee tipa
24670  tipx tone txfonts ulem undertilde units url varioref verbatim wasysym wrapfig
24671  xargs xcolor xy yhmath 
24672 \end_layout
24673
24674 \begin_layout Chapter
24675 Names of available colors to be used in layouts
24676 \begin_inset CommandInset label
24677 LatexCommand label
24678 name "chap:Names-of-colors"
24679
24680 \end_inset
24681
24682
24683 \end_layout
24684
24685 \begin_layout Standard
24686 The colors listed here are the standard colors and the those that you can
24687  adjust in the LyX preferences.
24688 \end_layout
24689
24690 \begin_layout Description
24691 none
24692 \family roman
24693 \series medium
24694 \shape up
24695 \size normal
24696 \emph off
24697 \bar no
24698 \strikeout off
24699 \uuline off
24700 \uwave off
24701 \noun off
24702 \color none
24703  No particular color -- clear or default
24704 \end_layout
24705
24706 \begin_layout Description
24707 black
24708 \end_layout
24709
24710 \begin_layout Description
24711 white
24712 \end_layout
24713
24714 \begin_layout Description
24715 red
24716 \end_layout
24717
24718 \begin_layout Description
24719 green
24720 \end_layout
24721
24722 \begin_layout Description
24723 blue
24724 \end_layout
24725
24726 \begin_layout Description
24727 cyan
24728 \end_layout
24729
24730 \begin_layout Description
24731 magenta
24732 \end_layout
24733
24734 \begin_layout Description
24735 yellow
24736 \end_layout
24737
24738 \begin_layout Description
24739 cursor Cursor color
24740 \end_layout
24741
24742 \begin_layout Description
24743 background Background color
24744 \end_layout
24745
24746 \begin_layout Description
24747 foreground Foreground color
24748 \end_layout
24749
24750 \begin_layout Description
24751 selection Background color of selected text
24752 \end_layout
24753
24754 \begin_layout Description
24755 selectiontext Foreground color of selected text
24756 \end_layout
24757
24758 \begin_layout Description
24759 latex Text color in LaTeX mode 
24760 \end_layout
24761
24762 \begin_layout Description
24763 preview The color used for previews
24764 \end_layout
24765
24766 \begin_layout Description
24767 inlinecompletion Inline completion color 
24768 \end_layout
24769
24770 \begin_layout Description
24771 nonunique_inlinecompletion Inline completion color for the non-unique part
24772 \end_layout
24773
24774 \begin_layout Description
24775 notelabel Label color for notes
24776 \end_layout
24777
24778 \begin_layout Description
24779 notebg Background color of notes
24780 \end_layout
24781
24782 \begin_layout Description
24783 commentlabel Label color for comments
24784 \end_layout
24785
24786 \begin_layout Description
24787 commentbg Background color of comments
24788 \end_layout
24789
24790 \begin_layout Description
24791 greyedoutlabel Label color for greyedout insets
24792 \end_layout
24793
24794 \begin_layout Description
24795 greyedouttext Color for greyedout inset text
24796 \end_layout
24797
24798 \begin_layout Description
24799 greyedoutbg Background color of greyedout inset
24800 \end_layout
24801
24802 \begin_layout Description
24803 shadedbg Background color of shaded box
24804 \end_layout
24805
24806 \begin_layout Description
24807 listingsbg Background color of listings inset
24808 \end_layout
24809
24810 \begin_layout Description
24811 branchlabel Label color for branches
24812 \end_layout
24813
24814 \begin_layout Description
24815 footlabel Label color for footnotes
24816 \end_layout
24817
24818 \begin_layout Description
24819 indexlabel Label color for index insets 
24820 \end_layout
24821
24822 \begin_layout Description
24823 marginlabel Label color for margin notes 
24824 \end_layout
24825
24826 \begin_layout Description
24827 phantomtext Text color for phantom insets 
24828 \end_layout
24829
24830 \begin_layout Description
24831 urllabel Label color for URL insets
24832 \end_layout
24833
24834 \begin_layout Description
24835 urltext Color for URL inset text
24836 \end_layout
24837
24838 \begin_layout Description
24839 depthbar Color for the depth bars in the margin
24840 \end_layout
24841
24842 \begin_layout Description
24843 language Color for marking foreign language words
24844 \end_layout
24845
24846 \begin_layout Description
24847 command Text color for command insets
24848 \end_layout
24849
24850 \begin_layout Description
24851 commandbg Background color for command insets 
24852 \end_layout
24853
24854 \begin_layout Description
24855 commandframe Frame color for command insets
24856 \end_layout
24857
24858 \begin_layout Description
24859 special Special chars text color
24860 \end_layout
24861
24862 \begin_layout Description
24863 graphicsbg Graphics inset background color 
24864 \end_layout
24865
24866 \begin_layout Description
24867 math Math inset text color 
24868 \end_layout
24869
24870 \begin_layout Description
24871 mathbg Math inset background color
24872 \end_layout
24873
24874 \begin_layout Description
24875 mathmacrobg Macro math inset background color
24876 \end_layout
24877
24878 \begin_layout Description
24879 mathmacrohoverbg Macro math inset background color hovered
24880 \end_layout
24881
24882 \begin_layout Description
24883 mathmacrolabel Macro math label color
24884 \end_layout
24885
24886 \begin_layout Description
24887 mathmacroframe Macro math frame color
24888 \end_layout
24889
24890 \begin_layout Description
24891 mathmacroblend Macro math blended color
24892 \end_layout
24893
24894 \begin_layout Description
24895 mathmacrooldarg Macro template color for old parameters 
24896 \end_layout
24897
24898 \begin_layout Description
24899 mathmacronewarg Macro template color for new parameters
24900 \end_layout
24901
24902 \begin_layout Description
24903 mathframe Math inset frame color under focus 
24904 \end_layout
24905
24906 \begin_layout Description
24907 mathcorners Math inset frame color not under focus
24908 \end_layout
24909
24910 \begin_layout Description
24911 mathline Math line color
24912 \end_layout
24913
24914 \begin_layout Description
24915 collapsable Collapsable insets text 
24916 \end_layout
24917
24918 \begin_layout Description
24919 collapsableframe Collapsable insets frame
24920 \end_layout
24921
24922 \begin_layout Description
24923 insetbg Inset marker background color
24924 \end_layout
24925
24926 \begin_layout Description
24927 insetframe Inset marker frame color
24928 \end_layout
24929
24930 \begin_layout Description
24931 error Error box text color
24932 \end_layout
24933
24934 \begin_layout Description
24935 eolmarker End of line marker color
24936 \end_layout
24937
24938 \begin_layout Description
24939 added_space Added space colour
24940 \end_layout
24941
24942 \begin_layout Description
24943 appendix Appendix marker color
24944 \end_layout
24945
24946 \begin_layout Description
24947 changebar Changebar color
24948 \end_layout
24949
24950 \begin_layout Description
24951 deletedtext Deleted text color
24952 \end_layout
24953
24954 \begin_layout Description
24955 addedtext Added text color
24956 \end_layout
24957
24958 \begin_layout Description
24959 changedtextauthor1 Changed text color author 1
24960 \end_layout
24961
24962 \begin_layout Description
24963 changedtextauthor2 Changed text color author 2
24964 \end_layout
24965
24966 \begin_layout Description
24967 changedtextauthor3 Changed text color author 3
24968 \end_layout
24969
24970 \begin_layout Description
24971 changedtextauthor4 Changed text color author 4
24972 \end_layout
24973
24974 \begin_layout Description
24975 changedtextauthor5 Changed text color author 5
24976 \end_layout
24977
24978 \begin_layout Description
24979 deletedtextmodifier Deleted text modifying color
24980 \end_layout
24981
24982 \begin_layout Description
24983 tabularline Table line color
24984 \end_layout
24985
24986 \begin_layout Description
24987 tabularonoffline Table line color 
24988 \end_layout
24989
24990 \begin_layout Description
24991 bottomarea Bottom area color
24992 \end_layout
24993
24994 \begin_layout Description
24995 newpage New page color 
24996 \end_layout
24997
24998 \begin_layout Description
24999 pagebreak Page break color
25000 \end_layout
25001
25002 \begin_layout Description
25003 buttonframe Color used for button frame
25004 \end_layout
25005
25006 \begin_layout Description
25007 buttonbg Color used for bottom background
25008 \end_layout
25009
25010 \begin_layout Description
25011 buttonhoverbg Color used for buttom under focus 
25012 \end_layout
25013
25014 \begin_layout Description
25015 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25016  
25017 \end_layout
25018
25019 \begin_layout Description
25020 previewframe Preview frame color
25021 \end_layout
25022
25023 \begin_layout Description
25024 inherit Color is inherited 
25025 \end_layout
25026
25027 \begin_layout Description
25028 regexpframe Color for regexp frame
25029 \end_layout
25030
25031 \begin_layout Description
25032 ignore For ignoring updates of a color
25033 \end_layout
25034
25035 \end_body
25036 \end_document