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