]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: remove unnecessary tables and some updates
[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 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396 LabelString
19397 \end_layout
19398
19399 \end_inset
19400
19401  [
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 string
19407 \end_layout
19408
19409 \end_inset
19410
19411 =
19412 \begin_inset Quotes erd
19413 \end_inset
19414
19415
19416 \begin_inset Quotes erd
19417 \end_inset
19418
19419 ] When defined, this string defines how the counter is displayed.
19420  Setting this value sets 
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 LabelStringAppendix
19426 \end_layout
19427
19428 \end_inset
19429
19430  to the same value.
19431  The following special constructs can be used in the string:
19432 \end_layout
19433
19434 \begin_deeper
19435 \begin_layout Itemize
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440
19441 \backslash
19442 thecounter
19443 \end_layout
19444
19445 \end_inset
19446
19447  will be replaced by the expansion of the 
19448 \begin_inset Flex Code
19449 status collapsed
19450
19451 \begin_layout Plain Layout
19452 LabelString
19453 \end_layout
19454
19455 \end_inset
19456
19457  (or 
19458 \begin_inset Flex Code
19459 status collapsed
19460
19461 \begin_layout Plain Layout
19462 LabelStringAppendix
19463 \end_layout
19464
19465 \end_inset
19466
19467 ) of the counter 
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472 counter
19473 \end_layout
19474
19475 \end_inset
19476
19477 .
19478  
19479 \end_layout
19480
19481 \begin_layout Itemize
19482 counter values can be expressed using LaTeX-like macros
19483 \begin_inset Newline newline
19484 \end_inset
19485
19486
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491
19492 \backslash
19493
19494 \emph on
19495 numbertype
19496 \emph default
19497 {
19498 \emph on
19499 counter
19500 \emph default
19501 }
19502 \end_layout
19503
19504 \end_inset
19505
19506 , where 
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511
19512 \emph on
19513 numbertype
19514 \end_layout
19515
19516 \end_inset
19517
19518  can be:
19519 \begin_inset Foot
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523
19524 \family roman
19525 \series medium
19526 \shape up
19527 \size normal
19528 \emph off
19529 \bar no
19530 \noun off
19531 \color none
19532 Actually, the situation is a bit more complicated: any
19533 \family default
19534 \series default
19535 \shape default
19536 \emph default
19537 \bar default
19538  
19539 \size default
19540 \emph on
19541 \noun default
19542 \color inherit
19543 numbertype
19544 \family roman
19545 \series medium
19546 \shape up
19547 \size normal
19548 \emph off
19549 \bar no
19550 \noun off
19551  other than those described below will produce arabic numerals.
19552  It would not be surprising to see this change in the future.
19553 \end_layout
19554
19555 \end_inset
19556
19557  
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 arabic
19563 \end_layout
19564
19565 \end_inset
19566
19567 : 1, 2, 3,\SpecialChar \ldots{}
19568
19569 \begin_inset Flex Code
19570 status collapsed
19571
19572 \begin_layout Plain Layout
19573 alph
19574 \end_layout
19575
19576 \end_inset
19577
19578  for lower-case letters: a, b, c, \SpecialChar \ldots{}
19579
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 Alph
19585 \end_layout
19586
19587 \end_inset
19588
19589  for upper-case letters: A, B, C, \SpecialChar \ldots{}
19590
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595 roman
19596 \end_layout
19597
19598 \end_inset
19599
19600  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
19601
19602 \begin_inset Flex Code
19603 status collapsed
19604
19605 \begin_layout Plain Layout
19606 Roman
19607 \end_layout
19608
19609 \end_inset
19610
19611  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
19612
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 hebrew
19618 \end_layout
19619
19620 \end_inset
19621
19622  for hebrew numerals.
19623 \end_layout
19624
19625 \end_deeper
19626 \begin_layout Standard
19627 If LabelString is not defined, a default value is constructed as follows:
19628  if the counter has a master counter 
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 master
19634 \end_layout
19635
19636 \end_inset
19637
19638  (defined via 
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 Within
19644 \end_layout
19645
19646 \end_inset
19647
19648 ), the string
19649 \begin_inset Newline newline
19650 \end_inset
19651
19652
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657
19658 \backslash
19659 themaster.
19660 \backslash
19661 arabic{counter}
19662 \end_layout
19663
19664 \end_inset
19665
19666  is used; otherwise the string 
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671
19672 \backslash
19673 arabic{counter}
19674 \end_layout
19675
19676 \end_inset
19677
19678  is used.
19679 \end_layout
19680
19681 \begin_layout Description
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 LabelStringAppendix
19687 \end_layout
19688
19689 \end_inset
19690
19691  [
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 string
19697 \end_layout
19698
19699 \end_inset
19700
19701 =
19702 \begin_inset Quotes erd
19703 \end_inset
19704
19705
19706 \begin_inset Quotes erd
19707 \end_inset
19708
19709 ] Same as 
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714 LabelString
19715 \end_layout
19716
19717 \end_inset
19718
19719 , but for use in the Appendix.
19720 \end_layout
19721
19722 \begin_layout Description
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727 PrettyFormat
19728 \end_layout
19729
19730 \end_inset
19731
19732  [
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 string
19738 \end_layout
19739
19740 \end_inset
19741
19742 =
19743 \begin_inset Quotes erd
19744 \end_inset
19745
19746
19747 \begin_inset Quotes erd
19748 \end_inset
19749
19750 ] A format for use with formatted references to this counter.
19751  For example, one might want to have references to section numbers appear
19752  as 
19753 \begin_inset Quotes eld
19754 \end_inset
19755
19756 Section 2.4
19757 \begin_inset Quotes erd
19758 \end_inset
19759
19760 .
19761  The string should contain 
19762 \begin_inset Quotes eld
19763 \end_inset
19764
19765 ##
19766 \begin_inset Quotes erd
19767 \end_inset
19768
19769 .
19770  This will be replaced by the counter number itself.
19771  So, for sections, it would be: Section ##.
19772 \end_layout
19773
19774 \begin_layout Description
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 Within
19780 \end_layout
19781
19782 \end_inset
19783
19784  [
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 string
19790 \end_layout
19791
19792 \end_inset
19793
19794 =
19795 \begin_inset Quotes erd
19796 \end_inset
19797
19798
19799 \begin_inset Quotes erd
19800 \end_inset
19801
19802 ] If this is set to the name of another counter, the present counter will
19803  be reset every time the other one is increased.
19804  For example, 
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 subsection
19810 \end_layout
19811
19812 \end_inset
19813
19814  is numbered inside 
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 section
19820 \end_layout
19821
19822 \end_inset
19823
19824 .
19825 \end_layout
19826
19827 \begin_layout Subsection
19828 Font description
19829 \begin_inset CommandInset label
19830 LatexCommand label
19831 name "sub:Font-description"
19832
19833 \end_inset
19834
19835
19836 \end_layout
19837
19838 \begin_layout Standard
19839 A font description looks like this:
19840 \end_layout
19841
19842 \begin_layout LyX-Code
19843 Font 
19844 \family roman
19845 \emph on
19846 or
19847 \family default
19848 \emph default
19849  LabelFont
19850 \emph on
19851  or
19852 \emph default
19853  DefaultFont
19854 \end_layout
19855
19856 \begin_layout LyX-Code
19857  ...
19858 \end_layout
19859
19860 \begin_layout LyX-Code
19861 EndFont
19862 \end_layout
19863
19864 \begin_layout Standard
19865 The following commands are available:
19866 \end_layout
19867
19868 \begin_layout Description
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 Color
19874 \end_layout
19875
19876 \end_inset
19877
19878  [
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883
19884 \emph on
19885 none
19886 \end_layout
19887
19888 \end_inset
19889
19890
19891 \begin_inset Flex Code
19892 status collapsed
19893
19894 \begin_layout Plain Layout
19895 black
19896 \end_layout
19897
19898 \end_inset
19899
19900
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 white
19906 \end_layout
19907
19908 \end_inset
19909
19910
19911 \begin_inset Flex Code
19912 status collapsed
19913
19914 \begin_layout Plain Layout
19915 red
19916 \end_layout
19917
19918 \end_inset
19919
19920
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 green
19926 \end_layout
19927
19928 \end_inset
19929
19930
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 blue
19936 \end_layout
19937
19938 \end_inset
19939
19940
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 cyan
19946 \end_layout
19947
19948 \end_inset
19949
19950
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 magenta
19956 \end_layout
19957
19958 \end_inset
19959
19960
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 yellow
19966 \end_layout
19967
19968 \end_inset
19969
19970 ]
19971 \end_layout
19972
19973 \begin_layout Description
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 Family
19979 \end_layout
19980
19981 \end_inset
19982
19983  [
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988
19989 \emph on
19990 Roman
19991 \end_layout
19992
19993 \end_inset
19994
19995
19996 \begin_inset Flex Code
19997 status collapsed
19998
19999 \begin_layout Plain Layout
20000 Sans
20001 \end_layout
20002
20003 \end_inset
20004
20005
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 Typewriter
20011 \end_layout
20012
20013 \end_inset
20014
20015 ]
20016 \end_layout
20017
20018 \begin_layout Description
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023 Misc
20024 \end_layout
20025
20026 \end_inset
20027
20028  [
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 string
20034 \end_layout
20035
20036 \end_inset
20037
20038 ] Valid arguments are: 
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043 emph
20044 \end_layout
20045
20046 \end_inset
20047
20048
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053 noun
20054 \end_layout
20055
20056 \end_inset
20057
20058
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 strikeout
20064 \end_layout
20065
20066 \end_inset
20067
20068
20069 \begin_inset Flex Code
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 underbar
20074 \end_layout
20075
20076 \end_inset
20077
20078
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 uuline
20084 \end_layout
20085
20086 \end_inset
20087
20088
20089 \begin_inset Flex Code
20090 status collapsed
20091
20092 \begin_layout Plain Layout
20093 uwave
20094 \end_layout
20095
20096 \end_inset
20097
20098
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 no_emph
20104 \end_layout
20105
20106 \end_inset
20107
20108
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 no_noun
20114 \end_layout
20115
20116 \end_inset
20117
20118
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 no_strikeout
20124 \end_layout
20125
20126 \end_inset
20127
20128
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 no_bar
20134 \end_layout
20135
20136 \end_inset
20137
20138
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 no_uuline
20144 \end_layout
20145
20146 \end_inset
20147
20148  and 
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 no_uwave
20154 \end_layout
20155
20156 \end_inset
20157
20158 .
20159  Each of these turns on or off the corresponding attribute.
20160  For example, 
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 emph
20166 \end_layout
20167
20168 \end_inset
20169
20170  turns on emphasis, and 
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 no_emph
20176 \end_layout
20177
20178 \end_inset
20179
20180  turns it off.
20181  
20182 \begin_inset Newline newline
20183 \end_inset
20184
20185 If the latter seems puzzling, remember that the font settings for the present
20186  context are generally inherited from the surrounding context.
20187  So 
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 no_emph
20193 \end_layout
20194
20195 \end_inset
20196
20197  would turn off the emphasis that was anyway in effect, say, in a theorem
20198  environment.
20199 \end_layout
20200
20201 \begin_layout Description
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206 Series
20207 \end_layout
20208
20209 \end_inset
20210
20211  [
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216
20217 \emph on
20218 Medium
20219 \end_layout
20220
20221 \end_inset
20222
20223
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 Bold
20229 \end_layout
20230
20231 \end_inset
20232
20233
20234 \end_layout
20235
20236 \begin_layout Description
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 Shape
20242 \end_layout
20243
20244 \end_inset
20245
20246  [
20247 \begin_inset Flex Code
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251
20252 \emph on
20253 Up
20254 \end_layout
20255
20256 \end_inset
20257
20258
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 Italic
20264 \end_layout
20265
20266 \end_inset
20267
20268
20269 \begin_inset Flex Code
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273 SmallCaps
20274 \end_layout
20275
20276 \end_inset
20277
20278
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 Slanted
20284 \end_layout
20285
20286 \end_inset
20287
20288
20289 \end_layout
20290
20291 \begin_layout Description
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 Size
20297 \end_layout
20298
20299 \end_inset
20300
20301  [
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 tiny
20307 \end_layout
20308
20309 \end_inset
20310
20311
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 small
20317 \end_layout
20318
20319 \end_inset
20320
20321
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326
20327 \emph on
20328 normal
20329 \end_layout
20330
20331 \end_inset
20332
20333
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 large
20339 \end_layout
20340
20341 \end_inset
20342
20343
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 larger
20349 \end_layout
20350
20351 \end_inset
20352
20353
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 largest
20359 \end_layout
20360
20361 \end_inset
20362
20363
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 huge
20369 \end_layout
20370
20371 \end_inset
20372
20373
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 giant
20379 \end_layout
20380
20381 \end_inset
20382
20383 ]
20384 \end_layout
20385
20386 \begin_layout Subsection
20387 \begin_inset CommandInset label
20388 LatexCommand label
20389 name "sub:Citation-format-description"
20390
20391 \end_inset
20392
20393 Citation format description
20394 \end_layout
20395
20396 \begin_layout Standard
20397 The 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 CiteFormat
20403 \end_layout
20404
20405 \end_inset
20406
20407  blocks are used to describe how bibliographic information should be displayed,
20408  both within LyX itself (in the citation dialog and in tooltips, for example)
20409  and in XHTML output.
20410  Such a block might look like this:
20411 \end_layout
20412
20413 \begin_layout LyX-Code
20414 CiteFormat
20415 \end_layout
20416
20417 \begin_layout LyX-Code
20418  article ...
20419 \end_layout
20420
20421 \begin_layout LyX-Code
20422  book ...
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426 End
20427 \end_layout
20428
20429 \begin_layout Standard
20430 The individual lines define how the bibliographic information associated
20431  with an article or book, respectively, is to be displayed, and such a definitio
20432 n can be given for any `entry type' that might be present in a BibTeX file.
20433  LyX defines a default format in the source code that will be used if no
20434  specific definition has been given.
20435  LyX predefines several formats in the file 
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440 stdciteformats.inc
20441 \end_layout
20442
20443 \end_inset
20444
20445 , which is included in most of LyX's document classes.
20446 \end_layout
20447
20448 \begin_layout Standard
20449 The definitions use a simple language that allows BibTeX keys to be replaced
20450  with their values.
20451  Keys should be enclosed in 
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 %
20457 \end_layout
20458
20459 \end_inset
20460
20461  signs, e.g.: 
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 %author%
20467 \end_layout
20468
20469 \end_inset
20470
20471 .
20472  So a simple definition might look like this:
20473 \end_layout
20474
20475 \begin_layout LyX-Code
20476 misc %author%, 
20477 \begin_inset Quotes eld
20478 \end_inset
20479
20480 %title
20481 \begin_inset Quotes erd
20482 \end_inset
20483
20484 .
20485 \end_layout
20486
20487 \begin_layout Standard
20488 This would print the author, followed by a comma, followed by the title,
20489  in quotes, followed by a period.
20490 \end_layout
20491
20492 \begin_layout Standard
20493 Of course, sometimes you may want to print a key only if it exists.
20494  This can be done by using a conditional construction, such as: 
20495 \begin_inset Flex Code
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 {%volume%[[vol.
20500 \begin_inset space ~
20501 \end_inset
20502
20503 %volume%]]}
20504 \end_layout
20505
20506 \end_inset
20507
20508 .
20509  This says: If the 
20510 \begin_inset Flex Code
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514 volume
20515 \end_layout
20516
20517 \end_inset
20518
20519  key exists, then print 
20520 \begin_inset Quotes eld
20521 \end_inset
20522
20523 vol.
20524 \begin_inset space ~
20525 \end_inset
20526
20527
20528 \begin_inset Quotes erd
20529 \end_inset
20530
20531  followed by the volume key.
20532  It is also possible to have an else clause in the conditional, such as:
20533 \begin_inset Newline newline
20534 \end_inset
20535
20536
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541 {%author%[[%author%]][[%editor%, ed.]]}
20542 \end_layout
20543
20544 \end_inset
20545
20546 .
20547 \begin_inset Newline newline
20548 \end_inset
20549
20550 Here, the 
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 author
20556 \end_layout
20557
20558 \end_inset
20559
20560  key is printed if it exists; otherwise, the editor key is printed, followed
20561  by 
20562 \begin_inset Quotes eld
20563 \end_inset
20564
20565 ,
20566 \begin_inset space ~
20567 \end_inset
20568
20569 ed.
20570 \begin_inset Quotes erd
20571 \end_inset
20572
20573  Note that the key is again enclosed in 
20574 \begin_inset Flex Code
20575 status collapsed
20576
20577 \begin_layout Plain Layout
20578 %
20579 \end_layout
20580
20581 \end_inset
20582
20583  signs; the entire conditional is enclosed in braces; and the if and else
20584  clauses are enclosed in double brackets, 
20585 \begin_inset Quotes eld
20586 \end_inset
20587
20588
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 [[
20594 \end_layout
20595
20596 \end_inset
20597
20598
20599 \begin_inset Quotes eld
20600 \end_inset
20601
20602  and 
20603 \begin_inset Quotes eld
20604 \end_inset
20605
20606
20607 \begin_inset Flex Code
20608 status collapsed
20609
20610 \begin_layout Plain Layout
20611 ]]
20612 \end_layout
20613
20614 \end_inset
20615
20616
20617 \begin_inset Quotes erd
20618 \end_inset
20619
20620 .
20621  There must be no space between any of these.
20622 \end_layout
20623
20624 \begin_layout Standard
20625 There is one other piece of syntax available in definitions, which looks
20626  like this: 
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 {!<i>!}
20632 \end_layout
20633
20634 \end_inset
20635
20636 .
20637  This defines a piece of formatting information that is to be used when
20638  creating 
20639 \begin_inset Quotes eld
20640 \end_inset
20641
20642 rich text
20643 \begin_inset Quotes erd
20644 \end_inset
20645
20646 .
20647  Obviously, we do not want to output HTML tags when writing plain text,
20648  so they should be wrapped in 
20649 \begin_inset Quotes eld
20650 \end_inset
20651
20652 {!
20653 \begin_inset Quotes erd
20654 \end_inset
20655
20656  and 
20657 \begin_inset Quotes eld
20658 \end_inset
20659
20660 !}
20661 \begin_inset Quotes erd
20662 \end_inset
20663
20664 .
20665 \end_layout
20666
20667 \begin_layout Standard
20668 Two special sorts of definitions are also possible in a 
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 CiteFormat
20674 \end_layout
20675
20676 \end_inset
20677
20678  block.
20679  An example of the first would be:
20680 \end_layout
20681
20682 \begin_layout LyX-Code
20683 !quotetitle 
20684 \begin_inset Quotes eld
20685 \end_inset
20686
20687 %title%
20688 \begin_inset Quotes erd
20689 \end_inset
20690
20691
20692 \end_layout
20693
20694 \begin_layout Standard
20695 This is an abbreviation, or macro, and it can be used by treating it as
20696  if it were a key: 
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 %!quotetitle%
20702 \end_layout
20703
20704 \end_inset
20705
20706 .
20707  LyX will treat 
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 %!quotetitle%
20713 \end_layout
20714
20715 \end_inset
20716
20717  exactly as it would treat its definition.
20718  So, let us issue the obvious 
20719 \emph on
20720 warning
20721 \emph default
20722 .
20723  Do not do this:
20724 \end_layout
20725
20726 \begin_layout LyX-Code
20727 !funfun %funfun%
20728 \end_layout
20729
20730 \begin_layout Standard
20731 or anything like it.
20732  LyX shouldn't go into an infinite loop, but it may go into a long one before
20733  it gives up.
20734 \end_layout
20735
20736 \begin_layout Standard
20737 The second sort of special definition might look like this:
20738 \end_layout
20739
20740 \begin_layout LyX-Code
20741 _pptext pp.
20742 \end_layout
20743
20744 \begin_layout Standard
20745 This defines a translatable piece of text, which allows relevant parts of
20746  the bibliography to be translated.
20747  It can be included in a definition by treating it as a key: 
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 %_pptext%
20753 \end_layout
20754
20755 \end_inset
20756
20757 .
20758  Several of these are predefined in 
20759 \begin_inset Flex Code
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763 stdciteformats.inc
20764 \end_layout
20765
20766 \end_inset
20767
20768 .
20769  Note that these are not macros, in the sense just defined.
20770  They will not be expanded.
20771 \end_layout
20772
20773 \begin_layout Standard
20774 So here then is an example that use all these features:
20775 \begin_inset VSpace defskip
20776 \end_inset
20777
20778
20779 \end_layout
20780
20781 \begin_layout Standard
20782 \noindent
20783
20784 \family typewriter
20785 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20786 \end_layout
20787
20788 \begin_layout Standard
20789 \begin_inset VSpace defskip
20790 \end_inset
20791
20792 This defines a macro that prints the author, followed by a comma, if the
20793  
20794 \begin_inset Flex Code
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 author
20799 \end_layout
20800
20801 \end_inset
20802
20803  key is defined, or else prints the name of the editor, followed by the
20804  
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 _edtext
20810 \end_layout
20811
20812 \end_inset
20813
20814  or its translation (it is by default 
20815 \begin_inset Quotes eld
20816 \end_inset
20817
20818 ed.
20819 \begin_inset Quotes erd
20820 \end_inset
20821
20822 ), if the 
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 editor
20828 \end_layout
20829
20830 \end_inset
20831
20832  key is defined.
20833  Note that this is in fact defined in 
20834 \begin_inset Flex Code
20835 status collapsed
20836
20837 \begin_layout Plain Layout
20838 stdciteformats.inc
20839 \end_layout
20840
20841 \end_inset
20842
20843 , so you can use it in your own definitions, or re-definitions, if you load
20844  that file first.
20845 \end_layout
20846
20847 \begin_layout Section
20848 \begin_inset CommandInset label
20849 LatexCommand label
20850 name "sec:Tags-for-XHTML"
20851
20852 \end_inset
20853
20854 Tags for XHTML output
20855 \end_layout
20856
20857 \begin_layout Standard
20858 As with LaTeX or DocBook, the format of LyX's XHTML output is also controlled
20859  by layout information.
20860  In general, LyX provides sensible defaults and, as mentioned earlier, it
20861  will even construct default CSS style rules from the other layout tags.
20862  For example, LyX will attempt to use the information provided in the 
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 Font
20868 \end_layout
20869
20870 \end_inset
20871
20872  declaration for the Chapter style to write CSS that will appropriately
20873  format chapter headings.
20874 \end_layout
20875
20876 \begin_layout Standard
20877 In many cases, then, you may not have to do anything at all to get acceptable
20878  XHTML output for your own environments, custom insets, and so forth.
20879  But in some cases you will, and so LyX provides a number of layout tags
20880  that can be used to customize the XHTML and CSS that are generated.
20881 \end_layout
20882
20883 \begin_layout Standard
20884 Note that there are two tags, 
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 HTMLPreamble
20890 \end_layout
20891
20892 \end_inset
20893
20894  and 
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 AddToHTMLPreamble
20900 \end_layout
20901
20902 \end_inset
20903
20904  that may appear outside style and inset declarations.
20905  See 
20906 \begin_inset CommandInset ref
20907 LatexCommand ref
20908 reference "sub:General-text-class"
20909
20910 \end_inset
20911
20912  for details on these.
20913 \end_layout
20914
20915 \begin_layout Subsection
20916 \begin_inset CommandInset label
20917 LatexCommand label
20918 name "sub:Paragraph-Style-XHTML"
20919
20920 \end_inset
20921
20922 Paragraph styles
20923 \end_layout
20924
20925 \begin_layout Standard
20926 The sort of XHTML LyX outputs for a paragraph depends upon whether we are
20927  dealing with a normal paragraph, a command, or an environment, where this
20928  is itself determined by the contents of the corresponding 
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 LaTeXType
20934 \end_layout
20935
20936 \end_inset
20937
20938  tag.
20939  
20940 \end_layout
20941
20942 \begin_layout Standard
20943 For a command or normal paragraph, the output XHTML has the following form:
20944 \end_layout
20945
20946 \begin_layout LyX-Code
20947 <tag attr=
20948 \begin_inset Quotes erd
20949 \end_inset
20950
20951 value
20952 \begin_inset Quotes erd
20953 \end_inset
20954
20955 >
20956 \end_layout
20957
20958 \begin_layout LyX-Code
20959 <labeltag attr=
20960 \begin_inset Quotes erd
20961 \end_inset
20962
20963 value
20964 \begin_inset Quotes erd
20965 \end_inset
20966
20967 >Label</labeltag>
20968 \end_layout
20969
20970 \begin_layout LyX-Code
20971 Contents of the paragraph.
20972 \end_layout
20973
20974 \begin_layout LyX-Code
20975 </tag>
20976 \end_layout
20977
20978 \begin_layout Standard
20979 The label tags are of course omitted if the paragraph does not have a label.
20980 \end_layout
20981
20982 \begin_layout Standard
20983 For an environment that is not some sort of list, the XHTML takes this form:
20984 \end_layout
20985
20986 \begin_layout LyX-Code
20987 <tag attr=
20988 \begin_inset Quotes erd
20989 \end_inset
20990
20991 value
20992 \begin_inset Quotes erd
20993 \end_inset
20994
20995 >
20996 \end_layout
20997
20998 \begin_layout LyX-Code
20999 <itemtag attr=
21000 \begin_inset Quotes erd
21001 \end_inset
21002
21003 value
21004 \begin_inset Quotes erd
21005 \end_inset
21006
21007 ><labeltag attr=
21008 \begin_inset Quotes erd
21009 \end_inset
21010
21011 value
21012 \begin_inset Quotes erd
21013 \end_inset
21014
21015 >Environment Label</labeltag>First paragraph.</itemtag>
21016 \end_layout
21017
21018 \begin_layout LyX-Code
21019 <itemtag>Second paragraph.</itemtag>
21020 \end_layout
21021
21022 \begin_layout LyX-Code
21023 </tag>
21024 \end_layout
21025
21026 \begin_layout Standard
21027 Note that the label is output only for the first paragraph, as it should
21028  be for a theorem, for example.
21029  
21030 \end_layout
21031
21032 \begin_layout Standard
21033 For a list, we have one of these forms:
21034 \end_layout
21035
21036 \begin_layout LyX-Code
21037 <tag attr=
21038 \begin_inset Quotes erd
21039 \end_inset
21040
21041 value
21042 \begin_inset Quotes erd
21043 \end_inset
21044
21045 >
21046 \end_layout
21047
21048 \begin_layout LyX-Code
21049 <itemtag attr=
21050 \begin_inset Quotes erd
21051 \end_inset
21052
21053 value
21054 \begin_inset Quotes erd
21055 \end_inset
21056
21057 ><labeltag attr=
21058 \begin_inset Quotes erd
21059 \end_inset
21060
21061 value
21062 \begin_inset Quotes erd
21063 \end_inset
21064
21065 >List Label</labeltag>First item.</itemtag>
21066 \end_layout
21067
21068 \begin_layout LyX-Code
21069 <itemtag attr=
21070 \begin_inset Quotes erd
21071 \end_inset
21072
21073 value
21074 \begin_inset Quotes erd
21075 \end_inset
21076
21077 ><labeltag attr=
21078 \begin_inset Quotes erd
21079 \end_inset
21080
21081 value
21082 \begin_inset Quotes erd
21083 \end_inset
21084
21085 >List Label</labeltag>Second item.</itemtag>
21086 \end_layout
21087
21088 \begin_layout LyX-Code
21089 </tag>
21090 \end_layout
21091
21092 \begin_layout LyX-Code
21093
21094 \end_layout
21095
21096 \begin_layout LyX-Code
21097 <tag attr=
21098 \begin_inset Quotes erd
21099 \end_inset
21100
21101 value
21102 \begin_inset Quotes erd
21103 \end_inset
21104
21105 >
21106 \end_layout
21107
21108 \begin_layout LyX-Code
21109 <labeltag attr=
21110 \begin_inset Quotes erd
21111 \end_inset
21112
21113 value
21114 \begin_inset Quotes erd
21115 \end_inset
21116
21117 >List Label</labeltag><itemtag attr=
21118 \begin_inset Quotes erd
21119 \end_inset
21120
21121 value
21122 \begin_inset Quotes erd
21123 \end_inset
21124
21125 >First item.</itemtag>
21126 \end_layout
21127
21128 \begin_layout LyX-Code
21129 <labeltag attr=
21130 \begin_inset Quotes erd
21131 \end_inset
21132
21133 value
21134 \begin_inset Quotes erd
21135 \end_inset
21136
21137 >List Label</labeltag><itemtag attr=
21138 \begin_inset Quotes erd
21139 \end_inset
21140
21141 value
21142 \begin_inset Quotes erd
21143 \end_inset
21144
21145 >Second item.</itemtag>
21146 \end_layout
21147
21148 \begin_layout LyX-Code
21149 </tag>
21150 \end_layout
21151
21152 \begin_layout Standard
21153 Note the different orders of 
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 labeltag
21159 \end_layout
21160
21161 \end_inset
21162
21163  and 
21164 \begin_inset Flex Code
21165 status collapsed
21166
21167 \begin_layout Plain Layout
21168 itemtag
21169 \end_layout
21170
21171 \end_inset
21172
21173 .
21174  Which order we get depends upon the setting of 
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 HTMLLabelFirst
21180 \end_layout
21181
21182 \end_inset
21183
21184 : If 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189 HTMLLabelFirst
21190 \end_layout
21191
21192 \end_inset
21193
21194  is false (the default), you get the first of these, with the label within
21195  the item; if true, you get the second, with the label outside the item.
21196 \end_layout
21197
21198 \begin_layout Standard
21199 The specific tags and attributes output for each paragraph type can be controlle
21200 d by means of the layout tags we are about to describe.
21201  As mentioned earlier, however, LyX uses sensible defaults for many of these,
21202  so you often may not need to do very much to get good XHTML output.
21203  Think of the available tags as there so you can tweak things to your liking.
21204 \end_layout
21205
21206 \begin_layout Description
21207 \begin_inset Flex Code
21208 status collapsed
21209
21210 \begin_layout Plain Layout
21211 HTMLAttr
21212 \end_layout
21213
21214 \end_inset
21215
21216  [
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221 string
21222 \end_layout
21223
21224 \end_inset
21225
21226 ] Specifies attribute information to be output with the main tag.
21227  For example, 
21228 \begin_inset Quotes eld
21229 \end_inset
21230
21231
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 class=`mydiv'
21237 \end_layout
21238
21239 \end_inset
21240
21241
21242 \begin_inset Quotes erd
21243 \end_inset
21244
21245 .
21246  By default, LyX will output 
21247 \begin_inset Quotes eld
21248 \end_inset
21249
21250
21251 \begin_inset Flex Code
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 class=`layoutname'
21256 \end_layout
21257
21258 \end_inset
21259
21260
21261 \begin_inset Quotes erd
21262 \end_inset
21263
21264 , where 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 layoutname
21270 \end_layout
21271
21272 \end_inset
21273
21274  is the LyX name of the layout, made lowercase, for example: chapter.
21275  This should 
21276 \emph on
21277 not
21278 \emph default
21279  contain any style information.
21280  Use 
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 HTMLStyle
21286 \end_layout
21287
21288 \end_inset
21289
21290  for that purpose.
21291 \end_layout
21292
21293 \begin_layout Description
21294 \begin_inset Flex Code
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 HTMLForceCSS
21299 \end_layout
21300
21301 \end_inset
21302
21303  [
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308
21309 \emph on
21310 0
21311 \emph default
21312 ,1
21313 \end_layout
21314
21315 \end_inset
21316
21317 ] Whether to output the default CSS information LyX generates for this layout,
21318  even if additional information is explicitly provided via 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 HTMLStyle
21324 \end_layout
21325
21326 \end_inset
21327
21328 .
21329  Setting this to 
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 1
21335 \end_layout
21336
21337 \end_inset
21338
21339  allows you to alter or augment the generated CSS, rather than to override
21340  it completely.
21341  Default is 
21342 \begin_inset Flex Code
21343 status collapsed
21344
21345 \begin_layout Plain Layout
21346 0
21347 \end_layout
21348
21349 \end_inset
21350
21351 .
21352 \end_layout
21353
21354 \begin_layout Description
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 HTMLItem
21360 \end_layout
21361
21362 \end_inset
21363
21364  [
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 string
21370 \end_layout
21371
21372 \end_inset
21373
21374 ] The tag to be used for individual paragraphs of environments, replacing
21375  
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 itemtag
21381 \end_layout
21382
21383 \end_inset
21384
21385  in the examples above.
21386  Defaults to 
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 div
21392 \end_layout
21393
21394 \end_inset
21395
21396 .
21397 \end_layout
21398
21399 \begin_layout Description
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 HTMLItemAttr
21405 \end_layout
21406
21407 \end_inset
21408
21409  [
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 string
21415 \end_layout
21416
21417 \end_inset
21418
21419 ] Attributes for the item tag.
21420  Defaults to 
21421 \begin_inset Quotes eld
21422 \end_inset
21423
21424
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 class=`layoutname_item'
21430 \end_layout
21431
21432 \end_inset
21433
21434
21435 \begin_inset Quotes erd
21436 \end_inset
21437
21438 .
21439  This should 
21440 \emph on
21441 not
21442 \emph default
21443  contain any style information.
21444  Use 
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 HTMLStyle
21450 \end_layout
21451
21452 \end_inset
21453
21454  for that purpose.
21455 \end_layout
21456
21457 \begin_layout Description
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 HTMLLabel
21463 \end_layout
21464
21465 \end_inset
21466
21467  [
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 string
21473 \end_layout
21474
21475 \end_inset
21476
21477 ] The tag to be used for paragraph and item labels, replacing 
21478 \begin_inset Flex Code
21479 status collapsed
21480
21481 \begin_layout Plain Layout
21482 labeltag
21483 \end_layout
21484
21485 \end_inset
21486
21487  in the examples above.
21488  Defaults to 
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 span
21494 \end_layout
21495
21496 \end_inset
21497
21498 , unless 
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 LabelType
21504 \end_layout
21505
21506 \end_inset
21507
21508  is either 
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 Top_Environment
21514 \end_layout
21515
21516 \end_inset
21517
21518  or 
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 Centered_Top_Environment
21524 \end_layout
21525
21526 \end_inset
21527
21528 , in which case it defaults to 
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 div
21534 \end_layout
21535
21536 \end_inset
21537
21538 .
21539 \end_layout
21540
21541 \begin_layout Description
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 HTMLLabelAttr
21547 \end_layout
21548
21549 \end_inset
21550
21551  [
21552 \begin_inset Flex Code
21553 status collapsed
21554
21555 \begin_layout Plain Layout
21556 string
21557 \end_layout
21558
21559 \end_inset
21560
21561 ] Attributes for the label tag.
21562  Defaults to 
21563 \begin_inset Quotes eld
21564 \end_inset
21565
21566
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 class=`layoutname_label'
21572 \end_layout
21573
21574 \end_inset
21575
21576
21577 \begin_inset Quotes erd
21578 \end_inset
21579
21580 .
21581  This should 
21582 \emph on
21583 not
21584 \emph default
21585  contain any style information.
21586  Use 
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591 HTMLStyle
21592 \end_layout
21593
21594 \end_inset
21595
21596  for that purpose.
21597 \end_layout
21598
21599 \begin_layout Description
21600 \begin_inset Flex Code
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 HTMLLabelFirst
21605 \end_layout
21606
21607 \end_inset
21608
21609  [
21610 \begin_inset Flex Code
21611 status collapsed
21612
21613 \begin_layout Plain Layout
21614
21615 \emph on
21616 0
21617 \emph default
21618 ,1
21619 \end_layout
21620
21621 \end_inset
21622
21623 ] Meaningful only for list-like environments, this tag controls whether
21624  the label tag is output before or inside the item tag.
21625  This is used, for example, in the description environment, where we want
21626  `
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631 <dt>\SpecialChar \ldots{}
21632 </dt><dd>\SpecialChar \ldots{}
21633 </dd>
21634 \end_layout
21635
21636 \end_inset
21637
21638 .
21639  Default is 
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 0
21645 \end_layout
21646
21647 \end_inset
21648
21649 : The label tag is output inside the item tag.
21650 \end_layout
21651
21652 \begin_layout Description
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 HTMLPreamble
21658 \end_layout
21659
21660 \end_inset
21661
21662  Information to be output in the 
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 <head>
21668 \end_layout
21669
21670 \end_inset
21671
21672  section when this style is used.
21673  This might, for example, be used to include a 
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 <script>
21679 \end_layout
21680
21681 \end_inset
21682
21683  block defining an 
21684 \begin_inset Flex Code
21685 status collapsed
21686
21687 \begin_layout Plain Layout
21688 onclick
21689 \end_layout
21690
21691 \end_inset
21692
21693  handler.
21694 \end_layout
21695
21696 \begin_layout Description
21697 \begin_inset Flex Code
21698 status collapsed
21699
21700 \begin_layout Plain Layout
21701 HTMLStyle
21702 \end_layout
21703
21704 \end_inset
21705
21706  CSS style information to be included when this style is used.
21707  Note that this will automatically be wrapped in a layout-generated 
21708 \begin_inset Flex Code
21709 status collapsed
21710
21711 \begin_layout Plain Layout
21712 <style>
21713 \end_layout
21714
21715 \end_inset
21716
21717  block, so only the CSS itself need be included.
21718
21719 \change_inserted 1414654397 1364133464
21720  Must end with 
21721 \begin_inset Flex Code
21722 status open
21723
21724 \begin_layout Plain Layout
21725
21726 \change_inserted 1414654397 1364133462
21727 EndHTMLStyle
21728 \change_unchanged
21729
21730 \end_layout
21731
21732 \end_inset
21733
21734 .
21735 \change_unchanged
21736
21737 \end_layout
21738
21739 \begin_layout Description
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 HTMLTag
21745 \end_layout
21746
21747 \end_inset
21748
21749  [
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 string
21755 \end_layout
21756
21757 \end_inset
21758
21759 ] The tag to be used for the main label, replacing 
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764 tag
21765 \end_layout
21766
21767 \end_inset
21768
21769  in the examples above.
21770  Defaults to 
21771 \begin_inset Flex Code
21772 status collapsed
21773
21774 \begin_layout Plain Layout
21775 div
21776 \end_layout
21777
21778 \end_inset
21779
21780 .
21781 \end_layout
21782
21783 \begin_layout Description
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 HTMLTitle
21789 \end_layout
21790
21791 \end_inset
21792
21793  [
21794 \begin_inset Flex Code
21795 status collapsed
21796
21797 \begin_layout Plain Layout
21798
21799 \emph on
21800 0
21801 \emph default
21802 ,1
21803 \end_layout
21804
21805 \end_inset
21806
21807 ] Marks this style as the one to be used to generate the 
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 <title>
21813 \end_layout
21814
21815 \end_inset
21816
21817  tag for the XHTML file.
21818  By default, it is false.
21819  The 
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 stdtitle.inc
21825 \end_layout
21826
21827 \end_inset
21828
21829  file sets it to true for the 
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 title
21835 \end_layout
21836
21837 \end_inset
21838
21839  environment.
21840  
21841 \end_layout
21842
21843 \begin_layout Subsection
21844 InsetLayout XHTML
21845 \end_layout
21846
21847 \begin_layout Standard
21848 The XHTML output of insets can also be controlled by information in layout
21849  files.
21850 \begin_inset Foot
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 At present, this is true only for 
21855 \begin_inset Quotes eld
21856 \end_inset
21857
21858 text
21859 \begin_inset Quotes erd
21860 \end_inset
21861
21862  insets (insets you can type into) and is not true for 
21863 \begin_inset Quotes eld
21864 \end_inset
21865
21866 command
21867 \begin_inset Quotes erd
21868 \end_inset
21869
21870  insets (insets that are associated with dialog boxes).
21871 \end_layout
21872
21873 \end_inset
21874
21875  Here, too, LyX tries to provide sensible defaults, and it constructs default
21876  CSS style rules.
21877  But everything can be customized.
21878 \end_layout
21879
21880 \begin_layout Standard
21881 The XHTML LyX outputs for an inset has the following form:
21882 \end_layout
21883
21884 \begin_layout LyX-Code
21885 <tag attr=
21886 \begin_inset Quotes erd
21887 \end_inset
21888
21889 value
21890 \begin_inset Quotes erd
21891 \end_inset
21892
21893 >
21894 \end_layout
21895
21896 \begin_layout LyX-Code
21897 <labeltag>Label</labeltag>
21898 \end_layout
21899
21900 \begin_layout LyX-Code
21901 <innertag attr=
21902 \begin_inset Quotes erd
21903 \end_inset
21904
21905 value
21906 \begin_inset Quotes erd
21907 \end_inset
21908
21909 >Contents of the inset.</innertag>
21910 \end_layout
21911
21912 \begin_layout LyX-Code
21913 </tag>
21914 \end_layout
21915
21916 \begin_layout Standard
21917 If the inset permits multiple paragraphs---that is, if 
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 MultiPar
21923 \end_layout
21924
21925 \end_inset
21926
21927  is true---then the contents of the inset will itself be output as paragraphs
21928  formatted according to the styles used for those paragraphs (standard,
21929  quote, and the like).
21930  The label tag is of course omitted if the paragraph does not have a label
21931  and, at present, is always 
21932 \begin_inset Flex Code
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 span
21937 \end_layout
21938
21939 \end_inset
21940
21941 .
21942  The inner tag is optional and, by default, does not appear.
21943 \end_layout
21944
21945 \begin_layout Standard
21946 The specific tags and attributes output for each inset can be controlled
21947  by means of the following layout tags.
21948 \end_layout
21949
21950 \begin_layout Description
21951 \begin_inset Flex Code
21952 status collapsed
21953
21954 \begin_layout Plain Layout
21955 HTMLAttr
21956 \end_layout
21957
21958 \end_inset
21959
21960  [
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 string
21966 \end_layout
21967
21968 \end_inset
21969
21970 ] Specifies attribute information to be output with the main tag.
21971  For example, 
21972 \begin_inset Quotes eld
21973 \end_inset
21974
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 class=`myinset' onclick=`\SpecialChar \ldots{}
21981 '
21982 \end_layout
21983
21984 \end_inset
21985
21986
21987 \begin_inset Quotes erd
21988 \end_inset
21989
21990 .
21991  By default, LyX will output 
21992 \begin_inset Quotes eld
21993 \end_inset
21994
21995
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 class=`insetname'
22001 \end_layout
22002
22003 \end_inset
22004
22005
22006 \begin_inset Quotes erd
22007 \end_inset
22008
22009 , where 
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 insetname
22015 \end_layout
22016
22017 \end_inset
22018
22019  is the LyX name of the inset, made lowercase and with non-alphanumeric
22020  characters converted to underscores, for example: footnote.
22021 \end_layout
22022
22023 \begin_layout Description
22024 \begin_inset Flex Code
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028 HTMLForceCSS
22029 \end_layout
22030
22031 \end_inset
22032
22033  [
22034 \begin_inset Flex Code
22035 status collapsed
22036
22037 \begin_layout Plain Layout
22038
22039 \emph on
22040 0
22041 \emph default
22042 ,1
22043 \end_layout
22044
22045 \end_inset
22046
22047 ] Whether to output the default CSS information LyX generates for this layout,
22048  even if additional information is explicitly provided via 
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 HTMLStyle
22054 \end_layout
22055
22056 \end_inset
22057
22058 .
22059  Setting this to 
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064 1
22065 \end_layout
22066
22067 \end_inset
22068
22069  allows you to alter or augment the generated CSS, rather than to override
22070  it completely.
22071  Default is 0.
22072 \end_layout
22073
22074 \begin_layout Description
22075 \begin_inset Flex Code
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 HTMLInnerAttr
22080 \end_layout
22081
22082 \end_inset
22083
22084  [
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089 string
22090 \end_layout
22091
22092 \end_inset
22093
22094 ] Attributes for the inner tag.
22095  Defaults to 
22096 \begin_inset Quotes eld
22097 \end_inset
22098
22099
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 class=`insetname_inner'
22105 \end_layout
22106
22107 \end_inset
22108
22109
22110 \begin_inset Quotes erd
22111 \end_inset
22112
22113 .
22114 \end_layout
22115
22116 \begin_layout Description
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121 HTMLInnerTag
22122 \end_layout
22123
22124 \end_inset
22125
22126  [
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 string
22132 \end_layout
22133
22134 \end_inset
22135
22136 ] The inner tag, replacing 
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141 innertag
22142 \end_layout
22143
22144 \end_inset
22145
22146  in the examples above.
22147  By default, there is none.
22148 \end_layout
22149
22150 \begin_layout Description
22151 \begin_inset Flex Code
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 HTMLIsBlock
22156 \end_layout
22157
22158 \end_inset
22159
22160  [
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 0,
22166 \emph on
22167 1
22168 \end_layout
22169
22170 \end_inset
22171
22172 ] Whether this inset represents a standalone block of text (such as a footnote)
22173  or instead represents material that is included in the surrounding text
22174  (such as a branch).
22175  Defaults to 1.
22176 \end_layout
22177
22178 \begin_layout Description
22179 \begin_inset Flex Code
22180 status collapsed
22181
22182 \begin_layout Plain Layout
22183 HTMLLabel
22184 \end_layout
22185
22186 \end_inset
22187
22188  [
22189 \begin_inset Flex Code
22190 status collapsed
22191
22192 \begin_layout Plain Layout
22193 string
22194 \end_layout
22195
22196 \end_inset
22197
22198 ] A label for this inset, possibly including a reference to a counter.
22199  For example, for footnote, it might be: 
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204
22205 \backslash
22206 arabic{footnote}
22207 \end_layout
22208
22209 \end_inset
22210
22211 .
22212  This is optional, and there is no default.
22213 \end_layout
22214
22215 \begin_layout Description
22216 \begin_inset Flex Code
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 HTMLPreamble
22221 \end_layout
22222
22223 \end_inset
22224
22225  Information to be output in the 
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 <head>
22231 \end_layout
22232
22233 \end_inset
22234
22235  section when this style is used.
22236  This might, for example, be used to include a 
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 <script>
22242 \end_layout
22243
22244 \end_inset
22245
22246  block defining an 
22247 \begin_inset Flex Code
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251 onclick
22252 \end_layout
22253
22254 \end_inset
22255
22256  handler.
22257 \end_layout
22258
22259 \begin_layout Description
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 HTMLStyle
22265 \end_layout
22266
22267 \end_inset
22268
22269  CSS style information to be included when this style is used.
22270  Note that this will automatically be wrapped in a layout-generated 
22271 \begin_inset Flex Code
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 <style>
22276 \end_layout
22277
22278 \end_inset
22279
22280  block, so only the CSS itself need be included.
22281 \end_layout
22282
22283 \begin_layout Description
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288 HTMLTag
22289 \end_layout
22290
22291 \end_inset
22292
22293  [
22294 \begin_inset Flex Code
22295 status collapsed
22296
22297 \begin_layout Plain Layout
22298 string
22299 \end_layout
22300
22301 \end_inset
22302
22303 ] The tag to be used for the main label, replacing 
22304 \begin_inset Flex Code
22305 status collapsed
22306
22307 \begin_layout Plain Layout
22308 tag
22309 \end_layout
22310
22311 \end_inset
22312
22313  in the examples above.
22314  The default depends upon the setting of 
22315 \begin_inset Flex Code
22316 status collapsed
22317
22318 \begin_layout Plain Layout
22319 MultiPar
22320 \end_layout
22321
22322 \end_inset
22323
22324 : If 
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 MultiPar
22330 \end_layout
22331
22332 \end_inset
22333
22334  is true, the default is 
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 div
22340 \end_layout
22341
22342 \end_inset
22343
22344 ; if it is false, the default is 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 span
22350 \end_layout
22351
22352 \end_inset
22353
22354 .
22355 \end_layout
22356
22357 \begin_layout Subsection
22358 Float XHTML
22359 \end_layout
22360
22361 \begin_layout Standard
22362 The XHTML output for floats too can be controlled by layout information.
22363  The output has the following form:
22364 \end_layout
22365
22366 \begin_layout LyX-Code
22367 <tag attr=
22368 \begin_inset Quotes erd
22369 \end_inset
22370
22371 value
22372 \begin_inset Quotes erd
22373 \end_inset
22374
22375 >
22376 \end_layout
22377
22378 \begin_layout LyX-Code
22379 Contents of the float.
22380 \end_layout
22381
22382 \begin_layout LyX-Code
22383 </tag>
22384 \end_layout
22385
22386 \begin_layout Standard
22387 The caption, if there is one, is a separate inset and will be output as
22388  such.
22389  Its appearance can be controlled via the InsetLayout for caption insets.
22390  
22391 \end_layout
22392
22393 \begin_layout Description
22394 \begin_inset Flex Code
22395 status collapsed
22396
22397 \begin_layout Plain Layout
22398 HTMLAttr
22399 \end_layout
22400
22401 \end_inset
22402
22403  [
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 string
22409 \end_layout
22410
22411 \end_inset
22412
22413 ] Specifies attribute information to be output with the main tag.
22414  For example, 
22415 \begin_inset Quotes eld
22416 \end_inset
22417
22418
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 class=`myfloat' onclick=`\SpecialChar \ldots{}
22424 '
22425 \end_layout
22426
22427 \end_inset
22428
22429
22430 \begin_inset Quotes erd
22431 \end_inset
22432
22433 .
22434  By default, LyX will output 
22435 \begin_inset Quotes eld
22436 \end_inset
22437
22438
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 class=`float float-floattype'
22444 \end_layout
22445
22446 \end_inset
22447
22448
22449 \begin_inset Quotes erd
22450 \end_inset
22451
22452 , where 
22453 \begin_inset Flex Code
22454 status collapsed
22455
22456 \begin_layout Plain Layout
22457 floattype
22458 \end_layout
22459
22460 \end_inset
22461
22462  is LyX's name for this type of float, as determined by the float declaration
22463  (see 
22464 \begin_inset CommandInset ref
22465 LatexCommand ref
22466 reference "sub:Floats"
22467
22468 \end_inset
22469
22470 ), though made lowercase and with non-alphanumeric characters converted
22471  to underscores, for example: float-table.
22472 \end_layout
22473
22474 \begin_layout Description
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 HTMLStyle
22480 \end_layout
22481
22482 \end_inset
22483
22484  CSS style information to be included when this float is used.
22485  Note that this will automatically be wrapped in a layout-generated 
22486 \begin_inset Flex Code
22487 status collapsed
22488
22489 \begin_layout Plain Layout
22490 <style>
22491 \end_layout
22492
22493 \end_inset
22494
22495  block, so only the CSS itself need be included.
22496 \end_layout
22497
22498 \begin_layout Description
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 HTMLTag
22504 \end_layout
22505
22506 \end_inset
22507
22508  [
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 string
22514 \end_layout
22515
22516 \end_inset
22517
22518 ] The tag to be used for this float, replacing 
22519 \begin_inset Quotes eld
22520 \end_inset
22521
22522
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 tag
22528 \end_layout
22529
22530 \end_inset
22531
22532
22533 \begin_inset Quotes erd
22534 \end_inset
22535
22536  in the example above.
22537  The default is 
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 div
22543 \end_layout
22544
22545 \end_inset
22546
22547  and will rarely need changing.
22548 \end_layout
22549
22550 \begin_layout Subsection
22551 Bibliography formatting
22552 \end_layout
22553
22554 \begin_layout Standard
22555 The bibliography can be formatted using 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 CiteFormat
22561 \end_layout
22562
22563 \end_inset
22564
22565  blocks.
22566  See Section 
22567 \begin_inset CommandInset ref
22568 LatexCommand ref
22569 reference "sub:Citation-format-description"
22570
22571 \end_inset
22572
22573  for the details.
22574 \end_layout
22575
22576 \begin_layout Subsection
22577 LyX-generated CSS
22578 \end_layout
22579
22580 \begin_layout Standard
22581 We have several times mentioned that LyX will generate default CSS style
22582  rules for both insets and paragraph styles, based upon the other layout
22583  information that is provided.
22584  In this section, we shall say a word about which layout information LyX
22585  uses and how.
22586 \end_layout
22587
22588 \begin_layout Standard
22589 At present, LyX auto-generates CSS only for font information, making use
22590  of the 
22591 \begin_inset Flex Code
22592 status collapsed
22593
22594 \begin_layout Plain Layout
22595 Family
22596 \end_layout
22597
22598 \end_inset
22599
22600
22601 \begin_inset Flex Code
22602 status collapsed
22603
22604 \begin_layout Plain Layout
22605 Series
22606 \end_layout
22607
22608 \end_inset
22609
22610
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 Shape
22616 \end_layout
22617
22618 \end_inset
22619
22620 , and 
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 Size
22626 \end_layout
22627
22628 \end_inset
22629
22630  specified in the 
22631 \begin_inset Flex Code
22632 status collapsed
22633
22634 \begin_layout Plain Layout
22635 Font
22636 \end_layout
22637
22638 \end_inset
22639
22640  declaration.
22641  (See 
22642 \begin_inset CommandInset ref
22643 LatexCommand ref
22644 reference "sub:Font-description"
22645
22646 \end_inset
22647
22648 .) The translation is mostly straightforward and obvious.
22649  For example, 
22650 \begin_inset Quotes eld
22651 \end_inset
22652
22653
22654 \begin_inset Flex Code
22655 status collapsed
22656
22657 \begin_layout Plain Layout
22658 Family Sans
22659 \end_layout
22660
22661 \end_inset
22662
22663
22664 \begin_inset Quotes erd
22665 \end_inset
22666
22667  becomes 
22668 \begin_inset Quotes eld
22669 \end_inset
22670
22671
22672 \begin_inset Flex Code
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676 font-family: sans-serif;
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \begin_inset Quotes erd
22683 \end_inset
22684
22685 .
22686  The correspondence of LyX sizes and CSS sizes is a little less obvious
22687  but nonetheless intuitive.
22688  See the 
22689 \begin_inset Flex Code
22690 status collapsed
22691
22692 \begin_layout Plain Layout
22693 getSizeCSS()
22694 \end_layout
22695
22696 \end_inset
22697
22698  function in 
22699 \begin_inset Flex URL
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703
22704 src/FontInfo.cpp
22705 \end_layout
22706
22707 \end_inset
22708
22709  for the details.
22710 \end_layout
22711
22712 \begin_layout Chapter
22713 Including External Material
22714 \end_layout
22715
22716 \begin_layout Standard
22717 \begin_inset Box Shadowbox
22718 position "t"
22719 hor_pos "c"
22720 has_inner_box 1
22721 inner_pos "t"
22722 use_parbox 0
22723 use_makebox 0
22724 width "100col%"
22725 special "none"
22726 height "1in"
22727 height_special "totalheight"
22728 status open
22729
22730 \begin_layout Plain Layout
22731 WARNING: This portion of the documentation has not been updated for some
22732  time.
22733  We certainly hope that it is still accurate, but there are no guarantees.
22734 \end_layout
22735
22736 \end_inset
22737
22738
22739 \end_layout
22740
22741 \begin_layout Standard
22742 The use of material from sources external to LyX is covered in detail in
22743  the 
22744 \emph on
22745 Embedded Objects
22746 \emph default
22747  manual.
22748  This part of the manual covers what needs to happen behind the scenes for
22749  new sorts of material to be included.
22750 \end_layout
22751
22752 \begin_layout Section
22753 How does it work?
22754 \end_layout
22755
22756 \begin_layout Standard
22757 The external material feature is based on the concept of a 
22758 \emph on
22759 template
22760 \emph default
22761 .
22762  A template is a specification of how LyX should interface with a certain
22763  kind of material.
22764  As bundled, LyX comes with predefined templates for Xfig figures, various
22765  raster format images, chess diagrams, and LilyPond music notation.
22766  You can check the actual list by using the menu 
22767 \begin_inset Flex MenuItem
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 Insert\SpecialChar \menuseparator
22772 File\SpecialChar \menuseparator
22773 External Material
22774 \end_layout
22775
22776 \end_inset
22777
22778 .
22779  Furthermore, it is possible to roll your own template to support a specific
22780  kind of material.
22781  Later we'll describe in more detail what is involved, and hopefully you
22782  will submit all the templates you create so we can include them in a later
22783  LyX version.
22784 \end_layout
22785
22786 \begin_layout Standard
22787 Another basic idea of the external material feature is to distinguish between
22788  the original file that serves as a base for final material and the produced
22789  file that is included in your exported or printed document.
22790  For example, consider the case of a figure produced with 
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 Xfig
22796 \end_layout
22797
22798 \end_inset
22799
22800 .
22801  The Xfig application itself works on an original file with the 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 .fig
22807 \end_layout
22808
22809 \end_inset
22810
22811  extension.
22812  Within Xfig, you create and change your figure, and when you are done,
22813  you save the 
22814 \begin_inset Flex Code
22815 status collapsed
22816
22817 \begin_layout Plain Layout
22818 fig
22819 \end_layout
22820
22821 \end_inset
22822
22823 -file.
22824  When you want to include the figure in your document, you invoke 
22825 \begin_inset Flex Code
22826 status collapsed
22827
22828 \begin_layout Plain Layout
22829 transfig
22830 \end_layout
22831
22832 \end_inset
22833
22834  in order to create a PostScript file that can readily be included in your
22835  LaTeX file.
22836  In this case, the 
22837 \begin_inset Flex Code
22838 status collapsed
22839
22840 \begin_layout Plain Layout
22841 .fig
22842 \end_layout
22843
22844 \end_inset
22845
22846  file is the original file, and the PostScript file is the produced file.
22847 \end_layout
22848
22849 \begin_layout Standard
22850 This distinction is important in order to allow updating of the material
22851  while you are in the process of writing the document.
22852  Furthermore, it provides us with the flexibility that is needed to support
22853  multiple export formats.
22854  For instance, in the case of a plain text file, it is not exactly an award-winn
22855 ing idea to include the figure as raw PostScript.
22856  Instead, you would either prefer to just include a reference to the figure
22857  or try to invoke some graphics to ASCII converter to make the final result
22858  look similar to the real graphics.
22859  The external material management allows you to do this, because it is parametri
22860 zed on the different export formats that LyX supports.
22861 \end_layout
22862
22863 \begin_layout Standard
22864 Besides supporting the production of different products according to the
22865  exported format, it supports tight integration with editing and viewing
22866  applications.
22867  In the case of an Xfig figure, you are able to invoke Xfig on the original
22868  file with a single click from within the external material dialog in LyX,
22869  and also preview the produced PostScript file with Ghostview with another
22870  click.
22871  No more fiddling around with the command line and/or file browsers to locate
22872  and manipulate the original or produced files.
22873  In this way, you are finally able to take full advantage of the many different
22874  applications that are relevant to use when you write your documents, and
22875  ultimately be more productive.
22876 \end_layout
22877
22878 \begin_layout Section
22879 The external template configuration file
22880 \end_layout
22881
22882 \begin_layout Standard
22883 It is relatively easy to add custom external template definitions to LyX.
22884  However, be aware that doing this in an careless manner most probably 
22885 \emph on
22886 will
22887 \emph default
22888  introduce an easily exploitable security hole.
22889  So before you do this, please read the discussion about security in section
22890  
22891 \begin_inset CommandInset ref
22892 LatexCommand ref
22893 reference "sec:Security-discussion"
22894
22895 \end_inset
22896
22897 .
22898 \end_layout
22899
22900 \begin_layout Standard
22901 Having said that, we encourage you to submit any interesting templates that
22902  you create.
22903  
22904 \end_layout
22905
22906 \begin_layout Standard
22907 The external templates are defined in the 
22908 \begin_inset Flex Code
22909 status collapsed
22910
22911 \begin_layout Plain Layout
22912 LyXDir/lib/external_templates
22913 \end_layout
22914
22915 \end_inset
22916
22917  file.
22918  You can place your own version in 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 UserDir/external_templates
22924 \end_layout
22925
22926 \end_inset
22927
22928 .
22929 \end_layout
22930
22931 \begin_layout Standard
22932 A typical template looks like this:
22933 \end_layout
22934
22935 \begin_layout LyX-Code
22936 Template XFig
22937 \end_layout
22938
22939 \begin_layout LyX-Code
22940 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
22941 \end_layout
22942
22943 \begin_layout LyX-Code
22944 HelpText
22945 \end_layout
22946
22947 \begin_layout LyX-Code
22948 An XFig figure.
22949 \end_layout
22950
22951 \begin_layout LyX-Code
22952 HelpTextEnd
22953 \end_layout
22954
22955 \begin_layout LyX-Code
22956 InputFormat fig
22957 \end_layout
22958
22959 \begin_layout LyX-Code
22960 FileFilter "*.fig"
22961 \end_layout
22962
22963 \begin_layout LyX-Code
22964 AutomaticProduction true
22965 \end_layout
22966
22967 \begin_layout LyX-Code
22968 Transform Rotate
22969 \end_layout
22970
22971 \begin_layout LyX-Code
22972 Transform Resize
22973 \end_layout
22974
22975 \begin_layout LyX-Code
22976 Format LaTeX
22977 \end_layout
22978
22979 \begin_layout LyX-Code
22980 TransformCommand Rotate RotationLatexCommand
22981 \end_layout
22982
22983 \begin_layout LyX-Code
22984 TransformCommand Resize ResizeLatexCommand
22985 \end_layout
22986
22987 \begin_layout LyX-Code
22988 Product "$$RotateFront$$ResizeFront
22989 \end_layout
22990
22991 \begin_layout LyX-Code
22992          
22993 \backslash
22994
22995 \backslash
22996 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
22997 \end_layout
22998
22999 \begin_layout LyX-Code
23000          $$ResizeBack$$RotateBack"
23001 \end_layout
23002
23003 \begin_layout LyX-Code
23004 UpdateFormat pstex
23005 \end_layout
23006
23007 \begin_layout LyX-Code
23008 UpdateResult "$$AbsPath$$Basename.pstex_t"
23009 \end_layout
23010
23011 \begin_layout LyX-Code
23012 Requirement "graphicx"
23013 \end_layout
23014
23015 \begin_layout LyX-Code
23016 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23017 \end_layout
23018
23019 \begin_layout LyX-Code
23020 ReferencedFile latex "$$AbsPath$$Basename.eps"
23021 \end_layout
23022
23023 \begin_layout LyX-Code
23024 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23025 \end_layout
23026
23027 \begin_layout LyX-Code
23028 FormatEnd
23029 \end_layout
23030
23031 \begin_layout LyX-Code
23032 Format PDFLaTeX
23033 \end_layout
23034
23035 \begin_layout LyX-Code
23036 TransformCommand Rotate RotationLatexCommand
23037 \end_layout
23038
23039 \begin_layout LyX-Code
23040 TransformCommand Resize ResizeLatexCommand
23041 \end_layout
23042
23043 \begin_layout LyX-Code
23044 Product "$$RotateFront$$ResizeFront
23045 \end_layout
23046
23047 \begin_layout LyX-Code
23048          
23049 \backslash
23050
23051 \backslash
23052 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23053 \end_layout
23054
23055 \begin_layout LyX-Code
23056          $$ResizeBack$$RotateBack"
23057 \end_layout
23058
23059 \begin_layout LyX-Code
23060 UpdateFormat pdftex
23061 \end_layout
23062
23063 \begin_layout LyX-Code
23064 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23065 \end_layout
23066
23067 \begin_layout LyX-Code
23068 Requirement "graphicx"
23069 \end_layout
23070
23071 \begin_layout LyX-Code
23072 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23073 \end_layout
23074
23075 \begin_layout LyX-Code
23076 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23077 \end_layout
23078
23079 \begin_layout LyX-Code
23080 FormatEnd
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084 Format Ascii
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 Product "$$Contents(
23089 \backslash
23090 "$$AbsPath$$Basename.asc
23091 \backslash
23092 ")"
23093 \end_layout
23094
23095 \begin_layout LyX-Code
23096 UpdateFormat asciixfig
23097 \end_layout
23098
23099 \begin_layout LyX-Code
23100 UpdateResult "$$AbsPath$$Basename.asc"
23101 \end_layout
23102
23103 \begin_layout LyX-Code
23104 FormatEnd
23105 \end_layout
23106
23107 \begin_layout LyX-Code
23108 Format DocBook
23109 \end_layout
23110
23111 \begin_layout LyX-Code
23112 Product "<graphic fileref=
23113 \backslash
23114 "$$AbsOrRelPathMaster$$Basename.eps
23115 \backslash
23116 ">
23117 \end_layout
23118
23119 \begin_layout LyX-Code
23120          </graphic>"
23121 \end_layout
23122
23123 \begin_layout LyX-Code
23124 UpdateFormat eps
23125 \end_layout
23126
23127 \begin_layout LyX-Code
23128 UpdateResult "$$AbsPath$$Basename.eps"
23129 \end_layout
23130
23131 \begin_layout LyX-Code
23132 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23133 \end_layout
23134
23135 \begin_layout LyX-Code
23136 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23137 \end_layout
23138
23139 \begin_layout LyX-Code
23140 FormatEnd
23141 \end_layout
23142
23143 \begin_layout LyX-Code
23144 Product "[XFig: $$FName]"
23145 \end_layout
23146
23147 \begin_layout LyX-Code
23148 FormatEnd
23149 \end_layout
23150
23151 \begin_layout LyX-Code
23152 TemplateEnd
23153 \end_layout
23154
23155 \begin_layout Standard
23156 As you can see, the template is enclosed in 
23157 \begin_inset Flex Code
23158 status collapsed
23159
23160 \begin_layout Plain Layout
23161 Template
23162 \end_layout
23163
23164 \end_inset
23165
23166  \SpecialChar \ldots{}
23167  
23168 \begin_inset Flex Code
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172 TemplateEnd
23173 \end_layout
23174
23175 \end_inset
23176
23177 .
23178  It contains a header specifying some general settings and, for each supported
23179  primary document file format, a section 
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 Format
23185 \end_layout
23186
23187 \end_inset
23188
23189  \SpecialChar \ldots{}
23190  
23191 \begin_inset Flex Code
23192 status collapsed
23193
23194 \begin_layout Plain Layout
23195 FormatEnd
23196 \end_layout
23197
23198 \end_inset
23199
23200 .
23201 \end_layout
23202
23203 \begin_layout Subsection
23204 The template header
23205 \end_layout
23206
23207 \begin_layout Description
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212 AutomaticProduction
23213 \begin_inset space ~
23214 \end_inset
23215
23216 true|false
23217 \end_layout
23218
23219 \end_inset
23220
23221  Whether the file represented by the template must be generated by LyX.
23222  This command must occur exactly once.
23223 \end_layout
23224
23225 \begin_layout Description
23226 \begin_inset Flex Code
23227 status collapsed
23228
23229 \begin_layout Plain Layout
23230 FileFilter
23231 \begin_inset space ~
23232 \end_inset
23233
23234 <pattern>
23235 \end_layout
23236
23237 \end_inset
23238
23239  A glob pattern that is used in the file dialog to filter out the desired
23240  files.
23241  If there is more than one possible file extension (e.
23242 \begin_inset space \thinspace{}
23243 \end_inset
23244
23245 g.
23246 \begin_inset space \space{}
23247 \end_inset
23248
23249 tgif has 
23250 \begin_inset Flex Code
23251 status collapsed
23252
23253 \begin_layout Plain Layout
23254 .obj
23255 \end_layout
23256
23257 \end_inset
23258
23259  and 
23260 \begin_inset Flex Code
23261 status collapsed
23262
23263 \begin_layout Plain Layout
23264 .tgo
23265 \end_layout
23266
23267 \end_inset
23268
23269 ), use something like 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 "*.{obj,tgo}"
23275 \end_layout
23276
23277 \end_inset
23278
23279 .
23280  This command must occur exactly once.
23281 \end_layout
23282
23283 \begin_layout Description
23284 \begin_inset Flex Code
23285 status collapsed
23286
23287 \begin_layout Plain Layout
23288 GuiName
23289 \begin_inset space ~
23290 \end_inset
23291
23292 <guiname>
23293 \end_layout
23294
23295 \end_inset
23296
23297  The text that is displayed on the button.
23298  This command must occur exactly once.
23299 \end_layout
23300
23301 \begin_layout Description
23302 \begin_inset Flex Code
23303 status collapsed
23304
23305 \begin_layout Plain Layout
23306 HelpText
23307 \begin_inset space ~
23308 \end_inset
23309
23310 <text>
23311 \begin_inset space ~
23312 \end_inset
23313
23314 HelpTextEnd
23315 \end_layout
23316
23317 \end_inset
23318
23319  The help text that is used in the External dialog.
23320  Provide enough information to explain to the user just what the template
23321  can provide him with.
23322  This command must occur exactly once.
23323 \end_layout
23324
23325 \begin_layout Description
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330 InputFormat
23331 \begin_inset space ~
23332 \end_inset
23333
23334 <format>
23335 \end_layout
23336
23337 \end_inset
23338
23339  The file format of the original file.
23340  This must be the name of a format that is known to LyX (see section
23341 \begin_inset space ~
23342 \end_inset
23343
23344
23345 \begin_inset CommandInset ref
23346 LatexCommand ref
23347 reference "sec:Formats"
23348
23349 \end_inset
23350
23351 ).
23352  Use 
23353 \begin_inset Quotes eld
23354 \end_inset
23355
23356
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 *
23362 \end_layout
23363
23364 \end_inset
23365
23366
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370  if the template can handle original files of more than one format.
23371  LyX will attempt to interrogate the file itself in order to deduce its
23372  format in this case.
23373  This command must occur exactly once.
23374 \end_layout
23375
23376 \begin_layout Description
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381 Template
23382 \begin_inset space ~
23383 \end_inset
23384
23385 <id>
23386 \end_layout
23387
23388 \end_inset
23389
23390  A unique name for the template.
23391  It must not contain substitution macros (see below).
23392 \end_layout
23393
23394 \begin_layout Description
23395 \begin_inset Flex Code
23396 status collapsed
23397
23398 \begin_layout Plain Layout
23399 Transform
23400 \begin_inset space ~
23401 \end_inset
23402
23403 Rotate|Resize|Clip|Extra
23404 \end_layout
23405
23406 \end_inset
23407
23408  This command specifies which transformations are supported by this template.
23409  It may occur zero or more times.
23410  This command enables the corresponding tabs in the external dialog.
23411  Each 
23412 \begin_inset Flex Code
23413 status collapsed
23414
23415 \begin_layout Plain Layout
23416 Transform
23417 \end_layout
23418
23419 \end_inset
23420
23421  command must have either a corresponding 
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 TransformCommand
23427 \end_layout
23428
23429 \end_inset
23430
23431  or a 
23432 \begin_inset Flex Code
23433 status collapsed
23434
23435 \begin_layout Plain Layout
23436 TransformOption
23437 \end_layout
23438
23439 \end_inset
23440
23441  command in the 
23442 \begin_inset Flex Code
23443 status collapsed
23444
23445 \begin_layout Plain Layout
23446 Format
23447 \end_layout
23448
23449 \end_inset
23450
23451  section.
23452  Otherwise the transformation will not be supported by that format.
23453 \end_layout
23454
23455 \begin_layout Subsection
23456 The Format section
23457 \end_layout
23458
23459 \begin_layout Description
23460 \begin_inset Flex Code
23461 status collapsed
23462
23463 \begin_layout Plain Layout
23464 Format
23465 \begin_inset space ~
23466 \end_inset
23467
23468 LaTeX|PDFLaTeX|PlainText|DocBook
23469 \end_layout
23470
23471 \end_inset
23472
23473  The primary document file format that this format definition is for.
23474  Not every template has a sensible representation in all document file formats.
23475  Please define nevertheless a 
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480 Format
23481 \end_layout
23482
23483 \end_inset
23484
23485  section for all templates.
23486  Use a dummy text when no representation is available.
23487  Then you can at least see a reference to the external material in the exported
23488  document.
23489 \end_layout
23490
23491 \begin_layout Description
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 Option
23497 \begin_inset space ~
23498 \end_inset
23499
23500 <name>
23501 \begin_inset space ~
23502 \end_inset
23503
23504 <value>
23505 \end_layout
23506
23507 \end_inset
23508
23509  This command defines an additional macro 
23510 \begin_inset Flex Code
23511 status collapsed
23512
23513 \begin_layout Plain Layout
23514 $$<name>
23515 \end_layout
23516
23517 \end_inset
23518
23519  for substitution in 
23520 \begin_inset Flex Code
23521 status collapsed
23522
23523 \begin_layout Plain Layout
23524 Product
23525 \end_layout
23526
23527 \end_inset
23528
23529 .
23530  
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535 <value>
23536 \end_layout
23537
23538 \end_inset
23539
23540  itself may contain substitution macros.
23541  The advantage over using 
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 <value>
23547 \end_layout
23548
23549 \end_inset
23550
23551  directly in 
23552 \begin_inset Flex Code
23553 status collapsed
23554
23555 \begin_layout Plain Layout
23556 Product
23557 \end_layout
23558
23559 \end_inset
23560
23561  is that the substituted value of 
23562 \begin_inset Flex Code
23563 status collapsed
23564
23565 \begin_layout Plain Layout
23566 $$<name>
23567 \end_layout
23568
23569 \end_inset
23570
23571  is sanitized so that it is a valid optional argument in the document format.
23572  This command may occur zero or more times.
23573 \end_layout
23574
23575 \begin_layout Description
23576 \begin_inset Flex Code
23577 status collapsed
23578
23579 \begin_layout Plain Layout
23580 Product
23581 \begin_inset space ~
23582 \end_inset
23583
23584 <text>
23585 \end_layout
23586
23587 \end_inset
23588
23589  The text that is inserted in the exported document.
23590  This is actually the most important command and can be quite complex.
23591  This command must occur exactly once.
23592 \end_layout
23593
23594 \begin_layout Description
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 Preamble
23600 \begin_inset space ~
23601 \end_inset
23602
23603 <name>
23604 \end_layout
23605
23606 \end_inset
23607
23608  This command specifies a preamble snippet that will be included in the
23609  LaTeX preamble.
23610  It has to be defined using 
23611 \begin_inset Flex Code
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615 PreambleDef
23616 \end_layout
23617
23618 \end_inset
23619
23620  \SpecialChar \ldots{}
23621  
23622 \begin_inset Flex Code
23623 status collapsed
23624
23625 \begin_layout Plain Layout
23626 PreambleDefEnd
23627 \end_layout
23628
23629 \end_inset
23630
23631 .
23632  This command may occur zero or more times.
23633 \end_layout
23634
23635 \begin_layout Description
23636 \begin_inset Flex Code
23637 status collapsed
23638
23639 \begin_layout Plain Layout
23640 ReferencedFile
23641 \begin_inset space ~
23642 \end_inset
23643
23644 <format>
23645 \begin_inset space ~
23646 \end_inset
23647
23648 <filename>
23649 \end_layout
23650
23651 \end_inset
23652
23653  This command denotes files that are created by the conversion process and
23654  are needed for a particular export format.
23655  If the filename is relative, it is interpreted relative to the master document.
23656  This command may be given zero or more times.
23657 \end_layout
23658
23659 \begin_layout Description
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664 Requirement
23665 \begin_inset space ~
23666 \end_inset
23667
23668 <package>
23669 \end_layout
23670
23671 \end_inset
23672
23673  The name of a required LaTeX package.
23674  The package is included via 
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679
23680 \backslash
23681 usepackage{}
23682 \end_layout
23683
23684 \end_inset
23685
23686  in the LaTeX preamble.
23687  This command may occur 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 TransformCommand
23696 \begin_inset space ~
23697 \end_inset
23698
23699 Rotate
23700 \begin_inset space ~
23701 \end_inset
23702
23703 RotationLatexCommand
23704 \end_layout
23705
23706 \end_inset
23707
23708  This command specifies that the built in LaTeX command should be used for
23709  rotation.
23710  This command may occur once or not at all.
23711 \end_layout
23712
23713 \begin_layout Description
23714 \begin_inset Flex Code
23715 status collapsed
23716
23717 \begin_layout Plain Layout
23718 TransformCommand
23719 \begin_inset space ~
23720 \end_inset
23721
23722 Resize
23723 \begin_inset space ~
23724 \end_inset
23725
23726 ResizeLatexCommand
23727 \end_layout
23728
23729 \end_inset
23730
23731  This command specifies that the built in LaTeX command should be used for
23732  resizing.
23733  This command may occur once or not at all.
23734 \end_layout
23735
23736 \begin_layout Description
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741 TransformOption
23742 \begin_inset space ~
23743 \end_inset
23744
23745 Rotate
23746 \begin_inset space ~
23747 \end_inset
23748
23749 RotationLatexOption
23750 \end_layout
23751
23752 \end_inset
23753
23754  This command specifies that rotation is done via an optional argument.
23755  This command may occur once or not at all.
23756 \end_layout
23757
23758 \begin_layout Description
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 TransformOption
23764 \begin_inset space ~
23765 \end_inset
23766
23767 Resize
23768 \begin_inset space ~
23769 \end_inset
23770
23771 ResizeLatexOption
23772 \end_layout
23773
23774 \end_inset
23775
23776  This command specifies that resizing is done via an optional argument.
23777  This command may occur once or not at all.
23778 \end_layout
23779
23780 \begin_layout Description
23781 \begin_inset Flex Code
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785 TransformOption
23786 \begin_inset space ~
23787 \end_inset
23788
23789 Clip
23790 \begin_inset space ~
23791 \end_inset
23792
23793 ClipLatexOption
23794 \end_layout
23795
23796 \end_inset
23797
23798  This command specifies that clipping is done via an optional argument.
23799  This command may occur once or not at all.
23800 \end_layout
23801
23802 \begin_layout Description
23803 \begin_inset Flex Code
23804 status collapsed
23805
23806 \begin_layout Plain Layout
23807 TransformOption
23808 \begin_inset space ~
23809 \end_inset
23810
23811 Extra
23812 \begin_inset space ~
23813 \end_inset
23814
23815 ExtraLatexOption
23816 \end_layout
23817
23818 \end_inset
23819
23820  This command specifies that an extra optional argument is used.
23821  This command may occur once or not at all.
23822 \end_layout
23823
23824 \begin_layout Description
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 UpdateFormat
23830 \begin_inset space ~
23831 \end_inset
23832
23833 <format>
23834 \end_layout
23835
23836 \end_inset
23837
23838  The file format of the converted file.
23839  This must be the name of a format that is known to LyX (see the 
23840 \begin_inset Flex MenuItem
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844
23845 \bar under
23846 T
23847 \bar default
23848 ools\SpecialChar \menuseparator
23849
23850 \bar under
23851 P
23852 \bar default
23853 references\SpecialChar \menuseparator
23854 File Handling\SpecialChar \menuseparator
23855 File Format
23856 \end_layout
23857
23858 \end_inset
23859
23860  dialog).
23861  This command must occur exactly once.
23862
23863 \change_inserted -195340706 1363813305
23864  If the resulting file format is PDF, you need to specify the format 
23865 \begin_inset Flex Code
23866 status collapsed
23867
23868 \begin_layout Plain Layout
23869
23870 \change_inserted -195340706 1363813269
23871 pdf6
23872 \end_layout
23873
23874 \end_inset
23875
23876 .
23877  This is the PDF format used for including graphics.
23878  The other defined PDF formats are for document export.
23879 \change_unchanged
23880
23881 \end_layout
23882
23883 \begin_layout Description
23884 \begin_inset Flex Code
23885 status collapsed
23886
23887 \begin_layout Plain Layout
23888 UpdateResult
23889 \begin_inset space ~
23890 \end_inset
23891
23892 <filename>
23893 \end_layout
23894
23895 \end_inset
23896
23897  The file name of the converted file.
23898  The file name must be absolute.
23899  This command must occur exactly once.
23900 \end_layout
23901
23902 \begin_layout Subsection
23903 Preamble definitions
23904 \end_layout
23905
23906 \begin_layout Standard
23907 The external template configuration file may contain additional preamble
23908  definitions enclosed by 
23909 \begin_inset Flex Code
23910 status collapsed
23911
23912 \begin_layout Plain Layout
23913 PreambleDef
23914 \end_layout
23915
23916 \end_inset
23917
23918  \SpecialChar \ldots{}
23919  
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 PreambleDefEnd
23925 \end_layout
23926
23927 \end_inset
23928
23929 .
23930  They can be used by the templates in the 
23931 \begin_inset Flex Code
23932 status collapsed
23933
23934 \begin_layout Plain Layout
23935 Format
23936 \end_layout
23937
23938 \end_inset
23939
23940  section.
23941 \end_layout
23942
23943 \begin_layout Section
23944 The substitution mechanism
23945 \end_layout
23946
23947 \begin_layout Standard
23948 When the external material facility invokes an external program, it is done
23949  on the basis of a command defined in the template configuration file.
23950  These commands can contain various macros that are expanded before execution.
23951  Execution always take place in the directory of the containing document.
23952 \end_layout
23953
23954 \begin_layout Standard
23955 Also, whenever external material is to be displayed, the name will be produced
23956  by the substitution mechanism, and most other commands in the template
23957  definition support substitution as well.
23958 \end_layout
23959
23960 \begin_layout Standard
23961 The available macros are the following:
23962 \end_layout
23963
23964 \begin_layout Description
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 $$AbsOrRelPathMaster
23970 \end_layout
23971
23972 \end_inset
23973
23974  The file path, absolute or relative to the master LyX document.
23975 \end_layout
23976
23977 \begin_layout Description
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982 $$AbsOrRelPathParent
23983 \end_layout
23984
23985 \end_inset
23986
23987  The file path, absolute or relative to the LyX document.
23988 \end_layout
23989
23990 \begin_layout Description
23991 \begin_inset Flex Code
23992 status collapsed
23993
23994 \begin_layout Plain Layout
23995 $$AbsPath
23996 \end_layout
23997
23998 \end_inset
23999
24000  The absolute file path.
24001 \end_layout
24002
24003 \begin_layout Description
24004 \begin_inset Flex Code
24005 status collapsed
24006
24007 \begin_layout Plain Layout
24008 $$Basename
24009 \end_layout
24010
24011 \end_inset
24012
24013  The filename without path and without the extension.
24014 \end_layout
24015
24016 \begin_layout Description
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021 $$Contents(
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 filename.ext
24026 \begin_inset Quotes erd
24027 \end_inset
24028
24029 )
24030 \end_layout
24031
24032 \end_inset
24033
24034  This macro will expand to the contents of the file with the name 
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 filename.ext
24040 \end_layout
24041
24042 \end_inset
24043
24044 .
24045 \end_layout
24046
24047 \begin_layout Description
24048 \begin_inset Flex Code
24049 status collapsed
24050
24051 \begin_layout Plain Layout
24052 $$Extension
24053 \end_layout
24054
24055 \end_inset
24056
24057  The file extension (including the dot).
24058 \end_layout
24059
24060 \begin_layout Description
24061 \begin_inset Flex Code
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065 $$FName
24066 \end_layout
24067
24068 \end_inset
24069
24070  The filename of the file specified in the external material dialog.
24071  This is either an absolute name, or it is relative to the LyX document.
24072 \end_layout
24073
24074 \begin_layout Description
24075 \begin_inset Flex Code
24076 status collapsed
24077
24078 \begin_layout Plain Layout
24079 $$FPath
24080 \end_layout
24081
24082 \end_inset
24083
24084  The path part of 
24085 \begin_inset Flex Code
24086 status collapsed
24087
24088 \begin_layout Plain Layout
24089 $$FName
24090 \end_layout
24091
24092 \end_inset
24093
24094  (absolute name or relative to the LyX document).
24095 \end_layout
24096
24097 \begin_layout Description
24098 \begin_inset Flex Code
24099 status collapsed
24100
24101 \begin_layout Plain Layout
24102 $$RelPathMaster
24103 \end_layout
24104
24105 \end_inset
24106
24107  The file path, relative to the master LyX document.
24108 \end_layout
24109
24110 \begin_layout Description
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 $$RelPathParent
24116 \end_layout
24117
24118 \end_inset
24119
24120  The file path, relative to the LyX document.
24121 \end_layout
24122
24123 \begin_layout Description
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128 $$Sysdir
24129 \end_layout
24130
24131 \end_inset
24132
24133  This macro will expand to the absolute path of the system directory.
24134  This is typically used to point to the various helper scripts that are
24135  bundled with LyX.
24136 \end_layout
24137
24138 \begin_layout Description
24139 \begin_inset Flex Code
24140 status collapsed
24141
24142 \begin_layout Plain Layout
24143 $$Tempname
24144 \end_layout
24145
24146 \end_inset
24147
24148  A name and full path to a temporary file which will be automatically deleted
24149  whenever the containing document is closed, or the external material insertion
24150  deleted.
24151 \end_layout
24152
24153 \begin_layout Standard
24154 All path macros contain a trailing directory separator, so you can construct
24155  e.
24156 \begin_inset space \thinspace{}
24157 \end_inset
24158
24159 g.
24160 \begin_inset space \space{}
24161 \end_inset
24162
24163 the absolute filename with 
24164 \begin_inset Flex Code
24165 status collapsed
24166
24167 \begin_layout Plain Layout
24168 $$AbsPath$$Basename$$Extension
24169 \end_layout
24170
24171 \end_inset
24172
24173 .
24174 \end_layout
24175
24176 \begin_layout Standard
24177 The macros above are substituted in all commands unless otherwise noted.
24178  The command 
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183 Product
24184 \end_layout
24185
24186 \end_inset
24187
24188  supports additionally the following substitutions if they are enabled by
24189  the 
24190 \begin_inset Flex Code
24191 status collapsed
24192
24193 \begin_layout Plain Layout
24194 Transform
24195 \end_layout
24196
24197 \end_inset
24198
24199  and 
24200 \begin_inset Flex Code
24201 status collapsed
24202
24203 \begin_layout Plain Layout
24204 TransformCommand
24205 \end_layout
24206
24207 \end_inset
24208
24209  commands:
24210 \end_layout
24211
24212 \begin_layout Description
24213 \begin_inset Flex Code
24214 status collapsed
24215
24216 \begin_layout Plain Layout
24217 $$ResizeFront
24218 \end_layout
24219
24220 \end_inset
24221
24222  The front part of the resize command.
24223 \end_layout
24224
24225 \begin_layout Description
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 $$ResizeBack
24231 \end_layout
24232
24233 \end_inset
24234
24235  The back part of the resize command.
24236 \end_layout
24237
24238 \begin_layout Description
24239 \begin_inset Flex Code
24240 status collapsed
24241
24242 \begin_layout Plain Layout
24243 $$RotateFront
24244 \end_layout
24245
24246 \end_inset
24247
24248  The front part of the rotation command.
24249 \end_layout
24250
24251 \begin_layout Description
24252 \begin_inset Flex Code
24253 status collapsed
24254
24255 \begin_layout Plain Layout
24256 $$RotateBack
24257 \end_layout
24258
24259 \end_inset
24260
24261  The back part of the rotation command.
24262 \end_layout
24263
24264 \begin_layout Standard
24265 The value string of the 
24266 \begin_inset Flex Code
24267 status collapsed
24268
24269 \begin_layout Plain Layout
24270 Option
24271 \end_layout
24272
24273 \end_inset
24274
24275  command supports additionally the following substitutions if they are enabled
24276  by the 
24277 \begin_inset Flex Code
24278 status collapsed
24279
24280 \begin_layout Plain Layout
24281 Transform
24282 \end_layout
24283
24284 \end_inset
24285
24286  and 
24287 \begin_inset Flex Code
24288 status collapsed
24289
24290 \begin_layout Plain Layout
24291 TransformOption
24292 \end_layout
24293
24294 \end_inset
24295
24296  commands:
24297 \end_layout
24298
24299 \begin_layout Description
24300 \begin_inset Flex Code
24301 status collapsed
24302
24303 \begin_layout Plain Layout
24304 $$Clip
24305 \end_layout
24306
24307 \end_inset
24308
24309  The clip option.
24310 \end_layout
24311
24312 \begin_layout Description
24313 \begin_inset Flex Code
24314 status collapsed
24315
24316 \begin_layout Plain Layout
24317 $$Extra
24318 \end_layout
24319
24320 \end_inset
24321
24322  The extra option.
24323 \end_layout
24324
24325 \begin_layout Description
24326 \begin_inset Flex Code
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 $$Resize
24331 \end_layout
24332
24333 \end_inset
24334
24335  The resize option.
24336 \end_layout
24337
24338 \begin_layout Description
24339 \begin_inset Flex Code
24340 status collapsed
24341
24342 \begin_layout Plain Layout
24343 $$Rotate
24344 \end_layout
24345
24346 \end_inset
24347
24348  The rotation option.
24349 \end_layout
24350
24351 \begin_layout Standard
24352 You may ask why there are so many path macros.
24353  There are mainly two reasons:
24354 \end_layout
24355
24356 \begin_layout Enumerate
24357 Relative and absolute file names should remain relative or absolute, respectivel
24358 y.
24359  Users may have reasons to prefer either form.
24360  Relative names are useful for portable documents that should work on different
24361  machines, for example.
24362  Absolute names may be required by some programs.
24363 \end_layout
24364
24365 \begin_layout Enumerate
24366 LaTeX treats relative file names differently than LyX and other programs
24367  in nested included files.
24368  For LyX, a relative file name is always relative to the document that contains
24369  the file name.
24370  For LaTeX, it is always relative to the master document.
24371  These two definitions are identical if you have only one document, but
24372  differ if you have a master document that includes part documents.
24373  That means that relative filenames must be transformed when presented to
24374  LaTeX.
24375  Fortunately LyX does this automatically for you if you choose the right
24376  macros.
24377 \end_layout
24378
24379 \begin_layout Standard
24380 So which path macro should be used in new template definitions? The rule
24381  is not difficult:
24382 \end_layout
24383
24384 \begin_layout Itemize
24385 Use 
24386 \begin_inset Flex Code
24387 status collapsed
24388
24389 \begin_layout Plain Layout
24390 $$AbsPath
24391 \end_layout
24392
24393 \end_inset
24394
24395  if an absolute path is required.
24396 \end_layout
24397
24398 \begin_layout Itemize
24399 Use 
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 $$AbsOrRelPathMaster
24405 \end_layout
24406
24407 \end_inset
24408
24409  if the substituted string is some kind of LaTeX input.
24410 \end_layout
24411
24412 \begin_layout Itemize
24413 Else use 
24414 \begin_inset Flex Code
24415 status collapsed
24416
24417 \begin_layout Plain Layout
24418 $$AbsOrRelPathParent
24419 \end_layout
24420
24421 \end_inset
24422
24423  in order to preserve the user's choice.
24424 \end_layout
24425
24426 \begin_layout Standard
24427 There are special cases where this rule does not work and e.
24428 \begin_inset space \thinspace{}
24429 \end_inset
24430
24431 g.
24432 \begin_inset space \space{}
24433 \end_inset
24434
24435 relative names are needed, but normally it will work just fine.
24436  One example for such a case is the command 
24437 \begin_inset Flex Code
24438 status collapsed
24439
24440 \begin_layout Plain Layout
24441 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24442 \end_layout
24443
24444 \end_inset
24445
24446  in the XFig template above: We can't use the absolute name because the
24447  copier for 
24448 \begin_inset Flex Code
24449 status collapsed
24450
24451 \begin_layout Plain Layout
24452 .pstex_t
24453 \end_layout
24454
24455 \end_inset
24456
24457  files needs the relative name in order to rewrite the file content.
24458 \end_layout
24459
24460 \begin_layout Section
24461 Security discussion
24462 \begin_inset CommandInset label
24463 LatexCommand label
24464 name "sec:Security-discussion"
24465
24466 \end_inset
24467
24468
24469 \end_layout
24470
24471 \begin_layout Standard
24472 The external material feature interfaces with a lot of external programs
24473  and does so automatically, so we have to consider the security implications
24474  of this.
24475  In particular, since you have the option of including your own filenames
24476  and/or parameter strings and those are expanded into a command, it seems
24477  that it would be possible to create a malicious document which executes
24478  arbitrary commands when a user views or prints the document.
24479  This is something we definitely want to avoid.
24480 \end_layout
24481
24482 \begin_layout Standard
24483 However, since the external program commands are specified in the template
24484  configuration file only, there are no security issues if LyX is properly
24485  configured with safe templates only.
24486  This is so because the external programs are invoked with the 
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 execvp
24492 \end_layout
24493
24494 \end_inset
24495
24496 -system call rather than the 
24497 \begin_inset Flex Code
24498 status collapsed
24499
24500 \begin_layout Plain Layout
24501 system
24502 \end_layout
24503
24504 \end_inset
24505
24506  system-call, so it's not possible to execute arbitrary commands from the
24507  filename or parameter section via the shell.
24508 \end_layout
24509
24510 \begin_layout Standard
24511 This also implies that you are restricted in what command strings you can
24512  use in the external material templates.
24513  In particular, pipes and redirection are not readily available.
24514  This has to be so if LyX should remain safe.
24515  If you want to use some of the shell features, you should write a safe
24516  script to do this in a controlled manner, and then invoke the script from
24517  the command string.
24518  
24519 \end_layout
24520
24521 \begin_layout Standard
24522 It is possible to design a template that interacts directly with the shell,
24523  but since this would allow a malicious user to execute arbitrary commands
24524  by writing clever filenames and/or parameters, we generally recommend that
24525  you only use safe scripts that work with the 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 execvp
24531 \end_layout
24532
24533 \end_inset
24534
24535  system call in a controlled manner.
24536  Of course, for use in a controlled environment, it can be tempting to just
24537  fall back to use ordinary shell scripts.
24538  If you do so, be aware that you 
24539 \emph on
24540 will
24541 \emph default
24542  provide an easily exploitable security hole in your system.
24543  Of course it stands to reason that such unsafe templates will never be
24544  included in the standard LyX distribution, although we do encourage people
24545  to submit new templates in the open source tradition.
24546  But LyX as shipped from the official distribution channels will never have
24547  unsafe templates.
24548 \end_layout
24549
24550 \begin_layout Standard
24551 Including external material provides a lot of power, and you have to be
24552  careful not to introduce security hazards with this power.
24553  A subtle error in a single line in an innocent looking script can open
24554  the door to huge security problems.
24555  So if you do not fully understand the issues, we recommend that you consult
24556  a knowledgeable security professional or the LyX development team if you
24557  have any questions about whether a given template is safe or not.
24558  And do this before you use it in an uncontrolled environment.
24559 \end_layout
24560
24561 \begin_layout Chapter
24562 \start_of_appendix
24563 List of supported LyX functions to be used in layouts
24564 \begin_inset CommandInset label
24565 LatexCommand label
24566 name "chap:List-of-functions"
24567
24568 \end_inset
24569
24570
24571 \end_layout
24572
24573 \begin_layout Standard
24574 \align center
24575 \begin_inset Tabular
24576 <lyxtabular version="3" rows="11" columns="8">
24577 <features rotate="0" tabularvalignment="middle">
24578 <column alignment="left" valignment="top">
24579 <column alignment="left" valignment="top">
24580 <column alignment="left" valignment="top">
24581 <column alignment="left" valignment="top">
24582 <column alignment="left" valignment="top">
24583 <column alignment="left" valignment="top">
24584 <column alignment="left" valignment="top">
24585 <column alignment="left" valignment="top">
24586 <row>
24587 <cell alignment="left" valignment="top" usebox="none">
24588 \begin_inset Text
24589
24590 \begin_layout Plain Layout
24591 accents
24592 \end_layout
24593
24594 \end_inset
24595 </cell>
24596 <cell alignment="left" valignment="top" usebox="none">
24597 \begin_inset Text
24598
24599 \begin_layout Plain Layout
24600 booktabs
24601 \end_layout
24602
24603 \end_inset
24604 </cell>
24605 <cell alignment="left" valignment="top" usebox="none">
24606 \begin_inset Text
24607
24608 \begin_layout Plain Layout
24609 feyn
24610 \end_layout
24611
24612 \end_inset
24613 </cell>
24614 <cell alignment="left" valignment="top" usebox="none">
24615 \begin_inset Text
24616
24617 \begin_layout Plain Layout
24618 listings
24619 \end_layout
24620
24621 \end_inset
24622 </cell>
24623 <cell alignment="center" valignment="top" usebox="none">
24624 \begin_inset Text
24625
24626 \begin_layout Plain Layout
24627 natbib
24628 \end_layout
24629
24630 \end_inset
24631 </cell>
24632 <cell alignment="center" valignment="top" usebox="none">
24633 \begin_inset Text
24634
24635 \begin_layout Plain Layout
24636 rotfloat
24637 \end_layout
24638
24639 \end_inset
24640 </cell>
24641 <cell alignment="center" valignment="top" usebox="none">
24642 \begin_inset Text
24643
24644 \begin_layout Plain Layout
24645 tfrupee
24646 \end_layout
24647
24648 \end_inset
24649 </cell>
24650 <cell alignment="center" valignment="top" usebox="none">
24651 \begin_inset Text
24652
24653 \begin_layout Plain Layout
24654 wasysym
24655 \end_layout
24656
24657 \end_inset
24658 </cell>
24659 </row>
24660 <row>
24661 <cell alignment="left" valignment="top" usebox="none">
24662 \begin_inset Text
24663
24664 \begin_layout Plain Layout
24665 amsbsy
24666 \end_layout
24667
24668 \end_inset
24669 </cell>
24670 <cell alignment="left" valignment="top" usebox="none">
24671 \begin_inset Text
24672
24673 \begin_layout Plain Layout
24674 calc
24675 \end_layout
24676
24677 \end_inset
24678 </cell>
24679 <cell alignment="left" valignment="top" usebox="none">
24680 \begin_inset Text
24681
24682 \begin_layout Plain Layout
24683 fixltx2e
24684 \end_layout
24685
24686 \end_inset
24687 </cell>
24688 <cell alignment="left" valignment="top" usebox="none">
24689 \begin_inset Text
24690
24691 \begin_layout Plain Layout
24692 longtable
24693 \end_layout
24694
24695 \end_inset
24696 </cell>
24697 <cell alignment="center" valignment="top" usebox="none">
24698 \begin_inset Text
24699
24700 \begin_layout Plain Layout
24701 nomencl
24702 \end_layout
24703
24704 \end_inset
24705 </cell>
24706 <cell alignment="center" valignment="top" usebox="none">
24707 \begin_inset Text
24708
24709 \begin_layout Plain Layout
24710 rsphrase
24711 \end_layout
24712
24713 \end_inset
24714 </cell>
24715 <cell alignment="center" valignment="top" usebox="none">
24716 \begin_inset Text
24717
24718 \begin_layout Plain Layout
24719 tipa
24720 \end_layout
24721
24722 \end_inset
24723 </cell>
24724 <cell alignment="center" valignment="top" usebox="none">
24725 \begin_inset Text
24726
24727 \begin_layout Plain Layout
24728 wrapfig
24729 \end_layout
24730
24731 \end_inset
24732 </cell>
24733 </row>
24734 <row>
24735 <cell alignment="left" valignment="top" usebox="none">
24736 \begin_inset Text
24737
24738 \begin_layout Plain Layout
24739 amscd
24740 \end_layout
24741
24742 \end_inset
24743 </cell>
24744 <cell alignment="left" valignment="top" usebox="none">
24745 \begin_inset Text
24746
24747 \begin_layout Plain Layout
24748 CJK
24749 \end_layout
24750
24751 \end_inset
24752 </cell>
24753 <cell alignment="left" valignment="top" usebox="none">
24754 \begin_inset Text
24755
24756 \begin_layout Plain Layout
24757 float
24758 \end_layout
24759
24760 \end_inset
24761 </cell>
24762 <cell alignment="left" valignment="top" usebox="none">
24763 \begin_inset Text
24764
24765 \begin_layout Plain Layout
24766 lyxskak
24767 \end_layout
24768
24769 \end_inset
24770 </cell>
24771 <cell alignment="center" valignment="top" usebox="none">
24772 \begin_inset Text
24773
24774 \begin_layout Plain Layout
24775 pdfcolmk
24776 \end_layout
24777
24778 \end_inset
24779 </cell>
24780 <cell alignment="center" valignment="top" usebox="none">
24781 \begin_inset Text
24782
24783 \begin_layout Plain Layout
24784 setspace
24785 \end_layout
24786
24787 \end_inset
24788 </cell>
24789 <cell alignment="center" valignment="top" usebox="none">
24790 \begin_inset Text
24791
24792 \begin_layout Plain Layout
24793 tipx
24794 \end_layout
24795
24796 \end_inset
24797 </cell>
24798 <cell alignment="center" valignment="top" usebox="none">
24799 \begin_inset Text
24800
24801 \begin_layout Plain Layout
24802 xargs
24803 \end_layout
24804
24805 \end_inset
24806 </cell>
24807 </row>
24808 <row>
24809 <cell alignment="left" valignment="top" usebox="none">
24810 \begin_inset Text
24811
24812 \begin_layout Plain Layout
24813 amsmath
24814 \end_layout
24815
24816 \end_inset
24817 </cell>
24818 <cell alignment="left" valignment="top" usebox="none">
24819 \begin_inset Text
24820
24821 \begin_layout Plain Layout
24822 color
24823 \end_layout
24824
24825 \end_inset
24826 </cell>
24827 <cell alignment="left" valignment="top" usebox="none">
24828 \begin_inset Text
24829
24830 \begin_layout Plain Layout
24831 framed
24832 \end_layout
24833
24834 \end_inset
24835 </cell>
24836 <cell alignment="left" valignment="top" usebox="none">
24837 \begin_inset Text
24838
24839 \begin_layout Plain Layout
24840 makeidx
24841 \end_layout
24842
24843 \end_inset
24844 </cell>
24845 <cell alignment="center" valignment="top" usebox="none">
24846 \begin_inset Text
24847
24848 \begin_layout Plain Layout
24849 pdfpages
24850 \end_layout
24851
24852 \end_inset
24853 </cell>
24854 <cell alignment="center" valignment="top" usebox="none">
24855 \begin_inset Text
24856
24857 \begin_layout Plain Layout
24858 shapepar
24859 \end_layout
24860
24861 \end_inset
24862 </cell>
24863 <cell alignment="center" valignment="top" usebox="none">
24864 \begin_inset Text
24865
24866 \begin_layout Plain Layout
24867 tone
24868 \end_layout
24869
24870 \end_inset
24871 </cell>
24872 <cell alignment="center" valignment="top" usebox="none">
24873 \begin_inset Text
24874
24875 \begin_layout Plain Layout
24876 xcolor
24877 \end_layout
24878
24879 \end_inset
24880 </cell>
24881 </row>
24882 <row>
24883 <cell alignment="left" valignment="top" usebox="none">
24884 \begin_inset Text
24885
24886 \begin_layout Plain Layout
24887 amssymb
24888 \end_layout
24889
24890 \end_inset
24891 </cell>
24892 <cell alignment="left" valignment="top" usebox="none">
24893 \begin_inset Text
24894
24895 \begin_layout Plain Layout
24896 covington
24897 \end_layout
24898
24899 \end_inset
24900 </cell>
24901 <cell alignment="left" valignment="top" usebox="none">
24902 \begin_inset Text
24903
24904 \begin_layout Plain Layout
24905 graphicx
24906 \end_layout
24907
24908 \end_inset
24909 </cell>
24910 <cell alignment="left" valignment="top" usebox="none">
24911 \begin_inset Text
24912
24913 \begin_layout Plain Layout
24914 marvosym
24915 \end_layout
24916
24917 \end_inset
24918 </cell>
24919 <cell alignment="center" valignment="top" usebox="none">
24920 \begin_inset Text
24921
24922 \begin_layout Plain Layout
24923 pifont
24924 \end_layout
24925
24926 \end_inset
24927 </cell>
24928 <cell alignment="center" valignment="top" usebox="none">
24929 \begin_inset Text
24930
24931 \begin_layout Plain Layout
24932 slashed
24933 \end_layout
24934
24935 \end_inset
24936 </cell>
24937 <cell alignment="center" valignment="top" usebox="none">
24938 \begin_inset Text
24939
24940 \begin_layout Plain Layout
24941 txfonts
24942 \end_layout
24943
24944 \end_inset
24945 </cell>
24946 <cell alignment="center" valignment="top" usebox="none">
24947 \begin_inset Text
24948
24949 \begin_layout Plain Layout
24950 xy
24951 \end_layout
24952
24953 \end_inset
24954 </cell>
24955 </row>
24956 <row>
24957 <cell alignment="left" valignment="top" usebox="none">
24958 \begin_inset Text
24959
24960 \begin_layout Plain Layout
24961 amstext
24962 \end_layout
24963
24964 \end_inset
24965 </cell>
24966 <cell alignment="left" valignment="top" usebox="none">
24967 \begin_inset Text
24968
24969 \begin_layout Plain Layout
24970 csquotes
24971 \end_layout
24972
24973 \end_inset
24974 </cell>
24975 <cell alignment="left" valignment="top" usebox="none">
24976 \begin_inset Text
24977
24978 \begin_layout Plain Layout
24979 hhline
24980 \end_layout
24981
24982 \end_inset
24983 </cell>
24984 <cell alignment="left" valignment="top" usebox="none">
24985 \begin_inset Text
24986
24987 \begin_layout Plain Layout
24988 mathdesign
24989 \end_layout
24990
24991 \end_inset
24992 </cell>
24993 <cell alignment="center" valignment="top" usebox="none">
24994 \begin_inset Text
24995
24996 \begin_layout Plain Layout
24997 pmboxdraw
24998 \end_layout
24999
25000 \end_inset
25001 </cell>
25002 <cell alignment="center" valignment="top" usebox="none">
25003 \begin_inset Text
25004
25005 \begin_layout Plain Layout
25006 soul
25007 \end_layout
25008
25009 \end_inset
25010 </cell>
25011 <cell alignment="center" valignment="top" usebox="none">
25012 \begin_inset Text
25013
25014 \begin_layout Plain Layout
25015 ulem
25016 \end_layout
25017
25018 \end_inset
25019 </cell>
25020 <cell alignment="center" valignment="top" usebox="none">
25021 \begin_inset Text
25022
25023 \begin_layout Plain Layout
25024 yhmath
25025 \end_layout
25026
25027 \end_inset
25028 </cell>
25029 </row>
25030 <row>
25031 <cell alignment="left" valignment="top" usebox="none">
25032 \begin_inset Text
25033
25034 \begin_layout Plain Layout
25035 amsthm
25036 \end_layout
25037
25038 \end_inset
25039 </cell>
25040 <cell alignment="left" valignment="top" usebox="none">
25041 \begin_inset Text
25042
25043 \begin_layout Plain Layout
25044 dvipost
25045 \end_layout
25046
25047 \end_inset
25048 </cell>
25049 <cell alignment="left" valignment="top" usebox="none">
25050 \begin_inset Text
25051
25052 \begin_layout Plain Layout
25053 hyperref
25054 \end_layout
25055
25056 \end_inset
25057 </cell>
25058 <cell alignment="left" valignment="top" usebox="none">
25059 \begin_inset Text
25060
25061 \begin_layout Plain Layout
25062 mathdots
25063 \end_layout
25064
25065 \end_inset
25066 </cell>
25067 <cell alignment="center" valignment="top" usebox="none">
25068 \begin_inset Text
25069
25070 \begin_layout Plain Layout
25071 polyglossia
25072 \end_layout
25073
25074 \end_inset
25075 </cell>
25076 <cell alignment="center" valignment="top" usebox="none">
25077 \begin_inset Text
25078
25079 \begin_layout Plain Layout
25080 splitidx
25081 \end_layout
25082
25083 \end_inset
25084 </cell>
25085 <cell alignment="center" valignment="top" usebox="none">
25086 \begin_inset Text
25087
25088 \begin_layout Plain Layout
25089 undertilde
25090 \end_layout
25091
25092 \end_inset
25093 </cell>
25094 <cell alignment="center" valignment="top" usebox="none">
25095 \begin_inset Text
25096
25097 \begin_layout Plain Layout
25098
25099 \end_layout
25100
25101 \end_inset
25102 </cell>
25103 </row>
25104 <row>
25105 <cell alignment="left" valignment="top" usebox="none">
25106 \begin_inset Text
25107
25108 \begin_layout Plain Layout
25109 array
25110 \end_layout
25111
25112 \end_inset
25113 </cell>
25114 <cell alignment="left" valignment="top" usebox="none">
25115 \begin_inset Text
25116
25117 \begin_layout Plain Layout
25118 endnotes
25119 \end_layout
25120
25121 \end_inset
25122 </cell>
25123 <cell alignment="left" valignment="top" usebox="none">
25124 \begin_inset Text
25125
25126 \begin_layout Plain Layout
25127 ifsym
25128 \end_layout
25129
25130 \end_inset
25131 </cell>
25132 <cell alignment="left" valignment="top" usebox="none">
25133 \begin_inset Text
25134
25135 \begin_layout Plain Layout
25136 mathrsfs
25137 \end_layout
25138
25139 \end_inset
25140 </cell>
25141 <cell alignment="center" valignment="top" usebox="none">
25142 \begin_inset Text
25143
25144 \begin_layout Plain Layout
25145 prettyref
25146 \end_layout
25147
25148 \end_inset
25149 </cell>
25150 <cell alignment="center" valignment="top" usebox="none">
25151 \begin_inset Text
25152
25153 \begin_layout Plain Layout
25154 subfig
25155 \end_layout
25156
25157 \end_inset
25158 </cell>
25159 <cell alignment="center" valignment="top" usebox="none">
25160 \begin_inset Text
25161
25162 \begin_layout Plain Layout
25163 units
25164 \end_layout
25165
25166 \end_inset
25167 </cell>
25168 <cell alignment="center" valignment="top" usebox="none">
25169 \begin_inset Text
25170
25171 \begin_layout Plain Layout
25172
25173 \end_layout
25174
25175 \end_inset
25176 </cell>
25177 </row>
25178 <row>
25179 <cell alignment="left" valignment="top" usebox="none">
25180 \begin_inset Text
25181
25182 \begin_layout Plain Layout
25183 ascii
25184 \end_layout
25185
25186 \end_inset
25187 </cell>
25188 <cell alignment="left" valignment="top" usebox="none">
25189 \begin_inset Text
25190
25191 \begin_layout Plain Layout
25192 enumitem
25193 \end_layout
25194
25195 \end_inset
25196 </cell>
25197 <cell alignment="left" valignment="top" usebox="none">
25198 \begin_inset Text
25199
25200 \begin_layout Plain Layout
25201 ifthen
25202 \end_layout
25203
25204 \end_inset
25205 </cell>
25206 <cell alignment="left" valignment="top" usebox="none">
25207 \begin_inset Text
25208
25209 \begin_layout Plain Layout
25210 mhchem
25211 \end_layout
25212
25213 \end_inset
25214 </cell>
25215 <cell alignment="center" valignment="top" usebox="none">
25216 \begin_inset Text
25217
25218 \begin_layout Plain Layout
25219 pxfonts
25220 \end_layout
25221
25222 \end_inset
25223 </cell>
25224 <cell alignment="center" valignment="top" usebox="none">
25225 \begin_inset Text
25226
25227 \begin_layout Plain Layout
25228 subscript
25229 \end_layout
25230
25231 \end_inset
25232 </cell>
25233 <cell alignment="center" valignment="top" usebox="none">
25234 \begin_inset Text
25235
25236 \begin_layout Plain Layout
25237 url
25238 \end_layout
25239
25240 \end_inset
25241 </cell>
25242 <cell alignment="center" valignment="top" usebox="none">
25243 \begin_inset Text
25244
25245 \begin_layout Plain Layout
25246
25247 \end_layout
25248
25249 \end_inset
25250 </cell>
25251 </row>
25252 <row>
25253 <cell alignment="left" valignment="top" usebox="none">
25254 \begin_inset Text
25255
25256 \begin_layout Plain Layout
25257 bbding
25258 \end_layout
25259
25260 \end_inset
25261 </cell>
25262 <cell alignment="left" valignment="top" usebox="none">
25263 \begin_inset Text
25264
25265 \begin_layout Plain Layout
25266 esint
25267 \end_layout
25268
25269 \end_inset
25270 </cell>
25271 <cell alignment="left" valignment="top" usebox="none">
25272 \begin_inset Text
25273
25274 \begin_layout Plain Layout
25275 jurabib
25276 \end_layout
25277
25278 \end_inset
25279 </cell>
25280 <cell alignment="left" valignment="top" usebox="none">
25281 \begin_inset Text
25282
25283 \begin_layout Plain Layout
25284 multicol
25285 \end_layout
25286
25287 \end_inset
25288 </cell>
25289 <cell alignment="center" valignment="top" usebox="none">
25290 \begin_inset Text
25291
25292 \begin_layout Plain Layout
25293 refstyle
25294 \end_layout
25295
25296 \end_inset
25297 </cell>
25298 <cell alignment="center" valignment="top" usebox="none">
25299 \begin_inset Text
25300
25301 \begin_layout Plain Layout
25302 textcomp
25303 \end_layout
25304
25305 \end_inset
25306 </cell>
25307 <cell alignment="center" valignment="top" usebox="none">
25308 \begin_inset Text
25309
25310 \begin_layout Plain Layout
25311 varioref
25312 \end_layout
25313
25314 \end_inset
25315 </cell>
25316 <cell alignment="center" valignment="top" usebox="none">
25317 \begin_inset Text
25318
25319 \begin_layout Plain Layout
25320
25321 \end_layout
25322
25323 \end_inset
25324 </cell>
25325 </row>
25326 <row>
25327 <cell alignment="center" valignment="top" usebox="none">
25328 \begin_inset Text
25329
25330 \begin_layout Plain Layout
25331 bm
25332 \end_layout
25333
25334 \end_inset
25335 </cell>
25336 <cell alignment="center" valignment="top" usebox="none">
25337 \begin_inset Text
25338
25339 \begin_layout Plain Layout
25340 fancybox
25341 \end_layout
25342
25343 \end_inset
25344 </cell>
25345 <cell alignment="center" valignment="top" usebox="none">
25346 \begin_inset Text
25347
25348 \begin_layout Plain Layout
25349 latexsym
25350 \end_layout
25351
25352 \end_inset
25353 </cell>
25354 <cell alignment="center" valignment="top" usebox="none">
25355 \begin_inset Text
25356
25357 \begin_layout Plain Layout
25358 multirow
25359 \end_layout
25360
25361 \end_inset
25362 </cell>
25363 <cell alignment="center" valignment="top" usebox="none">
25364 \begin_inset Text
25365
25366 \begin_layout Plain Layout
25367 rotating
25368 \end_layout
25369
25370 \end_inset
25371 </cell>
25372 <cell alignment="center" valignment="top" usebox="none">
25373 \begin_inset Text
25374
25375 \begin_layout Plain Layout
25376 textgreek
25377 \end_layout
25378
25379 \end_inset
25380 </cell>
25381 <cell alignment="center" valignment="top" usebox="none">
25382 \begin_inset Text
25383
25384 \begin_layout Plain Layout
25385 verbatim
25386 \end_layout
25387
25388 \end_inset
25389 </cell>
25390 <cell alignment="center" valignment="top" usebox="none">
25391 \begin_inset Text
25392
25393 \begin_layout Plain Layout
25394
25395 \end_layout
25396
25397 \end_inset
25398 </cell>
25399 </row>
25400 </lyxtabular>
25401
25402 \end_inset
25403
25404
25405 \end_layout
25406
25407 \begin_layout Chapter
25408 Names of available colors to be used in layouts
25409 \begin_inset CommandInset label
25410 LatexCommand label
25411 name "chap:Names-of-colors"
25412
25413 \end_inset
25414
25415
25416 \end_layout
25417
25418 \begin_layout Standard
25419 The colors listed here are the standard colors and the those that you can
25420  adjust in the LyX preferences.
25421 \end_layout
25422
25423 \begin_layout Description
25424 none
25425 \family roman
25426 \series medium
25427 \shape up
25428 \size normal
25429 \emph off
25430 \bar no
25431 \strikeout off
25432 \uuline off
25433 \uwave off
25434 \noun off
25435 \color none
25436  No particular color -- clear or default
25437 \end_layout
25438
25439 \begin_layout Description
25440 black
25441 \end_layout
25442
25443 \begin_layout Description
25444 white
25445 \end_layout
25446
25447 \begin_layout Description
25448 red
25449 \end_layout
25450
25451 \begin_layout Description
25452 green
25453 \end_layout
25454
25455 \begin_layout Description
25456 blue
25457 \end_layout
25458
25459 \begin_layout Description
25460 cyan
25461 \end_layout
25462
25463 \begin_layout Description
25464 magenta
25465 \end_layout
25466
25467 \begin_layout Description
25468 yellow
25469 \end_layout
25470
25471 \begin_layout Description
25472 cursor Cursor color
25473 \end_layout
25474
25475 \begin_layout Description
25476 background Background color
25477 \end_layout
25478
25479 \begin_layout Description
25480 foreground Foreground color
25481 \end_layout
25482
25483 \begin_layout Description
25484 selection Background color of selected text
25485 \end_layout
25486
25487 \begin_layout Description
25488 selectiontext Foreground color of selected text
25489 \end_layout
25490
25491 \begin_layout Description
25492 latex Text color in LaTeX mode 
25493 \end_layout
25494
25495 \begin_layout Description
25496 preview The color used for previews
25497 \end_layout
25498
25499 \begin_layout Description
25500 inlinecompletion Inline completion color 
25501 \end_layout
25502
25503 \begin_layout Description
25504 nonunique_inlinecompletion Inline completion color for the non-unique part
25505 \end_layout
25506
25507 \begin_layout Description
25508 notelabel Label color for notes
25509 \end_layout
25510
25511 \begin_layout Description
25512 notebg Background color of notes
25513 \end_layout
25514
25515 \begin_layout Description
25516 commentlabel Label color for comments
25517 \end_layout
25518
25519 \begin_layout Description
25520 commentbg Background color of comments
25521 \end_layout
25522
25523 \begin_layout Description
25524 greyedoutlabel Label color for greyedout insets
25525 \end_layout
25526
25527 \begin_layout Description
25528 greyedouttext Color for greyedout inset text
25529 \end_layout
25530
25531 \begin_layout Description
25532 greyedoutbg Background color of greyedout inset
25533 \end_layout
25534
25535 \begin_layout Description
25536 shadedbg Background color of shaded box
25537 \end_layout
25538
25539 \begin_layout Description
25540 listingsbg Background color of listings inset
25541 \end_layout
25542
25543 \begin_layout Description
25544 branchlabel Label color for branches
25545 \end_layout
25546
25547 \begin_layout Description
25548 footlabel Label color for footnotes
25549 \end_layout
25550
25551 \begin_layout Description
25552 indexlabel Label color for index insets 
25553 \end_layout
25554
25555 \begin_layout Description
25556 marginlabel Label color for margin notes 
25557 \end_layout
25558
25559 \begin_layout Description
25560 phantomtext Text color for phantom insets 
25561 \end_layout
25562
25563 \begin_layout Description
25564 urllabel Label color for URL insets
25565 \end_layout
25566
25567 \begin_layout Description
25568 urltext Color for URL inset text
25569 \end_layout
25570
25571 \begin_layout Description
25572 depthbar Color for the depth bars in the margin
25573 \end_layout
25574
25575 \begin_layout Description
25576 language Color for marking foreign language words
25577 \end_layout
25578
25579 \begin_layout Description
25580 command Text color for command insets
25581 \end_layout
25582
25583 \begin_layout Description
25584 commandbg Background color for command insets 
25585 \end_layout
25586
25587 \begin_layout Description
25588 commandframe Frame color for command insets
25589 \end_layout
25590
25591 \begin_layout Description
25592 special Special chars text color
25593 \end_layout
25594
25595 \begin_layout Description
25596 graphicsbg Graphics inset background color 
25597 \end_layout
25598
25599 \begin_layout Description
25600 math Math inset text color 
25601 \end_layout
25602
25603 \begin_layout Description
25604 mathbg Math inset background color
25605 \end_layout
25606
25607 \begin_layout Description
25608 mathmacrobg Macro math inset background color
25609 \end_layout
25610
25611 \begin_layout Description
25612 mathmacrohoverbg Macro math inset background color hovered
25613 \end_layout
25614
25615 \begin_layout Description
25616 mathmacrolabel Macro math label color
25617 \end_layout
25618
25619 \begin_layout Description
25620 mathmacroframe Macro math frame color
25621 \end_layout
25622
25623 \begin_layout Description
25624 mathmacroblend Macro math blended color
25625 \end_layout
25626
25627 \begin_layout Description
25628 mathmacrooldarg Macro template color for old parameters 
25629 \end_layout
25630
25631 \begin_layout Description
25632 mathmacronewarg Macro template color for new parameters
25633 \end_layout
25634
25635 \begin_layout Description
25636 mathframe Math inset frame color under focus 
25637 \end_layout
25638
25639 \begin_layout Description
25640 mathcorners Math inset frame color not under focus
25641 \end_layout
25642
25643 \begin_layout Description
25644 mathline Math line color
25645 \end_layout
25646
25647 \begin_layout Description
25648 collapsable Collapsable insets text 
25649 \end_layout
25650
25651 \begin_layout Description
25652 collapsableframe Collapsable insets frame
25653 \end_layout
25654
25655 \begin_layout Description
25656 insetbg Inset marker background color
25657 \end_layout
25658
25659 \begin_layout Description
25660 insetframe Inset marker frame color
25661 \end_layout
25662
25663 \begin_layout Description
25664 error Error box text color
25665 \end_layout
25666
25667 \begin_layout Description
25668 eolmarker End of line marker color
25669 \end_layout
25670
25671 \begin_layout Description
25672 added_space Added space colour
25673 \end_layout
25674
25675 \begin_layout Description
25676 appendix Appendix marker color
25677 \end_layout
25678
25679 \begin_layout Description
25680 changebar Changebar color
25681 \end_layout
25682
25683 \begin_layout Description
25684 deletedtext Deleted text color
25685 \end_layout
25686
25687 \begin_layout Description
25688 addedtext Added text color
25689 \end_layout
25690
25691 \begin_layout Description
25692 changedtextauthor1 Changed text color author 1
25693 \end_layout
25694
25695 \begin_layout Description
25696 changedtextauthor2 Changed text color author 2
25697 \end_layout
25698
25699 \begin_layout Description
25700 changedtextauthor3 Changed text color author 3
25701 \end_layout
25702
25703 \begin_layout Description
25704 changedtextauthor4 Changed text color author 4
25705 \end_layout
25706
25707 \begin_layout Description
25708 changedtextauthor5 Changed text color author 5
25709 \end_layout
25710
25711 \begin_layout Description
25712 deletedtextmodifier Deleted text modifying color
25713 \end_layout
25714
25715 \begin_layout Description
25716 tabularline Table line color
25717 \end_layout
25718
25719 \begin_layout Description
25720 tabularonoffline Table line color 
25721 \end_layout
25722
25723 \begin_layout Description
25724 bottomarea Bottom area color
25725 \end_layout
25726
25727 \begin_layout Description
25728 newpage New page color 
25729 \end_layout
25730
25731 \begin_layout Description
25732 pagebreak Page break color
25733 \end_layout
25734
25735 \begin_layout Description
25736 buttonframe Color used for button frame
25737 \end_layout
25738
25739 \begin_layout Description
25740 buttonbg Color used for bottom background
25741 \end_layout
25742
25743 \begin_layout Description
25744 buttonhoverbg Color used for buttom under focus 
25745 \end_layout
25746
25747 \begin_layout Description
25748 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
25749  
25750 \end_layout
25751
25752 \begin_layout Description
25753 previewframe Preview frame color
25754 \end_layout
25755
25756 \begin_layout Description
25757 inherit Color is inherited 
25758 \end_layout
25759
25760 \begin_layout Description
25761 regexpframe Color for regexp frame
25762 \end_layout
25763
25764 \begin_layout Description
25765 ignore For ignoring updates of a color
25766 \end_layout
25767
25768 \end_body
25769 \end_document