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