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