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