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