]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: remove unintended switch to German
[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 1431166542
11395
11396 \end_layout
11397
11398 \begin_layout Itemize
11399
11400 \change_inserted -712698321 1431166604
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405
11406 \change_inserted -712698321 1431166548
11407 InsertCotext
11408 \end_layout
11409
11410 \end_inset
11411
11412  
11413 \begin_inset Flex Code
11414 status collapsed
11415
11416 \begin_layout Plain Layout
11417
11418 \change_inserted -712698321 1431166543
11419 [int=0]
11420 \end_layout
11421
11422 \end_inset
11423
11424  If this is set to 
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429
11430 \change_inserted -712698321 1431166543
11431 1
11432 \end_layout
11433
11434 \end_inset
11435
11436 , this argument will bei inserted with a copy of the co-text (either selected
11437  text or the whole paragraph) as content.
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \change_inserted -712698321 1431070588
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447
11448 \change_inserted -712698321 1431070522
11449 PassThruChars
11450 \end_layout
11451
11452 \end_inset
11453
11454  [
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459
11460 \change_inserted -712698321 1431070522
11461 string of characters
11462 \end_layout
11463
11464 \end_inset
11465
11466 ]
11467 \family typewriter
11468  
11469 \family default
11470 Defines individual characters that should be output in raw form, meaning
11471  without special translations that \SpecialChar LaTeX
11472  would require.
11473  Note that, contrary to PassThru, this needs to be explicitly defined for
11474  arguments.
11475  That is, arguments do not inherit PassThruChars from their parent inset
11476  or layout.
11477 \change_unchanged
11478
11479 \end_layout
11480
11481 \begin_layout Standard
11482 By default, the text entered in the \SpecialChar LyX
11483  workarea in the respective layout is
11484  the last (mandatory) argument of a command if the 
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 LatexType
11490 \end_layout
11491
11492 \end_inset
11493
11494  is 
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 Command
11500 \end_layout
11501
11502 \end_inset
11503
11504 .
11505  However, arguments with the prefix 
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 post:
11511 \end_layout
11512
11513 \end_inset
11514
11515  are output after this workarea argument.
11516  Note that post-argument numbering restarts at 1, so the first argument
11517  following the workarea argument is 
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 post:1
11523 \end_layout
11524
11525 \end_inset
11526
11527 .
11528  Post-arguments are ignored in any other 
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 LatexType
11534 \end_layout
11535
11536 \end_inset
11537
11538  than 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 Command
11544 \end_layout
11545
11546 \end_inset
11547
11548 .
11549 \end_layout
11550
11551 \begin_layout Standard
11552 Arguments for list 
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557
11558 \backslash
11559 item
11560 \end_layout
11561
11562 \end_inset
11563
11564 s (as in 
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569
11570 \backslash
11571 item[foo]
11572 \end_layout
11573
11574 \end_inset
11575
11576 ) have the prefix 
11577 \begin_inset Flex Code
11578 status collapsed
11579
11580 \begin_layout Plain Layout
11581 item:
11582 \end_layout
11583
11584 \end_inset
11585
11586  followed by the number (e.
11587 \begin_inset space \thinspace{}
11588 \end_inset
11589
11590 g.
11591 \begin_inset space \space{}
11592 \end_inset
11593
11594
11595 \begin_inset Flex Code
11596 status collapsed
11597
11598 \begin_layout Plain Layout
11599 Argument item:1
11600 \end_layout
11601
11602 \end_inset
11603
11604 )
11605 \end_layout
11606
11607 \end_deeper
11608 \begin_layout Description
11609 \begin_inset Flex Code
11610 status collapsed
11611
11612 \begin_layout Plain Layout
11613 BabelPreamble
11614 \end_layout
11615
11616 \end_inset
11617
11618  Note that this will completely override any prior 
11619 \begin_inset Flex Code
11620 status collapsed
11621
11622 \begin_layout Plain Layout
11623 BabelPreamble
11624 \end_layout
11625
11626 \end_inset
11627
11628  declaration for this style.
11629  Must end with 
11630 \begin_inset Quotes eld
11631 \end_inset
11632
11633
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 EndBabelPreamble
11639 \end_layout
11640
11641 \end_inset
11642
11643
11644 \begin_inset Quotes erd
11645 \end_inset
11646
11647 .
11648  See 
11649 \begin_inset CommandInset ref
11650 LatexCommand ref
11651 reference "sub:I18n"
11652
11653 \end_inset
11654
11655  for details on its use.
11656 \end_layout
11657
11658 \begin_layout Description
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 BottomSep
11664 \end_layout
11665
11666 \end_inset
11667
11668  [
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 float=0
11674 \end_layout
11675
11676 \end_inset
11677
11678 ]
11679 \begin_inset Foot
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 Note that a `float' here is a real number, such as: 1.5.
11684 \end_layout
11685
11686 \end_inset
11687
11688  The vertical space with which the last of a chain of paragraphs with this
11689  style is separated from the following paragraph.
11690  If the next paragraph has another style, the separations are not simply
11691  added, but the maximum is taken.
11692 \end_layout
11693
11694 \begin_layout Description
11695 \begin_inset Flex Code
11696 status collapsed
11697
11698 \begin_layout Plain Layout
11699 Category
11700 \end_layout
11701
11702 \end_inset
11703
11704  [
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709 string
11710 \end_layout
11711
11712 \end_inset
11713
11714 ] The category for this style.
11715  This is used to group related styles in the style combobox on the toolbar.
11716  Any string can be used, but you may want to use existing categories with
11717  your own styles.
11718  
11719 \end_layout
11720
11721 \begin_layout Description
11722 \begin_inset Flex Code
11723 status collapsed
11724
11725 \begin_layout Plain Layout
11726 CommandDepth
11727 \end_layout
11728
11729 \end_inset
11730
11731  Depth of XML command.
11732  Used only with XML-type formats.
11733 \end_layout
11734
11735 \begin_layout Description
11736 \begin_inset Flex Code
11737 status collapsed
11738
11739 \begin_layout Plain Layout
11740 CopyStyle
11741 \end_layout
11742
11743 \end_inset
11744
11745  [
11746 \begin_inset Flex Code
11747 status collapsed
11748
11749 \begin_layout Plain Layout
11750 string
11751 \end_layout
11752
11753 \end_inset
11754
11755 ] Copies all the features of an existing style into the current one.
11756  
11757 \end_layout
11758
11759 \begin_layout Description
11760 \begin_inset Flex Code
11761 status collapsed
11762
11763 \begin_layout Plain Layout
11764 DependsOn
11765 \end_layout
11766
11767 \end_inset
11768
11769  [
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 <name>
11775 \end_layout
11776
11777 \end_inset
11778
11779 ] The name of a style whose preamble should be output 
11780 \emph on
11781 before
11782 \emph default
11783  this one.
11784  This allows to ensure some ordering of the preamble snippets when macros
11785  definitions depend on one another.
11786 \begin_inset Foot
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 Note that, besides that functionality, there is no way to ensure any ordering
11791  of preambles.
11792  The ordering that you see in a given version of \SpecialChar LyX
11793  may change without warning
11794  in later versions.
11795 \end_layout
11796
11797 \end_inset
11798
11799
11800 \end_layout
11801
11802 \begin_layout Description
11803 \begin_inset Flex Code
11804 status collapsed
11805
11806 \begin_layout Plain Layout
11807 EndLabeltype
11808 \end_layout
11809
11810 \end_inset
11811
11812  [
11813 \begin_inset Flex Code
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817
11818 \emph on
11819 No_Label
11820 \emph default
11821 , Box, Filled_Box, Static
11822 \end_layout
11823
11824 \end_inset
11825
11826 ] The type of label that stands at the end of the paragraph (or sequence
11827  of paragraphs if 
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832 LatexType
11833 \end_layout
11834
11835 \end_inset
11836
11837  is
11838 \begin_inset Newline newline
11839 \end_inset
11840
11841
11842 \begin_inset Flex Code
11843 status collapsed
11844
11845 \begin_layout Plain Layout
11846 Environment
11847 \end_layout
11848
11849 \end_inset
11850
11851
11852 \begin_inset Flex Code
11853 status collapsed
11854
11855 \begin_layout Plain Layout
11856 Item_Environment
11857 \end_layout
11858
11859 \end_inset
11860
11861  or 
11862 \begin_inset Flex Code
11863 status collapsed
11864
11865 \begin_layout Plain Layout
11866 List_Environment
11867 \end_layout
11868
11869 \end_inset
11870
11871 ).
11872  
11873 \begin_inset Flex Code
11874 status collapsed
11875
11876 \begin_layout Plain Layout
11877 No_Label
11878 \end_layout
11879
11880 \end_inset
11881
11882  means 
11883 \begin_inset Quotes eld
11884 \end_inset
11885
11886 nothing
11887 \begin_inset Quotes erd
11888 \end_inset
11889
11890
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 Box
11896 \end_layout
11897
11898 \end_inset
11899
11900  (resp.
11901 \begin_inset space \space{}
11902 \end_inset
11903
11904
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 Filled_Box
11910 \end_layout
11911
11912 \end_inset
11913
11914 ) is a white (resp.
11915 \begin_inset space ~
11916 \end_inset
11917
11918 black) square suitable for end of proof markers, 
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 Static
11924 \end_layout
11925
11926 \end_inset
11927
11928  is an explicit text string.
11929 \end_layout
11930
11931 \begin_layout Description
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 EndLabelString
11937 \end_layout
11938
11939 \end_inset
11940
11941  [
11942 \begin_inset Flex Code
11943 status collapsed
11944
11945 \begin_layout Plain Layout
11946 string=""
11947 \end_layout
11948
11949 \end_inset
11950
11951 ] The string used for a label with a 
11952 \begin_inset Flex Code
11953 status collapsed
11954
11955 \begin_layout Plain Layout
11956 Static
11957 \end_layout
11958
11959 \end_inset
11960
11961
11962 \begin_inset Newline newline
11963 \end_inset
11964
11965
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 EndLabelType
11971 \end_layout
11972
11973 \end_inset
11974
11975 .
11976  
11977 \end_layout
11978
11979 \begin_layout Description
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 Font
11985 \end_layout
11986
11987 \end_inset
11988
11989  The font used for both the text body 
11990 \emph on
11991 and
11992 \emph default
11993  the label.
11994  See 
11995 \begin_inset CommandInset ref
11996 LatexCommand ref
11997 reference "sub:Font-description"
11998
11999 \end_inset
12000
12001 .
12002  Note that defining this font automatically defines the 
12003 \begin_inset Flex Code
12004 status collapsed
12005
12006 \begin_layout Plain Layout
12007 LabelFont
12008 \end_layout
12009
12010 \end_inset
12011
12012  to the same value.
12013  So you should define this one first if you also want to define 
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018 LabelFont
12019 \end_layout
12020
12021 \end_inset
12022
12023 .
12024 \end_layout
12025
12026 \begin_layout Description
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 ForceLocal
12032 \end_layout
12033
12034 \end_inset
12035
12036  [
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 int=0
12042 \end_layout
12043
12044 \end_inset
12045
12046 ] Used for backporting new styles to stable \SpecialChar LyX
12047  versions.
12048  The first stable version that supports this tag is \SpecialChar LyX
12049  2.1.0.
12050  The argument is a number which may either be 0, -1 or any value greater
12051  than zero.
12052  If the 
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 ForceLocal
12058 \end_layout
12059
12060 \end_inset
12061
12062  flag of a style is greater than zero, it will always be written to the
12063  document header.
12064  If a .lyx file is read, the style definitions from the document header are
12065  added to the document class.
12066  Therefore even older \SpecialChar LyX
12067  versions can handle the style.
12068  The argument of 
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073 ForceLocal
12074 \end_layout
12075
12076 \end_inset
12077
12078  is a version number: If the style is read, and the version number is less
12079  than the version number of the already existing style in the document class,
12080  the new style is ignored.
12081  If the version number is greater, the new style replaces the existing style.
12082  A value of -1 means an infinite version number, i.
12083 \begin_inset space \thinspace{}
12084 \end_inset
12085
12086 e.
12087 \begin_inset space \space{}
12088 \end_inset
12089
12090 the style is always used.
12091 \end_layout
12092
12093 \begin_layout Description
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 FreeSpacing
12099 \end_layout
12100
12101 \end_inset
12102
12103  [
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108
12109 \emph on
12110 0
12111 \end_layout
12112
12113 \end_inset
12114
12115 ,
12116 \begin_inset space \thinspace{}
12117 \end_inset
12118
12119
12120 \begin_inset Flex Code
12121 status collapsed
12122
12123 \begin_layout Plain Layout
12124 1
12125 \end_layout
12126
12127 \end_inset
12128
12129 ] Usually \SpecialChar LyX
12130  does not allow you to insert more than one space between words,
12131  since a space is considered as the separation between two words, not a
12132  character or symbol of its own.
12133  This is a very fine thing but sometimes annoying, for example, when typing
12134  program code or plain \SpecialChar LaTeX
12135  code.
12136  For this reason, 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 FreeSpacing
12142 \end_layout
12143
12144 \end_inset
12145
12146  can be enabled.
12147  Note that \SpecialChar LyX
12148  will create protected blanks for the additional blanks when
12149  in another mode than \SpecialChar LaTeX
12150 -mode.
12151 \end_layout
12152
12153 \begin_layout Description
12154 \begin_inset Flex Code
12155 status collapsed
12156
12157 \begin_layout Plain Layout
12158 HTML*
12159 \end_layout
12160
12161 \end_inset
12162
12163  These tags are used with XHTML output.
12164  See 
12165 \begin_inset CommandInset ref
12166 LatexCommand ref
12167 reference "sub:Paragraph-Style-XHTML"
12168
12169 \end_inset
12170
12171 .
12172 \end_layout
12173
12174 \begin_layout Description
12175 \begin_inset Flex Code
12176 status collapsed
12177
12178 \begin_layout Plain Layout
12179 InnerTag
12180 \end_layout
12181
12182 \end_inset
12183
12184  [FIXME] (Used only with XML-type formats.)
12185 \end_layout
12186
12187 \begin_layout Description
12188 \begin_inset Flex Code
12189 status collapsed
12190
12191 \begin_layout Plain Layout
12192 InPreamble
12193 \end_layout
12194
12195 \end_inset
12196
12197  [
12198 \begin_inset Flex Code
12199 status collapsed
12200
12201 \begin_layout Plain Layout
12202
12203 \emph on
12204 0
12205 \end_layout
12206
12207 \end_inset
12208
12209 ,
12210 \begin_inset space \thinspace{}
12211 \end_inset
12212
12213
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 1
12219 \end_layout
12220
12221 \end_inset
12222
12223 ] If 
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 1
12229 \end_layout
12230
12231 \end_inset
12232
12233 , marks the style as to be included in the document preamble and not in
12234  the document body.
12235  This is useful for document classes that want such information as the title
12236  and author to appear in the preamble.
12237  Note that this works only for styles for which the 
12238 \begin_inset Flex Code
12239 status collapsed
12240
12241 \begin_layout Plain Layout
12242 LatexType
12243 \end_layout
12244
12245 \end_inset
12246
12247  is 
12248 \begin_inset Flex Code
12249 status collapsed
12250
12251 \begin_layout Plain Layout
12252 Command
12253 \end_layout
12254
12255 \end_inset
12256
12257  or 
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 Paragraph
12263 \end_layout
12264
12265 \end_inset
12266
12267 .
12268 \end_layout
12269
12270 \begin_layout Description
12271 \begin_inset Flex Code
12272 status collapsed
12273
12274 \begin_layout Plain Layout
12275 InTitle
12276 \end_layout
12277
12278 \end_inset
12279
12280  [
12281 \begin_inset Flex Code
12282 status collapsed
12283
12284 \begin_layout Plain Layout
12285
12286 \emph on
12287 0
12288 \end_layout
12289
12290 \end_inset
12291
12292 ,
12293 \begin_inset space \thinspace{}
12294 \end_inset
12295
12296
12297 \begin_inset Flex Code
12298 status collapsed
12299
12300 \begin_layout Plain Layout
12301 1
12302 \end_layout
12303
12304 \end_inset
12305
12306 ] If 
12307 \begin_inset Flex Code
12308 status collapsed
12309
12310 \begin_layout Plain Layout
12311 1
12312 \end_layout
12313
12314 \end_inset
12315
12316 , marks the style as being part of a title block (see also the 
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 TitleLatexType
12322 \end_layout
12323
12324 \end_inset
12325
12326  and 
12327 \begin_inset Flex Code
12328 status collapsed
12329
12330 \begin_layout Plain Layout
12331 TitleLatexName
12332 \end_layout
12333
12334 \end_inset
12335
12336  global entries).
12337 \end_layout
12338
12339 \begin_layout Description
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 ItemCommand
12345 \end_layout
12346
12347 \end_inset
12348
12349  [
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 string="item"
12355 \end_layout
12356
12357 \end_inset
12358
12359 ] The \SpecialChar LaTeX
12360  command sequence declaring an item in a list.
12361  The command is to be defined without the preceding backslash (the default
12362  is 
12363 \begin_inset Quotes eld
12364 \end_inset
12365
12366 item
12367 \begin_inset Quotes erd
12368 \end_inset
12369
12370 , resulting in 
12371 \begin_inset Flex Code
12372 status collapsed
12373
12374 \begin_layout Plain Layout
12375
12376 \backslash
12377 item
12378 \end_layout
12379
12380 \end_inset
12381
12382  in the \SpecialChar LaTeX
12383  output).
12384 \end_layout
12385
12386 \begin_layout Description
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 ItemSep
12392 \end_layout
12393
12394 \end_inset
12395
12396  [
12397 \begin_inset Flex Code
12398 status collapsed
12399
12400 \begin_layout Plain Layout
12401 float=0
12402 \end_layout
12403
12404 \end_inset
12405
12406 ] This provides extra space between paragraphs that have the same style.
12407  If you put other styles into an environment, each is separated with the
12408  environment's 
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 ParSep
12414 \end_layout
12415
12416 \end_inset
12417
12418 .
12419  But the whole items of the environment are additionally separated with
12420  this 
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425 ItemSep
12426 \end_layout
12427
12428 \end_inset
12429
12430 .
12431  Note that this is a
12432 \emph on
12433  multiplier.
12434 \end_layout
12435
12436 \begin_layout Description
12437 \begin_inset Flex Code
12438 status collapsed
12439
12440 \begin_layout Plain Layout
12441 ItemTag
12442 \end_layout
12443
12444 \end_inset
12445
12446  [FIXME] (Used only with XML-type formats.)
12447 \end_layout
12448
12449 \begin_layout Description
12450 \begin_inset Flex Code
12451 status collapsed
12452
12453 \begin_layout Plain Layout
12454 KeepEmpty
12455 \end_layout
12456
12457 \end_inset
12458
12459  [
12460 \begin_inset Flex Code
12461 status collapsed
12462
12463 \begin_layout Plain Layout
12464
12465 \emph on
12466 0
12467 \end_layout
12468
12469 \end_inset
12470
12471 ,
12472 \begin_inset space \thinspace{}
12473 \end_inset
12474
12475
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 1
12481 \end_layout
12482
12483 \end_inset
12484
12485 ] Usually \SpecialChar LyX
12486  does not allow you to leave a paragraph empty, since it would
12487  lead to empty \SpecialChar LaTeX
12488  output.
12489  There are some cases where this could be desirable however: in a letter
12490  template, the required fields can be provided as empty fields, so that
12491  people do not forget them; in some special classes, a style can be used
12492  as some kind of break, which does not contain actual text.
12493 \end_layout
12494
12495 \begin_layout Description
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 LabelBottomsep
12501 \end_layout
12502
12503 \end_inset
12504
12505  [
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 float=0
12511 \end_layout
12512
12513 \end_inset
12514
12515 ] The vertical space between the label and the text body.
12516  Only used for labels that are above the text body (
12517 \begin_inset Flex Code
12518 status collapsed
12519
12520 \begin_layout Plain Layout
12521 Top_Environment
12522 \end_layout
12523
12524 \end_inset
12525
12526  and
12527 \begin_inset Newline newline
12528 \end_inset
12529
12530
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 Centered_Top_Environment
12536 \end_layout
12537
12538 \end_inset
12539
12540 ).
12541 \end_layout
12542
12543 \begin_layout Description
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 LabelCounter
12549 \end_layout
12550
12551 \end_inset
12552
12553  [
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 string=""
12559 \end_layout
12560
12561 \end_inset
12562
12563 ] The name of the counter for automatic numbering.
12564  In order to have the counter appear with your label, you will need to reference
12565  it in the 
12566 \begin_inset Flex Code
12567 status collapsed
12568
12569 \begin_layout Plain Layout
12570
12571 \family typewriter
12572 LabelString
12573 \end_layout
12574
12575 \end_inset
12576
12577 .
12578  This will work with 
12579 \begin_inset Flex Code
12580 status collapsed
12581
12582 \begin_layout Plain Layout
12583 LabelType
12584 \end_layout
12585
12586 \end_inset
12587
12588 s, 
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 Static
12594 \end_layout
12595
12596 \end_inset
12597
12598
12599 \begin_inset Flex Code
12600 status collapsed
12601
12602 \begin_layout Plain Layout
12603 Above
12604 \end_layout
12605
12606 \end_inset
12607
12608  and 
12609 \begin_inset Flex Code
12610 status collapsed
12611
12612 \begin_layout Plain Layout
12613 Centered
12614 \end_layout
12615
12616 \end_inset
12617
12618 , at least.
12619 \begin_inset Newline newline
12620 \end_inset
12621
12622 This 
12623 \emph on
12624 may
12625 \emph default
12626  also be given if 
12627 \begin_inset Flex Code
12628 status collapsed
12629
12630 \begin_layout Plain Layout
12631 LabelType
12632 \end_layout
12633
12634 \end_inset
12635
12636  is 
12637 \begin_inset Flex Code
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641 Enumerate
12642 \end_layout
12643
12644 \end_inset
12645
12646 , though this case is a bit complicated.
12647  Suppose you declare 
12648 \begin_inset Quotes eld
12649 \end_inset
12650
12651
12652 \begin_inset Flex Code
12653 status collapsed
12654
12655 \begin_layout Plain Layout
12656 LabelCounter myenum
12657 \end_layout
12658
12659 \end_inset
12660
12661
12662 \begin_inset Quotes erd
12663 \end_inset
12664
12665 .
12666  Then the actual counters used are 
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 myenumi
12672 \end_layout
12673
12674 \end_inset
12675
12676
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 myenumii
12682 \end_layout
12683
12684 \end_inset
12685
12686
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691 myenumiii
12692 \end_layout
12693
12694 \end_inset
12695
12696  and 
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 myenumiv
12702 \end_layout
12703
12704 \end_inset
12705
12706 , much as in \SpecialChar LaTeX
12707 .
12708  These counters must all be declared separately.
12709 \begin_inset Newline newline
12710 \end_inset
12711
12712 See 
12713 \begin_inset CommandInset ref
12714 LatexCommand ref
12715 reference "sub:Counters"
12716
12717 \end_inset
12718
12719  for details on counters.
12720 \end_layout
12721
12722 \begin_layout Description
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 LabelFont
12728 \end_layout
12729
12730 \end_inset
12731
12732  The font used for the label.
12733  See 
12734 \begin_inset CommandInset ref
12735 LatexCommand ref
12736 reference "sub:Font-description"
12737
12738 \end_inset
12739
12740 .
12741 \end_layout
12742
12743 \begin_layout Description
12744 \begin_inset Flex Code
12745 status collapsed
12746
12747 \begin_layout Plain Layout
12748 LabelIndent
12749 \end_layout
12750
12751 \end_inset
12752
12753  [
12754 \begin_inset Flex Code
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758 string=""
12759 \end_layout
12760
12761 \end_inset
12762
12763 ] Text that indicates how far a label should be indented.
12764 \end_layout
12765
12766 \begin_layout Description
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 LabelSep
12772 \end_layout
12773
12774 \end_inset
12775
12776  [
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 string=""
12782 \end_layout
12783
12784 \end_inset
12785
12786 ] Text that indicates the amount of horizontal space between the label and
12787  the text body.
12788  Only used for labels that are not above the text body.
12789 \end_layout
12790
12791 \begin_layout Description
12792 \begin_inset Flex Code
12793 status collapsed
12794
12795 \begin_layout Plain Layout
12796 LabelString
12797 \end_layout
12798
12799 \end_inset
12800
12801  [
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 string=""
12807 \end_layout
12808
12809 \end_inset
12810
12811 ] The string used for the label.
12812  When 
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817 LabelCounter
12818 \end_layout
12819
12820 \end_inset
12821
12822  is set, this string can be contain the special formatting commands described
12823  in 
12824 \begin_inset CommandInset ref
12825 LatexCommand ref
12826 reference "sub:Counters"
12827
12828 \end_inset
12829
12830 .
12831 \end_layout
12832
12833 \begin_layout Description
12834 \begin_inset Flex Code
12835 status collapsed
12836
12837 \begin_layout Plain Layout
12838 LabelStringAppendix
12839 \end_layout
12840
12841 \end_inset
12842
12843  [
12844 \begin_inset Flex Code
12845 status collapsed
12846
12847 \begin_layout Plain Layout
12848 string=""
12849 \end_layout
12850
12851 \end_inset
12852
12853 ] This is used inside the appendix instead of
12854 \begin_inset Newline newline
12855 \end_inset
12856
12857
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862 LabelString
12863 \end_layout
12864
12865 \end_inset
12866
12867 .
12868  Note that every 
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873 LabelString
12874 \end_layout
12875
12876 \end_inset
12877
12878  statement resets
12879 \begin_inset Newline newline
12880 \end_inset
12881
12882
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 LabelStringAppendix
12888 \end_layout
12889
12890 \end_inset
12891
12892  too.
12893 \end_layout
12894
12895 \begin_layout Description
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 LabelTag
12901 \end_layout
12902
12903 \end_inset
12904
12905  [FIXME] (Used only with XML-type formats.)
12906 \end_layout
12907
12908 \begin_layout Description
12909 \begin_inset Flex Code
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913 LabelType
12914 \end_layout
12915
12916 \end_inset
12917
12918  [
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923
12924 \emph on
12925 No_Label
12926 \emph default
12927 , Manual, Static, Above, 
12928 \begin_inset Newline newline
12929 \end_inset
12930
12931 Centered, Sensitive, Enumerate,
12932 \begin_inset Newline newline
12933 \end_inset
12934
12935 Itemize, Bibliography
12936 \end_layout
12937
12938 \end_inset
12939
12940 ]
12941 \begin_inset Separator parbreak
12942 \end_inset
12943
12944
12945 \end_layout
12946
12947 \begin_deeper
12948 \begin_layout Description
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 Manual
12954 \end_layout
12955
12956 \end_inset
12957
12958  means the label is the very first word (up to the first real blank).
12959  Use protected spaces if you want more than one word as the label.
12960  
12961 \end_layout
12962
12963 \begin_layout Description
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968 Static
12969 \end_layout
12970
12971 \end_inset
12972
12973  means the label is simply what is declared as 
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 LabelString
12979 \end_layout
12980
12981 \end_inset
12982
12983 .
12984  This will be displayed 
12985 \begin_inset Quotes eld
12986 \end_inset
12987
12988 inline
12989 \begin_inset Quotes erd
12990 \end_inset
12991
12992 , at the beginning of the paragraph.
12993  If the 
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 LatexType
12999 \end_layout
13000
13001 \end_inset
13002
13003  is 
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 Environment
13009 \end_layout
13010
13011 \end_inset
13012
13013 , then it will be displayed only in the first paragraph of any sequence
13014  of paragraphs with the same 
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 Style
13020 \end_layout
13021
13022 \end_inset
13023
13024 .
13025 \end_layout
13026
13027 \begin_layout Description
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 Above
13033 \end_layout
13034
13035 \end_inset
13036
13037
13038 \begin_inset space ~
13039 \end_inset
13040
13041 and
13042 \begin_inset space ~
13043 \end_inset
13044
13045
13046 \begin_inset Flex Code
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 Centered
13051 \end_layout
13052
13053 \end_inset
13054
13055  are special cases of 
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 Static
13061 \end_layout
13062
13063 \end_inset
13064
13065 .
13066  The label will be printed above the paragraph either at the beginning of
13067  the line or centered.
13068 \end_layout
13069
13070 \begin_layout Description
13071 \begin_inset Flex Code
13072 status collapsed
13073
13074 \begin_layout Plain Layout
13075 Sensitive
13076 \end_layout
13077
13078 \end_inset
13079
13080  is a special case for the caption-labels 
13081 \begin_inset Quotes eld
13082 \end_inset
13083
13084 Figure
13085 \begin_inset Quotes erd
13086 \end_inset
13087
13088  and 
13089 \begin_inset Quotes eld
13090 \end_inset
13091
13092 Table
13093 \begin_inset Quotes erd
13094 \end_inset
13095
13096 .
13097 \begin_inset Newline newline
13098 \end_inset
13099
13100
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 Sensitive
13106 \end_layout
13107
13108 \end_inset
13109
13110  means the (hardcoded) label string depends on the kind of float: It is
13111  hardcoded to be `FloatType N', where N is the value of the counter associated
13112  with the float.
13113  For the case that a caption is inserted outside of a float the 
13114 \begin_inset Flex Code
13115 status collapsed
13116
13117 \begin_layout Plain Layout
13118 LabelString
13119 \end_layout
13120
13121 \end_inset
13122
13123  will appear as 
13124 \begin_inset Quotes eld
13125 \end_inset
13126
13127 Senseless!
13128 \begin_inset Quotes erd
13129 \end_inset
13130
13131 .
13132 \end_layout
13133
13134 \begin_layout Description
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 Enumerate
13140 \end_layout
13141
13142 \end_inset
13143
13144  produces the usual sort of enumeration labels.
13145  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13146  small Roman numerals, and uppercase letters for the four possible depths.
13147 \end_layout
13148
13149 \begin_layout Description
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 Itemize
13155 \end_layout
13156
13157 \end_inset
13158
13159  produces various bullets at the different levels.
13160  It is also hardcoded.
13161 \end_layout
13162
13163 \begin_layout Description
13164 \begin_inset Flex Code
13165 status collapsed
13166
13167 \begin_layout Plain Layout
13168 Bibliography
13169 \end_layout
13170
13171 \end_inset
13172
13173  should be used only with 
13174 \begin_inset Flex Code
13175 status collapsed
13176
13177 \begin_layout Plain Layout
13178 LatexType BibEnvironment
13179 \end_layout
13180
13181 \end_inset
13182
13183 .
13184 \end_layout
13185
13186 \end_deeper
13187 \begin_layout Description
13188 \begin_inset Flex Code
13189 status collapsed
13190
13191 \begin_layout Plain Layout
13192 LangPreamble
13193 \end_layout
13194
13195 \end_inset
13196
13197  Note that this will completely override any prior 
13198 \begin_inset Flex Code
13199 status collapsed
13200
13201 \begin_layout Plain Layout
13202 LangPreamble
13203 \end_layout
13204
13205 \end_inset
13206
13207  declaration for this style.
13208  Must end with 
13209 \begin_inset Quotes eld
13210 \end_inset
13211
13212
13213 \begin_inset Flex Code
13214 status collapsed
13215
13216 \begin_layout Plain Layout
13217 EndLangPreamble
13218 \end_layout
13219
13220 \end_inset
13221
13222
13223 \begin_inset Quotes erd
13224 \end_inset
13225
13226 .
13227  See 
13228 \begin_inset CommandInset ref
13229 LatexCommand ref
13230 reference "sub:I18n"
13231
13232 \end_inset
13233
13234  for details on its use.
13235 \end_layout
13236
13237 \begin_layout Description
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 LatexName
13243 \end_layout
13244
13245 \end_inset
13246
13247  [
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 <name>
13253 \end_layout
13254
13255 \end_inset
13256
13257 ] The name of the corresponding \SpecialChar LaTeX
13258  stuff.
13259  Either the environment or command name.
13260 \end_layout
13261
13262 \begin_layout Description
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 LatexParam
13268 \end_layout
13269
13270 \end_inset
13271
13272  [
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 <parameter>
13278 \end_layout
13279
13280 \end_inset
13281
13282 ] An optional parameter for the corresponding 
13283 \begin_inset Flex Code
13284 status collapsed
13285
13286 \begin_layout Plain Layout
13287 LatexName
13288 \end_layout
13289
13290 \end_inset
13291
13292  stuff.
13293  This parameter cannot be changed from within \SpecialChar LyX
13294  (use 
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 Argument
13300 \end_layout
13301
13302 \end_inset
13303
13304  for customizable parameters).
13305  This will be output as is after all \SpecialChar LaTeX
13306  
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 Argument
13312 \end_layout
13313
13314 \end_inset
13315
13316 s.
13317 \end_layout
13318
13319 \begin_layout Description
13320 \begin_inset Flex Code
13321 status collapsed
13322
13323 \begin_layout Plain Layout
13324 LatexType
13325 \end_layout
13326
13327 \end_inset
13328
13329  [
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334
13335 \emph on
13336 Paragraph
13337 \emph default
13338 , Command, Environment, Item_Environment,
13339 \begin_inset Newline newline
13340 \end_inset
13341
13342 List_Environment, Bib_Environment
13343 \end_layout
13344
13345 \end_inset
13346
13347 ] How the style should be translated into \SpecialChar LaTeX
13348 .
13349 \begin_inset Foot
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 LatexType
13358 \end_layout
13359
13360 \end_inset
13361
13362  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13363  Visit the SGML class files for specific examples.
13364 \end_layout
13365
13366 \end_inset
13367
13368
13369 \begin_inset Separator parbreak
13370 \end_inset
13371
13372
13373 \end_layout
13374
13375 \begin_deeper
13376 \begin_layout Description
13377 \begin_inset Flex Code
13378 status collapsed
13379
13380 \begin_layout Plain Layout
13381 Paragraph
13382 \end_layout
13383
13384 \end_inset
13385
13386  means nothing special.
13387 \end_layout
13388
13389 \begin_layout Description
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394 Command
13395 \end_layout
13396
13397 \end_inset
13398
13399  means 
13400 \begin_inset Flex Code
13401 status collapsed
13402
13403 \begin_layout Plain Layout
13404
13405 \backslash
13406
13407 \emph on
13408 LatexName
13409 \emph default
13410 {\SpecialChar ldots
13411 }
13412 \end_layout
13413
13414 \end_inset
13415
13416 .
13417 \end_layout
13418
13419 \begin_layout Description
13420 \begin_inset Flex Code
13421 status collapsed
13422
13423 \begin_layout Plain Layout
13424 Environment
13425 \end_layout
13426
13427 \end_inset
13428
13429  means 
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434
13435 \backslash
13436 begin{
13437 \emph on
13438 LatexName
13439 \emph default
13440 }\SpecialChar ldots
13441
13442 \backslash
13443 end{
13444 \emph on
13445 LatexName
13446 \emph default
13447 }
13448 \end_layout
13449
13450 \end_inset
13451
13452 .
13453  
13454 \end_layout
13455
13456 \begin_layout Description
13457 \begin_inset Flex Code
13458 status collapsed
13459
13460 \begin_layout Plain Layout
13461 Item_Environment
13462 \end_layout
13463
13464 \end_inset
13465
13466  is the same as 
13467 \begin_inset Flex Code
13468 status collapsed
13469
13470 \begin_layout Plain Layout
13471 Environment
13472 \end_layout
13473
13474 \end_inset
13475
13476 , except that an 
13477 \begin_inset Flex Code
13478 status collapsed
13479
13480 \begin_layout Plain Layout
13481
13482 \backslash
13483 item
13484 \end_layout
13485
13486 \end_inset
13487
13488  is generated for each paragraph of this environment.
13489  
13490 \end_layout
13491
13492 \begin_layout Description
13493 \begin_inset Flex Code
13494 status collapsed
13495
13496 \begin_layout Plain Layout
13497 List_Environment
13498 \end_layout
13499
13500 \end_inset
13501
13502  is the same as 
13503 \begin_inset Flex Code
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 Item_Environment
13508 \end_layout
13509
13510 \end_inset
13511
13512 , except that
13513 \begin_inset Newline newline
13514 \end_inset
13515
13516
13517 \begin_inset Flex Code
13518 status collapsed
13519
13520 \begin_layout Plain Layout
13521 LabelWidthString
13522 \end_layout
13523
13524 \end_inset
13525
13526  is passed as an argument to the environment.
13527 \begin_inset Newline newline
13528 \end_inset
13529
13530
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 LabelWidthString
13536 \end_layout
13537
13538 \end_inset
13539
13540  can be defined in the 
13541 \begin_inset Flex MenuItem
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Edit\SpecialChar menuseparator
13546 Paragraph
13547 \begin_inset space ~
13548 \end_inset
13549
13550 settings
13551 \end_layout
13552
13553 \end_inset
13554
13555  dialog.
13556 \end_layout
13557
13558 \begin_layout Description
13559 \begin_inset Flex Code
13560 status collapsed
13561
13562 \begin_layout Plain Layout
13563 Bib_Environment
13564 \end_layout
13565
13566 \end_inset
13567
13568  is like 
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 Environment
13574 \end_layout
13575
13576 \end_inset
13577
13578  but adds additionally the necessary mandatory argument (the longest label)
13579  to the begin statement of the bibliography environment:
13580 \begin_inset Newline newline
13581 \end_inset
13582
13583
13584 \begin_inset Flex Code
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588
13589 \backslash
13590 begin{thebibliography}{99}
13591 \end_layout
13592
13593 \end_inset
13594
13595  It is therefore only useful for bibliography environments.
13596  The default longest label 
13597 \begin_inset Quotes eld
13598 \end_inset
13599
13600 99
13601 \begin_inset Quotes erd
13602 \end_inset
13603
13604  can be changed by the user in the paragraph settings of a bibliography
13605  item.
13606 \end_layout
13607
13608 \begin_layout Standard
13609 Putting the last few things together, the \SpecialChar LaTeX
13610  output will be either: 
13611 \end_layout
13612
13613 \begin_layout LyX-Code
13614
13615 \backslash
13616 LatexName[LatexParam]{\SpecialChar ldots
13617 }
13618 \end_layout
13619
13620 \begin_layout Standard
13621 or: 
13622 \end_layout
13623
13624 \begin_layout LyX-Code
13625
13626 \backslash
13627 begin{LatexName}[LatexParam] \SpecialChar ldots
13628  
13629 \backslash
13630 end{LatexName}.
13631 \end_layout
13632
13633 \begin_layout Standard
13634 depending upon the \SpecialChar LaTeX
13635  type.
13636 \end_layout
13637
13638 \end_deeper
13639 \begin_layout Description
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 LeftDelim
13645 \end_layout
13646
13647 \end_inset
13648
13649  [
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 string
13655 \end_layout
13656
13657 \end_inset
13658
13659 ] A string that is put at the beginning of the style content.
13660  A line break in the output can be indicated by 
13661 \begin_inset Flex Code
13662 status collapsed
13663
13664 \begin_layout Plain Layout
13665 <br/>
13666 \end_layout
13667
13668 \end_inset
13669
13670 .
13671 \end_layout
13672
13673 \begin_layout Description
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 LeftMargin
13679 \end_layout
13680
13681 \end_inset
13682
13683  [
13684 \begin_inset Flex Code
13685 status collapsed
13686
13687 \begin_layout Plain Layout
13688 string=""
13689 \end_layout
13690
13691 \end_inset
13692
13693 ] If you put styles into environments, the different 
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 LeftMargin
13699 \end_layout
13700
13701 \end_inset
13702
13703  are not simply added, but added with a factor 
13704 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13705 \end_inset
13706
13707 .
13708  Note that this parameter is also used when 
13709 \begin_inset Flex Code
13710 status collapsed
13711
13712 \begin_layout Plain Layout
13713 Margin
13714 \end_layout
13715
13716 \end_inset
13717
13718  is defined as 
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 Manual
13724 \end_layout
13725
13726 \end_inset
13727
13728  or 
13729 \begin_inset Flex Code
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733 Dynamic
13734 \end_layout
13735
13736 \end_inset
13737
13738 .
13739  Then it is added to the manual or dynamic margin.
13740 \begin_inset Newline newline
13741 \end_inset
13742
13743 For example 
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 MM
13753 \end_layout
13754
13755 \end_inset
13756
13757
13758 \begin_inset Quotes erd
13759 \end_inset
13760
13761  means that the paragraph is indented with the width of 
13762 \begin_inset Quotes eld
13763 \end_inset
13764
13765
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 MM
13771 \end_layout
13772
13773 \end_inset
13774
13775
13776 \begin_inset Quotes erd
13777 \end_inset
13778
13779  in the normal font.
13780  You can get a negative width by prefixing the string with 
13781 \begin_inset Quotes eld
13782 \end_inset
13783
13784
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 -
13790 \end_layout
13791
13792 \end_inset
13793
13794
13795 \begin_inset Quotes erd
13796 \end_inset
13797
13798 .
13799  This way was chosen so that the look is the same with each used screen
13800  font.
13801 \end_layout
13802
13803 \begin_layout Description
13804 \begin_inset Flex Code
13805 status collapsed
13806
13807 \begin_layout Plain Layout
13808 Margin
13809 \end_layout
13810
13811 \end_inset
13812
13813  [
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818
13819 \emph on
13820 Static
13821 \emph default
13822 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13823 \end_layout
13824
13825 \end_inset
13826
13827
13828 \begin_inset Newline newline
13829 \end_inset
13830
13831 The kind of margin that the style has on the left side.
13832 \begin_inset Separator parbreak
13833 \end_inset
13834
13835
13836 \end_layout
13837
13838 \begin_deeper
13839 \begin_layout Description
13840 \begin_inset Flex Code
13841 status collapsed
13842
13843 \begin_layout Plain Layout
13844 Static
13845 \end_layout
13846
13847 \end_inset
13848
13849  just means a fixed margin.
13850 \end_layout
13851
13852 \begin_layout Description
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 Manual
13858 \end_layout
13859
13860 \end_inset
13861
13862  means that the left margin depends on the string entered in the 
13863 \begin_inset Flex MenuItem
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 Edit\SpecialChar menuseparator
13868 Paragraph
13869 \begin_inset space ~
13870 \end_inset
13871
13872 Settings
13873 \end_layout
13874
13875 \end_inset
13876
13877  dialog.
13878  This is used to typeset nice lists without tabulators.
13879 \end_layout
13880
13881 \begin_layout Description
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 Dynamic
13887 \end_layout
13888
13889 \end_inset
13890
13891  means that the margin depends on the size of the label.
13892  This is used for automatic enumerated headlines.
13893  It is obvious that the headline 
13894 \begin_inset Quotes eld
13895 \end_inset
13896
13897 5.4.3.2.1 Very long headline
13898 \begin_inset Quotes erd
13899 \end_inset
13900
13901  must have a wider left margin (as wide as 
13902 \begin_inset Quotes eld
13903 \end_inset
13904
13905 5.4.3.2.1
13906 \begin_inset Quotes erd
13907 \end_inset
13908
13909  plus the space) than 
13910 \begin_inset Quotes eld
13911 \end_inset
13912
13913 3.2 Very long headline
13914 \begin_inset Quotes erd
13915 \end_inset
13916
13917 , even if standard 
13918 \begin_inset Quotes eld
13919 \end_inset
13920
13921 word processors
13922 \begin_inset Quotes erd
13923 \end_inset
13924
13925  are not able to do this.
13926 \end_layout
13927
13928 \begin_layout Description
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 First_Dynamic
13934 \end_layout
13935
13936 \end_inset
13937
13938  is similar, but only the very first row of the paragraph is dynamic, while
13939  the others are static; this is used, for example, for descriptions.
13940 \end_layout
13941
13942 \begin_layout Description
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 Right_Address_Box
13948 \end_layout
13949
13950 \end_inset
13951
13952  means the margin is chosen in a way that the longest row of this paragraph
13953  fits to the right margin.
13954  This is used to typeset an address on the right edge of the page.
13955 \end_layout
13956
13957 \end_deeper
13958 \begin_layout Description
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 NeedProtect
13964 \end_layout
13965
13966 \end_inset
13967
13968  [
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973
13974 \emph on
13975 0
13976 \end_layout
13977
13978 \end_inset
13979
13980 ,
13981 \begin_inset space \thinspace{}
13982 \end_inset
13983
13984
13985 \begin_inset Flex Code
13986 status collapsed
13987
13988 \begin_layout Plain Layout
13989 1
13990 \end_layout
13991
13992 \end_inset
13993
13994 ] Whether fragile commands in this style should be 
13995 \begin_inset Flex Code
13996 status collapsed
13997
13998 \begin_layout Plain Layout
13999
14000 \backslash
14001 protect
14002 \end_layout
14003
14004 \end_inset
14005
14006 'ed.
14007  (Note: This is 
14008 \emph on
14009 not
14010 \emph default
14011  whether this command should itself be protected.)
14012 \end_layout
14013
14014 \begin_layout Description
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 Newline
14020 \end_layout
14021
14022 \end_inset
14023
14024  [
14025 \begin_inset Flex Code
14026 status collapsed
14027
14028 \begin_layout Plain Layout
14029 0
14030 \end_layout
14031
14032 \end_inset
14033
14034 ,
14035 \begin_inset space \thinspace{}
14036 \end_inset
14037
14038
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043
14044 \emph on
14045 1
14046 \end_layout
14047
14048 \end_inset
14049
14050 ] Whether newlines are translated into \SpecialChar LaTeX
14051  newlines (
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056
14057 \backslash
14058
14059 \backslash
14060
14061 \end_layout
14062
14063 \end_inset
14064
14065 ) or not.
14066  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14067  editing
14068  inside \SpecialChar LyX
14069 .
14070 \end_layout
14071
14072 \begin_layout Description
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 NextNoIndent
14078 \end_layout
14079
14080 \end_inset
14081
14082  [
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087
14088 \emph on
14089 0
14090 \end_layout
14091
14092 \end_inset
14093
14094 ,
14095 \begin_inset space \thinspace{}
14096 \end_inset
14097
14098
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 1
14104 \end_layout
14105
14106 \end_inset
14107
14108 ] If set to true, and if 
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 DefaultStyle
14114 \end_layout
14115
14116 \end_inset
14117
14118  (usually 
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 Standard
14124 \end_layout
14125
14126 \end_inset
14127
14128 ) paragraphs are being indented, then the indentation of such a paragraph
14129  following one of this type will be suppressed.
14130  (So this will not affect the display of non-default paragraphs.)
14131 \end_layout
14132
14133 \begin_layout Description
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 ObsoletedBy
14139 \end_layout
14140
14141 \end_inset
14142
14143  [
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 <name>
14149 \end_layout
14150
14151 \end_inset
14152
14153 ] Name of a style that has replaced this style.
14154  This is used to rename a style, while keeping backward compatibility.
14155 \end_layout
14156
14157 \begin_layout Description
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162 ParbreakIsNewline
14163 \end_layout
14164
14165 \end_inset
14166
14167  [
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172
14173 \emph on
14174 0
14175 \end_layout
14176
14177 \end_inset
14178
14179 ,
14180 \begin_inset space \thinspace{}
14181 \end_inset
14182
14183
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188 1
14189 \end_layout
14190
14191 \end_inset
14192
14193 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14194  output,
14195  but only by a line break; together with 
14196 \begin_inset Flex Code
14197 status collapsed
14198
14199 \begin_layout Plain Layout
14200 PassThru 1
14201 \end_layout
14202
14203 \end_inset
14204
14205 , this allows to emulate a plain text editor (like the ERT inset).
14206 \end_layout
14207
14208 \begin_layout Description
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 ParIndent
14214 \end_layout
14215
14216 \end_inset
14217
14218  [
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 string=""
14224 \end_layout
14225
14226 \end_inset
14227
14228 ] The indent of the very first line of a paragraph.
14229  The
14230 \begin_inset Newline newline
14231 \end_inset
14232
14233
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 Parindent
14239 \end_layout
14240
14241 \end_inset
14242
14243  will be fixed for a certain style.
14244  The exception is the default style, since the indentation for these paragraphs
14245  can be prohibited with 
14246 \begin_inset Flex Code
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 NextNoIndent
14251 \end_layout
14252
14253 \end_inset
14254
14255 .
14256  Also, 
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 Standard
14262 \end_layout
14263
14264 \end_inset
14265
14266  style paragraphs inside environments use the 
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 Parindent
14272 \end_layout
14273
14274 \end_inset
14275
14276  of the environment, not their native one.
14277  For example, 
14278 \begin_inset Flex Code
14279 status collapsed
14280
14281 \begin_layout Plain Layout
14282 Standard
14283 \end_layout
14284
14285 \end_inset
14286
14287  paragraphs inside an enumeration are not indented.
14288 \end_layout
14289
14290 \begin_layout Description
14291 \begin_inset Flex Code
14292 status collapsed
14293
14294 \begin_layout Plain Layout
14295 ParSep
14296 \end_layout
14297
14298 \end_inset
14299
14300  [
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 float=0
14306 \end_layout
14307
14308 \end_inset
14309
14310 ] The vertical space between two paragraphs of this style.
14311 \end_layout
14312
14313 \begin_layout Description
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 Parskip
14319 \end_layout
14320
14321 \end_inset
14322
14323  [
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 float=0
14329 \end_layout
14330
14331 \end_inset
14332
14333 ] \SpecialChar LyX
14334  allows the user to choose either 
14335 \begin_inset Quotes eld
14336 \end_inset
14337
14338 indent
14339 \begin_inset Quotes erd
14340 \end_inset
14341
14342  or 
14343 \begin_inset Quotes eld
14344 \end_inset
14345
14346 skip
14347 \begin_inset Quotes erd
14348 \end_inset
14349
14350  to separate paragraphs.
14351  When 
14352 \begin_inset Quotes eld
14353 \end_inset
14354
14355 indent
14356 \begin_inset Quotes erd
14357 \end_inset
14358
14359  is chosen, 
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364 Parskip
14365 \end_layout
14366
14367 \end_inset
14368
14369  is ignored.
14370  When 
14371 \begin_inset Quotes eld
14372 \end_inset
14373
14374 skip
14375 \begin_inset Quotes erd
14376 \end_inset
14377
14378  is chosen, 
14379 \begin_inset Flex Code
14380 status collapsed
14381
14382 \begin_layout Plain Layout
14383 ParIndent
14384 \end_layout
14385
14386 \end_inset
14387
14388  is ignored and all paragraphs are separated by the 
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 Parskip
14394 \end_layout
14395
14396 \end_inset
14397
14398  argument.
14399  The vertical space is calculated with 
14400 \begin_inset Flex Code
14401 status collapsed
14402
14403 \begin_layout Plain Layout
14404 Parskip
14405 \begin_inset space ~
14406 \end_inset
14407
14408 * DefaultHeight
14409 \end_layout
14410
14411 \end_inset
14412
14413  where 
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 DefaultHeight
14419 \end_layout
14420
14421 \end_inset
14422
14423  is the height of a row with the normal font.
14424  This way, the look stays the same with different screen fonts.
14425 \end_layout
14426
14427 \begin_layout Description
14428 \begin_inset Flex Code
14429 status collapsed
14430
14431 \begin_layout Plain Layout
14432 PassThru
14433 \end_layout
14434
14435 \end_inset
14436
14437  [
14438 \begin_inset Flex Code
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442
14443 \emph on
14444 0
14445 \end_layout
14446
14447 \end_inset
14448
14449 ,
14450 \begin_inset space \thinspace{}
14451 \end_inset
14452
14453
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 1
14459 \end_layout
14460
14461 \end_inset
14462
14463 ] Whether the contents of this paragraph should be output in raw form, meaning
14464  without special translations that \SpecialChar LaTeX
14465  would require.
14466 \change_inserted 155139281 1429534178
14467
14468 \end_layout
14469
14470 \begin_layout Description
14471
14472 \change_inserted 155139281 1429534242
14473
14474 \lang ngerman
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479
14480 \change_inserted 155139281 1429534178
14481 PassThruChars
14482 \end_layout
14483
14484 \end_inset
14485
14486
14487 \lang english
14488  [
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493
14494 \change_inserted 155139281 1429534178
14495 string of characters
14496 \end_layout
14497
14498 \end_inset
14499
14500 ]
14501 \family typewriter
14502  
14503 \family default
14504 Defines individual characters that should be output in raw form, meaning
14505  without special translations that \SpecialChar LaTeX
14506  would require.
14507 \change_unchanged
14508
14509 \end_layout
14510
14511 \begin_layout Description
14512 \begin_inset Flex Code
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 Preamble
14517 \end_layout
14518
14519 \end_inset
14520
14521  Information to be included in the \SpecialChar LaTeX
14522  preamble when this style is used.
14523  Used to define macros, load packages, etc., required by this particular
14524  style.
14525  Must end with 
14526 \begin_inset Quotes eld
14527 \end_inset
14528
14529
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 EndPreamble
14535 \end_layout
14536
14537 \end_inset
14538
14539
14540 \begin_inset Quotes erd
14541 \end_inset
14542
14543 .
14544 \end_layout
14545
14546 \begin_layout Description
14547 \begin_inset Flex Code
14548 status collapsed
14549
14550 \begin_layout Plain Layout
14551 RefPrefix
14552 \end_layout
14553
14554 \end_inset
14555
14556  [
14557 \begin_inset Flex Code
14558 status collapsed
14559
14560 \begin_layout Plain Layout
14561 string
14562 \end_layout
14563
14564 \end_inset
14565
14566 ] The prefix to use when creating labels referring to paragraphs of this
14567  type.
14568  This allows the use of formatted references.
14569 \end_layout
14570
14571 \begin_layout Description
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 Requires 
14577 \end_layout
14578
14579 \end_inset
14580
14581  [
14582 \begin_inset Flex Code
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 string
14587 \end_layout
14588
14589 \end_inset
14590
14591 ] Whether the style requires the feature 
14592 \begin_inset Flex Code
14593 status collapsed
14594
14595 \begin_layout Plain Layout
14596 string
14597 \end_layout
14598
14599 \end_inset
14600
14601 .
14602  See the description of 
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607 Provides
14608 \end_layout
14609
14610 \end_inset
14611
14612  above (
14613 \begin_inset CommandInset ref
14614 LatexCommand ref
14615 reference "sub:General-text-class"
14616
14617 \end_inset
14618
14619 ) for information on `features'.
14620 \end_layout
14621
14622 \begin_layout Description
14623 \begin_inset Flex Code
14624 status collapsed
14625
14626 \begin_layout Plain Layout
14627 ResetArgs
14628 \end_layout
14629
14630 \end_inset
14631
14632  [
14633 \begin_inset Flex Code
14634 status collapsed
14635
14636 \begin_layout Plain Layout
14637
14638 \emph on
14639 0
14640 \end_layout
14641
14642 \end_inset
14643
14644 ,
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 1
14650 \end_layout
14651
14652 \end_inset
14653
14654 ] Resets the \SpecialChar LaTeX
14655  arguments of this style (as defined via the 
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 Argument
14661 \end_layout
14662
14663 \end_inset
14664
14665  tag).
14666  This is useful if you have copied a style via 
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 CopyStyle
14672 \end_layout
14673
14674 \end_inset
14675
14676 , but you do not want to inherit its (required and optional) arguments.
14677 \end_layout
14678
14679 \begin_layout Description
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 RightDelim
14685 \end_layout
14686
14687 \end_inset
14688
14689  [
14690 \begin_inset Flex Code
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694 string
14695 \end_layout
14696
14697 \end_inset
14698
14699 ] A string that is put at the end of the layout content.
14700  A line break in the output can be indicated by 
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 <br/>
14706 \end_layout
14707
14708 \end_inset
14709
14710 .
14711 \end_layout
14712
14713 \begin_layout Description
14714 \begin_inset Flex Code
14715 status collapsed
14716
14717 \begin_layout Plain Layout
14718 RightMargin
14719 \end_layout
14720
14721 \end_inset
14722
14723  [
14724 \begin_inset Flex Code
14725 status collapsed
14726
14727 \begin_layout Plain Layout
14728 string=""
14729 \end_layout
14730
14731 \end_inset
14732
14733 ] Similar to 
14734 \begin_inset Flex Code
14735 status collapsed
14736
14737 \begin_layout Plain Layout
14738 LeftMargin
14739 \end_layout
14740
14741 \end_inset
14742
14743 .
14744 \end_layout
14745
14746 \begin_layout Description
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 Spacing
14752 \end_layout
14753
14754 \end_inset
14755
14756  [
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761
14762 \emph on
14763 single
14764 \end_layout
14765
14766 \end_inset
14767
14768
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773 onehalf
14774 \end_layout
14775
14776 \end_inset
14777
14778
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 double
14784 \end_layout
14785
14786 \end_inset
14787
14788
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 other
14794 \begin_inset space ~
14795 \end_inset
14796
14797 <value>
14798 \end_layout
14799
14800 \end_inset
14801
14802 ] This defines what the default spacing should be in the style.
14803  The arguments 
14804 \begin_inset Flex Code
14805 status collapsed
14806
14807 \begin_layout Plain Layout
14808 single
14809 \end_layout
14810
14811 \end_inset
14812
14813
14814 \begin_inset Flex Code
14815 status collapsed
14816
14817 \begin_layout Plain Layout
14818 onehalf
14819 \end_layout
14820
14821 \end_inset
14822
14823  and 
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 double
14829 \end_layout
14830
14831 \end_inset
14832
14833  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
14834  If you specify the argument 
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 other
14840 \end_layout
14841
14842 \end_inset
14843
14844 , then you must also provide a value argument which will be the actual multiplie
14845 r value.
14846  Note that, contrary to other parameters, 
14847 \begin_inset Flex Code
14848 status collapsed
14849
14850 \begin_layout Plain Layout
14851 Spacing
14852 \end_layout
14853
14854 \end_inset
14855
14856  implies the generation of specific \SpecialChar LaTeX
14857  code, using the \SpecialChar LaTeX
14858  package 
14859 \family roman
14860
14861 \begin_inset Flex Code
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865 setspace
14866 \end_layout
14867
14868 \end_inset
14869
14870 .
14871 \end_layout
14872
14873 \begin_layout Description
14874 \begin_inset Flex Code
14875 status collapsed
14876
14877 \begin_layout Plain Layout
14878 Spellcheck
14879 \end_layout
14880
14881 \end_inset
14882
14883  [
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 0
14889 \end_layout
14890
14891 \end_inset
14892
14893 ,
14894 \begin_inset space \thinspace{}
14895 \end_inset
14896
14897
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902
14903 \emph on
14904 1
14905 \end_layout
14906
14907 \end_inset
14908
14909 ] Allow spell-checking paragraphs of this style.
14910  Default is true.
14911 \end_layout
14912
14913 \begin_layout Description
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 TextFont
14919 \end_layout
14920
14921 \end_inset
14922
14923  The font used for the text body .
14924  See 
14925 \begin_inset CommandInset ref
14926 LatexCommand ref
14927 reference "sub:Font-description"
14928
14929 \end_inset
14930
14931 .
14932 \end_layout
14933
14934 \begin_layout Description
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 TocLevel
14940 \end_layout
14941
14942 \end_inset
14943
14944
14945 \series medium
14946  [
14947 \begin_inset Flex Code
14948 status collapsed
14949
14950 \begin_layout Plain Layout
14951
14952 \series medium
14953 int=3
14954 \end_layout
14955
14956 \end_inset
14957
14958 ]
14959 \series default
14960  The level of the style in the table of contents.
14961  This is used for automatic numbering of section headings.
14962 \change_inserted -712698321 1401363541
14963
14964 \end_layout
14965
14966 \begin_layout Description
14967
14968 \change_inserted -712698321 1401363906
14969 \begin_inset Flex Code
14970 status collapsed
14971
14972 \begin_layout Plain Layout
14973
14974 \change_inserted -712698321 1401363547
14975 ToggleIndent
14976 \end_layout
14977
14978 \end_inset
14979
14980  [
14981 \emph on
14982
14983 \begin_inset Flex Code
14984 status collapsed
14985
14986 \begin_layout Plain Layout
14987
14988 \change_inserted -712698321 1401363664
14989
14990 \emph on
14991 default
14992 \change_unchanged
14993
14994 \end_layout
14995
14996 \end_inset
14997
14998
14999 \emph default
15000
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005
15006 \change_inserted -712698321 1401363669
15007 always
15008 \change_unchanged
15009
15010 \end_layout
15011
15012 \end_inset
15013
15014
15015 \begin_inset Flex Code
15016 status collapsed
15017
15018 \begin_layout Plain Layout
15019
15020 \change_inserted -712698321 1401363675
15021 never
15022 \change_unchanged
15023
15024 \end_layout
15025
15026 \end_inset
15027
15028 ] This tag determines whether the first line indentation of this paragraph
15029  can be toggled via the Paragraph settings dialog.
15030  If 
15031 \emph on
15032
15033 \begin_inset Flex Code
15034 status collapsed
15035
15036 \begin_layout Plain Layout
15037
15038 \change_inserted -712698321 1401363761
15039
15040 \emph off
15041 default
15042 \end_layout
15043
15044 \end_inset
15045
15046
15047 \emph default
15048  is set, indentation can be toggled if the document settings use 
15049 \begin_inset Quotes eld
15050 \end_inset
15051
15052 indent
15053 \begin_inset Quotes erd
15054 \end_inset
15055
15056  paragraph style, with 
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061
15062 \change_inserted -712698321 1401363844
15063 always
15064 \end_layout
15065
15066 \end_inset
15067
15068 , indentation can always be toggled, notwithstanding the document settings,
15069  with 
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074
15075 \change_inserted -712698321 1401363901
15076 never
15077 \end_layout
15078
15079 \end_inset
15080
15081 , indentation can never be toggled.
15082 \change_unchanged
15083
15084 \end_layout
15085
15086 \begin_layout Description
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 TopSep
15092 \end_layout
15093
15094 \end_inset
15095
15096  [
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101 float=0
15102 \end_layout
15103
15104 \end_inset
15105
15106 ] The vertical space with which the very first of a chain of paragraphs
15107  with this style is separated from the previous paragraph.
15108  If the previous paragraph has another style, the separations are not simply
15109  added, but the maximum is taken.
15110 \end_layout
15111
15112 \begin_layout Subsection
15113 \begin_inset CommandInset label
15114 LatexCommand label
15115 name "sub:I18n"
15116
15117 \end_inset
15118
15119 Internationalization of Paragraph Styles
15120 \end_layout
15121
15122 \begin_layout Standard
15123 \SpecialChar LyX
15124  has long supported internationalization of layout information, but, until
15125  version 2.0, this applied only to the user interface and not to, say, PDF
15126  output.
15127  Thus, French authors were forced to resort to ugly hacks if they wanted
15128  `
15129 \lang french
15130 Théorème
15131 \lang english
15132  1' instead of `Theorem 1'.
15133  Thanks to Georg Baum, that is no longer the case.
15134 \end_layout
15135
15136 \begin_layout Standard
15137 If a 
15138 \begin_inset Flex Code
15139 status collapsed
15140
15141 \begin_layout Plain Layout
15142 Style
15143 \end_layout
15144
15145 \end_inset
15146
15147  defines text that is to appear in the typeset document, it may use 
15148 \begin_inset Flex Code
15149 status collapsed
15150
15151 \begin_layout Plain Layout
15152 LangPreamble
15153 \end_layout
15154
15155 \end_inset
15156
15157  and 
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 BabelPreamble
15163 \end_layout
15164
15165 \end_inset
15166
15167  to support non-English and even multi-language documents correctly.
15168  The following excerpt (from the 
15169 \begin_inset Flex Code
15170 status collapsed
15171
15172 \begin_layout Plain Layout
15173 theorems-ams.inc
15174 \end_layout
15175
15176 \end_inset
15177
15178  file) shows how this works:
15179 \end_layout
15180
15181 \begin_layout LyX-Code
15182 Preamble
15183 \begin_inset Separator parbreak
15184 \end_inset
15185
15186
15187 \end_layout
15188
15189 \begin_deeper
15190 \begin_layout LyX-Code
15191   
15192 \backslash
15193 theoremstyle{remark}
15194 \end_layout
15195
15196 \begin_layout LyX-Code
15197   
15198 \backslash
15199 newtheorem{claim}[thm]{
15200 \backslash
15201 protect
15202 \backslash
15203 claimname}
15204 \end_layout
15205
15206 \begin_layout LyX-Code
15207 EndPreamble
15208 \end_layout
15209
15210 \begin_layout LyX-Code
15211 LangPreamble
15212 \end_layout
15213
15214 \begin_layout LyX-Code
15215   
15216 \backslash
15217 providecommand{
15218 \backslash
15219 claimname}{_(Claim)}
15220 \end_layout
15221
15222 \begin_layout LyX-Code
15223 EndLangPreamble
15224 \end_layout
15225
15226 \begin_layout LyX-Code
15227 BabelPreamble
15228 \end_layout
15229
15230 \begin_layout LyX-Code
15231     
15232 \backslash
15233 addto
15234 \backslash
15235 captions$$lang{
15236 \backslash
15237 renewcommand{
15238 \backslash
15239 claimname}{_(Claim)}}
15240 \end_layout
15241
15242 \begin_layout LyX-Code
15243 EndBabelPreamble
15244 \end_layout
15245
15246 \end_deeper
15247 \begin_layout Standard
15248 In principle, any legal \SpecialChar LaTeX
15249  may appear in the 
15250 \begin_inset Flex Code
15251 status collapsed
15252
15253 \begin_layout Plain Layout
15254 LangPreamble
15255 \end_layout
15256
15257 \end_inset
15258
15259  and 
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 BabelPreamble
15265 \end_layout
15266
15267 \end_inset
15268
15269  tags, but in practice they will typically look as they do here.
15270  The key to correct translation of the typeset text is the definition of
15271  the \SpecialChar LaTeX
15272  command 
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277
15278 \backslash
15279 claimname
15280 \end_layout
15281
15282 \end_inset
15283
15284  and its use in 
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289
15290 \backslash
15291 newtheorem
15292 \end_layout
15293
15294 \end_inset
15295
15296 .
15297  
15298 \end_layout
15299
15300 \begin_layout Standard
15301 The 
15302 \begin_inset Flex Code
15303 status collapsed
15304
15305 \begin_layout Plain Layout
15306 LangPreamble
15307 \end_layout
15308
15309 \end_inset
15310
15311  tag provides for internationalization based upon the overall language of
15312  the document.
15313  The contents of the tag will be included in the preamble, just as with
15314  the 
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 Preamble
15320 \end_layout
15321
15322 \end_inset
15323
15324  tag.
15325  What makes it special is the use of the 
15326 \begin_inset Quotes eld
15327 \end_inset
15328
15329 function
15330 \begin_inset Quotes erd
15331 \end_inset
15332
15333  
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 _()
15339 \end_layout
15340
15341 \end_inset
15342
15343 , which will be replaced, when \SpecialChar LyX
15344  produces \SpecialChar LaTeX
15345  output, with the translation of
15346  its argument into the document language.
15347 \end_layout
15348
15349 \begin_layout Standard
15350 The 
15351 \begin_inset Flex Code
15352 status collapsed
15353
15354 \begin_layout Plain Layout
15355 BabelPreamble
15356 \end_layout
15357
15358 \end_inset
15359
15360  tag is more complex, since it is meant to provide support for multi-language
15361  documents and so offers an interface to the 
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 babel
15367 \end_layout
15368
15369 \end_inset
15370
15371  package.
15372  Its contents will be added to the preamble once for each language that
15373  appears in the document.
15374  In this case, the argument to 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 _()
15380 \end_layout
15381
15382 \end_inset
15383
15384  will be replaced with its translation into the language in question; the
15385  expression 
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 $$lang
15391 \end_layout
15392
15393 \end_inset
15394
15395  is replaced by the language name (as used by the babel package).
15396 \end_layout
15397
15398 \begin_layout Standard
15399 A German document that also included a French section would thus have the
15400  following in the preamble:
15401 \end_layout
15402
15403 \begin_layout LyX-Code
15404
15405 \backslash
15406 addto
15407 \backslash
15408 captionsfrench{
15409 \backslash
15410 renewcommand{
15411 \backslash
15412 claimname}{Affirmation}}
15413 \begin_inset Newline newline
15414 \end_inset
15415
15416
15417 \backslash
15418 addto
15419 \backslash
15420 captionsngerman{
15421 \backslash
15422 renewcommand{
15423 \backslash
15424 claimname}{Behauptung}}
15425 \begin_inset Newline newline
15426 \end_inset
15427
15428
15429 \backslash
15430 providecommand{
15431 \backslash
15432 claimname}{Behauptung}
15433 \end_layout
15434
15435 \begin_layout Standard
15436 \SpecialChar LaTeX
15437  and 
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 babel
15443 \end_layout
15444
15445 \end_inset
15446
15447  will then conspire to produce the correct text in the output.
15448 \end_layout
15449
15450 \begin_layout Standard
15451 One important point to note here is that the translations are provided by
15452  \SpecialChar LyX
15453  itself, through the file 
15454 \begin_inset Flex Code
15455 status collapsed
15456
15457 \begin_layout Plain Layout
15458 layouttranslations
15459 \end_layout
15460
15461 \end_inset
15462
15463 .
15464  This means, in effect, that 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 LangPreamble
15470 \end_layout
15471
15472 \end_inset
15473
15474  and 
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 BabelPreamble
15480 \end_layout
15481
15482 \end_inset
15483
15484  are really only of use in layout files that are provided with \SpecialChar LyX
15485 , since text
15486  entered in user-created layout files will not be seen by \SpecialChar LyX
15487 's internationalizatio
15488 n routines unless the 
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 layouttranslations
15494 \end_layout
15495
15496 \end_inset
15497
15498  file is modified accordingly.
15499  That said, however, any layout created with the intention that it will
15500  be included with \SpecialChar LyX
15501  should use these tags where appropriate.
15502  Please note that the paragraph style translations provided by \SpecialChar LyX
15503  will never
15504  change with a minor update (e.
15505 \begin_inset space \thinspace{}
15506 \end_inset
15507
15508 g.
15509 \begin_inset space \space{}
15510 \end_inset
15511
15512 from version 2.1.x to 2.1.y).
15513  It is however quite likely that a major update (e.
15514 \begin_inset space \thinspace{}
15515 \end_inset
15516
15517 g.
15518 \begin_inset space \space{}
15519 \end_inset
15520
15521 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15522 \end_layout
15523
15524 \begin_layout Subsection
15525 Floats
15526 \begin_inset CommandInset label
15527 LatexCommand label
15528 name "sub:Floats"
15529
15530 \end_inset
15531
15532
15533 \end_layout
15534
15535 \begin_layout Standard
15536 It is necessary to define the floats (
15537 \begin_inset Flex MenuItem
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 figure
15542 \end_layout
15543
15544 \end_inset
15545
15546
15547 \begin_inset Flex MenuItem
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 table
15552 \end_layout
15553
15554 \end_inset
15555
15556 , \SpecialChar ldots
15557 ) in the text class itself.
15558  Standard floats are included in the file 
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 stdfloats.inc
15564 \end_layout
15565
15566 \end_inset
15567
15568 , so you may have to do no more than add
15569 \end_layout
15570
15571 \begin_layout LyX-Code
15572 Input stdfloats.inc
15573 \end_layout
15574
15575 \begin_layout Standard
15576 to your layout file.
15577  If you want to implement a text class that proposes some other float types
15578  (like the AGU class bundled with \SpecialChar LyX
15579 ), the information below will hopefully
15580  help you:
15581 \end_layout
15582
15583 \begin_layout Description
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 Extension
15589 \end_layout
15590
15591 \end_inset
15592
15593  [
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 string
15599 \end_layout
15600
15601 \end_inset
15602
15603 =
15604 \begin_inset Quotes erd
15605 \end_inset
15606
15607
15608 \begin_inset Quotes erd
15609 \end_inset
15610
15611 ] The file name extension of an auxiliary file for the list of figures (or
15612  whatever).
15613  \SpecialChar LaTeX
15614  writes the captions to this file.
15615 \end_layout
15616
15617 \begin_layout Description
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622 GuiName
15623 \end_layout
15624
15625 \end_inset
15626
15627  [
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 string
15633 \end_layout
15634
15635 \end_inset
15636
15637 =
15638 \begin_inset Quotes erd
15639 \end_inset
15640
15641
15642 \begin_inset Quotes erd
15643 \end_inset
15644
15645 ] The string that will be used in the menus and also for the caption.
15646  This is translated to the current language if babel is used.
15647 \end_layout
15648
15649 \begin_layout Description
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 HTML*
15655 \end_layout
15656
15657 \end_inset
15658
15659  These tags control the XHTML output.
15660  See 
15661 \begin_inset CommandInset ref
15662 LatexCommand ref
15663 reference "sec:Tags-for-XHTML"
15664
15665 \end_inset
15666
15667 .
15668 \end_layout
15669
15670 \begin_layout Description
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 IsPredefined
15676 \end_layout
15677
15678 \end_inset
15679
15680  [
15681 \emph on
15682
15683 \begin_inset Flex Code
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687 0
15688 \end_layout
15689
15690 \end_inset
15691
15692
15693 \emph default
15694 ,
15695 \begin_inset space \thinspace{}
15696 \end_inset
15697
15698
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703 1
15704 \end_layout
15705
15706 \end_inset
15707
15708 ] Indicates whether the float is already defined in the document class or
15709  if instead the \SpecialChar LaTeX
15710  package 
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 float
15716 \end_layout
15717
15718 \end_inset
15719
15720  needs to be loaded to define it on-the-fly.
15721  The default is 
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 0
15727 \end_layout
15728
15729 \end_inset
15730
15731 , which means: 
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 float
15737 \end_layout
15738
15739 \end_inset
15740
15741  is used.
15742  It should be set to 
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747 1
15748 \end_layout
15749
15750 \end_inset
15751
15752  if the float is already defined by the \SpecialChar LaTeX
15753  document class.
15754 \end_layout
15755
15756 \begin_layout Description
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 ListCommand
15762 \end_layout
15763
15764 \end_inset
15765
15766  [
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 string
15772 \end_layout
15773
15774 \end_inset
15775
15776 =
15777 \begin_inset Quotes erd
15778 \end_inset
15779
15780
15781 \begin_inset Quotes erd
15782 \end_inset
15783
15784 ] The command used to generate a list of floats of this type; the leading
15785  `
15786 \backslash
15787 ' must be omitted.
15788  This 
15789 \emph on
15790 must
15791 \emph default
15792  be given if 
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 UsesFloatPkg
15798 \end_layout
15799
15800 \end_inset
15801
15802  is false, since there is no standard way to generate this command.
15803  It is ignored if 
15804 \begin_inset Flex Code
15805 status collapsed
15806
15807 \begin_layout Plain Layout
15808 UsesFloatPkg
15809 \end_layout
15810
15811 \end_inset
15812
15813  is true, since in that case there is a standard way to define the command.
15814 \end_layout
15815
15816 \begin_layout Description
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821 ListName
15822 \end_layout
15823
15824 \end_inset
15825
15826  [
15827 \begin_inset Flex Code
15828 status collapsed
15829
15830 \begin_layout Plain Layout
15831 string
15832 \end_layout
15833
15834 \end_inset
15835
15836 =
15837 \begin_inset Quotes erd
15838 \end_inset
15839
15840
15841 \begin_inset Quotes erd
15842 \end_inset
15843
15844 ] A title for a list of floats of this kind (list of figures, tables, or
15845  whatever).
15846  It is used for the screen label within \SpecialChar LyX
15847 , it is used by \SpecialChar LaTeX
15848  for the title and
15849  it is used as the title in the XHTML output.
15850  It will be translated to the document language.
15851 \end_layout
15852
15853 \begin_layout Description
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 NumberWithin
15859 \end_layout
15860
15861 \end_inset
15862
15863  [
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868 string
15869 \end_layout
15870
15871 \end_inset
15872
15873 =
15874 \begin_inset Quotes erd
15875 \end_inset
15876
15877
15878 \begin_inset Quotes erd
15879 \end_inset
15880
15881 ] This (optional) argument determines whether floats of this class will
15882  be numbered within some sectional unit of the document.
15883  For example, if 
15884 \begin_inset Flex Code
15885 status collapsed
15886
15887 \begin_layout Plain Layout
15888 NumberWithin
15889 \end_layout
15890
15891 \end_inset
15892
15893  is set to 
15894 \begin_inset Quotes eld
15895 \end_inset
15896
15897
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 chapter
15903 \end_layout
15904
15905 \end_inset
15906
15907
15908 \begin_inset Quotes erd
15909 \end_inset
15910
15911 , the floats will be numbered within chapters.
15912  
15913 \end_layout
15914
15915 \begin_layout Description
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 Placement
15921 \end_layout
15922
15923 \end_inset
15924
15925  [
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 string
15931 \end_layout
15932
15933 \end_inset
15934
15935 =
15936 \begin_inset Quotes erd
15937 \end_inset
15938
15939
15940 \begin_inset Quotes erd
15941 \end_inset
15942
15943 ] The default placement for the given class of floats.
15944  The string should be as in standard \SpecialChar LaTeX
15945
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 t
15951 \end_layout
15952
15953 \end_inset
15954
15955
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 b
15961 \end_layout
15962
15963 \end_inset
15964
15965
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 p
15971 \end_layout
15972
15973 \end_inset
15974
15975  and 
15976 \begin_inset Flex Code
15977 status collapsed
15978
15979 \begin_layout Plain Layout
15980 h
15981 \end_layout
15982
15983 \end_inset
15984
15985  for top, bottom, page, and here, respectively.
15986 \begin_inset Foot
15987 status collapsed
15988
15989 \begin_layout Plain Layout
15990 Note that the order of these letters in the string is irrelevant, like in
15991  \SpecialChar LaTeX
15992 .
15993 \end_layout
15994
15995 \end_inset
15996
15997  On top of that there is a new type, 
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 H
16003 \end_layout
16004
16005 \end_inset
16006
16007 , which does not really correspond to a float, since it means: put it 
16008 \begin_inset Quotes eld
16009 \end_inset
16010
16011 here
16012 \begin_inset Quotes erd
16013 \end_inset
16014
16015  and nowhere else.
16016  Note however that the 
16017 \begin_inset Flex Code
16018 status collapsed
16019
16020 \begin_layout Plain Layout
16021 H
16022 \end_layout
16023
16024 \end_inset
16025
16026  specifier is special and, because of implementation details, cannot be
16027  used in non-built in float types.
16028  If you do not understand what this means, just use 
16029 \begin_inset Quotes eld
16030 \end_inset
16031
16032
16033 \begin_inset Flex Code
16034 status collapsed
16035
16036 \begin_layout Plain Layout
16037 tbp
16038 \end_layout
16039
16040 \end_inset
16041
16042
16043 \begin_inset Quotes erd
16044 \end_inset
16045
16046 .
16047 \end_layout
16048
16049 \begin_layout Description
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 RefPrefix
16055 \end_layout
16056
16057 \end_inset
16058
16059  [
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 string
16065 \end_layout
16066
16067 \end_inset
16068
16069 ] The prefix to use when creating labels referring to floats of this type.
16070  This allows the use of formatted references.
16071  Note that you can remove any 
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 RefPrefix
16077 \end_layout
16078
16079 \end_inset
16080
16081  set by a copied style by using the special value 
16082 \begin_inset Quotes eld
16083 \end_inset
16084
16085 OFF
16086 \begin_inset Quotes erd
16087 \end_inset
16088
16089 , which must be all caps.
16090 \end_layout
16091
16092 \begin_layout Description
16093 \begin_inset Flex Code
16094 status collapsed
16095
16096 \begin_layout Plain Layout
16097 Style
16098 \end_layout
16099
16100 \end_inset
16101
16102  [
16103 \begin_inset Flex Code
16104 status collapsed
16105
16106 \begin_layout Plain Layout
16107 string
16108 \end_layout
16109
16110 \end_inset
16111
16112 =
16113 \begin_inset Quotes erd
16114 \end_inset
16115
16116
16117 \begin_inset Quotes erd
16118 \end_inset
16119
16120 ] The style used when defining the float using 
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125
16126 \backslash
16127 newfloat
16128 \end_layout
16129
16130 \end_inset
16131
16132 .
16133 \end_layout
16134
16135 \begin_layout Description
16136 \begin_inset Flex Code
16137 status collapsed
16138
16139 \begin_layout Plain Layout
16140 Type
16141 \end_layout
16142
16143 \end_inset
16144
16145  [
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 string
16151 \end_layout
16152
16153 \end_inset
16154
16155 =
16156 \begin_inset Quotes erd
16157 \end_inset
16158
16159
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163 ] The 
16164 \begin_inset Quotes eld
16165 \end_inset
16166
16167 type
16168 \begin_inset Quotes erd
16169 \end_inset
16170
16171  of the new class of floats, like program or algorithm.
16172  After the appropriate 
16173 \begin_inset Flex Code
16174 status collapsed
16175
16176 \begin_layout Plain Layout
16177
16178 \backslash
16179 newfloat
16180 \end_layout
16181
16182 \end_inset
16183
16184 , commands such as 
16185 \begin_inset Flex Code
16186 status collapsed
16187
16188 \begin_layout Plain Layout
16189
16190 \backslash
16191 begin{program}
16192 \end_layout
16193
16194 \end_inset
16195
16196  or 
16197 \begin_inset Flex Code
16198 status collapsed
16199
16200 \begin_layout Plain Layout
16201
16202 \backslash
16203 end{algorithm*}
16204 \end_layout
16205
16206 \end_inset
16207
16208  will be available.
16209 \end_layout
16210
16211 \begin_layout Description
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 UsesFloatPkg
16217 \end_layout
16218
16219 \end_inset
16220
16221  [
16222 \begin_inset Flex Code
16223 status collapsed
16224
16225 \begin_layout Plain Layout
16226 0
16227 \end_layout
16228
16229 \end_inset
16230
16231 ,
16232 \begin_inset space \thinspace{}
16233 \end_inset
16234
16235
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240
16241 \emph on
16242 1
16243 \end_layout
16244
16245 \end_inset
16246
16247 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16248  package 
16249 \begin_inset Flex Code
16250 status collapsed
16251
16252 \begin_layout Plain Layout
16253 float
16254 \end_layout
16255
16256 \end_inset
16257
16258 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16259  itself.
16260 \end_layout
16261
16262 \begin_layout Standard
16263 Note that defining a float with type 
16264 \begin_inset Flex Code
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268
16269 \emph on
16270 type
16271 \end_layout
16272
16273 \end_inset
16274
16275  automatically defines the corresponding counter with name 
16276 \begin_inset Flex Code
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280
16281 \emph on
16282 type
16283 \end_layout
16284
16285 \end_inset
16286
16287 .
16288 \end_layout
16289
16290 \begin_layout Subsection
16291 Flex insets and InsetLayout
16292 \begin_inset CommandInset label
16293 LatexCommand label
16294 name "sub:Flex-insets-and"
16295
16296 \end_inset
16297
16298
16299 \end_layout
16300
16301 \begin_layout Standard
16302 Flex insets come in three different kinds: 
16303 \end_layout
16304
16305 \begin_layout Itemize
16306 character style (
16307 \begin_inset Flex Code
16308 status collapsed
16309
16310 \begin_layout Plain Layout
16311 CharStyle
16312 \end_layout
16313
16314 \end_inset
16315
16316 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16317  commands as 
16318 \begin_inset Flex Code
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322
16323 \backslash
16324 noun
16325 \end_layout
16326
16327 \end_inset
16328
16329  and 
16330 \begin_inset Flex Code
16331 status collapsed
16332
16333 \begin_layout Plain Layout
16334
16335 \backslash
16336 code
16337 \end_layout
16338
16339 \end_inset
16340
16341 .
16342 \end_layout
16343
16344 \begin_layout Itemize
16345 user custom (
16346 \begin_inset Flex Code
16347 status collapsed
16348
16349 \begin_layout Plain Layout
16350 Custom
16351 \end_layout
16352
16353 \end_inset
16354
16355 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16356  code,
16357  footnote, and the like.
16358  An obvious example is an endnote inset, which is defined in the 
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 endnote
16364 \end_layout
16365
16366 \end_inset
16367
16368  module.
16369 \end_layout
16370
16371 \begin_layout Itemize
16372 XML elements (
16373 \begin_inset Flex Code
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 Element
16378 \end_layout
16379
16380 \end_inset
16381
16382 ): For use with DocBook classes.
16383 \end_layout
16384
16385 \begin_layout Standard
16386 Flex insets are defined using the 
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 InsetLayout
16392 \end_layout
16393
16394 \end_inset
16395
16396  tag, which shall be explained in a moment.
16397 \end_layout
16398
16399 \begin_layout Standard
16400 The 
16401 \begin_inset Flex Code
16402 status collapsed
16403
16404 \begin_layout Plain Layout
16405 InsetLayout
16406 \end_layout
16407
16408 \end_inset
16409
16410  tag also serves another function: It can be used to customize the general
16411  layout of many different types of insets.
16412  Currently, 
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 InsetLayout
16418 \end_layout
16419
16420 \end_inset
16421
16422  can be used to customize the layout parameters for footnotes, marginal
16423  notes, note insets, \SpecialChar TeX
16424  code (ERT) insets, branches, listings, indexes, boxes,
16425  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16426 \end_layout
16427
16428 \begin_layout Standard
16429 The 
16430 \begin_inset Flex Code
16431 status collapsed
16432
16433 \begin_layout Plain Layout
16434 InsetLayout
16435 \end_layout
16436
16437 \end_inset
16438
16439  definition must begin with a line of the form:
16440 \end_layout
16441
16442 \begin_layout LyX-Code
16443 InsetLayout <type>
16444 \end_layout
16445
16446 \begin_layout Standard
16447 Here 
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 <Type>
16453 \end_layout
16454
16455 \end_inset
16456
16457  indicates the inset whose layout is being defined, and here there are four
16458  cases.
16459 \end_layout
16460
16461 \begin_layout Enumerate
16462 The layout for a pre-existing inset is being modified.
16463  In this case, can be 
16464 \begin_inset Flex Code
16465 status collapsed
16466
16467 \begin_layout Plain Layout
16468 <Type>
16469 \end_layout
16470
16471 \end_inset
16472
16473  any one of the following: 
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478 Algorithm
16479 \end_layout
16480
16481 \end_inset
16482
16483
16484 \begin_inset Flex Code
16485 status collapsed
16486
16487 \begin_layout Plain Layout
16488 Branch
16489 \end_layout
16490
16491 \end_inset
16492
16493
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 Box
16499 \end_layout
16500
16501 \end_inset
16502
16503
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 Box:shaded
16509 \end_layout
16510
16511 \end_inset
16512
16513
16514 \begin_inset Flex Code
16515 status collapsed
16516
16517 \begin_layout Plain Layout
16518 Caption:Standard
16519 \end_layout
16520
16521 \end_inset
16522
16523
16524 \begin_inset Flex Code
16525 status collapsed
16526
16527 \begin_layout Plain Layout
16528 ERT
16529 \end_layout
16530
16531 \end_inset
16532
16533
16534 \begin_inset Flex Code
16535 status collapsed
16536
16537 \begin_layout Plain Layout
16538 Figure
16539 \end_layout
16540
16541 \end_inset
16542
16543
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 Foot
16549 \end_layout
16550
16551 \end_inset
16552
16553
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 Index
16559 \end_layout
16560
16561 \end_inset
16562
16563
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 Info
16569 \end_layout
16570
16571 \end_inset
16572
16573
16574 \begin_inset Flex Code
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 Info:menu
16579 \end_layout
16580
16581 \end_inset
16582
16583
16584 \begin_inset Flex Code
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588 Info:shortcut
16589 \end_layout
16590
16591 \end_inset
16592
16593
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 Info:shortcuts
16599 \end_layout
16600
16601 \end_inset
16602
16603
16604 \begin_inset Flex Code
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608 Listings
16609 \end_layout
16610
16611 \end_inset
16612
16613
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618 Marginal
16619 \end_layout
16620
16621 \end_inset
16622
16623
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 Note:Comment
16629 \end_layout
16630
16631 \end_inset
16632
16633
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 Note:Note
16639 \end_layout
16640
16641 \end_inset
16642
16643
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648 Note:Greyedout
16649 \end_layout
16650
16651 \end_inset
16652
16653
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 Table
16659 \end_layout
16660
16661 \end_inset
16662
16663 , or 
16664 \begin_inset Flex Code
16665 status collapsed
16666
16667 \begin_layout Plain Layout
16668 URL
16669 \end_layout
16670
16671 \end_inset
16672
16673 .
16674 \end_layout
16675
16676 \begin_layout Enumerate
16677 The layout for a Flex inset is being defined.
16678  In this case, 
16679 \begin_inset Flex Code
16680 status collapsed
16681
16682 \begin_layout Plain Layout
16683 <Type>
16684 \end_layout
16685
16686 \end_inset
16687
16688  must be of the form 
16689 \begin_inset Quotes eld
16690 \end_inset
16691
16692
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 Flex:<name>
16698 \end_layout
16699
16700 \end_inset
16701
16702
16703 \begin_inset Quotes erd
16704 \end_inset
16705
16706 , where 
16707 \begin_inset Flex Code
16708 status collapsed
16709
16710 \begin_layout Plain Layout
16711 name
16712 \end_layout
16713
16714 \end_inset
16715
16716  may be be any valid identifier not used by a pre-existing Flex inset.
16717  The identifier may include spaces, but in that case the whole thing must
16718  be wrapped in quotes.
16719  Note that the definition of a flex inset 
16720 \emph on
16721 must 
16722 \emph default
16723 also include a 
16724 \begin_inset Flex Code
16725 status collapsed
16726
16727 \begin_layout Plain Layout
16728 \SpecialChar LyX
16729 Type
16730 \end_layout
16731
16732 \end_inset
16733
16734  entry, declaring which type of inset it defines.
16735 \end_layout
16736
16737 \begin_layout Enumerate
16738 The layout for user specific branch is being defined.
16739  In this case, 
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 <Type>
16745 \end_layout
16746
16747 \end_inset
16748
16749  must be of the form 
16750 \begin_inset Quotes eld
16751 \end_inset
16752
16753
16754 \begin_inset Flex Code
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 Branch:<name>
16759 \end_layout
16760
16761 \end_inset
16762
16763
16764 \begin_inset Quotes erd
16765 \end_inset
16766
16767 , where 
16768 \begin_inset Flex Code
16769 status collapsed
16770
16771 \begin_layout Plain Layout
16772 name
16773 \end_layout
16774
16775 \end_inset
16776
16777  may be be any valid identifier of branch defined in user's document.
16778  The identifier may include spaces, but in that case the whole thing must
16779  be wrapped in quotes.
16780  The main purpose of this feature is to allow \SpecialChar LaTeX
16781  wrapping around specific
16782  branches as user needs.
16783 \end_layout
16784
16785 \begin_layout Enumerate
16786 The layout of a user (or class) specific caption is being defined.
16787  In this case, 
16788 \begin_inset Flex Code
16789 status collapsed
16790
16791 \begin_layout Plain Layout
16792 <Type>
16793 \end_layout
16794
16795 \end_inset
16796
16797  must be of the form 
16798 \begin_inset Quotes eld
16799 \end_inset
16800
16801
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Caption:<name>
16807 \end_layout
16808
16809 \end_inset
16810
16811
16812 \begin_inset Quotes erd
16813 \end_inset
16814
16815 , where 
16816 \begin_inset Flex Code
16817 status collapsed
16818
16819 \begin_layout Plain Layout
16820 name
16821 \end_layout
16822
16823 \end_inset
16824
16825  specifies the name of the caption as it appears in the menu.
16826  Have a look at the standard caption (
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 Caption:Standard
16832 \end_layout
16833
16834 \end_inset
16835
16836 ), the specific captions of the KOMA-Script classes (
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841 Caption:Above
16842 \end_layout
16843
16844 \end_inset
16845
16846
16847 \begin_inset Flex Code
16848 status collapsed
16849
16850 \begin_layout Plain Layout
16851 Caption:Below
16852 \end_layout
16853
16854 \end_inset
16855
16856 ) or the module 
16857 \family sans
16858 Multilingual
16859 \begin_inset space ~
16860 \end_inset
16861
16862 Captions 
16863 \family default
16864 (
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 Caption:Bicaption
16870 \end_layout
16871
16872 \end_inset
16873
16874 ) for applications.
16875 \end_layout
16876
16877 \begin_layout Standard
16878 The 
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 InsetLayout
16884 \end_layout
16885
16886 \end_inset
16887
16888  definition can contain the following entries:
16889 \end_layout
16890
16891 \begin_layout Description
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896 Argument
16897 \end_layout
16898
16899 \end_inset
16900
16901  [
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 int
16907 \end_layout
16908
16909 \end_inset
16910
16911 ] Defines argument number of a command\SpecialChar breakableslash
16912 environment associated with the current
16913  layout.
16914  The definition must end with 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 EndArgument
16920 \end_layout
16921
16922 \end_inset
16923
16924 .
16925  See 
16926 \begin_inset CommandInset ref
16927 LatexCommand ref
16928 reference "sub:Paragraph-Styles"
16929
16930 \end_inset
16931
16932  for details.
16933 \end_layout
16934
16935 \begin_layout Description
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 BabelPreamble
16941 \end_layout
16942
16943 \end_inset
16944
16945  Preamble for changing language commands; see 
16946 \begin_inset CommandInset ref
16947 LatexCommand ref
16948 reference "sub:I18n"
16949
16950 \end_inset
16951
16952 .
16953 \end_layout
16954
16955 \begin_layout Description
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 BgColor
16961 \end_layout
16962
16963 \end_inset
16964
16965  [
16966 \begin_inset Flex Code
16967 status collapsed
16968
16969 \begin_layout Plain Layout
16970 <name>
16971 \end_layout
16972
16973 \end_inset
16974
16975 ] The color for the inset's background.
16976  See 
16977 \begin_inset CommandInset ref
16978 LatexCommand ref
16979 reference "chap:Names-of-colors"
16980
16981 \end_inset
16982
16983  for a list of the available color names.
16984 \end_layout
16985
16986 \begin_layout Description
16987 \begin_inset Flex Code
16988 status collapsed
16989
16990 \begin_layout Plain Layout
16991 ContentAsLabel
16992 \end_layout
16993
16994 \end_inset
16995
16996  [
16997 \begin_inset Flex Code
16998 status collapsed
16999
17000 \begin_layout Plain Layout
17001
17002 \emph on
17003 0
17004 \end_layout
17005
17006 \end_inset
17007
17008 ,
17009 \begin_inset space \thinspace{}
17010 \end_inset
17011
17012
17013 \begin_inset Flex Code
17014 status collapsed
17015
17016 \begin_layout Plain Layout
17017 1
17018 \end_layout
17019
17020 \end_inset
17021
17022 ] Whether to use the content of the inset as the label, when the inset is
17023  closed.
17024  Default is false.
17025 \end_layout
17026
17027 \begin_layout Description
17028 \begin_inset Flex Code
17029 status collapsed
17030
17031 \begin_layout Plain Layout
17032 CopyStyle
17033 \end_layout
17034
17035 \end_inset
17036
17037  [
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 <type>
17043 \end_layout
17044
17045 \end_inset
17046
17047 ] As with paragraph styles, see 
17048 \begin_inset CommandInset ref
17049 LatexCommand ref
17050 reference "sub:Paragraph-Styles"
17051
17052 \end_inset
17053
17054 .
17055  Note that you need to specify the complete type, e.
17056 \begin_inset space \thinspace{}
17057 \end_inset
17058
17059 g.
17060 \begin_inset space ~
17061 \end_inset
17062
17063
17064 \begin_inset Flex Code
17065 status collapsed
17066
17067 \begin_layout Plain Layout
17068 CopyStyle Flex:<name>
17069 \end_layout
17070
17071 \end_inset
17072
17073 .
17074 \end_layout
17075
17076 \begin_layout Description
17077 \begin_inset Flex Code
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 CustomPars
17082 \end_layout
17083
17084 \end_inset
17085
17086  [
17087 \begin_inset Flex Code
17088 status collapsed
17089
17090 \begin_layout Plain Layout
17091
17092 \emph on
17093 0
17094 \end_layout
17095
17096 \end_inset
17097
17098 ,
17099 \begin_inset space \thinspace{}
17100 \end_inset
17101
17102
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 1
17108 \end_layout
17109
17110 \end_inset
17111
17112 ] Indicates whether the user may employ the Paragraph Settings dialog to
17113  customize the paragraph.
17114 \end_layout
17115
17116 \begin_layout Description
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 Decoration
17122 \end_layout
17123
17124 \end_inset
17125
17126  can be 
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 Classic
17132 \end_layout
17133
17134 \end_inset
17135
17136
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 Minimalistic
17142 \end_layout
17143
17144 \end_inset
17145
17146 , or 
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 Conglomerate
17152 \end_layout
17153
17154 \end_inset
17155
17156 , describing the rendering style used for the inset's frame and buttons.
17157  Footnotes generally use 
17158 \begin_inset Flex Code
17159 status collapsed
17160
17161 \begin_layout Plain Layout
17162 Classic
17163 \end_layout
17164
17165 \end_inset
17166
17167 , ERT insets generally 
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 Minimalistic
17173 \end_layout
17174
17175 \end_inset
17176
17177 , and character styles 
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182 Conglomerate
17183 \end_layout
17184
17185 \end_inset
17186
17187 .
17188 \end_layout
17189
17190 \begin_layout Description
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 Display
17196 \end_layout
17197
17198 \end_inset
17199
17200  [
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 0
17206 \end_layout
17207
17208 \end_inset
17209
17210 ,
17211 \emph on
17212
17213 \begin_inset space \thinspace{}
17214 \end_inset
17215
17216
17217 \emph default
17218
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223
17224 \emph on
17225 1
17226 \end_layout
17227
17228 \end_inset
17229
17230 ] Only useful if 
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 LatexType
17236 \end_layout
17237
17238 \end_inset
17239
17240  is 
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 Environment
17246 \end_layout
17247
17248 \end_inset
17249
17250 .
17251  Indicates whether the environment will stand on its own in the output or
17252  will appear inline with the surrounding text.
17253  If set to false, it is supposed that the \SpecialChar LaTeX
17254  environment ignores white space
17255  (including one newline character) after the 
17256 \begin_inset Flex Code
17257 status collapsed
17258
17259 \begin_layout Plain Layout
17260
17261 \backslash
17262 begin{
17263 \emph on
17264 LatexName
17265 \emph default
17266 }
17267 \end_layout
17268
17269 \end_inset
17270
17271  and 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276
17277 \backslash
17278 end{
17279 \emph on
17280 LatexName
17281 \emph default
17282 }
17283 \end_layout
17284
17285 \end_inset
17286
17287  tags.
17288  Default is true.
17289 \end_layout
17290
17291 \begin_layout Description
17292 \begin_inset Flex Code
17293 status collapsed
17294
17295 \begin_layout Plain Layout
17296 End
17297 \end_layout
17298
17299 \end_inset
17300
17301  Required at the end of the 
17302 \begin_inset Flex Code
17303 status collapsed
17304
17305 \begin_layout Plain Layout
17306 InsetLayout
17307 \end_layout
17308
17309 \end_inset
17310
17311  declarations.
17312 \end_layout
17313
17314 \begin_layout Description
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319 Font
17320 \end_layout
17321
17322 \end_inset
17323
17324  The font used for both the text body 
17325 \emph on
17326 and
17327 \emph default
17328  the label.
17329  See 
17330 \begin_inset CommandInset ref
17331 LatexCommand ref
17332 reference "sub:Font-description"
17333
17334 \end_inset
17335
17336 .
17337  Note that defining this font automatically defines the 
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 LabelFont
17343 \end_layout
17344
17345 \end_inset
17346
17347  to the same value, so define this first and define 
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 LabelFont
17353 \end_layout
17354
17355 \end_inset
17356
17357  later if you want them to be different.
17358 \change_inserted -195340706 1421002157
17359
17360 \end_layout
17361
17362 \begin_layout Description
17363
17364 \change_inserted -195340706 1421002157
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369
17370 \change_inserted -195340706 1421002157
17371 FixedWidthPreambleEncoding
17372 \end_layout
17373
17374 \end_inset
17375
17376  [
17377 \begin_inset Flex Code
17378 status collapsed
17379
17380 \begin_layout Plain Layout
17381
17382 \change_inserted -195340706 1421002157
17383
17384 \emph on
17385 0
17386 \end_layout
17387
17388 \end_inset
17389
17390 ,
17391 \begin_inset space \thinspace{}
17392 \end_inset
17393
17394
17395 \begin_inset Flex Code
17396 status collapsed
17397
17398 \begin_layout Plain Layout
17399
17400 \change_inserted -195340706 1421002157
17401 1
17402 \end_layout
17403
17404 \end_inset
17405
17406 ] Force a fixed width encoding for the translated contents of 
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411
17412 \change_inserted -195340706 1421002157
17413 BabelPreamble
17414 \end_layout
17415
17416 \end_inset
17417
17418  and 
17419 \begin_inset Flex Code
17420 status collapsed
17421
17422 \begin_layout Plain Layout
17423
17424 \change_inserted -195340706 1421002157
17425 LangPreamble
17426 \end_layout
17427
17428 \end_inset
17429
17430  code generated by this layout.
17431  This is needed for special packages like the listings package that do not
17432  work with variable width encodings such as utf8.
17433  Default is false.
17434  This setting is ignored if fully unicode aware \SpecialChar LaTeX
17435  backends such as Xe\SpecialChar LaTeX
17436  are
17437  used.
17438 \change_unchanged
17439
17440 \end_layout
17441
17442 \begin_layout Description
17443 \begin_inset Flex Code
17444 status collapsed
17445
17446 \begin_layout Plain Layout
17447 ForceLocalFontSwitch
17448 \end_layout
17449
17450 \end_inset
17451
17452  [
17453 \begin_inset Flex Code
17454 status collapsed
17455
17456 \begin_layout Plain Layout
17457
17458 \emph on
17459 0
17460 \end_layout
17461
17462 \end_inset
17463
17464 ,
17465 \begin_inset space \thinspace{}
17466 \end_inset
17467
17468
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 1
17474 \end_layout
17475
17476 \end_inset
17477
17478 ] When using babel, always use a local font switch (
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483
17484 \backslash
17485 foreignlanguage
17486 \end_layout
17487
17488 \end_inset
17489
17490 ), never a global one (such as 
17491 \begin_inset Flex Code
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \backslash
17497 selectlanguage
17498 \end_layout
17499
17500 \end_inset
17501
17502 ).
17503 \end_layout
17504
17505 \begin_layout Description
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 ForceLTR
17511 \end_layout
17512
17513 \end_inset
17514
17515  [
17516 \begin_inset Flex Code
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520
17521 \emph on
17522 0
17523 \end_layout
17524
17525 \end_inset
17526
17527 ,
17528 \begin_inset space \thinspace{}
17529 \end_inset
17530
17531
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 1
17537 \end_layout
17538
17539 \end_inset
17540
17541 ] Force the 
17542 \begin_inset Quotes eld
17543 \end_inset
17544
17545 latex
17546 \begin_inset Quotes erd
17547 \end_inset
17548
17549  language, leading to Left-to-Right (Latin) output, e.
17550 \begin_inset space \thinspace{}
17551 \end_inset
17552
17553 g.
17554 \begin_inset space \space{}
17555 \end_inset
17556
17557 in \SpecialChar TeX
17558  code or URL.
17559  A kludge.
17560 \change_inserted -712698321 1417441977
17561
17562 \end_layout
17563
17564 \begin_layout Description
17565
17566 \change_inserted -712698321 1417442090
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571
17572 \change_inserted -712698321 1417441983
17573 ForceOwnlines
17574 \end_layout
17575
17576 \end_inset
17577
17578  [
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583
17584 \change_inserted -712698321 1417441978
17585
17586 \emph on
17587 0
17588 \end_layout
17589
17590 \end_inset
17591
17592 ,
17593 \begin_inset space \thinspace{}
17594 \end_inset
17595
17596
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601
17602 \change_inserted -712698321 1417441978
17603 1
17604 \end_layout
17605
17606 \end_inset
17607
17608 ] Force a a line break in the \SpecialChar LaTeX
17609  output before the inset starts and after
17610  the inset ends.
17611  This assures the inset itself is output on its own lines, for parsing purposes.
17612
17613 \change_inserted 274215730 1419105878
17614  Default is false.
17615 \change_unchanged
17616
17617 \end_layout
17618
17619 \begin_layout Description
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 ForcePlain
17625 \end_layout
17626
17627 \end_inset
17628
17629  [
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634
17635 \emph on
17636 0
17637 \end_layout
17638
17639 \end_inset
17640
17641 ,
17642 \begin_inset space \thinspace{}
17643 \end_inset
17644
17645
17646 \begin_inset Flex Code
17647 status collapsed
17648
17649 \begin_layout Plain Layout
17650 1
17651 \end_layout
17652
17653 \end_inset
17654
17655 ] Indicates whether the 
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 PlainLayout
17661 \end_layout
17662
17663 \end_inset
17664
17665  should be used or, instead, the user can change the paragraph style used
17666  in the inset.
17667  Default is false.
17668 \end_layout
17669
17670 \begin_layout Description
17671 \begin_inset Flex Code
17672 status collapsed
17673
17674 \begin_layout Plain Layout
17675 FreeSpacing
17676 \end_layout
17677
17678 \end_inset
17679
17680  [
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685
17686 \emph on
17687 0
17688 \end_layout
17689
17690 \end_inset
17691
17692 ,
17693 \begin_inset space \thinspace{}
17694 \end_inset
17695
17696
17697 \begin_inset Flex Code
17698 status collapsed
17699
17700 \begin_layout Plain Layout
17701 1
17702 \end_layout
17703
17704 \end_inset
17705
17706 ] As with paragraph styles, see 
17707 \begin_inset CommandInset ref
17708 LatexCommand ref
17709 reference "sub:Paragraph-Styles"
17710
17711 \end_inset
17712
17713 .
17714 \end_layout
17715
17716 \begin_layout Description
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 HTML*
17722 \end_layout
17723
17724 \end_inset
17725
17726  These tags control the XHTML output.
17727  See 
17728 \begin_inset CommandInset ref
17729 LatexCommand ref
17730 reference "sec:Tags-for-XHTML"
17731
17732 \end_inset
17733
17734 .
17735 \end_layout
17736
17737 \begin_layout Description
17738 \begin_inset Flex Code
17739 status collapsed
17740
17741 \begin_layout Plain Layout
17742 InToc
17743 \end_layout
17744
17745 \end_inset
17746
17747  [
17748 \begin_inset Flex Code
17749 status collapsed
17750
17751 \begin_layout Plain Layout
17752
17753 \emph on
17754 0
17755 \end_layout
17756
17757 \end_inset
17758
17759 ,
17760 \begin_inset space \thinspace{}
17761 \end_inset
17762
17763
17764 \begin_inset Flex Code
17765 status collapsed
17766
17767 \begin_layout Plain Layout
17768 1
17769 \end_layout
17770
17771 \end_inset
17772
17773 ] Whether to include the contents of this inset in the strings generated
17774  for the `Outline' pane.
17775  One would not, for example, want the content of a footnote in a section
17776  header to be included in the TOC displayed in the outline, but one would
17777  normally want the content of a character style displayed.
17778  Default is false: not to include.
17779 \end_layout
17780
17781 \begin_layout Description
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 KeepEmpty
17787 \end_layout
17788
17789 \end_inset
17790
17791  [
17792 \emph on
17793
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 0
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \emph default
17805 ,
17806 \begin_inset space \thinspace{}
17807 \end_inset
17808
17809
17810 \begin_inset Flex Code
17811 status collapsed
17812
17813 \begin_layout Plain Layout
17814 1
17815 \end_layout
17816
17817 \end_inset
17818
17819 ] As with paragraph styles, see 
17820 \begin_inset CommandInset ref
17821 LatexCommand ref
17822 reference "sub:Paragraph-Styles"
17823
17824 \end_inset
17825
17826 .
17827 \end_layout
17828
17829 \begin_layout Description
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 LabelFont
17835 \end_layout
17836
17837 \end_inset
17838
17839  The font used for the label.
17840  See 
17841 \begin_inset CommandInset ref
17842 LatexCommand ref
17843 reference "sub:Font-description"
17844
17845 \end_inset
17846
17847 .
17848  Note that this definition can never appear before 
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 Font
17854 \end_layout
17855
17856 \end_inset
17857
17858 , lest it be ineffective.
17859 \end_layout
17860
17861 \begin_layout Description
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866 LabelString
17867 \end_layout
17868
17869 \end_inset
17870
17871  [
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 string
17877 \end_layout
17878
17879 \end_inset
17880
17881 =
17882 \begin_inset Quotes erd
17883 \end_inset
17884
17885
17886 \begin_inset Quotes erd
17887 \end_inset
17888
17889 ] What will be displayed on the button or elsewhere as the inset label.
17890  Some inset types (
17891 \begin_inset Flex Code
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895 \SpecialChar TeX
17896  code
17897 \end_layout
17898
17899 \end_inset
17900
17901  and 
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 Branch
17907 \end_layout
17908
17909 \end_inset
17910
17911 ) modify this label on the fly.
17912 \end_layout
17913
17914 \begin_layout Description
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 LangPreamble
17920 \end_layout
17921
17922 \end_inset
17923
17924  Language dependent preamble; see 
17925 \begin_inset CommandInset ref
17926 LatexCommand ref
17927 reference "sub:I18n"
17928
17929 \end_inset
17930
17931 .
17932 \end_layout
17933
17934 \begin_layout Description
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 LatexName
17940 \end_layout
17941
17942 \end_inset
17943
17944  [
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 <name>
17950 \end_layout
17951
17952 \end_inset
17953
17954 ] The name of the corresponding \SpecialChar LaTeX
17955  stuff.
17956  Either the environment or command name.
17957 \end_layout
17958
17959 \begin_layout Description
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 LatexParam
17965 \end_layout
17966
17967 \end_inset
17968
17969  [
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 <parameter>
17975 \end_layout
17976
17977 \end_inset
17978
17979 ] The optional parameter for the corresponding 
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 LatexName
17985 \end_layout
17986
17987 \end_inset
17988
17989  stuff, including possible bracket pairs like 
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 []
17995 \end_layout
17996
17997 \end_inset
17998
17999 .
18000  This parameter cannot be changed from within \SpecialChar LyX
18001  (use 
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 Argument
18007 \end_layout
18008
18009 \end_inset
18010
18011  for customizable parameters).
18012  It will be output as is after all \SpecialChar LaTeX
18013  
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 Argument
18019 \end_layout
18020
18021 \end_inset
18022
18023 s.
18024 \end_layout
18025
18026 \begin_layout Description
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031 LatexType
18032 \end_layout
18033
18034 \end_inset
18035
18036  [
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 Command, Environment, None
18042 \end_layout
18043
18044 \end_inset
18045
18046 ] How the style should be translated into \SpecialChar LaTeX
18047 .
18048 \begin_inset Foot
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 LatexType
18057 \end_layout
18058
18059 \end_inset
18060
18061  is perhaps a bit misleading, since these rules apply to SGML classes too.
18062  Visit the SGML class files for specific examples.
18063 \end_layout
18064
18065 \end_inset
18066
18067
18068 \begin_inset Separator parbreak
18069 \end_inset
18070
18071
18072 \end_layout
18073
18074 \begin_deeper
18075 \begin_layout Description
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 None
18081 \end_layout
18082
18083 \end_inset
18084
18085  means nothing special
18086 \end_layout
18087
18088 \begin_layout Description
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 Command
18094 \end_layout
18095
18096 \end_inset
18097
18098  means 
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103
18104 \backslash
18105
18106 \emph on
18107 LatexName
18108 \emph default
18109 {\SpecialChar ldots
18110 }
18111 \end_layout
18112
18113 \end_inset
18114
18115
18116 \end_layout
18117
18118 \begin_layout Description
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 Environment
18124 \end_layout
18125
18126 \end_inset
18127
18128  means 
18129 \begin_inset Flex Code
18130 status collapsed
18131
18132 \begin_layout Plain Layout
18133
18134 \backslash
18135 begin{
18136 \emph on
18137 LatexName
18138 \emph default
18139 }\SpecialChar ldots
18140
18141 \backslash
18142 end{
18143 \emph on
18144 LatexName
18145 \emph default
18146 }
18147 \end_layout
18148
18149 \end_inset
18150
18151
18152 \end_layout
18153
18154 \begin_layout Standard
18155 Putting the last few things together, the \SpecialChar LaTeX
18156  output will be either: 
18157 \end_layout
18158
18159 \begin_layout LyX-Code
18160
18161 \backslash
18162 LatexName[LatexParam]{\SpecialChar ldots
18163 }
18164 \end_layout
18165
18166 \begin_layout Standard
18167 or: 
18168 \end_layout
18169
18170 \begin_layout LyX-Code
18171
18172 \backslash
18173 begin{LatexName}[LatexParam] \SpecialChar ldots
18174  
18175 \backslash
18176 end{LatexName}
18177 \end_layout
18178
18179 \begin_layout Standard
18180 depending upon the \SpecialChar LaTeX
18181  type.
18182 \end_layout
18183
18184 \end_deeper
18185 \begin_layout Description
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190 LeftDelim
18191 \end_layout
18192
18193 \end_inset
18194
18195  [
18196 \begin_inset Flex Code
18197 status collapsed
18198
18199 \begin_layout Plain Layout
18200 string
18201 \end_layout
18202
18203 \end_inset
18204
18205 ] A string that is put at the beginning of the layout content.
18206  A line break in the output can be indicated by 
18207 \begin_inset Flex Code
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 <br/>
18212 \end_layout
18213
18214 \end_inset
18215
18216 .
18217 \end_layout
18218
18219 \begin_layout Description
18220 \begin_inset Flex Code
18221 status collapsed
18222
18223 \begin_layout Plain Layout
18224 LyxType
18225 \end_layout
18226
18227 \end_inset
18228
18229  Can be 
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 charstyle
18235 \end_layout
18236
18237 \end_inset
18238
18239
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244 custom
18245 \end_layout
18246
18247 \end_inset
18248
18249
18250 \begin_inset Flex Code
18251 status collapsed
18252
18253 \begin_layout Plain Layout
18254 element
18255 \end_layout
18256
18257 \end_inset
18258
18259  or 
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264 end
18265 \end_layout
18266
18267 \end_inset
18268
18269  (indicating a dummy definition ending definitions of charstyles, etc).
18270  This entry is required in and is only meaningful for Flex insets.
18271  Among other things, it determines on which menu this inset will appear.
18272  Setting 
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 \SpecialChar LyX
18278 Type
18279 \end_layout
18280
18281 \end_inset
18282
18283  to 
18284 \begin_inset Flex Code
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 charstyle
18289 \end_layout
18290
18291 \end_inset
18292
18293  will automatically set 
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 MultiPar
18299 \end_layout
18300
18301 \end_inset
18302
18303  to false.
18304  
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  can be set to true for 
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319 charstyle
18320 \end_layout
18321
18322 \end_inset
18323
18324  insets by setting it 
18325 \emph on
18326 after
18327 \emph default
18328  you set the 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 \SpecialChar LyX
18334 Type
18335 \end_layout
18336
18337 \end_inset
18338
18339 .
18340 \end_layout
18341
18342 \begin_layout Description
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 MultiPar
18348 \end_layout
18349
18350 \end_inset
18351
18352  [
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357
18358 \emph on
18359 0
18360 \end_layout
18361
18362 \end_inset
18363
18364 ,
18365 \begin_inset space \thinspace{}
18366 \end_inset
18367
18368
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 1
18374 \end_layout
18375
18376 \end_inset
18377
18378 ] Whether multiple paragraphs are permitted in this inset.
18379  This will also set 
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 CustomPars
18385 \end_layout
18386
18387 \end_inset
18388
18389  to the same value and 
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 ForcePlain
18395 \end_layout
18396
18397 \end_inset
18398
18399  to the opposite value.
18400  These can be reset to other values, if they are used 
18401 \emph on
18402 after
18403 \emph default
18404  
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 MultiPar
18410 \end_layout
18411
18412 \end_inset
18413
18414 .
18415  Default is true.
18416 \end_layout
18417
18418 \begin_layout Description
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 NeedProtect
18424 \end_layout
18425
18426 \end_inset
18427
18428  [
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433
18434 \emph on
18435 0
18436 \end_layout
18437
18438 \end_inset
18439
18440 ,
18441 \begin_inset space \thinspace{}
18442 \end_inset
18443
18444
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 1
18450 \end_layout
18451
18452 \end_inset
18453
18454 ] Whether fragile commands in this inset should be 
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459
18460 \backslash
18461 protect
18462 \end_layout
18463
18464 \end_inset
18465
18466 'ed.
18467  (Note: This is 
18468 \emph on
18469 not
18470 \emph default
18471  whether the command should itself be protected.) Default is false.
18472 \end_layout
18473
18474 \begin_layout Description
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479 NoInsetLayout
18480 \end_layout
18481
18482 \end_inset
18483
18484  [
18485 \begin_inset Flex Code
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489 <layout>
18490 \end_layout
18491
18492 \end_inset
18493
18494 ] Deletes an existing 
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 InsetLayout
18500 \end_layout
18501
18502 \end_inset
18503
18504 .
18505 \change_inserted -712698321 1417953494
18506
18507 \end_layout
18508
18509 \begin_layout Description
18510
18511 \change_inserted -712698321 1417953559
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516
18517 \change_inserted -712698321 1417953494
18518 ObsoletedBy
18519 \end_layout
18520
18521 \end_inset
18522
18523  [
18524 \begin_inset Flex Code
18525 status collapsed
18526
18527 \begin_layout Plain Layout
18528
18529 \change_inserted -712698321 1417953574
18530 <layout>
18531 \end_layout
18532
18533 \end_inset
18534
18535 ] Name of an 
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540
18541 \change_inserted -712698321 1417953533
18542 InsetLayout
18543 \end_layout
18544
18545 \end_inset
18546
18547  that has replaced this 
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552
18553 \change_inserted -712698321 1417953551
18554 InsetLayout
18555 \end_layout
18556
18557 \end_inset
18558
18559 .
18560  This is used to rename an 
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565
18566 \change_inserted -712698321 1417953559
18567 InsetLayout
18568 \end_layout
18569
18570 \end_inset
18571
18572 , while keeping backward compatibility.
18573 \change_unchanged
18574
18575 \end_layout
18576
18577 \begin_layout Description
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 ParbreakIsNewline
18583 \end_layout
18584
18585 \end_inset
18586
18587  [
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592
18593 \emph on
18594 0
18595 \end_layout
18596
18597 \end_inset
18598
18599 ,
18600 \begin_inset space \thinspace{}
18601 \end_inset
18602
18603
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 1
18609 \end_layout
18610
18611 \end_inset
18612
18613 ] As with paragraph styles, see 
18614 \begin_inset CommandInset ref
18615 LatexCommand ref
18616 reference "sub:Paragraph-Styles"
18617
18618 \end_inset
18619
18620 .
18621  Default is false.
18622 \end_layout
18623
18624 \begin_layout Description
18625 \begin_inset Flex Code
18626 status collapsed
18627
18628 \begin_layout Plain Layout
18629 PassThru
18630 \end_layout
18631
18632 \end_inset
18633
18634  [
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639
18640 \emph on
18641 0
18642 \end_layout
18643
18644 \end_inset
18645
18646 ,
18647 \begin_inset space \thinspace{}
18648 \end_inset
18649
18650
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 1
18656 \end_layout
18657
18658 \end_inset
18659
18660 ] As with paragraph styles, see 
18661 \begin_inset CommandInset ref
18662 LatexCommand ref
18663 reference "sub:Paragraph-Styles"
18664
18665 \end_inset
18666
18667 .
18668  Default is false.
18669 \end_layout
18670
18671 \begin_layout Description
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 Preamble
18677 \end_layout
18678
18679 \end_inset
18680
18681  As with paragraph styles, see 
18682 \begin_inset CommandInset ref
18683 LatexCommand ref
18684 reference "sub:Paragraph-Styles"
18685
18686 \end_inset
18687
18688 .
18689 \end_layout
18690
18691 \begin_layout Description
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 RefPrefix
18697 \end_layout
18698
18699 \end_inset
18700
18701  [
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 string
18707 \end_layout
18708
18709 \end_inset
18710
18711 ] The prefix to use when creating labels referring to insets of this type.
18712  This allows the use of formatted references.
18713 \end_layout
18714
18715 \begin_layout Description
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 Requires
18721 \end_layout
18722
18723 \end_inset
18724
18725  [
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 string
18731 \end_layout
18732
18733 \end_inset
18734
18735 ] As with paragraph styles, see 
18736 \begin_inset CommandInset ref
18737 LatexCommand ref
18738 reference "sub:Paragraph-Styles"
18739
18740 \end_inset
18741
18742 .
18743 \end_layout
18744
18745 \begin_layout Description
18746 \begin_inset Flex Code
18747 status collapsed
18748
18749 \begin_layout Plain Layout
18750 ResetArgs
18751 \end_layout
18752
18753 \end_inset
18754
18755  [
18756 \begin_inset Flex Code
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760
18761 \emph on
18762 0
18763 \end_layout
18764
18765 \end_inset
18766
18767 ,
18768 \begin_inset space \thinspace{}
18769 \end_inset
18770
18771
18772 \begin_inset Flex Code
18773 status collapsed
18774
18775 \begin_layout Plain Layout
18776 1
18777 \end_layout
18778
18779 \end_inset
18780
18781 ] Resets the \SpecialChar LaTeX
18782  arguments of this layout (as defined via the 
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787 Argument
18788 \end_layout
18789
18790 \end_inset
18791
18792  tag).
18793  This is useful if you have copied a style via 
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 CopyStyle
18799 \end_layout
18800
18801 \end_inset
18802
18803 , but you do not want to inherit its (required and optional) arguments.
18804 \end_layout
18805
18806 \begin_layout Description
18807 \begin_inset Flex Code
18808 status collapsed
18809
18810 \begin_layout Plain Layout
18811 ResetsFont
18812 \end_layout
18813
18814 \end_inset
18815
18816  [
18817 \begin_inset Flex Code
18818 status collapsed
18819
18820 \begin_layout Plain Layout
18821 0
18822 \end_layout
18823
18824 \end_inset
18825
18826 ,
18827 \begin_inset space \thinspace{}
18828 \end_inset
18829
18830
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835
18836 \emph on
18837 1
18838 \end_layout
18839
18840 \end_inset
18841
18842 ] Whether this inset should use the font of its surrounding environment
18843  or uses its own.
18844  Default is false: use the font of the surrounding environment.
18845 \end_layout
18846
18847 \begin_layout Description
18848 \begin_inset Flex Code
18849 status collapsed
18850
18851 \begin_layout Plain Layout
18852 RightDelim
18853 \end_layout
18854
18855 \end_inset
18856
18857  [
18858 \begin_inset Flex Code
18859 status collapsed
18860
18861 \begin_layout Plain Layout
18862 string
18863 \end_layout
18864
18865 \end_inset
18866
18867 ] A string that is put at the end of the layout content.
18868  A line break in the output can be indicated by 
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 <br/>
18874 \end_layout
18875
18876 \end_inset
18877
18878 .
18879 \end_layout
18880
18881 \begin_layout Description
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 Spellcheck
18887 \end_layout
18888
18889 \end_inset
18890
18891  [
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896 0
18897 \end_layout
18898
18899 \end_inset
18900
18901 ,
18902 \begin_inset space \thinspace{}
18903 \end_inset
18904
18905
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910
18911 \emph on
18912 1
18913 \end_layout
18914
18915 \end_inset
18916
18917 ] Allow spell-checking the contents of this inset.
18918  Default is true.
18919 \end_layout
18920
18921 \begin_layout Subsection
18922 Counters
18923 \begin_inset CommandInset label
18924 LatexCommand label
18925 name "sub:Counters"
18926
18927 \end_inset
18928
18929
18930 \end_layout
18931
18932 \begin_layout Standard
18933 It is necessary to define the counters (
18934 \begin_inset Flex MenuItem
18935 status collapsed
18936
18937 \begin_layout Plain Layout
18938 chapter
18939 \end_layout
18940
18941 \end_inset
18942
18943
18944 \begin_inset Flex MenuItem
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 figure
18949 \end_layout
18950
18951 \end_inset
18952
18953 , \SpecialChar ldots
18954 ) in the text class itself.
18955  The standard counters are defined in the file 
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 stdcounters.inc
18961 \end_layout
18962
18963 \end_inset
18964
18965 , so you may have to do no more than add
18966 \end_layout
18967
18968 \begin_layout LyX-Code
18969 Input stdcounters.inc
18970 \end_layout
18971
18972 \begin_layout Standard
18973 to your layout file to get them to work.
18974  But if you want to define custom counters, then you can do so.
18975  The counter declaration must begin with:
18976 \end_layout
18977
18978 \begin_layout LyX-Code
18979 Counter CounterName
18980 \end_layout
18981
18982 \begin_layout Standard
18983 where of course `
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 CounterName
18989 \end_layout
18990
18991 \end_inset
18992
18993 ' is replaced by the name of the counter.
18994  And it must end with 
18995 \begin_inset Quotes eld
18996 \end_inset
18997
18998
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 End
19004 \end_layout
19005
19006 \end_inset
19007
19008
19009 \begin_inset Quotes erd
19010 \end_inset
19011
19012 .
19013  The following parameters can also be used:
19014 \end_layout
19015
19016 \begin_layout Description
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 InitialValue
19022 \end_layout
19023
19024 \end_inset
19025
19026  [
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 int=1
19032 \end_layout
19033
19034 \end_inset
19035
19036 ] Sets the initial value for the counter, to which it will be reset whenever
19037  that happens.
19038  Normally, one will want the default, 1.
19039 \end_layout
19040
19041 \begin_layout Description
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 LabelString
19047 \end_layout
19048
19049 \end_inset
19050
19051  [
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 string
19057 \end_layout
19058
19059 \end_inset
19060
19061 =
19062 \begin_inset Quotes erd
19063 \end_inset
19064
19065
19066 \begin_inset Quotes erd
19067 \end_inset
19068
19069 ] When defined, this string defines how the counter is displayed.
19070  Setting this value sets 
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 LabelStringAppendix
19076 \end_layout
19077
19078 \end_inset
19079
19080  to the same value.
19081  The following special constructs can be used in the string:
19082 \begin_inset Separator parbreak
19083 \end_inset
19084
19085
19086 \end_layout
19087
19088 \begin_deeper
19089 \begin_layout Itemize
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094
19095 \backslash
19096 thecounter
19097 \end_layout
19098
19099 \end_inset
19100
19101  will be replaced by the expansion of the 
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 LabelString
19107 \end_layout
19108
19109 \end_inset
19110
19111  (or 
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 LabelStringAppendix
19117 \end_layout
19118
19119 \end_inset
19120
19121 ) of the counter 
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126 counter
19127 \end_layout
19128
19129 \end_inset
19130
19131 .
19132  
19133 \end_layout
19134
19135 \begin_layout Itemize
19136 counter values can be expressed using \SpecialChar LaTeX
19137 -like macros
19138 \begin_inset Newline newline
19139 \end_inset
19140
19141
19142 \begin_inset Flex Code
19143 status collapsed
19144
19145 \begin_layout Plain Layout
19146
19147 \backslash
19148
19149 \emph on
19150 numbertype
19151 \emph default
19152 {
19153 \emph on
19154 counter
19155 \emph default
19156 }
19157 \end_layout
19158
19159 \end_inset
19160
19161 , where 
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166
19167 \emph on
19168 numbertype
19169 \end_layout
19170
19171 \end_inset
19172
19173  can be:
19174 \begin_inset Foot
19175 status collapsed
19176
19177 \begin_layout Plain Layout
19178
19179 \family roman
19180 \series medium
19181 \shape up
19182 \size normal
19183 \emph off
19184 \bar no
19185 \noun off
19186 \color none
19187 Actually, the situation is a bit more complicated: any
19188 \family default
19189 \series default
19190 \shape default
19191 \emph default
19192 \bar default
19193  
19194 \size default
19195 \emph on
19196 \noun default
19197 \color inherit
19198 numbertype
19199 \family roman
19200 \series medium
19201 \shape up
19202 \size normal
19203 \emph off
19204 \bar no
19205 \noun off
19206  other than those described below will produce arabic numerals.
19207  It would not be surprising to see this change in the future.
19208 \end_layout
19209
19210 \end_inset
19211
19212  
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 arabic
19218 \end_layout
19219
19220 \end_inset
19221
19222 : 1, 2, 3,\SpecialChar ldots
19223
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 alph
19229 \end_layout
19230
19231 \end_inset
19232
19233  for lower-case letters: a, b, c, \SpecialChar ldots
19234
19235 \begin_inset Flex Code
19236 status collapsed
19237
19238 \begin_layout Plain Layout
19239 Alph
19240 \end_layout
19241
19242 \end_inset
19243
19244  for upper-case letters: A, B, C, \SpecialChar ldots
19245
19246 \begin_inset Flex Code
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250 roman
19251 \end_layout
19252
19253 \end_inset
19254
19255  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19256
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261 Roman
19262 \end_layout
19263
19264 \end_inset
19265
19266  for upper-case roman numerals: I, II, III\SpecialChar ldots
19267
19268 \begin_inset Flex Code
19269 status collapsed
19270
19271 \begin_layout Plain Layout
19272 hebrew
19273 \end_layout
19274
19275 \end_inset
19276
19277  for hebrew numerals.
19278 \end_layout
19279
19280 \end_deeper
19281 \begin_layout Standard
19282 If LabelString is not defined, a default value is constructed as follows:
19283  if the counter has a master counter 
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 master
19289 \end_layout
19290
19291 \end_inset
19292
19293  (defined via 
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 Within
19299 \end_layout
19300
19301 \end_inset
19302
19303 ), the string
19304 \begin_inset Newline newline
19305 \end_inset
19306
19307
19308 \begin_inset Flex Code
19309 status collapsed
19310
19311 \begin_layout Plain Layout
19312
19313 \backslash
19314 themaster.
19315 \backslash
19316 arabic{counter}
19317 \end_layout
19318
19319 \end_inset
19320
19321  is used; otherwise the string 
19322 \begin_inset Flex Code
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326
19327 \backslash
19328 arabic{counter}
19329 \end_layout
19330
19331 \end_inset
19332
19333  is used.
19334 \end_layout
19335
19336 \begin_layout Description
19337 \begin_inset Flex Code
19338 status collapsed
19339
19340 \begin_layout Plain Layout
19341 LabelStringAppendix
19342 \end_layout
19343
19344 \end_inset
19345
19346  [
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 string
19352 \end_layout
19353
19354 \end_inset
19355
19356 =
19357 \begin_inset Quotes erd
19358 \end_inset
19359
19360
19361 \begin_inset Quotes erd
19362 \end_inset
19363
19364 ] Same as 
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 LabelString
19370 \end_layout
19371
19372 \end_inset
19373
19374 , but for use in the Appendix.
19375 \end_layout
19376
19377 \begin_layout Description
19378 \begin_inset Flex Code
19379 status collapsed
19380
19381 \begin_layout Plain Layout
19382 PrettyFormat
19383 \end_layout
19384
19385 \end_inset
19386
19387  [
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 string
19393 \end_layout
19394
19395 \end_inset
19396
19397 =
19398 \begin_inset Quotes erd
19399 \end_inset
19400
19401
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405 ] A format for use with formatted references to this counter.
19406  For example, one might want to have references to section numbers appear
19407  as 
19408 \begin_inset Quotes eld
19409 \end_inset
19410
19411 Section 2.4
19412 \begin_inset Quotes erd
19413 \end_inset
19414
19415 .
19416  The string should contain 
19417 \begin_inset Quotes eld
19418 \end_inset
19419
19420 ##
19421 \begin_inset Quotes erd
19422 \end_inset
19423
19424 .
19425  This will be replaced by the counter number itself.
19426  So, for sections, it would be: Section ##.
19427 \end_layout
19428
19429 \begin_layout Description
19430 \begin_inset Flex Code
19431 status collapsed
19432
19433 \begin_layout Plain Layout
19434 Within
19435 \end_layout
19436
19437 \end_inset
19438
19439  [
19440 \begin_inset Flex Code
19441 status collapsed
19442
19443 \begin_layout Plain Layout
19444 string
19445 \end_layout
19446
19447 \end_inset
19448
19449 =
19450 \begin_inset Quotes erd
19451 \end_inset
19452
19453
19454 \begin_inset Quotes erd
19455 \end_inset
19456
19457 ] If this is set to the name of another counter, the present counter will
19458  be reset every time the other one is increased.
19459  For example, 
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 subsection
19465 \end_layout
19466
19467 \end_inset
19468
19469  is numbered inside 
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 section
19475 \end_layout
19476
19477 \end_inset
19478
19479 .
19480 \end_layout
19481
19482 \begin_layout Subsection
19483 Font description
19484 \begin_inset CommandInset label
19485 LatexCommand label
19486 name "sub:Font-description"
19487
19488 \end_inset
19489
19490
19491 \end_layout
19492
19493 \begin_layout Standard
19494 A font description looks like this:
19495 \end_layout
19496
19497 \begin_layout LyX-Code
19498 Font 
19499 \family roman
19500 \emph on
19501 or
19502 \family default
19503 \emph default
19504  LabelFont
19505 \emph on
19506  or
19507 \emph default
19508  DefaultFont
19509 \end_layout
19510
19511 \begin_layout LyX-Code
19512  ...
19513 \end_layout
19514
19515 \begin_layout LyX-Code
19516 EndFont
19517 \end_layout
19518
19519 \begin_layout Standard
19520 The following commands are available:
19521 \end_layout
19522
19523 \begin_layout Description
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 Color
19529 \end_layout
19530
19531 \end_inset
19532
19533  [
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538
19539 \emph on
19540 none
19541 \end_layout
19542
19543 \end_inset
19544
19545
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 black
19551 \end_layout
19552
19553 \end_inset
19554
19555
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 white
19561 \end_layout
19562
19563 \end_inset
19564
19565
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 red
19571 \end_layout
19572
19573 \end_inset
19574
19575
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 green
19581 \end_layout
19582
19583 \end_inset
19584
19585
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 blue
19591 \end_layout
19592
19593 \end_inset
19594
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 cyan
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 magenta
19611 \end_layout
19612
19613 \end_inset
19614
19615
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 yellow
19621 \end_layout
19622
19623 \end_inset
19624
19625 ]
19626 \end_layout
19627
19628 \begin_layout Description
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 Family
19634 \end_layout
19635
19636 \end_inset
19637
19638  [
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643
19644 \emph on
19645 Roman
19646 \end_layout
19647
19648 \end_inset
19649
19650
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 Sans
19656 \end_layout
19657
19658 \end_inset
19659
19660
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 Typewriter
19666 \end_layout
19667
19668 \end_inset
19669
19670 ]
19671 \end_layout
19672
19673 \begin_layout Description
19674 \begin_inset Flex Code
19675 status collapsed
19676
19677 \begin_layout Plain Layout
19678 Misc
19679 \end_layout
19680
19681 \end_inset
19682
19683  [
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688 string
19689 \end_layout
19690
19691 \end_inset
19692
19693 ] Valid arguments are: 
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 emph
19699 \end_layout
19700
19701 \end_inset
19702
19703
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 noun
19709 \end_layout
19710
19711 \end_inset
19712
19713
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 strikeout
19719 \end_layout
19720
19721 \end_inset
19722
19723
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 underbar
19729 \end_layout
19730
19731 \end_inset
19732
19733
19734 \begin_inset Flex Code
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 uuline
19739 \end_layout
19740
19741 \end_inset
19742
19743
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 uwave
19749 \end_layout
19750
19751 \end_inset
19752
19753
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 no_emph
19759 \end_layout
19760
19761 \end_inset
19762
19763
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 no_noun
19769 \end_layout
19770
19771 \end_inset
19772
19773
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 no_strikeout
19779 \end_layout
19780
19781 \end_inset
19782
19783
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 no_bar
19789 \end_layout
19790
19791 \end_inset
19792
19793
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 no_uuline
19799 \end_layout
19800
19801 \end_inset
19802
19803  and 
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 no_uwave
19809 \end_layout
19810
19811 \end_inset
19812
19813 .
19814  Each of these turns on or off the corresponding attribute.
19815  For example, 
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 emph
19821 \end_layout
19822
19823 \end_inset
19824
19825  turns on emphasis, and 
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 no_emph
19831 \end_layout
19832
19833 \end_inset
19834
19835  turns it off.
19836  
19837 \begin_inset Newline newline
19838 \end_inset
19839
19840 If the latter seems puzzling, remember that the font settings for the present
19841  context are generally inherited from the surrounding context.
19842  So 
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 no_emph
19848 \end_layout
19849
19850 \end_inset
19851
19852  would turn off the emphasis that was anyway in effect, say, in a theorem
19853  environment.
19854 \end_layout
19855
19856 \begin_layout Description
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 Series
19862 \end_layout
19863
19864 \end_inset
19865
19866  [
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871
19872 \emph on
19873 Medium
19874 \end_layout
19875
19876 \end_inset
19877
19878
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 Bold
19884 \end_layout
19885
19886 \end_inset
19887
19888
19889 \end_layout
19890
19891 \begin_layout Description
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 Shape
19897 \end_layout
19898
19899 \end_inset
19900
19901  [
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906
19907 \emph on
19908 Up
19909 \end_layout
19910
19911 \end_inset
19912
19913
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 Italic
19919 \end_layout
19920
19921 \end_inset
19922
19923
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 SmallCaps
19929 \end_layout
19930
19931 \end_inset
19932
19933
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 Slanted
19939 \end_layout
19940
19941 \end_inset
19942
19943
19944 \end_layout
19945
19946 \begin_layout Description
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 Size
19952 \end_layout
19953
19954 \end_inset
19955
19956  [
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 tiny
19962 \end_layout
19963
19964 \end_inset
19965
19966
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 small
19972 \end_layout
19973
19974 \end_inset
19975
19976
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981
19982 \emph on
19983 normal
19984 \end_layout
19985
19986 \end_inset
19987
19988
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 large
19994 \end_layout
19995
19996 \end_inset
19997
19998
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 larger
20004 \end_layout
20005
20006 \end_inset
20007
20008
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 largest
20014 \end_layout
20015
20016 \end_inset
20017
20018
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023 huge
20024 \end_layout
20025
20026 \end_inset
20027
20028
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 giant
20034 \end_layout
20035
20036 \end_inset
20037
20038 ]
20039 \end_layout
20040
20041 \begin_layout Subsection
20042 \begin_inset CommandInset label
20043 LatexCommand label
20044 name "sub:Citation-format-description"
20045
20046 \end_inset
20047
20048 Citation format description
20049 \end_layout
20050
20051 \begin_layout Standard
20052 The 
20053 \begin_inset Flex Code
20054 status collapsed
20055
20056 \begin_layout Plain Layout
20057 CiteFormat
20058 \end_layout
20059
20060 \end_inset
20061
20062  blocks are used to describe how bibliographic information should be displayed,
20063  both within \SpecialChar LyX
20064  itself (in the citation dialog and in tooltips, for example)
20065  and in XHTML output.
20066  Such a block might look like this:
20067 \end_layout
20068
20069 \begin_layout LyX-Code
20070 CiteFormat
20071 \end_layout
20072
20073 \begin_layout LyX-Code
20074  article ...
20075 \end_layout
20076
20077 \begin_layout LyX-Code
20078  book ...
20079 \end_layout
20080
20081 \begin_layout LyX-Code
20082 End
20083 \end_layout
20084
20085 \begin_layout Standard
20086 The individual lines define how the bibliographic information associated
20087  with an article or book, respectively, is to be displayed, and such a definitio
20088 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20089  file.
20090  \SpecialChar LyX
20091  defines a default format in the source code that will be used if no specific
20092  definition has been given.
20093  \SpecialChar LyX
20094  predefines several formats in the file 
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 stdciteformats.inc
20100 \end_layout
20101
20102 \end_inset
20103
20104 , which is included in most of \SpecialChar LyX
20105 's document classes.
20106 \end_layout
20107
20108 \begin_layout Standard
20109 The definitions use a simple language that allows Bib\SpecialChar TeX
20110  keys to be replaced
20111  with their values.
20112  Keys should be enclosed in 
20113 \begin_inset Flex Code
20114 status collapsed
20115
20116 \begin_layout Plain Layout
20117 %
20118 \end_layout
20119
20120 \end_inset
20121
20122  signs, e.g.: 
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 %author%
20128 \end_layout
20129
20130 \end_inset
20131
20132 .
20133  So a simple definition might look like this:
20134 \end_layout
20135
20136 \begin_layout LyX-Code
20137 misc %author%, 
20138 \begin_inset Quotes eld
20139 \end_inset
20140
20141 %title
20142 \begin_inset Quotes erd
20143 \end_inset
20144
20145 .
20146 \end_layout
20147
20148 \begin_layout Standard
20149 This would print the author, followed by a comma, followed by the title,
20150  in quotes, followed by a period.
20151 \end_layout
20152
20153 \begin_layout Standard
20154 Of course, sometimes you may want to print a key only if it exists.
20155  This can be done by using a conditional construction, such as: 
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 {%volume%[[vol.
20161 \begin_inset space ~
20162 \end_inset
20163
20164 %volume%]]}
20165 \end_layout
20166
20167 \end_inset
20168
20169 .
20170  This says: If the 
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 volume
20176 \end_layout
20177
20178 \end_inset
20179
20180  key exists, then print 
20181 \begin_inset Quotes eld
20182 \end_inset
20183
20184 vol.
20185 \begin_inset space ~
20186 \end_inset
20187
20188
20189 \begin_inset Quotes erd
20190 \end_inset
20191
20192  followed by the volume key.
20193  It is also possible to have an else clause in the conditional, such as:
20194 \begin_inset Newline newline
20195 \end_inset
20196
20197
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 {%author%[[%author%]][[%editor%, ed.]]}
20203 \end_layout
20204
20205 \end_inset
20206
20207 .
20208 \begin_inset Newline newline
20209 \end_inset
20210
20211 Here, the 
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 author
20217 \end_layout
20218
20219 \end_inset
20220
20221  key is printed if it exists; otherwise, the editor key is printed, followed
20222  by 
20223 \begin_inset Quotes eld
20224 \end_inset
20225
20226 ,
20227 \begin_inset space ~
20228 \end_inset
20229
20230 ed.
20231 \begin_inset Quotes erd
20232 \end_inset
20233
20234  Note that the key is again enclosed in 
20235 \begin_inset Flex Code
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 %
20240 \end_layout
20241
20242 \end_inset
20243
20244  signs; the entire conditional is enclosed in braces; and the if and else
20245  clauses are enclosed in double brackets, 
20246 \begin_inset Quotes eld
20247 \end_inset
20248
20249
20250 \begin_inset Flex Code
20251 status collapsed
20252
20253 \begin_layout Plain Layout
20254 [[
20255 \end_layout
20256
20257 \end_inset
20258
20259
20260 \begin_inset Quotes eld
20261 \end_inset
20262
20263  and 
20264 \begin_inset Quotes eld
20265 \end_inset
20266
20267
20268 \begin_inset Flex Code
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 ]]
20273 \end_layout
20274
20275 \end_inset
20276
20277
20278 \begin_inset Quotes erd
20279 \end_inset
20280
20281 .
20282  There must be no space between any of these.
20283 \end_layout
20284
20285 \begin_layout Standard
20286 There is one other piece of syntax available in definitions, which looks
20287  like this: 
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 {!<i>!}
20293 \end_layout
20294
20295 \end_inset
20296
20297 .
20298  This defines a piece of formatting information that is to be used when
20299  creating 
20300 \begin_inset Quotes eld
20301 \end_inset
20302
20303 rich text
20304 \begin_inset Quotes erd
20305 \end_inset
20306
20307 .
20308  Obviously, we do not want to output HTML tags when writing plain text,
20309  so they should be wrapped in 
20310 \begin_inset Quotes eld
20311 \end_inset
20312
20313 {!
20314 \begin_inset Quotes erd
20315 \end_inset
20316
20317  and 
20318 \begin_inset Quotes eld
20319 \end_inset
20320
20321 !}
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325 .
20326 \end_layout
20327
20328 \begin_layout Standard
20329 Two special sorts of definitions are also possible in a 
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 CiteFormat
20335 \end_layout
20336
20337 \end_inset
20338
20339  block.
20340  An example of the first would be:
20341 \end_layout
20342
20343 \begin_layout LyX-Code
20344 !quotetitle 
20345 \begin_inset Quotes eld
20346 \end_inset
20347
20348 %title%
20349 \begin_inset Quotes erd
20350 \end_inset
20351
20352
20353 \end_layout
20354
20355 \begin_layout Standard
20356 This is an abbreviation, or macro, and it can be used by treating it as
20357  if it were a key: 
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 %!quotetitle%
20363 \end_layout
20364
20365 \end_inset
20366
20367 .
20368  \SpecialChar LyX
20369  will treat 
20370 \begin_inset Flex Code
20371 status collapsed
20372
20373 \begin_layout Plain Layout
20374 %!quotetitle%
20375 \end_layout
20376
20377 \end_inset
20378
20379  exactly as it would treat its definition.
20380  So, let us issue the obvious 
20381 \emph on
20382 warning
20383 \emph default
20384 .
20385  Do not do this:
20386 \end_layout
20387
20388 \begin_layout LyX-Code
20389 !funfun %funfun%
20390 \end_layout
20391
20392 \begin_layout Standard
20393 or anything like it.
20394  \SpecialChar LyX
20395  shouldn't go into an infinite loop, but it may go into a long one before
20396  it gives up.
20397 \end_layout
20398
20399 \begin_layout Standard
20400 The second sort of special definition might look like this:
20401 \end_layout
20402
20403 \begin_layout LyX-Code
20404 _pptext pp.
20405 \end_layout
20406
20407 \begin_layout Standard
20408 This defines a translatable piece of text, which allows relevant parts of
20409  the bibliography to be translated.
20410  It can be included in a definition by treating it as a key: 
20411 \begin_inset Flex Code
20412 status collapsed
20413
20414 \begin_layout Plain Layout
20415 %_pptext%
20416 \end_layout
20417
20418 \end_inset
20419
20420 .
20421  Several of these are predefined in 
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 stdciteformats.inc
20427 \end_layout
20428
20429 \end_inset
20430
20431 .
20432  Note that these are not macros, in the sense just defined.
20433  They will not be expanded.
20434 \end_layout
20435
20436 \begin_layout Standard
20437 So here then is an example that use all these features:
20438 \begin_inset VSpace defskip
20439 \end_inset
20440
20441
20442 \end_layout
20443
20444 \begin_layout Standard
20445 \noindent
20446
20447 \family typewriter
20448 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20449 \end_layout
20450
20451 \begin_layout Standard
20452 \begin_inset VSpace defskip
20453 \end_inset
20454
20455 This defines a macro that prints the author, followed by a comma, if the
20456  
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 author
20462 \end_layout
20463
20464 \end_inset
20465
20466  key is defined, or else prints the name of the editor, followed by the
20467  
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 _edtext
20473 \end_layout
20474
20475 \end_inset
20476
20477  or its translation (it is by default 
20478 \begin_inset Quotes eld
20479 \end_inset
20480
20481 ed.
20482 \begin_inset Quotes erd
20483 \end_inset
20484
20485 ), if the 
20486 \begin_inset Flex Code
20487 status collapsed
20488
20489 \begin_layout Plain Layout
20490 editor
20491 \end_layout
20492
20493 \end_inset
20494
20495  key is defined.
20496  Note that this is in fact defined in 
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 stdciteformats.inc
20502 \end_layout
20503
20504 \end_inset
20505
20506 , so you can use it in your own definitions, or re-definitions, if you load
20507  that file first.
20508 \end_layout
20509
20510 \begin_layout Section
20511 \begin_inset CommandInset label
20512 LatexCommand label
20513 name "sec:Tags-for-XHTML"
20514
20515 \end_inset
20516
20517 Tags for XHTML output
20518 \end_layout
20519
20520 \begin_layout Standard
20521 As with \SpecialChar LaTeX
20522  or DocBook, the format of \SpecialChar LyX
20523 's XHTML output is also controlled by
20524  layout information.
20525  In general, \SpecialChar LyX
20526  provides sensible defaults and, as mentioned earlier, it will
20527  even construct default CSS style rules from the other layout tags.
20528  For example, \SpecialChar LyX
20529  will attempt to use the information provided in the 
20530 \begin_inset Flex Code
20531 status collapsed
20532
20533 \begin_layout Plain Layout
20534 Font
20535 \end_layout
20536
20537 \end_inset
20538
20539  declaration for the Chapter style to write CSS that will appropriately
20540  format chapter headings.
20541 \end_layout
20542
20543 \begin_layout Standard
20544 In many cases, then, you may not have to do anything at all to get acceptable
20545  XHTML output for your own environments, custom insets, and so forth.
20546  But in some cases you will, and so \SpecialChar LyX
20547  provides a number of layout tags that
20548  can be used to customize the XHTML and CSS that are generated.
20549 \end_layout
20550
20551 \begin_layout Standard
20552 Note that there are two tags, 
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557 HTMLPreamble
20558 \end_layout
20559
20560 \end_inset
20561
20562  and 
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567 AddToHTMLPreamble
20568 \end_layout
20569
20570 \end_inset
20571
20572  that may appear outside style and inset declarations.
20573  See 
20574 \begin_inset CommandInset ref
20575 LatexCommand ref
20576 reference "sub:General-text-class"
20577
20578 \end_inset
20579
20580  for details on these.
20581 \end_layout
20582
20583 \begin_layout Subsection
20584 \begin_inset CommandInset label
20585 LatexCommand label
20586 name "sub:Paragraph-Style-XHTML"
20587
20588 \end_inset
20589
20590 Paragraph styles
20591 \end_layout
20592
20593 \begin_layout Standard
20594 The sort of XHTML \SpecialChar LyX
20595  outputs for a paragraph depends upon whether we are dealing
20596  with a normal paragraph, a command, or an environment, where this is itself
20597  determined by the contents of the corresponding 
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602 \SpecialChar LaTeX
20603 Type
20604 \end_layout
20605
20606 \end_inset
20607
20608  tag.
20609  
20610 \end_layout
20611
20612 \begin_layout Standard
20613 For a command or normal paragraph, the output XHTML has the following form:
20614 \end_layout
20615
20616 \begin_layout LyX-Code
20617 <tag attr=
20618 \begin_inset Quotes erd
20619 \end_inset
20620
20621 value
20622 \begin_inset Quotes erd
20623 \end_inset
20624
20625 >
20626 \end_layout
20627
20628 \begin_layout LyX-Code
20629 <labeltag attr=
20630 \begin_inset Quotes erd
20631 \end_inset
20632
20633 value
20634 \begin_inset Quotes erd
20635 \end_inset
20636
20637 >Label</labeltag>
20638 \end_layout
20639
20640 \begin_layout LyX-Code
20641 Contents of the paragraph.
20642 \end_layout
20643
20644 \begin_layout LyX-Code
20645 </tag>
20646 \end_layout
20647
20648 \begin_layout Standard
20649 The label tags are of course omitted if the paragraph does not have a label.
20650 \end_layout
20651
20652 \begin_layout Standard
20653 For an environment that is not some sort of list, the XHTML takes this form:
20654 \end_layout
20655
20656 \begin_layout LyX-Code
20657 <tag attr=
20658 \begin_inset Quotes erd
20659 \end_inset
20660
20661 value
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665 >
20666 \end_layout
20667
20668 \begin_layout LyX-Code
20669 <itemtag attr=
20670 \begin_inset Quotes erd
20671 \end_inset
20672
20673 value
20674 \begin_inset Quotes erd
20675 \end_inset
20676
20677 ><labeltag attr=
20678 \begin_inset Quotes erd
20679 \end_inset
20680
20681 value
20682 \begin_inset Quotes erd
20683 \end_inset
20684
20685 >Environment Label</labeltag>First paragraph.</itemtag>
20686 \end_layout
20687
20688 \begin_layout LyX-Code
20689 <itemtag>Second paragraph.</itemtag>
20690 \end_layout
20691
20692 \begin_layout LyX-Code
20693 </tag>
20694 \end_layout
20695
20696 \begin_layout Standard
20697 Note that the label is output only for the first paragraph, as it should
20698  be for a theorem, for example.
20699  
20700 \end_layout
20701
20702 \begin_layout Standard
20703 For a list, we have one of these forms:
20704 \end_layout
20705
20706 \begin_layout LyX-Code
20707 <tag attr=
20708 \begin_inset Quotes erd
20709 \end_inset
20710
20711 value
20712 \begin_inset Quotes erd
20713 \end_inset
20714
20715 >
20716 \end_layout
20717
20718 \begin_layout LyX-Code
20719 <itemtag attr=
20720 \begin_inset Quotes erd
20721 \end_inset
20722
20723 value
20724 \begin_inset Quotes erd
20725 \end_inset
20726
20727 ><labeltag attr=
20728 \begin_inset Quotes erd
20729 \end_inset
20730
20731 value
20732 \begin_inset Quotes erd
20733 \end_inset
20734
20735 >List Label</labeltag>First item.</itemtag>
20736 \end_layout
20737
20738 \begin_layout LyX-Code
20739 <itemtag attr=
20740 \begin_inset Quotes erd
20741 \end_inset
20742
20743 value
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 ><labeltag attr=
20748 \begin_inset Quotes erd
20749 \end_inset
20750
20751 value
20752 \begin_inset Quotes erd
20753 \end_inset
20754
20755 >List Label</labeltag>Second item.</itemtag>
20756 \end_layout
20757
20758 \begin_layout LyX-Code
20759 </tag>
20760 \end_layout
20761
20762 \begin_layout LyX-Code
20763
20764 \end_layout
20765
20766 \begin_layout LyX-Code
20767 <tag attr=
20768 \begin_inset Quotes erd
20769 \end_inset
20770
20771 value
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775 >
20776 \end_layout
20777
20778 \begin_layout LyX-Code
20779 <labeltag attr=
20780 \begin_inset Quotes erd
20781 \end_inset
20782
20783 value
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787 >List Label</labeltag><itemtag attr=
20788 \begin_inset Quotes erd
20789 \end_inset
20790
20791 value
20792 \begin_inset Quotes erd
20793 \end_inset
20794
20795 >First item.</itemtag>
20796 \end_layout
20797
20798 \begin_layout LyX-Code
20799 <labeltag attr=
20800 \begin_inset Quotes erd
20801 \end_inset
20802
20803 value
20804 \begin_inset Quotes erd
20805 \end_inset
20806
20807 >List Label</labeltag><itemtag attr=
20808 \begin_inset Quotes erd
20809 \end_inset
20810
20811 value
20812 \begin_inset Quotes erd
20813 \end_inset
20814
20815 >Second item.</itemtag>
20816 \end_layout
20817
20818 \begin_layout LyX-Code
20819 </tag>
20820 \end_layout
20821
20822 \begin_layout Standard
20823 Note the different orders of 
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 labeltag
20829 \end_layout
20830
20831 \end_inset
20832
20833  and 
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 itemtag
20839 \end_layout
20840
20841 \end_inset
20842
20843 .
20844  Which order we get depends upon the setting of 
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 HTMLLabelFirst
20850 \end_layout
20851
20852 \end_inset
20853
20854 : If 
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 HTMLLabelFirst
20860 \end_layout
20861
20862 \end_inset
20863
20864  is false (the default), you get the first of these, with the label within
20865  the item; if true, you get the second, with the label outside the item.
20866 \end_layout
20867
20868 \begin_layout Standard
20869 The specific tags and attributes output for each paragraph type can be controlle
20870 d by means of the layout tags we are about to describe.
20871  As mentioned earlier, however, \SpecialChar LyX
20872  uses sensible defaults for many of these,
20873  so you often may not need to do very much to get good XHTML output.
20874  Think of the available tags as there so you can tweak things to your liking.
20875 \end_layout
20876
20877 \begin_layout Description
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 HTMLAttr
20883 \end_layout
20884
20885 \end_inset
20886
20887  [
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 string
20893 \end_layout
20894
20895 \end_inset
20896
20897 ] Specifies attribute information to be output with the main tag.
20898  For example, 
20899 \begin_inset Quotes eld
20900 \end_inset
20901
20902
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 class=`mydiv'
20908 \end_layout
20909
20910 \end_inset
20911
20912
20913 \begin_inset Quotes erd
20914 \end_inset
20915
20916 .
20917  By default, \SpecialChar LyX
20918  will output 
20919 \begin_inset Quotes eld
20920 \end_inset
20921
20922
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927 class=`layoutname'
20928 \end_layout
20929
20930 \end_inset
20931
20932
20933 \begin_inset Quotes erd
20934 \end_inset
20935
20936 , where 
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 layoutname
20942 \end_layout
20943
20944 \end_inset
20945
20946  is the \SpecialChar LyX
20947  name of the layout, made lowercase, for example: chapter.
20948  This should 
20949 \emph on
20950 not
20951 \emph default
20952  contain any style information.
20953  Use 
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 HTMLStyle
20959 \end_layout
20960
20961 \end_inset
20962
20963  for that purpose.
20964 \end_layout
20965
20966 \begin_layout Description
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 HTMLForceCSS
20972 \end_layout
20973
20974 \end_inset
20975
20976  [
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981
20982 \emph on
20983 0
20984 \emph default
20985 ,1
20986 \end_layout
20987
20988 \end_inset
20989
20990 ] Whether to output the default CSS information \SpecialChar LyX
20991  generates for this layout,
20992  even if additional information is explicitly provided via 
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 HTMLStyle
20998 \end_layout
20999
21000 \end_inset
21001
21002 .
21003  Setting this to 
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 1
21009 \end_layout
21010
21011 \end_inset
21012
21013  allows you to alter or augment the generated CSS, rather than to override
21014  it completely.
21015  Default is 
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 0
21021 \end_layout
21022
21023 \end_inset
21024
21025 .
21026 \end_layout
21027
21028 \begin_layout Description
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 HTMLItem
21034 \end_layout
21035
21036 \end_inset
21037
21038  [
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043 string
21044 \end_layout
21045
21046 \end_inset
21047
21048 ] The tag to be used for individual paragraphs of environments, replacing
21049  
21050 \begin_inset Flex Code
21051 status collapsed
21052
21053 \begin_layout Plain Layout
21054 itemtag
21055 \end_layout
21056
21057 \end_inset
21058
21059  in the examples above.
21060  Defaults to 
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 div
21066 \end_layout
21067
21068 \end_inset
21069
21070 .
21071 \end_layout
21072
21073 \begin_layout Description
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 HTMLItemAttr
21079 \end_layout
21080
21081 \end_inset
21082
21083  [
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 string
21089 \end_layout
21090
21091 \end_inset
21092
21093 ] Attributes for the item tag.
21094  Defaults to 
21095 \begin_inset Quotes eld
21096 \end_inset
21097
21098
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103 class=`layoutname_item'
21104 \end_layout
21105
21106 \end_inset
21107
21108
21109 \begin_inset Quotes erd
21110 \end_inset
21111
21112 .
21113  This should 
21114 \emph on
21115 not
21116 \emph default
21117  contain any style information.
21118  Use 
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 HTMLStyle
21124 \end_layout
21125
21126 \end_inset
21127
21128  for that purpose.
21129 \end_layout
21130
21131 \begin_layout Description
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 HTMLLabel
21137 \end_layout
21138
21139 \end_inset
21140
21141  [
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146 string
21147 \end_layout
21148
21149 \end_inset
21150
21151 ] The tag to be used for paragraph and item labels, replacing 
21152 \begin_inset Flex Code
21153 status collapsed
21154
21155 \begin_layout Plain Layout
21156 labeltag
21157 \end_layout
21158
21159 \end_inset
21160
21161  in the examples above.
21162  Defaults to 
21163 \begin_inset Flex Code
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167 span
21168 \end_layout
21169
21170 \end_inset
21171
21172 , unless 
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177 LabelType
21178 \end_layout
21179
21180 \end_inset
21181
21182  is either 
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 Top_Environment
21188 \end_layout
21189
21190 \end_inset
21191
21192  or 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 Centered_Top_Environment
21198 \end_layout
21199
21200 \end_inset
21201
21202 , in which case it defaults to 
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 div
21208 \end_layout
21209
21210 \end_inset
21211
21212 .
21213 \end_layout
21214
21215 \begin_layout Description
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 HTMLLabelAttr
21221 \end_layout
21222
21223 \end_inset
21224
21225  [
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 string
21231 \end_layout
21232
21233 \end_inset
21234
21235 ] Attributes for the label tag.
21236  Defaults to 
21237 \begin_inset Quotes eld
21238 \end_inset
21239
21240
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 class=`layoutname_label'
21246 \end_layout
21247
21248 \end_inset
21249
21250
21251 \begin_inset Quotes erd
21252 \end_inset
21253
21254 .
21255  This should 
21256 \emph on
21257 not
21258 \emph default
21259  contain any style information.
21260  Use 
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265 HTMLStyle
21266 \end_layout
21267
21268 \end_inset
21269
21270  for that purpose.
21271 \end_layout
21272
21273 \begin_layout Description
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 HTMLLabelFirst
21279 \end_layout
21280
21281 \end_inset
21282
21283  [
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288
21289 \emph on
21290 0
21291 \emph default
21292 ,1
21293 \end_layout
21294
21295 \end_inset
21296
21297 ] Meaningful only for list-like environments, this tag controls whether
21298  the label tag is output before or inside the item tag.
21299  This is used, for example, in the description environment, where we want
21300  `
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 <dt>\SpecialChar ldots
21306 </dt><dd>\SpecialChar ldots
21307 </dd>
21308 \end_layout
21309
21310 \end_inset
21311
21312 .
21313  Default is 
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 0
21319 \end_layout
21320
21321 \end_inset
21322
21323 : The label tag is output inside the item tag.
21324 \end_layout
21325
21326 \begin_layout Description
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331 HTMLPreamble
21332 \end_layout
21333
21334 \end_inset
21335
21336  Information to be output in the 
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341 <head>
21342 \end_layout
21343
21344 \end_inset
21345
21346  section when this style is used.
21347  This might, for example, be used to include a 
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 <script>
21353 \end_layout
21354
21355 \end_inset
21356
21357  block defining an 
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 onclick
21363 \end_layout
21364
21365 \end_inset
21366
21367  handler.
21368 \end_layout
21369
21370 \begin_layout Description
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 HTMLStyle
21376 \end_layout
21377
21378 \end_inset
21379
21380  CSS style information to be included when this style is used.
21381  Note that this will automatically be wrapped in a layout-generated 
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 <style>
21387 \end_layout
21388
21389 \end_inset
21390
21391  block, so only the CSS itself need be included.
21392  Must end with 
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 EndHTMLStyle
21398 \end_layout
21399
21400 \end_inset
21401
21402 .
21403 \end_layout
21404
21405 \begin_layout Description
21406 \begin_inset Flex Code
21407 status collapsed
21408
21409 \begin_layout Plain Layout
21410 HTMLTag
21411 \end_layout
21412
21413 \end_inset
21414
21415  [
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 string
21421 \end_layout
21422
21423 \end_inset
21424
21425 ] The tag to be used for the main label, replacing 
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 tag
21431 \end_layout
21432
21433 \end_inset
21434
21435  in the examples above.
21436  Defaults to 
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 div
21442 \end_layout
21443
21444 \end_inset
21445
21446 .
21447 \end_layout
21448
21449 \begin_layout Description
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 HTMLTitle
21455 \end_layout
21456
21457 \end_inset
21458
21459  [
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464
21465 \emph on
21466 0
21467 \emph default
21468 ,1
21469 \end_layout
21470
21471 \end_inset
21472
21473 ] Marks this style as the one to be used to generate the 
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 <title>
21479 \end_layout
21480
21481 \end_inset
21482
21483  tag for the XHTML file.
21484  By default, it is false.
21485  The 
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 stdtitle.inc
21491 \end_layout
21492
21493 \end_inset
21494
21495  file sets it to true for the 
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 title
21501 \end_layout
21502
21503 \end_inset
21504
21505  environment.
21506  
21507 \end_layout
21508
21509 \begin_layout Subsection
21510 InsetLayout XHTML
21511 \end_layout
21512
21513 \begin_layout Standard
21514 The XHTML output of insets can also be controlled by information in layout
21515  files.
21516 \begin_inset Foot
21517 status collapsed
21518
21519 \begin_layout Plain Layout
21520 At present, this is true only for 
21521 \begin_inset Quotes eld
21522 \end_inset
21523
21524 text
21525 \begin_inset Quotes erd
21526 \end_inset
21527
21528  insets (insets you can type into) and is not true for 
21529 \begin_inset Quotes eld
21530 \end_inset
21531
21532 command
21533 \begin_inset Quotes erd
21534 \end_inset
21535
21536  insets (insets that are associated with dialog boxes).
21537 \end_layout
21538
21539 \end_inset
21540
21541  Here, too, \SpecialChar LyX
21542  tries to provide sensible defaults, and it constructs default
21543  CSS style rules.
21544  But everything can be customized.
21545 \end_layout
21546
21547 \begin_layout Standard
21548 The XHTML \SpecialChar LyX
21549  outputs for an inset has the following form:
21550 \end_layout
21551
21552 \begin_layout LyX-Code
21553 <tag attr=
21554 \begin_inset Quotes erd
21555 \end_inset
21556
21557 value
21558 \begin_inset Quotes erd
21559 \end_inset
21560
21561 >
21562 \end_layout
21563
21564 \begin_layout LyX-Code
21565 <labeltag>Label</labeltag>
21566 \end_layout
21567
21568 \begin_layout LyX-Code
21569 <innertag attr=
21570 \begin_inset Quotes erd
21571 \end_inset
21572
21573 value
21574 \begin_inset Quotes erd
21575 \end_inset
21576
21577 >Contents of the inset.</innertag>
21578 \end_layout
21579
21580 \begin_layout LyX-Code
21581 </tag>
21582 \end_layout
21583
21584 \begin_layout Standard
21585 If the inset permits multiple paragraphs—that is, if 
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590 MultiPar
21591 \end_layout
21592
21593 \end_inset
21594
21595  is true—then the contents of the inset will itself be output as paragraphs
21596  formatted according to the styles used for those paragraphs (standard,
21597  quote, and the like).
21598  The label tag is of course omitted if the paragraph does not have a label
21599  and, at present, is always 
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 span
21605 \end_layout
21606
21607 \end_inset
21608
21609 .
21610  The inner tag is optional and, by default, does not appear.
21611 \end_layout
21612
21613 \begin_layout Standard
21614 The specific tags and attributes output for each inset can be controlled
21615  by means of the following layout tags.
21616 \end_layout
21617
21618 \begin_layout Description
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623 HTMLAttr
21624 \end_layout
21625
21626 \end_inset
21627
21628  [
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633 string
21634 \end_layout
21635
21636 \end_inset
21637
21638 ] Specifies attribute information to be output with the main tag.
21639  For example, 
21640 \begin_inset Quotes eld
21641 \end_inset
21642
21643
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 class=`myinset' onclick=`\SpecialChar ldots
21649 '
21650 \end_layout
21651
21652 \end_inset
21653
21654
21655 \begin_inset Quotes erd
21656 \end_inset
21657
21658 .
21659  By default, \SpecialChar LyX
21660  will output 
21661 \begin_inset Quotes eld
21662 \end_inset
21663
21664
21665 \begin_inset Flex Code
21666 status collapsed
21667
21668 \begin_layout Plain Layout
21669 class=`insetname'
21670 \end_layout
21671
21672 \end_inset
21673
21674
21675 \begin_inset Quotes erd
21676 \end_inset
21677
21678 , where 
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683 insetname
21684 \end_layout
21685
21686 \end_inset
21687
21688  is the \SpecialChar LyX
21689  name of the inset, made lowercase and with non-alphanumeric characters
21690  converted to underscores, for example: footnote.
21691 \end_layout
21692
21693 \begin_layout Description
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 HTMLForceCSS
21699 \end_layout
21700
21701 \end_inset
21702
21703  [
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708
21709 \emph on
21710 0
21711 \emph default
21712 ,1
21713 \end_layout
21714
21715 \end_inset
21716
21717 ] Whether to output the default CSS information \SpecialChar LyX
21718  generates for this layout,
21719  even if additional information is explicitly provided via 
21720 \begin_inset Flex Code
21721 status collapsed
21722
21723 \begin_layout Plain Layout
21724 HTMLStyle
21725 \end_layout
21726
21727 \end_inset
21728
21729 .
21730  Setting this to 
21731 \begin_inset Flex Code
21732 status collapsed
21733
21734 \begin_layout Plain Layout
21735 1
21736 \end_layout
21737
21738 \end_inset
21739
21740  allows you to alter or augment the generated CSS, rather than to override
21741  it completely.
21742  Default is 0.
21743 \end_layout
21744
21745 \begin_layout Description
21746 \begin_inset Flex Code
21747 status collapsed
21748
21749 \begin_layout Plain Layout
21750 HTMLInnerAttr
21751 \end_layout
21752
21753 \end_inset
21754
21755  [
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 string
21761 \end_layout
21762
21763 \end_inset
21764
21765 ] Attributes for the inner tag.
21766  Defaults to 
21767 \begin_inset Quotes eld
21768 \end_inset
21769
21770
21771 \begin_inset Flex Code
21772 status collapsed
21773
21774 \begin_layout Plain Layout
21775 class=`insetname_inner'
21776 \end_layout
21777
21778 \end_inset
21779
21780
21781 \begin_inset Quotes erd
21782 \end_inset
21783
21784 .
21785 \end_layout
21786
21787 \begin_layout Description
21788 \begin_inset Flex Code
21789 status collapsed
21790
21791 \begin_layout Plain Layout
21792 HTMLInnerTag
21793 \end_layout
21794
21795 \end_inset
21796
21797  [
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 string
21803 \end_layout
21804
21805 \end_inset
21806
21807 ] The inner tag, replacing 
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 innertag
21813 \end_layout
21814
21815 \end_inset
21816
21817  in the examples above.
21818  By default, there is none.
21819 \end_layout
21820
21821 \begin_layout Description
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 HTMLIsBlock
21827 \end_layout
21828
21829 \end_inset
21830
21831  [
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836 0,
21837 \emph on
21838 1
21839 \end_layout
21840
21841 \end_inset
21842
21843 ] Whether this inset represents a standalone block of text (such as a footnote)
21844  or instead represents material that is included in the surrounding text
21845  (such as a branch).
21846  Defaults to 1.
21847 \end_layout
21848
21849 \begin_layout Description
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 HTMLLabel
21855 \end_layout
21856
21857 \end_inset
21858
21859  [
21860 \begin_inset Flex Code
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864 string
21865 \end_layout
21866
21867 \end_inset
21868
21869 ] A label for this inset, possibly including a reference to a counter.
21870  For example, for footnote, it might be: 
21871 \begin_inset Flex Code
21872 status collapsed
21873
21874 \begin_layout Plain Layout
21875
21876 \backslash
21877 arabic{footnote}
21878 \end_layout
21879
21880 \end_inset
21881
21882 .
21883  This is optional, and there is no default.
21884 \end_layout
21885
21886 \begin_layout Description
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 HTMLPreamble
21892 \end_layout
21893
21894 \end_inset
21895
21896  Information to be output in the 
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 <head>
21902 \end_layout
21903
21904 \end_inset
21905
21906  section when this style is used.
21907  This might, for example, be used to include a 
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 <script>
21913 \end_layout
21914
21915 \end_inset
21916
21917  block defining an 
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 onclick
21923 \end_layout
21924
21925 \end_inset
21926
21927  handler.
21928 \end_layout
21929
21930 \begin_layout Description
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 HTMLStyle
21936 \end_layout
21937
21938 \end_inset
21939
21940  CSS style information to be included when this style is used.
21941  Note that this will automatically be wrapped in a layout-generated 
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946 <style>
21947 \end_layout
21948
21949 \end_inset
21950
21951  block, so only the CSS itself need be included.
21952 \end_layout
21953
21954 \begin_layout Description
21955 \begin_inset Flex Code
21956 status collapsed
21957
21958 \begin_layout Plain Layout
21959 HTMLTag
21960 \end_layout
21961
21962 \end_inset
21963
21964  [
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 string
21970 \end_layout
21971
21972 \end_inset
21973
21974 ] The tag to be used for the main label, replacing 
21975 \begin_inset Flex Code
21976 status collapsed
21977
21978 \begin_layout Plain Layout
21979 tag
21980 \end_layout
21981
21982 \end_inset
21983
21984  in the examples above.
21985  The default depends upon the setting of 
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 MultiPar
21991 \end_layout
21992
21993 \end_inset
21994
21995 : If 
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 MultiPar
22001 \end_layout
22002
22003 \end_inset
22004
22005  is true, the default is 
22006 \begin_inset Flex Code
22007 status collapsed
22008
22009 \begin_layout Plain Layout
22010 div
22011 \end_layout
22012
22013 \end_inset
22014
22015 ; if it is false, the default is 
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 span
22021 \end_layout
22022
22023 \end_inset
22024
22025 .
22026 \end_layout
22027
22028 \begin_layout Subsection
22029 Float XHTML
22030 \end_layout
22031
22032 \begin_layout Standard
22033 The XHTML output for floats too can be controlled by layout information.
22034  The output has the following form:
22035 \end_layout
22036
22037 \begin_layout LyX-Code
22038 <tag attr=
22039 \begin_inset Quotes erd
22040 \end_inset
22041
22042 value
22043 \begin_inset Quotes erd
22044 \end_inset
22045
22046 >
22047 \end_layout
22048
22049 \begin_layout LyX-Code
22050 Contents of the float.
22051 \end_layout
22052
22053 \begin_layout LyX-Code
22054 </tag>
22055 \end_layout
22056
22057 \begin_layout Standard
22058 The caption, if there is one, is a separate inset and will be output as
22059  such.
22060  Its appearance can be controlled via the InsetLayout for caption insets.
22061  
22062 \end_layout
22063
22064 \begin_layout Description
22065 \begin_inset Flex Code
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 HTMLAttr
22070 \end_layout
22071
22072 \end_inset
22073
22074  [
22075 \begin_inset Flex Code
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 string
22080 \end_layout
22081
22082 \end_inset
22083
22084 ] Specifies attribute information to be output with the main tag.
22085  For example, 
22086 \begin_inset Quotes eld
22087 \end_inset
22088
22089
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 class=`myfloat' onclick=`\SpecialChar ldots
22095 '
22096 \end_layout
22097
22098 \end_inset
22099
22100
22101 \begin_inset Quotes erd
22102 \end_inset
22103
22104 .
22105  By default, \SpecialChar LyX
22106  will output 
22107 \begin_inset Quotes eld
22108 \end_inset
22109
22110
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 class=`float float-floattype'
22116 \end_layout
22117
22118 \end_inset
22119
22120
22121 \begin_inset Quotes erd
22122 \end_inset
22123
22124 , where 
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129 floattype
22130 \end_layout
22131
22132 \end_inset
22133
22134  is \SpecialChar LyX
22135 's name for this type of float, as determined by the float declaration
22136  (see 
22137 \begin_inset CommandInset ref
22138 LatexCommand ref
22139 reference "sub:Floats"
22140
22141 \end_inset
22142
22143 ), though made lowercase and with non-alphanumeric characters converted
22144  to underscores, for example: float-table.
22145 \end_layout
22146
22147 \begin_layout Description
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 HTMLStyle
22153 \end_layout
22154
22155 \end_inset
22156
22157  CSS style information to be included when this float is used.
22158  Note that this will automatically be wrapped in a layout-generated 
22159 \begin_inset Flex Code
22160 status collapsed
22161
22162 \begin_layout Plain Layout
22163 <style>
22164 \end_layout
22165
22166 \end_inset
22167
22168  block, so only the CSS itself need be included.
22169 \end_layout
22170
22171 \begin_layout Description
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 HTMLTag
22177 \end_layout
22178
22179 \end_inset
22180
22181  [
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 string
22187 \end_layout
22188
22189 \end_inset
22190
22191 ] The tag to be used for this float, replacing 
22192 \begin_inset Quotes eld
22193 \end_inset
22194
22195
22196 \begin_inset Flex Code
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 tag
22201 \end_layout
22202
22203 \end_inset
22204
22205
22206 \begin_inset Quotes erd
22207 \end_inset
22208
22209  in the example above.
22210  The default is 
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 div
22216 \end_layout
22217
22218 \end_inset
22219
22220  and will rarely need changing.
22221 \end_layout
22222
22223 \begin_layout Subsection
22224 Bibliography formatting
22225 \end_layout
22226
22227 \begin_layout Standard
22228 The bibliography can be formatted using 
22229 \begin_inset Flex Code
22230 status collapsed
22231
22232 \begin_layout Plain Layout
22233 CiteFormat
22234 \end_layout
22235
22236 \end_inset
22237
22238  blocks.
22239  See 
22240 \begin_inset CommandInset ref
22241 LatexCommand ref
22242 reference "sub:Citation-format-description"
22243
22244 \end_inset
22245
22246  for the details.
22247 \end_layout
22248
22249 \begin_layout Subsection
22250 \SpecialChar LyX
22251 -generated CSS
22252 \end_layout
22253
22254 \begin_layout Standard
22255 We have several times mentioned that \SpecialChar LyX
22256  will generate default CSS style rules
22257  for both insets and paragraph styles, based upon the other layout information
22258  that is provided.
22259  In this section, we shall say a word about which layout information \SpecialChar LyX
22260  uses
22261  and how.
22262 \end_layout
22263
22264 \begin_layout Standard
22265 At present, \SpecialChar LyX
22266  auto-generates CSS only for font information, making use of
22267  the 
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272 Family
22273 \end_layout
22274
22275 \end_inset
22276
22277
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 Series
22283 \end_layout
22284
22285 \end_inset
22286
22287
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292 Shape
22293 \end_layout
22294
22295 \end_inset
22296
22297 , and 
22298 \begin_inset Flex Code
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 Size
22303 \end_layout
22304
22305 \end_inset
22306
22307  specified in the 
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 Font
22313 \end_layout
22314
22315 \end_inset
22316
22317  declaration (see 
22318 \begin_inset CommandInset ref
22319 LatexCommand ref
22320 reference "sub:Font-description"
22321
22322 \end_inset
22323
22324 ).
22325  The translation is mostly straightforward and obvious.
22326  For example, 
22327 \begin_inset Quotes eld
22328 \end_inset
22329
22330
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 Family Sans
22336 \end_layout
22337
22338 \end_inset
22339
22340
22341 \begin_inset Quotes erd
22342 \end_inset
22343
22344  becomes 
22345 \begin_inset Quotes eld
22346 \end_inset
22347
22348
22349 \begin_inset Flex Code
22350 status collapsed
22351
22352 \begin_layout Plain Layout
22353 font-family: sans-serif;
22354 \end_layout
22355
22356 \end_inset
22357
22358
22359 \begin_inset Quotes erd
22360 \end_inset
22361
22362 .
22363  The correspondence of \SpecialChar LyX
22364  sizes and CSS sizes is a little less obvious but
22365  nonetheless intuitive.
22366  See the 
22367 \begin_inset Flex Code
22368 status collapsed
22369
22370 \begin_layout Plain Layout
22371 getSizeCSS()
22372 \end_layout
22373
22374 \end_inset
22375
22376  function in 
22377 \begin_inset Flex URL
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381
22382 src/FontInfo.cpp
22383 \end_layout
22384
22385 \end_inset
22386
22387  for the details.
22388 \end_layout
22389
22390 \begin_layout Chapter
22391 Including External Material
22392 \begin_inset CommandInset label
22393 LatexCommand label
22394 name "chap:Including-External-Material"
22395
22396 \end_inset
22397
22398
22399 \end_layout
22400
22401 \begin_layout Standard
22402 \begin_inset Box Shadowbox
22403 position "t"
22404 hor_pos "c"
22405 has_inner_box 1
22406 inner_pos "t"
22407 use_parbox 0
22408 use_makebox 0
22409 width "100col%"
22410 special "none"
22411 height "1in"
22412 height_special "totalheight"
22413 status open
22414
22415 \begin_layout Plain Layout
22416 WARNING: This portion of the documentation has not been updated for some
22417  time.
22418  We certainly hope that it is still accurate, but there are no guarantees.
22419 \end_layout
22420
22421 \end_inset
22422
22423
22424 \end_layout
22425
22426 \begin_layout Standard
22427 The use of material from sources external to \SpecialChar LyX
22428  is covered in detail in the
22429  
22430 \emph on
22431 Embedded Objects
22432 \emph default
22433  manual.
22434  This part of the manual covers what needs to happen behind the scenes for
22435  new sorts of material to be included.
22436 \end_layout
22437
22438 \begin_layout Section
22439 How does it work?
22440 \end_layout
22441
22442 \begin_layout Standard
22443 The external material feature is based on the concept of a 
22444 \emph on
22445 template
22446 \emph default
22447 .
22448  A template is a specification of how \SpecialChar LyX
22449  should interface with a certain kind
22450  of material.
22451  As bundled, \SpecialChar LyX
22452  comes with predefined templates for Xfig figures, various
22453  raster format images, chess diagrams, and LilyPond music notation.
22454  You can check the actual list by using the menu 
22455 \begin_inset Flex MenuItem
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 Insert\SpecialChar menuseparator
22460 File\SpecialChar menuseparator
22461 External Material
22462 \end_layout
22463
22464 \end_inset
22465
22466 .
22467  Furthermore, it is possible to roll your own template to support a specific
22468  kind of material.
22469  Later we'll describe in more detail what is involved, and hopefully you
22470  will submit all the templates you create so we can include them in a later
22471  \SpecialChar LyX
22472  version.
22473 \end_layout
22474
22475 \begin_layout Standard
22476 Another basic idea of the external material feature is to distinguish between
22477  the original file that serves as a base for final material and the produced
22478  file that is included in your exported or printed document.
22479  For example, consider the case of a figure produced with 
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 Xfig
22485 \end_layout
22486
22487 \end_inset
22488
22489 .
22490  The Xfig application itself works on an original file with the 
22491 \begin_inset Flex Code
22492 status collapsed
22493
22494 \begin_layout Plain Layout
22495 .fig
22496 \end_layout
22497
22498 \end_inset
22499
22500  extension.
22501  Within Xfig, you create and change your figure, and when you are done,
22502  you save the 
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 fig
22508 \end_layout
22509
22510 \end_inset
22511
22512 -file.
22513  When you want to include the figure in your document, you invoke 
22514 \begin_inset Flex Code
22515 status collapsed
22516
22517 \begin_layout Plain Layout
22518 transfig
22519 \end_layout
22520
22521 \end_inset
22522
22523  in order to create a PostScript file that can readily be included in your
22524  \SpecialChar LaTeX
22525  file.
22526  In this case, the 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 .fig
22532 \end_layout
22533
22534 \end_inset
22535
22536  file is the original file, and the PostScript file is the produced file.
22537 \end_layout
22538
22539 \begin_layout Standard
22540 This distinction is important in order to allow updating of the material
22541  while you are in the process of writing the document.
22542  Furthermore, it provides us with the flexibility that is needed to support
22543  multiple export formats.
22544  For instance, in the case of a plain text file, it is not exactly an award-winn
22545 ing idea to include the figure as raw PostScript.
22546  Instead, you would either prefer to just include a reference to the figure
22547  or try to invoke some graphics to ASCII converter to make the final result
22548  look similar to the real graphics.
22549  The external material management allows you to do this, because it is parametri
22550 zed on the different export formats that \SpecialChar LyX
22551  supports.
22552 \end_layout
22553
22554 \begin_layout Standard
22555 Besides supporting the production of different products according to the
22556  exported format, it supports tight integration with editing and viewing
22557  applications.
22558  In the case of an Xfig figure, you are able to invoke Xfig on the original
22559  file with a single click from within the external material dialog in \SpecialChar LyX
22560 ,
22561  and also preview the produced PostScript file with Ghostview with another
22562  click.
22563  No more fiddling around with the command line and/or file browsers to locate
22564  and manipulate the original or produced files.
22565  In this way, you are finally able to take full advantage of the many different
22566  applications that are relevant to use when you write your documents, and
22567  ultimately be more productive.
22568 \end_layout
22569
22570 \begin_layout Section
22571 The external template configuration file
22572 \end_layout
22573
22574 \begin_layout Standard
22575 It is relatively easy to add custom external template definitions to \SpecialChar LyX
22576 .
22577  However, be aware that doing this in an careless manner most probably 
22578 \emph on
22579 will
22580 \emph default
22581  introduce an easily exploitable security hole.
22582  So before you do this, please read the discussion about security in 
22583 \begin_inset CommandInset ref
22584 LatexCommand ref
22585 reference "sec:Security-discussion"
22586
22587 \end_inset
22588
22589 .
22590 \end_layout
22591
22592 \begin_layout Standard
22593 Having said that, we encourage you to submit any interesting templates that
22594  you create.
22595  
22596 \end_layout
22597
22598 \begin_layout Standard
22599 The external templates are defined in the 
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604 \SpecialChar LyX
22605 Dir/lib/external_templates
22606 \end_layout
22607
22608 \end_inset
22609
22610  file.
22611  You can place your own version in 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 UserDir/external_templates
22617 \end_layout
22618
22619 \end_inset
22620
22621 .
22622 \end_layout
22623
22624 \begin_layout Standard
22625 A typical template looks like this:
22626 \end_layout
22627
22628 \begin_layout LyX-Code
22629 Template XFig
22630 \end_layout
22631
22632 \begin_layout LyX-Code
22633 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22634 \end_layout
22635
22636 \begin_layout LyX-Code
22637 HelpText
22638 \end_layout
22639
22640 \begin_layout LyX-Code
22641 An XFig figure.
22642 \end_layout
22643
22644 \begin_layout LyX-Code
22645 HelpTextEnd
22646 \end_layout
22647
22648 \begin_layout LyX-Code
22649 InputFormat fig
22650 \end_layout
22651
22652 \begin_layout LyX-Code
22653 FileFilter "*.fig"
22654 \end_layout
22655
22656 \begin_layout LyX-Code
22657 AutomaticProduction true
22658 \end_layout
22659
22660 \begin_layout LyX-Code
22661 Transform Rotate
22662 \end_layout
22663
22664 \begin_layout LyX-Code
22665 Transform Resize
22666 \end_layout
22667
22668 \begin_layout LyX-Code
22669 Format \SpecialChar LaTeX
22670
22671 \end_layout
22672
22673 \begin_layout LyX-Code
22674 TransformCommand Rotate RotationLatexCommand
22675 \end_layout
22676
22677 \begin_layout LyX-Code
22678 TransformCommand Resize ResizeLatexCommand
22679 \end_layout
22680
22681 \begin_layout LyX-Code
22682 Product "$$RotateFront$$ResizeFront
22683 \end_layout
22684
22685 \begin_layout LyX-Code
22686          
22687 \backslash
22688
22689 \backslash
22690 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22691 \end_layout
22692
22693 \begin_layout LyX-Code
22694          $$ResizeBack$$RotateBack"
22695 \end_layout
22696
22697 \begin_layout LyX-Code
22698 UpdateFormat pstex
22699 \end_layout
22700
22701 \begin_layout LyX-Code
22702 UpdateResult "$$AbsPath$$Basename.pstex_t"
22703 \end_layout
22704
22705 \begin_layout LyX-Code
22706 Requirement "graphicx"
22707 \end_layout
22708
22709 \begin_layout LyX-Code
22710 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
22711 \end_layout
22712
22713 \begin_layout LyX-Code
22714 ReferencedFile latex "$$AbsPath$$Basename.eps"
22715 \end_layout
22716
22717 \begin_layout LyX-Code
22718 ReferencedFile dvi "$$AbsPath$$Basename.eps"
22719 \end_layout
22720
22721 \begin_layout LyX-Code
22722 FormatEnd
22723 \end_layout
22724
22725 \begin_layout LyX-Code
22726 Format PDF\SpecialChar LaTeX
22727
22728 \end_layout
22729
22730 \begin_layout LyX-Code
22731 TransformCommand Rotate RotationLatexCommand
22732 \end_layout
22733
22734 \begin_layout LyX-Code
22735 TransformCommand Resize ResizeLatexCommand
22736 \end_layout
22737
22738 \begin_layout LyX-Code
22739 Product "$$RotateFront$$ResizeFront
22740 \end_layout
22741
22742 \begin_layout LyX-Code
22743          
22744 \backslash
22745
22746 \backslash
22747 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
22748 \end_layout
22749
22750 \begin_layout LyX-Code
22751          $$ResizeBack$$RotateBack"
22752 \end_layout
22753
22754 \begin_layout LyX-Code
22755 UpdateFormat pdftex
22756 \end_layout
22757
22758 \begin_layout LyX-Code
22759 UpdateResult "$$AbsPath$$Basename.pdftex_t"
22760 \end_layout
22761
22762 \begin_layout LyX-Code
22763 Requirement "graphicx"
22764 \end_layout
22765
22766 \begin_layout LyX-Code
22767 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
22768 \end_layout
22769
22770 \begin_layout LyX-Code
22771 ReferencedFile latex "$$AbsPath$$Basename.pdf"
22772 \end_layout
22773
22774 \begin_layout LyX-Code
22775 FormatEnd
22776 \end_layout
22777
22778 \begin_layout LyX-Code
22779 Format Ascii
22780 \end_layout
22781
22782 \begin_layout LyX-Code
22783 Product "$$Contents(
22784 \backslash
22785 "$$AbsPath$$Basename.asc
22786 \backslash
22787 ")"
22788 \end_layout
22789
22790 \begin_layout LyX-Code
22791 UpdateFormat asciixfig
22792 \end_layout
22793
22794 \begin_layout LyX-Code
22795 UpdateResult "$$AbsPath$$Basename.asc"
22796 \end_layout
22797
22798 \begin_layout LyX-Code
22799 FormatEnd
22800 \end_layout
22801
22802 \begin_layout LyX-Code
22803 Format DocBook
22804 \end_layout
22805
22806 \begin_layout LyX-Code
22807 Product "<graphic fileref=
22808 \backslash
22809 "$$AbsOrRelPathMaster$$Basename.eps
22810 \backslash
22811 ">
22812 \end_layout
22813
22814 \begin_layout LyX-Code
22815          </graphic>"
22816 \end_layout
22817
22818 \begin_layout LyX-Code
22819 UpdateFormat eps
22820 \end_layout
22821
22822 \begin_layout LyX-Code
22823 UpdateResult "$$AbsPath$$Basename.eps"
22824 \end_layout
22825
22826 \begin_layout LyX-Code
22827 ReferencedFile docbook "$$AbsPath$$Basename.eps"
22828 \end_layout
22829
22830 \begin_layout LyX-Code
22831 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
22832 \end_layout
22833
22834 \begin_layout LyX-Code
22835 FormatEnd
22836 \end_layout
22837
22838 \begin_layout LyX-Code
22839 Product "[XFig: $$FName]"
22840 \end_layout
22841
22842 \begin_layout LyX-Code
22843 FormatEnd
22844 \end_layout
22845
22846 \begin_layout LyX-Code
22847 TemplateEnd
22848 \end_layout
22849
22850 \begin_layout Standard
22851 As you can see, the template is enclosed in 
22852 \begin_inset Flex Code
22853 status collapsed
22854
22855 \begin_layout Plain Layout
22856 Template
22857 \end_layout
22858
22859 \end_inset
22860
22861  \SpecialChar ldots
22862  
22863 \begin_inset Flex Code
22864 status collapsed
22865
22866 \begin_layout Plain Layout
22867 TemplateEnd
22868 \end_layout
22869
22870 \end_inset
22871
22872 .
22873  It contains a header specifying some general settings and, for each supported
22874  primary document file format, a section 
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 Format
22880 \end_layout
22881
22882 \end_inset
22883
22884  \SpecialChar ldots
22885  
22886 \begin_inset Flex Code
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890 FormatEnd
22891 \end_layout
22892
22893 \end_inset
22894
22895 .
22896 \end_layout
22897
22898 \begin_layout Subsection
22899 The template header
22900 \end_layout
22901
22902 \begin_layout Description
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 AutomaticProduction
22908 \begin_inset space ~
22909 \end_inset
22910
22911 true|false
22912 \end_layout
22913
22914 \end_inset
22915
22916  Whether the file represented by the template must be generated by \SpecialChar LyX
22917 .
22918  This command must occur exactly once.
22919 \end_layout
22920
22921 \begin_layout Description
22922 \begin_inset Flex Code
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926 FileFilter
22927 \begin_inset space ~
22928 \end_inset
22929
22930 <pattern>
22931 \end_layout
22932
22933 \end_inset
22934
22935  A glob pattern that is used in the file dialog to filter out the desired
22936  files.
22937  If there is more than one possible file extension (e.
22938 \begin_inset space \thinspace{}
22939 \end_inset
22940
22941 g.
22942 \begin_inset space \space{}
22943 \end_inset
22944
22945 tgif has 
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 .obj
22951 \end_layout
22952
22953 \end_inset
22954
22955  and 
22956 \begin_inset Flex Code
22957 status collapsed
22958
22959 \begin_layout Plain Layout
22960 .tgo
22961 \end_layout
22962
22963 \end_inset
22964
22965 ), use something like 
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 "*.{obj,tgo}"
22971 \end_layout
22972
22973 \end_inset
22974
22975 .
22976  This command must occur exactly once.
22977 \end_layout
22978
22979 \begin_layout Description
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 GuiName
22985 \begin_inset space ~
22986 \end_inset
22987
22988 <guiname>
22989 \end_layout
22990
22991 \end_inset
22992
22993  The text that is displayed on the button.
22994  This command must occur exactly once.
22995 \end_layout
22996
22997 \begin_layout Description
22998 \begin_inset Flex Code
22999 status collapsed
23000
23001 \begin_layout Plain Layout
23002 HelpText
23003 \begin_inset space ~
23004 \end_inset
23005
23006 <text>
23007 \begin_inset space ~
23008 \end_inset
23009
23010 HelpTextEnd
23011 \end_layout
23012
23013 \end_inset
23014
23015  The help text that is used in the External dialog.
23016  Provide enough information to explain to the user just what the template
23017  can provide him with.
23018  This command must occur exactly once.
23019 \end_layout
23020
23021 \begin_layout Description
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 InputFormat
23027 \begin_inset space ~
23028 \end_inset
23029
23030 <format>
23031 \end_layout
23032
23033 \end_inset
23034
23035  The file format of the original file.
23036  This must be the name of a format that is known to \SpecialChar LyX
23037  (see 
23038 \begin_inset CommandInset ref
23039 LatexCommand ref
23040 reference "sec:Formats"
23041
23042 \end_inset
23043
23044 ).
23045  Use 
23046 \begin_inset Quotes eld
23047 \end_inset
23048
23049
23050 \begin_inset Flex Code
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054 *
23055 \end_layout
23056
23057 \end_inset
23058
23059
23060 \begin_inset Quotes erd
23061 \end_inset
23062
23063  if the template can handle original files of more than one format.
23064  \SpecialChar LyX
23065  will attempt to interrogate the file itself in order to deduce its format
23066  in this case.
23067  This command must occur exactly once.
23068 \end_layout
23069
23070 \begin_layout Description
23071 \begin_inset Flex Code
23072 status collapsed
23073
23074 \begin_layout Plain Layout
23075 Template
23076 \begin_inset space ~
23077 \end_inset
23078
23079 <id>
23080 \end_layout
23081
23082 \end_inset
23083
23084  A unique name for the template.
23085  It must not contain substitution macros (see below).
23086 \end_layout
23087
23088 \begin_layout Description
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 Transform
23094 \begin_inset space ~
23095 \end_inset
23096
23097 Rotate|Resize|Clip|Extra
23098 \end_layout
23099
23100 \end_inset
23101
23102  This command specifies which transformations are supported by this template.
23103  It may occur zero or more times.
23104  This command enables the corresponding tabs in the external dialog.
23105  Each 
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 Transform
23111 \end_layout
23112
23113 \end_inset
23114
23115  command must have either a corresponding 
23116 \begin_inset Flex Code
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120 TransformCommand
23121 \end_layout
23122
23123 \end_inset
23124
23125  or a 
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 TransformOption
23131 \end_layout
23132
23133 \end_inset
23134
23135  command in the 
23136 \begin_inset Flex Code
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 Format
23141 \end_layout
23142
23143 \end_inset
23144
23145  section.
23146  Otherwise the transformation will not be supported by that format.
23147 \end_layout
23148
23149 \begin_layout Subsection
23150 The Format section
23151 \end_layout
23152
23153 \begin_layout Description
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 Format
23159 \begin_inset space ~
23160 \end_inset
23161
23162 \SpecialChar LaTeX
23163 |PDF\SpecialChar LaTeX
23164 |PlainText|DocBook
23165 \end_layout
23166
23167 \end_inset
23168
23169  The primary document file format that this format definition is for.
23170  Not every template has a sensible representation in all document file formats.
23171  Please define nevertheless a 
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176 Format
23177 \end_layout
23178
23179 \end_inset
23180
23181  section for all templates.
23182  Use a dummy text when no representation is available.
23183  Then you can at least see a reference to the external material in the exported
23184  document.
23185 \end_layout
23186
23187 \begin_layout Description
23188 \begin_inset Flex Code
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192 Option
23193 \begin_inset space ~
23194 \end_inset
23195
23196 <name>
23197 \begin_inset space ~
23198 \end_inset
23199
23200 <value>
23201 \end_layout
23202
23203 \end_inset
23204
23205  This command defines an additional macro 
23206 \begin_inset Flex Code
23207 status collapsed
23208
23209 \begin_layout Plain Layout
23210 $$<name>
23211 \end_layout
23212
23213 \end_inset
23214
23215  for substitution in 
23216 \begin_inset Flex Code
23217 status collapsed
23218
23219 \begin_layout Plain Layout
23220 Product
23221 \end_layout
23222
23223 \end_inset
23224
23225 .
23226  
23227 \begin_inset Flex Code
23228 status collapsed
23229
23230 \begin_layout Plain Layout
23231 <value>
23232 \end_layout
23233
23234 \end_inset
23235
23236  itself may contain substitution macros.
23237  The advantage over using 
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 <value>
23243 \end_layout
23244
23245 \end_inset
23246
23247  directly in 
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252 Product
23253 \end_layout
23254
23255 \end_inset
23256
23257  is that the substituted value of 
23258 \begin_inset Flex Code
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262 $$<name>
23263 \end_layout
23264
23265 \end_inset
23266
23267  is sanitized so that it is a valid optional argument in the document format.
23268  This command may occur zero or more times.
23269 \end_layout
23270
23271 \begin_layout Description
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 Product
23277 \begin_inset space ~
23278 \end_inset
23279
23280 <text>
23281 \end_layout
23282
23283 \end_inset
23284
23285  The text that is inserted in the exported document.
23286  This is actually the most important command and can be quite complex.
23287  This command must occur exactly once.
23288 \end_layout
23289
23290 \begin_layout Description
23291 \begin_inset Flex Code
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295 Preamble
23296 \begin_inset space ~
23297 \end_inset
23298
23299 <name>
23300 \end_layout
23301
23302 \end_inset
23303
23304  This command specifies a preamble snippet that will be included in the
23305  \SpecialChar LaTeX
23306  preamble.
23307  It has to be defined using 
23308 \begin_inset Flex Code
23309 status collapsed
23310
23311 \begin_layout Plain Layout
23312 PreambleDef
23313 \end_layout
23314
23315 \end_inset
23316
23317  \SpecialChar ldots
23318  
23319 \begin_inset Flex Code
23320 status collapsed
23321
23322 \begin_layout Plain Layout
23323 PreambleDefEnd
23324 \end_layout
23325
23326 \end_inset
23327
23328 .
23329  This command may occur zero or more times.
23330 \end_layout
23331
23332 \begin_layout Description
23333 \begin_inset Flex Code
23334 status collapsed
23335
23336 \begin_layout Plain Layout
23337 ReferencedFile
23338 \begin_inset space ~
23339 \end_inset
23340
23341 <format>
23342 \begin_inset space ~
23343 \end_inset
23344
23345 <filename>
23346 \end_layout
23347
23348 \end_inset
23349
23350  This command denotes files that are created by the conversion process and
23351  are needed for a particular export format.
23352  If the filename is relative, it is interpreted relative to the master document.
23353  This command may be given zero or more times.
23354 \end_layout
23355
23356 \begin_layout Description
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 Requirement
23362 \begin_inset space ~
23363 \end_inset
23364
23365 <package>
23366 \end_layout
23367
23368 \end_inset
23369
23370  The name of a required \SpecialChar LaTeX
23371  package.
23372  The package is included via 
23373 \begin_inset Flex Code
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377
23378 \backslash
23379 usepackage{}
23380 \end_layout
23381
23382 \end_inset
23383
23384  in the \SpecialChar LaTeX
23385  preamble.
23386  This command may occur zero or more times.
23387 \end_layout
23388
23389 \begin_layout Description
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 TransformCommand
23395 \begin_inset space ~
23396 \end_inset
23397
23398 Rotate
23399 \begin_inset space ~
23400 \end_inset
23401
23402 RotationLatexCommand
23403 \end_layout
23404
23405 \end_inset
23406
23407  This command specifies that the built in \SpecialChar LaTeX
23408  command should be used for rotation.
23409  This command may occur once or not at all.
23410 \end_layout
23411
23412 \begin_layout Description
23413 \begin_inset Flex Code
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417 TransformCommand
23418 \begin_inset space ~
23419 \end_inset
23420
23421 Resize
23422 \begin_inset space ~
23423 \end_inset
23424
23425 ResizeLatexCommand
23426 \end_layout
23427
23428 \end_inset
23429
23430  This command specifies that the built in \SpecialChar LaTeX
23431  command should be used for resizing.
23432  This command may occur once or not at all.
23433 \end_layout
23434
23435 \begin_layout Description
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 TransformOption
23441 \begin_inset space ~
23442 \end_inset
23443
23444 Rotate
23445 \begin_inset space ~
23446 \end_inset
23447
23448 RotationLatexOption
23449 \end_layout
23450
23451 \end_inset
23452
23453  This command specifies that rotation is done via an optional argument.
23454  This command may occur once or not at all.
23455 \end_layout
23456
23457 \begin_layout Description
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 TransformOption
23463 \begin_inset space ~
23464 \end_inset
23465
23466 Resize
23467 \begin_inset space ~
23468 \end_inset
23469
23470 ResizeLatexOption
23471 \end_layout
23472
23473 \end_inset
23474
23475  This command specifies that resizing is done via an optional argument.
23476  This command may occur once or not at all.
23477 \end_layout
23478
23479 \begin_layout Description
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484 TransformOption
23485 \begin_inset space ~
23486 \end_inset
23487
23488 Clip
23489 \begin_inset space ~
23490 \end_inset
23491
23492 ClipLatexOption
23493 \end_layout
23494
23495 \end_inset
23496
23497  This command specifies that clipping is done via an optional argument.
23498  This command may occur once or not at all.
23499 \end_layout
23500
23501 \begin_layout Description
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 TransformOption
23507 \begin_inset space ~
23508 \end_inset
23509
23510 Extra
23511 \begin_inset space ~
23512 \end_inset
23513
23514 ExtraLatexOption
23515 \end_layout
23516
23517 \end_inset
23518
23519  This command specifies that an extra optional argument is used.
23520  This command may occur once or not at all.
23521 \end_layout
23522
23523 \begin_layout Description
23524 \begin_inset Flex Code
23525 status collapsed
23526
23527 \begin_layout Plain Layout
23528 UpdateFormat
23529 \begin_inset space ~
23530 \end_inset
23531
23532 <format>
23533 \end_layout
23534
23535 \end_inset
23536
23537  The file format of the converted file.
23538  This must be the name of a format that is known to \SpecialChar LyX
23539  (see the 
23540 \begin_inset Flex MenuItem
23541 status collapsed
23542
23543 \begin_layout Plain Layout
23544 Tools\SpecialChar menuseparator
23545 Preferences\SpecialChar menuseparator
23546 File Handling\SpecialChar menuseparator
23547 File Format
23548 \end_layout
23549
23550 \end_inset
23551
23552  dialog).
23553  This command must occur exactly once.
23554  If the resulting file format is PDF, you need to specify the format 
23555 \begin_inset Flex Code
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 pdf6
23560 \end_layout
23561
23562 \end_inset
23563
23564 .
23565  This is the PDF format used for including graphics.
23566  The other defined PDF formats are for document export.
23567 \end_layout
23568
23569 \begin_layout Description
23570 \begin_inset Flex Code
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574 UpdateResult
23575 \begin_inset space ~
23576 \end_inset
23577
23578 <filename>
23579 \end_layout
23580
23581 \end_inset
23582
23583  The file name of the converted file.
23584  The file name must be absolute.
23585  This command must occur exactly once.
23586 \end_layout
23587
23588 \begin_layout Subsection
23589 Preamble definitions
23590 \end_layout
23591
23592 \begin_layout Standard
23593 The external template configuration file may contain additional preamble
23594  definitions enclosed by 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 PreambleDef
23600 \end_layout
23601
23602 \end_inset
23603
23604  \SpecialChar ldots
23605  
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 PreambleDefEnd
23611 \end_layout
23612
23613 \end_inset
23614
23615 .
23616  They can be used by the templates in the 
23617 \begin_inset Flex Code
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621 Format
23622 \end_layout
23623
23624 \end_inset
23625
23626  section.
23627 \end_layout
23628
23629 \begin_layout Section
23630 The substitution mechanism
23631 \end_layout
23632
23633 \begin_layout Standard
23634 When the external material facility invokes an external program, it is done
23635  on the basis of a command defined in the template configuration file.
23636  These commands can contain various macros that are expanded before execution.
23637  Execution always take place in the directory of the containing document.
23638 \end_layout
23639
23640 \begin_layout Standard
23641 Also, whenever external material is to be displayed, the name will be produced
23642  by the substitution mechanism, and most other commands in the template
23643  definition support substitution as well.
23644 \end_layout
23645
23646 \begin_layout Standard
23647 The available macros are the following:
23648 \end_layout
23649
23650 \begin_layout Description
23651 \begin_inset Flex Code
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655 $$AbsOrRelPathMaster
23656 \end_layout
23657
23658 \end_inset
23659
23660  The file path, absolute or relative to the master \SpecialChar LyX
23661  document.
23662 \end_layout
23663
23664 \begin_layout Description
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669 $$AbsOrRelPathParent
23670 \end_layout
23671
23672 \end_inset
23673
23674  The file path, absolute or relative to the \SpecialChar LyX
23675  document.
23676 \end_layout
23677
23678 \begin_layout Description
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683 $$AbsPath
23684 \end_layout
23685
23686 \end_inset
23687
23688  The absolute file path.
23689 \end_layout
23690
23691 \begin_layout Description
23692 \begin_inset Flex Code
23693 status collapsed
23694
23695 \begin_layout Plain Layout
23696 $$Basename
23697 \end_layout
23698
23699 \end_inset
23700
23701  The filename without path and without the extension.
23702 \end_layout
23703
23704 \begin_layout Description
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 $$Contents(
23710 \begin_inset Quotes eld
23711 \end_inset
23712
23713 filename.ext
23714 \begin_inset Quotes erd
23715 \end_inset
23716
23717 )
23718 \end_layout
23719
23720 \end_inset
23721
23722  This macro will expand to the contents of the file with the name 
23723 \begin_inset Flex Code
23724 status collapsed
23725
23726 \begin_layout Plain Layout
23727 filename.ext
23728 \end_layout
23729
23730 \end_inset
23731
23732 .
23733 \end_layout
23734
23735 \begin_layout Description
23736 \begin_inset Flex Code
23737 status collapsed
23738
23739 \begin_layout Plain Layout
23740 $$Extension
23741 \end_layout
23742
23743 \end_inset
23744
23745  The file extension (including the dot).
23746 \end_layout
23747
23748 \begin_layout Description
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753 $$FName
23754 \end_layout
23755
23756 \end_inset
23757
23758  The filename of the file specified in the external material dialog.
23759  This is either an absolute name, or it is relative to the \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 $$FPath
23769 \end_layout
23770
23771 \end_inset
23772
23773  The path part of 
23774 \begin_inset Flex Code
23775 status collapsed
23776
23777 \begin_layout Plain Layout
23778 $$FName
23779 \end_layout
23780
23781 \end_inset
23782
23783  (absolute name or relative to the \SpecialChar LyX
23784  document).
23785 \end_layout
23786
23787 \begin_layout Description
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792 $$RelPathMaster
23793 \end_layout
23794
23795 \end_inset
23796
23797  The file path, relative to the master \SpecialChar LyX
23798  document.
23799 \end_layout
23800
23801 \begin_layout Description
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 $$RelPathParent
23807 \end_layout
23808
23809 \end_inset
23810
23811  The file path, relative to the \SpecialChar LyX
23812  document.
23813 \end_layout
23814
23815 \begin_layout Description
23816 \begin_inset Flex Code
23817 status collapsed
23818
23819 \begin_layout Plain Layout
23820 $$Sysdir
23821 \end_layout
23822
23823 \end_inset
23824
23825  This macro will expand to the absolute path of the system directory.
23826  This is typically used to point to the various helper scripts that are
23827  bundled with \SpecialChar LyX
23828 .
23829 \end_layout
23830
23831 \begin_layout Description
23832 \begin_inset Flex Code
23833 status collapsed
23834
23835 \begin_layout Plain Layout
23836 $$Tempname
23837 \end_layout
23838
23839 \end_inset
23840
23841  A name and full path to a temporary file which will be automatically deleted
23842  whenever the containing document is closed, or the external material insertion
23843  deleted.
23844 \end_layout
23845
23846 \begin_layout Standard
23847 All path macros contain a trailing directory separator, so you can construct
23848  e.
23849 \begin_inset space \thinspace{}
23850 \end_inset
23851
23852 g.
23853 \begin_inset space \space{}
23854 \end_inset
23855
23856 the absolute filename with 
23857 \begin_inset Flex Code
23858 status collapsed
23859
23860 \begin_layout Plain Layout
23861 $$AbsPath$$Basename$$Extension
23862 \end_layout
23863
23864 \end_inset
23865
23866 .
23867 \end_layout
23868
23869 \begin_layout Standard
23870 The macros above are substituted in all commands unless otherwise noted.
23871  The command 
23872 \begin_inset Flex Code
23873 status collapsed
23874
23875 \begin_layout Plain Layout
23876 Product
23877 \end_layout
23878
23879 \end_inset
23880
23881  supports additionally the following substitutions if they are enabled by
23882  the 
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 Transform
23888 \end_layout
23889
23890 \end_inset
23891
23892  and 
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897 TransformCommand
23898 \end_layout
23899
23900 \end_inset
23901
23902  commands:
23903 \end_layout
23904
23905 \begin_layout Description
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910 $$ResizeFront
23911 \end_layout
23912
23913 \end_inset
23914
23915  The front part of the resize command.
23916 \end_layout
23917
23918 \begin_layout Description
23919 \begin_inset Flex Code
23920 status collapsed
23921
23922 \begin_layout Plain Layout
23923 $$ResizeBack
23924 \end_layout
23925
23926 \end_inset
23927
23928  The back part of the resize command.
23929 \end_layout
23930
23931 \begin_layout Description
23932 \begin_inset Flex Code
23933 status collapsed
23934
23935 \begin_layout Plain Layout
23936 $$RotateFront
23937 \end_layout
23938
23939 \end_inset
23940
23941  The front part of the rotation command.
23942 \end_layout
23943
23944 \begin_layout Description
23945 \begin_inset Flex Code
23946 status collapsed
23947
23948 \begin_layout Plain Layout
23949 $$RotateBack
23950 \end_layout
23951
23952 \end_inset
23953
23954  The back part of the rotation command.
23955 \end_layout
23956
23957 \begin_layout Standard
23958 The value string of the 
23959 \begin_inset Flex Code
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963 Option
23964 \end_layout
23965
23966 \end_inset
23967
23968  command supports additionally the following substitutions if they are enabled
23969  by the 
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 Transform
23975 \end_layout
23976
23977 \end_inset
23978
23979  and 
23980 \begin_inset Flex Code
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984 TransformOption
23985 \end_layout
23986
23987 \end_inset
23988
23989  commands:
23990 \end_layout
23991
23992 \begin_layout Description
23993 \begin_inset Flex Code
23994 status collapsed
23995
23996 \begin_layout Plain Layout
23997 $$Clip
23998 \end_layout
23999
24000 \end_inset
24001
24002  The clip option.
24003 \end_layout
24004
24005 \begin_layout Description
24006 \begin_inset Flex Code
24007 status collapsed
24008
24009 \begin_layout Plain Layout
24010 $$Extra
24011 \end_layout
24012
24013 \end_inset
24014
24015  The extra option.
24016 \end_layout
24017
24018 \begin_layout Description
24019 \begin_inset Flex Code
24020 status collapsed
24021
24022 \begin_layout Plain Layout
24023 $$Resize
24024 \end_layout
24025
24026 \end_inset
24027
24028  The resize option.
24029 \end_layout
24030
24031 \begin_layout Description
24032 \begin_inset Flex Code
24033 status collapsed
24034
24035 \begin_layout Plain Layout
24036 $$Rotate
24037 \end_layout
24038
24039 \end_inset
24040
24041  The rotation option.
24042 \end_layout
24043
24044 \begin_layout Standard
24045 You may ask why there are so many path macros.
24046  There are mainly two reasons:
24047 \end_layout
24048
24049 \begin_layout Enumerate
24050 Relative and absolute file names should remain relative or absolute, respectivel
24051 y.
24052  Users may have reasons to prefer either form.
24053  Relative names are useful for portable documents that should work on different
24054  machines, for example.
24055  Absolute names may be required by some programs.
24056 \end_layout
24057
24058 \begin_layout Enumerate
24059 \SpecialChar LaTeX
24060  treats relative file names differently than \SpecialChar LyX
24061  and other programs in nested
24062  included files.
24063  For \SpecialChar LyX
24064 , a relative file name is always relative to the document that contains
24065  the file name.
24066  For \SpecialChar LaTeX
24067 , it is always relative to the master document.
24068  These two definitions are identical if you have only one document, but
24069  differ if you have a master document that includes part documents.
24070  That means that relative filenames must be transformed when presented to
24071  \SpecialChar LaTeX
24072 .
24073  Fortunately \SpecialChar LyX
24074  does this automatically for you if you choose the right macros.
24075 \end_layout
24076
24077 \begin_layout Standard
24078 So which path macro should be used in new template definitions? The rule
24079  is not difficult:
24080 \end_layout
24081
24082 \begin_layout Itemize
24083 Use 
24084 \begin_inset Flex Code
24085 status collapsed
24086
24087 \begin_layout Plain Layout
24088 $$AbsPath
24089 \end_layout
24090
24091 \end_inset
24092
24093  if an absolute path is required.
24094 \end_layout
24095
24096 \begin_layout Itemize
24097 Use 
24098 \begin_inset Flex Code
24099 status collapsed
24100
24101 \begin_layout Plain Layout
24102 $$AbsOrRelPathMaster
24103 \end_layout
24104
24105 \end_inset
24106
24107  if the substituted string is some kind of \SpecialChar LaTeX
24108  input.
24109 \end_layout
24110
24111 \begin_layout Itemize
24112 Else use 
24113 \begin_inset Flex Code
24114 status collapsed
24115
24116 \begin_layout Plain Layout
24117 $$AbsOrRelPathParent
24118 \end_layout
24119
24120 \end_inset
24121
24122  in order to preserve the user's choice.
24123 \end_layout
24124
24125 \begin_layout Standard
24126 There are special cases where this rule does not work and e.
24127 \begin_inset space \thinspace{}
24128 \end_inset
24129
24130 g.
24131 \begin_inset space \space{}
24132 \end_inset
24133
24134 relative names are needed, but normally it will work just fine.
24135  One example for such a case is the command 
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24141 \end_layout
24142
24143 \end_inset
24144
24145  in the XFig template above: We can't use the absolute name because the
24146  copier for 
24147 \begin_inset Flex Code
24148 status collapsed
24149
24150 \begin_layout Plain Layout
24151 .pstex_t
24152 \end_layout
24153
24154 \end_inset
24155
24156  files needs the relative name in order to rewrite the file content.
24157 \end_layout
24158
24159 \begin_layout Section
24160 Security discussion
24161 \begin_inset CommandInset label
24162 LatexCommand label
24163 name "sec:Security-discussion"
24164
24165 \end_inset
24166
24167
24168 \end_layout
24169
24170 \begin_layout Standard
24171 The external material feature interfaces with a lot of external programs
24172  and does so automatically, so we have to consider the security implications
24173  of this.
24174  In particular, since you have the option of including your own filenames
24175  and/or parameter strings and those are expanded into a command, it seems
24176  that it would be possible to create a malicious document which executes
24177  arbitrary commands when a user views or prints the document.
24178  This is something we definitely want to avoid.
24179 \end_layout
24180
24181 \begin_layout Standard
24182 However, since the external program commands are specified in the template
24183  configuration file only, there are no security issues if \SpecialChar LyX
24184  is properly configure
24185 d with safe templates only.
24186  This is so because the external programs are invoked with the 
24187 \begin_inset Flex Code
24188 status collapsed
24189
24190 \begin_layout Plain Layout
24191 execvp
24192 \end_layout
24193
24194 \end_inset
24195
24196 -system call rather than the 
24197 \begin_inset Flex Code
24198 status collapsed
24199
24200 \begin_layout Plain Layout
24201 system
24202 \end_layout
24203
24204 \end_inset
24205
24206  system-call, so it's not possible to execute arbitrary commands from the
24207  filename or parameter section via the shell.
24208 \end_layout
24209
24210 \begin_layout Standard
24211 This also implies that you are restricted in what command strings you can
24212  use in the external material templates.
24213  In particular, pipes and redirection are not readily available.
24214  This has to be so if \SpecialChar LyX
24215  should remain safe.
24216  If you want to use some of the shell features, you should write a safe
24217  script to do this in a controlled manner, and then invoke the script from
24218  the command string.
24219  
24220 \end_layout
24221
24222 \begin_layout Standard
24223 It is possible to design a template that interacts directly with the shell,
24224  but since this would allow a malicious user to execute arbitrary commands
24225  by writing clever filenames and/or parameters, we generally recommend that
24226  you only use safe scripts that work with the 
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 execvp
24232 \end_layout
24233
24234 \end_inset
24235
24236  system call in a controlled manner.
24237  Of course, for use in a controlled environment, it can be tempting to just
24238  fall back to use ordinary shell scripts.
24239  If you do so, be aware that you 
24240 \emph on
24241 will
24242 \emph default
24243  provide an easily exploitable security hole in your system.
24244  Of course it stands to reason that such unsafe templates will never be
24245  included in the standard \SpecialChar LyX
24246  distribution, although we do encourage people
24247  to submit new templates in the open source tradition.
24248  But \SpecialChar LyX
24249  as shipped from the official distribution channels will never have
24250  unsafe templates.
24251 \end_layout
24252
24253 \begin_layout Standard
24254 Including external material provides a lot of power, and you have to be
24255  careful not to introduce security hazards with this power.
24256  A subtle error in a single line in an innocent looking script can open
24257  the door to huge security problems.
24258  So if you do not fully understand the issues, we recommend that you consult
24259  a knowledgeable security professional or the \SpecialChar LyX
24260  development team if you have
24261  any questions about whether a given template is safe or not.
24262  And do this before you use it in an uncontrolled environment.
24263 \end_layout
24264
24265 \begin_layout Chapter
24266 \start_of_appendix
24267 List of supported \SpecialChar LyX
24268  functions to be used in layouts
24269 \begin_inset CommandInset label
24270 LatexCommand label
24271 name "chap:List-of-functions"
24272
24273 \end_inset
24274
24275
24276 \end_layout
24277
24278 \begin_layout Standard
24279 \align center
24280 \begin_inset Tabular
24281 <lyxtabular version="3" rows="11" columns="8">
24282 <features tabularvalignment="middle">
24283 <column alignment="left" valignment="top">
24284 <column alignment="left" valignment="top">
24285 <column alignment="left" valignment="top">
24286 <column alignment="left" valignment="top">
24287 <column alignment="left" valignment="top">
24288 <column alignment="left" valignment="top">
24289 <column alignment="left" valignment="top">
24290 <column alignment="left" valignment="top">
24291 <row>
24292 <cell alignment="left" valignment="top" usebox="none">
24293 \begin_inset Text
24294
24295 \begin_layout Plain Layout
24296 accents
24297 \end_layout
24298
24299 \end_inset
24300 </cell>
24301 <cell alignment="left" valignment="top" usebox="none">
24302 \begin_inset Text
24303
24304 \begin_layout Plain Layout
24305 booktabs
24306 \end_layout
24307
24308 \end_inset
24309 </cell>
24310 <cell alignment="left" valignment="top" usebox="none">
24311 \begin_inset Text
24312
24313 \begin_layout Plain Layout
24314 feyn
24315 \end_layout
24316
24317 \end_inset
24318 </cell>
24319 <cell alignment="left" valignment="top" usebox="none">
24320 \begin_inset Text
24321
24322 \begin_layout Plain Layout
24323 listings
24324 \end_layout
24325
24326 \end_inset
24327 </cell>
24328 <cell alignment="center" valignment="top" usebox="none">
24329 \begin_inset Text
24330
24331 \begin_layout Plain Layout
24332 natbib
24333 \end_layout
24334
24335 \end_inset
24336 </cell>
24337 <cell alignment="center" valignment="top" usebox="none">
24338 \begin_inset Text
24339
24340 \begin_layout Plain Layout
24341 rotfloat
24342 \end_layout
24343
24344 \end_inset
24345 </cell>
24346 <cell alignment="center" valignment="top" usebox="none">
24347 \begin_inset Text
24348
24349 \begin_layout Plain Layout
24350 tfrupee
24351 \end_layout
24352
24353 \end_inset
24354 </cell>
24355 <cell alignment="center" valignment="top" usebox="none">
24356 \begin_inset Text
24357
24358 \begin_layout Plain Layout
24359 wasysym
24360 \end_layout
24361
24362 \end_inset
24363 </cell>
24364 </row>
24365 <row>
24366 <cell alignment="left" valignment="top" usebox="none">
24367 \begin_inset Text
24368
24369 \begin_layout Plain Layout
24370 amsbsy
24371 \end_layout
24372
24373 \end_inset
24374 </cell>
24375 <cell alignment="left" valignment="top" usebox="none">
24376 \begin_inset Text
24377
24378 \begin_layout Plain Layout
24379 calc
24380 \end_layout
24381
24382 \end_inset
24383 </cell>
24384 <cell alignment="left" valignment="top" usebox="none">
24385 \begin_inset Text
24386
24387 \begin_layout Plain Layout
24388 fixltx2e
24389 \end_layout
24390
24391 \end_inset
24392 </cell>
24393 <cell alignment="left" valignment="top" usebox="none">
24394 \begin_inset Text
24395
24396 \begin_layout Plain Layout
24397 longtable
24398 \end_layout
24399
24400 \end_inset
24401 </cell>
24402 <cell alignment="center" valignment="top" usebox="none">
24403 \begin_inset Text
24404
24405 \begin_layout Plain Layout
24406 nomencl
24407 \end_layout
24408
24409 \end_inset
24410 </cell>
24411 <cell alignment="center" valignment="top" usebox="none">
24412 \begin_inset Text
24413
24414 \begin_layout Plain Layout
24415 rsphrase
24416 \end_layout
24417
24418 \end_inset
24419 </cell>
24420 <cell alignment="center" valignment="top" usebox="none">
24421 \begin_inset Text
24422
24423 \begin_layout Plain Layout
24424 tipa
24425 \end_layout
24426
24427 \end_inset
24428 </cell>
24429 <cell alignment="center" valignment="top" usebox="none">
24430 \begin_inset Text
24431
24432 \begin_layout Plain Layout
24433 wrapfig
24434 \end_layout
24435
24436 \end_inset
24437 </cell>
24438 </row>
24439 <row>
24440 <cell alignment="left" valignment="top" usebox="none">
24441 \begin_inset Text
24442
24443 \begin_layout Plain Layout
24444 amscd
24445 \end_layout
24446
24447 \end_inset
24448 </cell>
24449 <cell alignment="left" valignment="top" usebox="none">
24450 \begin_inset Text
24451
24452 \begin_layout Plain Layout
24453 CJK
24454 \end_layout
24455
24456 \end_inset
24457 </cell>
24458 <cell alignment="left" valignment="top" usebox="none">
24459 \begin_inset Text
24460
24461 \begin_layout Plain Layout
24462 float
24463 \end_layout
24464
24465 \end_inset
24466 </cell>
24467 <cell alignment="left" valignment="top" usebox="none">
24468 \begin_inset Text
24469
24470 \begin_layout Plain Layout
24471 lyxskak
24472 \end_layout
24473
24474 \end_inset
24475 </cell>
24476 <cell alignment="center" valignment="top" usebox="none">
24477 \begin_inset Text
24478
24479 \begin_layout Plain Layout
24480 pdfcolmk
24481 \end_layout
24482
24483 \end_inset
24484 </cell>
24485 <cell alignment="center" valignment="top" usebox="none">
24486 \begin_inset Text
24487
24488 \begin_layout Plain Layout
24489 setspace
24490 \end_layout
24491
24492 \end_inset
24493 </cell>
24494 <cell alignment="center" valignment="top" usebox="none">
24495 \begin_inset Text
24496
24497 \begin_layout Plain Layout
24498 tipx
24499 \end_layout
24500
24501 \end_inset
24502 </cell>
24503 <cell alignment="center" valignment="top" usebox="none">
24504 \begin_inset Text
24505
24506 \begin_layout Plain Layout
24507 xargs
24508 \end_layout
24509
24510 \end_inset
24511 </cell>
24512 </row>
24513 <row>
24514 <cell alignment="left" valignment="top" usebox="none">
24515 \begin_inset Text
24516
24517 \begin_layout Plain Layout
24518 amsmath
24519 \end_layout
24520
24521 \end_inset
24522 </cell>
24523 <cell alignment="left" valignment="top" usebox="none">
24524 \begin_inset Text
24525
24526 \begin_layout Plain Layout
24527 color
24528 \end_layout
24529
24530 \end_inset
24531 </cell>
24532 <cell alignment="left" valignment="top" usebox="none">
24533 \begin_inset Text
24534
24535 \begin_layout Plain Layout
24536 framed
24537 \end_layout
24538
24539 \end_inset
24540 </cell>
24541 <cell alignment="left" valignment="top" usebox="none">
24542 \begin_inset Text
24543
24544 \begin_layout Plain Layout
24545 makeidx
24546 \end_layout
24547
24548 \end_inset
24549 </cell>
24550 <cell alignment="center" valignment="top" usebox="none">
24551 \begin_inset Text
24552
24553 \begin_layout Plain Layout
24554 pdfpages
24555 \end_layout
24556
24557 \end_inset
24558 </cell>
24559 <cell alignment="center" valignment="top" usebox="none">
24560 \begin_inset Text
24561
24562 \begin_layout Plain Layout
24563 shapepar
24564 \end_layout
24565
24566 \end_inset
24567 </cell>
24568 <cell alignment="center" valignment="top" usebox="none">
24569 \begin_inset Text
24570
24571 \begin_layout Plain Layout
24572 tone
24573 \end_layout
24574
24575 \end_inset
24576 </cell>
24577 <cell alignment="center" valignment="top" usebox="none">
24578 \begin_inset Text
24579
24580 \begin_layout Plain Layout
24581 xcolor
24582 \end_layout
24583
24584 \end_inset
24585 </cell>
24586 </row>
24587 <row>
24588 <cell alignment="left" valignment="top" usebox="none">
24589 \begin_inset Text
24590
24591 \begin_layout Plain Layout
24592 amssymb
24593 \end_layout
24594
24595 \end_inset
24596 </cell>
24597 <cell alignment="left" valignment="top" usebox="none">
24598 \begin_inset Text
24599
24600 \begin_layout Plain Layout
24601 covington
24602 \end_layout
24603
24604 \end_inset
24605 </cell>
24606 <cell alignment="left" valignment="top" usebox="none">
24607 \begin_inset Text
24608
24609 \begin_layout Plain Layout
24610 graphicx
24611 \end_layout
24612
24613 \end_inset
24614 </cell>
24615 <cell alignment="left" valignment="top" usebox="none">
24616 \begin_inset Text
24617
24618 \begin_layout Plain Layout
24619 marvosym
24620 \end_layout
24621
24622 \end_inset
24623 </cell>
24624 <cell alignment="center" valignment="top" usebox="none">
24625 \begin_inset Text
24626
24627 \begin_layout Plain Layout
24628 pifont
24629 \end_layout
24630
24631 \end_inset
24632 </cell>
24633 <cell alignment="center" valignment="top" usebox="none">
24634 \begin_inset Text
24635
24636 \begin_layout Plain Layout
24637 slashed
24638 \end_layout
24639
24640 \end_inset
24641 </cell>
24642 <cell alignment="center" valignment="top" usebox="none">
24643 \begin_inset Text
24644
24645 \begin_layout Plain Layout
24646 txfonts
24647 \end_layout
24648
24649 \end_inset
24650 </cell>
24651 <cell alignment="center" valignment="top" usebox="none">
24652 \begin_inset Text
24653
24654 \begin_layout Plain Layout
24655 xy
24656 \end_layout
24657
24658 \end_inset
24659 </cell>
24660 </row>
24661 <row>
24662 <cell alignment="left" valignment="top" usebox="none">
24663 \begin_inset Text
24664
24665 \begin_layout Plain Layout
24666 amstext
24667 \end_layout
24668
24669 \end_inset
24670 </cell>
24671 <cell alignment="left" valignment="top" usebox="none">
24672 \begin_inset Text
24673
24674 \begin_layout Plain Layout
24675 csquotes
24676 \end_layout
24677
24678 \end_inset
24679 </cell>
24680 <cell alignment="left" valignment="top" usebox="none">
24681 \begin_inset Text
24682
24683 \begin_layout Plain Layout
24684 hhline
24685 \end_layout
24686
24687 \end_inset
24688 </cell>
24689 <cell alignment="left" valignment="top" usebox="none">
24690 \begin_inset Text
24691
24692 \begin_layout Plain Layout
24693 mathdesign
24694 \end_layout
24695
24696 \end_inset
24697 </cell>
24698 <cell alignment="center" valignment="top" usebox="none">
24699 \begin_inset Text
24700
24701 \begin_layout Plain Layout
24702 pmboxdraw
24703 \end_layout
24704
24705 \end_inset
24706 </cell>
24707 <cell alignment="center" valignment="top" usebox="none">
24708 \begin_inset Text
24709
24710 \begin_layout Plain Layout
24711 soul
24712 \end_layout
24713
24714 \end_inset
24715 </cell>
24716 <cell alignment="center" valignment="top" usebox="none">
24717 \begin_inset Text
24718
24719 \begin_layout Plain Layout
24720 ulem
24721 \end_layout
24722
24723 \end_inset
24724 </cell>
24725 <cell alignment="center" valignment="top" usebox="none">
24726 \begin_inset Text
24727
24728 \begin_layout Plain Layout
24729 yhmath
24730 \end_layout
24731
24732 \end_inset
24733 </cell>
24734 </row>
24735 <row>
24736 <cell alignment="left" valignment="top" usebox="none">
24737 \begin_inset Text
24738
24739 \begin_layout Plain Layout
24740 amsthm
24741 \end_layout
24742
24743 \end_inset
24744 </cell>
24745 <cell alignment="left" valignment="top" usebox="none">
24746 \begin_inset Text
24747
24748 \begin_layout Plain Layout
24749 dvipost
24750 \end_layout
24751
24752 \end_inset
24753 </cell>
24754 <cell alignment="left" valignment="top" usebox="none">
24755 \begin_inset Text
24756
24757 \begin_layout Plain Layout
24758 hyperref
24759 \end_layout
24760
24761 \end_inset
24762 </cell>
24763 <cell alignment="left" valignment="top" usebox="none">
24764 \begin_inset Text
24765
24766 \begin_layout Plain Layout
24767 mathdots
24768 \end_layout
24769
24770 \end_inset
24771 </cell>
24772 <cell alignment="center" valignment="top" usebox="none">
24773 \begin_inset Text
24774
24775 \begin_layout Plain Layout
24776 polyglossia
24777 \end_layout
24778
24779 \end_inset
24780 </cell>
24781 <cell alignment="center" valignment="top" usebox="none">
24782 \begin_inset Text
24783
24784 \begin_layout Plain Layout
24785 splitidx
24786 \end_layout
24787
24788 \end_inset
24789 </cell>
24790 <cell alignment="center" valignment="top" usebox="none">
24791 \begin_inset Text
24792
24793 \begin_layout Plain Layout
24794 undertilde
24795 \end_layout
24796
24797 \end_inset
24798 </cell>
24799 <cell alignment="center" valignment="top" usebox="none">
24800 \begin_inset Text
24801
24802 \begin_layout Plain Layout
24803
24804 \end_layout
24805
24806 \end_inset
24807 </cell>
24808 </row>
24809 <row>
24810 <cell alignment="left" valignment="top" usebox="none">
24811 \begin_inset Text
24812
24813 \begin_layout Plain Layout
24814 array
24815 \end_layout
24816
24817 \end_inset
24818 </cell>
24819 <cell alignment="left" valignment="top" usebox="none">
24820 \begin_inset Text
24821
24822 \begin_layout Plain Layout
24823 endnotes
24824 \end_layout
24825
24826 \end_inset
24827 </cell>
24828 <cell alignment="left" valignment="top" usebox="none">
24829 \begin_inset Text
24830
24831 \begin_layout Plain Layout
24832 ifsym
24833 \end_layout
24834
24835 \end_inset
24836 </cell>
24837 <cell alignment="left" valignment="top" usebox="none">
24838 \begin_inset Text
24839
24840 \begin_layout Plain Layout
24841 mathrsfs
24842 \end_layout
24843
24844 \end_inset
24845 </cell>
24846 <cell alignment="center" valignment="top" usebox="none">
24847 \begin_inset Text
24848
24849 \begin_layout Plain Layout
24850 prettyref
24851 \end_layout
24852
24853 \end_inset
24854 </cell>
24855 <cell alignment="center" valignment="top" usebox="none">
24856 \begin_inset Text
24857
24858 \begin_layout Plain Layout
24859 subfig
24860 \end_layout
24861
24862 \end_inset
24863 </cell>
24864 <cell alignment="center" valignment="top" usebox="none">
24865 \begin_inset Text
24866
24867 \begin_layout Plain Layout
24868 units
24869 \end_layout
24870
24871 \end_inset
24872 </cell>
24873 <cell alignment="center" valignment="top" usebox="none">
24874 \begin_inset Text
24875
24876 \begin_layout Plain Layout
24877
24878 \end_layout
24879
24880 \end_inset
24881 </cell>
24882 </row>
24883 <row>
24884 <cell alignment="left" valignment="top" usebox="none">
24885 \begin_inset Text
24886
24887 \begin_layout Plain Layout
24888 ascii
24889 \end_layout
24890
24891 \end_inset
24892 </cell>
24893 <cell alignment="left" valignment="top" usebox="none">
24894 \begin_inset Text
24895
24896 \begin_layout Plain Layout
24897 enumitem
24898 \end_layout
24899
24900 \end_inset
24901 </cell>
24902 <cell alignment="left" valignment="top" usebox="none">
24903 \begin_inset Text
24904
24905 \begin_layout Plain Layout
24906 ifthen
24907 \end_layout
24908
24909 \end_inset
24910 </cell>
24911 <cell alignment="left" valignment="top" usebox="none">
24912 \begin_inset Text
24913
24914 \begin_layout Plain Layout
24915 mhchem
24916 \end_layout
24917
24918 \end_inset
24919 </cell>
24920 <cell alignment="center" valignment="top" usebox="none">
24921 \begin_inset Text
24922
24923 \begin_layout Plain Layout
24924 pxfonts
24925 \end_layout
24926
24927 \end_inset
24928 </cell>
24929 <cell alignment="center" valignment="top" usebox="none">
24930 \begin_inset Text
24931
24932 \begin_layout Plain Layout
24933 subscript
24934 \end_layout
24935
24936 \end_inset
24937 </cell>
24938 <cell alignment="center" valignment="top" usebox="none">
24939 \begin_inset Text
24940
24941 \begin_layout Plain Layout
24942 url
24943 \end_layout
24944
24945 \end_inset
24946 </cell>
24947 <cell alignment="center" valignment="top" usebox="none">
24948 \begin_inset Text
24949
24950 \begin_layout Plain Layout
24951
24952 \end_layout
24953
24954 \end_inset
24955 </cell>
24956 </row>
24957 <row>
24958 <cell alignment="left" valignment="top" usebox="none">
24959 \begin_inset Text
24960
24961 \begin_layout Plain Layout
24962 bbding
24963 \end_layout
24964
24965 \end_inset
24966 </cell>
24967 <cell alignment="left" valignment="top" usebox="none">
24968 \begin_inset Text
24969
24970 \begin_layout Plain Layout
24971 esint
24972 \end_layout
24973
24974 \end_inset
24975 </cell>
24976 <cell alignment="left" valignment="top" usebox="none">
24977 \begin_inset Text
24978
24979 \begin_layout Plain Layout
24980 jurabib
24981 \end_layout
24982
24983 \end_inset
24984 </cell>
24985 <cell alignment="left" valignment="top" usebox="none">
24986 \begin_inset Text
24987
24988 \begin_layout Plain Layout
24989 multicol
24990 \end_layout
24991
24992 \end_inset
24993 </cell>
24994 <cell alignment="center" valignment="top" usebox="none">
24995 \begin_inset Text
24996
24997 \begin_layout Plain Layout
24998 refstyle
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 textcomp
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 varioref
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
25026 \end_layout
25027
25028 \end_inset
25029 </cell>
25030 </row>
25031 <row>
25032 <cell alignment="center" valignment="top" usebox="none">
25033 \begin_inset Text
25034
25035 \begin_layout Plain Layout
25036 bm
25037 \end_layout
25038
25039 \end_inset
25040 </cell>
25041 <cell alignment="center" valignment="top" usebox="none">
25042 \begin_inset Text
25043
25044 \begin_layout Plain Layout
25045 fancybox
25046 \end_layout
25047
25048 \end_inset
25049 </cell>
25050 <cell alignment="center" valignment="top" usebox="none">
25051 \begin_inset Text
25052
25053 \begin_layout Plain Layout
25054 latexsym
25055 \end_layout
25056
25057 \end_inset
25058 </cell>
25059 <cell alignment="center" valignment="top" usebox="none">
25060 \begin_inset Text
25061
25062 \begin_layout Plain Layout
25063 multirow
25064 \end_layout
25065
25066 \end_inset
25067 </cell>
25068 <cell alignment="center" valignment="top" usebox="none">
25069 \begin_inset Text
25070
25071 \begin_layout Plain Layout
25072 rotating
25073 \end_layout
25074
25075 \end_inset
25076 </cell>
25077 <cell alignment="center" valignment="top" usebox="none">
25078 \begin_inset Text
25079
25080 \begin_layout Plain Layout
25081 textgreek
25082 \end_layout
25083
25084 \end_inset
25085 </cell>
25086 <cell alignment="center" valignment="top" usebox="none">
25087 \begin_inset Text
25088
25089 \begin_layout Plain Layout
25090 verbatim
25091 \end_layout
25092
25093 \end_inset
25094 </cell>
25095 <cell alignment="center" valignment="top" usebox="none">
25096 \begin_inset Text
25097
25098 \begin_layout Plain Layout
25099
25100 \end_layout
25101
25102 \end_inset
25103 </cell>
25104 </row>
25105 </lyxtabular>
25106
25107 \end_inset
25108
25109
25110 \end_layout
25111
25112 \begin_layout Chapter
25113 Names of available colors to be used in layouts
25114 \begin_inset CommandInset label
25115 LatexCommand label
25116 name "chap:Names-of-colors"
25117
25118 \end_inset
25119
25120
25121 \end_layout
25122
25123 \begin_layout Standard
25124 The colors listed here are the standard colors and the those that you can
25125  adjust in the \SpecialChar LyX
25126  preferences.
25127 \end_layout
25128
25129 \begin_layout Description
25130 none
25131 \family roman
25132 \series medium
25133 \shape up
25134 \size normal
25135 \emph off
25136 \bar no
25137 \strikeout off
25138 \uuline off
25139 \uwave off
25140 \noun off
25141 \color none
25142  No particular color – clear or default
25143 \end_layout
25144
25145 \begin_layout Description
25146 black
25147 \end_layout
25148
25149 \begin_layout Description
25150 white
25151 \end_layout
25152
25153 \begin_layout Description
25154 red
25155 \end_layout
25156
25157 \begin_layout Description
25158 green
25159 \end_layout
25160
25161 \begin_layout Description
25162 blue
25163 \end_layout
25164
25165 \begin_layout Description
25166 cyan
25167 \end_layout
25168
25169 \begin_layout Description
25170 magenta
25171 \end_layout
25172
25173 \begin_layout Description
25174 yellow
25175 \end_layout
25176
25177 \begin_layout Description
25178 added_space Added space marker color
25179 \end_layout
25180
25181 \begin_layout Description
25182 addedtext Added text color
25183 \end_layout
25184
25185 \begin_layout Description
25186 appendix Appendix marker color
25187 \end_layout
25188
25189 \begin_layout Description
25190 background Background color
25191 \end_layout
25192
25193 \begin_layout Description
25194 bottomarea Bottom area color
25195 \end_layout
25196
25197 \begin_layout Description
25198 branchlabel Label color for branches
25199 \end_layout
25200
25201 \begin_layout Description
25202 buttonbg Color used for bottom background
25203 \end_layout
25204
25205 \begin_layout Description
25206 buttonhoverbg Color used for button background under focus
25207 \end_layout
25208
25209 \begin_layout Description
25210 buttonframe Color for inset button frames
25211 \end_layout
25212
25213 \begin_layout Description
25214 changebar Changebar color
25215 \end_layout
25216
25217 \begin_layout Description
25218 changedtextauthor1 Changed text color author 1
25219 \end_layout
25220
25221 \begin_layout Description
25222 changedtextauthor2 Changed text color author 2
25223 \end_layout
25224
25225 \begin_layout Description
25226 changedtextauthor3 Changed text color author 3
25227 \end_layout
25228
25229 \begin_layout Description
25230 changedtextauthor4 Changed text color author 4
25231 \end_layout
25232
25233 \begin_layout Description
25234 changedtextauthor5 Changed text color author 5
25235 \end_layout
25236
25237 \begin_layout Description
25238 collapsable_inset_frame Collapsable insets framecolor
25239 \end_layout
25240
25241 \begin_layout Description
25242 collapsable_inset_text Collapsable insets text color
25243 \end_layout
25244
25245 \begin_layout Description
25246 command Text color for command insets
25247 \end_layout
25248
25249 \begin_layout Description
25250 commandbg Background color for command insets
25251 \end_layout
25252
25253 \begin_layout Description
25254 commandframe Frame color for command insets
25255 \end_layout
25256
25257 \begin_layout Description
25258 comment color for comments
25259 \end_layout
25260
25261 \begin_layout Description
25262 commentbg Background color of comments
25263 \end_layout
25264
25265 \begin_layout Description
25266 cursor Cursor color
25267 \end_layout
25268
25269 \begin_layout Description
25270 deletedtext Deleted text color
25271 \end_layout
25272
25273 \begin_layout Description
25274 deletedtextmodifier Deleted text modifying color
25275 \end_layout
25276
25277 \begin_layout Description
25278 depthbar Color for the depth bars in the margin
25279 \end_layout
25280
25281 \begin_layout Description
25282 eolmarker End of line marker color
25283 \end_layout
25284
25285 \begin_layout Description
25286 error Color of the \SpecialChar LaTeX
25287  error box
25288 \end_layout
25289
25290 \begin_layout Description
25291 footlabel Label color for footnotes
25292 \end_layout
25293
25294 \begin_layout Description
25295 graphicsbg Graphics inset background color
25296 \end_layout
25297
25298 \begin_layout Description
25299 greyedout Label color for greyedout insets
25300 \end_layout
25301
25302 \begin_layout Description
25303 greyedoutbg Background color of greyedout inset
25304 \end_layout
25305
25306 \begin_layout Description
25307 greyedouttext Color for greyedout inset text
25308 \end_layout
25309
25310 \begin_layout Description
25311 indexlabel Label color for index insets
25312 \end_layout
25313
25314 \begin_layout Description
25315 ignore The color is ignored
25316 \end_layout
25317
25318 \begin_layout Description
25319 inherit The color is inherited
25320 \end_layout
25321
25322 \begin_layout Description
25323 inlinecompletion Inline completion color
25324 \end_layout
25325
25326 \begin_layout Description
25327 insetbg Inset marker background color
25328 \end_layout
25329
25330 \begin_layout Description
25331 insetframe Inset marker frame color
25332 \end_layout
25333
25334 \begin_layout Description
25335 language Color for marking foreign language words
25336 \end_layout
25337
25338 \begin_layout Description
25339 latex Text color in \SpecialChar LaTeX
25340  mode
25341 \end_layout
25342
25343 \begin_layout Description
25344 listingsbg Background color of listings inset
25345 \end_layout
25346
25347 \begin_layout Description
25348 marginlabel Label color for margin notes
25349 \end_layout
25350
25351 \begin_layout Description
25352 math Math inset text color
25353 \end_layout
25354
25355 \begin_layout Description
25356 mathbg Math inset background color
25357 \end_layout
25358
25359 \begin_layout Description
25360 mathcorners Math inset frame color not under focus
25361 \end_layout
25362
25363 \begin_layout Description
25364 mathframe Math inset frame color under focus
25365 \end_layout
25366
25367 \begin_layout Description
25368 mathline Math line color
25369 \end_layout
25370
25371 \begin_layout Description
25372 mathmacrobg Macro math inset background color
25373 \end_layout
25374
25375 \begin_layout Description
25376 mathmacroblend Macro math blended color
25377 \end_layout
25378
25379 \begin_layout Description
25380 mathmacroframe Macro math frame color
25381 \end_layout
25382
25383 \begin_layout Description
25384 mathmacrohoverbg Macro math inset background color hovered
25385 \end_layout
25386
25387 \begin_layout Description
25388 mathmacrolabel Macro math label color
25389 \end_layout
25390
25391 \begin_layout Description
25392 mathmacronewarg Macro template color for new parameters
25393 \end_layout
25394
25395 \begin_layout Description
25396 mathmacrooldarg Macro template color for old parameters
25397 \end_layout
25398
25399 \begin_layout Description
25400 newpage New page color
25401 \end_layout
25402
25403 \begin_layout Description
25404 nonunique_inlinecompletion Inline completion color for the non-unique part
25405 \end_layout
25406
25407 \begin_layout Description
25408 notebg Background color of notes
25409 \end_layout
25410
25411 \begin_layout Description
25412 notelabel Label color for notes
25413 \end_layout
25414
25415 \begin_layout Description
25416 pagebreak Page break/line break color
25417 \end_layout
25418
25419 \begin_layout Description
25420 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25421 \end_layout
25422
25423 \begin_layout Description
25424 phantomtext Text color for phantom insets
25425 \end_layout
25426
25427 \begin_layout Description
25428 preview The color used for previews
25429 \end_layout
25430
25431 \begin_layout Description
25432 previewframe Preview frame color
25433 \end_layout
25434
25435 \begin_layout Description
25436 regexpframe Color for regexp frame
25437 \end_layout
25438
25439 \begin_layout Description
25440 selection Background color of selected text
25441 \end_layout
25442
25443 \begin_layout Description
25444 selectiontext Foreground color of selected text
25445 \end_layout
25446
25447 \begin_layout Description
25448 shadedbg Background color of shaded box
25449 \end_layout
25450
25451 \begin_layout Description
25452 special Special chars text color
25453 \end_layout
25454
25455 \begin_layout Description
25456 tabularline Table line color
25457 \end_layout
25458
25459 \begin_layout Description
25460 tabularonoffline Table line color
25461 \end_layout
25462
25463 \begin_layout Description
25464 urllabel Label color for URL insets
25465 \end_layout
25466
25467 \begin_layout Description
25468 urltext Color for URL inset text
25469 \end_layout
25470
25471 \end_body
25472 \end_document