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