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