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