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