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