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