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