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