]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Inherit "Provides color" in *-article.layout
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 506
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 \begin_inset Separator parbreak
6029 \end_inset
6030
6031
6032 \end_layout
6033
6034 \begin_deeper
6035 \begin_layout Enumerate
6036 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6037  for all users on your system, then install it in your `local' \SpecialChar TeX
6038  tree, otherwise
6039  install it in your own `user' \SpecialChar TeX
6040  tree.
6041  Where these trees should be created, if they do not already exist, depends
6042  on your system.
6043  To find this out, look in the file 
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 texmf.cnf
6049 \end_layout
6050
6051 \end_inset
6052
6053 .
6054 \begin_inset Foot
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 This is usually in the directory 
6059 \begin_inset Flex Code
6060 status collapsed
6061
6062 \begin_layout Plain Layout
6063 $TEXMF/web2c
6064 \end_layout
6065
6066 \end_inset
6067
6068 , though you can execute the command 
6069 \begin_inset Flex Code
6070 status collapsed
6071
6072 \begin_layout Plain Layout
6073 kpsewhich texmf.cnf
6074 \end_layout
6075
6076 \end_inset
6077
6078  to locate it.
6079 \end_layout
6080
6081 \end_inset
6082
6083  The location of the `local' \SpecialChar TeX
6084  tree is defined by the 
6085 \begin_inset Flex Code
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 TEXMFLOCAL
6090 \end_layout
6091
6092 \end_inset
6093
6094  variable; this is usually somewhere like 
6095 \begin_inset Flex Code
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 /usr/local/share/texmf
6100 \end_layout
6101
6102 \end_inset
6103
6104  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6105 Live
6106  distribution.
6107  The location of the `user' \SpecialChar TeX
6108  tree is defined by 
6109 \begin_inset Flex Code
6110 status collapsed
6111
6112 \begin_layout Plain Layout
6113 TEXMFHOME
6114 \end_layout
6115
6116 \end_inset
6117
6118  and is commonly 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 $HOME/texmf
6124 \end_layout
6125
6126 \end_inset
6127
6128  or 
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133
6134 \family sans
6135 \lang french
6136 $HOME/.texliveXXXX
6137 \end_layout
6138
6139 \end_inset
6140
6141 .
6142  (If these variables are not predefined, you have to define them.) You'll
6143  probably need root permissions to create or modify the `local' tree, but
6144  not for your `user' tree.
6145 \begin_inset Newline newline
6146 \end_inset
6147
6148 In general, it is recommended to install in the user tree because your user
6149  will not be modified or even overwritten when you upgrade your system.
6150  It will typically also be backed up together with everything else when
6151  you backup your home directory (which, of course, you do on a regular basis).
6152 \end_layout
6153
6154 \begin_layout Enumerate
6155 On Windows, if you want the new package to be available for all users on
6156  your system, change to the folder where \SpecialChar LaTeX
6157  is installed and then change to
6158  the subfolder 
6159 \begin_inset Flex Code
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 ~
6164 \backslash
6165 tex
6166 \backslash
6167 latex
6168 \end_layout
6169
6170 \end_inset
6171
6172 .
6173  (For MiK\SpecialChar TeX
6174 , this would be by default the folder 
6175 \begin_inset Flex Code
6176 status collapsed
6177
6178 \begin_layout Plain Layout
6179 ~:
6180 \backslash
6181 Programs
6182 \backslash
6183 MiKTeX
6184 \backslash
6185 tex
6186 \backslash
6187 latex
6188 \end_layout
6189
6190 \end_inset
6191
6192 .)
6193 \begin_inset Foot
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 Note that this will be the correct path only on English installations.
6198  On a German one, it would be 
6199 \begin_inset Flex Code
6200 status collapsed
6201
6202 \begin_layout Plain Layout
6203 ~:
6204 \backslash
6205 Programme
6206 \backslash
6207 MiKTeX
6208 \backslash
6209 tex
6210 \backslash
6211 latex
6212 \end_layout
6213
6214 \end_inset
6215
6216 , and similarly for other languages.
6217 \end_layout
6218
6219 \end_inset
6220
6221  Create there a new folder 
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 foiltex
6227 \end_layout
6228
6229 \end_inset
6230
6231  and copy all files of the package into it.
6232  
6233 \begin_inset Newline newline
6234 \end_inset
6235
6236 If the package should only available for you or you don't have admin permissions
6237 , do the same, but in the local \SpecialChar LaTeX
6238  folder.
6239  E.
6240 \begin_inset space \thinspace{}
6241 \end_inset
6242
6243 g., for MiK\SpecialChar TeX
6244
6245 \begin_inset space ~
6246 \end_inset
6247
6248 2.8 under Windows XP, this would be the folder:
6249 \begin_inset Newline newline
6250 \end_inset
6251
6252
6253 \family sans
6254
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 ~:
6260 \backslash
6261 Documents and Settings
6262 \backslash
6263 <username>
6264 \backslash
6265 Application Data
6266 \backslash
6267
6268 \end_layout
6269
6270 \end_inset
6271
6272
6273 \begin_inset Newline newline
6274 \end_inset
6275
6276
6277 \family default
6278
6279 \begin_inset Phantom HPhantom
6280 status open
6281
6282 \begin_layout Plain Layout
6283
6284 \family sans
6285 ~:
6286 \backslash
6287
6288 \end_layout
6289
6290 \end_inset
6291
6292
6293 \begin_inset Flex Code
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 MiKTeX
6298 \backslash
6299 2.8
6300 \backslash
6301 tex
6302 \backslash
6303 latex
6304 \end_layout
6305
6306 \end_inset
6307
6308
6309 \begin_inset Newline newline
6310 \end_inset
6311
6312 On Vista, it would be:
6313 \begin_inset Newline newline
6314 \end_inset
6315
6316
6317 \begin_inset Flex Code
6318 status collapsed
6319
6320 \begin_layout Plain Layout
6321 ~:
6322 \backslash
6323 Users
6324 \backslash
6325 <username>
6326 \backslash
6327 AppData
6328 \backslash
6329 Roaming
6330 \backslash
6331 2.8
6332 \backslash
6333 MiKTeX
6334 \backslash
6335 tex
6336 \backslash
6337 latex
6338 \end_layout
6339
6340 \end_inset
6341
6342
6343 \end_layout
6344
6345 \end_deeper
6346 \begin_layout Enumerate
6347 Now one only need to tell \SpecialChar LaTeX
6348  that there are new files.
6349  This depends on the used \SpecialChar LaTeX
6350 -Distribution:
6351 \begin_inset Separator parbreak
6352 \end_inset
6353
6354
6355 \end_layout
6356
6357 \begin_deeper
6358 \begin_layout Enumerate
6359 For \SpecialChar TeX
6360 Live execute the command 
6361 \begin_inset Flex Code
6362 status collapsed
6363
6364 \begin_layout Plain Layout
6365 texhash
6366 \end_layout
6367
6368 \end_inset
6369
6370  from a console.
6371  If you installed the package for all users, then you will probably need
6372  to have root permissions for that.
6373 \end_layout
6374
6375 \begin_layout Enumerate
6376 For MiK\SpecialChar TeX
6377 , if you have installed the package for all users, start the program
6378  
6379 \begin_inset Quotes eld
6380 \end_inset
6381
6382 Settings
6383 \begin_inset space ~
6384 \end_inset
6385
6386 (Admin)
6387 \begin_inset Quotes erd
6388 \end_inset
6389
6390  and press the button marked 
6391 \begin_inset Quotes eld
6392 \end_inset
6393
6394 Refresh FNDB
6395 \begin_inset Quotes erd
6396 \end_inset
6397
6398 .
6399  Otherwise start the program 
6400 \begin_inset Quotes eld
6401 \end_inset
6402
6403 Settings
6404 \begin_inset Quotes erd
6405 \end_inset
6406
6407  and do the same.
6408 \end_layout
6409
6410 \end_deeper
6411 \begin_layout Enumerate
6412 Finally, you need to tell \SpecialChar LyX
6413  that there are new packages available.
6414  So, in \SpecialChar LyX
6415 , use the menu 
6416 \begin_inset Flex Noun
6417 status collapsed
6418
6419 \begin_layout Plain Layout
6420 Tools
6421 \family sans
6422 \SpecialChar menuseparator
6423 Reconfigure
6424 \end_layout
6425
6426 \end_inset
6427
6428  and then restart \SpecialChar LyX
6429 .
6430 \end_layout
6431
6432 \begin_layout Standard
6433 Now the package is installed.
6434  In our example, the document class 
6435 \begin_inset Flex Code
6436 status collapsed
6437
6438 \begin_layout Plain Layout
6439 Slides
6440 \begin_inset space ~
6441 \end_inset
6442
6443 (FoilTex)
6444 \end_layout
6445
6446 \end_inset
6447
6448  will now be available under 
6449 \begin_inset Flex Noun
6450 status collapsed
6451
6452 \begin_layout Plain Layout
6453 Document\SpecialChar menuseparator
6454 Settings\SpecialChar menuseparator
6455 Document Class
6456 \end_layout
6457
6458 \end_inset
6459
6460 .
6461  
6462 \end_layout
6463
6464 \begin_layout Standard
6465 If you would like to use a \SpecialChar LaTeX
6466  document class that is not even listed in the
6467  menu 
6468 \begin_inset Flex Noun
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 Document\SpecialChar menuseparator
6473 Settings\SpecialChar menuseparator
6474 Document Class
6475 \end_layout
6476
6477 \end_inset
6478
6479 , then you need to create a `layout' file for it.
6480  That is the topic of the next section.
6481 \end_layout
6482
6483 \begin_layout Section
6484 Types of layout files
6485 \end_layout
6486
6487 \begin_layout Standard
6488 This section describes the various sorts of \SpecialChar LyX
6489  files that contain layout informati
6490 on.
6491  These files describe various paragraph and character styles, determining
6492  how \SpecialChar LyX
6493  should display them and how they should be translated into \SpecialChar LaTeX
6494 , DocBook,
6495  XHTML, or whatever output format is being used.
6496  
6497 \end_layout
6498
6499 \begin_layout Standard
6500 We shall try to provide a thorough description of the process of writing
6501  layout files here.
6502  However, there are so many different types of documents supported even
6503  by just \SpecialChar LaTeX
6504  that we can't hope to cover every different possibility or problem
6505  you might encounter.
6506  The \SpecialChar LyX
6507  users' list is frequented by people with lots of experience with layout
6508  design who are willing to share what they've learned, so please feel free
6509  to ask questions there.
6510 \end_layout
6511
6512 \begin_layout Standard
6513 As you prepare to write a new layout, it is extremely helpful to look at
6514  the layouts distributed with \SpecialChar LyX
6515 .
6516  If you write a \SpecialChar LyX
6517  layout for a \SpecialChar LaTeX
6518  document class that might also be used by
6519  others, or write a module that might be useful to others, then you should
6520  consider posting your layout to the 
6521 \begin_inset CommandInset href
6522 LatexCommand href
6523 name "layout section on the LyX wiki"
6524 target "http://wiki.lyx.org/Layouts/Layouts"
6525
6526 \end_inset
6527
6528  or even to the \SpecialChar LyX
6529  developers' list, so that it might be included in \SpecialChar LyX
6530  itself.
6531 \begin_inset Foot
6532 status collapsed
6533
6534 \begin_layout Plain Layout
6535 Note that \SpecialChar LyX
6536  is licensed under the General Public License, so any material
6537  that is contributed to \SpecialChar LyX
6538  must be similarly licensed.
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \end_layout
6545
6546 \begin_layout Subsection
6547 Layout modules
6548 \begin_inset CommandInset label
6549 LatexCommand label
6550 name "subsec:Layout-modules"
6551
6552 \end_inset
6553
6554
6555 \end_layout
6556
6557 \begin_layout Standard
6558 We have spoken to this point about `layout files'.
6559  But there are different sorts of files that contain layout information.
6560  Layout files, strictly so called, have the 
6561 \begin_inset Flex Code
6562 status collapsed
6563
6564 \begin_layout Plain Layout
6565 .layout
6566 \end_layout
6567
6568 \end_inset
6569
6570  extension and provide \SpecialChar LyX
6571  with information about document classes.
6572  Since \SpecialChar LyX
6573  1.6 layout information can also be contained in layout 
6574 \emph on
6575 modules
6576 \emph default
6577 , which have the 
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 .module
6583 \end_layout
6584
6585 \end_inset
6586
6587  extension.
6588  Modules are to \SpecialChar LaTeX
6589  packages much as layouts are to \SpecialChar LaTeX
6590  classes, and some modules—such
6591  as the 
6592 \begin_inset Flex Code
6593 status collapsed
6594
6595 \begin_layout Plain Layout
6596 endnotes
6597 \end_layout
6598
6599 \end_inset
6600
6601  module—specifically provide support for one package.
6602  In a sense, layout modules are similar to included
6603 \begin_inset Foot
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 These can have any extension, but by convention have the 
6608 \begin_inset Flex Code
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612 .inc
6613 \end_layout
6614
6615 \end_inset
6616
6617  extension.
6618 \end_layout
6619
6620 \end_inset
6621
6622  files—files like 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 stdsections.inc
6628 \end_layout
6629
6630 \end_inset
6631
6632 —in that modules are not specific to a given document class but may be used
6633  with many different classes.
6634  The difference is that using an included file with 
6635 \begin_inset Flex Code
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 article.cls
6640 \end_layout
6641
6642 \end_inset
6643
6644  requires editing that file.
6645  Modules, by contrast, are selected in the 
6646 \begin_inset Flex Noun
6647 status collapsed
6648
6649 \begin_layout Plain Layout
6650 Document\SpecialChar menuseparator
6651 Settings
6652 \end_layout
6653
6654 \end_inset
6655
6656  dialog.
6657 \end_layout
6658
6659 \begin_layout Standard
6660 Building modules is the easiest way to get started with layout editing,
6661  since it can be as simple as adding a single new paragraph style or flex
6662  inset.
6663  But modules may, in principle, contain anything a layout file can contain.
6664 \end_layout
6665
6666 \begin_layout Standard
6667 After creating a new module and copying it to the 
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 layouts/
6673 \end_layout
6674
6675 \end_inset
6676
6677  folder, you will need to reconfigure and then restart \SpecialChar LyX
6678  for the module to
6679  appear in the menu.
6680  However, changes you make to the module will be seen immediately, if you
6681  open 
6682 \begin_inset Flex Noun
6683 status collapsed
6684
6685 \begin_layout Plain Layout
6686 Document\SpecialChar menuseparator
6687 Settings
6688 \end_layout
6689
6690 \end_inset
6691
6692 , highlight something, and then hit 
6693 \begin_inset Quotes eld
6694 \end_inset
6695
6696 OK
6697 \begin_inset Quotes erd
6698 \end_inset
6699
6700 .
6701  
6702 \emph on
6703 It is strongly recommended that you save your work before doing this
6704 \emph default
6705 .
6706  In fact, 
6707 \emph on
6708 it is strongly recommended that you not attempt to edit modules while simultaneo
6709 usly working on actual documents
6710 \emph default
6711 .
6712  Though of course the developers strive to keep \SpecialChar LyX
6713  stable in such situations,
6714  syntax errors and the like in your module file could cause strange behavior.
6715 \end_layout
6716
6717 \begin_layout Subsubsection
6718 Local Layout
6719 \end_layout
6720
6721 \begin_layout Standard
6722 Modules are to \SpecialChar LyX
6723  as packages are to \SpecialChar LaTeX
6724 .
6725  Sometimes, however, you find yourself wanting a specific inset or character
6726  style just for one document and writing a module that will also be available
6727  to other documents makes little sense.
6728  What you need is \SpecialChar LyX
6729 's 
6730 \begin_inset Quotes eld
6731 \end_inset
6732
6733 Local Layout
6734 \begin_inset Quotes erd
6735 \end_inset
6736
6737 .
6738 \end_layout
6739
6740 \begin_layout Standard
6741 You will find it under 
6742 \family sans
6743 Document\SpecialChar menuseparator
6744 Settings\SpecialChar menuseparator
6745 Local Layout
6746 \family default
6747 .
6748  The large text box allows you to enter anything that you might enter in
6749  a layout file or module.
6750  You can think of a document's local layout, in fact, as a module that belongs
6751  just to it.
6752  So, in particular, you must enter a 
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 Format
6758 \end_layout
6759
6760 \end_inset
6761
6762  tag.
6763  Any format is acceptable, but one would normally use the format current
6764  at the time.
6765  (In \SpecialChar LyX
6766  2.1, the current layout format is 48.) You should be aware that local
6767  layout is not supported by versions of \SpecialChar LyX
6768  prior to 1.6, so you should not
6769  use it if you want to be able to export your document to \SpecialChar LyX
6770  1.5 or earlier
6771  (without, that is, losing the local layout information).
6772  If you wish to be able to export to 1.6—local layout is supported in 1.6,
6773  though there is no UI for it—then you should use format 11 and, of course,
6774  use only layout constructs that were available in \SpecialChar LyX
6775  1.6.
6776 \end_layout
6777
6778 \begin_layout Standard
6779 When you have entered something in the 
6780 \begin_inset Flex Code
6781 status collapsed
6782
6783 \begin_layout Plain Layout
6784 Local Layout
6785 \end_layout
6786
6787 \end_inset
6788
6789  pane, \SpecialChar LyX
6790  will enable the 
6791 \begin_inset Quotes eld
6792 \end_inset
6793
6794 Validate
6795 \begin_inset Quotes erd
6796 \end_inset
6797
6798  button at the bottom.
6799  Clicking this button will cause \SpecialChar LyX
6800  to determine whether what you have entered
6801  is valid layout information for the chosen format.
6802  \SpecialChar LyX
6803  will report the result but, unfortunately, will not tell you what errors
6804  there might have been.
6805  These will be written to the terminal, however, if \SpecialChar LyX
6806  is started from a terminal.
6807  You will not be permitted to save your local layout until you have entered
6808  something valid.
6809 \end_layout
6810
6811 \begin_layout Standard
6812 The warnings at the end of the previous section apply here, too.
6813  Do not play with local layout while you are actually working, especially
6814  if you have not saved your document.
6815  That said, using local layout with a test document can be a very convenient
6816  way to try out layout ideas, or even to start developing a module.
6817 \end_layout
6818
6819 \begin_layout Subsection
6820 Layout for 
6821 \begin_inset Flex Noun
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 .sty
6826 \end_layout
6827
6828 \end_inset
6829
6830  files
6831 \end_layout
6832
6833 \begin_layout Standard
6834 There are two situations you are likely to encounter when wanting to support
6835  a new \SpecialChar LaTeX
6836  document class, involving style (
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 .sty
6842 \end_layout
6843
6844 \end_inset
6845
6846 ) files and \SpecialChar LaTeX2e
6847  class (
6848 \begin_inset Flex Code
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 .cls
6853 \end_layout
6854
6855 \end_inset
6856
6857 ) .
6858  Supporting a style file is usually fairly easy.
6859  Supporting a new class file is a bit harder.
6860  We'll discuss the former in this section and the latter in the next.
6861  Similar remarks apply, of course, if you want to support a new DocBook
6862  DTD.
6863 \end_layout
6864
6865 \begin_layout Standard
6866 The easier case is the one in which your new document class is provided
6867  as a style file that is to be used in conjunction with an already supported
6868  document class.
6869  For the sake of the example, we'll assume that the style file is called
6870  
6871 \begin_inset Flex Noun
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 myclass.sty
6876 \end_layout
6877
6878 \end_inset
6879
6880  and that it is meant to be used with 
6881 \begin_inset Flex Noun
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 report.cls
6886 \end_layout
6887
6888 \end_inset
6889
6890 , which is a standard class.
6891  
6892 \end_layout
6893
6894 \begin_layout Standard
6895 Start by copying the existing class's layout file into your local directory:
6896 \begin_inset Foot
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Of course, which directory is your local directory will vary by platform,
6901  and \SpecialChar LyX
6902  allows you to specify your local directory on startup, too, using
6903  the 
6904 \begin_inset Flex Code
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 -userdir
6909 \end_layout
6910
6911 \end_inset
6912
6913  option.
6914 \end_layout
6915
6916 \end_inset
6917
6918
6919 \end_layout
6920
6921 \begin_layout LyX-Code
6922 cp report.layout ~/.lyx/layouts/myclass.layout
6923 \end_layout
6924
6925 \begin_layout Standard
6926 Then edit 
6927 \begin_inset Flex Code
6928 status collapsed
6929
6930 \begin_layout Plain Layout
6931 myclass.layout
6932 \end_layout
6933
6934 \end_inset
6935
6936  and change the line: 
6937 \end_layout
6938
6939 \begin_layout LyX-Code
6940
6941 \backslash
6942 Declare\SpecialChar LaTeX
6943 Class{report}
6944 \end_layout
6945
6946 \begin_layout Standard
6947 to read
6948 \end_layout
6949
6950 \begin_layout LyX-Code
6951
6952 \backslash
6953 Declare\SpecialChar LaTeX
6954 Class[report, myclass.sty]{report (myclass)}
6955 \end_layout
6956
6957 \begin_layout Standard
6958 Then add:
6959 \end_layout
6960
6961 \begin_layout LyX-Code
6962 Preamble 
6963 \begin_inset Newline newline
6964 \end_inset
6965
6966     
6967 \backslash
6968 usepackage{myclass}
6969 \begin_inset Newline newline
6970 \end_inset
6971
6972 EndPreamble
6973 \end_layout
6974
6975 \begin_layout Standard
6976 near the top of the file.
6977 \end_layout
6978
6979 \begin_layout Standard
6980 Start \SpecialChar LyX
6981  and select 
6982 \begin_inset Flex Noun
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 Tools\SpecialChar menuseparator
6987 Reconfigure
6988 \end_layout
6989
6990 \end_inset
6991
6992 .
6993  Then restart \SpecialChar LyX
6994  and try creating a new document.
6995  You should see "
6996 \begin_inset Flex Noun
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 report (myclass)
7001 \end_layout
7002
7003 \end_inset
7004
7005 " as a document class option in the 
7006 \begin_inset Flex Noun
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 Document\SpecialChar menuseparator
7011 Settings
7012 \end_layout
7013
7014 \end_inset
7015
7016  dialog.
7017  It is likely that some of the sectioning commands and such in your new
7018  class will work differently from how they worked in the base class—
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 report
7024 \end_layout
7025
7026 \end_inset
7027
7028  in this example—so you can fiddle around with the settings for the different
7029  sections if you wish.
7030  The layout information for sections is contained in 
7031 \begin_inset Flex Code
7032 status collapsed
7033
7034 \begin_layout Plain Layout
7035 stdsections.inc
7036 \end_layout
7037
7038 \end_inset
7039
7040 , but you do not need to copy and change this file.
7041  Instead, you can simply add your changes to your layout file, after the
7042  line 
7043 \begin_inset Flex Code
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 Input stdclass.inc
7048 \end_layout
7049
7050 \end_inset
7051
7052 , which itself includes 
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 stdsections.inc
7058 \end_layout
7059
7060 \end_inset
7061
7062 .
7063  For example, you might add these lines:
7064 \end_layout
7065
7066 \begin_layout LyX-Code
7067 Style Chapter
7068 \end_layout
7069
7070 \begin_layout LyX-Code
7071     Font
7072 \end_layout
7073
7074 \begin_layout LyX-Code
7075         Family Sans
7076 \end_layout
7077
7078 \begin_layout LyX-Code
7079     EndFont
7080 \end_layout
7081
7082 \begin_layout LyX-Code
7083 End
7084 \end_layout
7085
7086 \begin_layout Standard
7087 to change the font for chapter headings to sans-serif.
7088  This will override (or, in this case, add to) the existing declaration
7089  for the Chapter style.
7090  
7091 \end_layout
7092
7093 \begin_layout Standard
7094 Your new package may also provide commands or environments not present in
7095  the base class.
7096  In this case, you will want to add these to the layout file.
7097  See 
7098 \begin_inset CommandInset ref
7099 LatexCommand ref
7100 reference "sec:TextClass"
7101
7102 \end_inset
7103
7104  for information on how to do so.
7105 \end_layout
7106
7107 \begin_layout Standard
7108 If 
7109 \begin_inset Flex Noun
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 myclass.sty
7114 \end_layout
7115
7116 \end_inset
7117
7118  can be used with several different document classes, and even if it cannot,
7119  you might find it easiest just to write a module that you can load with
7120  the base class.
7121  The simplest possible such module would be:
7122 \end_layout
7123
7124 \begin_layout LyX-Code
7125 #
7126 \backslash
7127 DeclareLyXModule{My Package} 
7128 \end_layout
7129
7130 \begin_layout LyX-Code
7131 #DescriptionBegin 
7132 \end_layout
7133
7134 \begin_layout LyX-Code
7135 #Support for mypkg.sty.
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 #DescriptionEnd
7140 \begin_inset Newline newline
7141 \end_inset
7142
7143
7144 \end_layout
7145
7146 \begin_layout LyX-Code
7147 Format 35
7148 \begin_inset Newline newline
7149 \end_inset
7150
7151
7152 \end_layout
7153
7154 \begin_layout LyX-Code
7155 Preamble
7156 \begin_inset Newline newline
7157 \end_inset
7158
7159     
7160 \backslash
7161 usepackage{mypkg}
7162 \begin_inset Newline newline
7163 \end_inset
7164
7165 EndPreamble
7166 \end_layout
7167
7168 \begin_layout Standard
7169 A more complex module might modify the behavior of some existing constructs
7170  or define some new ones.
7171  Again, see 
7172 \begin_inset CommandInset ref
7173 LatexCommand ref
7174 reference "sec:TextClass"
7175
7176 \end_inset
7177
7178  for discussion.
7179 \end_layout
7180
7181 \begin_layout Subsection
7182 Layout for 
7183 \begin_inset Flex Noun
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187 .cls
7188 \end_layout
7189
7190 \end_inset
7191
7192  files
7193 \end_layout
7194
7195 \begin_layout Standard
7196 There are two possibilities here.
7197  One is that the class file is itself based upon an existing document class.
7198  For example, many thesis classes are based upon 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 book.cls
7204 \end_layout
7205
7206 \end_inset
7207
7208 .
7209  To see whether yours is, look for a line like
7210 \end_layout
7211
7212 \begin_layout LyX-Code
7213
7214 \backslash
7215 LoadClass{book}
7216 \end_layout
7217
7218 \begin_layout Standard
7219 in the file.
7220  If so, then you may proceed largely as in the previous section, though
7221  the 
7222 \begin_inset Flex Code
7223 status collapsed
7224
7225 \begin_layout Plain Layout
7226 Declare\SpecialChar LaTeX
7227 Class
7228 \end_layout
7229
7230 \end_inset
7231
7232  line will be different.
7233  If your new class is 
7234 \begin_inset Flex Code
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 thesis
7239 \end_layout
7240
7241 \end_inset
7242
7243  and it is based upon 
7244 \begin_inset Flex Code
7245 status collapsed
7246
7247 \begin_layout Plain Layout
7248 book
7249 \end_layout
7250
7251 \end_inset
7252
7253 , then the line should read:
7254 \begin_inset Foot
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 And it will be easiest if you save the file to 
7259 \begin_inset Flex Code
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 thesis.layout
7264 \end_layout
7265
7266 \end_inset
7267
7268 : \SpecialChar LyX
7269  assumes that the document class has the same name as the layout file.
7270  
7271 \end_layout
7272
7273 \end_inset
7274
7275
7276 \end_layout
7277
7278 \begin_layout LyX-Code
7279
7280 \backslash
7281 Declare\SpecialChar LaTeX
7282 Class[thesis,book]{thesis}
7283 \end_layout
7284
7285 \begin_layout Standard
7286 If, on the other hand, the new class is not based upon an existing class,
7287  you will probably have to 
7288 \begin_inset Quotes eld
7289 \end_inset
7290
7291 roll your own
7292 \begin_inset Quotes erd
7293 \end_inset
7294
7295  layout.
7296  We strongly suggest copying an existing layout file which uses a similar
7297  \SpecialChar LaTeX
7298  class and then modifying it, if you can do so.
7299  At least use an existing file as a starting point so you can find out what
7300  items you need to worry about.
7301  Again, the specifics are covered below.
7302 \end_layout
7303
7304 \begin_layout Subsection
7305 Creating templates
7306 \begin_inset CommandInset label
7307 LatexCommand label
7308 name "subsec:Creating-Templates"
7309
7310 \end_inset
7311
7312
7313 \end_layout
7314
7315 \begin_layout Standard
7316 Once you have written a layout file for a new document class, you might
7317  want to consider writing a 
7318 \emph on
7319 template
7320 \emph default
7321  for it, too.
7322  A template acts as a kind of tutorial for your layout, showing how it might
7323  be used, though containing dummy content.
7324  You can of course look at the various templates included with \SpecialChar LyX
7325  for ideas.
7326 \end_layout
7327
7328 \begin_layout Standard
7329 Templates are created just like usual documents: using \SpecialChar LyX
7330 .
7331  The only difference is that usual documents contain all possible settings,
7332  including the font scheme and the paper size.
7333  Usually a user doesn't want a template to overwrite his preferred settings
7334  for such parameters.
7335  For that reason, the designer of a template should remove the corresponding
7336  commands like 
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341
7342 \backslash
7343 font_roman
7344 \end_layout
7345
7346 \end_inset
7347
7348  or 
7349 \begin_inset Flex Code
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353
7354 \backslash
7355 papersize
7356 \end_layout
7357
7358 \end_inset
7359
7360  from the template \SpecialChar LyX
7361  file.
7362  This can be done with any simple text-editor, for example 
7363 \begin_inset Flex Code
7364 status collapsed
7365
7366 \begin_layout Plain Layout
7367 vi
7368 \end_layout
7369
7370 \end_inset
7371
7372  or 
7373 \begin_inset Flex Code
7374 status collapsed
7375
7376 \begin_layout Plain Layout
7377 notepad
7378 \end_layout
7379
7380 \end_inset
7381
7382 .
7383 \end_layout
7384
7385 \begin_layout Standard
7386 Put the edited template files you create in 
7387 \begin_inset Flex Code
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 UserDir/templates/
7392 \end_layout
7393
7394 \end_inset
7395
7396 , copy the ones you use from the global template directory in 
7397 \begin_inset Flex Code
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 LyXDir/templates/
7402 \end_layout
7403
7404 \end_inset
7405
7406  to the same place, and redefine the template path in the 
7407 \begin_inset Flex Noun
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 Tools\SpecialChar menuseparator
7412 Preferences\SpecialChar menuseparator
7413 Paths
7414 \end_layout
7415
7416 \end_inset
7417
7418  dialog.
7419 \end_layout
7420
7421 \begin_layout Standard
7422 Note, by the way, that there is a template which has a particular meaning:
7423  
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 defaults.lyx
7429 \end_layout
7430
7431 \end_inset
7432
7433 .
7434  This template is loaded every time you create a new document with 
7435 \begin_inset Flex Noun
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 File\SpecialChar menuseparator
7440 New
7441 \end_layout
7442
7443 \end_inset
7444
7445  in order to provide useful defaults.
7446  To create this template from inside \SpecialChar LyX
7447 , all you have to do is to open a document
7448  with the correct settings, and use the 
7449 \begin_inset Flex Noun
7450 status collapsed
7451
7452 \begin_layout Plain Layout
7453 Save as Document Defaults
7454 \end_layout
7455
7456 \end_inset
7457
7458  button.
7459 \end_layout
7460
7461 \begin_layout Subsection
7462 Upgrading old layout files
7463 \end_layout
7464
7465 \begin_layout Standard
7466 The format of layout files changes with each \SpecialChar LyX
7467  release, so old layout files
7468  need to be converted to the new format.
7469  If \SpecialChar LyX
7470  reads a layout file in an older format, it automatically calls the
7471  script 
7472 \begin_inset Flex Code
7473 status collapsed
7474
7475 \begin_layout Plain Layout
7476 layout2layout.py
7477 \end_layout
7478
7479 \end_inset
7480
7481  to convert it to a temporary file in current format.
7482  The original file is left untouched.
7483  If you use the layout file often, then, you may want to convert it permanently,
7484  so that \SpecialChar LyX
7485  does not have to do so itself every time.
7486  To do this, you can call the converter manually:
7487 \end_layout
7488
7489 \begin_layout Enumerate
7490 rename the file 
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 myclass.layout
7496 \end_layout
7497
7498 \end_inset
7499
7500  to 
7501 \begin_inset Flex Code
7502 status collapsed
7503
7504 \begin_layout Plain Layout
7505 myclass.old
7506 \end_layout
7507
7508 \end_inset
7509
7510
7511 \end_layout
7512
7513 \begin_layout Enumerate
7514 Call the command
7515 \begin_inset Newline newline
7516 \end_inset
7517
7518
7519 \begin_inset Flex Code
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7524 \end_layout
7525
7526 \end_inset
7527
7528
7529 \begin_inset Newline newline
7530 \end_inset
7531
7532 where 
7533 \begin_inset Flex Code
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 LyXDir
7538 \end_layout
7539
7540 \end_inset
7541
7542  is the name of your \SpecialChar LyX
7543  system directory.
7544 \end_layout
7545
7546 \begin_layout Standard
7547 Note that manual conversion does not affect included files, so these will
7548  have to be converted separately.
7549 \end_layout
7550
7551 \begin_layout Section
7552 \begin_inset CommandInset label
7553 LatexCommand label
7554 name "sec:TextClass"
7555
7556 \end_inset
7557
7558 The layout file format
7559 \end_layout
7560
7561 \begin_layout Standard
7562 The following sections describe how layout files are structured and written.
7563  Our advice is to go slowly, save and test often.
7564  It is really not that hard, except that the multitude of options can become
7565  overwhelming, especially if you try to check out too many at once.
7566  It becomes easier if you use existing layouts of \SpecialChar LyX
7567  as examples/reference
7568  or if you modify an existing layout to your needs.
7569 \end_layout
7570
7571 \begin_layout Standard
7572 Note that all the tags used in layout files are case-insensitive.
7573  This means that 
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
7584 \begin_inset Flex Code
7585 status collapsed
7586
7587 \begin_layout Plain Layout
7588 style
7589 \end_layout
7590
7591 \end_inset
7592
7593  and 
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 StYlE
7599 \end_layout
7600
7601 \end_inset
7602
7603  are really the same tag.
7604  The possible arguments are printed in brackets after the tag's name.
7605  The default argument is typeset 
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610
7611 \emph on
7612 emphasized
7613 \end_layout
7614
7615 \end_inset
7616
7617 .
7618  If the argument has a data type like 
7619 \begin_inset Quotes eld
7620 \end_inset
7621
7622 string
7623 \begin_inset Quotes erd
7624 \end_inset
7625
7626  or 
7627 \begin_inset Quotes eld
7628 \end_inset
7629
7630 float
7631 \begin_inset Quotes erd
7632 \end_inset
7633
7634 , the default is shown like this: 
7635 \begin_inset Flex Code
7636 status collapsed
7637
7638 \begin_layout Plain Layout
7639 float=
7640 \emph on
7641 default
7642 \end_layout
7643
7644 \end_inset
7645
7646 .
7647 \end_layout
7648
7649 \begin_layout Subsection
7650 The document class declaration and classification
7651 \end_layout
7652
7653 \begin_layout Standard
7654 Lines in a layout file which begin with 
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 #
7660 \end_layout
7661
7662 \end_inset
7663
7664  are comments.
7665  There is one exception to this rule.
7666  All 
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 *.layout
7672 \end_layout
7673
7674 \end_inset
7675
7676  files should begin with lines like:
7677 \end_layout
7678
7679 \begin_layout LyX-Code
7680
7681 \size small
7682 #% Do not delete the line below; configure depends on this 
7683 \end_layout
7684
7685 \begin_layout LyX-Code
7686
7687 \size small
7688 #  
7689 \backslash
7690 DeclareLaTeXClass{Article (Standard Class)}
7691 \end_layout
7692
7693 \begin_layout LyX-Code
7694
7695 \size small
7696 #  
7697 \backslash
7698 DeclareCategory{Articles}
7699 \end_layout
7700
7701 \begin_layout Standard
7702 The second and third lines are used when you (re)configure \SpecialChar LyX
7703 .
7704  The layout file is read by the \SpecialChar LaTeX
7705  script 
7706 \begin_inset Flex Code
7707 status collapsed
7708
7709 \begin_layout Plain Layout
7710 chkconfig.ltx
7711 \end_layout
7712
7713 \end_inset
7714
7715 , in a special mode where 
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 #
7721 \end_layout
7722
7723 \end_inset
7724
7725  is ignored.
7726  The first line is just a \SpecialChar LaTeX
7727  comment, the second one contains the mandatory
7728  declaration of the text class and the third line contains the optional
7729  classification of the class.
7730  If these lines appear in a file named 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 article.layout
7736 \end_layout
7737
7738 \end_inset
7739
7740 , then they define a text class of name 
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 article
7746 \end_layout
7747
7748 \end_inset
7749
7750  (the name of the layout file) which uses the \SpecialChar LaTeX
7751  document class 
7752 \begin_inset Flex Code
7753 status collapsed
7754
7755 \begin_layout Plain Layout
7756 article.cls
7757 \end_layout
7758
7759 \end_inset
7760
7761  (the default is to use the same name as the layout).
7762  The string 
7763 \begin_inset Quotes eld
7764 \end_inset
7765
7766 Article (Standard Class)
7767 \begin_inset Quotes erd
7768 \end_inset
7769
7770  that appears above is used as a description of the text class 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.
7782  The category (
7783 \begin_inset Quotes eld
7784 \end_inset
7785
7786 Articles
7787 \begin_inset Quotes erd
7788 \end_inset
7789
7790  in the example) is also used in the 
7791 \begin_inset Flex Noun
7792 status collapsed
7793
7794 \begin_layout Plain Layout
7795 Document\SpecialChar menuseparator
7796 Settings
7797 \end_layout
7798
7799 \end_inset
7800
7801  dialog: the text classes are grouped by these categories (which are usually
7802  genres, so typical categories are 
7803 \begin_inset Quotes eld
7804 \end_inset
7805
7806 Articles
7807 \begin_inset Quotes erd
7808 \end_inset
7809
7810
7811 \begin_inset Quotes eld
7812 \end_inset
7813
7814 Books
7815 \begin_inset Quotes erd
7816 \end_inset
7817
7818
7819 \begin_inset Quotes eld
7820 \end_inset
7821
7822 Reports
7823 \begin_inset Quotes erd
7824 \end_inset
7825
7826
7827 \begin_inset Quotes eld
7828 \end_inset
7829
7830 Letters
7831 \begin_inset Quotes erd
7832 \end_inset
7833
7834
7835 \begin_inset Quotes eld
7836 \end_inset
7837
7838 Presentations
7839 \begin_inset Quotes erd
7840 \end_inset
7841
7842
7843 \begin_inset Quotes eld
7844 \end_inset
7845
7846 Curricula Vitae
7847 \begin_inset Quotes erd
7848 \end_inset
7849
7850  etc.).
7851  If no category has been declared, the class will be put in the 
7852 \begin_inset Quotes eld
7853 \end_inset
7854
7855 Uncategorized
7856 \begin_inset Quotes erd
7857 \end_inset
7858
7859  group.
7860 \end_layout
7861
7862 \begin_layout Standard
7863 Let's assume that you wrote your own text class that uses the 
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 article.cls
7869 \end_layout
7870
7871 \end_inset
7872
7873  document class, but where you changed the appearance of the section headings.
7874  If you put it in a file 
7875 \begin_inset Flex Code
7876 status collapsed
7877
7878 \begin_layout Plain Layout
7879 myarticle.layout
7880 \end_layout
7881
7882 \end_inset
7883
7884 , the header of this file should be:
7885 \end_layout
7886
7887 \begin_layout LyX-Code
7888
7889 \size small
7890 #% Do not delete the line below; configure depends on this 
7891 \end_layout
7892
7893 \begin_layout LyX-Code
7894
7895 \size small
7896 #  
7897 \backslash
7898 DeclareLaTeXClass[article]{Article (with My Own Headings)}
7899 \end_layout
7900
7901 \begin_layout LyX-Code
7902
7903 \size small
7904 #  
7905 \backslash
7906 DeclareCategory{Articles}
7907 \end_layout
7908
7909 \begin_layout Standard
7910 This declares a text class 
7911 \begin_inset Flex Code
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 myarticle
7916 \end_layout
7917
7918 \end_inset
7919
7920 , associated with the \SpecialChar LaTeX
7921  document class 
7922 \begin_inset Flex Code
7923 status collapsed
7924
7925 \begin_layout Plain Layout
7926 article.cls
7927 \end_layout
7928
7929 \end_inset
7930
7931  and described as 
7932 \begin_inset Quotes eld
7933 \end_inset
7934
7935 Article (with My Own Headings)
7936 \begin_inset Quotes erd
7937 \end_inset
7938
7939 .
7940  If your text class depends on several packages, you can declare it as:
7941 \end_layout
7942
7943 \begin_layout LyX-Code
7944
7945 \size small
7946 #% Do not delete the line below; configure depends on this 
7947 \end_layout
7948
7949 \begin_layout LyX-Code
7950
7951 \size small
7952 #  
7953 \backslash
7954 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
7955 \end_layout
7956
7957 \begin_layout LyX-Code
7958
7959 \size small
7960 #  
7961 \backslash
7962 DeclareCategory{Articles}
7963 \end_layout
7964
7965 \begin_layout Standard
7966 This indicates that your text class uses the 
7967 \begin_inset Flex Code
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 foo.sty
7972 \end_layout
7973
7974 \end_inset
7975
7976  package.
7977  Finally, it is also possible to declare classes for DocBook code.
7978  Typical declarations will look like:
7979 \end_layout
7980
7981 \begin_layout LyX-Code
7982
7983 \size small
7984 #% Do not delete the line below; configure depends on this 
7985 \end_layout
7986
7987 \begin_layout LyX-Code
7988
7989 \size small
7990
7991 \backslash
7992 DeclareDocBookClass[article]{SGML (DocBook Article)}
7993 \end_layout
7994
7995 \begin_layout LyX-Code
7996
7997 \size small
7998
7999 \backslash
8000 DeclareCategory{Articles (DocBook)}
8001 \end_layout
8002
8003 \begin_layout Standard
8004 Note that these declarations can also be given an optional parameter declaring
8005  the name of the document class (but not a list).
8006 \end_layout
8007
8008 \begin_layout Standard
8009 So, to be as explicit as possible, the form of the layout declaration is:
8010 \end_layout
8011
8012 \begin_layout LyX-Code
8013
8014 \size small
8015 #  
8016 \backslash
8017 DeclareLaTeXClass[class,package.sty]{layout description}
8018 \end_layout
8019
8020 \begin_layout LyX-Code
8021
8022 \size small
8023 #  
8024 \backslash
8025 DeclareCategory{category}
8026 \end_layout
8027
8028 \begin_layout Standard
8029 The class need only be specified if the name of the \SpecialChar LaTeX
8030  class file and the
8031  name of the layout file are different or if there are packages to load.
8032  If the name of the class file is not specified, then \SpecialChar LyX
8033  will simply assume
8034  that it is the same as the name of the layout file.
8035 \end_layout
8036
8037 \begin_layout Standard
8038 When the text class has been modified to your taste, all you have to do
8039  is to copy it either to 
8040 \begin_inset Flex Code
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 LyXDir/layouts/
8045 \end_layout
8046
8047 \end_inset
8048
8049  or to 
8050 \begin_inset Flex Code
8051 status collapsed
8052
8053 \begin_layout Plain Layout
8054 UserDir/layouts
8055 \end_layout
8056
8057 \end_inset
8058
8059 , run 
8060 \begin_inset Flex Noun
8061 status collapsed
8062
8063 \begin_layout Plain Layout
8064 Tools\SpecialChar menuseparator
8065 Reconfigure
8066 \end_layout
8067
8068 \end_inset
8069
8070 , exit \SpecialChar LyX
8071  and restart.
8072  Then your new text class should be available along with the others.
8073 \end_layout
8074
8075 \begin_layout Standard
8076 Once the layout file is installed, you can edit it and see your changes
8077  without having to reconfigure or to restart \SpecialChar LyX
8078 .
8079  
8080 \begin_inset Foot
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 In versions of \SpecialChar LyX
8085  prior to 1.6, this was not true.
8086  As a result, editing layout files was very time consuming, since you had
8087  constantly to restart \SpecialChar LyX
8088  to see changes.
8089 \end_layout
8090
8091 \end_inset
8092
8093  You can force a reload of the current layout by using the \SpecialChar LyX
8094  function 
8095 \begin_inset Flex Noun
8096 status collapsed
8097
8098 \begin_layout Plain Layout
8099 layout-reload
8100 \end_layout
8101
8102 \end_inset
8103
8104 .
8105  There is no default binding for this function—though, of course, you can
8106  bind it to a key yourself.
8107  But you will normally use this function simply by entering it in the mini-buffe
8108 r.
8109  
8110 \end_layout
8111
8112 \begin_layout Standard
8113
8114 \emph on
8115 Warning
8116 \emph default
8117
8118 \begin_inset Flex Noun
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 layout-reload
8123 \end_layout
8124
8125 \end_inset
8126
8127  is very much an `advanced feature'.
8128  It is 
8129 \emph on
8130 strongly
8131 \emph default
8132  recommended that you save your work before using this function.
8133  In fact, it is 
8134 \emph on
8135 strongly
8136 \emph default
8137  recommended that you not attempt to edit layout information while simultaneousl
8138 y working on a document that you care about.
8139  Use a test document.
8140  Syntax errors and the like in your layout file could cause peculiar behavior.
8141  In particular, such errors could cause \SpecialChar LyX
8142  to regard the current layout as
8143  invalid and to attempt to switch to some other layout.
8144 \begin_inset Foot
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 Really bad syntax errors may even caused \SpecialChar LyX
8149  to exit.
8150  This is because certain sorts of errors may make \SpecialChar LyX
8151  unable to read 
8152 \emph on
8153 any
8154 \emph default
8155  layout information.
8156  Please be careful.
8157 \end_layout
8158
8159 \end_inset
8160
8161  The \SpecialChar LyX
8162  team strives to keep \SpecialChar LyX
8163  stable in such situations, but safe is better
8164  than sorry.
8165 \begin_inset Foot
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 While we're giving advice: make regular backups.
8170  And be nice to your mother.
8171 \end_layout
8172
8173 \end_inset
8174
8175
8176 \end_layout
8177
8178 \begin_layout Subsection
8179 The Module declaration
8180 \end_layout
8181
8182 \begin_layout Standard
8183 A module must begin with a line like the following:
8184 \end_layout
8185
8186 \begin_layout LyX-Code
8187 #
8188 \backslash
8189 DeclareLyXModule[endnotes.sty]{Endnotes} 
8190 \end_layout
8191
8192 \begin_layout Standard
8193 The mandatory argument, in curly brackets, is the name of the module, as
8194  it should appear in 
8195 \begin_inset Flex Noun
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 Document\SpecialChar menuseparator
8200 Settings\SpecialChar menuseparator
8201 Modules
8202 \end_layout
8203
8204 \end_inset
8205
8206 .
8207  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8208  packages
8209  on which the module depends.
8210  It is also possible to use the form 
8211 \begin_inset Flex Noun
8212 status collapsed
8213
8214 \begin_layout Plain Layout
8215 from->to
8216 \end_layout
8217
8218 \end_inset
8219
8220  as an optional argument, which declares that the module can only be used
8221  when there exists a conversion chain between the formats `
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 from
8227 \end_layout
8228
8229 \end_inset
8230
8231 ' and `
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 to
8237 \end_layout
8238
8239 \end_inset
8240
8241 '.
8242 \end_layout
8243
8244 \begin_layout Standard
8245 The module declaration should then be followed by lines like the following
8246 \begin_inset Foot
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 Preferably in English if the module should be published with \SpecialChar LyX
8251 .
8252  This description will appear in the list of messages to be translated and
8253  will be thus translated with the next interface update.
8254 \end_layout
8255
8256 \end_inset
8257
8258 :
8259 \end_layout
8260
8261 \begin_layout LyX-Code
8262 #DescriptionBegin 
8263 \end_layout
8264
8265 \begin_layout LyX-Code
8266 #Adds an endnote command, in addition to footnotes.
8267  
8268 \end_layout
8269
8270 \begin_layout LyX-Code
8271 #You will need to add  
8272 \backslash
8273 theendnotes in TeX code where you 
8274 \end_layout
8275
8276 \begin_layout LyX-Code
8277 #want the endnotes to appear.
8278  
8279 \end_layout
8280
8281 \begin_layout LyX-Code
8282 #DescriptionEnd 
8283 \end_layout
8284
8285 \begin_layout LyX-Code
8286 #Requires: somemodule | othermodule
8287 \end_layout
8288
8289 \begin_layout LyX-Code
8290 #Excludes: badmodule
8291 \end_layout
8292
8293 \begin_layout Standard
8294 The description is used in 
8295 \begin_inset Flex Noun
8296 status collapsed
8297
8298 \begin_layout Plain Layout
8299 Document\SpecialChar menuseparator
8300 Settings\SpecialChar menuseparator
8301 Modules
8302 \end_layout
8303
8304 \end_inset
8305
8306  to provide the user with information about what the module does.
8307  The 
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 Requires
8313 \end_layout
8314
8315 \end_inset
8316
8317  line is used to identify other modules with which this one must be used;
8318  the 
8319 \begin_inset Flex Code
8320 status collapsed
8321
8322 \begin_layout Plain Layout
8323 Excludes
8324 \end_layout
8325
8326 \end_inset
8327
8328  line is used to identify modules with which this one may not be used.
8329  Both are optional, and, as shown, multiple modules should be separated
8330  with the pipe symbol: |.
8331  Note that the required modules are treated disjunctively: 
8332 \emph on
8333 at least one
8334 \emph default
8335  of the required modules must be used.
8336  Similarly, 
8337 \emph on
8338 no
8339 \emph default
8340  excluded module may be used.
8341  Note that modules are identified here by their filenames without the 
8342 \begin_inset Flex Code
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 .module
8347 \end_layout
8348
8349 \end_inset
8350
8351  extension.
8352  So 
8353 \begin_inset Flex Code
8354 status collapsed
8355
8356 \begin_layout Plain Layout
8357 somemodule
8358 \end_layout
8359
8360 \end_inset
8361
8362  is really 
8363 \begin_inset Flex Code
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 somemodule.module
8368 \end_layout
8369
8370 \end_inset
8371
8372 .
8373 \end_layout
8374
8375 \begin_layout Subsection
8376 Format number
8377 \end_layout
8378
8379 \begin_layout Standard
8380 The first non-comment line of any layout file, included file, or module
8381  
8382 \emph on
8383 must
8384 \emph default
8385  contain the file format number:
8386 \end_layout
8387
8388 \begin_layout Description
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 Format
8394 \end_layout
8395
8396 \end_inset
8397
8398  [
8399 \begin_inset Flex Code
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 int
8404 \end_layout
8405
8406 \end_inset
8407
8408 ] The format number of the layout file.
8409 \end_layout
8410
8411 \begin_layout Standard
8412 This tag was introduced with \SpecialChar LyX
8413
8414 \begin_inset space ~
8415 \end_inset
8416
8417 1.4.0.
8418  Layout files from older \SpecialChar LyX
8419  versions do not have an explicit file format and
8420  are considered to have 
8421 \begin_inset Flex Code
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 Format
8426 \begin_inset space ~
8427 \end_inset
8428
8429 1
8430 \end_layout
8431
8432 \end_inset
8433
8434 .
8435  The format for the present version of \SpecialChar LyX
8436  is format 59.
8437  But each version of \SpecialChar LyX
8438  is capable of reading earlier versions' layout files,
8439  just as they are capable of reading files produced by earlier versions
8440  of \SpecialChar LyX
8441 .
8442  There is, however, no provision for converting to earlier formats.
8443 \end_layout
8444
8445 \begin_layout Subsection
8446 \begin_inset CommandInset label
8447 LatexCommand label
8448 name "subsec:General-text-class"
8449
8450 \end_inset
8451
8452 General text class parameters
8453 \end_layout
8454
8455 \begin_layout Standard
8456 These are general parameters that govern the behavior of an entire document
8457  class.
8458  (This does 
8459 \emph on
8460 not
8461 \emph default
8462  mean that they must appear in 
8463 \begin_inset Flex Code
8464 status collapsed
8465
8466 \begin_layout Plain Layout
8467 .layout
8468 \end_layout
8469
8470 \end_inset
8471
8472  files rather than in modules.
8473  A module can contain any layout tag.)
8474 \end_layout
8475
8476 \begin_layout Description
8477 \begin_inset Flex Code
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 AddToHTMLPreamble
8482 \end_layout
8483
8484 \end_inset
8485
8486  Adds information that will be output in the 
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 <head>
8492 \end_layout
8493
8494 \end_inset
8495
8496  block when the document is output to XHTML.
8497  Typically, this would be used to output CSS style information, but it can
8498  be used for anything that can appear in 
8499 \begin_inset Flex Code
8500 status collapsed
8501
8502 \begin_layout Plain Layout
8503 <head>
8504 \end_layout
8505
8506 \end_inset
8507
8508 .
8509  Must end with 
8510 \begin_inset Quotes eld
8511 \end_inset
8512
8513
8514 \begin_inset Flex Code
8515 status collapsed
8516
8517 \begin_layout Plain Layout
8518 EndPreamble
8519 \end_layout
8520
8521 \end_inset
8522
8523
8524 \begin_inset Quotes erd
8525 \end_inset
8526
8527 .
8528 \end_layout
8529
8530 \begin_layout Description
8531 \begin_inset Flex Code
8532 status collapsed
8533
8534 \begin_layout Plain Layout
8535 AddToPreamble
8536 \end_layout
8537
8538 \end_inset
8539
8540  Adds information to the document preamble.
8541  Must end with
8542 \begin_inset Newline newline
8543 \end_inset
8544
8545
8546 \begin_inset Quotes eld
8547 \end_inset
8548
8549
8550 \begin_inset Flex Code
8551 status collapsed
8552
8553 \begin_layout Plain Layout
8554 EndPreamble
8555 \end_layout
8556
8557 \end_inset
8558
8559
8560 \begin_inset Quotes erd
8561 \end_inset
8562
8563 .
8564 \end_layout
8565
8566 \begin_layout Description
8567 \begin_inset Flex Code
8568 status collapsed
8569
8570 \begin_layout Plain Layout
8571 CiteFormat
8572 \end_layout
8573
8574 \end_inset
8575
8576  Defines formats for use in the display of bibliographic information.
8577  See 
8578 \begin_inset CommandInset ref
8579 LatexCommand ref
8580 reference "subsec:Citation-format-description"
8581
8582 \end_inset
8583
8584  for details.
8585  Must end with 
8586 \begin_inset Quotes eld
8587 \end_inset
8588
8589
8590 \begin_inset Flex Code
8591 status collapsed
8592
8593 \begin_layout Plain Layout
8594 End
8595 \end_layout
8596
8597 \end_inset
8598
8599
8600 \begin_inset Quotes erd
8601 \end_inset
8602
8603 .
8604 \end_layout
8605
8606 \begin_layout Description
8607 \begin_inset Flex Code
8608 status collapsed
8609
8610 \begin_layout Plain Layout
8611 ClassOptions
8612 \end_layout
8613
8614 \end_inset
8615
8616  Describes various global options supported by the document class.
8617  See 
8618 \begin_inset CommandInset ref
8619 LatexCommand ref
8620 reference "subsec:ClassOptions"
8621
8622 \end_inset
8623
8624  for a description.
8625  Must end with 
8626 \begin_inset Quotes eld
8627 \end_inset
8628
8629
8630 \begin_inset Flex Code
8631 status collapsed
8632
8633 \begin_layout Plain Layout
8634 End
8635 \end_layout
8636
8637 \end_inset
8638
8639
8640 \begin_inset Quotes erd
8641 \end_inset
8642
8643 .
8644 \end_layout
8645
8646 \begin_layout Description
8647 \begin_inset Flex Code
8648 status collapsed
8649
8650 \begin_layout Plain Layout
8651 Columns
8652 \end_layout
8653
8654 \end_inset
8655
8656  [
8657 \begin_inset Flex Code
8658 status collapsed
8659
8660 \begin_layout Plain Layout
8661
8662 \emph on
8663 1
8664 \end_layout
8665
8666 \end_inset
8667
8668 ,
8669 \begin_inset space \thinspace{}
8670 \end_inset
8671
8672
8673 \begin_inset Flex Code
8674 status collapsed
8675
8676 \begin_layout Plain Layout
8677 2
8678 \end_layout
8679
8680 \end_inset
8681
8682 ] Whether the class should 
8683 \emph on
8684 default
8685 \emph default
8686  to having one or two columns.
8687  Can be changed in the 
8688 \begin_inset Flex Noun
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 Document\SpecialChar menuseparator
8693 Settings
8694 \end_layout
8695
8696 \end_inset
8697
8698  dialog.
8699 \end_layout
8700
8701 \begin_layout Description
8702 \begin_inset Flex Code
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706 Counter
8707 \end_layout
8708
8709 \end_inset
8710
8711  [
8712 \begin_inset Flex Code
8713 status collapsed
8714
8715 \begin_layout Plain Layout
8716 string
8717 \end_layout
8718
8719 \end_inset
8720
8721 ] This sequence defines the properties for a counter.
8722  If the counter does not yet exist, it is created; if it does exist, it
8723  is modified.
8724  Must end with 
8725 \begin_inset Quotes eld
8726 \end_inset
8727
8728
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 End
8734 \end_layout
8735
8736 \end_inset
8737
8738
8739 \begin_inset Quotes erd
8740 \end_inset
8741
8742 .
8743 \begin_inset Newline newline
8744 \end_inset
8745
8746 See 
8747 \begin_inset CommandInset ref
8748 LatexCommand ref
8749 reference "subsec:Counters"
8750
8751 \end_inset
8752
8753  for details on counters.
8754 \end_layout
8755
8756 \begin_layout Description
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 DefaultFont
8762 \end_layout
8763
8764 \end_inset
8765
8766  Sets the default font used to display the document.
8767  See 
8768 \begin_inset CommandInset ref
8769 LatexCommand ref
8770 reference "subsec:Font-description"
8771
8772 \end_inset
8773
8774  for how to declare fonts.
8775  Must end with 
8776 \begin_inset Quotes eld
8777 \end_inset
8778
8779
8780 \begin_inset Flex Code
8781 status collapsed
8782
8783 \begin_layout Plain Layout
8784 EndFont
8785 \end_layout
8786
8787 \end_inset
8788
8789
8790 \begin_inset Quotes erd
8791 \end_inset
8792
8793 .
8794 \end_layout
8795
8796 \begin_layout Description
8797 \begin_inset Flex Code
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 DefaultModule
8802 \end_layout
8803
8804 \end_inset
8805
8806  [
8807 \begin_inset Flex Code
8808 status collapsed
8809
8810 \begin_layout Plain Layout
8811 <module>
8812 \end_layout
8813
8814 \end_inset
8815
8816 ] Specifies a module to be included by default with this document class.
8817  The module is specified as filename without the 
8818 \begin_inset Flex Code
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 .module
8823 \end_layout
8824
8825 \end_inset
8826
8827  extension.
8828  The user can still remove the module, but it will be active at the outset.
8829  (This applies only when new files are created, or when this class is chosen
8830  for an existing document.)
8831 \end_layout
8832
8833 \begin_layout Description
8834 \begin_inset Flex Code
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 DefaultStyle
8839 \end_layout
8840
8841 \end_inset
8842
8843  [
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 <style>
8849 \end_layout
8850
8851 \end_inset
8852
8853 ] This is the style that will be assigned to new paragraphs, usually 
8854 \begin_inset Flex Noun
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 Standard
8859 \end_layout
8860
8861 \end_inset
8862
8863 .
8864  This will default to the first defined style if not given, but you are
8865  encouraged to use this directive.
8866 \end_layout
8867
8868 \begin_layout Description
8869 \begin_inset Flex Code
8870 status collapsed
8871
8872 \begin_layout Plain Layout
8873 ExcludesModule
8874 \end_layout
8875
8876 \end_inset
8877
8878  [
8879 \begin_inset Flex Code
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 <module>
8884 \end_layout
8885
8886 \end_inset
8887
8888 ] This tag indicates that the module (which is specified by filename without
8889  the 
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 .module
8895 \end_layout
8896
8897 \end_inset
8898
8899  extension) cannot be used with this document class.
8900  This might be used in a journal-specific layout file to prevent, say, the
8901  use of the 
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 theorems-sec
8907 \end_layout
8908
8909 \end_inset
8910
8911  module that numbers theorems by section.
8912  This tag may 
8913 \emph on
8914 not
8915 \emph default
8916  be used in a module.
8917  Modules have their own way of excluding other modules (see 
8918 \begin_inset CommandInset ref
8919 LatexCommand ref
8920 reference "subsec:Layout-modules"
8921
8922 \end_inset
8923
8924 ).
8925 \end_layout
8926
8927 \begin_layout Description
8928 \begin_inset Flex Code
8929 status collapsed
8930
8931 \begin_layout Plain Layout
8932 Float
8933 \end_layout
8934
8935 \end_inset
8936
8937  Defines a new float.
8938  See 
8939 \begin_inset CommandInset ref
8940 LatexCommand ref
8941 reference "subsec:Floats"
8942
8943 \end_inset
8944
8945  for details.
8946  Must end with 
8947 \begin_inset Quotes eld
8948 \end_inset
8949
8950
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 End
8956 \end_layout
8957
8958 \end_inset
8959
8960
8961 \begin_inset Quotes erd
8962 \end_inset
8963
8964 .
8965 \end_layout
8966
8967 \begin_layout Description
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 HTMLPreamble
8973 \end_layout
8974
8975 \end_inset
8976
8977  Sets the information that will be output in the 
8978 \begin_inset Flex Code
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 <head>
8983 \end_layout
8984
8985 \end_inset
8986
8987  block when this document class is output to XHTML.
8988  Note that this will completely override any prior 
8989 \begin_inset Flex Code
8990 status collapsed
8991
8992 \begin_layout Plain Layout
8993 HTMLPreamble
8994 \end_layout
8995
8996 \end_inset
8997
8998  or 
8999 \begin_inset Flex Code
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 AddToHTMLPreamble
9004 \end_layout
9005
9006 \end_inset
9007
9008  declarations.
9009  (Use
9010 \begin_inset Newline newline
9011 \end_inset
9012
9013
9014 \begin_inset Flex Code
9015 status collapsed
9016
9017 \begin_layout Plain Layout
9018 AddToHTMLPreamble
9019 \end_layout
9020
9021 \end_inset
9022
9023  if you just want to add material to the preamble.) Must end with 
9024 \begin_inset Quotes eld
9025 \end_inset
9026
9027
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 EndPreamble
9033 \end_layout
9034
9035 \end_inset
9036
9037
9038 \begin_inset Quotes erd
9039 \end_inset
9040
9041 .
9042 \end_layout
9043
9044 \begin_layout Description
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 HTMLTOCSection
9050 \end_layout
9051
9052 \end_inset
9053
9054  [
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 <style>
9060 \end_layout
9061
9062 \end_inset
9063
9064 ] The style to use for the table of contents, bibliography, and so forth,
9065  when the document is output to HTML.
9066  For articles, this should normally be 
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 Section
9072 \end_layout
9073
9074 \end_inset
9075
9076 ; for books 
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 Chapter
9082 \end_layout
9083
9084 \end_inset
9085
9086 .
9087  If it is not given, then \SpecialChar LyX
9088  will attempt to figure out which layout to use.
9089 \end_layout
9090
9091 \begin_layout Description
9092 \begin_inset Flex Code
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 IfCounter
9097 \end_layout
9098
9099 \end_inset
9100
9101  [
9102 \begin_inset Flex Code
9103 status collapsed
9104
9105 \begin_layout Plain Layout
9106 <counter>
9107 \end_layout
9108
9109 \end_inset
9110
9111 ] Modifies the properties of the given counter.
9112  If the counter does not exist, the statement is ignored.
9113  Must end with 
9114 \begin_inset Quotes eld
9115 \end_inset
9116
9117
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122 End
9123 \end_layout
9124
9125 \end_inset
9126
9127
9128 \begin_inset Quotes erd
9129 \end_inset
9130
9131 .
9132 \begin_inset Newline newline
9133 \end_inset
9134
9135 See 
9136 \begin_inset CommandInset ref
9137 LatexCommand ref
9138 reference "subsec:Counters"
9139
9140 \end_inset
9141
9142  for details on counters.
9143 \end_layout
9144
9145 \begin_layout Description
9146 \begin_inset Flex Code
9147 status collapsed
9148
9149 \begin_layout Plain Layout
9150 Input
9151 \end_layout
9152
9153 \end_inset
9154
9155  [
9156 \begin_inset Flex Code
9157 status collapsed
9158
9159 \begin_layout Plain Layout
9160 <filename>
9161 \end_layout
9162
9163 \end_inset
9164
9165 ] This allows you to include another layout definition file within yours
9166  to avoid duplicating commands.
9167  Common examples are the standard layout files, for example, 
9168 \begin_inset Flex Code
9169 status collapsed
9170
9171 \begin_layout Plain Layout
9172 stdclass.inc
9173 \end_layout
9174
9175 \end_inset
9176
9177 , which contains most of the basic layouts.
9178 \end_layout
9179
9180 \begin_layout Description
9181 \begin_inset Flex Code
9182 status collapsed
9183
9184 \begin_layout Plain Layout
9185 InsetLayout
9186 \end_layout
9187
9188 \end_inset
9189
9190  [
9191 \begin_inset Flex Code
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 <type>
9196 \end_layout
9197
9198 \end_inset
9199
9200 ] This section (re-)defines the layout of an inset.
9201  It can be applied to an existing inset or to a new, user-defined inset,
9202  e.g., a new character style.
9203  Must end with 
9204 \begin_inset Quotes eld
9205 \end_inset
9206
9207
9208 \begin_inset Flex Code
9209 status collapsed
9210
9211 \begin_layout Plain Layout
9212 End
9213 \end_layout
9214
9215 \end_inset
9216
9217
9218 \begin_inset Quotes erd
9219 \end_inset
9220
9221 .
9222 \begin_inset Newline newline
9223 \end_inset
9224
9225 See 
9226 \begin_inset CommandInset ref
9227 LatexCommand ref
9228 reference "subsec:Flex-insets-and"
9229
9230 \end_inset
9231
9232  for more information.
9233  
9234 \end_layout
9235
9236 \begin_layout Description
9237 \begin_inset Flex Code
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 LeftMargin
9242 \end_layout
9243
9244 \end_inset
9245
9246  [
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 string
9252 \end_layout
9253
9254 \end_inset
9255
9256 ] A string that indicates the width of the left margin on the screen, for
9257  example, 
9258 \begin_inset Quotes eld
9259 \end_inset
9260
9261
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 MMMMM
9267 \end_layout
9268
9269 \end_inset
9270
9271
9272 \begin_inset Quotes erd
9273 \end_inset
9274
9275 .
9276  (Note that this is not a `length', like 
9277 \begin_inset Quotes eld
9278 \end_inset
9279
9280 2ex
9281 \begin_inset Quotes erd
9282 \end_inset
9283
9284 .)
9285 \end_layout
9286
9287 \begin_layout Description
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 ModifyStyle
9293 \end_layout
9294
9295 \end_inset
9296
9297  [
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302 <style>
9303 \end_layout
9304
9305 \end_inset
9306
9307 ] Modifies the properties of the given paragraph style.
9308  If the style does not exist, this section is ignored.
9309  Must end with 
9310 \begin_inset Quotes eld
9311 \end_inset
9312
9313
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 End
9319 \end_layout
9320
9321 \end_inset
9322
9323
9324 \begin_inset Quotes erd
9325 \end_inset
9326
9327 .
9328 \end_layout
9329
9330 \begin_layout Description
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 NoCounter
9336 \end_layout
9337
9338 \end_inset
9339
9340  [
9341 \begin_inset Flex Code
9342 status collapsed
9343
9344 \begin_layout Plain Layout
9345 <counter>
9346 \end_layout
9347
9348 \end_inset
9349
9350 ] Deletes an existing counter, usually one defined in an included file.
9351 \end_layout
9352
9353 \begin_layout Description
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 NoFloat
9359 \end_layout
9360
9361 \end_inset
9362
9363  [
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 <float>
9369 \end_layout
9370
9371 \end_inset
9372
9373 ] Deletes an existing float.
9374  This is particularly useful when you want to suppress a float that has
9375  been defined in an input file.
9376 \end_layout
9377
9378 \begin_layout Description
9379 \begin_inset Flex Code
9380 status collapsed
9381
9382 \begin_layout Plain Layout
9383 NoStyle
9384 \end_layout
9385
9386 \end_inset
9387
9388  [
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 <style>
9394 \end_layout
9395
9396 \end_inset
9397
9398 ] Deletes an existing style.
9399 \end_layout
9400
9401 \begin_layout Description
9402 \begin_inset Flex Code
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 OutputFormat
9407 \end_layout
9408
9409 \end_inset
9410
9411  [
9412 \begin_inset Flex Code
9413 status collapsed
9414
9415 \begin_layout Plain Layout
9416 <format>
9417 \end_layout
9418
9419 \end_inset
9420
9421 ] The file format (as defined in the \SpecialChar LyX
9422  preferences) produced by this document
9423  class.
9424  It is mainly useful when 
9425 \begin_inset Flex Code
9426 status collapsed
9427
9428 \begin_layout Plain Layout
9429 OutputType
9430 \end_layout
9431
9432 \end_inset
9433
9434  is 
9435 \begin_inset Flex Code
9436 status collapsed
9437
9438 \begin_layout Plain Layout
9439 literate
9440 \end_layout
9441
9442 \end_inset
9443
9444  and one wants to define a new type of literate document.
9445  The format is reset to 
9446 \begin_inset Quotes eld
9447 \end_inset
9448
9449
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454 docbook
9455 \end_layout
9456
9457 \end_inset
9458
9459
9460 \begin_inset Quotes erd
9461 \end_inset
9462
9463  or 
9464 \begin_inset Quotes eld
9465 \end_inset
9466
9467
9468 \begin_inset Flex Code
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 latex
9473 \end_layout
9474
9475 \end_inset
9476
9477
9478 \begin_inset Quotes erd
9479 \end_inset
9480
9481  when the corresponding 
9482 \begin_inset Flex Code
9483 status collapsed
9484
9485 \begin_layout Plain Layout
9486 OutputType
9487 \end_layout
9488
9489 \end_inset
9490
9491  parameter is encountered.
9492 \end_layout
9493
9494 \begin_layout Description
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 OutputType
9500 \end_layout
9501
9502 \end_inset
9503
9504  [
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509
9510 \emph on
9511 lat
9512 \emph default
9513 ex
9514 \end_layout
9515
9516 \end_inset
9517
9518
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 docbook
9524 \end_layout
9525
9526 \end_inset
9527
9528
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 literate
9534 \end_layout
9535
9536 \end_inset
9537
9538 ] Specifies what sort of output documents using this class will produce.
9539 \end_layout
9540
9541 \begin_layout Description
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 PackageOptions
9547 \end_layout
9548
9549 \end_inset
9550
9551  [
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 string
9557 \end_layout
9558
9559 \end_inset
9560
9561  
9562 \begin_inset Flex Code
9563 status collapsed
9564
9565 \begin_layout Plain Layout
9566 string
9567 \end_layout
9568
9569 \end_inset
9570
9571 ] Specifies options, given in the second string, for the package named by
9572  the first string.
9573  For example, 
9574 \begin_inset Quotes eld
9575 \end_inset
9576
9577
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 PackageOptions natbib square
9583 \end_layout
9584
9585 \end_inset
9586
9587
9588 \begin_inset Quotes erd
9589 \end_inset
9590
9591  will cause 
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 natbib
9597 \end_layout
9598
9599 \end_inset
9600
9601  to be loaded with the 
9602 \begin_inset Flex Code
9603 status collapsed
9604
9605 \begin_layout Plain Layout
9606 square
9607 \end_layout
9608
9609 \end_inset
9610
9611  option.
9612  (For \SpecialChar TeX
9613 perts, this causes \SpecialChar LyX
9614  to output: 
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619
9620 \backslash
9621 PassOptionsToPackage{natbib}{square}
9622 \end_layout
9623
9624 \end_inset
9625
9626  prior to loading 
9627 \begin_inset Flex Code
9628 status collapsed
9629
9630 \begin_layout Plain Layout
9631 natbib
9632 \end_layout
9633
9634 \end_inset
9635
9636 .)
9637 \end_layout
9638
9639 \begin_layout Description
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 PageStyle
9645 \end_layout
9646
9647 \end_inset
9648
9649  [
9650 \begin_inset Flex Code
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654
9655 \emph on
9656 plain
9657 \end_layout
9658
9659 \end_inset
9660
9661
9662 \begin_inset Flex Code
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 empty
9667 \end_layout
9668
9669 \end_inset
9670
9671
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676 headings
9677 \end_layout
9678
9679 \end_inset
9680
9681 ] The default pagestyle.
9682  Can be changed in the 
9683 \begin_inset Flex Noun
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 Document\SpecialChar menuseparator
9688 Settings
9689 \end_layout
9690
9691 \end_inset
9692
9693  dialog.
9694 \end_layout
9695
9696 \begin_layout Description
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 Preamble
9702 \end_layout
9703
9704 \end_inset
9705
9706  Sets the preamble for the \SpecialChar LaTeX
9707  document.
9708  Note that this will completely override any prior 
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 Preamble
9714 \end_layout
9715
9716 \end_inset
9717
9718  or 
9719 \begin_inset Flex Code
9720 status collapsed
9721
9722 \begin_layout Plain Layout
9723 AddToPreamble
9724 \end_layout
9725
9726 \end_inset
9727
9728  declarations.
9729  (Use 
9730 \begin_inset Flex Code
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 AddToPreamble
9735 \end_layout
9736
9737 \end_inset
9738
9739  if you just want to add material to the preamble.) Must end with 
9740 \begin_inset Quotes eld
9741 \end_inset
9742
9743
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 EndPreamble
9749 \end_layout
9750
9751 \end_inset
9752
9753
9754 \begin_inset Quotes erd
9755 \end_inset
9756
9757 .
9758 \end_layout
9759
9760 \begin_layout Description
9761 \begin_inset Flex Code
9762 status collapsed
9763
9764 \begin_layout Plain Layout
9765 Provides
9766 \end_layout
9767
9768 \end_inset
9769
9770  [
9771 \begin_inset Flex Code
9772 status collapsed
9773
9774 \begin_layout Plain Layout
9775 string
9776 \end_layout
9777
9778 \end_inset
9779
9780 ] [
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785
9786 \emph on
9787 0
9788 \end_layout
9789
9790 \end_inset
9791
9792 ,
9793 \begin_inset space \thinspace{}
9794 \end_inset
9795
9796
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 1
9802 \end_layout
9803
9804 \end_inset
9805
9806 ] Whether the class already provides the feature 
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 string
9812 \end_layout
9813
9814 \end_inset
9815
9816 .
9817  A feature is in general the name of a package (e.
9818 \begin_inset space \thinspace{}
9819 \end_inset
9820
9821 g.
9822 \begin_inset space \space{}
9823 \end_inset
9824
9825
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 amsmath
9831 \end_layout
9832
9833 \end_inset
9834
9835  or 
9836 \begin_inset Flex Code
9837 status collapsed
9838
9839 \begin_layout Plain Layout
9840 makeidx
9841 \end_layout
9842
9843 \end_inset
9844
9845 ) or a macro (e.
9846 \begin_inset space \thinspace{}
9847 \end_inset
9848
9849 g.
9850 \begin_inset space \space{}
9851 \end_inset
9852
9853
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 url
9859 \end_layout
9860
9861 \end_inset
9862
9863  or 
9864 \begin_inset Flex Code
9865 status collapsed
9866
9867 \begin_layout Plain Layout
9868 boldsymbol
9869 \end_layout
9870
9871 \end_inset
9872
9873 ).
9874  See 
9875 \begin_inset CommandInset ref
9876 LatexCommand ref
9877 reference "chap:List-of-functions"
9878
9879 \end_inset
9880
9881  for the list of features.
9882 \end_layout
9883
9884 \begin_layout Description
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 ProvidesModule
9890 \end_layout
9891
9892 \end_inset
9893
9894  [
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 string
9900 \end_layout
9901
9902 \end_inset
9903
9904 ] Indicates that this layout provides the functionality of the module mentioned,
9905  which should be specified by the filename without the 
9906 \begin_inset Flex Code
9907 status collapsed
9908
9909 \begin_layout Plain Layout
9910 .module
9911 \end_layout
9912
9913 \end_inset
9914
9915  extension.
9916  This will typically be used if the layout includes the module directly,
9917  rather than using the 
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 DefaultModule
9923 \end_layout
9924
9925 \end_inset
9926
9927  tag to indicate that it ought to be used.
9928  It could also be used in a module that provided an alternate implementation
9929  of the same functionality.
9930 \end_layout
9931
9932 \begin_layout Description
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 ProvideStyle
9938 \end_layout
9939
9940 \end_inset
9941
9942  [
9943 \begin_inset Flex Code
9944 status collapsed
9945
9946 \begin_layout Plain Layout
9947 <style>
9948 \end_layout
9949
9950 \end_inset
9951
9952 ] Creates a new paragraph style if it does not already exist.
9953  If the style does exist, this section is ignored.
9954  Must end with 
9955 \begin_inset Quotes eld
9956 \end_inset
9957
9958
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 End
9964 \end_layout
9965
9966 \end_inset
9967
9968
9969 \begin_inset Quotes erd
9970 \end_inset
9971
9972 .
9973 \end_layout
9974
9975 \begin_layout Description
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980 Requires
9981 \end_layout
9982
9983 \end_inset
9984
9985  [
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990 string
9991 \end_layout
9992
9993 \end_inset
9994
9995 ] Whether the class requires the feature 
9996 \begin_inset Flex Code
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000 string
10001 \end_layout
10002
10003 \end_inset
10004
10005 .
10006  Multiple features must be separated by commas.
10007  Note that you can only request supported features.
10008  (See 
10009 \begin_inset CommandInset ref
10010 LatexCommand ref
10011 reference "chap:List-of-functions"
10012
10013 \end_inset
10014
10015  for the list of features.).
10016  If you require a package with specific options, you can additionally use
10017  
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 PackageOptions
10023 \end_layout
10024
10025 \end_inset
10026
10027 .
10028 \end_layout
10029
10030 \begin_layout Description
10031 \begin_inset Flex Code
10032 status collapsed
10033
10034 \begin_layout Plain Layout
10035 RightMargin
10036 \end_layout
10037
10038 \end_inset
10039
10040  [
10041 \begin_inset Flex Code
10042 status collapsed
10043
10044 \begin_layout Plain Layout
10045 string
10046 \end_layout
10047
10048 \end_inset
10049
10050 ] A string that indicates the width of the right margin on the screen, for
10051  example, 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055
10056 \begin_inset Flex Code
10057 status collapsed
10058
10059 \begin_layout Plain Layout
10060 MMMMM
10061 \end_layout
10062
10063 \end_inset
10064
10065
10066 \begin_inset Quotes erd
10067 \end_inset
10068
10069 .
10070 \end_layout
10071
10072 \begin_layout Description
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 SecNumDepth
10078 \end_layout
10079
10080 \end_inset
10081
10082  [
10083 \begin_inset Flex Code
10084 status collapsed
10085
10086 \begin_layout Plain Layout
10087 int=3
10088 \end_layout
10089
10090 \end_inset
10091
10092 ] Sets which divisions get numbered.
10093  Corresponds to the
10094 \begin_inset Newline newline
10095 \end_inset
10096
10097
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 secnumdepth
10103 \end_layout
10104
10105 \end_inset
10106
10107  counter in \SpecialChar LaTeX
10108 .
10109 \end_layout
10110
10111 \begin_layout Description
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 Sides
10117 \end_layout
10118
10119 \end_inset
10120
10121  [
10122 \begin_inset Flex Code
10123 status collapsed
10124
10125 \begin_layout Plain Layout
10126
10127 \emph on
10128 1
10129 \end_layout
10130
10131 \end_inset
10132
10133 ,
10134 \begin_inset space \thinspace{}
10135 \end_inset
10136
10137
10138 \begin_inset Flex Code
10139 status collapsed
10140
10141 \begin_layout Plain Layout
10142 2
10143 \end_layout
10144
10145 \end_inset
10146
10147 ] Whether the class-default should be printing on one or both sides of the
10148  paper.
10149  Can be changed in the 
10150 \begin_inset Flex Noun
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 Document\SpecialChar menuseparator
10155 Settings
10156 \end_layout
10157
10158 \end_inset
10159
10160  dialog.
10161 \end_layout
10162
10163 \begin_layout Description
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 Style
10169 \end_layout
10170
10171 \end_inset
10172
10173  [
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 <name>
10179 \end_layout
10180
10181 \end_inset
10182
10183 ] This sequence defines a paragraph style.
10184  If the style does not yet exist, it is created; if it does exist, its parameter
10185 s are modified.
10186  Must end with 
10187 \begin_inset Quotes eld
10188 \end_inset
10189
10190
10191 \begin_inset Flex Code
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 End
10196 \end_layout
10197
10198 \end_inset
10199
10200
10201 \begin_inset Quotes erd
10202 \end_inset
10203
10204 .
10205 \begin_inset Newline newline
10206 \end_inset
10207
10208 See 
10209 \begin_inset CommandInset ref
10210 LatexCommand ref
10211 reference "subsec:Paragraph-Styles"
10212
10213 \end_inset
10214
10215  for details on paragraph styles.
10216 \end_layout
10217
10218 \begin_layout Description
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 TitleLatexName
10224 \end_layout
10225
10226 \end_inset
10227
10228  [
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 string="maketitle"
10234 \end_layout
10235
10236 \end_inset
10237
10238 ] The name of the command or environment to be used with 
10239 \begin_inset Flex Code
10240 status collapsed
10241
10242 \begin_layout Plain Layout
10243 TitleLatexType
10244 \end_layout
10245
10246 \end_inset
10247
10248 .
10249 \end_layout
10250
10251 \begin_layout Description
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 TitleLatexType
10257 \end_layout
10258
10259 \end_inset
10260
10261  [
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266
10267 \emph on
10268 CommandAfter
10269 \end_layout
10270
10271 \end_inset
10272
10273
10274 \begin_inset Flex Code
10275 status collapsed
10276
10277 \begin_layout Plain Layout
10278 Environment
10279 \end_layout
10280
10281 \end_inset
10282
10283 ] Indicates what kind of markup is used to define the title of a document.
10284  
10285 \begin_inset Flex Code
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289 CommandAfter
10290 \end_layout
10291
10292 \end_inset
10293
10294  means that the macro with name 
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 TitleLatexName
10300 \end_layout
10301
10302 \end_inset
10303
10304  will be inserted after the last layout which has 
10305 \begin_inset Quotes eld
10306 \end_inset
10307
10308
10309 \begin_inset Flex Code
10310 status collapsed
10311
10312 \begin_layout Plain Layout
10313 InTitle
10314 \begin_inset space ~
10315 \end_inset
10316
10317 1
10318 \end_layout
10319
10320 \end_inset
10321
10322
10323 \begin_inset Quotes erd
10324 \end_inset
10325
10326 .
10327  
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 Environment
10333 \end_layout
10334
10335 \end_inset
10336
10337  corresponds to the case where all layouts which have 
10338 \begin_inset Quotes eld
10339 \end_inset
10340
10341
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 InTitle
10347 \begin_inset space ~
10348 \end_inset
10349
10350 1
10351 \end_layout
10352
10353 \end_inset
10354
10355
10356 \begin_inset Quotes erd
10357 \end_inset
10358
10359  should be enclosed into the 
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364 TitleLatexName
10365 \end_layout
10366
10367 \end_inset
10368
10369  environment.
10370 \end_layout
10371
10372 \begin_layout Description
10373 \begin_inset Flex Code
10374 status collapsed
10375
10376 \begin_layout Plain Layout
10377 TocDepth
10378 \end_layout
10379
10380 \end_inset
10381
10382  [
10383 \begin_inset Flex Code
10384 status collapsed
10385
10386 \begin_layout Plain Layout
10387 int=3
10388 \end_layout
10389
10390 \end_inset
10391
10392 ] Sets which divisions are included in the table of contents.
10393  Corresponds to the 
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 tocdepth
10399 \end_layout
10400
10401 \end_inset
10402
10403  counter in \SpecialChar LaTeX
10404 .
10405 \end_layout
10406
10407 \begin_layout Subsection
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 ClassOptions
10413 \end_layout
10414
10415 \end_inset
10416
10417  section
10418 \begin_inset CommandInset label
10419 LatexCommand label
10420 name "subsec:ClassOptions"
10421
10422 \end_inset
10423
10424
10425 \end_layout
10426
10427 \begin_layout Standard
10428 The 
10429 \begin_inset Flex Code
10430 status collapsed
10431
10432 \begin_layout Plain Layout
10433 ClassOptions
10434 \end_layout
10435
10436 \end_inset
10437
10438  section can contain the following entries:
10439 \end_layout
10440
10441 \begin_layout Description
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 FontSize
10447 \end_layout
10448
10449 \end_inset
10450
10451  [
10452 \begin_inset Flex Code
10453 status collapsed
10454
10455 \begin_layout Plain Layout
10456 string="10|11|12"
10457 \end_layout
10458
10459 \end_inset
10460
10461 ] The list of available font sizes for the document's main font, separated
10462  by 
10463 \begin_inset Quotes eld
10464 \end_inset
10465
10466
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 |
10472 \end_layout
10473
10474 \end_inset
10475
10476
10477 \begin_inset Quotes erd
10478 \end_inset
10479
10480 .
10481 \end_layout
10482
10483 \begin_layout Description
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 Header
10489 \end_layout
10490
10491 \end_inset
10492
10493  Used to set the DTD line with XML-based output classes.
10494  E.
10495 \begin_inset space \thinspace{}
10496 \end_inset
10497
10498 g.: PUBLIC 
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502 -//OASIS//DTD DocBook V4.2//EN
10503 \begin_inset Quotes erd
10504 \end_inset
10505
10506 .
10507 \end_layout
10508
10509 \begin_layout Description
10510 \begin_inset Flex Code
10511 status collapsed
10512
10513 \begin_layout Plain Layout
10514 PageStyle
10515 \end_layout
10516
10517 \end_inset
10518
10519  [
10520 \begin_inset Flex Code
10521 status collapsed
10522
10523 \begin_layout Plain Layout
10524 string="empty|plain|headings|fancy"
10525 \end_layout
10526
10527 \end_inset
10528
10529 ] The list of available page sty\SpecialChar softhyphen
10530 les, separated by 
10531 \begin_inset Quotes eld
10532 \end_inset
10533
10534
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 |
10540 \end_layout
10541
10542 \end_inset
10543
10544
10545 \begin_inset Quotes erd
10546 \end_inset
10547
10548 .
10549 \end_layout
10550
10551 \begin_layout Description
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 Other
10557 \end_layout
10558
10559 \end_inset
10560
10561  [
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 string=""
10567 \end_layout
10568
10569 \end_inset
10570
10571 ] Some document class options, separated by a comma, that will be added
10572  to the optional part of the 
10573 \begin_inset Flex Code
10574 status collapsed
10575
10576 \begin_layout Plain Layout
10577
10578 \backslash
10579 documentclass
10580 \end_layout
10581
10582 \end_inset
10583
10584  command.
10585 \end_layout
10586
10587 \begin_layout Standard
10588 The 
10589 \begin_inset Flex Code
10590 status collapsed
10591
10592 \begin_layout Plain Layout
10593 ClassOptions
10594 \end_layout
10595
10596 \end_inset
10597
10598  section must end with 
10599 \begin_inset Quotes eld
10600 \end_inset
10601
10602
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 End
10608 \end_layout
10609
10610 \end_inset
10611
10612
10613 \begin_inset Quotes erd
10614 \end_inset
10615
10616 .
10617 \end_layout
10618
10619 \begin_layout Subsection
10620 Paragraph styles
10621 \begin_inset CommandInset label
10622 LatexCommand label
10623 name "subsec:Paragraph-Styles"
10624
10625 \end_inset
10626
10627
10628 \end_layout
10629
10630 \begin_layout Standard
10631 A paragraph style description looks like this:
10632 \begin_inset Foot
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 Note that this will either define a new style or modify an existing one.
10637 \end_layout
10638
10639 \end_inset
10640
10641
10642 \end_layout
10643
10644 \begin_layout LyX-Code
10645 Style 
10646 \family roman
10647 \emph on
10648 name
10649 \end_layout
10650
10651 \begin_layout LyX-Code
10652  ...
10653 \end_layout
10654
10655 \begin_layout LyX-Code
10656 End
10657 \end_layout
10658
10659 \begin_layout Standard
10660 where the following commands are allowed:
10661 \end_layout
10662
10663 \begin_layout Description
10664 \begin_inset Flex Code
10665 status collapsed
10666
10667 \begin_layout Plain Layout
10668 Align
10669 \end_layout
10670
10671 \end_inset
10672
10673  [
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678
10679 \emph on
10680 block
10681 \emph default
10682 , left, right, center
10683 \end_layout
10684
10685 \end_inset
10686
10687 ] Paragraph alignment.
10688 \end_layout
10689
10690 \begin_layout Description
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695 AlignPossible
10696 \end_layout
10697
10698 \end_inset
10699
10700  [
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705
10706 \emph on
10707 block
10708 \emph default
10709 , left, right, center
10710 \end_layout
10711
10712 \end_inset
10713
10714 ] A comma separated list of permitted alignments.
10715  (Some \SpecialChar LaTeX
10716  styles prohibit certain alignments, since those wouldn't make sense.
10717  For example a right-aligned or centered enumeration isn't possible.)
10718 \end_layout
10719
10720 \begin_layout Description
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 Argument
10726 \end_layout
10727
10728 \end_inset
10729
10730  [
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 int
10736 \end_layout
10737
10738 \end_inset
10739
10740 ] Defines argument number <int> of a command\SpecialChar breakableslash
10741 environment associated with
10742  the current style.
10743  This is useful for things like section headings, and only makes sense with
10744  \SpecialChar LaTeX
10745 .
10746  Every (optional or required) argument of a command or environment – except
10747  for the required argument that is associated with the content of the paragraph
10748  itself – has a separate definition, where the number specifies the order
10749  of the arguments.
10750  The definition must end with 
10751 \begin_inset Flex Code
10752 status collapsed
10753
10754 \begin_layout Plain Layout
10755 EndArgument
10756 \end_layout
10757
10758 \end_inset
10759
10760 .
10761  So a command with two optional arguments has:
10762 \begin_inset Separator parbreak
10763 \end_inset
10764
10765
10766 \end_layout
10767
10768 \begin_deeper
10769 \begin_layout Quote
10770
10771 \family typewriter
10772 Argument 1
10773 \end_layout
10774
10775 \begin_layout Quote
10776
10777 \family typewriter
10778 ...
10779 \end_layout
10780
10781 \begin_layout Quote
10782
10783 \family typewriter
10784 EndArgument
10785 \end_layout
10786
10787 \begin_layout Quote
10788
10789 \family typewriter
10790 Argument 2
10791 \end_layout
10792
10793 \begin_layout Quote
10794
10795 \family typewriter
10796 ...
10797 \end_layout
10798
10799 \begin_layout Quote
10800
10801 \family typewriter
10802 EndArgument
10803 \end_layout
10804
10805 \begin_layout Standard
10806 Inside the 
10807 \begin_inset Flex Code
10808 status collapsed
10809
10810 \begin_layout Plain Layout
10811 Argument
10812 \end_layout
10813
10814 \end_inset
10815
10816  definition, the following specifications are possible:
10817 \end_layout
10818
10819 \begin_layout Itemize
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 LabelString
10825 \end_layout
10826
10827 \end_inset
10828
10829  
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834 [string]
10835 \end_layout
10836
10837 \end_inset
10838
10839  The string that will appear both in the menu (to insert this argument)
10840  and on the argument inset button (unless you also specify a separate 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 MenuString
10846 \end_layout
10847
10848 \end_inset
10849
10850 ).
10851  For the menu, you can define an accelerator by appending the respective
10852  character to the string, divided by 
10853 \begin_inset Quotes eld
10854 \end_inset
10855
10856 |
10857 \begin_inset Quotes erd
10858 \end_inset
10859
10860  (e.
10861 \begin_inset space \thinspace{}
10862 \end_inset
10863
10864 g.
10865 \begin_inset space \space{}
10866 \end_inset
10867
10868
10869 \begin_inset Quotes eld
10870 \end_inset
10871
10872
10873 \begin_inset Flex Code
10874 status collapsed
10875
10876 \begin_layout Plain Layout
10877 Short Title|S
10878 \end_layout
10879
10880 \end_inset
10881
10882
10883 \begin_inset Quotes erd
10884 \end_inset
10885
10886 ).
10887 \end_layout
10888
10889 \begin_layout Itemize
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 MenuString
10895 \end_layout
10896
10897 \end_inset
10898
10899  
10900 \begin_inset Flex Code
10901 status collapsed
10902
10903 \begin_layout Plain Layout
10904 [string]
10905 \end_layout
10906
10907 \end_inset
10908
10909  A separate string for the menu.
10910  You can define an accelerator by appending the respective character to
10911  the string, divided by 
10912 \begin_inset Quotes eld
10913 \end_inset
10914
10915 |
10916 \begin_inset Quotes erd
10917 \end_inset
10918
10919  (e.
10920 \begin_inset space \thinspace{}
10921 \end_inset
10922
10923 g.
10924 \begin_inset space \space{}
10925 \end_inset
10926
10927
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 Short Title|S
10937 \end_layout
10938
10939 \end_inset
10940
10941
10942 \begin_inset Quotes erd
10943 \end_inset
10944
10945 ).
10946  This specification is optional.
10947  If it is not given the 
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 LabelString
10953 \end_layout
10954
10955 \end_inset
10956
10957  will be used instead for the menu.
10958 \end_layout
10959
10960 \begin_layout Itemize
10961 \begin_inset Flex Code
10962 status collapsed
10963
10964 \begin_layout Plain Layout
10965 Tooltip
10966 \end_layout
10967
10968 \end_inset
10969
10970  
10971 \begin_inset Flex Code
10972 status collapsed
10973
10974 \begin_layout Plain Layout
10975 [string]
10976 \end_layout
10977
10978 \end_inset
10979
10980  A longer explanatory text that appears in the tooltip when hovering over
10981  the argument inset.
10982 \end_layout
10983
10984 \begin_layout Itemize
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 Mandatory
10990 \end_layout
10991
10992 \end_inset
10993
10994  [
10995 \begin_inset Flex Code
10996 status collapsed
10997
10998 \begin_layout Plain Layout
10999
11000 \emph on
11001 0
11002 \end_layout
11003
11004 \end_inset
11005
11006 ,
11007 \begin_inset space \thinspace{}
11008 \end_inset
11009
11010
11011 \begin_inset Flex Code
11012 status collapsed
11013
11014 \begin_layout Plain Layout
11015 1
11016 \end_layout
11017
11018 \end_inset
11019
11020 ] Declare if this is a mandatory (1) or an optional (0) argument.
11021  Mandatory arguments will be output empty if not given, while optional arguments
11022  will not be output at all.
11023  By default, mandatory arguments are delimited by 
11024 \begin_inset Flex Code
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 {...}
11029 \end_layout
11030
11031 \end_inset
11032
11033 , while optional arguments are delimited by 
11034 \begin_inset Flex Code
11035 status collapsed
11036
11037 \begin_layout Plain Layout
11038 [...]
11039 \end_layout
11040
11041 \end_inset
11042
11043
11044 \end_layout
11045
11046 \begin_layout Itemize
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 Requires
11052 \end_layout
11053
11054 \end_inset
11055
11056  
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 [int=0]
11062 \end_layout
11063
11064 \end_inset
11065
11066  defines another argument (by its number) which this argument requires to
11067  be output if it is itself output.
11068  E.
11069 \begin_inset space \thinspace{}
11070 \end_inset
11071
11072 g., in \SpecialChar LaTeX
11073  commands, optional arguments often require previous optional arguments
11074  to be output (at least empty), as in 
11075 \begin_inset Flex Code
11076 status collapsed
11077
11078 \begin_layout Plain Layout
11079
11080 \backslash
11081 command[][argument]{text}
11082 \end_layout
11083
11084 \end_inset
11085
11086 .
11087  This can be achieved by the statement 
11088 \begin_inset Flex Code
11089 status collapsed
11090
11091 \begin_layout Plain Layout
11092 Requires 1
11093 \end_layout
11094
11095 \end_inset
11096
11097  within 
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 Argument 2
11103 \end_layout
11104
11105 \end_inset
11106
11107 .
11108 \end_layout
11109
11110 \begin_layout Itemize
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115 LeftDelim
11116 \end_layout
11117
11118 \end_inset
11119
11120  
11121 \begin_inset Flex Code
11122 status collapsed
11123
11124 \begin_layout Plain Layout
11125 [string]
11126 \end_layout
11127
11128 \end_inset
11129
11130  defines a custom left delimiter (instead of 
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135 {
11136 \end_layout
11137
11138 \end_inset
11139
11140  or 
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 [
11146 \end_layout
11147
11148 \end_inset
11149
11150 ).
11151  A line break in the output can be indicated by 
11152 \begin_inset Flex Code
11153 status collapsed
11154
11155 \begin_layout Plain Layout
11156 <br/>
11157 \end_layout
11158
11159 \end_inset
11160
11161 .
11162 \end_layout
11163
11164 \begin_layout Itemize
11165 \begin_inset Flex Code
11166 status collapsed
11167
11168 \begin_layout Plain Layout
11169 RightDelim
11170 \end_layout
11171
11172 \end_inset
11173
11174  
11175 \begin_inset Flex Code
11176 status collapsed
11177
11178 \begin_layout Plain Layout
11179 [string]
11180 \end_layout
11181
11182 \end_inset
11183
11184  defines a custom right delimiter (instead of 
11185 \begin_inset Flex Code
11186 status collapsed
11187
11188 \begin_layout Plain Layout
11189 }
11190 \end_layout
11191
11192 \end_inset
11193
11194  or 
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 ]
11200 \end_layout
11201
11202 \end_inset
11203
11204 ).
11205  A line break in the output can be indicated by 
11206 \begin_inset Flex Code
11207 status collapsed
11208
11209 \begin_layout Plain Layout
11210 <br/>
11211 \end_layout
11212
11213 \end_inset
11214
11215 .
11216 \end_layout
11217
11218 \begin_layout Itemize
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 DefaultArg
11224 \end_layout
11225
11226 \end_inset
11227
11228  
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 [string]
11234 \end_layout
11235
11236 \end_inset
11237
11238  defines an argument that is inserted if and only if no user-specified arguments
11239  were given, i.
11240 \begin_inset space \thinspace{}
11241 \end_inset
11242
11243 e.
11244 \begin_inset space \space{}
11245 \end_inset
11246
11247 if no argument inset has been inserted (note that also an empty argument
11248  inset omits the DefaultArg).
11249  Multiple arguments need to be separated by comma.
11250 \end_layout
11251
11252 \begin_layout Itemize
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 PresetArg
11258 \end_layout
11259
11260 \end_inset
11261
11262  
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267 [string]
11268 \end_layout
11269
11270 \end_inset
11271
11272  defines an argument that is inserted in any case (alone or in addition
11273  to user-specified arguments).
11274  Multiple arguments need to be separated by comma.
11275 \end_layout
11276
11277 \begin_layout Itemize
11278 \begin_inset Flex Code
11279 status collapsed
11280
11281 \begin_layout Plain Layout
11282 Font
11283 \end_layout
11284
11285 \end_inset
11286
11287  The font used for the argument content, see 
11288 \begin_inset CommandInset ref
11289 LatexCommand ref
11290 reference "subsec:Font-description"
11291
11292 \end_inset
11293
11294 .
11295 \end_layout
11296
11297 \begin_layout Itemize
11298 \begin_inset Flex Code
11299 status collapsed
11300
11301 \begin_layout Plain Layout
11302 LabelFont
11303 \end_layout
11304
11305 \end_inset
11306
11307  The font used for the label; see 
11308 \begin_inset CommandInset ref
11309 LatexCommand ref
11310 reference "subsec:Font-description"
11311
11312 \end_inset
11313
11314 .
11315 \end_layout
11316
11317 \begin_layout Itemize
11318 \begin_inset Flex Code
11319 status collapsed
11320
11321 \begin_layout Plain Layout
11322 Decoration
11323 \end_layout
11324
11325 \end_inset
11326
11327  [
11328 \begin_inset Flex Code
11329 status collapsed
11330
11331 \begin_layout Plain Layout
11332
11333 \emph on
11334 Classic
11335 \emph default
11336 , Minimalistic, Conglomerate
11337 \end_layout
11338
11339 \end_inset
11340
11341 ] describes the rendering style used for the inset's frame and buttons.
11342 \end_layout
11343
11344 \begin_layout Itemize
11345 \begin_inset Flex Code
11346 status collapsed
11347
11348 \begin_layout Plain Layout
11349 AutoInsert
11350 \end_layout
11351
11352 \end_inset
11353
11354  
11355 \begin_inset Flex Code
11356 status collapsed
11357
11358 \begin_layout Plain Layout
11359 [int=0]
11360 \end_layout
11361
11362 \end_inset
11363
11364  If this is set to 
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 1
11370 \end_layout
11371
11372 \end_inset
11373
11374 , this argument is automatically inserted when the respective style is selected.
11375  Currently, only one argument per style\SpecialChar breakableslash
11376 layout can be automatically inserted.
11377 \end_layout
11378
11379 \begin_layout Itemize
11380 \begin_inset Flex Code
11381 status collapsed
11382
11383 \begin_layout Plain Layout
11384 InsertCotext
11385 \end_layout
11386
11387 \end_inset
11388
11389  
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 [int=0]
11395 \end_layout
11396
11397 \end_inset
11398
11399  If this is set to 
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 1
11405 \end_layout
11406
11407 \end_inset
11408
11409 , this argument will be inserted with a copy of the co-text (either selected
11410  text or the whole paragraph) as content.
11411 \end_layout
11412
11413 \begin_layout Itemize
11414 \begin_inset Flex Code
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 PassThruChars
11419 \end_layout
11420
11421 \end_inset
11422
11423  [
11424 \begin_inset Flex Code
11425 status collapsed
11426
11427 \begin_layout Plain Layout
11428 string of characters
11429 \end_layout
11430
11431 \end_inset
11432
11433 ]
11434 \family typewriter
11435  
11436 \family default
11437 Defines individual characters that should be output in raw form, meaning
11438  without special translations that \SpecialChar LaTeX
11439  would require.
11440  Note that, contrary to PassThru, this needs to be explicitly defined for
11441  arguments.
11442  That is, arguments do not inherit PassThruChars from their parent inset
11443  or layout.
11444 \end_layout
11445
11446 \begin_layout Standard
11447 By default, the text entered in the \SpecialChar LyX
11448  workarea in the respective layout is
11449  the last (mandatory) argument of a command if the 
11450 \begin_inset Flex Code
11451 status collapsed
11452
11453 \begin_layout Plain Layout
11454 LatexType
11455 \end_layout
11456
11457 \end_inset
11458
11459  is 
11460 \begin_inset Flex Code
11461 status collapsed
11462
11463 \begin_layout Plain Layout
11464 Command
11465 \end_layout
11466
11467 \end_inset
11468
11469 .
11470  However, arguments with the prefix 
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 post:
11476 \end_layout
11477
11478 \end_inset
11479
11480  are output after this workarea argument.
11481  Note that post-argument numbering restarts at 1, so the first argument
11482  following the workarea argument is 
11483 \begin_inset Flex Code
11484 status collapsed
11485
11486 \begin_layout Plain Layout
11487 post:1
11488 \end_layout
11489
11490 \end_inset
11491
11492 .
11493  Post-arguments are ignored in any other 
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 LatexType
11499 \end_layout
11500
11501 \end_inset
11502
11503  than 
11504 \begin_inset Flex Code
11505 status collapsed
11506
11507 \begin_layout Plain Layout
11508 Command
11509 \end_layout
11510
11511 \end_inset
11512
11513 .
11514 \end_layout
11515
11516 \begin_layout Standard
11517 Arguments for list 
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522
11523 \backslash
11524 item
11525 \end_layout
11526
11527 \end_inset
11528
11529 s (as in 
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534
11535 \backslash
11536 item[foo]
11537 \end_layout
11538
11539 \end_inset
11540
11541 ) have the prefix 
11542 \begin_inset Flex Code
11543 status collapsed
11544
11545 \begin_layout Plain Layout
11546 item:
11547 \end_layout
11548
11549 \end_inset
11550
11551  followed by the number (e.
11552 \begin_inset space \thinspace{}
11553 \end_inset
11554
11555 g.
11556 \begin_inset space \space{}
11557 \end_inset
11558
11559
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 Argument item:1
11565 \end_layout
11566
11567 \end_inset
11568
11569 ).
11570 \end_layout
11571
11572 \end_deeper
11573 \begin_layout Description
11574 \begin_inset Flex Code
11575 status collapsed
11576
11577 \begin_layout Plain Layout
11578 BabelPreamble
11579 \end_layout
11580
11581 \end_inset
11582
11583  Note that this will completely override any prior 
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588 BabelPreamble
11589 \end_layout
11590
11591 \end_inset
11592
11593  declaration for this style.
11594  Must end with 
11595 \begin_inset Quotes eld
11596 \end_inset
11597
11598
11599 \begin_inset Flex Code
11600 status collapsed
11601
11602 \begin_layout Plain Layout
11603 EndBabelPreamble
11604 \end_layout
11605
11606 \end_inset
11607
11608
11609 \begin_inset Quotes erd
11610 \end_inset
11611
11612 .
11613  See 
11614 \begin_inset CommandInset ref
11615 LatexCommand ref
11616 reference "subsec:I18n"
11617
11618 \end_inset
11619
11620  for details on its use.
11621 \end_layout
11622
11623 \begin_layout Description
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 BottomSep
11629 \end_layout
11630
11631 \end_inset
11632
11633  [
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 float=0
11639 \end_layout
11640
11641 \end_inset
11642
11643 ]
11644 \begin_inset Foot
11645 status collapsed
11646
11647 \begin_layout Plain Layout
11648 Note that a `float' here is a real number, such as: 1.5.
11649 \end_layout
11650
11651 \end_inset
11652
11653  The vertical space with which the last of a chain of paragraphs with this
11654  style is separated from the following paragraph.
11655  If the next paragraph has another style, the separations are not simply
11656  added, but the maximum is taken.
11657 \end_layout
11658
11659 \begin_layout Description
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 Category
11665 \end_layout
11666
11667 \end_inset
11668
11669  [
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674 string
11675 \end_layout
11676
11677 \end_inset
11678
11679 ] The category for this style.
11680  This is used to group related styles in the style combobox on the toolbar.
11681  Any string can be used, but you may want to use existing categories with
11682  your own styles.
11683  
11684 \end_layout
11685
11686 \begin_layout Description
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 CommandDepth
11692 \end_layout
11693
11694 \end_inset
11695
11696  Depth of XML command.
11697  Used only with XML-type formats.
11698 \end_layout
11699
11700 \begin_layout Description
11701 \begin_inset Flex Code
11702 status collapsed
11703
11704 \begin_layout Plain Layout
11705 CopyStyle
11706 \end_layout
11707
11708 \end_inset
11709
11710  [
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 string
11716 \end_layout
11717
11718 \end_inset
11719
11720 ] Copies all the features of an existing style into the current one.
11721  
11722 \end_layout
11723
11724 \begin_layout Description
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 DependsOn
11730 \end_layout
11731
11732 \end_inset
11733
11734  [
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 <name>
11740 \end_layout
11741
11742 \end_inset
11743
11744 ] The name of a style whose preamble should be output 
11745 \emph on
11746 before
11747 \emph default
11748  this one.
11749  This allows to ensure some ordering of the preamble snippets when macros
11750  definitions depend on one another.
11751 \begin_inset Foot
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755 Note that, besides that functionality, there is no way to ensure any ordering
11756  of preambles.
11757  The ordering that you see in a given version of \SpecialChar LyX
11758  may change without warning
11759  in later versions.
11760 \end_layout
11761
11762 \end_inset
11763
11764
11765 \end_layout
11766
11767 \begin_layout Description
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 EndLabeltype
11773 \end_layout
11774
11775 \end_inset
11776
11777  [
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782
11783 \emph on
11784 No_Label
11785 \emph default
11786 , Box, Filled_Box, Static
11787 \end_layout
11788
11789 \end_inset
11790
11791 ] The type of label that stands at the end of the paragraph (or sequence
11792  of paragraphs if 
11793 \begin_inset Flex Code
11794 status collapsed
11795
11796 \begin_layout Plain Layout
11797 LatexType
11798 \end_layout
11799
11800 \end_inset
11801
11802  is
11803 \begin_inset Newline newline
11804 \end_inset
11805
11806
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Environment
11812 \end_layout
11813
11814 \end_inset
11815
11816
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821 Item_Environment
11822 \end_layout
11823
11824 \end_inset
11825
11826  or 
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 List_Environment
11832 \end_layout
11833
11834 \end_inset
11835
11836 ).
11837  
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 No_Label
11843 \end_layout
11844
11845 \end_inset
11846
11847  means 
11848 \begin_inset Quotes eld
11849 \end_inset
11850
11851 nothing
11852 \begin_inset Quotes erd
11853 \end_inset
11854
11855
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 Box
11861 \end_layout
11862
11863 \end_inset
11864
11865  (resp.
11866 \begin_inset space \space{}
11867 \end_inset
11868
11869
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 Filled_Box
11875 \end_layout
11876
11877 \end_inset
11878
11879 ) is a white (resp.
11880 \begin_inset space ~
11881 \end_inset
11882
11883 black) square suitable for end of proof markers, 
11884 \begin_inset Flex Code
11885 status collapsed
11886
11887 \begin_layout Plain Layout
11888 Static
11889 \end_layout
11890
11891 \end_inset
11892
11893  is an explicit text string.
11894 \end_layout
11895
11896 \begin_layout Description
11897 \begin_inset Flex Code
11898 status collapsed
11899
11900 \begin_layout Plain Layout
11901 EndLabelString
11902 \end_layout
11903
11904 \end_inset
11905
11906  [
11907 \begin_inset Flex Code
11908 status collapsed
11909
11910 \begin_layout Plain Layout
11911 string=""
11912 \end_layout
11913
11914 \end_inset
11915
11916 ] The string used for a label with a 
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 Static
11922 \end_layout
11923
11924 \end_inset
11925
11926
11927 \begin_inset Newline newline
11928 \end_inset
11929
11930
11931 \begin_inset Flex Code
11932 status collapsed
11933
11934 \begin_layout Plain Layout
11935 EndLabelType
11936 \end_layout
11937
11938 \end_inset
11939
11940 .
11941  
11942 \end_layout
11943
11944 \begin_layout Description
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949 Font
11950 \end_layout
11951
11952 \end_inset
11953
11954  The font used for both the text body 
11955 \emph on
11956 and
11957 \emph default
11958  the label.
11959  See 
11960 \begin_inset CommandInset ref
11961 LatexCommand ref
11962 reference "subsec:Font-description"
11963
11964 \end_inset
11965
11966 .
11967  Note that defining this font automatically defines the 
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 LabelFont
11973 \end_layout
11974
11975 \end_inset
11976
11977  to the same value.
11978  So you should define this one first if you also want to define 
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 LabelFont
11984 \end_layout
11985
11986 \end_inset
11987
11988 .
11989 \end_layout
11990
11991 \begin_layout Description
11992 \begin_inset Flex Code
11993 status collapsed
11994
11995 \begin_layout Plain Layout
11996 ForceLocal
11997 \end_layout
11998
11999 \end_inset
12000
12001  [
12002 \begin_inset Flex Code
12003 status collapsed
12004
12005 \begin_layout Plain Layout
12006 int=0
12007 \end_layout
12008
12009 \end_inset
12010
12011 ] Used for backporting new styles to stable \SpecialChar LyX
12012  versions.
12013  The first stable version that supports this tag is \SpecialChar LyX
12014  2.1.0.
12015  The argument is a number which may either be 0, -1 or any value greater
12016  than zero.
12017  If the 
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 ForceLocal
12023 \end_layout
12024
12025 \end_inset
12026
12027  flag of a style is greater than zero, it will always be written to the
12028  document header.
12029  If a .lyx file is read, the style definitions from the document header are
12030  added to the document class.
12031  Therefore even older \SpecialChar LyX
12032  versions can handle the style.
12033  The argument of 
12034 \begin_inset Flex Code
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 ForceLocal
12039 \end_layout
12040
12041 \end_inset
12042
12043  is a version number: if the style is read, and the version number is less
12044  than the version number of the already existing style in the document class,
12045  the new style is ignored.
12046  If the version number is greater, the new style replaces the existing style.
12047  A value of -1 means an infinite version number, i.
12048 \begin_inset space \thinspace{}
12049 \end_inset
12050
12051 e.
12052 \begin_inset space \space{}
12053 \end_inset
12054
12055 the style is always used.
12056 \end_layout
12057
12058 \begin_layout Description
12059 \begin_inset Flex Code
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063 FreeSpacing
12064 \end_layout
12065
12066 \end_inset
12067
12068  [
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073
12074 \emph on
12075 0
12076 \end_layout
12077
12078 \end_inset
12079
12080 ,
12081 \begin_inset space \thinspace{}
12082 \end_inset
12083
12084
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 1
12090 \end_layout
12091
12092 \end_inset
12093
12094 ] Usually \SpecialChar LyX
12095  does not allow you to insert more than one space between words,
12096  since a space is considered as the separation between two words, not a
12097  character or symbol of its own.
12098  This is a very fine thing but sometimes annoying, for example, when typing
12099  program code or plain \SpecialChar LaTeX
12100  code.
12101  For this reason, 
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106 FreeSpacing
12107 \end_layout
12108
12109 \end_inset
12110
12111  can be enabled.
12112  Note that \SpecialChar LyX
12113  will create protected blanks for the additional blanks when
12114  in another mode than \SpecialChar LaTeX
12115 -mode.
12116 \end_layout
12117
12118 \begin_layout Description
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 HTML*
12124 \end_layout
12125
12126 \end_inset
12127
12128  These tags are used with XHTML output.
12129  See 
12130 \begin_inset CommandInset ref
12131 LatexCommand ref
12132 reference "subsec:Paragraph-Style-XHTML"
12133
12134 \end_inset
12135
12136 .
12137 \end_layout
12138
12139 \begin_layout Description
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 InnerTag
12145 \end_layout
12146
12147 \end_inset
12148
12149  [FIXME] (Used only with XML-type formats.)
12150 \end_layout
12151
12152 \begin_layout Description
12153 \begin_inset Flex Code
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157 InPreamble
12158 \end_layout
12159
12160 \end_inset
12161
12162  [
12163 \begin_inset Flex Code
12164 status collapsed
12165
12166 \begin_layout Plain Layout
12167
12168 \emph on
12169 0
12170 \end_layout
12171
12172 \end_inset
12173
12174 ,
12175 \begin_inset space \thinspace{}
12176 \end_inset
12177
12178
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 1
12184 \end_layout
12185
12186 \end_inset
12187
12188 ] If 
12189 \begin_inset Flex Code
12190 status collapsed
12191
12192 \begin_layout Plain Layout
12193 1
12194 \end_layout
12195
12196 \end_inset
12197
12198 , marks the style as to be included in the document preamble and not in
12199  the document body.
12200  This is useful for document classes that want such information as the title
12201  and author to appear in the preamble.
12202  Note that this works only for styles for which the 
12203 \begin_inset Flex Code
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207 LatexType
12208 \end_layout
12209
12210 \end_inset
12211
12212  is 
12213 \begin_inset Flex Code
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217 Command
12218 \end_layout
12219
12220 \end_inset
12221
12222  or 
12223 \begin_inset Flex Code
12224 status collapsed
12225
12226 \begin_layout Plain Layout
12227 Paragraph
12228 \end_layout
12229
12230 \end_inset
12231
12232 .
12233 \end_layout
12234
12235 \begin_layout Description
12236 \begin_inset Flex Code
12237 status collapsed
12238
12239 \begin_layout Plain Layout
12240 InTitle
12241 \end_layout
12242
12243 \end_inset
12244
12245  [
12246 \begin_inset Flex Code
12247 status collapsed
12248
12249 \begin_layout Plain Layout
12250
12251 \emph on
12252 0
12253 \end_layout
12254
12255 \end_inset
12256
12257 ,
12258 \begin_inset space \thinspace{}
12259 \end_inset
12260
12261
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266 1
12267 \end_layout
12268
12269 \end_inset
12270
12271 ] If 
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276 1
12277 \end_layout
12278
12279 \end_inset
12280
12281 , marks the style as being part of a title block (see also the 
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 TitleLatexType
12287 \end_layout
12288
12289 \end_inset
12290
12291  and 
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 TitleLatexName
12297 \end_layout
12298
12299 \end_inset
12300
12301  global entries).
12302 \end_layout
12303
12304 \begin_layout Description
12305 \begin_inset Flex Code
12306 status collapsed
12307
12308 \begin_layout Plain Layout
12309 ItemCommand
12310 \end_layout
12311
12312 \end_inset
12313
12314  [
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 string="item"
12320 \end_layout
12321
12322 \end_inset
12323
12324 ] The \SpecialChar LaTeX
12325  command sequence declaring an item in a list.
12326  The command is to be defined without the preceding backslash (the default
12327  is 
12328 \begin_inset Quotes eld
12329 \end_inset
12330
12331 item
12332 \begin_inset Quotes erd
12333 \end_inset
12334
12335 , resulting in 
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340
12341 \backslash
12342 item
12343 \end_layout
12344
12345 \end_inset
12346
12347  in the \SpecialChar LaTeX
12348  output).
12349 \end_layout
12350
12351 \begin_layout Description
12352 \begin_inset Flex Code
12353 status collapsed
12354
12355 \begin_layout Plain Layout
12356 ItemSep
12357 \end_layout
12358
12359 \end_inset
12360
12361  [
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 float=0
12367 \end_layout
12368
12369 \end_inset
12370
12371 ] This provides extra space between paragraphs that have the same style.
12372  If you put other styles into an environment, each is separated with the
12373  environment's 
12374 \begin_inset Flex Code
12375 status collapsed
12376
12377 \begin_layout Plain Layout
12378 ParSep
12379 \end_layout
12380
12381 \end_inset
12382
12383 .
12384  But the whole items of the environment are additionally separated with
12385  this 
12386 \begin_inset Flex Code
12387 status collapsed
12388
12389 \begin_layout Plain Layout
12390 ItemSep
12391 \end_layout
12392
12393 \end_inset
12394
12395 .
12396  Note that this is a
12397 \emph on
12398  multiplier.
12399 \end_layout
12400
12401 \begin_layout Description
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 ItemTag
12407 \end_layout
12408
12409 \end_inset
12410
12411  [FIXME] (Used only with XML-type formats.)
12412 \end_layout
12413
12414 \begin_layout Description
12415 \begin_inset Flex Code
12416 status collapsed
12417
12418 \begin_layout Plain Layout
12419 KeepEmpty
12420 \end_layout
12421
12422 \end_inset
12423
12424  [
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429
12430 \emph on
12431 0
12432 \end_layout
12433
12434 \end_inset
12435
12436 ,
12437 \begin_inset space \thinspace{}
12438 \end_inset
12439
12440
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 1
12446 \end_layout
12447
12448 \end_inset
12449
12450 ] Usually \SpecialChar LyX
12451  does not allow you to leave a paragraph empty, since it would
12452  lead to empty \SpecialChar LaTeX
12453  output.
12454  There are some cases where this could be desirable however: in a letter
12455  template, the required fields can be provided as empty fields, so that
12456  people do not forget them; in some special classes, a style can be used
12457  as some kind of break, which does not contain actual text.
12458 \end_layout
12459
12460 \begin_layout Description
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 LabelBottomsep
12466 \end_layout
12467
12468 \end_inset
12469
12470  [
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 float=0
12476 \end_layout
12477
12478 \end_inset
12479
12480 ] The vertical space between the label and the text body.
12481  Only used for labels that are above the text body (
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 Top_Environment
12487 \end_layout
12488
12489 \end_inset
12490
12491  and
12492 \begin_inset Newline newline
12493 \end_inset
12494
12495
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 Centered_Top_Environment
12501 \end_layout
12502
12503 \end_inset
12504
12505 ).
12506 \end_layout
12507
12508 \begin_layout Description
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 LabelCounter
12514 \end_layout
12515
12516 \end_inset
12517
12518  [
12519 \begin_inset Flex Code
12520 status collapsed
12521
12522 \begin_layout Plain Layout
12523 string=""
12524 \end_layout
12525
12526 \end_inset
12527
12528 ] The name of the counter for automatic numbering.
12529  In order to have the counter appear with your label, you will need to reference
12530  it in the 
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535
12536 \family typewriter
12537 LabelString
12538 \end_layout
12539
12540 \end_inset
12541
12542 .
12543  This will work with 
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 LabelType
12549 \end_layout
12550
12551 \end_inset
12552
12553 s, 
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 Static
12559 \end_layout
12560
12561 \end_inset
12562
12563
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 Above
12569 \end_layout
12570
12571 \end_inset
12572
12573  and 
12574 \begin_inset Flex Code
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578 Centered
12579 \end_layout
12580
12581 \end_inset
12582
12583 , at least.
12584 \begin_inset Newline newline
12585 \end_inset
12586
12587 This 
12588 \emph on
12589 may
12590 \emph default
12591  also be given if 
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 LabelType
12597 \end_layout
12598
12599 \end_inset
12600
12601  is 
12602 \begin_inset Flex Code
12603 status collapsed
12604
12605 \begin_layout Plain Layout
12606 Enumerate
12607 \end_layout
12608
12609 \end_inset
12610
12611 , though this case is a bit complicated.
12612  Suppose you declare 
12613 \begin_inset Quotes eld
12614 \end_inset
12615
12616
12617 \begin_inset Flex Code
12618 status collapsed
12619
12620 \begin_layout Plain Layout
12621 LabelCounter myenum
12622 \end_layout
12623
12624 \end_inset
12625
12626
12627 \begin_inset Quotes erd
12628 \end_inset
12629
12630 .
12631  Then the actual counters used are 
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 myenumi
12637 \end_layout
12638
12639 \end_inset
12640
12641
12642 \begin_inset Flex Code
12643 status collapsed
12644
12645 \begin_layout Plain Layout
12646 myenumii
12647 \end_layout
12648
12649 \end_inset
12650
12651
12652 \begin_inset Flex Code
12653 status collapsed
12654
12655 \begin_layout Plain Layout
12656 myenumiii
12657 \end_layout
12658
12659 \end_inset
12660
12661  and 
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666 myenumiv
12667 \end_layout
12668
12669 \end_inset
12670
12671 , much as in \SpecialChar LaTeX
12672 .
12673  These counters must all be declared separately.
12674 \begin_inset Newline newline
12675 \end_inset
12676
12677 See 
12678 \begin_inset CommandInset ref
12679 LatexCommand ref
12680 reference "subsec:Counters"
12681
12682 \end_inset
12683
12684  for details on counters.
12685 \end_layout
12686
12687 \begin_layout Description
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 LabelFont
12693 \end_layout
12694
12695 \end_inset
12696
12697  The font used for the label.
12698  See 
12699 \begin_inset CommandInset ref
12700 LatexCommand ref
12701 reference "subsec:Font-description"
12702
12703 \end_inset
12704
12705 .
12706 \end_layout
12707
12708 \begin_layout Description
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713 LabelIndent
12714 \end_layout
12715
12716 \end_inset
12717
12718  [
12719 \begin_inset Flex Code
12720 status collapsed
12721
12722 \begin_layout Plain Layout
12723 string=""
12724 \end_layout
12725
12726 \end_inset
12727
12728 ] Text that indicates how far a label should be indented.
12729 \end_layout
12730
12731 \begin_layout Description
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 LabelSep
12737 \end_layout
12738
12739 \end_inset
12740
12741  [
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746 string=""
12747 \end_layout
12748
12749 \end_inset
12750
12751 ] Text that indicates the amount of horizontal space between the label and
12752  the text body.
12753  Only used for labels that are not above the text body.
12754 \end_layout
12755
12756 \begin_layout Description
12757 \begin_inset Flex Code
12758 status collapsed
12759
12760 \begin_layout Plain Layout
12761 LabelString
12762 \end_layout
12763
12764 \end_inset
12765
12766  [
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 string=""
12772 \end_layout
12773
12774 \end_inset
12775
12776 ] The string used for the label.
12777  When 
12778 \begin_inset Flex Code
12779 status collapsed
12780
12781 \begin_layout Plain Layout
12782 LabelCounter
12783 \end_layout
12784
12785 \end_inset
12786
12787  is set, this string can be contain the special formatting commands described
12788  in 
12789 \begin_inset CommandInset ref
12790 LatexCommand ref
12791 reference "subsec:Counters"
12792
12793 \end_inset
12794
12795 .
12796 \end_layout
12797
12798 \begin_layout Description
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803 LabelStringAppendix
12804 \end_layout
12805
12806 \end_inset
12807
12808  [
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 string=""
12814 \end_layout
12815
12816 \end_inset
12817
12818 ] This is used inside the appendix instead of
12819 \begin_inset Newline newline
12820 \end_inset
12821
12822
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 LabelString
12828 \end_layout
12829
12830 \end_inset
12831
12832 .
12833  Note that every 
12834 \begin_inset Flex Code
12835 status collapsed
12836
12837 \begin_layout Plain Layout
12838 LabelString
12839 \end_layout
12840
12841 \end_inset
12842
12843  statement resets
12844 \begin_inset Newline newline
12845 \end_inset
12846
12847
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 LabelStringAppendix
12853 \end_layout
12854
12855 \end_inset
12856
12857  too.
12858 \end_layout
12859
12860 \begin_layout Description
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 LabelTag
12866 \end_layout
12867
12868 \end_inset
12869
12870  [FIXME] (Used only with XML-type formats.)
12871 \end_layout
12872
12873 \begin_layout Description
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878 LabelType
12879 \end_layout
12880
12881 \end_inset
12882
12883  [
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888
12889 \emph on
12890 No_Label
12891 \emph default
12892 , Manual, Static, Above, 
12893 \begin_inset Newline newline
12894 \end_inset
12895
12896 Centered, Sensitive, Enumerate,
12897 \begin_inset Newline newline
12898 \end_inset
12899
12900 Itemize, Bibliography
12901 \end_layout
12902
12903 \end_inset
12904
12905 ]
12906 \begin_inset Separator parbreak
12907 \end_inset
12908
12909
12910 \end_layout
12911
12912 \begin_deeper
12913 \begin_layout Description
12914 \begin_inset Flex Code
12915 status collapsed
12916
12917 \begin_layout Plain Layout
12918 Manual
12919 \end_layout
12920
12921 \end_inset
12922
12923  means the label is the very first word (up to the first real blank).
12924  Use protected spaces if you want more than one word as the label.
12925  
12926 \end_layout
12927
12928 \begin_layout Description
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 Static
12934 \end_layout
12935
12936 \end_inset
12937
12938  means the label is simply what is declared as 
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 LabelString
12944 \end_layout
12945
12946 \end_inset
12947
12948 .
12949  This will be displayed 
12950 \begin_inset Quotes eld
12951 \end_inset
12952
12953 inline
12954 \begin_inset Quotes erd
12955 \end_inset
12956
12957 , at the beginning of the paragraph.
12958  If the 
12959 \begin_inset Flex Code
12960 status collapsed
12961
12962 \begin_layout Plain Layout
12963 LatexType
12964 \end_layout
12965
12966 \end_inset
12967
12968  is 
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 Environment
12974 \end_layout
12975
12976 \end_inset
12977
12978 , then it will be displayed only in the first paragraph of any sequence
12979  of paragraphs with the same 
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 Style
12985 \end_layout
12986
12987 \end_inset
12988
12989 .
12990 \end_layout
12991
12992 \begin_layout Description
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 Above
12998 \end_layout
12999
13000 \end_inset
13001
13002
13003 \begin_inset space ~
13004 \end_inset
13005
13006 and
13007 \begin_inset space ~
13008 \end_inset
13009
13010
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 Centered
13016 \end_layout
13017
13018 \end_inset
13019
13020  are special cases of 
13021 \begin_inset Flex Code
13022 status collapsed
13023
13024 \begin_layout Plain Layout
13025 Static
13026 \end_layout
13027
13028 \end_inset
13029
13030 .
13031  The label will be printed above the paragraph either at the beginning of
13032  the line or centered.
13033 \end_layout
13034
13035 \begin_layout Description
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 Sensitive
13041 \end_layout
13042
13043 \end_inset
13044
13045  is a special case for the caption-labels 
13046 \begin_inset Quotes eld
13047 \end_inset
13048
13049 Figure
13050 \begin_inset Quotes erd
13051 \end_inset
13052
13053  and 
13054 \begin_inset Quotes eld
13055 \end_inset
13056
13057 Table
13058 \begin_inset Quotes erd
13059 \end_inset
13060
13061 .
13062 \begin_inset Newline newline
13063 \end_inset
13064
13065
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 Sensitive
13071 \end_layout
13072
13073 \end_inset
13074
13075  means the (hardcoded) label string depends on the kind of float: It is
13076  hardcoded to be `FloatType N', where N is the value of the counter associated
13077  with the float.
13078  For the case that a caption is inserted outside of a float the 
13079 \begin_inset Flex Code
13080 status collapsed
13081
13082 \begin_layout Plain Layout
13083 LabelString
13084 \end_layout
13085
13086 \end_inset
13087
13088  will appear as 
13089 \begin_inset Quotes eld
13090 \end_inset
13091
13092 Senseless!
13093 \begin_inset Quotes erd
13094 \end_inset
13095
13096 .
13097 \end_layout
13098
13099 \begin_layout Description
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104 Enumerate
13105 \end_layout
13106
13107 \end_inset
13108
13109  produces the usual sort of enumeration labels.
13110  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13111  small Roman numerals, and uppercase letters for the four possible depths.
13112 \end_layout
13113
13114 \begin_layout Description
13115 \begin_inset Flex Code
13116 status collapsed
13117
13118 \begin_layout Plain Layout
13119 Itemize
13120 \end_layout
13121
13122 \end_inset
13123
13124  produces various bullets at the different levels.
13125  It is also hardcoded.
13126 \end_layout
13127
13128 \begin_layout Description
13129 \begin_inset Flex Code
13130 status collapsed
13131
13132 \begin_layout Plain Layout
13133 Bibliography
13134 \end_layout
13135
13136 \end_inset
13137
13138  should be used only with 
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 LatexType BibEnvironment
13144 \end_layout
13145
13146 \end_inset
13147
13148 .
13149 \end_layout
13150
13151 \end_deeper
13152 \begin_layout Description
13153 \begin_inset Flex Code
13154 status collapsed
13155
13156 \begin_layout Plain Layout
13157 LangPreamble
13158 \end_layout
13159
13160 \end_inset
13161
13162  Note that this will completely override any prior 
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167 LangPreamble
13168 \end_layout
13169
13170 \end_inset
13171
13172  declaration for this style.
13173  Must end with 
13174 \begin_inset Quotes eld
13175 \end_inset
13176
13177
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182 EndLangPreamble
13183 \end_layout
13184
13185 \end_inset
13186
13187
13188 \begin_inset Quotes erd
13189 \end_inset
13190
13191 .
13192  See 
13193 \begin_inset CommandInset ref
13194 LatexCommand ref
13195 reference "subsec:I18n"
13196
13197 \end_inset
13198
13199  for details on its use.
13200 \end_layout
13201
13202 \begin_layout Description
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 LatexName
13208 \end_layout
13209
13210 \end_inset
13211
13212  [
13213 \begin_inset Flex Code
13214 status collapsed
13215
13216 \begin_layout Plain Layout
13217 <name>
13218 \end_layout
13219
13220 \end_inset
13221
13222 ] The name of the corresponding \SpecialChar LaTeX
13223  stuff.
13224  Either the environment or command name.
13225 \end_layout
13226
13227 \begin_layout Description
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 LatexParam
13233 \end_layout
13234
13235 \end_inset
13236
13237  [
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 <parameter>
13243 \end_layout
13244
13245 \end_inset
13246
13247 ] An optional parameter for the corresponding 
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 LatexName
13253 \end_layout
13254
13255 \end_inset
13256
13257  stuff.
13258  This parameter cannot be changed from within \SpecialChar LyX
13259  (use 
13260 \begin_inset Flex Code
13261 status collapsed
13262
13263 \begin_layout Plain Layout
13264 Argument
13265 \end_layout
13266
13267 \end_inset
13268
13269  for customizable parameters).
13270  This will be output as is after all \SpecialChar LaTeX
13271  
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 Argument
13277 \end_layout
13278
13279 \end_inset
13280
13281 s.
13282 \end_layout
13283
13284 \begin_layout Description
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 LatexType
13290 \end_layout
13291
13292 \end_inset
13293
13294  [
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299
13300 \emph on
13301 Paragraph
13302 \emph default
13303 , Command, Environment, Item_Environment,
13304 \begin_inset Newline newline
13305 \end_inset
13306
13307 List_Environment, Bib_Environment
13308 \end_layout
13309
13310 \end_inset
13311
13312 ] How the style should be translated into \SpecialChar LaTeX
13313 .
13314 \begin_inset Foot
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 LatexType
13323 \end_layout
13324
13325 \end_inset
13326
13327  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13328  Visit the SGML class files for specific examples.
13329 \end_layout
13330
13331 \end_inset
13332
13333
13334 \begin_inset Separator parbreak
13335 \end_inset
13336
13337
13338 \end_layout
13339
13340 \begin_deeper
13341 \begin_layout Description
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 Paragraph
13347 \end_layout
13348
13349 \end_inset
13350
13351  means nothing special.
13352 \end_layout
13353
13354 \begin_layout Description
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359 Command
13360 \end_layout
13361
13362 \end_inset
13363
13364  means 
13365 \begin_inset Flex Code
13366 status collapsed
13367
13368 \begin_layout Plain Layout
13369
13370 \backslash
13371
13372 \emph on
13373 LatexName
13374 \emph default
13375 {\SpecialChar ldots
13376 }
13377 \end_layout
13378
13379 \end_inset
13380
13381 .
13382 \end_layout
13383
13384 \begin_layout Description
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 Environment
13390 \end_layout
13391
13392 \end_inset
13393
13394  means 
13395 \begin_inset Flex Code
13396 status collapsed
13397
13398 \begin_layout Plain Layout
13399
13400 \backslash
13401 begin{
13402 \emph on
13403 LatexName
13404 \emph default
13405 }\SpecialChar ldots
13406
13407 \backslash
13408 end{
13409 \emph on
13410 LatexName
13411 \emph default
13412 }
13413 \end_layout
13414
13415 \end_inset
13416
13417 .
13418  
13419 \end_layout
13420
13421 \begin_layout Description
13422 \begin_inset Flex Code
13423 status collapsed
13424
13425 \begin_layout Plain Layout
13426 Item_Environment
13427 \end_layout
13428
13429 \end_inset
13430
13431  is the same as 
13432 \begin_inset Flex Code
13433 status collapsed
13434
13435 \begin_layout Plain Layout
13436 Environment
13437 \end_layout
13438
13439 \end_inset
13440
13441 , except that an 
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446
13447 \backslash
13448 item
13449 \end_layout
13450
13451 \end_inset
13452
13453  is generated for each paragraph of this environment.
13454  
13455 \end_layout
13456
13457 \begin_layout Description
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 List_Environment
13463 \end_layout
13464
13465 \end_inset
13466
13467  is the same as 
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 Item_Environment
13473 \end_layout
13474
13475 \end_inset
13476
13477 , except that
13478 \begin_inset Newline newline
13479 \end_inset
13480
13481
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 LabelWidthString
13487 \end_layout
13488
13489 \end_inset
13490
13491  is passed as an argument to the environment.
13492 \begin_inset Newline newline
13493 \end_inset
13494
13495
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 LabelWidthString
13501 \end_layout
13502
13503 \end_inset
13504
13505  can be defined in the 
13506 \begin_inset Flex Noun
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 Edit\SpecialChar menuseparator
13511 Paragraph
13512 \begin_inset space ~
13513 \end_inset
13514
13515 settings
13516 \end_layout
13517
13518 \end_inset
13519
13520  dialog.
13521 \end_layout
13522
13523 \begin_layout Description
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 Bib_Environment
13529 \end_layout
13530
13531 \end_inset
13532
13533  is like 
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 Environment
13539 \end_layout
13540
13541 \end_inset
13542
13543  but adds the necessary mandatory argument (the longest label) to the begin
13544  statement of the bibliography environment:
13545 \begin_inset Newline newline
13546 \end_inset
13547
13548
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553
13554 \backslash
13555 begin{thebibliography}{99}
13556 \end_layout
13557
13558 \end_inset
13559
13560 .
13561  It is therefore only useful for bibliography environments.
13562  The default longest label 
13563 \begin_inset Quotes eld
13564 \end_inset
13565
13566 99
13567 \begin_inset Quotes erd
13568 \end_inset
13569
13570  can be changed by the user in the paragraph settings of a bibliography
13571  item.
13572 \end_layout
13573
13574 \begin_layout Standard
13575 Putting the last few things together, the \SpecialChar LaTeX
13576  output will be either: 
13577 \end_layout
13578
13579 \begin_layout LyX-Code
13580
13581 \backslash
13582 LatexName[LatexParam]{\SpecialChar ldots
13583 }
13584 \end_layout
13585
13586 \begin_layout Standard
13587 or: 
13588 \end_layout
13589
13590 \begin_layout LyX-Code
13591
13592 \backslash
13593 begin{LatexName}[LatexParam] \SpecialChar ldots
13594  
13595 \backslash
13596 end{LatexName}.
13597 \end_layout
13598
13599 \begin_layout Standard
13600 depending upon the \SpecialChar LaTeX
13601  type.
13602 \end_layout
13603
13604 \end_deeper
13605 \begin_layout Description
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 LeftDelim
13611 \end_layout
13612
13613 \end_inset
13614
13615  [
13616 \begin_inset Flex Code
13617 status collapsed
13618
13619 \begin_layout Plain Layout
13620 string
13621 \end_layout
13622
13623 \end_inset
13624
13625 ] A string that is put at the beginning of the style content.
13626  A line break in the output can be indicated by 
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631 <br/>
13632 \end_layout
13633
13634 \end_inset
13635
13636 .
13637 \end_layout
13638
13639 \begin_layout Description
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 LeftMargin
13645 \end_layout
13646
13647 \end_inset
13648
13649  [
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 string=""
13655 \end_layout
13656
13657 \end_inset
13658
13659 ] If you put styles into environments, the different 
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 LeftMargin
13665 \end_layout
13666
13667 \end_inset
13668
13669  are not simply added, but added with a factor 
13670 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13671 \end_inset
13672
13673 .
13674  Note that this parameter is also used when 
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 Margin
13680 \end_layout
13681
13682 \end_inset
13683
13684  is defined as 
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 Manual
13690 \end_layout
13691
13692 \end_inset
13693
13694  or 
13695 \begin_inset Flex Code
13696 status collapsed
13697
13698 \begin_layout Plain Layout
13699 Dynamic
13700 \end_layout
13701
13702 \end_inset
13703
13704 .
13705  Then it is added to the manual or dynamic margin.
13706 \begin_inset Newline newline
13707 \end_inset
13708
13709 For example 
13710 \begin_inset Quotes eld
13711 \end_inset
13712
13713
13714 \begin_inset Flex Code
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 MM
13719 \end_layout
13720
13721 \end_inset
13722
13723
13724 \begin_inset Quotes erd
13725 \end_inset
13726
13727  means that the paragraph is indented with the width of 
13728 \begin_inset Quotes eld
13729 \end_inset
13730
13731
13732 \begin_inset Flex Code
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736 MM
13737 \end_layout
13738
13739 \end_inset
13740
13741
13742 \begin_inset Quotes erd
13743 \end_inset
13744
13745  in the normal font.
13746  You can get a negative width by prefixing the string with 
13747 \begin_inset Quotes eld
13748 \end_inset
13749
13750
13751 \begin_inset Flex Code
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 -
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764 .
13765  This way was chosen so that the look is the same with each used screen
13766  font.
13767 \end_layout
13768
13769 \begin_layout Description
13770 \begin_inset Flex Code
13771 status collapsed
13772
13773 \begin_layout Plain Layout
13774 Margin
13775 \end_layout
13776
13777 \end_inset
13778
13779  [
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784
13785 \emph on
13786 Static
13787 \emph default
13788 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13789 \end_layout
13790
13791 \end_inset
13792
13793
13794 \begin_inset Newline newline
13795 \end_inset
13796
13797 The kind of margin that the style has on the left side.
13798 \begin_inset Separator parbreak
13799 \end_inset
13800
13801
13802 \end_layout
13803
13804 \begin_deeper
13805 \begin_layout Description
13806 \begin_inset Flex Code
13807 status collapsed
13808
13809 \begin_layout Plain Layout
13810 Static
13811 \end_layout
13812
13813 \end_inset
13814
13815  just means a fixed margin.
13816 \end_layout
13817
13818 \begin_layout Description
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 Manual
13824 \end_layout
13825
13826 \end_inset
13827
13828  means that the left margin depends on the string entered in the 
13829 \begin_inset Flex Noun
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 Edit\SpecialChar menuseparator
13834 Paragraph
13835 \begin_inset space ~
13836 \end_inset
13837
13838 Settings
13839 \end_layout
13840
13841 \end_inset
13842
13843  dialog.
13844  This is used to typeset nice lists without tabulators.
13845 \end_layout
13846
13847 \begin_layout Description
13848 \begin_inset Flex Code
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 Dynamic
13853 \end_layout
13854
13855 \end_inset
13856
13857  means that the margin depends on the size of the label.
13858  This is used for automatic enumerated headlines.
13859  It is obvious that the headline 
13860 \begin_inset Quotes eld
13861 \end_inset
13862
13863 5.4.3.2.1 Very long headline
13864 \begin_inset Quotes erd
13865 \end_inset
13866
13867  must have a wider left margin (as wide as 
13868 \begin_inset Quotes eld
13869 \end_inset
13870
13871 5.4.3.2.1
13872 \begin_inset Quotes erd
13873 \end_inset
13874
13875  plus the space) than 
13876 \begin_inset Quotes eld
13877 \end_inset
13878
13879 3.2 Very long headline
13880 \begin_inset Quotes erd
13881 \end_inset
13882
13883 , even if standard 
13884 \begin_inset Quotes eld
13885 \end_inset
13886
13887 word processors
13888 \begin_inset Quotes erd
13889 \end_inset
13890
13891  are not able to do this.
13892 \end_layout
13893
13894 \begin_layout Description
13895 \begin_inset Flex Code
13896 status collapsed
13897
13898 \begin_layout Plain Layout
13899 First_Dynamic
13900 \end_layout
13901
13902 \end_inset
13903
13904  is similar, but only the very first row of the paragraph is dynamic, while
13905  the others are static; this is used, for example, for descriptions.
13906 \end_layout
13907
13908 \begin_layout Description
13909 \begin_inset Flex Code
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 Right_Address_Box
13914 \end_layout
13915
13916 \end_inset
13917
13918  means the margin is chosen in a way that the longest row of this paragraph
13919  fits to the right margin.
13920  This is used to typeset an address on the right edge of the page.
13921 \end_layout
13922
13923 \end_deeper
13924 \begin_layout Description
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 NeedProtect
13930 \end_layout
13931
13932 \end_inset
13933
13934  [
13935 \begin_inset Flex Code
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939
13940 \emph on
13941 0
13942 \end_layout
13943
13944 \end_inset
13945
13946 ,
13947 \begin_inset space \thinspace{}
13948 \end_inset
13949
13950
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955 1
13956 \end_layout
13957
13958 \end_inset
13959
13960 ] Whether fragile commands in this style should be 
13961 \begin_inset Flex Code
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965
13966 \backslash
13967 protect
13968 \end_layout
13969
13970 \end_inset
13971
13972 'ed.
13973  (Note: This is 
13974 \emph on
13975 not
13976 \emph default
13977  whether this command should itself be protected.)
13978 \end_layout
13979
13980 \begin_layout Description
13981 \begin_inset Flex Code
13982 status collapsed
13983
13984 \begin_layout Plain Layout
13985 Newline
13986 \end_layout
13987
13988 \end_inset
13989
13990  [
13991 \begin_inset Flex Code
13992 status collapsed
13993
13994 \begin_layout Plain Layout
13995 0
13996 \end_layout
13997
13998 \end_inset
13999
14000 ,
14001 \begin_inset space \thinspace{}
14002 \end_inset
14003
14004
14005 \begin_inset Flex Code
14006 status collapsed
14007
14008 \begin_layout Plain Layout
14009
14010 \emph on
14011 1
14012 \end_layout
14013
14014 \end_inset
14015
14016 ] Whether newlines are translated into \SpecialChar LaTeX
14017  newlines (
14018 \begin_inset Flex Code
14019 status collapsed
14020
14021 \begin_layout Plain Layout
14022
14023 \backslash
14024
14025 \backslash
14026
14027 \end_layout
14028
14029 \end_inset
14030
14031 ) or not.
14032  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14033  editing
14034  inside \SpecialChar LyX
14035 .
14036 \end_layout
14037
14038 \begin_layout Description
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 NextNoIndent
14044 \end_layout
14045
14046 \end_inset
14047
14048  [
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053
14054 \emph on
14055 0
14056 \end_layout
14057
14058 \end_inset
14059
14060 ,
14061 \begin_inset space \thinspace{}
14062 \end_inset
14063
14064
14065 \begin_inset Flex Code
14066 status collapsed
14067
14068 \begin_layout Plain Layout
14069 1
14070 \end_layout
14071
14072 \end_inset
14073
14074 ] If set to true, and if 
14075 \begin_inset Flex Code
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 DefaultStyle
14080 \end_layout
14081
14082 \end_inset
14083
14084  (usually 
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 Standard
14090 \end_layout
14091
14092 \end_inset
14093
14094 ) paragraphs are being indented, then the indentation of such a paragraph
14095  following one of this type will be suppressed.
14096  (So this will not affect the display of non-default paragraphs.)
14097 \end_layout
14098
14099 \begin_layout Description
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 ObsoletedBy
14105 \end_layout
14106
14107 \end_inset
14108
14109  [
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 <name>
14115 \end_layout
14116
14117 \end_inset
14118
14119 ] Name of a style that has replaced this style.
14120  This is used to rename a style, while keeping backward compatibility.
14121 \end_layout
14122
14123 \begin_layout Description
14124 \begin_inset Flex Code
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 ParagraphGroup
14129 \end_layout
14130
14131 \end_inset
14132
14133  [
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 0
14139 \end_layout
14140
14141 \end_inset
14142
14143 ,
14144 \begin_inset space \thinspace{}
14145 \end_inset
14146
14147
14148 \begin_inset Flex Code
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 1
14153 \end_layout
14154
14155 \end_inset
14156
14157 ] Determines whether consecutive pragraphs of the same type are treated
14158  as belonging together.
14159  This has the effect that the 
14160 \begin_inset Flex Code
14161 status collapsed
14162
14163 \begin_layout Plain Layout
14164 GuiLabel
14165 \end_layout
14166
14167 \end_inset
14168
14169  is only printed once before such a group.
14170  By default, this is true for 
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 LaTeXType
14176 \end_layout
14177
14178 \end_inset
14179
14180  
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 Environment
14186 \end_layout
14187
14188 \end_inset
14189
14190  and 
14191 \begin_inset Flex Code
14192 status collapsed
14193
14194 \begin_layout Plain Layout
14195 Bib_Environment
14196 \end_layout
14197
14198 \end_inset
14199
14200  and false for all other types.
14201 \end_layout
14202
14203 \begin_layout Description
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 ParbreakIsNewline
14209 \end_layout
14210
14211 \end_inset
14212
14213  [
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218
14219 \emph on
14220 0
14221 \end_layout
14222
14223 \end_inset
14224
14225 ,
14226 \begin_inset space \thinspace{}
14227 \end_inset
14228
14229
14230 \begin_inset Flex Code
14231 status collapsed
14232
14233 \begin_layout Plain Layout
14234 1
14235 \end_layout
14236
14237 \end_inset
14238
14239 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14240  output,
14241  but only by a line break; together with 
14242 \begin_inset Flex Code
14243 status collapsed
14244
14245 \begin_layout Plain Layout
14246 PassThru 1
14247 \end_layout
14248
14249 \end_inset
14250
14251 , this allows to emulate a plain text editor (like the ERT inset).
14252 \end_layout
14253
14254 \begin_layout Description
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 ParIndent
14260 \end_layout
14261
14262 \end_inset
14263
14264  [
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 string=""
14270 \end_layout
14271
14272 \end_inset
14273
14274 ] The indent of the very first line of a paragraph.
14275  The
14276 \begin_inset Newline newline
14277 \end_inset
14278
14279
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 Parindent
14285 \end_layout
14286
14287 \end_inset
14288
14289  will be fixed for a certain style.
14290  The exception is the default style, since the indentation for these paragraphs
14291  can be prohibited with 
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296 NextNoIndent
14297 \end_layout
14298
14299 \end_inset
14300
14301 .
14302  Also, 
14303 \begin_inset Flex Code
14304 status collapsed
14305
14306 \begin_layout Plain Layout
14307 Standard
14308 \end_layout
14309
14310 \end_inset
14311
14312  style paragraphs inside environments use the 
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 Parindent
14318 \end_layout
14319
14320 \end_inset
14321
14322  of the environment, not their native one.
14323  For example, 
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 Standard
14329 \end_layout
14330
14331 \end_inset
14332
14333  paragraphs inside an enumeration are not indented.
14334 \end_layout
14335
14336 \begin_layout Description
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 ParSep
14342 \end_layout
14343
14344 \end_inset
14345
14346  [
14347 \begin_inset Flex Code
14348 status collapsed
14349
14350 \begin_layout Plain Layout
14351 float=0
14352 \end_layout
14353
14354 \end_inset
14355
14356 ] The vertical space between two paragraphs of this style.
14357 \end_layout
14358
14359 \begin_layout Description
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 Parskip
14365 \end_layout
14366
14367 \end_inset
14368
14369  [
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 float=0
14375 \end_layout
14376
14377 \end_inset
14378
14379 ] \SpecialChar LyX
14380  allows the user to choose either 
14381 \begin_inset Quotes eld
14382 \end_inset
14383
14384 indent
14385 \begin_inset Quotes erd
14386 \end_inset
14387
14388  or 
14389 \begin_inset Quotes eld
14390 \end_inset
14391
14392 skip
14393 \begin_inset Quotes erd
14394 \end_inset
14395
14396  to separate paragraphs.
14397  When 
14398 \begin_inset Quotes eld
14399 \end_inset
14400
14401 indent
14402 \begin_inset Quotes erd
14403 \end_inset
14404
14405  is chosen, 
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 Parskip
14411 \end_layout
14412
14413 \end_inset
14414
14415  is ignored.
14416  When 
14417 \begin_inset Quotes eld
14418 \end_inset
14419
14420 skip
14421 \begin_inset Quotes erd
14422 \end_inset
14423
14424  is chosen, 
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 ParIndent
14430 \end_layout
14431
14432 \end_inset
14433
14434  is ignored and all paragraphs are separated by the 
14435 \begin_inset Flex Code
14436 status collapsed
14437
14438 \begin_layout Plain Layout
14439 Parskip
14440 \end_layout
14441
14442 \end_inset
14443
14444  argument.
14445  The vertical space is calculated with 
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 Parskip
14451 \begin_inset space ~
14452 \end_inset
14453
14454 * DefaultHeight
14455 \end_layout
14456
14457 \end_inset
14458
14459  where 
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 DefaultHeight
14465 \end_layout
14466
14467 \end_inset
14468
14469  is the height of a row with the normal font.
14470  This way, the look stays the same with different screen fonts.
14471 \end_layout
14472
14473 \begin_layout Description
14474 \begin_inset Flex Code
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478 PassThru
14479 \end_layout
14480
14481 \end_inset
14482
14483  [
14484 \begin_inset Flex Code
14485 status collapsed
14486
14487 \begin_layout Plain Layout
14488
14489 \emph on
14490 0
14491 \end_layout
14492
14493 \end_inset
14494
14495 ,
14496 \begin_inset space \thinspace{}
14497 \end_inset
14498
14499
14500 \begin_inset Flex Code
14501 status collapsed
14502
14503 \begin_layout Plain Layout
14504 1
14505 \end_layout
14506
14507 \end_inset
14508
14509 ] Whether the contents of this paragraph should be output in raw form, meaning
14510  without special translations that \SpecialChar LaTeX
14511  would require.
14512 \end_layout
14513
14514 \begin_layout Description
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519 PassThruChars
14520 \end_layout
14521
14522 \end_inset
14523
14524  [
14525 \begin_inset Flex Code
14526 status collapsed
14527
14528 \begin_layout Plain Layout
14529 string
14530 \end_layout
14531
14532 \end_inset
14533
14534 ]
14535 \family typewriter
14536  
14537 \family default
14538 Defines individual characters that should be output in raw form, meaning
14539  without special translations that \SpecialChar LaTeX
14540  would require.
14541 \end_layout
14542
14543 \begin_layout Description
14544 \begin_inset Flex Code
14545 status collapsed
14546
14547 \begin_layout Plain Layout
14548 Preamble
14549 \end_layout
14550
14551 \end_inset
14552
14553  Information to be included in the \SpecialChar LaTeX
14554  preamble when this style is used.
14555  Used to define macros, load packages, etc., required by this particular
14556  style.
14557  Must end with 
14558 \begin_inset Quotes eld
14559 \end_inset
14560
14561
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566 EndPreamble
14567 \end_layout
14568
14569 \end_inset
14570
14571
14572 \begin_inset Quotes erd
14573 \end_inset
14574
14575 .
14576 \end_layout
14577
14578 \begin_layout Description
14579 \begin_inset Flex Code
14580 status collapsed
14581
14582 \begin_layout Plain Layout
14583 RefPrefix
14584 \end_layout
14585
14586 \end_inset
14587
14588  [
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 string
14594 \end_layout
14595
14596 \end_inset
14597
14598 ] The prefix to use when creating labels referring to paragraphs of this
14599  type.
14600  This allows the use of formatted references.
14601 \end_layout
14602
14603 \begin_layout Description
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Requires 
14609 \end_layout
14610
14611 \end_inset
14612
14613  [
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 string
14619 \end_layout
14620
14621 \end_inset
14622
14623 ] Whether the style requires the feature 
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 string
14629 \end_layout
14630
14631 \end_inset
14632
14633  (see 
14634 \begin_inset CommandInset ref
14635 LatexCommand ref
14636 reference "chap:List-of-functions"
14637
14638 \end_inset
14639
14640  for the list of features).
14641  If you require a package with specific options, you can additionally use
14642  
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 PackageOptions
14648 \end_layout
14649
14650 \end_inset
14651
14652  as a general text class parameter (see 
14653 \begin_inset CommandInset ref
14654 LatexCommand ref
14655 reference "subsec:General-text-class"
14656
14657 \end_inset
14658
14659 ).
14660 \end_layout
14661
14662 \begin_layout Description
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 ResetArgs
14668 \end_layout
14669
14670 \end_inset
14671
14672  [
14673 \begin_inset Flex Code
14674 status collapsed
14675
14676 \begin_layout Plain Layout
14677
14678 \emph on
14679 0
14680 \end_layout
14681
14682 \end_inset
14683
14684 ,
14685 \begin_inset Flex Code
14686 status collapsed
14687
14688 \begin_layout Plain Layout
14689 1
14690 \end_layout
14691
14692 \end_inset
14693
14694 ] Resets the \SpecialChar LaTeX
14695  arguments of this style (as defined via the 
14696 \begin_inset Flex Code
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700 Argument
14701 \end_layout
14702
14703 \end_inset
14704
14705  tag).
14706  This is useful if you have copied a style via 
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711 CopyStyle
14712 \end_layout
14713
14714 \end_inset
14715
14716 , but you do not want to inherit its (required and optional) arguments.
14717 \end_layout
14718
14719 \begin_layout Description
14720 \begin_inset Flex Code
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724 RightDelim
14725 \end_layout
14726
14727 \end_inset
14728
14729  [
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734 string
14735 \end_layout
14736
14737 \end_inset
14738
14739 ] A string that is put at the end of the layout content.
14740  A line break in the output can be indicated by 
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 <br/>
14746 \end_layout
14747
14748 \end_inset
14749
14750 .
14751 \end_layout
14752
14753 \begin_layout Description
14754 \begin_inset Flex Code
14755 status collapsed
14756
14757 \begin_layout Plain Layout
14758 RightMargin
14759 \end_layout
14760
14761 \end_inset
14762
14763  [
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 string=""
14769 \end_layout
14770
14771 \end_inset
14772
14773 ] Similar to 
14774 \begin_inset Flex Code
14775 status collapsed
14776
14777 \begin_layout Plain Layout
14778 LeftMargin
14779 \end_layout
14780
14781 \end_inset
14782
14783 .
14784 \end_layout
14785
14786 \begin_layout Description
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 Spacing
14792 \end_layout
14793
14794 \end_inset
14795
14796  [
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801
14802 \emph on
14803 single
14804 \end_layout
14805
14806 \end_inset
14807
14808
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 onehalf
14814 \end_layout
14815
14816 \end_inset
14817
14818
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823 double
14824 \end_layout
14825
14826 \end_inset
14827
14828
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 other
14834 \begin_inset space ~
14835 \end_inset
14836
14837 <value>
14838 \end_layout
14839
14840 \end_inset
14841
14842 ] This defines what the default spacing should be in the style.
14843  The arguments 
14844 \begin_inset Flex Code
14845 status collapsed
14846
14847 \begin_layout Plain Layout
14848 single
14849 \end_layout
14850
14851 \end_inset
14852
14853
14854 \begin_inset Flex Code
14855 status collapsed
14856
14857 \begin_layout Plain Layout
14858 onehalf
14859 \end_layout
14860
14861 \end_inset
14862
14863  and 
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868 double
14869 \end_layout
14870
14871 \end_inset
14872
14873  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14874  If you specify the argument 
14875 \begin_inset Flex Code
14876 status collapsed
14877
14878 \begin_layout Plain Layout
14879 other
14880 \end_layout
14881
14882 \end_inset
14883
14884 , then you must also provide a value argument which will be the actual multiplie
14885 r value.
14886  Note that, contrary to other parameters, 
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Spacing
14892 \end_layout
14893
14894 \end_inset
14895
14896  implies the generation of specific \SpecialChar LaTeX
14897  code, using the \SpecialChar LaTeX
14898  package 
14899 \family roman
14900
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 setspace
14906 \end_layout
14907
14908 \end_inset
14909
14910 .
14911 \end_layout
14912
14913 \begin_layout Description
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 Spellcheck
14919 \end_layout
14920
14921 \end_inset
14922
14923  [
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 0
14929 \end_layout
14930
14931 \end_inset
14932
14933 ,
14934 \begin_inset space \thinspace{}
14935 \end_inset
14936
14937
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942
14943 \emph on
14944 1
14945 \end_layout
14946
14947 \end_inset
14948
14949 ] Allow spell-checking paragraphs of this style.
14950  Default is true.
14951 \end_layout
14952
14953 \begin_layout Description
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 TextFont
14959 \end_layout
14960
14961 \end_inset
14962
14963  The font used for the text body .
14964  See 
14965 \begin_inset CommandInset ref
14966 LatexCommand ref
14967 reference "subsec:Font-description"
14968
14969 \end_inset
14970
14971 .
14972 \end_layout
14973
14974 \begin_layout Description
14975 \begin_inset Flex Code
14976 status collapsed
14977
14978 \begin_layout Plain Layout
14979 TocLevel
14980 \end_layout
14981
14982 \end_inset
14983
14984
14985 \series medium
14986  [
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991
14992 \series medium
14993 int=3
14994 \end_layout
14995
14996 \end_inset
14997
14998 ]
14999 \series default
15000  The level of the style in the table of contents.
15001  This is used for automatic numbering of section headings.
15002 \end_layout
15003
15004 \begin_layout Description
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 ToggleIndent
15010 \end_layout
15011
15012 \end_inset
15013
15014  [
15015 \emph on
15016
15017 \begin_inset Flex Code
15018 status collapsed
15019
15020 \begin_layout Plain Layout
15021
15022 \emph on
15023 default
15024 \end_layout
15025
15026 \end_inset
15027
15028
15029 \emph default
15030
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 always
15036 \end_layout
15037
15038 \end_inset
15039
15040
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 never
15046 \end_layout
15047
15048 \end_inset
15049
15050 ] This tag determines whether the first line indentation of this paragraph
15051  can be toggled via the Paragraph settings dialog.
15052  If 
15053 \emph on
15054
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059
15060 \emph off
15061 default
15062 \end_layout
15063
15064 \end_inset
15065
15066
15067 \emph default
15068  is set, indentation can be toggled if the document settings use 
15069 \begin_inset Quotes eld
15070 \end_inset
15071
15072 indent
15073 \begin_inset Quotes erd
15074 \end_inset
15075
15076  paragraph style, with 
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 always
15082 \end_layout
15083
15084 \end_inset
15085
15086 , indentation can always be toggled, notwithstanding the document settings,
15087  with 
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 never
15093 \end_layout
15094
15095 \end_inset
15096
15097 , indentation can never be toggled.
15098 \end_layout
15099
15100 \begin_layout Description
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 TopSep
15106 \end_layout
15107
15108 \end_inset
15109
15110  [
15111 \begin_inset Flex Code
15112 status collapsed
15113
15114 \begin_layout Plain Layout
15115 float=0
15116 \end_layout
15117
15118 \end_inset
15119
15120 ] The vertical space with which the very first of a chain of paragraphs
15121  with this style is separated from the previous paragraph.
15122  If the previous paragraph has another style, the separations are not simply
15123  added, but the maximum is taken.
15124 \end_layout
15125
15126 \begin_layout Subsection
15127 \begin_inset CommandInset label
15128 LatexCommand label
15129 name "subsec:I18n"
15130
15131 \end_inset
15132
15133 Internationalization of Paragraph Styles
15134 \end_layout
15135
15136 \begin_layout Standard
15137 \SpecialChar LyX
15138  has long supported internationalization of layout information, but, until
15139  version 2.0, this applied only to the user interface and not to, say, PDF
15140  output.
15141  Thus, French authors were forced to resort to ugly hacks if they wanted
15142  `
15143 \lang french
15144 Théorème
15145 \lang english
15146  1' instead of `Theorem 1'.
15147  Thanks to Georg Baum, that is no longer the case.
15148 \end_layout
15149
15150 \begin_layout Standard
15151 If a 
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 Style
15157 \end_layout
15158
15159 \end_inset
15160
15161  defines text that is to appear in the typeset document, it may use 
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 LangPreamble
15167 \end_layout
15168
15169 \end_inset
15170
15171  and 
15172 \begin_inset Flex Code
15173 status collapsed
15174
15175 \begin_layout Plain Layout
15176 BabelPreamble
15177 \end_layout
15178
15179 \end_inset
15180
15181  to support non-English and even multi-language documents correctly.
15182  The following excerpt (from the 
15183 \begin_inset Flex Code
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187 theorems-ams.inc
15188 \end_layout
15189
15190 \end_inset
15191
15192  file) shows how this works:
15193 \end_layout
15194
15195 \begin_layout LyX-Code
15196 Preamble
15197 \begin_inset Separator parbreak
15198 \end_inset
15199
15200
15201 \end_layout
15202
15203 \begin_deeper
15204 \begin_layout LyX-Code
15205   
15206 \backslash
15207 theoremstyle{remark}
15208 \end_layout
15209
15210 \begin_layout LyX-Code
15211   
15212 \backslash
15213 newtheorem{claim}[thm]{
15214 \backslash
15215 protect
15216 \backslash
15217 claimname}
15218 \end_layout
15219
15220 \begin_layout LyX-Code
15221 EndPreamble
15222 \end_layout
15223
15224 \begin_layout LyX-Code
15225 LangPreamble
15226 \end_layout
15227
15228 \begin_layout LyX-Code
15229   
15230 \backslash
15231 providecommand{
15232 \backslash
15233 claimname}{_(Claim)}
15234 \end_layout
15235
15236 \begin_layout LyX-Code
15237 EndLangPreamble
15238 \end_layout
15239
15240 \begin_layout LyX-Code
15241 BabelPreamble
15242 \end_layout
15243
15244 \begin_layout LyX-Code
15245     
15246 \backslash
15247 addto
15248 \backslash
15249 captions$$lang{
15250 \backslash
15251 renewcommand{
15252 \backslash
15253 claimname}{_(Claim)}}
15254 \end_layout
15255
15256 \begin_layout LyX-Code
15257 EndBabelPreamble
15258 \end_layout
15259
15260 \end_deeper
15261 \begin_layout Standard
15262 In principle, any legal \SpecialChar LaTeX
15263  may appear in the 
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268 LangPreamble
15269 \end_layout
15270
15271 \end_inset
15272
15273  and 
15274 \begin_inset Flex Code
15275 status collapsed
15276
15277 \begin_layout Plain Layout
15278 BabelPreamble
15279 \end_layout
15280
15281 \end_inset
15282
15283  tags, but in practice they will typically look as they do here.
15284  The key to correct translation of the typeset text is the definition of
15285  the \SpecialChar LaTeX
15286  command 
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291
15292 \backslash
15293 claimname
15294 \end_layout
15295
15296 \end_inset
15297
15298  and its use in 
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303
15304 \backslash
15305 newtheorem
15306 \end_layout
15307
15308 \end_inset
15309
15310 .
15311  
15312 \end_layout
15313
15314 \begin_layout Standard
15315 The 
15316 \begin_inset Flex Code
15317 status collapsed
15318
15319 \begin_layout Plain Layout
15320 LangPreamble
15321 \end_layout
15322
15323 \end_inset
15324
15325  tag provides for internationalization based upon the overall language of
15326  the document.
15327  The contents of the tag will be included in the preamble, just as with
15328  the 
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Preamble
15334 \end_layout
15335
15336 \end_inset
15337
15338  tag.
15339  What makes it special is the use of the 
15340 \begin_inset Quotes eld
15341 \end_inset
15342
15343 function
15344 \begin_inset Quotes erd
15345 \end_inset
15346
15347  
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 _()
15353 \end_layout
15354
15355 \end_inset
15356
15357 , which will be replaced, when \SpecialChar LyX
15358  produces \SpecialChar LaTeX
15359  output, with the translation of
15360  its argument into the document language.
15361 \end_layout
15362
15363 \begin_layout Standard
15364 The 
15365 \begin_inset Flex Code
15366 status collapsed
15367
15368 \begin_layout Plain Layout
15369 BabelPreamble
15370 \end_layout
15371
15372 \end_inset
15373
15374  tag is more complex, since it is meant to provide support for multi-language
15375  documents and so offers an interface to the 
15376 \begin_inset Flex Code
15377 status collapsed
15378
15379 \begin_layout Plain Layout
15380 babel
15381 \end_layout
15382
15383 \end_inset
15384
15385  package.
15386  Its contents will be added to the preamble once for each language that
15387  appears in the document.
15388  In this case, the argument to 
15389 \begin_inset Flex Code
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 _()
15394 \end_layout
15395
15396 \end_inset
15397
15398  will be replaced with its translation into the language in question; the
15399  expression 
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 $$lang
15405 \end_layout
15406
15407 \end_inset
15408
15409  is replaced by the language name (as used by the babel package).
15410 \end_layout
15411
15412 \begin_layout Standard
15413 A German document that also included a French section would thus have the
15414  following in the preamble:
15415 \end_layout
15416
15417 \begin_layout LyX-Code
15418
15419 \backslash
15420 addto
15421 \backslash
15422 captionsfrench{
15423 \backslash
15424 renewcommand{
15425 \backslash
15426 claimname}{Affirmation}}
15427 \begin_inset Newline newline
15428 \end_inset
15429
15430
15431 \backslash
15432 addto
15433 \backslash
15434 captionsngerman{
15435 \backslash
15436 renewcommand{
15437 \backslash
15438 claimname}{Behauptung}}
15439 \begin_inset Newline newline
15440 \end_inset
15441
15442
15443 \backslash
15444 providecommand{
15445 \backslash
15446 claimname}{Behauptung}
15447 \end_layout
15448
15449 \begin_layout Standard
15450 \SpecialChar LaTeX
15451  and 
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 babel
15457 \end_layout
15458
15459 \end_inset
15460
15461  will then conspire to produce the correct text in the output.
15462 \end_layout
15463
15464 \begin_layout Standard
15465 One important point to note here is that the translations are provided by
15466  \SpecialChar LyX
15467  itself, through the file 
15468 \begin_inset Flex Code
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472 layouttranslations
15473 \end_layout
15474
15475 \end_inset
15476
15477 .
15478  This means, in effect, that 
15479 \begin_inset Flex Code
15480 status collapsed
15481
15482 \begin_layout Plain Layout
15483 LangPreamble
15484 \end_layout
15485
15486 \end_inset
15487
15488  and 
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 BabelPreamble
15494 \end_layout
15495
15496 \end_inset
15497
15498  are really only of use in layout files that are provided with \SpecialChar LyX
15499 , since text
15500  entered in user-created layout files will not be seen by \SpecialChar LyX
15501 's internationalizatio
15502 n routines unless the 
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 layouttranslations
15508 \end_layout
15509
15510 \end_inset
15511
15512  file is modified accordingly.
15513  That said, however, any layout created with the intention that it will
15514  be included with \SpecialChar LyX
15515  should use these tags where appropriate.
15516  Please note that the paragraph style translations provided by \SpecialChar LyX
15517  will never
15518  change with a minor update (e.
15519 \begin_inset space \thinspace{}
15520 \end_inset
15521
15522 g.
15523 \begin_inset space \space{}
15524 \end_inset
15525
15526 from version 2.1.x to 2.1.y).
15527  It is however quite likely that a major update (e.
15528 \begin_inset space \thinspace{}
15529 \end_inset
15530
15531 g.
15532 \begin_inset space \space{}
15533 \end_inset
15534
15535 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15536 \end_layout
15537
15538 \begin_layout Subsection
15539 Floats
15540 \begin_inset CommandInset label
15541 LatexCommand label
15542 name "subsec:Floats"
15543
15544 \end_inset
15545
15546
15547 \end_layout
15548
15549 \begin_layout Standard
15550 It is necessary to define the floats (
15551 \begin_inset Flex Noun
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 figure
15556 \end_layout
15557
15558 \end_inset
15559
15560
15561 \begin_inset Flex Noun
15562 status collapsed
15563
15564 \begin_layout Plain Layout
15565 table
15566 \end_layout
15567
15568 \end_inset
15569
15570 , \SpecialChar ldots
15571 ) in the text class itself.
15572  Standard floats are included in the file 
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 stdfloats.inc
15578 \end_layout
15579
15580 \end_inset
15581
15582 , so you may have to do no more than add
15583 \end_layout
15584
15585 \begin_layout LyX-Code
15586 Input stdfloats.inc
15587 \end_layout
15588
15589 \begin_layout Standard
15590 to your layout file.
15591  If you want to implement a text class that proposes some other float types
15592  (like the AGU class bundled with \SpecialChar LyX
15593 ), the information below will hopefully
15594  help you:
15595 \end_layout
15596
15597 \begin_layout Description
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602 AllowedPlacement
15603 \end_layout
15604
15605 \end_inset
15606
15607  [
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612 string
15613 \end_layout
15614
15615 \end_inset
15616
15617 =!htbpH] Allowed placement options for this float type.
15618  The value is a string of placement characters.
15619  Possible characters include: 
15620 \emph on
15621 h
15622 \emph default
15623  (
15624 \begin_inset Quotes eld
15625 \end_inset
15626
15627 here if possible
15628 \begin_inset Quotes erd
15629 \end_inset
15630
15631 ), 
15632 \emph on
15633 t
15634 \emph default
15635  (
15636 \begin_inset Quotes eld
15637 \end_inset
15638
15639 top of page
15640 \begin_inset Quotes erd
15641 \end_inset
15642
15643 ), 
15644 \emph on
15645 b
15646 \emph default
15647  (
15648 \begin_inset Quotes eld
15649 \end_inset
15650
15651 bottom of page
15652 \begin_inset Quotes erd
15653 \end_inset
15654
15655 ), 
15656 \emph on
15657 p
15658 \emph default
15659  (
15660 \begin_inset Quotes eld
15661 \end_inset
15662
15663 page of floats
15664 \begin_inset Quotes erd
15665 \end_inset
15666
15667 ), 
15668 \emph on
15669 H
15670 \emph default
15671  (
15672 \begin_inset Quotes eld
15673 \end_inset
15674
15675 here definitely
15676 \begin_inset Quotes erd
15677 \end_inset
15678
15679 ) and 
15680 \emph on
15681 !
15682 \emph default
15683  (
15684 \begin_inset Quotes eld
15685 \end_inset
15686
15687 ignore LaTeX rules
15688 \begin_inset Quotes erd
15689 \end_inset
15690
15691 ).
15692  The order of the characters in the string does not matter.
15693  If no placement options are allowed, use the string 
15694 \emph on
15695 none
15696 \emph default
15697 .
15698 \end_layout
15699
15700 \begin_layout Description
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 AllowsSideways
15706 \end_layout
15707
15708 \end_inset
15709
15710  [
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715
15716 \emph off
15717 0
15718 \end_layout
15719
15720 \end_inset
15721
15722 ,
15723 \begin_inset space \thinspace{}
15724 \end_inset
15725
15726
15727 \emph on
15728
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733
15734 \emph on
15735 1
15736 \end_layout
15737
15738 \end_inset
15739
15740
15741 \emph default
15742 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
15743 -package 
15744 \family typewriter
15745 rotfloat
15746 \family default
15747  (sidewaysfloat).
15748  Set to 
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 0
15754 \end_layout
15755
15756 \end_inset
15757
15758  if the float does not support this feature.
15759 \end_layout
15760
15761 \begin_layout Description
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766 AllowsWide
15767 \end_layout
15768
15769 \end_inset
15770
15771  [
15772 \begin_inset Flex Code
15773 status collapsed
15774
15775 \begin_layout Plain Layout
15776
15777 \emph off
15778 0
15779 \end_layout
15780
15781 \end_inset
15782
15783 ,
15784 \begin_inset space \thinspace{}
15785 \end_inset
15786
15787
15788 \emph on
15789
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794
15795 \emph on
15796 1
15797 \end_layout
15798
15799 \end_inset
15800
15801
15802 \emph default
15803 ] Defines whether the float has a starred variant that spans columns in
15804  a two column paragraph.
15805  Set to 
15806 \begin_inset Flex Code
15807 status collapsed
15808
15809 \begin_layout Plain Layout
15810 0
15811 \end_layout
15812
15813 \end_inset
15814
15815  if the float does not support this feature.
15816 \end_layout
15817
15818 \begin_layout Description
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 Extension
15824 \end_layout
15825
15826 \end_inset
15827
15828  [
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 string
15834 \end_layout
15835
15836 \end_inset
15837
15838 =
15839 \begin_inset Quotes erd
15840 \end_inset
15841
15842
15843 \begin_inset Quotes erd
15844 \end_inset
15845
15846 ] The file name extension of an auxiliary file for the list of figures (or
15847  whatever).
15848  \SpecialChar LaTeX
15849  writes the captions to this file.
15850 \end_layout
15851
15852 \begin_layout Description
15853 \begin_inset Flex Code
15854 status collapsed
15855
15856 \begin_layout Plain Layout
15857 GuiName
15858 \end_layout
15859
15860 \end_inset
15861
15862  [
15863 \begin_inset Flex Code
15864 status collapsed
15865
15866 \begin_layout Plain Layout
15867 string
15868 \end_layout
15869
15870 \end_inset
15871
15872 =
15873 \begin_inset Quotes erd
15874 \end_inset
15875
15876
15877 \begin_inset Quotes erd
15878 \end_inset
15879
15880 ] The string that will be used in the menus and also for the caption.
15881  This is translated to the current language if babel is used.
15882 \end_layout
15883
15884 \begin_layout Description
15885 \begin_inset Flex Code
15886 status collapsed
15887
15888 \begin_layout Plain Layout
15889 HTML*
15890 \end_layout
15891
15892 \end_inset
15893
15894  These tags control the XHTML output.
15895  See 
15896 \begin_inset CommandInset ref
15897 LatexCommand ref
15898 reference "sec:Tags-for-XHTML"
15899
15900 \end_inset
15901
15902 .
15903 \end_layout
15904
15905 \begin_layout Description
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 IsPredefined
15911 \end_layout
15912
15913 \end_inset
15914
15915  [
15916 \emph on
15917
15918 \begin_inset Flex Code
15919 status collapsed
15920
15921 \begin_layout Plain Layout
15922 0
15923 \end_layout
15924
15925 \end_inset
15926
15927
15928 \emph default
15929 ,
15930 \begin_inset space \thinspace{}
15931 \end_inset
15932
15933
15934 \begin_inset Flex Code
15935 status collapsed
15936
15937 \begin_layout Plain Layout
15938 1
15939 \end_layout
15940
15941 \end_inset
15942
15943 ] Indicates whether the float is already defined in the document class or
15944  if instead the \SpecialChar LaTeX
15945  package 
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 float
15951 \end_layout
15952
15953 \end_inset
15954
15955  needs to be loaded to define it on-the-fly.
15956  The default is 
15957 \begin_inset Flex Code
15958 status collapsed
15959
15960 \begin_layout Plain Layout
15961 0
15962 \end_layout
15963
15964 \end_inset
15965
15966 , which means: 
15967 \begin_inset Flex Code
15968 status collapsed
15969
15970 \begin_layout Plain Layout
15971 float
15972 \end_layout
15973
15974 \end_inset
15975
15976  is used.
15977  It should be set to 
15978 \begin_inset Flex Code
15979 status collapsed
15980
15981 \begin_layout Plain Layout
15982 1
15983 \end_layout
15984
15985 \end_inset
15986
15987  if the float is already defined by the \SpecialChar LaTeX
15988  document class.
15989 \end_layout
15990
15991 \begin_layout Description
15992 \begin_inset Flex Code
15993 status collapsed
15994
15995 \begin_layout Plain Layout
15996 ListCommand
15997 \end_layout
15998
15999 \end_inset
16000
16001  [
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006 string
16007 \end_layout
16008
16009 \end_inset
16010
16011 =
16012 \begin_inset Quotes erd
16013 \end_inset
16014
16015
16016 \begin_inset Quotes erd
16017 \end_inset
16018
16019 ] The command used to generate a list of floats of this type; the leading
16020  `
16021 \backslash
16022 ' must be omitted.
16023  This 
16024 \emph on
16025 must
16026 \emph default
16027  be given if 
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 UsesFloatPkg
16033 \end_layout
16034
16035 \end_inset
16036
16037  is false, since there is no standard way to generate this command.
16038  It is ignored if 
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043 UsesFloatPkg
16044 \end_layout
16045
16046 \end_inset
16047
16048  is true, since in that case there is a standard way to define the command.
16049 \end_layout
16050
16051 \begin_layout Description
16052 \begin_inset Flex Code
16053 status collapsed
16054
16055 \begin_layout Plain Layout
16056 ListName
16057 \end_layout
16058
16059 \end_inset
16060
16061  [
16062 \begin_inset Flex Code
16063 status collapsed
16064
16065 \begin_layout Plain Layout
16066 string
16067 \end_layout
16068
16069 \end_inset
16070
16071 =
16072 \begin_inset Quotes erd
16073 \end_inset
16074
16075
16076 \begin_inset Quotes erd
16077 \end_inset
16078
16079 ] A title for a list of floats of this kind (list of figures, tables, or
16080  whatever).
16081  It is used for the screen label within \SpecialChar LyX
16082 , it is used by \SpecialChar LaTeX
16083  for the title and
16084  it is used as the title in the XHTML output.
16085  It will be translated to the document language.
16086 \end_layout
16087
16088 \begin_layout Description
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093 NumberWithin
16094 \end_layout
16095
16096 \end_inset
16097
16098  [
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 string
16104 \end_layout
16105
16106 \end_inset
16107
16108 =
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112
16113 \begin_inset Quotes erd
16114 \end_inset
16115
16116 ] This (optional) argument determines whether floats of this class will
16117  be numbered within some sectional unit of the document.
16118  For example, if 
16119 \begin_inset Flex Code
16120 status collapsed
16121
16122 \begin_layout Plain Layout
16123 NumberWithin
16124 \end_layout
16125
16126 \end_inset
16127
16128  is set to 
16129 \begin_inset Quotes eld
16130 \end_inset
16131
16132
16133 \begin_inset Flex Code
16134 status collapsed
16135
16136 \begin_layout Plain Layout
16137 chapter
16138 \end_layout
16139
16140 \end_inset
16141
16142
16143 \begin_inset Quotes erd
16144 \end_inset
16145
16146 , the floats will be numbered within chapters.
16147  
16148 \end_layout
16149
16150 \begin_layout Description
16151 \begin_inset Flex Code
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155 Placement
16156 \end_layout
16157
16158 \end_inset
16159
16160  [
16161 \begin_inset Flex Code
16162 status collapsed
16163
16164 \begin_layout Plain Layout
16165 string
16166 \end_layout
16167
16168 \end_inset
16169
16170 =
16171 \begin_inset Quotes erd
16172 \end_inset
16173
16174
16175 \begin_inset Quotes erd
16176 \end_inset
16177
16178 ] The default placement for the given class of floats.
16179  The string should be as in standard \SpecialChar LaTeX
16180
16181 \begin_inset Flex Code
16182 status collapsed
16183
16184 \begin_layout Plain Layout
16185 t
16186 \end_layout
16187
16188 \end_inset
16189
16190
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 b
16196 \end_layout
16197
16198 \end_inset
16199
16200
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 p
16206 \end_layout
16207
16208 \end_inset
16209
16210  and 
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 h
16216 \end_layout
16217
16218 \end_inset
16219
16220  for top, bottom, page, and here, respectively.
16221 \begin_inset Foot
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 Note that the order of these letters in the string is irrelevant, like in
16226  \SpecialChar LaTeX
16227 .
16228 \end_layout
16229
16230 \end_inset
16231
16232  On top of that there is a new type, 
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237 H
16238 \end_layout
16239
16240 \end_inset
16241
16242 , which does not really correspond to a float, since it means: put it 
16243 \begin_inset Quotes eld
16244 \end_inset
16245
16246 here
16247 \begin_inset Quotes erd
16248 \end_inset
16249
16250  and nowhere else.
16251  Note however that the 
16252 \begin_inset Flex Code
16253 status collapsed
16254
16255 \begin_layout Plain Layout
16256 H
16257 \end_layout
16258
16259 \end_inset
16260
16261  specifier is special and, because of implementation details, cannot be
16262  used in non-built in float types.
16263  If you do not understand what this means, just use 
16264 \begin_inset Quotes eld
16265 \end_inset
16266
16267
16268 \begin_inset Flex Code
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272 tbp
16273 \end_layout
16274
16275 \end_inset
16276
16277
16278 \begin_inset Quotes erd
16279 \end_inset
16280
16281 .
16282 \end_layout
16283
16284 \begin_layout Description
16285 \begin_inset Flex Code
16286 status collapsed
16287
16288 \begin_layout Plain Layout
16289 RefPrefix
16290 \end_layout
16291
16292 \end_inset
16293
16294  [
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299 string
16300 \end_layout
16301
16302 \end_inset
16303
16304 ] The prefix to use when creating labels referring to floats of this type.
16305  This allows the use of formatted references.
16306  Note that you can remove any 
16307 \begin_inset Flex Code
16308 status collapsed
16309
16310 \begin_layout Plain Layout
16311 RefPrefix
16312 \end_layout
16313
16314 \end_inset
16315
16316  set by a copied style by using the special value 
16317 \begin_inset Quotes eld
16318 \end_inset
16319
16320 OFF
16321 \begin_inset Quotes erd
16322 \end_inset
16323
16324 , which must be all caps.
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 Style
16333 \end_layout
16334
16335 \end_inset
16336
16337  [
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 string
16343 \end_layout
16344
16345 \end_inset
16346
16347 =
16348 \begin_inset Quotes erd
16349 \end_inset
16350
16351
16352 \begin_inset Quotes erd
16353 \end_inset
16354
16355 ] The style used when defining the float using 
16356 \begin_inset Flex Code
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360
16361 \backslash
16362 newfloat
16363 \end_layout
16364
16365 \end_inset
16366
16367 .
16368 \end_layout
16369
16370 \begin_layout Description
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 Type
16376 \end_layout
16377
16378 \end_inset
16379
16380  [
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 string
16386 \end_layout
16387
16388 \end_inset
16389
16390 =
16391 \begin_inset Quotes erd
16392 \end_inset
16393
16394
16395 \begin_inset Quotes erd
16396 \end_inset
16397
16398 ] The 
16399 \begin_inset Quotes eld
16400 \end_inset
16401
16402 type
16403 \begin_inset Quotes erd
16404 \end_inset
16405
16406  of the new class of floats, like program or algorithm.
16407  After the appropriate 
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412
16413 \backslash
16414 newfloat
16415 \end_layout
16416
16417 \end_inset
16418
16419 , commands such as 
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424
16425 \backslash
16426 begin{program}
16427 \end_layout
16428
16429 \end_inset
16430
16431  or 
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436
16437 \backslash
16438 end{algorithm*}
16439 \end_layout
16440
16441 \end_inset
16442
16443  will be available.
16444 \end_layout
16445
16446 \begin_layout Description
16447 \begin_inset Flex Code
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451 UsesFloatPkg
16452 \end_layout
16453
16454 \end_inset
16455
16456  [
16457 \begin_inset Flex Code
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 0
16462 \end_layout
16463
16464 \end_inset
16465
16466 ,
16467 \begin_inset space \thinspace{}
16468 \end_inset
16469
16470
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475
16476 \emph on
16477 1
16478 \end_layout
16479
16480 \end_inset
16481
16482 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16483  package 
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 float
16489 \end_layout
16490
16491 \end_inset
16492
16493 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16494  itself.
16495 \end_layout
16496
16497 \begin_layout Standard
16498 Note that defining a float with type 
16499 \begin_inset Flex Code
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503
16504 \emph on
16505 type
16506 \end_layout
16507
16508 \end_inset
16509
16510  automatically defines the corresponding counter with name 
16511 \begin_inset Flex Code
16512 status collapsed
16513
16514 \begin_layout Plain Layout
16515
16516 \emph on
16517 type
16518 \end_layout
16519
16520 \end_inset
16521
16522 .
16523 \end_layout
16524
16525 \begin_layout Subsection
16526 Flex insets and InsetLayout
16527 \begin_inset CommandInset label
16528 LatexCommand label
16529 name "subsec:Flex-insets-and"
16530
16531 \end_inset
16532
16533
16534 \end_layout
16535
16536 \begin_layout Standard
16537 Flex insets come in three different kinds: 
16538 \end_layout
16539
16540 \begin_layout Itemize
16541 character style (
16542 \begin_inset Flex Code
16543 status collapsed
16544
16545 \begin_layout Plain Layout
16546 CharStyle
16547 \end_layout
16548
16549 \end_inset
16550
16551 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16552  commands as 
16553 \begin_inset Flex Code
16554 status collapsed
16555
16556 \begin_layout Plain Layout
16557
16558 \backslash
16559 noun
16560 \end_layout
16561
16562 \end_inset
16563
16564  and 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569
16570 \backslash
16571 code
16572 \end_layout
16573
16574 \end_inset
16575
16576 .
16577 \end_layout
16578
16579 \begin_layout Itemize
16580 user custom (
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 Custom
16586 \end_layout
16587
16588 \end_inset
16589
16590 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16591  code,
16592  footnote, and the like.
16593  An obvious example is an endnote inset, which is defined in the 
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 endnote
16599 \end_layout
16600
16601 \end_inset
16602
16603  module.
16604 \end_layout
16605
16606 \begin_layout Itemize
16607 XML elements (
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 Element
16613 \end_layout
16614
16615 \end_inset
16616
16617 ): For use with DocBook classes.
16618 \end_layout
16619
16620 \begin_layout Standard
16621 Flex insets are defined using the 
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626 InsetLayout
16627 \end_layout
16628
16629 \end_inset
16630
16631  tag, which shall be explained in a moment.
16632 \end_layout
16633
16634 \begin_layout Standard
16635 The 
16636 \begin_inset Flex Code
16637 status collapsed
16638
16639 \begin_layout Plain Layout
16640 InsetLayout
16641 \end_layout
16642
16643 \end_inset
16644
16645  tag also serves another function: It can be used to customize the general
16646  layout of many different types of insets.
16647  Currently, 
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 InsetLayout
16653 \end_layout
16654
16655 \end_inset
16656
16657  can be used to customize the layout parameters for footnotes, marginal
16658  notes, note insets, \SpecialChar TeX
16659  code (ERT) insets, branches, listings, indexes, boxes,
16660  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16661 \end_layout
16662
16663 \begin_layout Standard
16664 The 
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 InsetLayout
16670 \end_layout
16671
16672 \end_inset
16673
16674  definition must begin with a line of the form:
16675 \end_layout
16676
16677 \begin_layout LyX-Code
16678 InsetLayout <type>
16679 \end_layout
16680
16681 \begin_layout Standard
16682 Here 
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687 <Type>
16688 \end_layout
16689
16690 \end_inset
16691
16692  indicates the inset whose layout is being defined, and here there are four
16693  cases.
16694 \end_layout
16695
16696 \begin_layout Enumerate
16697 The layout for a pre-existing inset is being modified.
16698  In this case, can be 
16699 \begin_inset Flex Code
16700 status collapsed
16701
16702 \begin_layout Plain Layout
16703 <Type>
16704 \end_layout
16705
16706 \end_inset
16707
16708  any one of the following: 
16709 \begin_inset Flex Code
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 Algorithm
16714 \end_layout
16715
16716 \end_inset
16717
16718
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 Branch
16724 \end_layout
16725
16726 \end_inset
16727
16728
16729 \begin_inset Flex Code
16730 status collapsed
16731
16732 \begin_layout Plain Layout
16733 Box
16734 \end_layout
16735
16736 \end_inset
16737
16738
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 Box:shaded
16744 \end_layout
16745
16746 \end_inset
16747
16748
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 Caption:Standard
16754 \end_layout
16755
16756 \end_inset
16757
16758
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 ERT
16764 \end_layout
16765
16766 \end_inset
16767
16768
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 Figure
16774 \end_layout
16775
16776 \end_inset
16777
16778
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 Foot
16784 \end_layout
16785
16786 \end_inset
16787
16788
16789 \begin_inset Flex Code
16790 status collapsed
16791
16792 \begin_layout Plain Layout
16793 Index
16794 \end_layout
16795
16796 \end_inset
16797
16798
16799 \begin_inset Flex Code
16800 status collapsed
16801
16802 \begin_layout Plain Layout
16803 Info
16804 \end_layout
16805
16806 \end_inset
16807
16808
16809 \begin_inset Flex Code
16810 status collapsed
16811
16812 \begin_layout Plain Layout
16813 Info:menu
16814 \end_layout
16815
16816 \end_inset
16817
16818
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823 Info:shortcut
16824 \end_layout
16825
16826 \end_inset
16827
16828
16829 \begin_inset Flex Code
16830 status collapsed
16831
16832 \begin_layout Plain Layout
16833 Info:shortcuts
16834 \end_layout
16835
16836 \end_inset
16837
16838
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843 Listings
16844 \end_layout
16845
16846 \end_inset
16847
16848
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 Marginal
16854 \end_layout
16855
16856 \end_inset
16857
16858
16859 \begin_inset Flex Code
16860 status collapsed
16861
16862 \begin_layout Plain Layout
16863 Note:Comment
16864 \end_layout
16865
16866 \end_inset
16867
16868
16869 \begin_inset Flex Code
16870 status collapsed
16871
16872 \begin_layout Plain Layout
16873 Note:Note
16874 \end_layout
16875
16876 \end_inset
16877
16878
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 Note:Greyedout
16884 \end_layout
16885
16886 \end_inset
16887
16888
16889 \begin_inset Flex Code
16890 status collapsed
16891
16892 \begin_layout Plain Layout
16893 Table
16894 \end_layout
16895
16896 \end_inset
16897
16898 , or 
16899 \begin_inset Flex Code
16900 status collapsed
16901
16902 \begin_layout Plain Layout
16903 URL
16904 \end_layout
16905
16906 \end_inset
16907
16908 .
16909 \end_layout
16910
16911 \begin_layout Enumerate
16912 The layout for a Flex inset is being defined.
16913  In this case, 
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 <Type>
16919 \end_layout
16920
16921 \end_inset
16922
16923  must be of the form 
16924 \begin_inset Quotes eld
16925 \end_inset
16926
16927
16928 \begin_inset Flex Code
16929 status collapsed
16930
16931 \begin_layout Plain Layout
16932 Flex:<name>
16933 \end_layout
16934
16935 \end_inset
16936
16937
16938 \begin_inset Quotes erd
16939 \end_inset
16940
16941 , where 
16942 \begin_inset Flex Code
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946 name
16947 \end_layout
16948
16949 \end_inset
16950
16951  may be be any valid identifier not used by a pre-existing Flex inset.
16952  The identifier may include spaces, but in that case the whole thing must
16953  be wrapped in quotes.
16954  Note that the definition of a flex inset 
16955 \emph on
16956 must 
16957 \emph default
16958 also include a 
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 LyXType
16964 \end_layout
16965
16966 \end_inset
16967
16968  entry, declaring which type of inset it defines.
16969 \end_layout
16970
16971 \begin_layout Enumerate
16972 The layout for user specific branch is being defined.
16973  In this case, 
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978 <Type>
16979 \end_layout
16980
16981 \end_inset
16982
16983  must be of the form 
16984 \begin_inset Quotes eld
16985 \end_inset
16986
16987
16988 \begin_inset Flex Code
16989 status collapsed
16990
16991 \begin_layout Plain Layout
16992 Branch:<name>
16993 \end_layout
16994
16995 \end_inset
16996
16997
16998 \begin_inset Quotes erd
16999 \end_inset
17000
17001 , where 
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 name
17007 \end_layout
17008
17009 \end_inset
17010
17011  may be be any valid identifier of branch defined in user's document.
17012  The identifier may include spaces, but in that case the whole thing must
17013  be wrapped in quotes.
17014  The main purpose of this feature is to allow \SpecialChar LaTeX
17015  wrapping around specific
17016  branches as user needs.
17017 \end_layout
17018
17019 \begin_layout Enumerate
17020 The layout of a user (or class) specific caption is being defined.
17021  In this case, 
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026 <Type>
17027 \end_layout
17028
17029 \end_inset
17030
17031  must be of the form 
17032 \begin_inset Quotes eld
17033 \end_inset
17034
17035
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 Caption:<name>
17041 \end_layout
17042
17043 \end_inset
17044
17045
17046 \begin_inset Quotes erd
17047 \end_inset
17048
17049 , where 
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 name
17055 \end_layout
17056
17057 \end_inset
17058
17059  specifies the name of the caption as it appears in the menu.
17060  Have a look at the standard caption (
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 Caption:Standard
17066 \end_layout
17067
17068 \end_inset
17069
17070 ), the specific captions of the KOMA-Script classes (
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 Caption:Above
17076 \end_layout
17077
17078 \end_inset
17079
17080
17081 \begin_inset Flex Code
17082 status collapsed
17083
17084 \begin_layout Plain Layout
17085 Caption:Below
17086 \end_layout
17087
17088 \end_inset
17089
17090 ) or the module 
17091 \family sans
17092 Multilingual
17093 \begin_inset space ~
17094 \end_inset
17095
17096 Captions 
17097 \family default
17098 (
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 Caption:Bicaption
17104 \end_layout
17105
17106 \end_inset
17107
17108 ) for applications.
17109 \end_layout
17110
17111 \begin_layout Standard
17112 The 
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 InsetLayout
17118 \end_layout
17119
17120 \end_inset
17121
17122  definition can contain the following entries:
17123 \end_layout
17124
17125 \begin_layout Description
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 Argument
17131 \end_layout
17132
17133 \end_inset
17134
17135  [
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 int
17141 \end_layout
17142
17143 \end_inset
17144
17145 ] Defines argument number of a command\SpecialChar breakableslash
17146 environment associated with the current
17147  layout.
17148  The definition must end with 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 EndArgument
17154 \end_layout
17155
17156 \end_inset
17157
17158 .
17159  See 
17160 \begin_inset CommandInset ref
17161 LatexCommand ref
17162 reference "subsec:Paragraph-Styles"
17163
17164 \end_inset
17165
17166  for details.
17167 \end_layout
17168
17169 \begin_layout Description
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174 BabelPreamble
17175 \end_layout
17176
17177 \end_inset
17178
17179  Preamble for changing language commands; see 
17180 \begin_inset CommandInset ref
17181 LatexCommand ref
17182 reference "subsec:I18n"
17183
17184 \end_inset
17185
17186 .
17187 \end_layout
17188
17189 \begin_layout Description
17190 \begin_inset Flex Code
17191 status collapsed
17192
17193 \begin_layout Plain Layout
17194 BgColor
17195 \end_layout
17196
17197 \end_inset
17198
17199  [
17200 \begin_inset Flex Code
17201 status collapsed
17202
17203 \begin_layout Plain Layout
17204 <name>
17205 \end_layout
17206
17207 \end_inset
17208
17209 ] The color for the inset's background.
17210  See 
17211 \begin_inset CommandInset ref
17212 LatexCommand ref
17213 reference "chap:Names-of-colors"
17214
17215 \end_inset
17216
17217  for a list of the available color names.
17218 \end_layout
17219
17220 \begin_layout Description
17221 \begin_inset Flex Code
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225 ContentAsLabel
17226 \end_layout
17227
17228 \end_inset
17229
17230  [
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235
17236 \emph on
17237 0
17238 \end_layout
17239
17240 \end_inset
17241
17242 ,
17243 \begin_inset space \thinspace{}
17244 \end_inset
17245
17246
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251 1
17252 \end_layout
17253
17254 \end_inset
17255
17256 ] Whether to use the content of the inset as the label, when the inset is
17257  closed.
17258  Default is false.
17259 \end_layout
17260
17261 \begin_layout Description
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 CopyStyle
17267 \end_layout
17268
17269 \end_inset
17270
17271  [
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 <type>
17277 \end_layout
17278
17279 \end_inset
17280
17281 ] As with paragraph styles, see 
17282 \begin_inset CommandInset ref
17283 LatexCommand ref
17284 reference "subsec:Paragraph-Styles"
17285
17286 \end_inset
17287
17288 .
17289  Note that you need to specify the complete type, e.
17290 \begin_inset space \thinspace{}
17291 \end_inset
17292
17293 g.
17294 \begin_inset space ~
17295 \end_inset
17296
17297
17298 \begin_inset Flex Code
17299 status collapsed
17300
17301 \begin_layout Plain Layout
17302 CopyStyle Flex:<name>
17303 \end_layout
17304
17305 \end_inset
17306
17307 .
17308 \end_layout
17309
17310 \begin_layout Description
17311 \begin_inset Flex Code
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315 CustomPars
17316 \end_layout
17317
17318 \end_inset
17319
17320  [
17321 \begin_inset Flex Code
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325
17326 \emph on
17327 0
17328 \end_layout
17329
17330 \end_inset
17331
17332 ,
17333 \begin_inset space \thinspace{}
17334 \end_inset
17335
17336
17337 \begin_inset Flex Code
17338 status collapsed
17339
17340 \begin_layout Plain Layout
17341 1
17342 \end_layout
17343
17344 \end_inset
17345
17346 ] Indicates whether the user may employ the Paragraph Settings dialog to
17347  customize the paragraph.
17348 \end_layout
17349
17350 \begin_layout Description
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355 Decoration
17356 \end_layout
17357
17358 \end_inset
17359
17360  can be 
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365 Classic
17366 \end_layout
17367
17368 \end_inset
17369
17370
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375 Minimalistic
17376 \end_layout
17377
17378 \end_inset
17379
17380 , or 
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385 Conglomerate
17386 \end_layout
17387
17388 \end_inset
17389
17390 , describing the rendering style used for the inset's frame and buttons.
17391  Footnotes generally use 
17392 \begin_inset Flex Code
17393 status collapsed
17394
17395 \begin_layout Plain Layout
17396 Classic
17397 \end_layout
17398
17399 \end_inset
17400
17401 , ERT insets generally 
17402 \begin_inset Flex Code
17403 status collapsed
17404
17405 \begin_layout Plain Layout
17406 Minimalistic
17407 \end_layout
17408
17409 \end_inset
17410
17411 , and character styles 
17412 \begin_inset Flex Code
17413 status collapsed
17414
17415 \begin_layout Plain Layout
17416 Conglomerate
17417 \end_layout
17418
17419 \end_inset
17420
17421 .
17422 \end_layout
17423
17424 \begin_layout Description
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429 Display
17430 \end_layout
17431
17432 \end_inset
17433
17434  [
17435 \begin_inset Flex Code
17436 status collapsed
17437
17438 \begin_layout Plain Layout
17439 0
17440 \end_layout
17441
17442 \end_inset
17443
17444 ,
17445 \emph on
17446
17447 \begin_inset space \thinspace{}
17448 \end_inset
17449
17450
17451 \emph default
17452
17453 \begin_inset Flex Code
17454 status collapsed
17455
17456 \begin_layout Plain Layout
17457
17458 \emph on
17459 1
17460 \end_layout
17461
17462 \end_inset
17463
17464 ] Only useful if 
17465 \begin_inset Flex Code
17466 status collapsed
17467
17468 \begin_layout Plain Layout
17469 LatexType
17470 \end_layout
17471
17472 \end_inset
17473
17474  is 
17475 \begin_inset Flex Code
17476 status collapsed
17477
17478 \begin_layout Plain Layout
17479 Environment
17480 \end_layout
17481
17482 \end_inset
17483
17484 .
17485  Indicates whether the environment will stand on its own in the output or
17486  will appear inline with the surrounding text.
17487  If set to false, it is supposed that the \SpecialChar LaTeX
17488  environment ignores white space
17489  (including one newline character) after the 
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494
17495 \backslash
17496 begin{
17497 \emph on
17498 LatexName
17499 \emph default
17500 }
17501 \end_layout
17502
17503 \end_inset
17504
17505  and 
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510
17511 \backslash
17512 end{
17513 \emph on
17514 LatexName
17515 \emph default
17516 }
17517 \end_layout
17518
17519 \end_inset
17520
17521  tags.
17522  Default is true.
17523 \end_layout
17524
17525 \begin_layout Description
17526 \begin_inset Flex Code
17527 status collapsed
17528
17529 \begin_layout Plain Layout
17530 End
17531 \end_layout
17532
17533 \end_inset
17534
17535  Required at the end of the 
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 InsetLayout
17541 \end_layout
17542
17543 \end_inset
17544
17545  declarations.
17546 \end_layout
17547
17548 \begin_layout Description
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 Font
17554 \end_layout
17555
17556 \end_inset
17557
17558  The font used for both the text body 
17559 \emph on
17560 and
17561 \emph default
17562  the label.
17563  See 
17564 \begin_inset CommandInset ref
17565 LatexCommand ref
17566 reference "subsec:Font-description"
17567
17568 \end_inset
17569
17570 .
17571  Note that defining this font automatically defines the 
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 LabelFont
17577 \end_layout
17578
17579 \end_inset
17580
17581  to the same value, so define this first and define 
17582 \begin_inset Flex Code
17583 status collapsed
17584
17585 \begin_layout Plain Layout
17586 LabelFont
17587 \end_layout
17588
17589 \end_inset
17590
17591  later if you want them to be different.
17592 \end_layout
17593
17594 \begin_layout Description
17595 \begin_inset Flex Code
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 FixedWidthPreambleEncoding
17600 \end_layout
17601
17602 \end_inset
17603
17604  [
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609
17610 \emph on
17611 0
17612 \end_layout
17613
17614 \end_inset
17615
17616 ,
17617 \begin_inset space \thinspace{}
17618 \end_inset
17619
17620
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 1
17626 \end_layout
17627
17628 \end_inset
17629
17630 ] Force a fixed width encoding for the translated contents of 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 BabelPreamble
17636 \end_layout
17637
17638 \end_inset
17639
17640  and 
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 LangPreamble
17646 \end_layout
17647
17648 \end_inset
17649
17650  code generated by this layout.
17651  This is needed for special \SpecialChar LaTeX
17652 -packages like 
17653 \family typewriter
17654 listings
17655 \family default
17656  that do not work with variable width encodings such as 
17657 \family sans
17658 utf8
17659 \family default
17660 .
17661  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
17662  backends such as Xe\SpecialChar TeX
17663  or
17664  Lua\SpecialChar TeX
17665  are used.
17666 \end_layout
17667
17668 \begin_layout Description
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 ForceLocalFontSwitch
17674 \end_layout
17675
17676 \end_inset
17677
17678  [
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683
17684 \emph on
17685 0
17686 \end_layout
17687
17688 \end_inset
17689
17690 ,
17691 \begin_inset space \thinspace{}
17692 \end_inset
17693
17694
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 1
17700 \end_layout
17701
17702 \end_inset
17703
17704 ] When using babel, always use a local font switch (
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709
17710 \backslash
17711 foreignlanguage
17712 \end_layout
17713
17714 \end_inset
17715
17716 ), never a global one (such as 
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721
17722 \backslash
17723 selectlanguage
17724 \end_layout
17725
17726 \end_inset
17727
17728 ).
17729 \end_layout
17730
17731 \begin_layout Description
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 ForceLTR
17737 \end_layout
17738
17739 \end_inset
17740
17741  [
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746
17747 \emph on
17748 0
17749 \end_layout
17750
17751 \end_inset
17752
17753 ,
17754 \begin_inset space \thinspace{}
17755 \end_inset
17756
17757
17758 \begin_inset Flex Code
17759 status collapsed
17760
17761 \begin_layout Plain Layout
17762 1
17763 \end_layout
17764
17765 \end_inset
17766
17767 ] Force the 
17768 \begin_inset Quotes eld
17769 \end_inset
17770
17771 latex
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775  language, leading to Left-to-Right (Latin) output, e.
17776 \begin_inset space \thinspace{}
17777 \end_inset
17778
17779 g.
17780 \begin_inset space \space{}
17781 \end_inset
17782
17783 in \SpecialChar TeX
17784  code or URL.
17785  A kludge.
17786 \end_layout
17787
17788 \begin_layout Description
17789 \begin_inset Flex Code
17790 status collapsed
17791
17792 \begin_layout Plain Layout
17793 ForceOwnlines
17794 \end_layout
17795
17796 \end_inset
17797
17798  [
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803
17804 \emph on
17805 0
17806 \end_layout
17807
17808 \end_inset
17809
17810 ,
17811 \begin_inset space \thinspace{}
17812 \end_inset
17813
17814
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 1
17820 \end_layout
17821
17822 \end_inset
17823
17824 ] Force a a line break in the \SpecialChar LaTeX
17825  output before the inset starts and after
17826  the inset ends.
17827  This assures the inset itself is output on its own lines, for parsing purposes.
17828 \end_layout
17829
17830 \begin_layout Description
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 ForcePlain
17836 \end_layout
17837
17838 \end_inset
17839
17840  [
17841 \begin_inset Flex Code
17842 status collapsed
17843
17844 \begin_layout Plain Layout
17845
17846 \emph on
17847 0
17848 \end_layout
17849
17850 \end_inset
17851
17852 ,
17853 \begin_inset space \thinspace{}
17854 \end_inset
17855
17856
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 1
17862 \end_layout
17863
17864 \end_inset
17865
17866 ] Indicates whether the 
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 PlainLayout
17872 \end_layout
17873
17874 \end_inset
17875
17876  should be used or, instead, the user can change the paragraph style used
17877  in the inset.
17878  Default is false.
17879 \end_layout
17880
17881 \begin_layout Description
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 FreeSpacing
17887 \end_layout
17888
17889 \end_inset
17890
17891  [
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896
17897 \emph on
17898 0
17899 \end_layout
17900
17901 \end_inset
17902
17903 ,
17904 \begin_inset space \thinspace{}
17905 \end_inset
17906
17907
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 1
17913 \end_layout
17914
17915 \end_inset
17916
17917 ] As with paragraph styles, see 
17918 \begin_inset CommandInset ref
17919 LatexCommand ref
17920 reference "subsec:Paragraph-Styles"
17921
17922 \end_inset
17923
17924 .
17925 \end_layout
17926
17927 \begin_layout Description
17928 \begin_inset Flex Code
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 HTML*
17933 \end_layout
17934
17935 \end_inset
17936
17937  These tags control the XHTML output.
17938  See 
17939 \begin_inset CommandInset ref
17940 LatexCommand ref
17941 reference "sec:Tags-for-XHTML"
17942
17943 \end_inset
17944
17945 .
17946 \end_layout
17947
17948 \begin_layout Description
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 InToc
17954 \end_layout
17955
17956 \end_inset
17957
17958  [
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963
17964 \emph on
17965 0
17966 \end_layout
17967
17968 \end_inset
17969
17970 ,
17971 \begin_inset space \thinspace{}
17972 \end_inset
17973
17974
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 1
17980 \end_layout
17981
17982 \end_inset
17983
17984 ] Whether to include the contents of this inset in the strings generated
17985  for the `Outline' pane.
17986  One would not, for example, want the content of a footnote in a section
17987  header to be included in the TOC displayed in the outline, but one would
17988  normally want the content of a character style displayed.
17989  Default is false: not to include.
17990 \end_layout
17991
17992 \begin_layout Description
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 KeepEmpty
17998 \end_layout
17999
18000 \end_inset
18001
18002  [
18003 \emph on
18004
18005 \begin_inset Flex Code
18006 status collapsed
18007
18008 \begin_layout Plain Layout
18009 0
18010 \end_layout
18011
18012 \end_inset
18013
18014
18015 \emph default
18016 ,
18017 \begin_inset space \thinspace{}
18018 \end_inset
18019
18020
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 1
18026 \end_layout
18027
18028 \end_inset
18029
18030 ] As with paragraph styles, see 
18031 \begin_inset CommandInset ref
18032 LatexCommand ref
18033 reference "subsec:Paragraph-Styles"
18034
18035 \end_inset
18036
18037 .
18038 \end_layout
18039
18040 \begin_layout Description
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045 LabelFont
18046 \end_layout
18047
18048 \end_inset
18049
18050  The font used for the label.
18051  See 
18052 \begin_inset CommandInset ref
18053 LatexCommand ref
18054 reference "subsec:Font-description"
18055
18056 \end_inset
18057
18058 .
18059  Note that this definition can never appear before 
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 Font
18065 \end_layout
18066
18067 \end_inset
18068
18069 , lest it be ineffective.
18070 \end_layout
18071
18072 \begin_layout Description
18073 \begin_inset Flex Code
18074 status collapsed
18075
18076 \begin_layout Plain Layout
18077 LabelString
18078 \end_layout
18079
18080 \end_inset
18081
18082  [
18083 \begin_inset Flex Code
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087 string
18088 \end_layout
18089
18090 \end_inset
18091
18092 =
18093 \begin_inset Quotes erd
18094 \end_inset
18095
18096
18097 \begin_inset Quotes erd
18098 \end_inset
18099
18100 ] What will be displayed on the button or elsewhere as the inset label.
18101  Some inset types (
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106 \SpecialChar TeX
18107  code
18108 \end_layout
18109
18110 \end_inset
18111
18112  and 
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 Branch
18118 \end_layout
18119
18120 \end_inset
18121
18122 ) modify this label on the fly.
18123 \end_layout
18124
18125 \begin_layout Description
18126 \begin_inset Flex Code
18127 status collapsed
18128
18129 \begin_layout Plain Layout
18130 LangPreamble
18131 \end_layout
18132
18133 \end_inset
18134
18135  Language dependent preamble; see 
18136 \begin_inset CommandInset ref
18137 LatexCommand ref
18138 reference "subsec:I18n"
18139
18140 \end_inset
18141
18142 .
18143 \end_layout
18144
18145 \begin_layout Description
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 LatexName
18151 \end_layout
18152
18153 \end_inset
18154
18155  [
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 <name>
18161 \end_layout
18162
18163 \end_inset
18164
18165 ] The name of the corresponding \SpecialChar LaTeX
18166  stuff.
18167  Either the environment or command name.
18168 \end_layout
18169
18170 \begin_layout Description
18171 \begin_inset Flex Code
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 LatexParam
18176 \end_layout
18177
18178 \end_inset
18179
18180  [
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 <parameter>
18186 \end_layout
18187
18188 \end_inset
18189
18190 ] The optional parameter for the corresponding 
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 LatexName
18196 \end_layout
18197
18198 \end_inset
18199
18200  stuff, including possible bracket pairs like 
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 []
18206 \end_layout
18207
18208 \end_inset
18209
18210 .
18211  This parameter cannot be changed from within \SpecialChar LyX
18212  (use 
18213 \begin_inset Flex Code
18214 status collapsed
18215
18216 \begin_layout Plain Layout
18217 Argument
18218 \end_layout
18219
18220 \end_inset
18221
18222  for customizable parameters).
18223  It will be output as is after all \SpecialChar LaTeX
18224  
18225 \begin_inset Flex Code
18226 status collapsed
18227
18228 \begin_layout Plain Layout
18229 Argument
18230 \end_layout
18231
18232 \end_inset
18233
18234 s.
18235 \end_layout
18236
18237 \begin_layout Description
18238 \begin_inset Flex Code
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 LatexType
18243 \end_layout
18244
18245 \end_inset
18246
18247  [
18248 \begin_inset Flex Code
18249 status collapsed
18250
18251 \begin_layout Plain Layout
18252 Command, Environment, None
18253 \end_layout
18254
18255 \end_inset
18256
18257 ] How the style should be translated into \SpecialChar LaTeX
18258 .
18259 \begin_inset Foot
18260 status collapsed
18261
18262 \begin_layout Plain Layout
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 LatexType
18268 \end_layout
18269
18270 \end_inset
18271
18272  is perhaps a bit misleading, since these rules apply to SGML classes too.
18273  Visit the SGML class files for specific examples.
18274 \end_layout
18275
18276 \end_inset
18277
18278
18279 \begin_inset Separator parbreak
18280 \end_inset
18281
18282
18283 \end_layout
18284
18285 \begin_deeper
18286 \begin_layout Description
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 None
18292 \end_layout
18293
18294 \end_inset
18295
18296  means nothing special
18297 \end_layout
18298
18299 \begin_layout Description
18300 \begin_inset Flex Code
18301 status collapsed
18302
18303 \begin_layout Plain Layout
18304 Command
18305 \end_layout
18306
18307 \end_inset
18308
18309  means 
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314
18315 \backslash
18316
18317 \emph on
18318 LatexName
18319 \emph default
18320 {\SpecialChar ldots
18321 }
18322 \end_layout
18323
18324 \end_inset
18325
18326
18327 \end_layout
18328
18329 \begin_layout Description
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 Environment
18335 \end_layout
18336
18337 \end_inset
18338
18339  means 
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344
18345 \backslash
18346 begin{
18347 \emph on
18348 LatexName
18349 \emph default
18350 }\SpecialChar ldots
18351
18352 \backslash
18353 end{
18354 \emph on
18355 LatexName
18356 \emph default
18357 }
18358 \end_layout
18359
18360 \end_inset
18361
18362
18363 \end_layout
18364
18365 \begin_layout Standard
18366 Putting the last few things together, the \SpecialChar LaTeX
18367  output will be either: 
18368 \end_layout
18369
18370 \begin_layout LyX-Code
18371
18372 \backslash
18373 LatexName[LatexParam]{\SpecialChar ldots
18374 }
18375 \end_layout
18376
18377 \begin_layout Standard
18378 or: 
18379 \end_layout
18380
18381 \begin_layout LyX-Code
18382
18383 \backslash
18384 begin{LatexName}[LatexParam] \SpecialChar ldots
18385  
18386 \backslash
18387 end{LatexName}
18388 \end_layout
18389
18390 \begin_layout Standard
18391 depending upon the \SpecialChar LaTeX
18392  type.
18393 \end_layout
18394
18395 \end_deeper
18396 \begin_layout Description
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 LeftDelim
18402 \end_layout
18403
18404 \end_inset
18405
18406  [
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 string
18412 \end_layout
18413
18414 \end_inset
18415
18416 ] A string that is put at the beginning of the layout content.
18417  A line break in the output can be indicated by 
18418 \begin_inset Flex Code
18419 status collapsed
18420
18421 \begin_layout Plain Layout
18422 <br/>
18423 \end_layout
18424
18425 \end_inset
18426
18427 .
18428 \end_layout
18429
18430 \begin_layout Description
18431 \begin_inset Flex Code
18432 status collapsed
18433
18434 \begin_layout Plain Layout
18435 LyxType
18436 \end_layout
18437
18438 \end_inset
18439
18440  Can be 
18441 \begin_inset Flex Code
18442 status collapsed
18443
18444 \begin_layout Plain Layout
18445 charstyle
18446 \end_layout
18447
18448 \end_inset
18449
18450
18451 \begin_inset Flex Code
18452 status collapsed
18453
18454 \begin_layout Plain Layout
18455 custom
18456 \end_layout
18457
18458 \end_inset
18459
18460
18461 \begin_inset Flex Code
18462 status collapsed
18463
18464 \begin_layout Plain Layout
18465 element
18466 \end_layout
18467
18468 \end_inset
18469
18470  or 
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 end
18476 \end_layout
18477
18478 \end_inset
18479
18480  (indicating a dummy definition ending definitions of charstyles, etc).
18481  This entry is required in and is only meaningful for Flex insets.
18482  Among other things, it determines on which menu this inset will appear.
18483  Setting 
18484 \begin_inset Flex Code
18485 status collapsed
18486
18487 \begin_layout Plain Layout
18488 LyXType
18489 \end_layout
18490
18491 \end_inset
18492
18493  to 
18494 \begin_inset Flex Code
18495 status collapsed
18496
18497 \begin_layout Plain Layout
18498 charstyle
18499 \end_layout
18500
18501 \end_inset
18502
18503  will automatically set 
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508 MultiPar
18509 \end_layout
18510
18511 \end_inset
18512
18513  to false.
18514  
18515 \begin_inset Flex Code
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 MultiPar
18520 \end_layout
18521
18522 \end_inset
18523
18524  can be set to true for 
18525 \begin_inset Flex Code
18526 status collapsed
18527
18528 \begin_layout Plain Layout
18529 charstyle
18530 \end_layout
18531
18532 \end_inset
18533
18534  insets by setting it 
18535 \emph on
18536 after
18537 \emph default
18538  you set the 
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 LyXType
18544 \end_layout
18545
18546 \end_inset
18547
18548 .
18549 \end_layout
18550
18551 \begin_layout Description
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556 MultiPar
18557 \end_layout
18558
18559 \end_inset
18560
18561  [
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566
18567 \emph on
18568 0
18569 \end_layout
18570
18571 \end_inset
18572
18573 ,
18574 \begin_inset space \thinspace{}
18575 \end_inset
18576
18577
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 1
18583 \end_layout
18584
18585 \end_inset
18586
18587 ] Whether multiple paragraphs are permitted in this inset.
18588  This will also set 
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 CustomPars
18594 \end_layout
18595
18596 \end_inset
18597
18598  to the same value and 
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603 ForcePlain
18604 \end_layout
18605
18606 \end_inset
18607
18608  to the opposite value.
18609  These can be reset to other values, if they are used 
18610 \emph on
18611 after
18612 \emph default
18613  
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 MultiPar
18619 \end_layout
18620
18621 \end_inset
18622
18623 .
18624  Default is true.
18625 \end_layout
18626
18627 \begin_layout Description
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 NeedProtect
18633 \end_layout
18634
18635 \end_inset
18636
18637  [
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642
18643 \emph on
18644 0
18645 \end_layout
18646
18647 \end_inset
18648
18649 ,
18650 \begin_inset space \thinspace{}
18651 \end_inset
18652
18653
18654 \begin_inset Flex Code
18655 status collapsed
18656
18657 \begin_layout Plain Layout
18658 1
18659 \end_layout
18660
18661 \end_inset
18662
18663 ] Whether fragile commands in this inset should be 
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668
18669 \backslash
18670 protect
18671 \end_layout
18672
18673 \end_inset
18674
18675 'ed.
18676  (Note: This is 
18677 \emph on
18678 not
18679 \emph default
18680  whether the command should itself be protected.) Default is false.
18681 \end_layout
18682
18683 \begin_layout Description
18684 \begin_inset Flex Code
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688 NoInsetLayout
18689 \end_layout
18690
18691 \end_inset
18692
18693  [
18694 \begin_inset Flex Code
18695 status collapsed
18696
18697 \begin_layout Plain Layout
18698 <layout>
18699 \end_layout
18700
18701 \end_inset
18702
18703 ] Deletes an existing 
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 InsetLayout
18709 \end_layout
18710
18711 \end_inset
18712
18713 .
18714 \end_layout
18715
18716 \begin_layout Description
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721 ObsoletedBy
18722 \end_layout
18723
18724 \end_inset
18725
18726  [
18727 \begin_inset Flex Code
18728 status collapsed
18729
18730 \begin_layout Plain Layout
18731 <layout>
18732 \end_layout
18733
18734 \end_inset
18735
18736 ] Name of an 
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741 InsetLayout
18742 \end_layout
18743
18744 \end_inset
18745
18746  that has replaced this 
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 InsetLayout
18752 \end_layout
18753
18754 \end_inset
18755
18756 .
18757  This is used to rename an 
18758 \begin_inset Flex Code
18759 status collapsed
18760
18761 \begin_layout Plain Layout
18762 InsetLayout
18763 \end_layout
18764
18765 \end_inset
18766
18767 , while keeping backward compatibility.
18768 \end_layout
18769
18770 \begin_layout Description
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 ParbreakIsNewline
18776 \end_layout
18777
18778 \end_inset
18779
18780  [
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785
18786 \emph on
18787 0
18788 \end_layout
18789
18790 \end_inset
18791
18792 ,
18793 \begin_inset space \thinspace{}
18794 \end_inset
18795
18796
18797 \begin_inset Flex Code
18798 status collapsed
18799
18800 \begin_layout Plain Layout
18801 1
18802 \end_layout
18803
18804 \end_inset
18805
18806 ] As with paragraph styles, see 
18807 \begin_inset CommandInset ref
18808 LatexCommand ref
18809 reference "subsec:Paragraph-Styles"
18810
18811 \end_inset
18812
18813 .
18814  Default is false.
18815 \end_layout
18816
18817 \begin_layout Description
18818 \begin_inset Flex Code
18819 status collapsed
18820
18821 \begin_layout Plain Layout
18822 PassThru
18823 \end_layout
18824
18825 \end_inset
18826
18827  [
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832
18833 \emph on
18834 0
18835 \end_layout
18836
18837 \end_inset
18838
18839 ,
18840 \begin_inset space \thinspace{}
18841 \end_inset
18842
18843
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 1
18849 \end_layout
18850
18851 \end_inset
18852
18853 ] As with paragraph styles, see 
18854 \begin_inset CommandInset ref
18855 LatexCommand ref
18856 reference "subsec:Paragraph-Styles"
18857
18858 \end_inset
18859
18860 .
18861  Default is false.
18862 \end_layout
18863
18864 \begin_layout Description
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 Preamble
18870 \end_layout
18871
18872 \end_inset
18873
18874  As with paragraph styles, see 
18875 \begin_inset CommandInset ref
18876 LatexCommand ref
18877 reference "subsec:Paragraph-Styles"
18878
18879 \end_inset
18880
18881 .
18882 \end_layout
18883
18884 \begin_layout Description
18885 \begin_inset Flex Code
18886 status collapsed
18887
18888 \begin_layout Plain Layout
18889 RefPrefix
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 ] The prefix to use when creating labels referring to insets of this type.
18905  This allows the use of formatted references.
18906 \end_layout
18907
18908 \begin_layout Description
18909 \begin_inset Flex Code
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 Requires
18914 \end_layout
18915
18916 \end_inset
18917
18918  [
18919 \begin_inset Flex Code
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 string
18924 \end_layout
18925
18926 \end_inset
18927
18928 ] As with paragraph styles, see 
18929 \begin_inset CommandInset ref
18930 LatexCommand ref
18931 reference "subsec:Paragraph-Styles"
18932
18933 \end_inset
18934
18935 .
18936 \end_layout
18937
18938 \begin_layout Description
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 ResetArgs
18944 \end_layout
18945
18946 \end_inset
18947
18948  [
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953
18954 \emph on
18955 0
18956 \end_layout
18957
18958 \end_inset
18959
18960 ,
18961 \begin_inset space \thinspace{}
18962 \end_inset
18963
18964
18965 \begin_inset Flex Code
18966 status collapsed
18967
18968 \begin_layout Plain Layout
18969 1
18970 \end_layout
18971
18972 \end_inset
18973
18974 ] Resets the \SpecialChar LaTeX
18975  arguments of this layout (as defined via the 
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 Argument
18981 \end_layout
18982
18983 \end_inset
18984
18985  tag).
18986  This is useful if you have copied a style via 
18987 \begin_inset Flex Code
18988 status collapsed
18989
18990 \begin_layout Plain Layout
18991 CopyStyle
18992 \end_layout
18993
18994 \end_inset
18995
18996 , but you do not want to inherit its (required and optional) arguments.
18997 \end_layout
18998
18999 \begin_layout Description
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 ResetsFont
19005 \end_layout
19006
19007 \end_inset
19008
19009  [
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 0
19015 \end_layout
19016
19017 \end_inset
19018
19019 ,
19020 \begin_inset space \thinspace{}
19021 \end_inset
19022
19023
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028
19029 \emph on
19030 1
19031 \end_layout
19032
19033 \end_inset
19034
19035 ] Whether this inset should use the font of its surrounding environment
19036  or uses its own.
19037  Default is false: use the font of the surrounding environment.
19038 \end_layout
19039
19040 \begin_layout Description
19041 \begin_inset Flex Code
19042 status collapsed
19043
19044 \begin_layout Plain Layout
19045 RightDelim
19046 \end_layout
19047
19048 \end_inset
19049
19050  [
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 string
19056 \end_layout
19057
19058 \end_inset
19059
19060 ] A string that is put at the end of the layout content.
19061  A line break in the output can be indicated by 
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066 <br/>
19067 \end_layout
19068
19069 \end_inset
19070
19071 .
19072 \end_layout
19073
19074 \begin_layout Description
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 Spellcheck
19080 \end_layout
19081
19082 \end_inset
19083
19084  [
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 0
19090 \end_layout
19091
19092 \end_inset
19093
19094 ,
19095 \begin_inset space \thinspace{}
19096 \end_inset
19097
19098
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103
19104 \emph on
19105 1
19106 \end_layout
19107
19108 \end_inset
19109
19110 ] Allow spell-checking the contents of this inset.
19111  Default is true.
19112 \end_layout
19113
19114 \begin_layout Subsection
19115 Counters
19116 \begin_inset CommandInset label
19117 LatexCommand label
19118 name "subsec:Counters"
19119
19120 \end_inset
19121
19122
19123 \end_layout
19124
19125 \begin_layout Standard
19126 It is necessary to define the counters (
19127 \begin_inset Flex Noun
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 chapter
19132 \end_layout
19133
19134 \end_inset
19135
19136
19137 \begin_inset Flex Noun
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 figure
19142 \end_layout
19143
19144 \end_inset
19145
19146 , \SpecialChar ldots
19147 ) in the text class itself.
19148  The standard counters are defined in the file 
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 stdcounters.inc
19154 \end_layout
19155
19156 \end_inset
19157
19158 , so you may have to do no more than add
19159 \end_layout
19160
19161 \begin_layout LyX-Code
19162 Input stdcounters.inc
19163 \end_layout
19164
19165 \begin_layout Standard
19166 to your layout file to get them to work.
19167  But if you want to define custom counters, then you can do so.
19168  The counter declaration must begin with:
19169 \end_layout
19170
19171 \begin_layout LyX-Code
19172 Counter CounterName
19173 \end_layout
19174
19175 \begin_layout Standard
19176 where of course `
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 CounterName
19182 \end_layout
19183
19184 \end_inset
19185
19186 ' is replaced by the name of the counter.
19187  And it must end with 
19188 \begin_inset Quotes eld
19189 \end_inset
19190
19191
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 End
19197 \end_layout
19198
19199 \end_inset
19200
19201
19202 \begin_inset Quotes erd
19203 \end_inset
19204
19205 .
19206  The following parameters can also be used:
19207 \end_layout
19208
19209 \begin_layout Description
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 InitialValue
19215 \end_layout
19216
19217 \end_inset
19218
19219  [
19220 \begin_inset Flex Code
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 int=1
19225 \end_layout
19226
19227 \end_inset
19228
19229 ] Sets the initial value for the counter, to which it will be reset whenever
19230  that happens.
19231  Normally, one will want the default, 1.
19232 \end_layout
19233
19234 \begin_layout Description
19235 \begin_inset Flex Code
19236 status collapsed
19237
19238 \begin_layout Plain Layout
19239 LabelString
19240 \end_layout
19241
19242 \end_inset
19243
19244  [
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 string
19250 \end_layout
19251
19252 \end_inset
19253
19254 =
19255 \begin_inset Quotes erd
19256 \end_inset
19257
19258
19259 \begin_inset Quotes erd
19260 \end_inset
19261
19262 ] When defined, this string defines how the counter is displayed.
19263  Setting this value sets 
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 LabelStringAppendix
19269 \end_layout
19270
19271 \end_inset
19272
19273  to the same value.
19274  The following special constructs can be used in the string:
19275 \begin_inset Separator parbreak
19276 \end_inset
19277
19278
19279 \end_layout
19280
19281 \begin_deeper
19282 \begin_layout Itemize
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287
19288 \backslash
19289 thecounter
19290 \end_layout
19291
19292 \end_inset
19293
19294  will be replaced by the expansion of the 
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 LabelString
19300 \end_layout
19301
19302 \end_inset
19303
19304  (or 
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 LabelStringAppendix
19310 \end_layout
19311
19312 \end_inset
19313
19314 ) of the counter 
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 counter
19320 \end_layout
19321
19322 \end_inset
19323
19324 .
19325  
19326 \end_layout
19327
19328 \begin_layout Itemize
19329 counter values can be expressed using \SpecialChar LaTeX
19330 -like macros
19331 \begin_inset Newline newline
19332 \end_inset
19333
19334
19335 \begin_inset Flex Code
19336 status collapsed
19337
19338 \begin_layout Plain Layout
19339
19340 \backslash
19341
19342 \emph on
19343 numbertype
19344 \emph default
19345 {
19346 \emph on
19347 counter
19348 \emph default
19349 }
19350 \end_layout
19351
19352 \end_inset
19353
19354 , where 
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359
19360 \emph on
19361 numbertype
19362 \end_layout
19363
19364 \end_inset
19365
19366  can be:
19367 \begin_inset Foot
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371
19372 \family roman
19373 \series medium
19374 \shape up
19375 \size normal
19376 \emph off
19377 \bar no
19378 \noun off
19379 \color none
19380 Actually, the situation is a bit more complicated: any
19381 \family default
19382 \series default
19383 \shape default
19384 \emph default
19385 \bar default
19386  
19387 \size default
19388 \emph on
19389 \noun default
19390 \color inherit
19391 numbertype
19392 \family roman
19393 \series medium
19394 \shape up
19395 \size normal
19396 \emph off
19397 \bar no
19398 \noun off
19399  other than those described below will produce arabic numerals.
19400  It would not be surprising to see this change in the future.
19401 \end_layout
19402
19403 \end_inset
19404
19405  
19406 \begin_inset Flex Code
19407 status collapsed
19408
19409 \begin_layout Plain Layout
19410 arabic
19411 \end_layout
19412
19413 \end_inset
19414
19415 : 1, 2, 3,\SpecialChar ldots
19416
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 alph
19422 \end_layout
19423
19424 \end_inset
19425
19426  for lower-case letters: a, b, c, \SpecialChar ldots
19427
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 Alph
19433 \end_layout
19434
19435 \end_inset
19436
19437  for upper-case letters: A, B, C, \SpecialChar ldots
19438
19439 \begin_inset Flex Code
19440 status collapsed
19441
19442 \begin_layout Plain Layout
19443 roman
19444 \end_layout
19445
19446 \end_inset
19447
19448  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19449
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454 Roman
19455 \end_layout
19456
19457 \end_inset
19458
19459  for upper-case roman numerals: I, II, III\SpecialChar ldots
19460
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 hebrew
19466 \end_layout
19467
19468 \end_inset
19469
19470  for hebrew numerals.
19471 \end_layout
19472
19473 \end_deeper
19474 \begin_layout Standard
19475 If LabelString is not defined, a default value is constructed as follows:
19476  if the counter has a master counter 
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481 master
19482 \end_layout
19483
19484 \end_inset
19485
19486  (defined via 
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 Within
19492 \end_layout
19493
19494 \end_inset
19495
19496 ), the string
19497 \begin_inset Newline newline
19498 \end_inset
19499
19500
19501 \begin_inset Flex Code
19502 status collapsed
19503
19504 \begin_layout Plain Layout
19505
19506 \backslash
19507 themaster.
19508 \backslash
19509 arabic{counter}
19510 \end_layout
19511
19512 \end_inset
19513
19514  is used; otherwise the string 
19515 \begin_inset Flex Code
19516 status collapsed
19517
19518 \begin_layout Plain Layout
19519
19520 \backslash
19521 arabic{counter}
19522 \end_layout
19523
19524 \end_inset
19525
19526  is used.
19527 \end_layout
19528
19529 \begin_layout Description
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 LabelStringAppendix
19535 \end_layout
19536
19537 \end_inset
19538
19539  [
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544 string
19545 \end_layout
19546
19547 \end_inset
19548
19549 =
19550 \begin_inset Quotes erd
19551 \end_inset
19552
19553
19554 \begin_inset Quotes erd
19555 \end_inset
19556
19557 ] Same as 
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 LabelString
19563 \end_layout
19564
19565 \end_inset
19566
19567 , but for use in the Appendix.
19568 \end_layout
19569
19570 \begin_layout Description
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 PrettyFormat
19576 \end_layout
19577
19578 \end_inset
19579
19580  [
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 string
19586 \end_layout
19587
19588 \end_inset
19589
19590 =
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594
19595 \begin_inset Quotes erd
19596 \end_inset
19597
19598 ] A format for use with formatted references to this counter.
19599  For example, one might want to have references to section numbers appear
19600  as 
19601 \begin_inset Quotes eld
19602 \end_inset
19603
19604 Section 2.4
19605 \begin_inset Quotes erd
19606 \end_inset
19607
19608 .
19609  The string should contain 
19610 \begin_inset Quotes eld
19611 \end_inset
19612
19613 ##
19614 \begin_inset Quotes erd
19615 \end_inset
19616
19617 .
19618  This will be replaced by the counter number itself.
19619  So, for sections, it would be: Section ##.
19620 \end_layout
19621
19622 \begin_layout Description
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 Within
19628 \end_layout
19629
19630 \end_inset
19631
19632  [
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 string
19638 \end_layout
19639
19640 \end_inset
19641
19642 =
19643 \begin_inset Quotes erd
19644 \end_inset
19645
19646
19647 \begin_inset Quotes erd
19648 \end_inset
19649
19650 ] If this is set to the name of another counter, the present counter will
19651  be reset every time the other one is increased.
19652  For example, 
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 subsection
19658 \end_layout
19659
19660 \end_inset
19661
19662  is numbered inside 
19663 \begin_inset Flex Code
19664 status collapsed
19665
19666 \begin_layout Plain Layout
19667 section
19668 \end_layout
19669
19670 \end_inset
19671
19672 .
19673 \end_layout
19674
19675 \begin_layout Subsection
19676 Font description
19677 \begin_inset CommandInset label
19678 LatexCommand label
19679 name "subsec:Font-description"
19680
19681 \end_inset
19682
19683
19684 \end_layout
19685
19686 \begin_layout Standard
19687 A font description looks like this:
19688 \end_layout
19689
19690 \begin_layout LyX-Code
19691 Font 
19692 \family roman
19693 \emph on
19694 or
19695 \family default
19696 \emph default
19697  LabelFont
19698 \emph on
19699  or
19700 \emph default
19701  DefaultFont
19702 \end_layout
19703
19704 \begin_layout LyX-Code
19705  ...
19706 \end_layout
19707
19708 \begin_layout LyX-Code
19709 EndFont
19710 \end_layout
19711
19712 \begin_layout Standard
19713 The following commands are available:
19714 \end_layout
19715
19716 \begin_layout Description
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 Color
19722 \end_layout
19723
19724 \end_inset
19725
19726  [
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731
19732 \emph on
19733 none
19734 \end_layout
19735
19736 \end_inset
19737
19738
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 black
19744 \end_layout
19745
19746 \end_inset
19747
19748
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 white
19754 \end_layout
19755
19756 \end_inset
19757
19758
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 red
19764 \end_layout
19765
19766 \end_inset
19767
19768
19769 \begin_inset Flex Code
19770 status collapsed
19771
19772 \begin_layout Plain Layout
19773 green
19774 \end_layout
19775
19776 \end_inset
19777
19778
19779 \begin_inset Flex Code
19780 status collapsed
19781
19782 \begin_layout Plain Layout
19783 blue
19784 \end_layout
19785
19786 \end_inset
19787
19788
19789 \begin_inset Flex Code
19790 status collapsed
19791
19792 \begin_layout Plain Layout
19793 cyan
19794 \end_layout
19795
19796 \end_inset
19797
19798
19799 \begin_inset Flex Code
19800 status collapsed
19801
19802 \begin_layout Plain Layout
19803 magenta
19804 \end_layout
19805
19806 \end_inset
19807
19808
19809 \begin_inset Flex Code
19810 status collapsed
19811
19812 \begin_layout Plain Layout
19813 yellow
19814 \end_layout
19815
19816 \end_inset
19817
19818
19819 \begin_inset Flex Code
19820 status collapsed
19821
19822 \begin_layout Plain Layout
19823 brown
19824 \end_layout
19825
19826 \end_inset
19827
19828
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 darkgray
19834 \end_layout
19835
19836 \end_inset
19837
19838
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 gray
19844 \end_layout
19845
19846 \end_inset
19847
19848
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 lightgray
19854 \end_layout
19855
19856 \end_inset
19857
19858
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 lime
19864 \end_layout
19865
19866 \end_inset
19867
19868
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 orange
19874 \end_layout
19875
19876 \end_inset
19877
19878
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 olive
19884 \end_layout
19885
19886 \end_inset
19887
19888
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 pink
19894 \end_layout
19895
19896 \end_inset
19897
19898
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 purple
19904 \end_layout
19905
19906 \end_inset
19907
19908
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913 teal
19914 \end_layout
19915
19916 \end_inset
19917
19918
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 violet
19924 \end_layout
19925
19926 \end_inset
19927
19928 ]
19929 \end_layout
19930
19931 \begin_layout Description
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 Family
19937 \end_layout
19938
19939 \end_inset
19940
19941  [
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946
19947 \emph on
19948 Roman
19949 \end_layout
19950
19951 \end_inset
19952
19953
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 Sans
19959 \end_layout
19960
19961 \end_inset
19962
19963
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 Typewriter
19969 \end_layout
19970
19971 \end_inset
19972
19973 ]
19974 \end_layout
19975
19976 \begin_layout Description
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 Misc
19982 \end_layout
19983
19984 \end_inset
19985
19986  [
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 string
19992 \end_layout
19993
19994 \end_inset
19995
19996 ] Valid arguments are: 
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 emph
20002 \end_layout
20003
20004 \end_inset
20005
20006
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 noun
20012 \end_layout
20013
20014 \end_inset
20015
20016
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 strikeout
20022 \end_layout
20023
20024 \end_inset
20025
20026
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 underbar
20032 \end_layout
20033
20034 \end_inset
20035
20036
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 uuline
20042 \end_layout
20043
20044 \end_inset
20045
20046
20047 \begin_inset Flex Code
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051 uwave
20052 \end_layout
20053
20054 \end_inset
20055
20056
20057 \begin_inset Flex Code
20058 status collapsed
20059
20060 \begin_layout Plain Layout
20061 no_emph
20062 \end_layout
20063
20064 \end_inset
20065
20066
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 no_noun
20072 \end_layout
20073
20074 \end_inset
20075
20076
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 no_strikeout
20082 \end_layout
20083
20084 \end_inset
20085
20086
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 no_bar
20092 \end_layout
20093
20094 \end_inset
20095
20096
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 no_uuline
20102 \end_layout
20103
20104 \end_inset
20105
20106  and 
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 no_uwave
20112 \end_layout
20113
20114 \end_inset
20115
20116 .
20117  Each of these turns on or off the corresponding attribute.
20118  For example, 
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 emph
20124 \end_layout
20125
20126 \end_inset
20127
20128  turns on emphasis, and 
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 no_emph
20134 \end_layout
20135
20136 \end_inset
20137
20138  turns it off.
20139  
20140 \begin_inset Newline newline
20141 \end_inset
20142
20143 If the latter seems puzzling, remember that the font settings for the present
20144  context are generally inherited from the surrounding context.
20145  So 
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150 no_emph
20151 \end_layout
20152
20153 \end_inset
20154
20155  would turn off the emphasis that was anyway in effect, say, in a theorem
20156  environment.
20157 \end_layout
20158
20159 \begin_layout Description
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 Series
20165 \end_layout
20166
20167 \end_inset
20168
20169  [
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174
20175 \emph on
20176 Medium
20177 \end_layout
20178
20179 \end_inset
20180
20181
20182 \begin_inset Flex Code
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 Bold
20187 \end_layout
20188
20189 \end_inset
20190
20191
20192 \end_layout
20193
20194 \begin_layout Description
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 Shape
20200 \end_layout
20201
20202 \end_inset
20203
20204  [
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209
20210 \emph on
20211 Up
20212 \end_layout
20213
20214 \end_inset
20215
20216
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 Italic
20222 \end_layout
20223
20224 \end_inset
20225
20226
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 SmallCaps
20232 \end_layout
20233
20234 \end_inset
20235
20236
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 Slanted
20242 \end_layout
20243
20244 \end_inset
20245
20246
20247 \end_layout
20248
20249 \begin_layout Description
20250 \begin_inset Flex Code
20251 status collapsed
20252
20253 \begin_layout Plain Layout
20254 Size
20255 \end_layout
20256
20257 \end_inset
20258
20259  [
20260 \begin_inset Flex Code
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264 tiny
20265 \end_layout
20266
20267 \end_inset
20268
20269
20270 \begin_inset Flex Code
20271 status collapsed
20272
20273 \begin_layout Plain Layout
20274 small
20275 \end_layout
20276
20277 \end_inset
20278
20279
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284
20285 \emph on
20286 normal
20287 \end_layout
20288
20289 \end_inset
20290
20291
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 large
20297 \end_layout
20298
20299 \end_inset
20300
20301
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 larger
20307 \end_layout
20308
20309 \end_inset
20310
20311
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 largest
20317 \end_layout
20318
20319 \end_inset
20320
20321
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 huge
20327 \end_layout
20328
20329 \end_inset
20330
20331
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 giant
20337 \end_layout
20338
20339 \end_inset
20340
20341 ]
20342 \end_layout
20343
20344 \begin_layout Subsection
20345 \begin_inset CommandInset label
20346 LatexCommand label
20347 name "subsec:Citation-format-description"
20348
20349 \end_inset
20350
20351 Citation format description
20352 \end_layout
20353
20354 \begin_layout Standard
20355 The 
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 CiteFormat
20361 \end_layout
20362
20363 \end_inset
20364
20365  blocks are used to describe how bibliographic information should be displayed,
20366  both within \SpecialChar LyX
20367  itself (in the citation dialog and in tooltips, for example)
20368  and in XHTML output.
20369  Such a block might look like this:
20370 \end_layout
20371
20372 \begin_layout LyX-Code
20373 CiteFormat
20374 \end_layout
20375
20376 \begin_layout LyX-Code
20377  article ...
20378 \end_layout
20379
20380 \begin_layout LyX-Code
20381  book ...
20382 \end_layout
20383
20384 \begin_layout LyX-Code
20385 End
20386 \end_layout
20387
20388 \begin_layout Standard
20389 The individual lines define how the bibliographic information associated
20390  with an article or book, respectively, is to be displayed, and such a definitio
20391 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20392  file.
20393  \SpecialChar LyX
20394  defines a default format in the source code that will be used if no specific
20395  definition has been given.
20396  \SpecialChar LyX
20397  predefines several formats in the file 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 stdciteformats.inc
20403 \end_layout
20404
20405 \end_inset
20406
20407 , which is included in most of \SpecialChar LyX
20408 's document classes.
20409 \end_layout
20410
20411 \begin_layout Standard
20412 The definitions use a simple language that allows Bib\SpecialChar TeX
20413  keys to be replaced
20414  with their values.
20415  Keys should be enclosed in 
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 %
20421 \end_layout
20422
20423 \end_inset
20424
20425  signs, e.g.: 
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 %author%
20431 \end_layout
20432
20433 \end_inset
20434
20435 .
20436  So a simple definition might look like this:
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440 misc %author%, 
20441 \begin_inset Quotes eld
20442 \end_inset
20443
20444 %title%
20445 \begin_inset Quotes erd
20446 \end_inset
20447
20448 .
20449 \end_layout
20450
20451 \begin_layout Standard
20452 This would print the author, followed by a comma, followed by the title,
20453  in quotes, followed by a period.
20454 \end_layout
20455
20456 \begin_layout Standard
20457 Of course, sometimes you may want to print a key only if it exists.
20458  This can be done by using a conditional construction, such as: 
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 {%volume%[[vol.
20464 \begin_inset space ~
20465 \end_inset
20466
20467 %volume%]]}
20468 \end_layout
20469
20470 \end_inset
20471
20472 .
20473  This says: If the 
20474 \begin_inset Flex Code
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 volume
20479 \end_layout
20480
20481 \end_inset
20482
20483  key exists, then print 
20484 \begin_inset Quotes eld
20485 \end_inset
20486
20487 vol.
20488 \begin_inset space ~
20489 \end_inset
20490
20491
20492 \begin_inset Quotes erd
20493 \end_inset
20494
20495  followed by the volume key.
20496  It is also possible to have an else clause in the conditional, such as:
20497 \begin_inset Newline newline
20498 \end_inset
20499
20500
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 {%author%[[%author%]][[%editor%, ed.]]}
20506 \end_layout
20507
20508 \end_inset
20509
20510 .
20511 \begin_inset Newline newline
20512 \end_inset
20513
20514 Here, the 
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519 author
20520 \end_layout
20521
20522 \end_inset
20523
20524  key is printed if it exists; otherwise, the editor key is printed, followed
20525  by 
20526 \begin_inset Quotes eld
20527 \end_inset
20528
20529 ,
20530 \begin_inset space ~
20531 \end_inset
20532
20533 ed.
20534 \begin_inset Quotes erd
20535 \end_inset
20536
20537  Note that the key is again enclosed in 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 %
20543 \end_layout
20544
20545 \end_inset
20546
20547  signs; the entire conditional is enclosed in braces; and the if and else
20548  clauses are enclosed in double brackets, 
20549 \begin_inset Quotes eld
20550 \end_inset
20551
20552
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557 [[
20558 \end_layout
20559
20560 \end_inset
20561
20562
20563 \begin_inset Quotes eld
20564 \end_inset
20565
20566  and 
20567 \begin_inset Quotes eld
20568 \end_inset
20569
20570
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575 ]]
20576 \end_layout
20577
20578 \end_inset
20579
20580
20581 \begin_inset Quotes erd
20582 \end_inset
20583
20584 .
20585  There must be no space between any of these.
20586 \end_layout
20587
20588 \begin_layout Standard
20589 There is one other piece of syntax available in definitions, which looks
20590  like this: 
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 {!<i>!}
20596 \end_layout
20597
20598 \end_inset
20599
20600 .
20601  This defines a piece of formatting information that is to be used when
20602  creating 
20603 \begin_inset Quotes eld
20604 \end_inset
20605
20606 rich text
20607 \begin_inset Quotes erd
20608 \end_inset
20609
20610 .
20611  Obviously, we do not want to output HTML tags when writing plain text,
20612  so they should be wrapped in 
20613 \begin_inset Quotes eld
20614 \end_inset
20615
20616 {!
20617 \begin_inset Quotes erd
20618 \end_inset
20619
20620  and 
20621 \begin_inset Quotes eld
20622 \end_inset
20623
20624 !}
20625 \begin_inset Quotes erd
20626 \end_inset
20627
20628 .
20629 \end_layout
20630
20631 \begin_layout Standard
20632 Two special sorts of definitions are also possible in a 
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 CiteFormat
20638 \end_layout
20639
20640 \end_inset
20641
20642  block.
20643  An example of the first would be:
20644 \end_layout
20645
20646 \begin_layout LyX-Code
20647 !quotetitle 
20648 \begin_inset Quotes eld
20649 \end_inset
20650
20651 %title%
20652 \begin_inset Quotes erd
20653 \end_inset
20654
20655
20656 \end_layout
20657
20658 \begin_layout Standard
20659 This is an abbreviation, or macro, and it can be used by treating it as
20660  if it were a key: 
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 %!quotetitle%
20666 \end_layout
20667
20668 \end_inset
20669
20670 .
20671  \SpecialChar LyX
20672  will treat 
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677 %!quotetitle%
20678 \end_layout
20679
20680 \end_inset
20681
20682  exactly as it would treat its definition.
20683  So, let us issue the obvious 
20684 \emph on
20685 warning
20686 \emph default
20687 .
20688  Do not do this:
20689 \end_layout
20690
20691 \begin_layout LyX-Code
20692 !funfun %funfun%
20693 \end_layout
20694
20695 \begin_layout Standard
20696 or anything like it.
20697  \SpecialChar LyX
20698  shouldn't go into an infinite loop, but it may go into a long one before
20699  it gives up.
20700 \end_layout
20701
20702 \begin_layout Standard
20703 The second sort of special definition might look like this:
20704 \end_layout
20705
20706 \begin_layout LyX-Code
20707 _pptext pp.
20708 \end_layout
20709
20710 \begin_layout Standard
20711 This defines a translatable piece of text, which allows relevant parts of
20712  the bibliography to be translated.
20713  It can be included in a definition by treating it as a key: 
20714 \begin_inset Flex Code
20715 status collapsed
20716
20717 \begin_layout Plain Layout
20718 %_pptext%
20719 \end_layout
20720
20721 \end_inset
20722
20723 .
20724  Several of these are predefined in 
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 stdciteformats.inc
20730 \end_layout
20731
20732 \end_inset
20733
20734 .
20735  Note that these are not macros, in the sense just defined.
20736  They will not be expanded.
20737 \end_layout
20738
20739 \begin_layout Standard
20740 So here then is an example that use all these features:
20741 \begin_inset VSpace defskip
20742 \end_inset
20743
20744
20745 \end_layout
20746
20747 \begin_layout Standard
20748 \noindent
20749
20750 \family typewriter
20751 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20752 \end_layout
20753
20754 \begin_layout Standard
20755 \begin_inset VSpace defskip
20756 \end_inset
20757
20758 This defines a macro that prints the author, followed by a comma, if the
20759  
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 author
20765 \end_layout
20766
20767 \end_inset
20768
20769  key is defined, or else prints the name of the editor, followed by the
20770  
20771 \begin_inset Flex Code
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 _edtext
20776 \end_layout
20777
20778 \end_inset
20779
20780  or its translation (it is by default 
20781 \begin_inset Quotes eld
20782 \end_inset
20783
20784 ed.
20785 \begin_inset Quotes erd
20786 \end_inset
20787
20788 ), if the 
20789 \begin_inset Flex Code
20790 status collapsed
20791
20792 \begin_layout Plain Layout
20793 editor
20794 \end_layout
20795
20796 \end_inset
20797
20798  key is defined.
20799  Note that this is in fact defined in 
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 stdciteformats.inc
20805 \end_layout
20806
20807 \end_inset
20808
20809 , so you can use it in your own definitions, or re-definitions, if you load
20810  that file first.
20811 \end_layout
20812
20813 \begin_layout Section
20814 \begin_inset CommandInset label
20815 LatexCommand label
20816 name "sec:Tags-for-XHTML"
20817
20818 \end_inset
20819
20820 Tags for XHTML output
20821 \end_layout
20822
20823 \begin_layout Standard
20824 As with \SpecialChar LaTeX
20825  or DocBook, the format of \SpecialChar LyX
20826 's XHTML output is also controlled by
20827  layout information.
20828  In general, \SpecialChar LyX
20829  provides sensible defaults and, as mentioned earlier, it will
20830  even construct default CSS style rules from the other layout tags.
20831  For example, \SpecialChar LyX
20832  will attempt to use the information provided in the 
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 Font
20838 \end_layout
20839
20840 \end_inset
20841
20842  declaration for the Chapter style to write CSS that will appropriately
20843  format chapter headings.
20844 \end_layout
20845
20846 \begin_layout Standard
20847 In many cases, then, you may not have to do anything at all to get acceptable
20848  XHTML output for your own environments, custom insets, and so forth.
20849  But in some cases you will, and so \SpecialChar LyX
20850  provides a number of layout tags that
20851  can be used to customize the XHTML and CSS that are generated.
20852 \end_layout
20853
20854 \begin_layout Standard
20855 Note that there are two tags, 
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 HTMLPreamble
20861 \end_layout
20862
20863 \end_inset
20864
20865  and 
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 AddToHTMLPreamble
20871 \end_layout
20872
20873 \end_inset
20874
20875  that may appear outside style and inset declarations.
20876  See 
20877 \begin_inset CommandInset ref
20878 LatexCommand ref
20879 reference "subsec:General-text-class"
20880
20881 \end_inset
20882
20883  for details on these.
20884 \end_layout
20885
20886 \begin_layout Subsection
20887 \begin_inset CommandInset label
20888 LatexCommand label
20889 name "subsec:Paragraph-Style-XHTML"
20890
20891 \end_inset
20892
20893 Paragraph styles
20894 \end_layout
20895
20896 \begin_layout Standard
20897 The sort of XHTML \SpecialChar LyX
20898  outputs for a paragraph depends upon whether we are dealing
20899  with a normal paragraph, a command, or an environment, where this is itself
20900  determined by the contents of the corresponding 
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 \SpecialChar LaTeX
20906 Type
20907 \end_layout
20908
20909 \end_inset
20910
20911  tag.
20912  
20913 \end_layout
20914
20915 \begin_layout Standard
20916 For a command or normal paragraph, the output XHTML has the following form:
20917 \end_layout
20918
20919 \begin_layout LyX-Code
20920 <tag attr=
20921 \begin_inset Quotes erd
20922 \end_inset
20923
20924 value
20925 \begin_inset Quotes erd
20926 \end_inset
20927
20928 >
20929 \end_layout
20930
20931 \begin_layout LyX-Code
20932 <labeltag attr=
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936 value
20937 \begin_inset Quotes erd
20938 \end_inset
20939
20940 >Label</labeltag>
20941 \end_layout
20942
20943 \begin_layout LyX-Code
20944 Contents of the paragraph.
20945 \end_layout
20946
20947 \begin_layout LyX-Code
20948 </tag>
20949 \end_layout
20950
20951 \begin_layout Standard
20952 The label tags are of course omitted if the paragraph does not have a label.
20953 \end_layout
20954
20955 \begin_layout Standard
20956 For an environment that is not some sort of list, the XHTML takes this form:
20957 \end_layout
20958
20959 \begin_layout LyX-Code
20960 <tag attr=
20961 \begin_inset Quotes erd
20962 \end_inset
20963
20964 value
20965 \begin_inset Quotes erd
20966 \end_inset
20967
20968 >
20969 \end_layout
20970
20971 \begin_layout LyX-Code
20972 <itemtag attr=
20973 \begin_inset Quotes erd
20974 \end_inset
20975
20976 value
20977 \begin_inset Quotes erd
20978 \end_inset
20979
20980 ><labeltag attr=
20981 \begin_inset Quotes erd
20982 \end_inset
20983
20984 value
20985 \begin_inset Quotes erd
20986 \end_inset
20987
20988 >Environment Label</labeltag>First paragraph.</itemtag>
20989 \end_layout
20990
20991 \begin_layout LyX-Code
20992 <itemtag>Second paragraph.</itemtag>
20993 \end_layout
20994
20995 \begin_layout LyX-Code
20996 </tag>
20997 \end_layout
20998
20999 \begin_layout Standard
21000 Note that the label is output only for the first paragraph, as it should
21001  be for a theorem, for example.
21002  
21003 \end_layout
21004
21005 \begin_layout Standard
21006 For a list, we have one of these forms:
21007 \end_layout
21008
21009 \begin_layout LyX-Code
21010 <tag attr=
21011 \begin_inset Quotes erd
21012 \end_inset
21013
21014 value
21015 \begin_inset Quotes erd
21016 \end_inset
21017
21018 >
21019 \end_layout
21020
21021 \begin_layout LyX-Code
21022 <itemtag attr=
21023 \begin_inset Quotes erd
21024 \end_inset
21025
21026 value
21027 \begin_inset Quotes erd
21028 \end_inset
21029
21030 ><labeltag attr=
21031 \begin_inset Quotes erd
21032 \end_inset
21033
21034 value
21035 \begin_inset Quotes erd
21036 \end_inset
21037
21038 >List Label</labeltag>First item.</itemtag>
21039 \end_layout
21040
21041 \begin_layout LyX-Code
21042 <itemtag attr=
21043 \begin_inset Quotes erd
21044 \end_inset
21045
21046 value
21047 \begin_inset Quotes erd
21048 \end_inset
21049
21050 ><labeltag attr=
21051 \begin_inset Quotes erd
21052 \end_inset
21053
21054 value
21055 \begin_inset Quotes erd
21056 \end_inset
21057
21058 >List Label</labeltag>Second item.</itemtag>
21059 \end_layout
21060
21061 \begin_layout LyX-Code
21062 </tag>
21063 \end_layout
21064
21065 \begin_layout LyX-Code
21066
21067 \end_layout
21068
21069 \begin_layout LyX-Code
21070 <tag attr=
21071 \begin_inset Quotes erd
21072 \end_inset
21073
21074 value
21075 \begin_inset Quotes erd
21076 \end_inset
21077
21078 >
21079 \end_layout
21080
21081 \begin_layout LyX-Code
21082 <labeltag attr=
21083 \begin_inset Quotes erd
21084 \end_inset
21085
21086 value
21087 \begin_inset Quotes erd
21088 \end_inset
21089
21090 >List Label</labeltag><itemtag attr=
21091 \begin_inset Quotes erd
21092 \end_inset
21093
21094 value
21095 \begin_inset Quotes erd
21096 \end_inset
21097
21098 >First item.</itemtag>
21099 \end_layout
21100
21101 \begin_layout LyX-Code
21102 <labeltag attr=
21103 \begin_inset Quotes erd
21104 \end_inset
21105
21106 value
21107 \begin_inset Quotes erd
21108 \end_inset
21109
21110 >List Label</labeltag><itemtag attr=
21111 \begin_inset Quotes erd
21112 \end_inset
21113
21114 value
21115 \begin_inset Quotes erd
21116 \end_inset
21117
21118 >Second item.</itemtag>
21119 \end_layout
21120
21121 \begin_layout LyX-Code
21122 </tag>
21123 \end_layout
21124
21125 \begin_layout Standard
21126 Note the different orders of 
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131 labeltag
21132 \end_layout
21133
21134 \end_inset
21135
21136  and 
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 itemtag
21142 \end_layout
21143
21144 \end_inset
21145
21146 .
21147  Which order we get depends upon the setting of 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 HTMLLabelFirst
21153 \end_layout
21154
21155 \end_inset
21156
21157 : If 
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 HTMLLabelFirst
21163 \end_layout
21164
21165 \end_inset
21166
21167  is false (the default), you get the first of these, with the label within
21168  the item; if true, you get the second, with the label outside the item.
21169 \end_layout
21170
21171 \begin_layout Standard
21172 The specific tags and attributes output for each paragraph type can be controlle
21173 d by means of the layout tags we are about to describe.
21174  As mentioned earlier, however, \SpecialChar LyX
21175  uses sensible defaults for many of these,
21176  so you often may not need to do very much to get good XHTML output.
21177  Think of the available tags as there so you can tweak things to your liking.
21178 \end_layout
21179
21180 \begin_layout Description
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 HTMLAttr
21186 \end_layout
21187
21188 \end_inset
21189
21190  [
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 string
21196 \end_layout
21197
21198 \end_inset
21199
21200 ] Specifies attribute information to be output with the main tag.
21201  For example, 
21202 \begin_inset Quotes eld
21203 \end_inset
21204
21205
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 class=`mydiv'
21211 \end_layout
21212
21213 \end_inset
21214
21215
21216 \begin_inset Quotes erd
21217 \end_inset
21218
21219 .
21220  By default, \SpecialChar LyX
21221  will output 
21222 \begin_inset Quotes eld
21223 \end_inset
21224
21225
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 class=`layoutname'
21231 \end_layout
21232
21233 \end_inset
21234
21235
21236 \begin_inset Quotes erd
21237 \end_inset
21238
21239 , where 
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 layoutname
21245 \end_layout
21246
21247 \end_inset
21248
21249  is the \SpecialChar LyX
21250  name of the layout, made lowercase, for example: chapter.
21251  This should 
21252 \emph on
21253 not
21254 \emph default
21255  contain any style information.
21256  Use 
21257 \begin_inset Flex Code
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261 HTMLStyle
21262 \end_layout
21263
21264 \end_inset
21265
21266  for that purpose.
21267 \end_layout
21268
21269 \begin_layout Description
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274 HTMLForceCSS
21275 \end_layout
21276
21277 \end_inset
21278
21279  [
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284
21285 \emph on
21286 0
21287 \emph default
21288 ,1
21289 \end_layout
21290
21291 \end_inset
21292
21293 ] Whether to output the default CSS information \SpecialChar LyX
21294  generates for this layout,
21295  even if additional information is explicitly provided via 
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 HTMLStyle
21301 \end_layout
21302
21303 \end_inset
21304
21305 .
21306  Setting this to 
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 1
21312 \end_layout
21313
21314 \end_inset
21315
21316  allows you to alter or augment the generated CSS, rather than to override
21317  it completely.
21318  Default is 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 0
21324 \end_layout
21325
21326 \end_inset
21327
21328 .
21329 \end_layout
21330
21331 \begin_layout Description
21332 \begin_inset Flex Code
21333 status collapsed
21334
21335 \begin_layout Plain Layout
21336 HTMLItem
21337 \end_layout
21338
21339 \end_inset
21340
21341  [
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 string
21347 \end_layout
21348
21349 \end_inset
21350
21351 ] The tag to be used for individual paragraphs of environments, replacing
21352  
21353 \begin_inset Flex Code
21354 status collapsed
21355
21356 \begin_layout Plain Layout
21357 itemtag
21358 \end_layout
21359
21360 \end_inset
21361
21362  in the examples above.
21363  Defaults to 
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 div
21369 \end_layout
21370
21371 \end_inset
21372
21373 .
21374 \end_layout
21375
21376 \begin_layout Description
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 HTMLItemAttr
21382 \end_layout
21383
21384 \end_inset
21385
21386  [
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 string
21392 \end_layout
21393
21394 \end_inset
21395
21396 ] Attributes for the item tag.
21397  Defaults to 
21398 \begin_inset Quotes eld
21399 \end_inset
21400
21401
21402 \begin_inset Flex Code
21403 status collapsed
21404
21405 \begin_layout Plain Layout
21406 class=`layoutname_item'
21407 \end_layout
21408
21409 \end_inset
21410
21411
21412 \begin_inset Quotes erd
21413 \end_inset
21414
21415 .
21416  This should 
21417 \emph on
21418 not
21419 \emph default
21420  contain any style information.
21421  Use 
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 HTMLStyle
21427 \end_layout
21428
21429 \end_inset
21430
21431  for that purpose.
21432 \end_layout
21433
21434 \begin_layout Description
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 HTMLLabel
21440 \end_layout
21441
21442 \end_inset
21443
21444  [
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 string
21450 \end_layout
21451
21452 \end_inset
21453
21454 ] The tag to be used for paragraph and item labels, replacing 
21455 \begin_inset Flex Code
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 labeltag
21460 \end_layout
21461
21462 \end_inset
21463
21464  in the examples above.
21465  Defaults to 
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 span
21471 \end_layout
21472
21473 \end_inset
21474
21475 , unless 
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 LabelType
21481 \end_layout
21482
21483 \end_inset
21484
21485  is either 
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 Top_Environment
21491 \end_layout
21492
21493 \end_inset
21494
21495  or 
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 Centered_Top_Environment
21501 \end_layout
21502
21503 \end_inset
21504
21505 , in which case it defaults to 
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 div
21511 \end_layout
21512
21513 \end_inset
21514
21515 .
21516 \end_layout
21517
21518 \begin_layout Description
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 HTMLLabelAttr
21524 \end_layout
21525
21526 \end_inset
21527
21528  [
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 string
21534 \end_layout
21535
21536 \end_inset
21537
21538 ] Attributes for the label tag.
21539  Defaults to 
21540 \begin_inset Quotes eld
21541 \end_inset
21542
21543
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 class=`layoutname_label'
21549 \end_layout
21550
21551 \end_inset
21552
21553
21554 \begin_inset Quotes erd
21555 \end_inset
21556
21557 .
21558  This should 
21559 \emph on
21560 not
21561 \emph default
21562  contain any style information.
21563  Use 
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 HTMLStyle
21569 \end_layout
21570
21571 \end_inset
21572
21573  for that purpose.
21574 \end_layout
21575
21576 \begin_layout Description
21577 \begin_inset Flex Code
21578 status collapsed
21579
21580 \begin_layout Plain Layout
21581 HTMLLabelFirst
21582 \end_layout
21583
21584 \end_inset
21585
21586  [
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591
21592 \emph on
21593 0
21594 \emph default
21595 ,1
21596 \end_layout
21597
21598 \end_inset
21599
21600 ] Meaningful only for list-like environments, this tag controls whether
21601  the label tag is output before or inside the item tag.
21602  This is used, for example, in the description environment, where we want
21603  `
21604 \begin_inset Flex Code
21605 status collapsed
21606
21607 \begin_layout Plain Layout
21608 <dt>\SpecialChar ldots
21609 </dt><dd>\SpecialChar ldots
21610 </dd>
21611 \end_layout
21612
21613 \end_inset
21614
21615 .
21616  Default is 
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 0
21622 \end_layout
21623
21624 \end_inset
21625
21626 : The label tag is output inside the item tag.
21627 \end_layout
21628
21629 \begin_layout Description
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 HTMLPreamble
21635 \end_layout
21636
21637 \end_inset
21638
21639  Information to be output in the 
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 <head>
21645 \end_layout
21646
21647 \end_inset
21648
21649  section when this style is used.
21650  This might, for example, be used to include a 
21651 \begin_inset Flex Code
21652 status collapsed
21653
21654 \begin_layout Plain Layout
21655 <script>
21656 \end_layout
21657
21658 \end_inset
21659
21660  block defining an 
21661 \begin_inset Flex Code
21662 status collapsed
21663
21664 \begin_layout Plain Layout
21665 onclick
21666 \end_layout
21667
21668 \end_inset
21669
21670  handler.
21671 \end_layout
21672
21673 \begin_layout Description
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 HTMLStyle
21679 \end_layout
21680
21681 \end_inset
21682
21683  CSS style information to be included when this style is used.
21684  Note that this will automatically be wrapped in a layout-generated 
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 <style>
21690 \end_layout
21691
21692 \end_inset
21693
21694  block, so only the CSS itself need be included.
21695  Must end with 
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 EndHTMLStyle
21701 \end_layout
21702
21703 \end_inset
21704
21705 .
21706 \end_layout
21707
21708 \begin_layout Description
21709 \begin_inset Flex Code
21710 status collapsed
21711
21712 \begin_layout Plain Layout
21713 HTMLTag
21714 \end_layout
21715
21716 \end_inset
21717
21718  [
21719 \begin_inset Flex Code
21720 status collapsed
21721
21722 \begin_layout Plain Layout
21723 string
21724 \end_layout
21725
21726 \end_inset
21727
21728 ] The tag to be used for the main label, replacing 
21729 \begin_inset Flex Code
21730 status collapsed
21731
21732 \begin_layout Plain Layout
21733 tag
21734 \end_layout
21735
21736 \end_inset
21737
21738  in the examples above.
21739  Defaults to 
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 div
21745 \end_layout
21746
21747 \end_inset
21748
21749 .
21750 \end_layout
21751
21752 \begin_layout Description
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757 HTMLTitle
21758 \end_layout
21759
21760 \end_inset
21761
21762  [
21763 \begin_inset Flex Code
21764 status collapsed
21765
21766 \begin_layout Plain Layout
21767
21768 \emph on
21769 0
21770 \emph default
21771 ,1
21772 \end_layout
21773
21774 \end_inset
21775
21776 ] Marks this style as the one to be used to generate the 
21777 \begin_inset Flex Code
21778 status collapsed
21779
21780 \begin_layout Plain Layout
21781 <title>
21782 \end_layout
21783
21784 \end_inset
21785
21786  tag for the XHTML file.
21787  By default, it is false.
21788  The 
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 stdtitle.inc
21794 \end_layout
21795
21796 \end_inset
21797
21798  file sets it to true for the 
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 title
21804 \end_layout
21805
21806 \end_inset
21807
21808  environment.
21809  
21810 \end_layout
21811
21812 \begin_layout Subsection
21813 InsetLayout XHTML
21814 \end_layout
21815
21816 \begin_layout Standard
21817 The XHTML output of insets can also be controlled by information in layout
21818  files.
21819 \begin_inset Foot
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 At present, this is true only for 
21824 \begin_inset Quotes eld
21825 \end_inset
21826
21827 text
21828 \begin_inset Quotes erd
21829 \end_inset
21830
21831  insets (insets you can type into) and is not true for 
21832 \begin_inset Quotes eld
21833 \end_inset
21834
21835 command
21836 \begin_inset Quotes erd
21837 \end_inset
21838
21839  insets (insets that are associated with dialog boxes).
21840 \end_layout
21841
21842 \end_inset
21843
21844  Here, too, \SpecialChar LyX
21845  tries to provide sensible defaults, and it constructs default
21846  CSS style rules.
21847  But everything can be customized.
21848 \end_layout
21849
21850 \begin_layout Standard
21851 The XHTML \SpecialChar LyX
21852  outputs for an inset has the following form:
21853 \end_layout
21854
21855 \begin_layout LyX-Code
21856 <tag attr=
21857 \begin_inset Quotes erd
21858 \end_inset
21859
21860 value
21861 \begin_inset Quotes erd
21862 \end_inset
21863
21864 >
21865 \end_layout
21866
21867 \begin_layout LyX-Code
21868 <labeltag>Label</labeltag>
21869 \end_layout
21870
21871 \begin_layout LyX-Code
21872 <innertag attr=
21873 \begin_inset Quotes erd
21874 \end_inset
21875
21876 value
21877 \begin_inset Quotes erd
21878 \end_inset
21879
21880 >Contents of the inset.</innertag>
21881 \end_layout
21882
21883 \begin_layout LyX-Code
21884 </tag>
21885 \end_layout
21886
21887 \begin_layout Standard
21888 If the inset permits multiple paragraphs—that is, if 
21889 \begin_inset Flex Code
21890 status collapsed
21891
21892 \begin_layout Plain Layout
21893 MultiPar
21894 \end_layout
21895
21896 \end_inset
21897
21898  is true—then the contents of the inset will itself be output as paragraphs
21899  formatted according to the styles used for those paragraphs (standard,
21900  quote, and the like).
21901  The label tag is of course omitted if the paragraph does not have a label
21902  and, at present, is always 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 span
21908 \end_layout
21909
21910 \end_inset
21911
21912 .
21913  The inner tag is optional and, by default, does not appear.
21914 \end_layout
21915
21916 \begin_layout Standard
21917 The specific tags and attributes output for each inset can be controlled
21918  by means of the following layout tags.
21919 \end_layout
21920
21921 \begin_layout Description
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 HTMLAttr
21927 \end_layout
21928
21929 \end_inset
21930
21931  [
21932 \begin_inset Flex Code
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 string
21937 \end_layout
21938
21939 \end_inset
21940
21941 ] Specifies attribute information to be output with the main tag.
21942  For example, 
21943 \begin_inset Quotes eld
21944 \end_inset
21945
21946
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 class=`myinset' onclick=`\SpecialChar ldots
21952 '
21953 \end_layout
21954
21955 \end_inset
21956
21957
21958 \begin_inset Quotes erd
21959 \end_inset
21960
21961 .
21962  By default, \SpecialChar LyX
21963  will output 
21964 \begin_inset Quotes eld
21965 \end_inset
21966
21967
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 class=`insetname'
21973 \end_layout
21974
21975 \end_inset
21976
21977
21978 \begin_inset Quotes erd
21979 \end_inset
21980
21981 , where 
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986 insetname
21987 \end_layout
21988
21989 \end_inset
21990
21991  is the \SpecialChar LyX
21992  name of the inset, made lowercase and with non-alphanumeric characters
21993  converted to underscores, for example: footnote.
21994 \end_layout
21995
21996 \begin_layout Description
21997 \begin_inset Flex Code
21998 status collapsed
21999
22000 \begin_layout Plain Layout
22001 HTMLForceCSS
22002 \end_layout
22003
22004 \end_inset
22005
22006  [
22007 \begin_inset Flex Code
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011
22012 \emph on
22013 0
22014 \emph default
22015 ,1
22016 \end_layout
22017
22018 \end_inset
22019
22020 ] Whether to output the default CSS information \SpecialChar LyX
22021  generates for this layout,
22022  even if additional information is explicitly provided via 
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027 HTMLStyle
22028 \end_layout
22029
22030 \end_inset
22031
22032 .
22033  Setting this to 
22034 \begin_inset Flex Code
22035 status collapsed
22036
22037 \begin_layout Plain Layout
22038 1
22039 \end_layout
22040
22041 \end_inset
22042
22043  allows you to alter or augment the generated CSS, rather than to override
22044  it completely.
22045  Default is 0.
22046 \end_layout
22047
22048 \begin_layout Description
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 HTMLInnerAttr
22054 \end_layout
22055
22056 \end_inset
22057
22058  [
22059 \begin_inset Flex Code
22060 status collapsed
22061
22062 \begin_layout Plain Layout
22063 string
22064 \end_layout
22065
22066 \end_inset
22067
22068 ] Attributes for the inner tag.
22069  Defaults to 
22070 \begin_inset Quotes eld
22071 \end_inset
22072
22073
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078 class=`insetname_inner'
22079 \end_layout
22080
22081 \end_inset
22082
22083
22084 \begin_inset Quotes erd
22085 \end_inset
22086
22087 .
22088 \end_layout
22089
22090 \begin_layout Description
22091 \begin_inset Flex Code
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095 HTMLInnerTag
22096 \end_layout
22097
22098 \end_inset
22099
22100  [
22101 \begin_inset Flex Code
22102 status collapsed
22103
22104 \begin_layout Plain Layout
22105 string
22106 \end_layout
22107
22108 \end_inset
22109
22110 ] The inner tag, replacing 
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 innertag
22116 \end_layout
22117
22118 \end_inset
22119
22120  in the examples above.
22121  By default, there is none.
22122 \end_layout
22123
22124 \begin_layout Description
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129 HTMLIsBlock
22130 \end_layout
22131
22132 \end_inset
22133
22134  [
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139 0,
22140 \emph on
22141 1
22142 \end_layout
22143
22144 \end_inset
22145
22146 ] Whether this inset represents a standalone block of text (such as a footnote)
22147  or instead represents material that is included in the surrounding text
22148  (such as a branch).
22149  Defaults to 1.
22150 \end_layout
22151
22152 \begin_layout Description
22153 \begin_inset Flex Code
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 HTMLLabel
22158 \end_layout
22159
22160 \end_inset
22161
22162  [
22163 \begin_inset Flex Code
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 string
22168 \end_layout
22169
22170 \end_inset
22171
22172 ] A label for this inset, possibly including a reference to a counter.
22173  For example, for footnote, it might be: 
22174 \begin_inset Flex Code
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178
22179 \backslash
22180 arabic{footnote}
22181 \end_layout
22182
22183 \end_inset
22184
22185 .
22186  This is optional, and there is no default.
22187 \end_layout
22188
22189 \begin_layout Description
22190 \begin_inset Flex Code
22191 status collapsed
22192
22193 \begin_layout Plain Layout
22194 HTMLPreamble
22195 \end_layout
22196
22197 \end_inset
22198
22199  Information to be output in the 
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 <head>
22205 \end_layout
22206
22207 \end_inset
22208
22209  section when this style is used.
22210  This might, for example, be used to include a 
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 <script>
22216 \end_layout
22217
22218 \end_inset
22219
22220  block defining an 
22221 \begin_inset Flex Code
22222 status collapsed
22223
22224 \begin_layout Plain Layout
22225 onclick
22226 \end_layout
22227
22228 \end_inset
22229
22230  handler.
22231 \end_layout
22232
22233 \begin_layout Description
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 HTMLStyle
22239 \end_layout
22240
22241 \end_inset
22242
22243  CSS style information to be included when this style is used.
22244  Note that this will automatically be wrapped in a layout-generated 
22245 \begin_inset Flex Code
22246 status collapsed
22247
22248 \begin_layout Plain Layout
22249 <style>
22250 \end_layout
22251
22252 \end_inset
22253
22254  block, so only the CSS itself need be included.
22255 \end_layout
22256
22257 \begin_layout Description
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262 HTMLTag
22263 \end_layout
22264
22265 \end_inset
22266
22267  [
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 string
22273 \end_layout
22274
22275 \end_inset
22276
22277 ] The tag to be used for the main label, replacing 
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 tag
22283 \end_layout
22284
22285 \end_inset
22286
22287  in the examples above.
22288  The default depends upon the setting of 
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293 MultiPar
22294 \end_layout
22295
22296 \end_inset
22297
22298 : If 
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 MultiPar
22304 \end_layout
22305
22306 \end_inset
22307
22308  is true, the default is 
22309 \begin_inset Flex Code
22310 status collapsed
22311
22312 \begin_layout Plain Layout
22313 div
22314 \end_layout
22315
22316 \end_inset
22317
22318 ; if it is false, the default is 
22319 \begin_inset Flex Code
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323 span
22324 \end_layout
22325
22326 \end_inset
22327
22328 .
22329 \end_layout
22330
22331 \begin_layout Subsection
22332 Float XHTML
22333 \end_layout
22334
22335 \begin_layout Standard
22336 The XHTML output for floats too can be controlled by layout information.
22337  The output has the following form:
22338 \end_layout
22339
22340 \begin_layout LyX-Code
22341 <tag attr=
22342 \begin_inset Quotes erd
22343 \end_inset
22344
22345 value
22346 \begin_inset Quotes erd
22347 \end_inset
22348
22349 >
22350 \end_layout
22351
22352 \begin_layout LyX-Code
22353 Contents of the float.
22354 \end_layout
22355
22356 \begin_layout LyX-Code
22357 </tag>
22358 \end_layout
22359
22360 \begin_layout Standard
22361 The caption, if there is one, is a separate inset and will be output as
22362  such.
22363  Its appearance can be controlled via the InsetLayout for caption insets.
22364  
22365 \end_layout
22366
22367 \begin_layout Description
22368 \begin_inset Flex Code
22369 status collapsed
22370
22371 \begin_layout Plain Layout
22372 HTMLAttr
22373 \end_layout
22374
22375 \end_inset
22376
22377  [
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 string
22383 \end_layout
22384
22385 \end_inset
22386
22387 ] Specifies attribute information to be output with the main tag.
22388  For example, 
22389 \begin_inset Quotes eld
22390 \end_inset
22391
22392
22393 \begin_inset Flex Code
22394 status collapsed
22395
22396 \begin_layout Plain Layout
22397 class=`myfloat' onclick=`\SpecialChar ldots
22398 '
22399 \end_layout
22400
22401 \end_inset
22402
22403
22404 \begin_inset Quotes erd
22405 \end_inset
22406
22407 .
22408  By default, \SpecialChar LyX
22409  will output 
22410 \begin_inset Quotes eld
22411 \end_inset
22412
22413
22414 \begin_inset Flex Code
22415 status collapsed
22416
22417 \begin_layout Plain Layout
22418 class=`float float-floattype'
22419 \end_layout
22420
22421 \end_inset
22422
22423
22424 \begin_inset Quotes erd
22425 \end_inset
22426
22427 , where 
22428 \begin_inset Flex Code
22429 status collapsed
22430
22431 \begin_layout Plain Layout
22432 floattype
22433 \end_layout
22434
22435 \end_inset
22436
22437  is \SpecialChar LyX
22438 's name for this type of float, as determined by the float declaration
22439  (see 
22440 \begin_inset CommandInset ref
22441 LatexCommand ref
22442 reference "subsec:Floats"
22443
22444 \end_inset
22445
22446 ), though made lowercase and with non-alphanumeric characters converted
22447  to underscores, for example: float-table.
22448 \end_layout
22449
22450 \begin_layout Description
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 HTMLStyle
22456 \end_layout
22457
22458 \end_inset
22459
22460  CSS style information to be included when this float is used.
22461  Note that this will automatically be wrapped in a layout-generated 
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 <style>
22467 \end_layout
22468
22469 \end_inset
22470
22471  block, so only the CSS itself need be included.
22472 \end_layout
22473
22474 \begin_layout Description
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 HTMLTag
22480 \end_layout
22481
22482 \end_inset
22483
22484  [
22485 \begin_inset Flex Code
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 string
22490 \end_layout
22491
22492 \end_inset
22493
22494 ] The tag to be used for this float, replacing 
22495 \begin_inset Quotes eld
22496 \end_inset
22497
22498
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 tag
22504 \end_layout
22505
22506 \end_inset
22507
22508
22509 \begin_inset Quotes erd
22510 \end_inset
22511
22512  in the example above.
22513  The default is 
22514 \begin_inset Flex Code
22515 status collapsed
22516
22517 \begin_layout Plain Layout
22518 div
22519 \end_layout
22520
22521 \end_inset
22522
22523  and will rarely need changing.
22524 \end_layout
22525
22526 \begin_layout Subsection
22527 Bibliography formatting
22528 \end_layout
22529
22530 \begin_layout Standard
22531 The bibliography can be formatted using 
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 CiteFormat
22537 \end_layout
22538
22539 \end_inset
22540
22541  blocks.
22542  See 
22543 \begin_inset CommandInset ref
22544 LatexCommand ref
22545 reference "subsec:Citation-format-description"
22546
22547 \end_inset
22548
22549  for the details.
22550 \end_layout
22551
22552 \begin_layout Subsection
22553 \SpecialChar LyX
22554 -generated CSS
22555 \end_layout
22556
22557 \begin_layout Standard
22558 We have several times mentioned that \SpecialChar LyX
22559  will generate default CSS style rules
22560  for both insets and paragraph styles, based upon the other layout information
22561  that is provided.
22562  In this section, we shall say a word about which layout information \SpecialChar LyX
22563  uses
22564  and how.
22565 \end_layout
22566
22567 \begin_layout Standard
22568 At present, \SpecialChar LyX
22569  auto-generates CSS only for font information, making use of
22570  the 
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 Family
22576 \end_layout
22577
22578 \end_inset
22579
22580
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 Series
22586 \end_layout
22587
22588 \end_inset
22589
22590
22591 \begin_inset Flex Code
22592 status collapsed
22593
22594 \begin_layout Plain Layout
22595 Shape
22596 \end_layout
22597
22598 \end_inset
22599
22600 , and 
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 Size
22606 \end_layout
22607
22608 \end_inset
22609
22610  specified in the 
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 Font
22616 \end_layout
22617
22618 \end_inset
22619
22620  declaration (see 
22621 \begin_inset CommandInset ref
22622 LatexCommand ref
22623 reference "subsec:Font-description"
22624
22625 \end_inset
22626
22627 ).
22628  The translation is mostly straightforward and obvious.
22629  For example, 
22630 \begin_inset Quotes eld
22631 \end_inset
22632
22633
22634 \begin_inset Flex Code
22635 status collapsed
22636
22637 \begin_layout Plain Layout
22638 Family Sans
22639 \end_layout
22640
22641 \end_inset
22642
22643
22644 \begin_inset Quotes erd
22645 \end_inset
22646
22647  becomes 
22648 \begin_inset Quotes eld
22649 \end_inset
22650
22651
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 font-family: sans-serif;
22657 \end_layout
22658
22659 \end_inset
22660
22661
22662 \begin_inset Quotes erd
22663 \end_inset
22664
22665 .
22666  The correspondence of \SpecialChar LyX
22667  sizes and CSS sizes is a little less obvious but
22668  nonetheless intuitive.
22669  See the 
22670 \begin_inset Flex Code
22671 status collapsed
22672
22673 \begin_layout Plain Layout
22674 getSizeCSS()
22675 \end_layout
22676
22677 \end_inset
22678
22679  function in 
22680 \begin_inset Flex URL
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684
22685 src/FontInfo.cpp
22686 \end_layout
22687
22688 \end_inset
22689
22690  for the details.
22691 \end_layout
22692
22693 \begin_layout Chapter
22694 Including External Material
22695 \begin_inset CommandInset label
22696 LatexCommand label
22697 name "chap:Including-External-Material"
22698
22699 \end_inset
22700
22701
22702 \end_layout
22703
22704 \begin_layout Standard
22705 \begin_inset Box Shadowbox
22706 position "t"
22707 hor_pos "c"
22708 has_inner_box 1
22709 inner_pos "t"
22710 use_parbox 0
22711 use_makebox 0
22712 width "100col%"
22713 special "none"
22714 height "1in"
22715 height_special "totalheight"
22716 thickness "0.4pt"
22717 separation "3pt"
22718 shadowsize "4pt"
22719 framecolor "black"
22720 backgroundcolor "none"
22721 status open
22722
22723 \begin_layout Plain Layout
22724 WARNING: This portion of the documentation has not been updated for some
22725  time.
22726  We certainly hope that it is still accurate, but there are no guarantees.
22727 \end_layout
22728
22729 \end_inset
22730
22731
22732 \end_layout
22733
22734 \begin_layout Standard
22735 The use of material from sources external to \SpecialChar LyX
22736  is covered in detail in the
22737  
22738 \emph on
22739 Embedded Objects
22740 \emph default
22741  manual.
22742  This part of the manual covers what needs to happen behind the scenes for
22743  new sorts of material to be included.
22744 \end_layout
22745
22746 \begin_layout Section
22747 How does it work?
22748 \end_layout
22749
22750 \begin_layout Standard
22751 The external material feature is based on the concept of a 
22752 \emph on
22753 template
22754 \emph default
22755 .
22756  A template is a specification of how \SpecialChar LyX
22757  should interface with a certain kind
22758  of material.
22759  As bundled, \SpecialChar LyX
22760  comes with predefined templates for Xfig figures, various
22761  raster format images, chess diagrams, and LilyPond music notation.
22762  You can check the actual list by using the menu 
22763 \begin_inset Flex Noun
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 Insert\SpecialChar menuseparator
22768 File\SpecialChar menuseparator
22769 External Material
22770 \end_layout
22771
22772 \end_inset
22773
22774 .
22775  Furthermore, it is possible to roll your own template to support a specific
22776  kind of material.
22777  Later we'll describe in more detail what is involved, and hopefully you
22778  will submit all the templates you create so we can include them in a later
22779  \SpecialChar LyX
22780  version.
22781 \end_layout
22782
22783 \begin_layout Standard
22784 Another basic idea of the external material feature is to distinguish between
22785  the original file that serves as a base for final material and the produced
22786  file that is included in your exported or printed document.
22787  For example, consider the case of a figure produced with 
22788 \begin_inset Flex Code
22789 status collapsed
22790
22791 \begin_layout Plain Layout
22792 Xfig
22793 \end_layout
22794
22795 \end_inset
22796
22797 .
22798  The Xfig application itself works on an original file with the 
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 .fig
22804 \end_layout
22805
22806 \end_inset
22807
22808  extension.
22809  Within Xfig, you create and change your figure, and when you are done,
22810  you save the 
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 fig
22816 \end_layout
22817
22818 \end_inset
22819
22820 -file.
22821  When you want to include the figure in your document, you invoke 
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826 transfig
22827 \end_layout
22828
22829 \end_inset
22830
22831  in order to create a PostScript file that can readily be included in your
22832  \SpecialChar LaTeX
22833  file.
22834  In this case, the 
22835 \begin_inset Flex Code
22836 status collapsed
22837
22838 \begin_layout Plain Layout
22839 .fig
22840 \end_layout
22841
22842 \end_inset
22843
22844  file is the original file, and the PostScript file is the produced file.
22845 \end_layout
22846
22847 \begin_layout Standard
22848 This distinction is important in order to allow updating of the material
22849  while you are in the process of writing the document.
22850  Furthermore, it provides us with the flexibility that is needed to support
22851  multiple export formats.
22852  For instance, in the case of a plain text file, it is not exactly an award-winn
22853 ing idea to include the figure as raw PostScript.
22854  Instead, you would either prefer to just include a reference to the figure
22855  or try to invoke some graphics to ASCII converter to make the final result
22856  look similar to the real graphics.
22857  The external material management allows you to do this, because it is parametri
22858 zed on the different export formats that \SpecialChar LyX
22859  supports.
22860 \end_layout
22861
22862 \begin_layout Standard
22863 Besides supporting the production of different products according to the
22864  exported format, it supports tight integration with editing and viewing
22865  applications.
22866  In the case of an Xfig figure, you are able to invoke Xfig on the original
22867  file with a single click from within the external material dialog in \SpecialChar LyX
22868 ,
22869  and also preview the produced PostScript file with Ghostview with another
22870  click.
22871  No more fiddling around with the command line and/or file browsers to locate
22872  and manipulate the original or produced files.
22873  In this way, you are finally able to take full advantage of the many different
22874  applications that are relevant to use when you write your documents, and
22875  ultimately be more productive.
22876 \end_layout
22877
22878 \begin_layout Section
22879 The external template configuration file
22880 \end_layout
22881
22882 \begin_layout Standard
22883 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22884 .
22885  However, be aware that doing this in an careless manner most probably 
22886 \emph on
22887 will
22888 \emph default
22889  introduce an easily exploitable security hole.
22890  So before you do this, please read the discussion about security in 
22891 \begin_inset CommandInset ref
22892 LatexCommand ref
22893 reference "sec:Security-discussion"
22894
22895 \end_inset
22896
22897 .
22898 \end_layout
22899
22900 \begin_layout Standard
22901 Having said that, we encourage you to submit any interesting templates that
22902  you create.
22903  
22904 \end_layout
22905
22906 \begin_layout Standard
22907 The external templates are defined in the 
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 LyXDir/lib/external_templates
22913 \end_layout
22914
22915 \end_inset
22916
22917  file.
22918  You can place your own version in 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 UserDir/external_templates
22924 \end_layout
22925
22926 \end_inset
22927
22928 .
22929 \end_layout
22930
22931 \begin_layout Standard
22932 A typical template looks like this:
22933 \end_layout
22934
22935 \begin_layout LyX-Code
22936 Template XFig
22937 \end_layout
22938
22939 \begin_layout LyX-Code
22940 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22941 \end_layout
22942
22943 \begin_layout LyX-Code
22944 HelpText
22945 \end_layout
22946
22947 \begin_layout LyX-Code
22948 An XFig figure.
22949 \end_layout
22950
22951 \begin_layout LyX-Code
22952 HelpTextEnd
22953 \end_layout
22954
22955 \begin_layout LyX-Code
22956 InputFormat fig
22957 \end_layout
22958
22959 \begin_layout LyX-Code
22960 FileFilter "*.fig"
22961 \end_layout
22962
22963 \begin_layout LyX-Code
22964 AutomaticProduction true
22965 \end_layout
22966
22967 \begin_layout LyX-Code
22968 Transform Rotate
22969 \end_layout
22970
22971 \begin_layout LyX-Code
22972 Transform Resize
22973 \end_layout
22974
22975 \begin_layout LyX-Code
22976 Format \SpecialChar LaTeX
22977
22978 \end_layout
22979
22980 \begin_layout LyX-Code
22981 TransformCommand Rotate RotationLatexCommand
22982 \end_layout
22983
22984 \begin_layout LyX-Code
22985 TransformCommand Resize ResizeLatexCommand
22986 \end_layout
22987
22988 \begin_layout LyX-Code
22989 Product "$$RotateFront$$ResizeFront
22990 \end_layout
22991
22992 \begin_layout LyX-Code
22993          
22994 \backslash
22995
22996 \backslash
22997 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22998 \end_layout
22999
23000 \begin_layout LyX-Code
23001          $$ResizeBack$$RotateBack"
23002 \end_layout
23003
23004 \begin_layout LyX-Code
23005 UpdateFormat pstex
23006 \end_layout
23007
23008 \begin_layout LyX-Code
23009 UpdateResult "$$AbsPath$$Basename.pstex_t"
23010 \end_layout
23011
23012 \begin_layout LyX-Code
23013 Requirement "graphicx"
23014 \end_layout
23015
23016 \begin_layout LyX-Code
23017 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23018 \end_layout
23019
23020 \begin_layout LyX-Code
23021 ReferencedFile latex "$$AbsPath$$Basename.eps"
23022 \end_layout
23023
23024 \begin_layout LyX-Code
23025 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23026 \end_layout
23027
23028 \begin_layout LyX-Code
23029 FormatEnd
23030 \end_layout
23031
23032 \begin_layout LyX-Code
23033 Format PDF\SpecialChar LaTeX
23034
23035 \end_layout
23036
23037 \begin_layout LyX-Code
23038 TransformCommand Rotate RotationLatexCommand
23039 \end_layout
23040
23041 \begin_layout LyX-Code
23042 TransformCommand Resize ResizeLatexCommand
23043 \end_layout
23044
23045 \begin_layout LyX-Code
23046 Product "$$RotateFront$$ResizeFront
23047 \end_layout
23048
23049 \begin_layout LyX-Code
23050          
23051 \backslash
23052
23053 \backslash
23054 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23055 \end_layout
23056
23057 \begin_layout LyX-Code
23058          $$ResizeBack$$RotateBack"
23059 \end_layout
23060
23061 \begin_layout LyX-Code
23062 UpdateFormat pdftex
23063 \end_layout
23064
23065 \begin_layout LyX-Code
23066 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23067 \end_layout
23068
23069 \begin_layout LyX-Code
23070 Requirement "graphicx"
23071 \end_layout
23072
23073 \begin_layout LyX-Code
23074 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23075 \end_layout
23076
23077 \begin_layout LyX-Code
23078 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23079 \end_layout
23080
23081 \begin_layout LyX-Code
23082 FormatEnd
23083 \end_layout
23084
23085 \begin_layout LyX-Code
23086 Format Ascii
23087 \end_layout
23088
23089 \begin_layout LyX-Code
23090 Product "$$Contents(
23091 \backslash
23092 "$$AbsPath$$Basename.asc
23093 \backslash
23094 ")"
23095 \end_layout
23096
23097 \begin_layout LyX-Code
23098 UpdateFormat asciixfig
23099 \end_layout
23100
23101 \begin_layout LyX-Code
23102 UpdateResult "$$AbsPath$$Basename.asc"
23103 \end_layout
23104
23105 \begin_layout LyX-Code
23106 FormatEnd
23107 \end_layout
23108
23109 \begin_layout LyX-Code
23110 Format DocBook
23111 \end_layout
23112
23113 \begin_layout LyX-Code
23114 Product "<graphic fileref=
23115 \backslash
23116 "$$AbsOrRelPathMaster$$Basename.eps
23117 \backslash
23118 ">
23119 \end_layout
23120
23121 \begin_layout LyX-Code
23122          </graphic>"
23123 \end_layout
23124
23125 \begin_layout LyX-Code
23126 UpdateFormat eps
23127 \end_layout
23128
23129 \begin_layout LyX-Code
23130 UpdateResult "$$AbsPath$$Basename.eps"
23131 \end_layout
23132
23133 \begin_layout LyX-Code
23134 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23135 \end_layout
23136
23137 \begin_layout LyX-Code
23138 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23139 \end_layout
23140
23141 \begin_layout LyX-Code
23142 FormatEnd
23143 \end_layout
23144
23145 \begin_layout LyX-Code
23146 Product "[XFig: $$FName]"
23147 \end_layout
23148
23149 \begin_layout LyX-Code
23150 FormatEnd
23151 \end_layout
23152
23153 \begin_layout LyX-Code
23154 TemplateEnd
23155 \end_layout
23156
23157 \begin_layout Standard
23158 As you can see, the template is enclosed in 
23159 \begin_inset Flex Code
23160 status collapsed
23161
23162 \begin_layout Plain Layout
23163 Template
23164 \end_layout
23165
23166 \end_inset
23167
23168  \SpecialChar ldots
23169  
23170 \begin_inset Flex Code
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174 TemplateEnd
23175 \end_layout
23176
23177 \end_inset
23178
23179 .
23180  It contains a header specifying some general settings and, for each supported
23181  primary document file format, a section 
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186 Format
23187 \end_layout
23188
23189 \end_inset
23190
23191  \SpecialChar ldots
23192  
23193 \begin_inset Flex Code
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197 FormatEnd
23198 \end_layout
23199
23200 \end_inset
23201
23202 .
23203 \end_layout
23204
23205 \begin_layout Subsection
23206 The template header
23207 \end_layout
23208
23209 \begin_layout Description
23210 \begin_inset Flex Code
23211 status collapsed
23212
23213 \begin_layout Plain Layout
23214 AutomaticProduction
23215 \begin_inset space ~
23216 \end_inset
23217
23218 true|false
23219 \end_layout
23220
23221 \end_inset
23222
23223  Whether the file represented by the template must be generated by \SpecialChar LyX
23224 .
23225  This command must occur exactly once.
23226 \end_layout
23227
23228 \begin_layout Description
23229 \begin_inset Flex Code
23230 status collapsed
23231
23232 \begin_layout Plain Layout
23233 FileFilter
23234 \begin_inset space ~
23235 \end_inset
23236
23237 <pattern>
23238 \end_layout
23239
23240 \end_inset
23241
23242  A glob pattern that is used in the file dialog to filter out the desired
23243  files.
23244  If there is more than one possible file extension (e.
23245 \begin_inset space \thinspace{}
23246 \end_inset
23247
23248 g.
23249 \begin_inset space \space{}
23250 \end_inset
23251
23252 tgif has 
23253 \begin_inset Flex Code
23254 status collapsed
23255
23256 \begin_layout Plain Layout
23257 .obj
23258 \end_layout
23259
23260 \end_inset
23261
23262  and 
23263 \begin_inset Flex Code
23264 status collapsed
23265
23266 \begin_layout Plain Layout
23267 .tgo
23268 \end_layout
23269
23270 \end_inset
23271
23272 ), use something like 
23273 \begin_inset Flex Code
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 "*.{obj,tgo}"
23278 \end_layout
23279
23280 \end_inset
23281
23282 .
23283  This command must occur exactly once.
23284 \end_layout
23285
23286 \begin_layout Description
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291 GuiName
23292 \begin_inset space ~
23293 \end_inset
23294
23295 <guiname>
23296 \end_layout
23297
23298 \end_inset
23299
23300  The text that is displayed on the button.
23301  This command must occur exactly once.
23302 \end_layout
23303
23304 \begin_layout Description
23305 \begin_inset Flex Code
23306 status collapsed
23307
23308 \begin_layout Plain Layout
23309 HelpText
23310 \begin_inset space ~
23311 \end_inset
23312
23313 <text>
23314 \begin_inset space ~
23315 \end_inset
23316
23317 HelpTextEnd
23318 \end_layout
23319
23320 \end_inset
23321
23322  The help text that is used in the External dialog.
23323  Provide enough information to explain to the user just what the template
23324  can provide him with.
23325  This command must occur exactly once.
23326 \end_layout
23327
23328 \begin_layout Description
23329 \begin_inset Flex Code
23330 status collapsed
23331
23332 \begin_layout Plain Layout
23333 InputFormat
23334 \begin_inset space ~
23335 \end_inset
23336
23337 <format>
23338 \end_layout
23339
23340 \end_inset
23341
23342  The file format of the original file.
23343  This must be the name of a format that is known to \SpecialChar LyX
23344  (see 
23345 \begin_inset CommandInset ref
23346 LatexCommand ref
23347 reference "sec:Formats"
23348
23349 \end_inset
23350
23351 ).
23352  Use 
23353 \begin_inset Quotes eld
23354 \end_inset
23355
23356
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 *
23362 \end_layout
23363
23364 \end_inset
23365
23366
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370  if the template can handle original files of more than one format.
23371  \SpecialChar LyX
23372  will attempt to interrogate the file itself in order to deduce its format
23373  in this case.
23374  This command must occur exactly once.
23375 \end_layout
23376
23377 \begin_layout Description
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 Template
23383 \begin_inset space ~
23384 \end_inset
23385
23386 <id>
23387 \end_layout
23388
23389 \end_inset
23390
23391  A unique name for the template.
23392  It must not contain substitution macros (see below).
23393 \end_layout
23394
23395 \begin_layout Description
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 Transform
23401 \begin_inset space ~
23402 \end_inset
23403
23404 Rotate|Resize|Clip|Extra
23405 \end_layout
23406
23407 \end_inset
23408
23409  This command specifies which transformations are supported by this template.
23410  It may occur zero or more times.
23411  This command enables the corresponding tabs in the external dialog.
23412  Each 
23413 \begin_inset Flex Code
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417 Transform
23418 \end_layout
23419
23420 \end_inset
23421
23422  command must have either a corresponding 
23423 \begin_inset Flex Code
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427 TransformCommand
23428 \end_layout
23429
23430 \end_inset
23431
23432  or a 
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 TransformOption
23438 \end_layout
23439
23440 \end_inset
23441
23442  command in the 
23443 \begin_inset Flex Code
23444 status collapsed
23445
23446 \begin_layout Plain Layout
23447 Format
23448 \end_layout
23449
23450 \end_inset
23451
23452  section.
23453  Otherwise the transformation will not be supported by that format.
23454 \end_layout
23455
23456 \begin_layout Subsection
23457 The Format section
23458 \end_layout
23459
23460 \begin_layout Description
23461 \begin_inset Flex Code
23462 status collapsed
23463
23464 \begin_layout Plain Layout
23465 Format
23466 \begin_inset space ~
23467 \end_inset
23468
23469 LaTeX|PDFLaTeX|PlainText|DocBook
23470 \end_layout
23471
23472 \end_inset
23473
23474  The primary document file format that this format definition is for.
23475  Not every template has a sensible representation in all document file formats.
23476  Please define nevertheless a 
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 Format
23482 \end_layout
23483
23484 \end_inset
23485
23486  section for all templates.
23487  Use a dummy text when no representation is available.
23488  Then you can at least see a reference to the external material in the exported
23489  document.
23490 \end_layout
23491
23492 \begin_layout Description
23493 \begin_inset Flex Code
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 Option
23498 \begin_inset space ~
23499 \end_inset
23500
23501 <name>
23502 \begin_inset space ~
23503 \end_inset
23504
23505 <value>
23506 \end_layout
23507
23508 \end_inset
23509
23510  This command defines an additional macro 
23511 \begin_inset Flex Code
23512 status collapsed
23513
23514 \begin_layout Plain Layout
23515 $$<name>
23516 \end_layout
23517
23518 \end_inset
23519
23520  for substitution in 
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 Product
23526 \end_layout
23527
23528 \end_inset
23529
23530 .
23531  
23532 \begin_inset Flex Code
23533 status collapsed
23534
23535 \begin_layout Plain Layout
23536 <value>
23537 \end_layout
23538
23539 \end_inset
23540
23541  itself may contain substitution macros.
23542  The advantage over using 
23543 \begin_inset Flex Code
23544 status collapsed
23545
23546 \begin_layout Plain Layout
23547 <value>
23548 \end_layout
23549
23550 \end_inset
23551
23552  directly in 
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557 Product
23558 \end_layout
23559
23560 \end_inset
23561
23562  is that the substituted value of 
23563 \begin_inset Flex Code
23564 status collapsed
23565
23566 \begin_layout Plain Layout
23567 $$<name>
23568 \end_layout
23569
23570 \end_inset
23571
23572  is sanitized so that it is a valid optional argument in the document format.
23573  This command may occur zero or more times.
23574 \end_layout
23575
23576 \begin_layout Description
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 Product
23582 \begin_inset space ~
23583 \end_inset
23584
23585 <text>
23586 \end_layout
23587
23588 \end_inset
23589
23590  The text that is inserted in the exported document.
23591  This is actually the most important command and can be quite complex.
23592  This command must occur exactly once.
23593 \end_layout
23594
23595 \begin_layout Description
23596 \begin_inset Flex Code
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600 Preamble
23601 \begin_inset space ~
23602 \end_inset
23603
23604 <name>
23605 \end_layout
23606
23607 \end_inset
23608
23609  This command specifies a preamble snippet that will be included in the
23610  \SpecialChar LaTeX
23611  preamble.
23612  It has to be defined using 
23613 \begin_inset Flex Code
23614 status collapsed
23615
23616 \begin_layout Plain Layout
23617 PreambleDef
23618 \end_layout
23619
23620 \end_inset
23621
23622  \SpecialChar ldots
23623  
23624 \begin_inset Flex Code
23625 status collapsed
23626
23627 \begin_layout Plain Layout
23628 PreambleDefEnd
23629 \end_layout
23630
23631 \end_inset
23632
23633 .
23634  This command may occur zero or more times.
23635 \end_layout
23636
23637 \begin_layout Description
23638 \begin_inset Flex Code
23639 status collapsed
23640
23641 \begin_layout Plain Layout
23642 ReferencedFile
23643 \begin_inset space ~
23644 \end_inset
23645
23646 <format>
23647 \begin_inset space ~
23648 \end_inset
23649
23650 <filename>
23651 \end_layout
23652
23653 \end_inset
23654
23655  This command denotes files that are created by the conversion process and
23656  are needed for a particular export format.
23657  If the filename is relative, it is interpreted relative to the master document.
23658  This command may be given zero or more times.
23659 \end_layout
23660
23661 \begin_layout Description
23662 \begin_inset Flex Code
23663 status collapsed
23664
23665 \begin_layout Plain Layout
23666 Requirement
23667 \begin_inset space ~
23668 \end_inset
23669
23670 <package>
23671 \end_layout
23672
23673 \end_inset
23674
23675  The name of a required \SpecialChar LaTeX
23676  package.
23677  The package is included via 
23678 \begin_inset Flex Code
23679 status collapsed
23680
23681 \begin_layout Plain Layout
23682
23683 \backslash
23684 usepackage{}
23685 \end_layout
23686
23687 \end_inset
23688
23689  in the \SpecialChar LaTeX
23690  preamble.
23691  This command may occur zero or more times.
23692 \end_layout
23693
23694 \begin_layout Description
23695 \begin_inset Flex Code
23696 status collapsed
23697
23698 \begin_layout Plain Layout
23699 TransformCommand
23700 \begin_inset space ~
23701 \end_inset
23702
23703 Rotate
23704 \begin_inset space ~
23705 \end_inset
23706
23707 RotationLatexCommand
23708 \end_layout
23709
23710 \end_inset
23711
23712  This command specifies that the built in \SpecialChar LaTeX
23713  command should be used for rotation.
23714  This command may occur once or not at all.
23715 \end_layout
23716
23717 \begin_layout Description
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 TransformCommand
23723 \begin_inset space ~
23724 \end_inset
23725
23726 Resize
23727 \begin_inset space ~
23728 \end_inset
23729
23730 ResizeLatexCommand
23731 \end_layout
23732
23733 \end_inset
23734
23735  This command specifies that the built in \SpecialChar LaTeX
23736  command should be used for resizing.
23737  This command may occur once or not at all.
23738 \end_layout
23739
23740 \begin_layout Description
23741 \begin_inset Flex Code
23742 status collapsed
23743
23744 \begin_layout Plain Layout
23745 TransformOption
23746 \begin_inset space ~
23747 \end_inset
23748
23749 Rotate
23750 \begin_inset space ~
23751 \end_inset
23752
23753 RotationLatexOption
23754 \end_layout
23755
23756 \end_inset
23757
23758  This command specifies that rotation is done via an optional argument.
23759  This command may occur once or not at all.
23760 \end_layout
23761
23762 \begin_layout Description
23763 \begin_inset Flex Code
23764 status collapsed
23765
23766 \begin_layout Plain Layout
23767 TransformOption
23768 \begin_inset space ~
23769 \end_inset
23770
23771 Resize
23772 \begin_inset space ~
23773 \end_inset
23774
23775 ResizeLatexOption
23776 \end_layout
23777
23778 \end_inset
23779
23780  This command specifies that resizing is done via an optional argument.
23781  This command may occur once or not at all.
23782 \end_layout
23783
23784 \begin_layout Description
23785 \begin_inset Flex Code
23786 status collapsed
23787
23788 \begin_layout Plain Layout
23789 TransformOption
23790 \begin_inset space ~
23791 \end_inset
23792
23793 Clip
23794 \begin_inset space ~
23795 \end_inset
23796
23797 ClipLatexOption
23798 \end_layout
23799
23800 \end_inset
23801
23802  This command specifies that clipping is done via an optional argument.
23803  This command may occur once or not at all.
23804 \end_layout
23805
23806 \begin_layout Description
23807 \begin_inset Flex Code
23808 status collapsed
23809
23810 \begin_layout Plain Layout
23811 TransformOption
23812 \begin_inset space ~
23813 \end_inset
23814
23815 Extra
23816 \begin_inset space ~
23817 \end_inset
23818
23819 ExtraLatexOption
23820 \end_layout
23821
23822 \end_inset
23823
23824  This command specifies that an extra optional argument is used.
23825  This command may occur once or not at all.
23826 \end_layout
23827
23828 \begin_layout Description
23829 \begin_inset Flex Code
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 UpdateFormat
23834 \begin_inset space ~
23835 \end_inset
23836
23837 <format>
23838 \end_layout
23839
23840 \end_inset
23841
23842  The file format of the converted file.
23843  This must be the name of a format that is known to \SpecialChar LyX
23844  (see the 
23845 \begin_inset Flex Noun
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849 Tools\SpecialChar menuseparator
23850 Preferences\SpecialChar menuseparator
23851 File Handling\SpecialChar menuseparator
23852 File Format
23853 \end_layout
23854
23855 \end_inset
23856
23857  dialog).
23858  This command must occur exactly once.
23859  If the resulting file format is PDF, you need to specify the format 
23860 \begin_inset Flex Code
23861 status collapsed
23862
23863 \begin_layout Plain Layout
23864 pdf6
23865 \end_layout
23866
23867 \end_inset
23868
23869 .
23870  This is the PDF format used for including graphics.
23871  The other defined PDF formats are for document export.
23872 \end_layout
23873
23874 \begin_layout Description
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879 UpdateResult
23880 \begin_inset space ~
23881 \end_inset
23882
23883 <filename>
23884 \end_layout
23885
23886 \end_inset
23887
23888  The file name of the converted file.
23889  The file name must be absolute.
23890  This command must occur exactly once.
23891 \end_layout
23892
23893 \begin_layout Subsection
23894 Preamble definitions
23895 \end_layout
23896
23897 \begin_layout Standard
23898 The external template configuration file may contain additional preamble
23899  definitions enclosed by 
23900 \begin_inset Flex Code
23901 status collapsed
23902
23903 \begin_layout Plain Layout
23904 PreambleDef
23905 \end_layout
23906
23907 \end_inset
23908
23909  \SpecialChar ldots
23910  
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 PreambleDefEnd
23916 \end_layout
23917
23918 \end_inset
23919
23920 .
23921  They can be used by the templates in the 
23922 \begin_inset Flex Code
23923 status collapsed
23924
23925 \begin_layout Plain Layout
23926 Format
23927 \end_layout
23928
23929 \end_inset
23930
23931  section.
23932 \end_layout
23933
23934 \begin_layout Section
23935 The substitution mechanism
23936 \end_layout
23937
23938 \begin_layout Standard
23939 When the external material facility invokes an external program, it is done
23940  on the basis of a command defined in the template configuration file.
23941  These commands can contain various macros that are expanded before execution.
23942  Execution always take place in the directory of the containing document.
23943 \end_layout
23944
23945 \begin_layout Standard
23946 Also, whenever external material is to be displayed, the name will be produced
23947  by the substitution mechanism, and most other commands in the template
23948  definition support substitution as well.
23949 \end_layout
23950
23951 \begin_layout Standard
23952 The available macros are the following:
23953 \end_layout
23954
23955 \begin_layout Description
23956 \begin_inset Flex Code
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 $$AbsOrRelPathMaster
23961 \end_layout
23962
23963 \end_inset
23964
23965  The file path, absolute or relative to the master \SpecialChar LyX
23966  document.
23967 \end_layout
23968
23969 \begin_layout Description
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 $$AbsOrRelPathParent
23975 \end_layout
23976
23977 \end_inset
23978
23979  The file path, absolute or relative to the \SpecialChar LyX
23980  document.
23981 \end_layout
23982
23983 \begin_layout Description
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 $$AbsPath
23989 \end_layout
23990
23991 \end_inset
23992
23993  The absolute file path.
23994 \end_layout
23995
23996 \begin_layout Description
23997 \begin_inset Flex Code
23998 status collapsed
23999
24000 \begin_layout Plain Layout
24001 $$Basename
24002 \end_layout
24003
24004 \end_inset
24005
24006  The filename without path and without the extension.
24007 \end_layout
24008
24009 \begin_layout Description
24010 \begin_inset Flex Code
24011 status collapsed
24012
24013 \begin_layout Plain Layout
24014 $$Contents(
24015 \begin_inset Quotes eld
24016 \end_inset
24017
24018 filename.ext
24019 \begin_inset Quotes erd
24020 \end_inset
24021
24022 )
24023 \end_layout
24024
24025 \end_inset
24026
24027  This macro will expand to the contents of the file with the name 
24028 \begin_inset Flex Code
24029 status collapsed
24030
24031 \begin_layout Plain Layout
24032 filename.ext
24033 \end_layout
24034
24035 \end_inset
24036
24037 .
24038 \end_layout
24039
24040 \begin_layout Description
24041 \begin_inset Flex Code
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045 $$Extension
24046 \end_layout
24047
24048 \end_inset
24049
24050  The file extension (including the dot).
24051 \end_layout
24052
24053 \begin_layout Description
24054 \begin_inset Flex Code
24055 status collapsed
24056
24057 \begin_layout Plain Layout
24058 $$pngOrjpg
24059 \end_layout
24060
24061 \end_inset
24062
24063  This will be the string 
24064 \begin_inset Quotes eld
24065 \end_inset
24066
24067 jpg
24068 \begin_inset Quotes erd
24069 \end_inset
24070
24071  if the file is in JPEG format, otherwise it will be the string 
24072 \begin_inset Quotes eld
24073 \end_inset
24074
24075 png
24076 \begin_inset Quotes erd
24077 \end_inset
24078
24079 .
24080  This is useful to avoid uneeded conversions for output formats that support
24081  both PNG and JPEG fomats.
24082  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
24083  output
24084  format.
24085 \end_layout
24086
24087 \begin_layout Description
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092 $$FName
24093 \end_layout
24094
24095 \end_inset
24096
24097  The filename of the file specified in the external material dialog.
24098  This is either an absolute name, or it is relative to the \SpecialChar LyX
24099  document.
24100 \end_layout
24101
24102 \begin_layout Description
24103 \begin_inset Flex Code
24104 status collapsed
24105
24106 \begin_layout Plain Layout
24107 $$FPath
24108 \end_layout
24109
24110 \end_inset
24111
24112  The path part of 
24113 \begin_inset Flex Code
24114 status collapsed
24115
24116 \begin_layout Plain Layout
24117 $$FName
24118 \end_layout
24119
24120 \end_inset
24121
24122  (absolute name or relative to the \SpecialChar LyX
24123  document).
24124 \end_layout
24125
24126 \begin_layout Description
24127 \begin_inset Flex Code
24128 status collapsed
24129
24130 \begin_layout Plain Layout
24131 $$RelPathMaster
24132 \end_layout
24133
24134 \end_inset
24135
24136  The file path, relative to the master \SpecialChar LyX
24137  document.
24138 \end_layout
24139
24140 \begin_layout Description
24141 \begin_inset Flex Code
24142 status collapsed
24143
24144 \begin_layout Plain Layout
24145 $$RelPathParent
24146 \end_layout
24147
24148 \end_inset
24149
24150  The file path, relative to the \SpecialChar LyX
24151  document.
24152 \end_layout
24153
24154 \begin_layout Description
24155 \begin_inset Flex Code
24156 status collapsed
24157
24158 \begin_layout Plain Layout
24159 $$Sysdir
24160 \end_layout
24161
24162 \end_inset
24163
24164  This macro will expand to the absolute path of the system directory.
24165  This is typically used to point to the various helper scripts that are
24166  bundled with \SpecialChar LyX
24167 .
24168 \end_layout
24169
24170 \begin_layout Description
24171 \begin_inset Flex Code
24172 status collapsed
24173
24174 \begin_layout Plain Layout
24175 $$Tempname
24176 \end_layout
24177
24178 \end_inset
24179
24180  A name and full path to a temporary file which will be automatically deleted
24181  whenever the containing document is closed, or the external material insertion
24182  deleted.
24183 \end_layout
24184
24185 \begin_layout Standard
24186 All path macros contain a trailing directory separator, so you can construct
24187  e.
24188 \begin_inset space \thinspace{}
24189 \end_inset
24190
24191 g.
24192 \begin_inset space \space{}
24193 \end_inset
24194
24195 the absolute filename with 
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200 $$AbsPath$$Basename$$Extension
24201 \end_layout
24202
24203 \end_inset
24204
24205 .
24206 \end_layout
24207
24208 \begin_layout Standard
24209 The macros above are substituted in all commands unless otherwise noted.
24210  The command 
24211 \begin_inset Flex Code
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 Product
24216 \end_layout
24217
24218 \end_inset
24219
24220  supports additionally the following substitutions if they are enabled by
24221  the 
24222 \begin_inset Flex Code
24223 status collapsed
24224
24225 \begin_layout Plain Layout
24226 Transform
24227 \end_layout
24228
24229 \end_inset
24230
24231  and 
24232 \begin_inset Flex Code
24233 status collapsed
24234
24235 \begin_layout Plain Layout
24236 TransformCommand
24237 \end_layout
24238
24239 \end_inset
24240
24241  commands:
24242 \end_layout
24243
24244 \begin_layout Description
24245 \begin_inset Flex Code
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249 $$ResizeFront
24250 \end_layout
24251
24252 \end_inset
24253
24254  The front part of the resize command.
24255 \end_layout
24256
24257 \begin_layout Description
24258 \begin_inset Flex Code
24259 status collapsed
24260
24261 \begin_layout Plain Layout
24262 $$ResizeBack
24263 \end_layout
24264
24265 \end_inset
24266
24267  The back part of the resize command.
24268 \end_layout
24269
24270 \begin_layout Description
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 $$RotateFront
24276 \end_layout
24277
24278 \end_inset
24279
24280  The front part of the rotation command.
24281 \end_layout
24282
24283 \begin_layout Description
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 $$RotateBack
24289 \end_layout
24290
24291 \end_inset
24292
24293  The back part of the rotation command.
24294 \end_layout
24295
24296 \begin_layout Standard
24297 The value string of the 
24298 \begin_inset Flex Code
24299 status collapsed
24300
24301 \begin_layout Plain Layout
24302 Option
24303 \end_layout
24304
24305 \end_inset
24306
24307  command supports additionally the following substitutions if they are enabled
24308  by the 
24309 \begin_inset Flex Code
24310 status collapsed
24311
24312 \begin_layout Plain Layout
24313 Transform
24314 \end_layout
24315
24316 \end_inset
24317
24318  and 
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323 TransformOption
24324 \end_layout
24325
24326 \end_inset
24327
24328  commands:
24329 \end_layout
24330
24331 \begin_layout Description
24332 \begin_inset Flex Code
24333 status collapsed
24334
24335 \begin_layout Plain Layout
24336 $$Clip
24337 \end_layout
24338
24339 \end_inset
24340
24341  The clip option.
24342 \end_layout
24343
24344 \begin_layout Description
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 $$Extra
24350 \end_layout
24351
24352 \end_inset
24353
24354  The extra option.
24355 \end_layout
24356
24357 \begin_layout Description
24358 \begin_inset Flex Code
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362 $$Resize
24363 \end_layout
24364
24365 \end_inset
24366
24367  The resize option.
24368 \end_layout
24369
24370 \begin_layout Description
24371 \begin_inset Flex Code
24372 status collapsed
24373
24374 \begin_layout Plain Layout
24375 $$Rotate
24376 \end_layout
24377
24378 \end_inset
24379
24380  The rotation option.
24381 \end_layout
24382
24383 \begin_layout Standard
24384 You may ask why there are so many path macros.
24385  There are mainly two reasons:
24386 \end_layout
24387
24388 \begin_layout Enumerate
24389 Relative and absolute file names should remain relative or absolute, respectivel
24390 y.
24391  Users may have reasons to prefer either form.
24392  Relative names are useful for portable documents that should work on different
24393  machines, for example.
24394  Absolute names may be required by some programs.
24395 \end_layout
24396
24397 \begin_layout Enumerate
24398 \SpecialChar LaTeX
24399  treats relative file names differently than \SpecialChar LyX
24400  and other programs in nested
24401  included files.
24402  For \SpecialChar LyX
24403 , a relative file name is always relative to the document that contains
24404  the file name.
24405  For \SpecialChar LaTeX
24406 , it is always relative to the master document.
24407  These two definitions are identical if you have only one document, but
24408  differ if you have a master document that includes part documents.
24409  That means that relative filenames must be transformed when presented to
24410  \SpecialChar LaTeX
24411 .
24412  Fortunately \SpecialChar LyX
24413  does this automatically for you if you choose the right macros.
24414 \end_layout
24415
24416 \begin_layout Standard
24417 So which path macro should be used in new template definitions? The rule
24418  is not difficult:
24419 \end_layout
24420
24421 \begin_layout Itemize
24422 Use 
24423 \begin_inset Flex Code
24424 status collapsed
24425
24426 \begin_layout Plain Layout
24427 $$AbsPath
24428 \end_layout
24429
24430 \end_inset
24431
24432  if an absolute path is required.
24433 \end_layout
24434
24435 \begin_layout Itemize
24436 Use 
24437 \begin_inset Flex Code
24438 status collapsed
24439
24440 \begin_layout Plain Layout
24441 $$AbsOrRelPathMaster
24442 \end_layout
24443
24444 \end_inset
24445
24446  if the substituted string is some kind of \SpecialChar LaTeX
24447  input.
24448 \end_layout
24449
24450 \begin_layout Itemize
24451 Else use 
24452 \begin_inset Flex Code
24453 status collapsed
24454
24455 \begin_layout Plain Layout
24456 $$AbsOrRelPathParent
24457 \end_layout
24458
24459 \end_inset
24460
24461  in order to preserve the user's choice.
24462 \end_layout
24463
24464 \begin_layout Standard
24465 There are special cases where this rule does not work and e.
24466 \begin_inset space \thinspace{}
24467 \end_inset
24468
24469 g.
24470 \begin_inset space \space{}
24471 \end_inset
24472
24473 relative names are needed, but normally it will work just fine.
24474  One example for such a case is the command 
24475 \begin_inset Flex Code
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24480 \end_layout
24481
24482 \end_inset
24483
24484  in the XFig template above: We can't use the absolute name because the
24485  copier for 
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 .pstex_t
24491 \end_layout
24492
24493 \end_inset
24494
24495  files needs the relative name in order to rewrite the file content.
24496 \end_layout
24497
24498 \begin_layout Section
24499 Security discussion
24500 \begin_inset CommandInset label
24501 LatexCommand label
24502 name "sec:Security-discussion"
24503
24504 \end_inset
24505
24506
24507 \end_layout
24508
24509 \begin_layout Standard
24510 The external material feature interfaces with a lot of external programs
24511  and does so automatically, so we have to consider the security implications
24512  of this.
24513  In particular, since you have the option of including your own filenames
24514  and/or parameter strings and those are expanded into a command, it seems
24515  that it would be possible to create a malicious document which executes
24516  arbitrary commands when a user views or prints the document.
24517  This is something we definitely want to avoid.
24518 \end_layout
24519
24520 \begin_layout Standard
24521 However, since the external program commands are specified in the template
24522  configuration file only, there are no security issues if \SpecialChar LyX
24523  is properly configure
24524 d with safe templates only.
24525  This is so because the external programs are invoked with the 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 execvp
24531 \end_layout
24532
24533 \end_inset
24534
24535 -system call rather than the 
24536 \begin_inset Flex Code
24537 status collapsed
24538
24539 \begin_layout Plain Layout
24540 system
24541 \end_layout
24542
24543 \end_inset
24544
24545  system-call, so it's not possible to execute arbitrary commands from the
24546  filename or parameter section via the shell.
24547 \end_layout
24548
24549 \begin_layout Standard
24550 This also implies that you are restricted in what command strings you can
24551  use in the external material templates.
24552  In particular, pipes and redirection are not readily available.
24553  This has to be so if \SpecialChar LyX
24554  should remain safe.
24555  If you want to use some of the shell features, you should write a safe
24556  script to do this in a controlled manner, and then invoke the script from
24557  the command string.
24558  
24559 \end_layout
24560
24561 \begin_layout Standard
24562 It is possible to design a template that interacts directly with the shell,
24563  but since this would allow a malicious user to execute arbitrary commands
24564  by writing clever filenames and/or parameters, we generally recommend that
24565  you only use safe scripts that work with the 
24566 \begin_inset Flex Code
24567 status collapsed
24568
24569 \begin_layout Plain Layout
24570 execvp
24571 \end_layout
24572
24573 \end_inset
24574
24575  system call in a controlled manner.
24576  Of course, for use in a controlled environment, it can be tempting to just
24577  fall back to use ordinary shell scripts.
24578  If you do so, be aware that you 
24579 \emph on
24580 will
24581 \emph default
24582  provide an easily exploitable security hole in your system.
24583  Of course it stands to reason that such unsafe templates will never be
24584  included in the standard \SpecialChar LyX
24585  distribution, although we do encourage people
24586  to submit new templates in the open source tradition.
24587  But \SpecialChar LyX
24588  as shipped from the official distribution channels will never have
24589  unsafe templates.
24590 \end_layout
24591
24592 \begin_layout Standard
24593 Including external material provides a lot of power, and you have to be
24594  careful not to introduce security hazards with this power.
24595  A subtle error in a single line in an innocent looking script can open
24596  the door to huge security problems.
24597  So if you do not fully understand the issues, we recommend that you consult
24598  a knowledgeable security professional or the \SpecialChar LyX
24599  development team if you have
24600  any questions about whether a given template is safe or not.
24601  And do this before you use it in an uncontrolled environment.
24602 \end_layout
24603
24604 \begin_layout Chapter
24605 \start_of_appendix
24606 List of supported \SpecialChar LyX
24607  functions to be used in layouts
24608 \begin_inset CommandInset label
24609 LatexCommand label
24610 name "chap:List-of-functions"
24611
24612 \end_inset
24613
24614
24615 \end_layout
24616
24617 \begin_layout Standard
24618 \align center
24619 \begin_inset Tabular
24620 <lyxtabular version="3" rows="11" columns="8">
24621 <features tabularvalignment="middle">
24622 <column alignment="left" valignment="top">
24623 <column alignment="left" valignment="top">
24624 <column alignment="left" valignment="top">
24625 <column alignment="left" valignment="top">
24626 <column alignment="left" valignment="top">
24627 <column alignment="left" valignment="top">
24628 <column alignment="left" valignment="top">
24629 <column alignment="left" valignment="top">
24630 <row>
24631 <cell alignment="left" valignment="top" usebox="none">
24632 \begin_inset Text
24633
24634 \begin_layout Plain Layout
24635 accents
24636 \end_layout
24637
24638 \end_inset
24639 </cell>
24640 <cell alignment="left" valignment="top" usebox="none">
24641 \begin_inset Text
24642
24643 \begin_layout Plain Layout
24644 booktabs
24645 \end_layout
24646
24647 \end_inset
24648 </cell>
24649 <cell alignment="left" valignment="top" usebox="none">
24650 \begin_inset Text
24651
24652 \begin_layout Plain Layout
24653 feyn
24654 \end_layout
24655
24656 \end_inset
24657 </cell>
24658 <cell alignment="left" valignment="top" usebox="none">
24659 \begin_inset Text
24660
24661 \begin_layout Plain Layout
24662 listings
24663 \end_layout
24664
24665 \end_inset
24666 </cell>
24667 <cell alignment="center" valignment="top" usebox="none">
24668 \begin_inset Text
24669
24670 \begin_layout Plain Layout
24671 natbib
24672 \end_layout
24673
24674 \end_inset
24675 </cell>
24676 <cell alignment="center" valignment="top" usebox="none">
24677 \begin_inset Text
24678
24679 \begin_layout Plain Layout
24680 rotfloat
24681 \end_layout
24682
24683 \end_inset
24684 </cell>
24685 <cell alignment="center" valignment="top" usebox="none">
24686 \begin_inset Text
24687
24688 \begin_layout Plain Layout
24689 tfrupee
24690 \end_layout
24691
24692 \end_inset
24693 </cell>
24694 <cell alignment="center" valignment="top" usebox="none">
24695 \begin_inset Text
24696
24697 \begin_layout Plain Layout
24698 wasysym
24699 \end_layout
24700
24701 \end_inset
24702 </cell>
24703 </row>
24704 <row>
24705 <cell alignment="left" valignment="top" usebox="none">
24706 \begin_inset Text
24707
24708 \begin_layout Plain Layout
24709 amsbsy
24710 \end_layout
24711
24712 \end_inset
24713 </cell>
24714 <cell alignment="left" valignment="top" usebox="none">
24715 \begin_inset Text
24716
24717 \begin_layout Plain Layout
24718 calc
24719 \end_layout
24720
24721 \end_inset
24722 </cell>
24723 <cell alignment="left" valignment="top" usebox="none">
24724 \begin_inset Text
24725
24726 \begin_layout Plain Layout
24727 fixltx2e
24728 \end_layout
24729
24730 \end_inset
24731 </cell>
24732 <cell alignment="left" valignment="top" usebox="none">
24733 \begin_inset Text
24734
24735 \begin_layout Plain Layout
24736 longtable
24737 \end_layout
24738
24739 \end_inset
24740 </cell>
24741 <cell alignment="center" valignment="top" usebox="none">
24742 \begin_inset Text
24743
24744 \begin_layout Plain Layout
24745 nomencl
24746 \end_layout
24747
24748 \end_inset
24749 </cell>
24750 <cell alignment="center" valignment="top" usebox="none">
24751 \begin_inset Text
24752
24753 \begin_layout Plain Layout
24754 rsphrase
24755 \end_layout
24756
24757 \end_inset
24758 </cell>
24759 <cell alignment="center" valignment="top" usebox="none">
24760 \begin_inset Text
24761
24762 \begin_layout Plain Layout
24763 tipa
24764 \end_layout
24765
24766 \end_inset
24767 </cell>
24768 <cell alignment="center" valignment="top" usebox="none">
24769 \begin_inset Text
24770
24771 \begin_layout Plain Layout
24772 wrapfig
24773 \end_layout
24774
24775 \end_inset
24776 </cell>
24777 </row>
24778 <row>
24779 <cell alignment="left" valignment="top" usebox="none">
24780 \begin_inset Text
24781
24782 \begin_layout Plain Layout
24783 amscd
24784 \end_layout
24785
24786 \end_inset
24787 </cell>
24788 <cell alignment="left" valignment="top" usebox="none">
24789 \begin_inset Text
24790
24791 \begin_layout Plain Layout
24792 CJK
24793 \end_layout
24794
24795 \end_inset
24796 </cell>
24797 <cell alignment="left" valignment="top" usebox="none">
24798 \begin_inset Text
24799
24800 \begin_layout Plain Layout
24801 float
24802 \end_layout
24803
24804 \end_inset
24805 </cell>
24806 <cell alignment="left" valignment="top" usebox="none">
24807 \begin_inset Text
24808
24809 \begin_layout Plain Layout
24810 lyxskak
24811 \end_layout
24812
24813 \end_inset
24814 </cell>
24815 <cell alignment="center" valignment="top" usebox="none">
24816 \begin_inset Text
24817
24818 \begin_layout Plain Layout
24819 pdfcolmk
24820 \end_layout
24821
24822 \end_inset
24823 </cell>
24824 <cell alignment="center" valignment="top" usebox="none">
24825 \begin_inset Text
24826
24827 \begin_layout Plain Layout
24828 setspace
24829 \end_layout
24830
24831 \end_inset
24832 </cell>
24833 <cell alignment="center" valignment="top" usebox="none">
24834 \begin_inset Text
24835
24836 \begin_layout Plain Layout
24837 tipx
24838 \end_layout
24839
24840 \end_inset
24841 </cell>
24842 <cell alignment="center" valignment="top" usebox="none">
24843 \begin_inset Text
24844
24845 \begin_layout Plain Layout
24846 xargs
24847 \end_layout
24848
24849 \end_inset
24850 </cell>
24851 </row>
24852 <row>
24853 <cell alignment="left" valignment="top" usebox="none">
24854 \begin_inset Text
24855
24856 \begin_layout Plain Layout
24857 amsmath
24858 \end_layout
24859
24860 \end_inset
24861 </cell>
24862 <cell alignment="left" valignment="top" usebox="none">
24863 \begin_inset Text
24864
24865 \begin_layout Plain Layout
24866 color
24867 \end_layout
24868
24869 \end_inset
24870 </cell>
24871 <cell alignment="left" valignment="top" usebox="none">
24872 \begin_inset Text
24873
24874 \begin_layout Plain Layout
24875 framed
24876 \end_layout
24877
24878 \end_inset
24879 </cell>
24880 <cell alignment="left" valignment="top" usebox="none">
24881 \begin_inset Text
24882
24883 \begin_layout Plain Layout
24884 makeidx
24885 \end_layout
24886
24887 \end_inset
24888 </cell>
24889 <cell alignment="center" valignment="top" usebox="none">
24890 \begin_inset Text
24891
24892 \begin_layout Plain Layout
24893 pdfpages
24894 \end_layout
24895
24896 \end_inset
24897 </cell>
24898 <cell alignment="center" valignment="top" usebox="none">
24899 \begin_inset Text
24900
24901 \begin_layout Plain Layout
24902 shapepar
24903 \end_layout
24904
24905 \end_inset
24906 </cell>
24907 <cell alignment="center" valignment="top" usebox="none">
24908 \begin_inset Text
24909
24910 \begin_layout Plain Layout
24911 tone
24912 \end_layout
24913
24914 \end_inset
24915 </cell>
24916 <cell alignment="center" valignment="top" usebox="none">
24917 \begin_inset Text
24918
24919 \begin_layout Plain Layout
24920 xcolor
24921 \end_layout
24922
24923 \end_inset
24924 </cell>
24925 </row>
24926 <row>
24927 <cell alignment="left" valignment="top" usebox="none">
24928 \begin_inset Text
24929
24930 \begin_layout Plain Layout
24931 amssymb
24932 \end_layout
24933
24934 \end_inset
24935 </cell>
24936 <cell alignment="left" valignment="top" usebox="none">
24937 \begin_inset Text
24938
24939 \begin_layout Plain Layout
24940 covington
24941 \end_layout
24942
24943 \end_inset
24944 </cell>
24945 <cell alignment="left" valignment="top" usebox="none">
24946 \begin_inset Text
24947
24948 \begin_layout Plain Layout
24949 graphicx
24950 \end_layout
24951
24952 \end_inset
24953 </cell>
24954 <cell alignment="left" valignment="top" usebox="none">
24955 \begin_inset Text
24956
24957 \begin_layout Plain Layout
24958 marvosym
24959 \end_layout
24960
24961 \end_inset
24962 </cell>
24963 <cell alignment="center" valignment="top" usebox="none">
24964 \begin_inset Text
24965
24966 \begin_layout Plain Layout
24967 pifont
24968 \end_layout
24969
24970 \end_inset
24971 </cell>
24972 <cell alignment="center" valignment="top" usebox="none">
24973 \begin_inset Text
24974
24975 \begin_layout Plain Layout
24976 slashed
24977 \end_layout
24978
24979 \end_inset
24980 </cell>
24981 <cell alignment="center" valignment="top" usebox="none">
24982 \begin_inset Text
24983
24984 \begin_layout Plain Layout
24985 txfonts
24986 \end_layout
24987
24988 \end_inset
24989 </cell>
24990 <cell alignment="center" valignment="top" usebox="none">
24991 \begin_inset Text
24992
24993 \begin_layout Plain Layout
24994 xy
24995 \end_layout
24996
24997 \end_inset
24998 </cell>
24999 </row>
25000 <row>
25001 <cell alignment="left" valignment="top" usebox="none">
25002 \begin_inset Text
25003
25004 \begin_layout Plain Layout
25005 amstext
25006 \end_layout
25007
25008 \end_inset
25009 </cell>
25010 <cell alignment="left" valignment="top" usebox="none">
25011 \begin_inset Text
25012
25013 \begin_layout Plain Layout
25014 csquotes
25015 \end_layout
25016
25017 \end_inset
25018 </cell>
25019 <cell alignment="left" valignment="top" usebox="none">
25020 \begin_inset Text
25021
25022 \begin_layout Plain Layout
25023 hhline
25024 \end_layout
25025
25026 \end_inset
25027 </cell>
25028 <cell alignment="left" valignment="top" usebox="none">
25029 \begin_inset Text
25030
25031 \begin_layout Plain Layout
25032 mathdesign
25033 \end_layout
25034
25035 \end_inset
25036 </cell>
25037 <cell alignment="center" valignment="top" usebox="none">
25038 \begin_inset Text
25039
25040 \begin_layout Plain Layout
25041 pmboxdraw
25042 \end_layout
25043
25044 \end_inset
25045 </cell>
25046 <cell alignment="center" valignment="top" usebox="none">
25047 \begin_inset Text
25048
25049 \begin_layout Plain Layout
25050 soul
25051 \end_layout
25052
25053 \end_inset
25054 </cell>
25055 <cell alignment="center" valignment="top" usebox="none">
25056 \begin_inset Text
25057
25058 \begin_layout Plain Layout
25059 ulem
25060 \end_layout
25061
25062 \end_inset
25063 </cell>
25064 <cell alignment="center" valignment="top" usebox="none">
25065 \begin_inset Text
25066
25067 \begin_layout Plain Layout
25068 yhmath
25069 \end_layout
25070
25071 \end_inset
25072 </cell>
25073 </row>
25074 <row>
25075 <cell alignment="left" valignment="top" usebox="none">
25076 \begin_inset Text
25077
25078 \begin_layout Plain Layout
25079 amsthm
25080 \end_layout
25081
25082 \end_inset
25083 </cell>
25084 <cell alignment="left" valignment="top" usebox="none">
25085 \begin_inset Text
25086
25087 \begin_layout Plain Layout
25088 dvipost
25089 \end_layout
25090
25091 \end_inset
25092 </cell>
25093 <cell alignment="left" valignment="top" usebox="none">
25094 \begin_inset Text
25095
25096 \begin_layout Plain Layout
25097 hyperref
25098 \end_layout
25099
25100 \end_inset
25101 </cell>
25102 <cell alignment="left" valignment="top" usebox="none">
25103 \begin_inset Text
25104
25105 \begin_layout Plain Layout
25106 mathdots
25107 \end_layout
25108
25109 \end_inset
25110 </cell>
25111 <cell alignment="center" valignment="top" usebox="none">
25112 \begin_inset Text
25113
25114 \begin_layout Plain Layout
25115 polyglossia
25116 \end_layout
25117
25118 \end_inset
25119 </cell>
25120 <cell alignment="center" valignment="top" usebox="none">
25121 \begin_inset Text
25122
25123 \begin_layout Plain Layout
25124 splitidx
25125 \end_layout
25126
25127 \end_inset
25128 </cell>
25129 <cell alignment="center" valignment="top" usebox="none">
25130 \begin_inset Text
25131
25132 \begin_layout Plain Layout
25133 undertilde
25134 \end_layout
25135
25136 \end_inset
25137 </cell>
25138 <cell alignment="center" valignment="top" usebox="none">
25139 \begin_inset Text
25140
25141 \begin_layout Plain Layout
25142
25143 \end_layout
25144
25145 \end_inset
25146 </cell>
25147 </row>
25148 <row>
25149 <cell alignment="left" valignment="top" usebox="none">
25150 \begin_inset Text
25151
25152 \begin_layout Plain Layout
25153 array
25154 \end_layout
25155
25156 \end_inset
25157 </cell>
25158 <cell alignment="left" valignment="top" usebox="none">
25159 \begin_inset Text
25160
25161 \begin_layout Plain Layout
25162 endnotes
25163 \end_layout
25164
25165 \end_inset
25166 </cell>
25167 <cell alignment="left" valignment="top" usebox="none">
25168 \begin_inset Text
25169
25170 \begin_layout Plain Layout
25171 ifsym
25172 \end_layout
25173
25174 \end_inset
25175 </cell>
25176 <cell alignment="left" valignment="top" usebox="none">
25177 \begin_inset Text
25178
25179 \begin_layout Plain Layout
25180 mathrsfs
25181 \end_layout
25182
25183 \end_inset
25184 </cell>
25185 <cell alignment="center" valignment="top" usebox="none">
25186 \begin_inset Text
25187
25188 \begin_layout Plain Layout
25189 prettyref
25190 \end_layout
25191
25192 \end_inset
25193 </cell>
25194 <cell alignment="center" valignment="top" usebox="none">
25195 \begin_inset Text
25196
25197 \begin_layout Plain Layout
25198 subfig
25199 \end_layout
25200
25201 \end_inset
25202 </cell>
25203 <cell alignment="center" valignment="top" usebox="none">
25204 \begin_inset Text
25205
25206 \begin_layout Plain Layout
25207 units
25208 \end_layout
25209
25210 \end_inset
25211 </cell>
25212 <cell alignment="center" valignment="top" usebox="none">
25213 \begin_inset Text
25214
25215 \begin_layout Plain Layout
25216
25217 \end_layout
25218
25219 \end_inset
25220 </cell>
25221 </row>
25222 <row>
25223 <cell alignment="left" valignment="top" usebox="none">
25224 \begin_inset Text
25225
25226 \begin_layout Plain Layout
25227 ascii
25228 \end_layout
25229
25230 \end_inset
25231 </cell>
25232 <cell alignment="left" valignment="top" usebox="none">
25233 \begin_inset Text
25234
25235 \begin_layout Plain Layout
25236 enumitem
25237 \end_layout
25238
25239 \end_inset
25240 </cell>
25241 <cell alignment="left" valignment="top" usebox="none">
25242 \begin_inset Text
25243
25244 \begin_layout Plain Layout
25245 ifthen
25246 \end_layout
25247
25248 \end_inset
25249 </cell>
25250 <cell alignment="left" valignment="top" usebox="none">
25251 \begin_inset Text
25252
25253 \begin_layout Plain Layout
25254 mhchem
25255 \end_layout
25256
25257 \end_inset
25258 </cell>
25259 <cell alignment="center" valignment="top" usebox="none">
25260 \begin_inset Text
25261
25262 \begin_layout Plain Layout
25263 pxfonts
25264 \end_layout
25265
25266 \end_inset
25267 </cell>
25268 <cell alignment="center" valignment="top" usebox="none">
25269 \begin_inset Text
25270
25271 \begin_layout Plain Layout
25272 subscript
25273 \end_layout
25274
25275 \end_inset
25276 </cell>
25277 <cell alignment="center" valignment="top" usebox="none">
25278 \begin_inset Text
25279
25280 \begin_layout Plain Layout
25281 url
25282 \end_layout
25283
25284 \end_inset
25285 </cell>
25286 <cell alignment="center" valignment="top" usebox="none">
25287 \begin_inset Text
25288
25289 \begin_layout Plain Layout
25290
25291 \end_layout
25292
25293 \end_inset
25294 </cell>
25295 </row>
25296 <row>
25297 <cell alignment="left" valignment="top" usebox="none">
25298 \begin_inset Text
25299
25300 \begin_layout Plain Layout
25301 bbding
25302 \end_layout
25303
25304 \end_inset
25305 </cell>
25306 <cell alignment="left" valignment="top" usebox="none">
25307 \begin_inset Text
25308
25309 \begin_layout Plain Layout
25310 esint
25311 \end_layout
25312
25313 \end_inset
25314 </cell>
25315 <cell alignment="left" valignment="top" usebox="none">
25316 \begin_inset Text
25317
25318 \begin_layout Plain Layout
25319 jurabib
25320 \end_layout
25321
25322 \end_inset
25323 </cell>
25324 <cell alignment="left" valignment="top" usebox="none">
25325 \begin_inset Text
25326
25327 \begin_layout Plain Layout
25328 multicol
25329 \end_layout
25330
25331 \end_inset
25332 </cell>
25333 <cell alignment="center" valignment="top" usebox="none">
25334 \begin_inset Text
25335
25336 \begin_layout Plain Layout
25337 refstyle
25338 \end_layout
25339
25340 \end_inset
25341 </cell>
25342 <cell alignment="center" valignment="top" usebox="none">
25343 \begin_inset Text
25344
25345 \begin_layout Plain Layout
25346 textcomp
25347 \end_layout
25348
25349 \end_inset
25350 </cell>
25351 <cell alignment="center" valignment="top" usebox="none">
25352 \begin_inset Text
25353
25354 \begin_layout Plain Layout
25355 varioref
25356 \end_layout
25357
25358 \end_inset
25359 </cell>
25360 <cell alignment="center" valignment="top" usebox="none">
25361 \begin_inset Text
25362
25363 \begin_layout Plain Layout
25364
25365 \end_layout
25366
25367 \end_inset
25368 </cell>
25369 </row>
25370 <row>
25371 <cell alignment="center" valignment="top" usebox="none">
25372 \begin_inset Text
25373
25374 \begin_layout Plain Layout
25375 bm
25376 \end_layout
25377
25378 \end_inset
25379 </cell>
25380 <cell alignment="center" valignment="top" usebox="none">
25381 \begin_inset Text
25382
25383 \begin_layout Plain Layout
25384 fancybox
25385 \end_layout
25386
25387 \end_inset
25388 </cell>
25389 <cell alignment="center" valignment="top" usebox="none">
25390 \begin_inset Text
25391
25392 \begin_layout Plain Layout
25393 latexsym
25394 \end_layout
25395
25396 \end_inset
25397 </cell>
25398 <cell alignment="center" valignment="top" usebox="none">
25399 \begin_inset Text
25400
25401 \begin_layout Plain Layout
25402 multirow
25403 \end_layout
25404
25405 \end_inset
25406 </cell>
25407 <cell alignment="center" valignment="top" usebox="none">
25408 \begin_inset Text
25409
25410 \begin_layout Plain Layout
25411 rotating
25412 \end_layout
25413
25414 \end_inset
25415 </cell>
25416 <cell alignment="center" valignment="top" usebox="none">
25417 \begin_inset Text
25418
25419 \begin_layout Plain Layout
25420 textgreek
25421 \end_layout
25422
25423 \end_inset
25424 </cell>
25425 <cell alignment="center" valignment="top" usebox="none">
25426 \begin_inset Text
25427
25428 \begin_layout Plain Layout
25429 verbatim
25430 \end_layout
25431
25432 \end_inset
25433 </cell>
25434 <cell alignment="center" valignment="top" usebox="none">
25435 \begin_inset Text
25436
25437 \begin_layout Plain Layout
25438
25439 \end_layout
25440
25441 \end_inset
25442 </cell>
25443 </row>
25444 </lyxtabular>
25445
25446 \end_inset
25447
25448
25449 \end_layout
25450
25451 \begin_layout Chapter
25452 Names of available colors to be used in layouts
25453 \begin_inset CommandInset label
25454 LatexCommand label
25455 name "chap:Names-of-colors"
25456
25457 \end_inset
25458
25459
25460 \end_layout
25461
25462 \begin_layout Standard
25463 The colors listed here are the standard colors and the those that you can
25464  adjust in the \SpecialChar LyX
25465  preferences.
25466 \end_layout
25467
25468 \begin_layout Description
25469 none
25470 \family roman
25471 \series medium
25472 \shape up
25473 \size normal
25474 \emph off
25475 \bar no
25476 \strikeout off
25477 \uuline off
25478 \uwave off
25479 \noun off
25480 \color none
25481  No particular color – clear or default
25482 \end_layout
25483
25484 \begin_layout Description
25485 black
25486 \end_layout
25487
25488 \begin_layout Description
25489 white
25490 \end_layout
25491
25492 \begin_layout Description
25493 red
25494 \end_layout
25495
25496 \begin_layout Description
25497 green
25498 \end_layout
25499
25500 \begin_layout Description
25501 blue
25502 \end_layout
25503
25504 \begin_layout Description
25505 cyan
25506 \end_layout
25507
25508 \begin_layout Description
25509 magenta
25510 \end_layout
25511
25512 \begin_layout Description
25513 yellow
25514 \end_layout
25515
25516 \begin_layout Description
25517 added_space Added space marker color
25518 \end_layout
25519
25520 \begin_layout Description
25521 addedtext Added text color
25522 \end_layout
25523
25524 \begin_layout Description
25525 appendix Appendix marker color
25526 \end_layout
25527
25528 \begin_layout Description
25529 background Background color
25530 \end_layout
25531
25532 \begin_layout Description
25533 bottomarea Bottom area color
25534 \end_layout
25535
25536 \begin_layout Description
25537 branchlabel Label color for branches
25538 \end_layout
25539
25540 \begin_layout Description
25541 buttonbg Color used for button background
25542 \end_layout
25543
25544 \begin_layout Description
25545 buttonhoverbg Color used for button background under focus
25546 \end_layout
25547
25548 \begin_layout Description
25549 buttonframe Color for inset button frames
25550 \end_layout
25551
25552 \begin_layout Description
25553 changebar Changebar color
25554 \end_layout
25555
25556 \begin_layout Description
25557 changedtextauthor1 Changed text color author 1
25558 \end_layout
25559
25560 \begin_layout Description
25561 changedtextauthor2 Changed text color author 2
25562 \end_layout
25563
25564 \begin_layout Description
25565 changedtextauthor3 Changed text color author 3
25566 \end_layout
25567
25568 \begin_layout Description
25569 changedtextauthor4 Changed text color author 4
25570 \end_layout
25571
25572 \begin_layout Description
25573 changedtextauthor5 Changed text color author 5
25574 \end_layout
25575
25576 \begin_layout Description
25577 collapsable_inset_frame Collapsable insets framecolor
25578 \end_layout
25579
25580 \begin_layout Description
25581 collapsable_inset_text Collapsable insets text color
25582 \end_layout
25583
25584 \begin_layout Description
25585 command Text color for command insets
25586 \end_layout
25587
25588 \begin_layout Description
25589 commandbg Background color for command insets
25590 \end_layout
25591
25592 \begin_layout Description
25593 commandframe Frame color for command insets
25594 \end_layout
25595
25596 \begin_layout Description
25597 comment color for comments
25598 \end_layout
25599
25600 \begin_layout Description
25601 commentbg Background color of comments
25602 \end_layout
25603
25604 \begin_layout Description
25605 cursor Cursor color
25606 \end_layout
25607
25608 \begin_layout Description
25609 deletedtext Deleted text color
25610 \end_layout
25611
25612 \begin_layout Description
25613 deletedtextmodifier Deleted text modifying color
25614 \end_layout
25615
25616 \begin_layout Description
25617 depthbar Color for the depth bars in the margin
25618 \end_layout
25619
25620 \begin_layout Description
25621 eolmarker End of line marker color
25622 \end_layout
25623
25624 \begin_layout Description
25625 error Color of the \SpecialChar LaTeX
25626  error box
25627 \end_layout
25628
25629 \begin_layout Description
25630 footlabel Label color for footnotes
25631 \end_layout
25632
25633 \begin_layout Description
25634 graphicsbg Graphics inset background color
25635 \end_layout
25636
25637 \begin_layout Description
25638 greyedout Label color for greyedout insets
25639 \end_layout
25640
25641 \begin_layout Description
25642 greyedoutbg Background color of greyedout inset
25643 \end_layout
25644
25645 \begin_layout Description
25646 greyedouttext Color for greyedout inset text
25647 \end_layout
25648
25649 \begin_layout Description
25650 indexlabel Label color for index insets
25651 \end_layout
25652
25653 \begin_layout Description
25654 ignore The color is ignored
25655 \end_layout
25656
25657 \begin_layout Description
25658 inherit The color is inherited
25659 \end_layout
25660
25661 \begin_layout Description
25662 inlinecompletion Inline completion color
25663 \end_layout
25664
25665 \begin_layout Description
25666 insetbg Inset marker background color
25667 \end_layout
25668
25669 \begin_layout Description
25670 insetframe Inset marker frame color
25671 \end_layout
25672
25673 \begin_layout Description
25674 language Color for marking foreign language words
25675 \end_layout
25676
25677 \begin_layout Description
25678 latex Text color in \SpecialChar LaTeX
25679  mode
25680 \end_layout
25681
25682 \begin_layout Description
25683 listingsbg Background color of listings inset
25684 \end_layout
25685
25686 \begin_layout Description
25687 marginlabel Label color for margin notes
25688 \end_layout
25689
25690 \begin_layout Description
25691 math Math inset text color
25692 \end_layout
25693
25694 \begin_layout Description
25695 mathbg Math inset background color
25696 \end_layout
25697
25698 \begin_layout Description
25699 mathcorners Math inset frame color not under focus
25700 \end_layout
25701
25702 \begin_layout Description
25703 mathframe Math inset frame color under focus
25704 \end_layout
25705
25706 \begin_layout Description
25707 mathline Math line color
25708 \end_layout
25709
25710 \begin_layout Description
25711 mathmacrobg Macro math inset background color
25712 \end_layout
25713
25714 \begin_layout Description
25715 mathmacroblend Macro math blended color
25716 \end_layout
25717
25718 \begin_layout Description
25719 mathmacroframe Macro math frame color
25720 \end_layout
25721
25722 \begin_layout Description
25723 mathmacrohoverbg Macro math inset background color hovered
25724 \end_layout
25725
25726 \begin_layout Description
25727 mathmacrolabel Macro math label color
25728 \end_layout
25729
25730 \begin_layout Description
25731 mathmacronewarg Macro template color for new parameters
25732 \end_layout
25733
25734 \begin_layout Description
25735 mathmacrooldarg Macro template color for old parameters
25736 \end_layout
25737
25738 \begin_layout Description
25739 newpage New page color
25740 \end_layout
25741
25742 \begin_layout Description
25743 nonunique_inlinecompletion Inline completion color for the non-unique part
25744 \end_layout
25745
25746 \begin_layout Description
25747 notebg Background color of notes
25748 \end_layout
25749
25750 \begin_layout Description
25751 notelabel Label color for notes
25752 \end_layout
25753
25754 \begin_layout Description
25755 pagebreak Page break/line break color
25756 \end_layout
25757
25758 \begin_layout Description
25759 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25760 \end_layout
25761
25762 \begin_layout Description
25763 phantomtext Text color for phantom insets
25764 \end_layout
25765
25766 \begin_layout Description
25767 preview The color used for previews
25768 \end_layout
25769
25770 \begin_layout Description
25771 previewframe Preview frame color
25772 \end_layout
25773
25774 \begin_layout Description
25775 regexpframe Color for regexp frame
25776 \end_layout
25777
25778 \begin_layout Description
25779 selection Background color of selected text
25780 \end_layout
25781
25782 \begin_layout Description
25783 selectiontext Foreground color of selected text
25784 \end_layout
25785
25786 \begin_layout Description
25787 shadedbg Background color of shaded box
25788 \end_layout
25789
25790 \begin_layout Description
25791 special Special chars text color
25792 \end_layout
25793
25794 \begin_layout Description
25795 tabularline Table line color
25796 \end_layout
25797
25798 \begin_layout Description
25799 tabularonoffline Table line color
25800 \end_layout
25801
25802 \begin_layout Description
25803 urllabel Label color for URL insets
25804 \end_layout
25805
25806 \begin_layout Description
25807 urltext Color for URL inset text
25808 \end_layout
25809
25810 \end_body
25811 \end_document