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